From 7e0ffb8c806ed6dc64eb3f10993eef2322f7b340 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 15 Aug 2024 20:51:05 +0000 Subject: [PATCH 01/16] Update generated code (#1847) * Update generated code for v1190 * Update generated code for v1192 * Update generated code for v1194 * Update generated code for v1195 * Update generated code for v1196 * Update generated code for v1199 * Update generated code for v1200 * Update generated code for v1201 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: helenye-stripe <111009531+helenye-stripe@users.noreply.github.com> --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Account.java | 8 +- src/main/java/com/stripe/model/Charge.java | 23 ++- .../com/stripe/model/ConfirmationToken.java | 30 ++++ .../java/com/stripe/model/PaymentIntent.java | 12 +- .../java/com/stripe/model/PaymentMethod.java | 30 ++++ src/main/java/com/stripe/model/Quote.java | 10 +- .../java/com/stripe/model/SetupIntent.java | 18 +- .../model/treasury/OutboundPayment.java | 7 + .../model/treasury/OutboundTransfer.java | 7 + .../com/stripe/param/AccountCreateParams.java | 4 +- .../AccountExternalAccountUpdateParams.java | 4 +- .../param/AccountPersonCreateParams.java | 8 +- .../param/AccountPersonUpdateParams.java | 8 +- .../com/stripe/param/AccountUpdateParams.java | 4 +- .../com/stripe/param/ChargeCaptureParams.java | 4 +- .../com/stripe/param/ChargeCreateParams.java | 4 +- .../param/PaymentIntentCaptureParams.java | 4 +- .../param/PaymentIntentConfirmParams.java | 82 ++++++++- .../param/PaymentIntentCreateParams.java | 90 +++++++++- .../param/PaymentIntentUpdateParams.java | 94 ++++++++++- .../param/PersonCollectionCreateParams.java | 8 +- .../com/stripe/param/PersonUpdateParams.java | 8 +- .../param/SetupIntentConfirmParams.java | 155 ++++++++++++++++++ .../stripe/param/SetupIntentCreateParams.java | 155 ++++++++++++++++++ .../stripe/param/SetupIntentUpdateParams.java | 155 ++++++++++++++++++ .../com/stripe/param/TokenCreateParams.java | 9 +- .../param/checkout/SessionCreateParams.java | 6 +- .../treasury/OutboundPaymentUpdateParams.java | 33 +++- .../OutboundTransferUpdateParams.java | 33 +++- .../com/stripe/service/AccountService.java | 4 +- .../java/com/stripe/service/QuoteService.java | 8 +- 32 files changed, 962 insertions(+), 65 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 1af8caa5d1a..82e4a49f96e 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1189 \ No newline at end of file +v1201 \ 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 38ad2b0d668..ac7d40f91a7 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -320,7 +320,7 @@ public static Account create(AccountCreateParams params, RequestOptions options) *

Live-mode accounts where Stripe is responsible for negative account balances cannot be * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + * balances are zero. * *

If you want to delete your own account, use the account information tab in your account @@ -338,7 +338,7 @@ public Account delete() throws StripeException { *

Live-mode accounts where Stripe is responsible for negative account balances cannot be * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + * balances are zero. * *

If you want to delete your own account, use the account information tab in your account @@ -356,7 +356,7 @@ public Account delete(RequestOptions options) throws StripeException { *

Live-mode accounts where Stripe is responsible for negative account balances cannot be * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + * balances are zero. * *

If you want to delete your own account, use the account information tab in your account @@ -374,7 +374,7 @@ public Account delete(Map params) throws StripeException { *

Live-mode accounts where Stripe is responsible for negative account balances cannot be * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + * balances are zero. * *

If you want to delete your own account, use the account information tab in your account diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 16fded5e54b..58a377278ec 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -293,7 +293,7 @@ public class Charge extends ApiResource implements MetadataStore, Balanc /** * The transfer ID which created this charge. Only present if the charge came from another Stripe - * account. See the Connect + * account. See the Connect * documentation for details. */ @SerializedName("source_transfer") @@ -313,7 +313,7 @@ public class Charge extends ApiResource implements MetadataStore, Balanc /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">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. @@ -1572,6 +1572,10 @@ public static class Card extends StripeObject { @SerializedName("amount_authorized") Long amountAuthorized; + /** Authorization code on the charge. */ + @SerializedName("authorization_code") + String authorizationCode; + /** * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, * {@code jcb}, {@code mastercard}, {@code unionpay}, {@code visa}, or {@code unknown}. @@ -2201,6 +2205,9 @@ public static class CardPresent extends StripeObject { @SerializedName("receipt") Receipt receipt; + @SerializedName("wallet") + Wallet wallet; + @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -2268,6 +2275,18 @@ public static class Receipt extends StripeObject { @SerializedName("transaction_status_information") String transactionStatusInformation; } + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Wallet extends StripeObject { + /** + * The type of mobile wallet, one of {@code apple_pay}, {@code google_pay}, {@code + * samsung_pay}, or {@code unknown}. + */ + @SerializedName("type") + String type; + } } @Getter diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java index a08839bf349..f28623832fa 100644 --- a/src/main/java/com/stripe/model/ConfirmationToken.java +++ b/src/main/java/com/stripe/model/ConfirmationToken.java @@ -876,6 +876,9 @@ public static class CardPresent extends StripeObject { @SerializedName("receipt") Receipt receipt; + @SerializedName("wallet") + Wallet wallet; + @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -945,6 +948,18 @@ public static class Receipt extends StripeObject { @SerializedName("transaction_status_information") String transactionStatusInformation; } + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Wallet extends StripeObject { + /** + * The type of mobile wallet, one of {@code apple_pay}, {@code google_pay}, {@code + * samsung_pay}, or {@code unknown}. + */ + @SerializedName("type") + String type; + } } } } @@ -1219,6 +1234,9 @@ public static class CardPresent extends StripeObject { @SerializedName("read_method") String readMethod; + @SerializedName("wallet") + Wallet wallet; + @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1248,6 +1266,18 @@ public static class Offline extends StripeObject { @SerializedName("type") String type; } + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Wallet extends StripeObject { + /** + * The type of mobile wallet, one of {@code apple_pay}, {@code google_pay}, {@code + * samsung_pay}, or {@code unknown}. + */ + @SerializedName("type") + String type; + } } @Getter diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index 121b35983b3..e95ec8bef56 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -163,7 +163,7 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore

generated_card + * href="https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card">generated_card * payment method representing the card is created and attached to the Customer instead. */ @SerializedName("customer") @@ -332,7 +332,7 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore

statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the customer's * statement. */ @@ -2694,6 +2694,9 @@ public static class AuBecsDebit extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class BacsDebit extends StripeObject { + @SerializedName("mandate_options") + MandateOptions mandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -2717,6 +2720,11 @@ public static class BacsDebit extends StripeObject { */ @SerializedName("setup_future_usage") String setupFutureUsage; + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class MandateOptions extends StripeObject {} } @Getter diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index 0feb377abd7..ff0d48e1dd0 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -1118,6 +1118,9 @@ public static class CardPresent extends StripeObject { @SerializedName("receipt") Receipt receipt; + @SerializedName("wallet") + Wallet wallet; + @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1186,6 +1189,18 @@ public static class Receipt extends StripeObject { @SerializedName("transaction_status_information") String transactionStatusInformation; } + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Wallet extends StripeObject { + /** + * The type of mobile wallet, one of {@code apple_pay}, {@code google_pay}, {@code + * samsung_pay}, or {@code unknown}. + */ + @SerializedName("type") + String type; + } } } } @@ -1455,6 +1470,9 @@ public static class CardPresent extends StripeObject { @SerializedName("read_method") String readMethod; + @SerializedName("wallet") + Wallet wallet; + @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -1484,6 +1502,18 @@ public static class Offline extends StripeObject { @SerializedName("type") String type; } + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Wallet extends StripeObject { + /** + * The type of mobile wallet, one of {@code apple_pay}, {@code google_pay}, {@code + * samsung_pay}, or {@code unknown}. + */ + @SerializedName("type") + String type; + } } @Getter diff --git a/src/main/java/com/stripe/model/Quote.java b/src/main/java/com/stripe/model/Quote.java index bd45ca0850e..01ca6f7d3aa 100644 --- a/src/main/java/com/stripe/model/Quote.java +++ b/src/main/java/com/stripe/model/Quote.java @@ -813,7 +813,7 @@ public LineItemCollection listLineItems(QuoteListLineItemsParams params, Request /** * Download the PDF for a finalized quote. Explanation for special handling can be found here + * href="https://docs.stripe.com/quotes/overview#quote_pdf">here */ public InputStream pdf() throws StripeException { return pdf((Map) null, (RequestOptions) null); @@ -821,7 +821,7 @@ public InputStream pdf() throws StripeException { /** * Download the PDF for a finalized quote. Explanation for special handling can be found here + * href="https://docs.stripe.com/quotes/overview#quote_pdf">here */ public InputStream pdf(Map params) throws StripeException { return pdf(params, (RequestOptions) null); @@ -829,7 +829,7 @@ public InputStream pdf(Map params) throws StripeException { /** * Download the PDF for a finalized quote. Explanation for special handling can be found here + * href="https://docs.stripe.com/quotes/overview#quote_pdf">here */ public InputStream pdf(Map params, RequestOptions options) throws StripeException { @@ -842,7 +842,7 @@ public InputStream pdf(Map params, RequestOptions options) /** * Download the PDF for a finalized quote. Explanation for special handling can be found here + * href="https://docs.stripe.com/quotes/overview#quote_pdf">here */ public InputStream pdf(QuotePdfParams params) throws StripeException { return pdf(params, (RequestOptions) null); @@ -850,7 +850,7 @@ public InputStream pdf(QuotePdfParams params) throws StripeException { /** * Download the PDF for a finalized quote. Explanation for special handling can be found here + * href="https://docs.stripe.com/quotes/overview#quote_pdf">here */ public InputStream pdf(QuotePdfParams params, RequestOptions options) throws StripeException { String path = String.format("/v1/quotes/%s/pdf", ApiResource.urlEncodeId(this.getId())); diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java index 8b81055d829..0a416f37281 100644 --- a/src/main/java/com/stripe/model/SetupIntent.java +++ b/src/main/java/com/stripe/model/SetupIntent.java @@ -186,7 +186,7 @@ public class SetupIntent extends ApiResource implements HasId, MetadataStoregenerated_card + * href="https://docs.stripe.com/api/setup_attempts/object#setup_attempt_object-payment_method_details-card_present-generated_card">generated_card * associated with the {@code latest_attempt} is attached to the Customer instead. */ @SerializedName("payment_method") @@ -987,6 +987,9 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("amazon_pay") AmazonPay amazonPay; + @SerializedName("bacs_debit") + BacsDebit bacsDebit; + @SerializedName("card") Card card; @@ -1070,6 +1073,19 @@ public static class MandateOptions extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class AmazonPay extends StripeObject {} + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class BacsDebit extends StripeObject { + @SerializedName("mandate_options") + MandateOptions mandateOptions; + + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class MandateOptions extends StripeObject {} + } + @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/treasury/OutboundPayment.java b/src/main/java/com/stripe/model/treasury/OutboundPayment.java index 684fb24ddab..4037a67ef2f 100644 --- a/src/main/java/com/stripe/model/treasury/OutboundPayment.java +++ b/src/main/java/com/stripe/model/treasury/OutboundPayment.java @@ -602,6 +602,13 @@ public static class Ach extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class UsDomesticWire extends StripeObject { + /** + * CHIPS System Sequence Number (SSN) of the OutboundPayment for payments sent over the {@code + * us_domestic_wire} network. + */ + @SerializedName("chips") + String chips; + /** * IMAD of the OutboundPayment for payments sent over the {@code us_domestic_wire} network. */ diff --git a/src/main/java/com/stripe/model/treasury/OutboundTransfer.java b/src/main/java/com/stripe/model/treasury/OutboundTransfer.java index a8d5e0f4106..bfaf685562e 100644 --- a/src/main/java/com/stripe/model/treasury/OutboundTransfer.java +++ b/src/main/java/com/stripe/model/treasury/OutboundTransfer.java @@ -551,6 +551,13 @@ public static class Ach extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class UsDomesticWire extends StripeObject { + /** + * CHIPS System Sequence Number (SSN) of the OutboundTransfer for transfers sent over the + * {@code us_domestic_wire} network. + */ + @SerializedName("chips") + String chips; + /** * IMAD of the OutboundTransfer for transfers sent over the {@code us_domestic_wire} network. */ diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java index a61d565d848..1593447263c 100644 --- a/src/main/java/com/stripe/param/AccountCreateParams.java +++ b/src/main/java/com/stripe/param/AccountCreateParams.java @@ -7389,7 +7389,7 @@ public static class Documents { * href="https://support.stripe.com/questions/bank-account-ownership-verification">Bank account * ownership verification requirement. Must be a document associated with the account’s * primary active bank account that displays the last 4 digits of the account number, either a - * statement or a voided check. + * statement or a check. */ @SerializedName("bank_account_ownership_verification") BankAccountOwnershipVerification bankAccountOwnershipVerification; @@ -7494,7 +7494,7 @@ public AccountCreateParams.Documents build() { * href="https://support.stripe.com/questions/bank-account-ownership-verification">Bank * account ownership verification requirement. Must be a document associated with the * account’s primary active bank account that displays the last 4 digits of the account - * number, either a statement or a voided check. + * number, either a statement or a check. */ public Builder setBankAccountOwnershipVerification( AccountCreateParams.Documents.BankAccountOwnershipVerification diff --git a/src/main/java/com/stripe/param/AccountExternalAccountUpdateParams.java b/src/main/java/com/stripe/param/AccountExternalAccountUpdateParams.java index 98c59e65af4..83039bd70d6 100644 --- a/src/main/java/com/stripe/param/AccountExternalAccountUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountExternalAccountUpdateParams.java @@ -463,7 +463,7 @@ public static class Documents { * One or more documents that support the Bank account * ownership verification requirement. Must be a document associated with the bank account - * that displays the last 4 digits of the account number, either a statement or a voided check. + * that displays the last 4 digits of the account number, either a statement or a check. */ @SerializedName("bank_account_ownership_verification") BankAccountOwnershipVerification bankAccountOwnershipVerification; @@ -504,7 +504,7 @@ public AccountExternalAccountUpdateParams.Documents build() { * href="https://support.stripe.com/questions/bank-account-ownership-verification">Bank * account ownership verification requirement. Must be a document associated with the bank * account that displays the last 4 digits of the account number, either a statement or a - * voided check. + * check. */ public Builder setBankAccountOwnershipVerification( AccountExternalAccountUpdateParams.Documents.BankAccountOwnershipVerification diff --git a/src/main/java/com/stripe/param/AccountPersonCreateParams.java b/src/main/java/com/stripe/param/AccountPersonCreateParams.java index 7d40761caaf..cb47088e7bc 100644 --- a/src/main/java/com/stripe/param/AccountPersonCreateParams.java +++ b/src/main/java/com/stripe/param/AccountPersonCreateParams.java @@ -13,7 +13,9 @@ @Getter public class AccountPersonCreateParams extends ApiRequestParams { - /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + /** + * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements. + */ @SerializedName("additional_tos_acceptances") AdditionalTosAcceptances additionalTosAcceptances; @@ -322,7 +324,9 @@ public AccountPersonCreateParams build() { this.verification); } - /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + /** + * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements. + */ public Builder setAdditionalTosAcceptances( AccountPersonCreateParams.AdditionalTosAcceptances additionalTosAcceptances) { this.additionalTosAcceptances = additionalTosAcceptances; diff --git a/src/main/java/com/stripe/param/AccountPersonUpdateParams.java b/src/main/java/com/stripe/param/AccountPersonUpdateParams.java index 318297ab2e9..d60e41f4ac8 100644 --- a/src/main/java/com/stripe/param/AccountPersonUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountPersonUpdateParams.java @@ -13,7 +13,9 @@ @Getter public class AccountPersonUpdateParams extends ApiRequestParams { - /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + /** + * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements. + */ @SerializedName("additional_tos_acceptances") AdditionalTosAcceptances additionalTosAcceptances; @@ -322,7 +324,9 @@ public AccountPersonUpdateParams build() { this.verification); } - /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + /** + * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements. + */ public Builder setAdditionalTosAcceptances( AccountPersonUpdateParams.AdditionalTosAcceptances additionalTosAcceptances) { this.additionalTosAcceptances = additionalTosAcceptances; diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java index 9d45c561e66..b28b2e2530c 100644 --- a/src/main/java/com/stripe/param/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountUpdateParams.java @@ -7298,7 +7298,7 @@ public static class Documents { * href="https://support.stripe.com/questions/bank-account-ownership-verification">Bank account * ownership verification requirement. Must be a document associated with the account’s * primary active bank account that displays the last 4 digits of the account number, either a - * statement or a voided check. + * statement or a check. */ @SerializedName("bank_account_ownership_verification") BankAccountOwnershipVerification bankAccountOwnershipVerification; @@ -7403,7 +7403,7 @@ public AccountUpdateParams.Documents build() { * href="https://support.stripe.com/questions/bank-account-ownership-verification">Bank * account ownership verification requirement. Must be a document associated with the * account’s primary active bank account that displays the last 4 digits of the account - * number, either a statement or a voided check. + * number, either a statement or a check. */ public Builder setBankAccountOwnershipVerification( AccountUpdateParams.Documents.BankAccountOwnershipVerification diff --git a/src/main/java/com/stripe/param/ChargeCaptureParams.java b/src/main/java/com/stripe/param/ChargeCaptureParams.java index 01d377bb789..c84543c5be2 100644 --- a/src/main/java/com/stripe/param/ChargeCaptureParams.java +++ b/src/main/java/com/stripe/param/ChargeCaptureParams.java @@ -61,7 +61,7 @@ public class ChargeCaptureParams extends ApiRequestParams { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">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. @@ -249,7 +249,7 @@ public Builder setStatementDescriptor(String statementDescriptor) { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">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. diff --git a/src/main/java/com/stripe/param/ChargeCreateParams.java b/src/main/java/com/stripe/param/ChargeCreateParams.java index 0001254d3e3..13b205d5be8 100644 --- a/src/main/java/com/stripe/param/ChargeCreateParams.java +++ b/src/main/java/com/stripe/param/ChargeCreateParams.java @@ -153,7 +153,7 @@ public class ChargeCreateParams extends ApiRequestParams { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">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. @@ -540,7 +540,7 @@ public Builder setStatementDescriptor(String statementDescriptor) { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">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. diff --git a/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java b/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java index 1d661de21c8..f4dd615e46a 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java @@ -75,7 +75,7 @@ public class PaymentIntentCaptureParams extends ApiRequestParams { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the customer's * statement. */ @@ -300,7 +300,7 @@ public Builder setStatementDescriptor(String statementDescriptor) { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the * customer's statement. */ diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index 0e6723cbc45..be7128804e5 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -7941,6 +7941,10 @@ public static class BacsDebit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Additional fields for Mandate creation. */ + @SerializedName("mandate_options") + MandateOptions mandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -7968,8 +7972,11 @@ public static class BacsDebit { ApiRequestParams.EnumParam setupFutureUsage; private BacsDebit( - Map extraParams, ApiRequestParams.EnumParam setupFutureUsage) { + Map extraParams, + MandateOptions mandateOptions, + ApiRequestParams.EnumParam setupFutureUsage) { this.extraParams = extraParams; + this.mandateOptions = mandateOptions; this.setupFutureUsage = setupFutureUsage; } @@ -7980,12 +7987,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private MandateOptions mandateOptions; + private ApiRequestParams.EnumParam setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit build() { return new PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit( - this.extraParams, this.setupFutureUsage); + this.extraParams, this.mandateOptions, this.setupFutureUsage); } /** @@ -8016,6 +8025,14 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Additional fields for Mandate creation. */ + public Builder setMandateOptions( + PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions + mandateOptions) { + this.mandateOptions = mandateOptions; + return this; + } + /** * Indicates that you intend to make future payments with this PaymentIntent's payment * method. @@ -8077,6 +8094,67 @@ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { } } + @Getter + public static class MandateOptions { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private MandateOptions(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { + return new PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions( + this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @SerializedName("none") NONE("none"), diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index 46b4614f519..b40f5406940 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -91,7 +91,7 @@ public class PaymentIntentCreateParams extends ApiRequestParams { * method attaches to the Customer after the PaymentIntent has been confirmed and any required * actions from the user are complete. If the payment method is {@code card_present} and isn't a * digital wallet, then a generated_card + * href="https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card">generated_card * payment method representing the card is created and attached to the Customer instead. */ @SerializedName("customer") @@ -272,7 +272,7 @@ public class PaymentIntentCreateParams extends ApiRequestParams { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the customer's * statement. */ @@ -577,7 +577,7 @@ public Builder setCurrency(String currency) { * method attaches to the Customer after the PaymentIntent has been confirmed and any required * actions from the user are complete. If the payment method is {@code card_present} and isn't a * digital wallet, then a generated_card + * href="https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card">generated_card * payment method representing the card is created and attached to the Customer instead. */ public Builder setCustomer(String customer) { @@ -895,7 +895,7 @@ public Builder setStatementDescriptor(String statementDescriptor) { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the * customer's statement. */ @@ -8445,6 +8445,10 @@ public static class BacsDebit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Additional fields for Mandate creation. */ + @SerializedName("mandate_options") + MandateOptions mandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -8472,8 +8476,11 @@ public static class BacsDebit { ApiRequestParams.EnumParam setupFutureUsage; private BacsDebit( - Map extraParams, ApiRequestParams.EnumParam setupFutureUsage) { + Map extraParams, + MandateOptions mandateOptions, + ApiRequestParams.EnumParam setupFutureUsage) { this.extraParams = extraParams; + this.mandateOptions = mandateOptions; this.setupFutureUsage = setupFutureUsage; } @@ -8484,12 +8491,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private MandateOptions mandateOptions; + private ApiRequestParams.EnumParam setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit build() { return new PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit( - this.extraParams, this.setupFutureUsage); + this.extraParams, this.mandateOptions, this.setupFutureUsage); } /** @@ -8520,6 +8529,14 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Additional fields for Mandate creation. */ + public Builder setMandateOptions( + PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions + mandateOptions) { + this.mandateOptions = mandateOptions; + return this; + } + /** * Indicates that you intend to make future payments with this PaymentIntent's payment * method. @@ -8581,6 +8598,67 @@ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { } } + @Getter + public static class MandateOptions { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private MandateOptions(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { + return new PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions( + this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @SerializedName("none") NONE("none"), diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 1869b92a7d3..6a958fb55b3 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -56,7 +56,7 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { * method attaches to the Customer after the PaymentIntent has been confirmed and any required * actions from the user are complete. If the payment method is {@code card_present} and isn't a * digital wallet, then a generated_card + * href="https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card">generated_card * payment method representing the card is created and attached to the Customer instead. */ @SerializedName("customer") @@ -172,7 +172,7 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the customer's * statement. */ @@ -388,7 +388,7 @@ public Builder setCurrency(EmptyParam currency) { * method attaches to the Customer after the PaymentIntent has been confirmed and any required * actions from the user are complete. If the payment method is {@code card_present} and isn't a * digital wallet, then a generated_card + * href="https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card">generated_card * payment method representing the card is created and attached to the Customer instead. */ public Builder setCustomer(String customer) { @@ -407,7 +407,7 @@ public Builder setCustomer(String customer) { * method attaches to the Customer after the PaymentIntent has been confirmed and any required * actions from the user are complete. If the payment method is {@code card_present} and isn't a * digital wallet, then a generated_card + * href="https://docs.stripe.com/api/charges/object#charge_object-payment_method_details-card_present-generated_card">generated_card * payment method representing the card is created and attached to the Customer instead. */ public Builder setCustomer(EmptyParam customer) { @@ -727,7 +727,7 @@ public Builder setStatementDescriptor(EmptyParam statementDescriptor) { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the * customer's statement. */ @@ -738,7 +738,7 @@ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the * customer's statement. */ @@ -7941,6 +7941,10 @@ public static class BacsDebit { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; + /** Additional fields for Mandate creation. */ + @SerializedName("mandate_options") + MandateOptions mandateOptions; + /** * Indicates that you intend to make future payments with this PaymentIntent's payment method. * @@ -7968,8 +7972,11 @@ public static class BacsDebit { ApiRequestParams.EnumParam setupFutureUsage; private BacsDebit( - Map extraParams, ApiRequestParams.EnumParam setupFutureUsage) { + Map extraParams, + MandateOptions mandateOptions, + ApiRequestParams.EnumParam setupFutureUsage) { this.extraParams = extraParams; + this.mandateOptions = mandateOptions; this.setupFutureUsage = setupFutureUsage; } @@ -7980,12 +7987,14 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private MandateOptions mandateOptions; + private ApiRequestParams.EnumParam setupFutureUsage; /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit build() { return new PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit( - this.extraParams, this.setupFutureUsage); + this.extraParams, this.mandateOptions, this.setupFutureUsage); } /** @@ -8016,6 +8025,14 @@ public Builder putAllExtraParam(Map map) { return this; } + /** Additional fields for Mandate creation. */ + public Builder setMandateOptions( + PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions + mandateOptions) { + this.mandateOptions = mandateOptions; + return this; + } + /** * Indicates that you intend to make future payments with this PaymentIntent's payment * method. @@ -8077,6 +8094,67 @@ public Builder setSetupFutureUsage(EmptyParam setupFutureUsage) { } } + @Getter + public static class MandateOptions { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private MandateOptions(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { + return new PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions( + this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} + * for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} + * for the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { @SerializedName("none") NONE("none"), diff --git a/src/main/java/com/stripe/param/PersonCollectionCreateParams.java b/src/main/java/com/stripe/param/PersonCollectionCreateParams.java index 585f0d711e8..e27a2902c37 100644 --- a/src/main/java/com/stripe/param/PersonCollectionCreateParams.java +++ b/src/main/java/com/stripe/param/PersonCollectionCreateParams.java @@ -13,7 +13,9 @@ @Getter public class PersonCollectionCreateParams extends ApiRequestParams { - /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + /** + * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements. + */ @SerializedName("additional_tos_acceptances") AdditionalTosAcceptances additionalTosAcceptances; @@ -322,7 +324,9 @@ public PersonCollectionCreateParams build() { this.verification); } - /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + /** + * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements. + */ public Builder setAdditionalTosAcceptances( PersonCollectionCreateParams.AdditionalTosAcceptances additionalTosAcceptances) { this.additionalTosAcceptances = additionalTosAcceptances; diff --git a/src/main/java/com/stripe/param/PersonUpdateParams.java b/src/main/java/com/stripe/param/PersonUpdateParams.java index 6137d1095d9..f5a6ef6f15a 100644 --- a/src/main/java/com/stripe/param/PersonUpdateParams.java +++ b/src/main/java/com/stripe/param/PersonUpdateParams.java @@ -13,7 +13,9 @@ @Getter public class PersonUpdateParams extends ApiRequestParams { - /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + /** + * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements. + */ @SerializedName("additional_tos_acceptances") AdditionalTosAcceptances additionalTosAcceptances; @@ -322,7 +324,9 @@ public PersonUpdateParams build() { this.verification); } - /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + /** + * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements. + */ public Builder setAdditionalTosAcceptances( PersonUpdateParams.AdditionalTosAcceptances additionalTosAcceptances) { this.additionalTosAcceptances = additionalTosAcceptances; diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index 6037b2f204c..8409d020e4f 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -5027,6 +5027,13 @@ public static class PaymentMethodOptions { @SerializedName("amazon_pay") AmazonPay amazonPay; + /** + * If this is a {@code bacs_debit} SetupIntent, this sub-hash contains details about the Bacs + * Debit payment method options. + */ + @SerializedName("bacs_debit") + BacsDebit bacsDebit; + /** Configuration for any card setup attempted on this SetupIntent. */ @SerializedName("card") Card card; @@ -5078,6 +5085,7 @@ public static class PaymentMethodOptions { private PaymentMethodOptions( AcssDebit acssDebit, AmazonPay amazonPay, + BacsDebit bacsDebit, Card card, CardPresent cardPresent, Map extraParams, @@ -5087,6 +5095,7 @@ private PaymentMethodOptions( UsBankAccount usBankAccount) { this.acssDebit = acssDebit; this.amazonPay = amazonPay; + this.bacsDebit = bacsDebit; this.card = card; this.cardPresent = cardPresent; this.extraParams = extraParams; @@ -5105,6 +5114,8 @@ public static class Builder { private AmazonPay amazonPay; + private BacsDebit bacsDebit; + private Card card; private CardPresent cardPresent; @@ -5124,6 +5135,7 @@ public SetupIntentConfirmParams.PaymentMethodOptions build() { return new SetupIntentConfirmParams.PaymentMethodOptions( this.acssDebit, this.amazonPay, + this.bacsDebit, this.card, this.cardPresent, this.extraParams, @@ -5153,6 +5165,16 @@ public Builder setAmazonPay( return this; } + /** + * If this is a {@code bacs_debit} SetupIntent, this sub-hash contains details about the Bacs + * Debit payment method options. + */ + public Builder setBacsDebit( + SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit bacsDebit) { + this.bacsDebit = bacsDebit; + return this; + } + /** Configuration for any card setup attempted on this SetupIntent. */ public Builder setCard(SetupIntentConfirmParams.PaymentMethodOptions.Card card) { this.card = card; @@ -5686,6 +5708,139 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class BacsDebit { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Additional fields for Mandate creation. */ + @SerializedName("mandate_options") + MandateOptions mandateOptions; + + private BacsDebit(Map extraParams, MandateOptions mandateOptions) { + this.extraParams = extraParams; + this.mandateOptions = mandateOptions; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private MandateOptions mandateOptions; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit build() { + return new SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit( + this.extraParams, this.mandateOptions); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Additional fields for Mandate creation. */ + public Builder setMandateOptions( + SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions mandateOptions) { + this.mandateOptions = mandateOptions; + return this; + } + } + + @Getter + public static class MandateOptions { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private MandateOptions(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { + return new SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions( + this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + } + @Getter public static class Card { /** diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java index 98206b5b2b5..5f5f8e7ee39 100644 --- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java @@ -5483,6 +5483,13 @@ public static class PaymentMethodOptions { @SerializedName("amazon_pay") AmazonPay amazonPay; + /** + * If this is a {@code bacs_debit} SetupIntent, this sub-hash contains details about the Bacs + * Debit payment method options. + */ + @SerializedName("bacs_debit") + BacsDebit bacsDebit; + /** Configuration for any card setup attempted on this SetupIntent. */ @SerializedName("card") Card card; @@ -5534,6 +5541,7 @@ public static class PaymentMethodOptions { private PaymentMethodOptions( AcssDebit acssDebit, AmazonPay amazonPay, + BacsDebit bacsDebit, Card card, CardPresent cardPresent, Map extraParams, @@ -5543,6 +5551,7 @@ private PaymentMethodOptions( UsBankAccount usBankAccount) { this.acssDebit = acssDebit; this.amazonPay = amazonPay; + this.bacsDebit = bacsDebit; this.card = card; this.cardPresent = cardPresent; this.extraParams = extraParams; @@ -5561,6 +5570,8 @@ public static class Builder { private AmazonPay amazonPay; + private BacsDebit bacsDebit; + private Card card; private CardPresent cardPresent; @@ -5580,6 +5591,7 @@ public SetupIntentCreateParams.PaymentMethodOptions build() { return new SetupIntentCreateParams.PaymentMethodOptions( this.acssDebit, this.amazonPay, + this.bacsDebit, this.card, this.cardPresent, this.extraParams, @@ -5609,6 +5621,16 @@ public Builder setAmazonPay( return this; } + /** + * If this is a {@code bacs_debit} SetupIntent, this sub-hash contains details about the Bacs + * Debit payment method options. + */ + public Builder setBacsDebit( + SetupIntentCreateParams.PaymentMethodOptions.BacsDebit bacsDebit) { + this.bacsDebit = bacsDebit; + return this; + } + /** Configuration for any card setup attempted on this SetupIntent. */ public Builder setCard(SetupIntentCreateParams.PaymentMethodOptions.Card card) { this.card = card; @@ -6140,6 +6162,139 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class BacsDebit { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Additional fields for Mandate creation. */ + @SerializedName("mandate_options") + MandateOptions mandateOptions; + + private BacsDebit(Map extraParams, MandateOptions mandateOptions) { + this.extraParams = extraParams; + this.mandateOptions = mandateOptions; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private MandateOptions mandateOptions; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentCreateParams.PaymentMethodOptions.BacsDebit build() { + return new SetupIntentCreateParams.PaymentMethodOptions.BacsDebit( + this.extraParams, this.mandateOptions); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentCreateParams.PaymentMethodOptions.BacsDebit#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentCreateParams.PaymentMethodOptions.BacsDebit#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Additional fields for Mandate creation. */ + public Builder setMandateOptions( + SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions mandateOptions) { + this.mandateOptions = mandateOptions; + return this; + } + } + + @Getter + public static class MandateOptions { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private MandateOptions(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { + return new SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions( + this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + } + @Getter public static class Card { /** diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index 88ca435b578..b3804a2fc2b 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -4954,6 +4954,13 @@ public static class PaymentMethodOptions { @SerializedName("amazon_pay") AmazonPay amazonPay; + /** + * If this is a {@code bacs_debit} SetupIntent, this sub-hash contains details about the Bacs + * Debit payment method options. + */ + @SerializedName("bacs_debit") + BacsDebit bacsDebit; + /** Configuration for any card setup attempted on this SetupIntent. */ @SerializedName("card") Card card; @@ -5005,6 +5012,7 @@ public static class PaymentMethodOptions { private PaymentMethodOptions( AcssDebit acssDebit, AmazonPay amazonPay, + BacsDebit bacsDebit, Card card, CardPresent cardPresent, Map extraParams, @@ -5014,6 +5022,7 @@ private PaymentMethodOptions( UsBankAccount usBankAccount) { this.acssDebit = acssDebit; this.amazonPay = amazonPay; + this.bacsDebit = bacsDebit; this.card = card; this.cardPresent = cardPresent; this.extraParams = extraParams; @@ -5032,6 +5041,8 @@ public static class Builder { private AmazonPay amazonPay; + private BacsDebit bacsDebit; + private Card card; private CardPresent cardPresent; @@ -5051,6 +5062,7 @@ public SetupIntentUpdateParams.PaymentMethodOptions build() { return new SetupIntentUpdateParams.PaymentMethodOptions( this.acssDebit, this.amazonPay, + this.bacsDebit, this.card, this.cardPresent, this.extraParams, @@ -5080,6 +5092,16 @@ public Builder setAmazonPay( return this; } + /** + * If this is a {@code bacs_debit} SetupIntent, this sub-hash contains details about the Bacs + * Debit payment method options. + */ + public Builder setBacsDebit( + SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit bacsDebit) { + this.bacsDebit = bacsDebit; + return this; + } + /** Configuration for any card setup attempted on this SetupIntent. */ public Builder setCard(SetupIntentUpdateParams.PaymentMethodOptions.Card card) { this.card = card; @@ -5620,6 +5642,139 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class BacsDebit { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** Additional fields for Mandate creation. */ + @SerializedName("mandate_options") + MandateOptions mandateOptions; + + private BacsDebit(Map extraParams, MandateOptions mandateOptions) { + this.extraParams = extraParams; + this.mandateOptions = mandateOptions; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private MandateOptions mandateOptions; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit build() { + return new SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit( + this.extraParams, this.mandateOptions); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Additional fields for Mandate creation. */ + public Builder setMandateOptions( + SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions mandateOptions) { + this.mandateOptions = mandateOptions; + return this; + } + } + + @Getter + public static class MandateOptions { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field + * (serialized) name in this param object. Effectively, this map is flattened to its parent + * instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private MandateOptions(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { + return new SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions( + this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link + * SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + } + } + @Getter public static class Card { /** diff --git a/src/main/java/com/stripe/param/TokenCreateParams.java b/src/main/java/com/stripe/param/TokenCreateParams.java index 84688fc1f0e..65a89d682c2 100644 --- a/src/main/java/com/stripe/param/TokenCreateParams.java +++ b/src/main/java/com/stripe/param/TokenCreateParams.java @@ -4174,7 +4174,9 @@ public Builder putAllExtraParam(Map map) { @Getter public static class Person { - /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + /** + * Details on the legal guardian's or authorizer's acceptance of the required Stripe agreements. + */ @SerializedName("additional_tos_acceptances") AdditionalTosAcceptances additionalTosAcceptances; @@ -4462,7 +4464,10 @@ public TokenCreateParams.Person build() { this.verification); } - /** Details on the legal guardian's acceptance of the required Stripe agreements. */ + /** + * Details on the legal guardian's or authorizer's acceptance of the required Stripe + * agreements. + */ public Builder setAdditionalTosAcceptances( TokenCreateParams.Person.AdditionalTosAcceptances additionalTosAcceptances) { this.additionalTosAcceptances = additionalTosAcceptances; diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index e811316426b..cd73b083ca8 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -37,7 +37,8 @@ public class SessionCreateParams extends ApiRequestParams { /** * If set, Checkout displays a back button and customers will be directed to this URL if they - * decide to cancel payment and return to your website. + * decide to cancel payment and return to your website. This parameter is not allowed if ui_mode + * is {@code embedded}. */ @SerializedName("cancel_url") String cancelUrl; @@ -591,7 +592,8 @@ public Builder setBillingAddressCollection( /** * If set, Checkout displays a back button and customers will be directed to this URL if they - * decide to cancel payment and return to your website. + * decide to cancel payment and return to your website. This parameter is not allowed if ui_mode + * is {@code embedded}. */ public Builder setCancelUrl(String cancelUrl) { this.cancelUrl = cancelUrl; diff --git a/src/main/java/com/stripe/param/treasury/OutboundPaymentUpdateParams.java b/src/main/java/com/stripe/param/treasury/OutboundPaymentUpdateParams.java index 1f5b1a22b0b..4eb9253f7a5 100644 --- a/src/main/java/com/stripe/param/treasury/OutboundPaymentUpdateParams.java +++ b/src/main/java/com/stripe/param/treasury/OutboundPaymentUpdateParams.java @@ -287,6 +287,13 @@ public Builder setTraceId(EmptyParam traceId) { @Getter public static class UsDomesticWire { + /** + * CHIPS System Sequence Number (SSN) for funds sent over the {@code us_domestic_wire} + * network. + */ + @SerializedName("chips") + Object chips; + /** * 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. @@ -304,7 +311,9 @@ public static class UsDomesticWire { @SerializedName("omad") Object omad; - private UsDomesticWire(Map extraParams, Object imad, Object omad) { + private UsDomesticWire( + Object chips, Map extraParams, Object imad, Object omad) { + this.chips = chips; this.extraParams = extraParams; this.imad = imad; this.omad = omad; @@ -315,6 +324,8 @@ public static Builder builder() { } public static class Builder { + private Object chips; + private Map extraParams; private Object imad; @@ -324,7 +335,25 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public OutboundPaymentUpdateParams.TrackingDetails.UsDomesticWire build() { return new OutboundPaymentUpdateParams.TrackingDetails.UsDomesticWire( - this.extraParams, this.imad, this.omad); + this.chips, this.extraParams, this.imad, this.omad); + } + + /** + * CHIPS System Sequence Number (SSN) for funds sent over the {@code us_domestic_wire} + * network. + */ + public Builder setChips(String chips) { + this.chips = chips; + return this; + } + + /** + * CHIPS System Sequence Number (SSN) for funds sent over the {@code us_domestic_wire} + * network. + */ + public Builder setChips(EmptyParam chips) { + this.chips = chips; + return this; } /** diff --git a/src/main/java/com/stripe/param/treasury/OutboundTransferUpdateParams.java b/src/main/java/com/stripe/param/treasury/OutboundTransferUpdateParams.java index 3fdc6162607..4d9707ac527 100644 --- a/src/main/java/com/stripe/param/treasury/OutboundTransferUpdateParams.java +++ b/src/main/java/com/stripe/param/treasury/OutboundTransferUpdateParams.java @@ -288,6 +288,13 @@ public Builder setTraceId(EmptyParam traceId) { @Getter public static class UsDomesticWire { + /** + * CHIPS System Sequence Number (SSN) for funds sent over the {@code us_domestic_wire} + * network. + */ + @SerializedName("chips") + Object chips; + /** * 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. @@ -305,7 +312,9 @@ public static class UsDomesticWire { @SerializedName("omad") Object omad; - private UsDomesticWire(Map extraParams, Object imad, Object omad) { + private UsDomesticWire( + Object chips, Map extraParams, Object imad, Object omad) { + this.chips = chips; this.extraParams = extraParams; this.imad = imad; this.omad = omad; @@ -316,6 +325,8 @@ public static Builder builder() { } public static class Builder { + private Object chips; + private Map extraParams; private Object imad; @@ -325,7 +336,25 @@ public static class Builder { /** Finalize and obtain parameter instance from this builder. */ public OutboundTransferUpdateParams.TrackingDetails.UsDomesticWire build() { return new OutboundTransferUpdateParams.TrackingDetails.UsDomesticWire( - this.extraParams, this.imad, this.omad); + this.chips, this.extraParams, this.imad, this.omad); + } + + /** + * CHIPS System Sequence Number (SSN) for funds sent over the {@code us_domestic_wire} + * network. + */ + public Builder setChips(String chips) { + this.chips = chips; + return this; + } + + /** + * CHIPS System Sequence Number (SSN) for funds sent over the {@code us_domestic_wire} + * network. + */ + public Builder setChips(EmptyParam chips) { + this.chips = chips; + return this; } /** diff --git a/src/main/java/com/stripe/service/AccountService.java b/src/main/java/com/stripe/service/AccountService.java index d9f59b62281..719702229f7 100644 --- a/src/main/java/com/stripe/service/AccountService.java +++ b/src/main/java/com/stripe/service/AccountService.java @@ -33,7 +33,7 @@ public AccountService(StripeResponseGetter responseGetter) { *

Live-mode accounts where Stripe is responsible for negative account balances cannot be * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + * balances are zero. * *

If you want to delete your own account, use the account information tab in your account @@ -50,7 +50,7 @@ public Account delete(String account) throws StripeException { *

Live-mode accounts where Stripe is responsible for negative account balances cannot be * deleted, which includes Standard accounts. Live-mode accounts where your platform is liable for * negative account balances, which includes Custom and Express accounts, can be deleted when all - * balances are zero. + * balances are zero. * *

If you want to delete your own account, use the account information tab in your account diff --git a/src/main/java/com/stripe/service/QuoteService.java b/src/main/java/com/stripe/service/QuoteService.java index e67dc8492d2..bec0485ed2f 100644 --- a/src/main/java/com/stripe/service/QuoteService.java +++ b/src/main/java/com/stripe/service/QuoteService.java @@ -227,28 +227,28 @@ public Quote finalizeQuote(String quote, QuoteFinalizeQuoteParams params, Reques } /** * Download the PDF for a finalized quote. Explanation for special handling can be found here + * href="https://docs.stripe.com/quotes/overview#quote_pdf">here */ public InputStream pdf(String quote, QuotePdfParams params) throws StripeException { return pdf(quote, params, (RequestOptions) null); } /** * Download the PDF for a finalized quote. Explanation for special handling can be found here + * href="https://docs.stripe.com/quotes/overview#quote_pdf">here */ public InputStream pdf(String quote, RequestOptions options) throws StripeException { return pdf(quote, (QuotePdfParams) null, options); } /** * Download the PDF for a finalized quote. Explanation for special handling can be found here + * href="https://docs.stripe.com/quotes/overview#quote_pdf">here */ public InputStream pdf(String quote) throws StripeException { return pdf(quote, (QuotePdfParams) null, (RequestOptions) null); } /** * Download the PDF for a finalized quote. Explanation for special handling can be found here + * href="https://docs.stripe.com/quotes/overview#quote_pdf">here */ public InputStream pdf(String quote, QuotePdfParams params, RequestOptions options) throws StripeException { From a6080c2d972fe66b6c236d3cd07625ac3e13b05f Mon Sep 17 00:00:00 2001 From: Helen Ye Date: Thu, 15 Aug 2024 14:18:16 -0700 Subject: [PATCH 02/16] Bump version to 26.8.0 --- CHANGELOG.md | 9 +++++++++ README.md | 8 ++++---- VERSION | 2 +- gradle.properties | 2 +- src/main/java/com/stripe/Stripe.java | 2 +- 5 files changed, 16 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 32aa7875ce8..3785db799fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 26.8.0 - 2024-08-15 +* [#1847](https://github.com/stripe/stripe-java/pull/1847) Update generated code + * Add support for `authorization_code` on `Charge.payment_method_details.card` + * Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present` + * Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit` + * Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options` + * Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, `treasury.OutboundPaymentUpdateParams.tracking_details.us_domestic_wire`, and `treasury.OutboundTransferUpdateParams.tracking_details.us_domestic_wire` +* [#1849](https://github.com/stripe/stripe-java/pull/1849) Update recommended VSCode extensions + ## 26.7.0 - 2024-08-08 * [#1843](https://github.com/stripe/stripe-java/pull/1843) Update generated code * Add support for `activate`, `archive`, `create`, `deactivate`, `list`, and `retrieve` methods on resource `Billing.Alert` diff --git a/README.md b/README.md index 687d7d0be3c..22cb7e72eda 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Stripe Java client library -[![Maven Central](https://img.shields.io/badge/maven--central-v26.7.0-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java) +[![Maven Central](https://img.shields.io/badge/maven--central-v26.8.0-blue)](https://mvnrepository.com/artifact/com.stripe/stripe-java) [![JavaDoc](http://img.shields.io/badge/javadoc-reference-blue.svg)](https://stripe.dev/stripe-java) [![Build Status](https://github.com/stripe/stripe-java/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-java/actions?query=branch%3Amaster) [![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-java/badge.svg?branch=master)](https://coveralls.io/github/stripe/stripe-java?branch=master) @@ -18,7 +18,7 @@ The official [Stripe][stripe] Java client library. Add this dependency to your project's build file: ```groovy -implementation "com.stripe:stripe-java:26.7.0" +implementation "com.stripe:stripe-java:26.8.0" ``` ### Maven users @@ -29,7 +29,7 @@ Add this dependency to your project's POM: com.stripe stripe-java - 26.7.0 + 26.8.0 ``` @@ -37,7 +37,7 @@ Add this dependency to your project's POM: You'll need to manually install the following JARs: -- [The Stripe JAR](https://search.maven.org/remotecontent?filepath=com/stripe/stripe-java/26.7.0/stripe-java-26.7.0.jar) +- [The Stripe JAR](https://search.maven.org/remotecontent?filepath=com/stripe/stripe-java/26.8.0/stripe-java-26.8.0.jar) - [Google Gson][gson] from . ### [ProGuard][proguard] diff --git a/VERSION b/VERSION index 91d2624eb7e..c241fa1a177 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -26.7.0 +26.8.0 diff --git a/gradle.properties b/gradle.properties index 10964e22373..ee6f81676d4 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ GROUP=com.stripe -VERSION_NAME=26.7.0 +VERSION_NAME=26.8.0 POM_URL=https://github.com/stripe/stripe-java POM_SCM_URL=git@github.com:stripe/stripe-java.git diff --git a/src/main/java/com/stripe/Stripe.java b/src/main/java/com/stripe/Stripe.java index fa6afec33ff..4782d8f2f04 100644 --- a/src/main/java/com/stripe/Stripe.java +++ b/src/main/java/com/stripe/Stripe.java @@ -13,7 +13,7 @@ public abstract class Stripe { public static final String CONNECT_API_BASE = "https://connect.stripe.com"; public static final String LIVE_API_BASE = "https://api.stripe.com"; public static final String UPLOAD_API_BASE = "https://files.stripe.com"; - public static final String VERSION = "26.7.0"; + public static final String VERSION = "26.8.0"; public static volatile String apiKey; public static volatile String clientId; From 2411292cbd91a48c572d869e5afc246ffe765c1b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 15 Aug 2024 23:02:53 +0000 Subject: [PATCH 03/16] Update generated code for v1203 --- OPENAPI_VERSION | 2 +- .../com/stripe/param/QuoteCreateParams.java | 2219 ++--------------- .../com/stripe/param/QuoteUpdateParams.java | 1945 --------------- 3 files changed, 163 insertions(+), 4003 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a94d21e070f..a8ae45aaca9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1202 \ No newline at end of file +v1203 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/QuoteCreateParams.java b/src/main/java/com/stripe/param/QuoteCreateParams.java index 462a621f5c4..3ca3b078e40 100644 --- a/src/main/java/com/stripe/param/QuoteCreateParams.java +++ b/src/main/java/com/stripe/param/QuoteCreateParams.java @@ -152,13 +152,6 @@ public class QuoteCreateParams extends ApiRequestParams { @SerializedName("on_behalf_of") Object onBehalfOf; - /** - * List representing phases of the Quote. Each phase can be customized to have different - * durations, prices, and coupons. - */ - @SerializedName("phases") - List phases; - /** * When creating a subscription or subscription schedule, the specified configuration data will be * used. There must be at least one line item with a recurring price for a subscription or @@ -205,7 +198,6 @@ private QuoteCreateParams( List lines, Map metadata, Object onBehalfOf, - List phases, SubscriptionData subscriptionData, List subscriptionDataOverrides, String testClock, @@ -230,7 +222,6 @@ private QuoteCreateParams( this.lines = lines; this.metadata = metadata; this.onBehalfOf = onBehalfOf; - this.phases = phases; this.subscriptionData = subscriptionData; this.subscriptionDataOverrides = subscriptionDataOverrides; this.testClock = testClock; @@ -282,8 +273,6 @@ public static class Builder { private Object onBehalfOf; - private List phases; - private SubscriptionData subscriptionData; private List subscriptionDataOverrides; @@ -315,7 +304,6 @@ public QuoteCreateParams build() { this.lines, this.metadata, this.onBehalfOf, - this.phases, this.subscriptionData, this.subscriptionDataOverrides, this.testClock, @@ -713,32 +701,6 @@ public Builder setOnBehalfOf(EmptyParam onBehalfOf) { return this; } - /** - * Add an element to `phases` list. A list is initialized for the first `add/addAll` call, and - * subsequent calls adds additional elements to the original list. See {@link - * QuoteCreateParams#phases} for the field documentation. - */ - public Builder addPhase(QuoteCreateParams.Phase element) { - if (this.phases == null) { - this.phases = new ArrayList<>(); - } - this.phases.add(element); - return this; - } - - /** - * Add all elements to `phases` list. A list is initialized for the first `add/addAll` call, and - * subsequent calls adds additional elements to the original list. See {@link - * QuoteCreateParams#phases} for the field documentation. - */ - public Builder addAllPhase(List elements) { - if (this.phases == null) { - this.phases = new ArrayList<>(); - } - this.phases.addAll(elements); - return this; - } - /** * When creating a subscription or subscription schedule, the specified configuration data will * be used. There must be at least one line item with a recurring price for a subscription or @@ -6418,48 +6380,49 @@ public enum TaxBehavior implements ApiRequestParams.EnumParam { } @Getter - public static class Phase { - /** - * When specified as {@code reset}, the subscription will always start a new billing period when - * the quote is accepted. - */ - @SerializedName("billing_cycle_anchor") - BillingCycleAnchor billingCycleAnchor; + public static class SubscriptionData { + /** Describes the period to bill for upon accepting the quote. */ + @SerializedName("bill_on_acceptance") + BillOnAcceptance billOnAcceptance; /** - * Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically, - * Stripe will attempt to pay the underlying subscription at the end of each billing cycle using - * the default source attached to the customer. When sending an invoice, Stripe will email your - * customer an invoice with payment instructions and mark the subscription as {@code active}. - * Defaults to {@code charge_automatically} on creation. + * Configures when the subscription schedule generates prorations for phase transitions. + * Possible values are {@code prorate_on_next_phase} or {@code prorate_up_front} with the + * default being {@code prorate_on_next_phase}. {@code prorate_on_next_phase} will apply phase + * changes and generate prorations at transition time. {@code prorate_up_front} will bill for + * all phases within the current billing cycle up front. */ - @SerializedName("collection_method") - CollectionMethod collectionMethod; + @SerializedName("billing_behavior") + BillingBehavior billingBehavior; /** - * A list of Tax Rate ids. These Tax Rates - * will set the Subscription's {@code - * default_tax_rates}, which means they will be the Invoice's {@code - * default_tax_rates} for any Invoices issued by the Subscription during this Phase. + * When specified as {@code reset}, the subscription will always start a new billing period when + * the quote is accepted. */ - @SerializedName("default_tax_rates") - Object defaultTaxRates; + @SerializedName("billing_cycle_anchor") + ApiRequestParams.EnumParam billingCycleAnchor; /** - * The coupons to redeem into discounts for the schedule phase. If not specified, inherits the - * discount from the subscription's customer. Pass an empty string to avoid inheriting any - * discounts. + * The subscription's description, meant to be displayable to the customer. Use this field to + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ - @SerializedName("discounts") - Object discounts; + @SerializedName("description") + String description; /** - * The date at which this phase of the quote ends. If set, {@code iterations} must not be set. + * When creating a new subscription, the date of which the subscription schedule will start + * after the quote is accepted. When updating a subscription, the date of which the subscription + * will be updated using a subscription schedule. The special value {@code current_period_end} + * can be provided to update a subscription at the end of its current period. The {@code + * effective_date} is ignored if it is in the past when the quote is accepted. */ - @SerializedName("end_date") - Long endDate; + @SerializedName("effective_date") + Object effectiveDate; + + /** Behavior of the subscription schedule and underlying subscription when it ends. */ + @SerializedName("end_behavior") + EndBehavior endBehavior; /** * Map of extra parameters for custom features not available in this client library. The content @@ -6470,82 +6433,84 @@ public static class Phase { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** All invoices will be billed using the specified settings. */ - @SerializedName("invoice_settings") - InvoiceSettings invoiceSettings; - /** - * Integer representing the multiplier applied to the price interval. For example, {@code - * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3} - * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date} must - * not be set. - */ - @SerializedName("iterations") - Long iterations; - - /** - * Required. A list of line items the customer is being quoted for within this - * phase. Each line item includes information about the product, the quantity, and the resulting - * cost. + * The id of a subscription that the quote will update. By default, the quote will contain the + * state of the subscription (such as line items, collection method and billing thresholds) + * unless overridden. */ - @SerializedName("line_items") - List lineItems; + @SerializedName("from_subscription") + String fromSubscription; /** - * Set of key-value pairs that will - * declaratively set metadata on the subscription schedule's phases when the quote is accepted. + * Set of key-value pairs that will set + * metadata on the subscription or subscription schedule when the quote is accepted. If a + * recurring price is included in {@code line_items}, this field will be passed to the resulting + * subscription's {@code metadata} field. If {@code subscription_data.effective_date} is used, + * this field will be passed to the resulting subscription schedule's {@code phases.metadata} + * field. Unlike object-level metadata, this field is declarative. Updates will clear prior + * values. */ @SerializedName("metadata") Map metadata; /** - * If the update changes the current phase, indicates whether the changes should be prorated. - * The default value is {@code create_prorations}. + * If specified, the invoicing for the given billing cycle iterations will be processed when the + * quote is accepted. Cannot be used with {@code effective_date}. */ - @SerializedName("proration_behavior") - ProrationBehavior prorationBehavior; + @SerializedName("prebilling") + Object prebilling; /** - * If set to true the entire phase is counted as a trial and the customer will not be charged - * for any fees. + * Determines how to handle prorations. When + * creating a subscription, valid values are {@code create_prorations} or {@code none}. + * + *

When updating a subscription, valid values are {@code create_prorations}, {@code none}, or + * {@code always_invoice}. + * + *

Passing {@code create_prorations} will cause proration invoice items to be created when + * applicable. These proration items will only be invoiced immediately under certain + * conditions. In order to always invoice immediately for prorations, pass {@code + * always_invoice}. + * + *

Prorations can be disabled by passing {@code none}. */ - @SerializedName("trial") - Boolean trial; + @SerializedName("proration_behavior") + ProrationBehavior prorationBehavior; /** - * Sets the phase to trialing from the start date to this date. Must be before the phase end - * date, can not be combined with {@code trial}. + * Integer representing the number of trial period days before the customer is charged for the + * first time. */ - @SerializedName("trial_end") - Long trialEnd; + @SerializedName("trial_period_days") + Object trialPeriodDays; - private Phase( - BillingCycleAnchor billingCycleAnchor, - CollectionMethod collectionMethod, - Object defaultTaxRates, - Object discounts, - Long endDate, + private SubscriptionData( + BillOnAcceptance billOnAcceptance, + BillingBehavior billingBehavior, + ApiRequestParams.EnumParam billingCycleAnchor, + String description, + Object effectiveDate, + EndBehavior endBehavior, Map extraParams, - InvoiceSettings invoiceSettings, - Long iterations, - List lineItems, + String fromSubscription, Map metadata, + Object prebilling, ProrationBehavior prorationBehavior, - Boolean trial, - Long trialEnd) { + Object trialPeriodDays) { + this.billOnAcceptance = billOnAcceptance; + this.billingBehavior = billingBehavior; this.billingCycleAnchor = billingCycleAnchor; - this.collectionMethod = collectionMethod; - this.defaultTaxRates = defaultTaxRates; - this.discounts = discounts; - this.endDate = endDate; + this.description = description; + this.effectiveDate = effectiveDate; + this.endBehavior = endBehavior; this.extraParams = extraParams; - this.invoiceSettings = invoiceSettings; - this.iterations = iterations; - this.lineItems = lineItems; + this.fromSubscription = fromSubscription; this.metadata = metadata; + this.prebilling = prebilling; this.prorationBehavior = prorationBehavior; - this.trial = trial; - this.trialEnd = trialEnd; + this.trialPeriodDays = trialPeriodDays; } public static Builder builder() { @@ -6553,187 +6518,146 @@ public static Builder builder() { } public static class Builder { - private BillingCycleAnchor billingCycleAnchor; - - private CollectionMethod collectionMethod; + private BillOnAcceptance billOnAcceptance; - private Object defaultTaxRates; + private BillingBehavior billingBehavior; - private Object discounts; + private ApiRequestParams.EnumParam billingCycleAnchor; - private Long endDate; + private String description; - private Map extraParams; + private Object effectiveDate; - private InvoiceSettings invoiceSettings; + private EndBehavior endBehavior; - private Long iterations; + private Map extraParams; - private List lineItems; + private String fromSubscription; private Map metadata; - private ProrationBehavior prorationBehavior; + private Object prebilling; - private Boolean trial; + private ProrationBehavior prorationBehavior; - private Long trialEnd; + private Object trialPeriodDays; /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.Phase build() { - return new QuoteCreateParams.Phase( + public QuoteCreateParams.SubscriptionData build() { + return new QuoteCreateParams.SubscriptionData( + this.billOnAcceptance, + this.billingBehavior, this.billingCycleAnchor, - this.collectionMethod, - this.defaultTaxRates, - this.discounts, - this.endDate, + this.description, + this.effectiveDate, + this.endBehavior, this.extraParams, - this.invoiceSettings, - this.iterations, - this.lineItems, + this.fromSubscription, this.metadata, + this.prebilling, this.prorationBehavior, - this.trial, - this.trialEnd); - } - - /** - * When specified as {@code reset}, the subscription will always start a new billing period - * when the quote is accepted. - */ - public Builder setBillingCycleAnchor( - QuoteCreateParams.Phase.BillingCycleAnchor billingCycleAnchor) { - this.billingCycleAnchor = billingCycleAnchor; - return this; - } - - /** - * Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically, - * Stripe will attempt to pay the underlying subscription at the end of each billing cycle - * using the default source attached to the customer. When sending an invoice, Stripe will - * email your customer an invoice with payment instructions and mark the subscription as - * {@code active}. Defaults to {@code charge_automatically} on creation. - */ - public Builder setCollectionMethod( - QuoteCreateParams.Phase.CollectionMethod collectionMethod) { - this.collectionMethod = collectionMethod; - return this; + this.trialPeriodDays); } - /** - * Add an element to `defaultTaxRates` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteCreateParams.Phase#defaultTaxRates} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addDefaultTaxRate(String element) { - if (this.defaultTaxRates == null || this.defaultTaxRates instanceof EmptyParam) { - this.defaultTaxRates = new ArrayList(); - } - ((List) this.defaultTaxRates).add(element); + /** Describes the period to bill for upon accepting the quote. */ + public Builder setBillOnAcceptance( + QuoteCreateParams.SubscriptionData.BillOnAcceptance billOnAcceptance) { + this.billOnAcceptance = billOnAcceptance; return this; } /** - * Add all elements to `defaultTaxRates` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. See - * {@link QuoteCreateParams.Phase#defaultTaxRates} for the field documentation. + * Configures when the subscription schedule generates prorations for phase transitions. + * Possible values are {@code prorate_on_next_phase} or {@code prorate_up_front} with the + * default being {@code prorate_on_next_phase}. {@code prorate_on_next_phase} will apply phase + * changes and generate prorations at transition time. {@code prorate_up_front} will bill for + * all phases within the current billing cycle up front. */ - @SuppressWarnings("unchecked") - public Builder addAllDefaultTaxRate(List elements) { - if (this.defaultTaxRates == null || this.defaultTaxRates instanceof EmptyParam) { - this.defaultTaxRates = new ArrayList(); - } - ((List) this.defaultTaxRates).addAll(elements); + public Builder setBillingBehavior( + QuoteCreateParams.SubscriptionData.BillingBehavior billingBehavior) { + this.billingBehavior = billingBehavior; return this; } /** - * A list of Tax Rate ids. These Tax Rates - * will set the Subscription's {@code - * default_tax_rates}, which means they will be the Invoice's {@code - * default_tax_rates} for any Invoices issued by the Subscription during this Phase. + * When specified as {@code reset}, the subscription will always start a new billing period + * when the quote is accepted. */ - public Builder setDefaultTaxRates(EmptyParam defaultTaxRates) { - this.defaultTaxRates = defaultTaxRates; + public Builder setBillingCycleAnchor( + QuoteCreateParams.SubscriptionData.BillingCycleAnchor billingCycleAnchor) { + this.billingCycleAnchor = billingCycleAnchor; return this; } /** - * A list of Tax Rate ids. These Tax Rates - * will set the Subscription's {@code - * default_tax_rates}, which means they will be the Invoice's {@code - * default_tax_rates} for any Invoices issued by the Subscription during this Phase. + * When specified as {@code reset}, the subscription will always start a new billing period + * when the quote is accepted. */ - public Builder setDefaultTaxRates(List defaultTaxRates) { - this.defaultTaxRates = defaultTaxRates; + public Builder setBillingCycleAnchor(EmptyParam billingCycleAnchor) { + this.billingCycleAnchor = billingCycleAnchor; return this; } /** - * Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * QuoteCreateParams.Phase#discounts} for the field documentation. + * The subscription's description, meant to be displayable to the customer. Use this field to + * optionally store an explanation of the subscription for rendering in Stripe surfaces and + * certain local payment methods UIs. */ - @SuppressWarnings("unchecked") - public Builder addDiscount(QuoteCreateParams.Phase.Discount element) { - if (this.discounts == null || this.discounts instanceof EmptyParam) { - this.discounts = new ArrayList(); - } - ((List) this.discounts).add(element); + public Builder setDescription(String description) { + this.description = description; return this; } /** - * Add all elements to `discounts` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteCreateParams.Phase#discounts} for the field documentation. + * When creating a new subscription, the date of which the subscription schedule will start + * after the quote is accepted. When updating a subscription, the date of which the + * subscription will be updated using a subscription schedule. The special value {@code + * current_period_end} can be provided to update a subscription at the end of its current + * period. The {@code effective_date} is ignored if it is in the past when the quote is + * accepted. */ - @SuppressWarnings("unchecked") - public Builder addAllDiscount(List elements) { - if (this.discounts == null || this.discounts instanceof EmptyParam) { - this.discounts = new ArrayList(); - } - ((List) this.discounts).addAll(elements); + public Builder setEffectiveDate( + QuoteCreateParams.SubscriptionData.EffectiveDate effectiveDate) { + this.effectiveDate = effectiveDate; return this; } /** - * The coupons to redeem into discounts for the schedule phase. If not specified, inherits the - * discount from the subscription's customer. Pass an empty string to avoid inheriting any - * discounts. + * When creating a new subscription, the date of which the subscription schedule will start + * after the quote is accepted. When updating a subscription, the date of which the + * subscription will be updated using a subscription schedule. The special value {@code + * current_period_end} can be provided to update a subscription at the end of its current + * period. The {@code effective_date} is ignored if it is in the past when the quote is + * accepted. */ - public Builder setDiscounts(EmptyParam discounts) { - this.discounts = discounts; + public Builder setEffectiveDate(Long effectiveDate) { + this.effectiveDate = effectiveDate; return this; } /** - * The coupons to redeem into discounts for the schedule phase. If not specified, inherits the - * discount from the subscription's customer. Pass an empty string to avoid inheriting any - * discounts. + * When creating a new subscription, the date of which the subscription schedule will start + * after the quote is accepted. When updating a subscription, the date of which the + * subscription will be updated using a subscription schedule. The special value {@code + * current_period_end} can be provided to update a subscription at the end of its current + * period. The {@code effective_date} is ignored if it is in the past when the quote is + * accepted. */ - public Builder setDiscounts(List discounts) { - this.discounts = discounts; + public Builder setEffectiveDate(EmptyParam effectiveDate) { + this.effectiveDate = effectiveDate; return this; } - /** - * The date at which this phase of the quote ends. If set, {@code iterations} must not be set. - */ - public Builder setEndDate(Long endDate) { - this.endDate = endDate; + /** Behavior of the subscription schedule and underlying subscription when it ends. */ + public Builder setEndBehavior(QuoteCreateParams.SubscriptionData.EndBehavior endBehavior) { + this.endBehavior = endBehavior; 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 - * QuoteCreateParams.Phase#extraParams} for the field documentation. + * QuoteCreateParams.SubscriptionData#extraParams} for the field documentation. */ public Builder putExtraParam(String key, Object value) { if (this.extraParams == null) { @@ -6746,7 +6670,7 @@ public Builder putExtraParam(String key, Object value) { /** * 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 QuoteCreateParams.Phase#extraParams} for the field documentation. + * See {@link QuoteCreateParams.SubscriptionData#extraParams} for the field documentation. */ public Builder putAllExtraParam(Map map) { if (this.extraParams == null) { @@ -6756,1825 +6680,6 @@ public Builder putAllExtraParam(Map map) { return this; } - /** All invoices will be billed using the specified settings. */ - public Builder setInvoiceSettings(QuoteCreateParams.Phase.InvoiceSettings invoiceSettings) { - this.invoiceSettings = invoiceSettings; - return this; - } - - /** - * Integer representing the multiplier applied to the price interval. For example, {@code - * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3} - * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date} - * must not be set. - */ - public Builder setIterations(Long iterations) { - this.iterations = iterations; - return this; - } - - /** - * Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * QuoteCreateParams.Phase#lineItems} for the field documentation. - */ - public Builder addLineItem(QuoteCreateParams.Phase.LineItem element) { - if (this.lineItems == null) { - this.lineItems = new ArrayList<>(); - } - this.lineItems.add(element); - return this; - } - - /** - * Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteCreateParams.Phase#lineItems} for the field documentation. - */ - public Builder addAllLineItem(List elements) { - if (this.lineItems == null) { - this.lineItems = new ArrayList<>(); - } - this.lineItems.addAll(elements); - return this; - } - - /** - * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` - * call, and subsequent calls add additional key/value pairs to the original map. See {@link - * QuoteCreateParams.Phase#metadata} for the field documentation. - */ - public Builder putMetadata(String key, String value) { - if (this.metadata == null) { - this.metadata = new HashMap<>(); - } - this.metadata.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `metadata` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. - * See {@link QuoteCreateParams.Phase#metadata} for the field documentation. - */ - public Builder putAllMetadata(Map map) { - if (this.metadata == null) { - this.metadata = new HashMap<>(); - } - this.metadata.putAll(map); - return this; - } - - /** - * If the update changes the current phase, indicates whether the changes should be prorated. - * The default value is {@code create_prorations}. - */ - public Builder setProrationBehavior( - QuoteCreateParams.Phase.ProrationBehavior prorationBehavior) { - this.prorationBehavior = prorationBehavior; - return this; - } - - /** - * If set to true the entire phase is counted as a trial and the customer will not be charged - * for any fees. - */ - public Builder setTrial(Boolean trial) { - this.trial = trial; - return this; - } - - /** - * Sets the phase to trialing from the start date to this date. Must be before the phase end - * date, can not be combined with {@code trial}. - */ - public Builder setTrialEnd(Long trialEnd) { - this.trialEnd = trialEnd; - return this; - } - } - - @Getter - public static class Discount { - /** ID of the coupon to create a new discount for. */ - @SerializedName("coupon") - String coupon; - - /** ID of an existing discount on the object (or one of its ancestors) to reuse. */ - @SerializedName("discount") - String discount; - - /** Details to determine how long the discount should be applied for. */ - @SerializedName("discount_end") - DiscountEnd discountEnd; - - /** - * 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; - - /** ID of the promotion code to create a new discount for. */ - @SerializedName("promotion_code") - String promotionCode; - - private Discount( - String coupon, - String discount, - DiscountEnd discountEnd, - Map extraParams, - String promotionCode) { - this.coupon = coupon; - this.discount = discount; - this.discountEnd = discountEnd; - this.extraParams = extraParams; - this.promotionCode = promotionCode; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private String coupon; - - private String discount; - - private DiscountEnd discountEnd; - - private Map extraParams; - - private String promotionCode; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.Phase.Discount build() { - return new QuoteCreateParams.Phase.Discount( - this.coupon, this.discount, this.discountEnd, this.extraParams, this.promotionCode); - } - - /** ID of the coupon to create a new discount for. */ - public Builder setCoupon(String coupon) { - this.coupon = coupon; - return this; - } - - /** ID of an existing discount on the object (or one of its ancestors) to reuse. */ - public Builder setDiscount(String discount) { - this.discount = discount; - return this; - } - - /** Details to determine how long the discount should be applied for. */ - public Builder setDiscountEnd(QuoteCreateParams.Phase.Discount.DiscountEnd discountEnd) { - this.discountEnd = discountEnd; - 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 QuoteCreateParams.Phase.Discount#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 QuoteCreateParams.Phase.Discount#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** ID of the promotion code to create a new discount for. */ - public Builder setPromotionCode(String promotionCode) { - this.promotionCode = promotionCode; - return this; - } - } - - @Getter - public static class DiscountEnd { - /** Time span for the redeemed discount. */ - @SerializedName("duration") - Duration duration; - - /** - * 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 precise Unix timestamp for the discount to end. Must be in the future. */ - @SerializedName("timestamp") - Long timestamp; - - /** - * Required. The type of calculation made to determine when the discount - * ends. - */ - @SerializedName("type") - Type type; - - private DiscountEnd( - Duration duration, Map extraParams, Long timestamp, Type type) { - this.duration = duration; - this.extraParams = extraParams; - this.timestamp = timestamp; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Duration duration; - - private Map extraParams; - - private Long timestamp; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.Phase.Discount.DiscountEnd build() { - return new QuoteCreateParams.Phase.Discount.DiscountEnd( - this.duration, this.extraParams, this.timestamp, this.type); - } - - /** Time span for the redeemed discount. */ - public Builder setDuration( - QuoteCreateParams.Phase.Discount.DiscountEnd.Duration duration) { - this.duration = duration; - 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 QuoteCreateParams.Phase.Discount.DiscountEnd#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 QuoteCreateParams.Phase.Discount.DiscountEnd#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 precise Unix timestamp for the discount to end. Must be in the future. */ - public Builder setTimestamp(Long timestamp) { - this.timestamp = timestamp; - return this; - } - - /** - * Required. The type of calculation made to determine when the discount - * ends. - */ - public Builder setType(QuoteCreateParams.Phase.Discount.DiscountEnd.Type type) { - this.type = type; - return this; - } - } - - @Getter - public static class Duration { - /** - * 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. Specifies a type of interval unit. Either {@code day}, - * {@code week}, {@code month} or {@code year}. - */ - @SerializedName("interval") - Interval interval; - - /** - * Required. The number of intervals, as an whole number greater than 0. - * Stripe multiplies this by the interval type to get the overall duration. - */ - @SerializedName("interval_count") - Long intervalCount; - - private Duration(Map extraParams, Interval interval, Long intervalCount) { - this.extraParams = extraParams; - this.interval = interval; - this.intervalCount = intervalCount; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Interval interval; - - private Long intervalCount; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.Phase.Discount.DiscountEnd.Duration build() { - return new QuoteCreateParams.Phase.Discount.DiscountEnd.Duration( - this.extraParams, this.interval, this.intervalCount); - } - - /** - * 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 - * QuoteCreateParams.Phase.Discount.DiscountEnd.Duration#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 - * QuoteCreateParams.Phase.Discount.DiscountEnd.Duration#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. Specifies a type of interval unit. Either {@code day}, - * {@code week}, {@code month} or {@code year}. - */ - public Builder setInterval( - QuoteCreateParams.Phase.Discount.DiscountEnd.Duration.Interval interval) { - this.interval = interval; - return this; - } - - /** - * Required. The number of intervals, as an whole number greater than - * 0. Stripe multiplies this by the interval type to get the overall duration. - */ - public Builder setIntervalCount(Long intervalCount) { - this.intervalCount = intervalCount; - return this; - } - } - - public enum Interval implements ApiRequestParams.EnumParam { - @SerializedName("day") - DAY("day"), - - @SerializedName("month") - MONTH("month"), - - @SerializedName("week") - WEEK("week"), - - @SerializedName("year") - YEAR("year"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Interval(String value) { - this.value = value; - } - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("duration") - DURATION("duration"), - - @SerializedName("timestamp") - TIMESTAMP("timestamp"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - } - - @Getter - public static class InvoiceSettings { - /** - * Number of days within which a customer must pay invoices generated by this subscription - * schedule. This value will be {@code null} for subscription schedules where {@code - * billing=charge_automatically}. - */ - @SerializedName("days_until_due") - Long daysUntilDue; - - /** - * 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 InvoiceSettings(Long daysUntilDue, Map extraParams) { - this.daysUntilDue = daysUntilDue; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Long daysUntilDue; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.Phase.InvoiceSettings build() { - return new QuoteCreateParams.Phase.InvoiceSettings(this.daysUntilDue, this.extraParams); - } - - /** - * Number of days within which a customer must pay invoices generated by this subscription - * schedule. This value will be {@code null} for subscription schedules where {@code - * billing=charge_automatically}. - */ - public Builder setDaysUntilDue(Long daysUntilDue) { - this.daysUntilDue = daysUntilDue; - 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 QuoteCreateParams.Phase.InvoiceSettings#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 QuoteCreateParams.Phase.InvoiceSettings#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 LineItem { - /** The discounts applied to this line item. */ - @SerializedName("discounts") - Object discounts; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** The ID of the price object. One of {@code price} or {@code price_data} is required. */ - @SerializedName("price") - String price; - - /** - * Data used to generate a new Price object - * inline. One of {@code price} or {@code price_data} is required. - */ - @SerializedName("price_data") - PriceData priceData; - - /** The quantity of the line item. */ - @SerializedName("quantity") - Long quantity; - - /** - * The tax rates which apply to the line item. When set, the {@code default_tax_rates} on the - * quote do not apply to this line item. - */ - @SerializedName("tax_rates") - Object taxRates; - - private LineItem( - Object discounts, - Map extraParams, - String price, - PriceData priceData, - Long quantity, - Object taxRates) { - this.discounts = discounts; - this.extraParams = extraParams; - this.price = price; - this.priceData = priceData; - this.quantity = quantity; - this.taxRates = taxRates; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object discounts; - - private Map extraParams; - - private String price; - - private PriceData priceData; - - private Long quantity; - - private Object taxRates; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.Phase.LineItem build() { - return new QuoteCreateParams.Phase.LineItem( - this.discounts, - this.extraParams, - this.price, - this.priceData, - this.quantity, - this.taxRates); - } - - /** - * Add an element to `discounts` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteCreateParams.Phase.LineItem#discounts} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addDiscount(QuoteCreateParams.Phase.LineItem.Discount element) { - if (this.discounts == null || this.discounts instanceof EmptyParam) { - this.discounts = new ArrayList(); - } - ((List) this.discounts).add(element); - return this; - } - - /** - * Add all elements to `discounts` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteCreateParams.Phase.LineItem#discounts} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAllDiscount(List elements) { - if (this.discounts == null || this.discounts instanceof EmptyParam) { - this.discounts = new ArrayList(); - } - ((List) this.discounts).addAll(elements); - return this; - } - - /** The discounts applied to this line item. */ - public Builder setDiscounts(EmptyParam discounts) { - this.discounts = discounts; - return this; - } - - /** The discounts applied to this line item. */ - public Builder setDiscounts(List discounts) { - this.discounts = discounts; - 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 QuoteCreateParams.Phase.LineItem#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 QuoteCreateParams.Phase.LineItem#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** The ID of the price object. One of {@code price} or {@code price_data} is required. */ - public Builder setPrice(String price) { - this.price = price; - return this; - } - - /** - * Data used to generate a new Price object - * inline. One of {@code price} or {@code price_data} is required. - */ - public Builder setPriceData(QuoteCreateParams.Phase.LineItem.PriceData priceData) { - this.priceData = priceData; - return this; - } - - /** The quantity of the line item. */ - public Builder setQuantity(Long quantity) { - this.quantity = quantity; - return this; - } - - /** - * Add an element to `taxRates` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * QuoteCreateParams.Phase.LineItem#taxRates} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addTaxRate(String element) { - if (this.taxRates == null || this.taxRates instanceof EmptyParam) { - this.taxRates = new ArrayList(); - } - ((List) this.taxRates).add(element); - return this; - } - - /** - * Add all elements to `taxRates` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteCreateParams.Phase.LineItem#taxRates} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAllTaxRate(List elements) { - if (this.taxRates == null || this.taxRates instanceof EmptyParam) { - this.taxRates = new ArrayList(); - } - ((List) this.taxRates).addAll(elements); - return this; - } - - /** - * The tax rates which apply to the line item. When set, the {@code default_tax_rates} on - * the quote do not apply to this line item. - */ - public Builder setTaxRates(EmptyParam taxRates) { - this.taxRates = taxRates; - return this; - } - - /** - * The tax rates which apply to the line item. When set, the {@code default_tax_rates} on - * the quote do not apply to this line item. - */ - public Builder setTaxRates(List taxRates) { - this.taxRates = taxRates; - return this; - } - } - - @Getter - public static class Discount { - /** ID of the coupon to create a new discount for. */ - @SerializedName("coupon") - String coupon; - - /** ID of an existing discount on the object (or one of its ancestors) to reuse. */ - @SerializedName("discount") - String discount; - - /** Details to determine how long the discount should be applied for. */ - @SerializedName("discount_end") - DiscountEnd discountEnd; - - /** - * 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; - - /** ID of the promotion code to create a new discount for. */ - @SerializedName("promotion_code") - String promotionCode; - - private Discount( - String coupon, - String discount, - DiscountEnd discountEnd, - Map extraParams, - String promotionCode) { - this.coupon = coupon; - this.discount = discount; - this.discountEnd = discountEnd; - this.extraParams = extraParams; - this.promotionCode = promotionCode; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private String coupon; - - private String discount; - - private DiscountEnd discountEnd; - - private Map extraParams; - - private String promotionCode; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.Phase.LineItem.Discount build() { - return new QuoteCreateParams.Phase.LineItem.Discount( - this.coupon, this.discount, this.discountEnd, this.extraParams, this.promotionCode); - } - - /** ID of the coupon to create a new discount for. */ - public Builder setCoupon(String coupon) { - this.coupon = coupon; - return this; - } - - /** ID of an existing discount on the object (or one of its ancestors) to reuse. */ - public Builder setDiscount(String discount) { - this.discount = discount; - return this; - } - - /** Details to determine how long the discount should be applied for. */ - public Builder setDiscountEnd( - QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd discountEnd) { - this.discountEnd = discountEnd; - 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 QuoteCreateParams.Phase.LineItem.Discount#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 QuoteCreateParams.Phase.LineItem.Discount#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** ID of the promotion code to create a new discount for. */ - public Builder setPromotionCode(String promotionCode) { - this.promotionCode = promotionCode; - return this; - } - } - - @Getter - public static class DiscountEnd { - /** Time span for the redeemed discount. */ - @SerializedName("duration") - Duration duration; - - /** - * 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 precise Unix timestamp for the discount to end. Must be in the future. */ - @SerializedName("timestamp") - Long timestamp; - - /** - * Required. The type of calculation made to determine when the discount - * ends. - */ - @SerializedName("type") - Type type; - - private DiscountEnd( - Duration duration, Map extraParams, Long timestamp, Type type) { - this.duration = duration; - this.extraParams = extraParams; - this.timestamp = timestamp; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Duration duration; - - private Map extraParams; - - private Long timestamp; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd build() { - return new QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd( - this.duration, this.extraParams, this.timestamp, this.type); - } - - /** Time span for the redeemed discount. */ - public Builder setDuration( - QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd.Duration duration) { - this.duration = duration; - 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 - * QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd#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 - * QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd#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 precise Unix timestamp for the discount to end. Must be in the future. */ - public Builder setTimestamp(Long timestamp) { - this.timestamp = timestamp; - return this; - } - - /** - * Required. The type of calculation made to determine when the - * discount ends. - */ - public Builder setType( - QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd.Type type) { - this.type = type; - return this; - } - } - - @Getter - public static class Duration { - /** - * 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. Specifies a type of interval unit. Either {@code day}, - * {@code week}, {@code month} or {@code year}. - */ - @SerializedName("interval") - Interval interval; - - /** - * Required. The number of intervals, as an whole number greater than - * 0. Stripe multiplies this by the interval type to get the overall duration. - */ - @SerializedName("interval_count") - Long intervalCount; - - private Duration( - Map extraParams, Interval interval, Long intervalCount) { - this.extraParams = extraParams; - this.interval = interval; - this.intervalCount = intervalCount; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Interval interval; - - private Long intervalCount; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd.Duration build() { - return new QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd.Duration( - this.extraParams, this.interval, this.intervalCount); - } - - /** - * 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 - * QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd.Duration#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 - * QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd.Duration#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. Specifies a type of interval unit. Either {@code day}, - * {@code week}, {@code month} or {@code year}. - */ - public Builder setInterval( - QuoteCreateParams.Phase.LineItem.Discount.DiscountEnd.Duration.Interval - interval) { - this.interval = interval; - return this; - } - - /** - * Required. The number of intervals, as an whole number greater than - * 0. Stripe multiplies this by the interval type to get the overall duration. - */ - public Builder setIntervalCount(Long intervalCount) { - this.intervalCount = intervalCount; - return this; - } - } - - public enum Interval implements ApiRequestParams.EnumParam { - @SerializedName("day") - DAY("day"), - - @SerializedName("month") - MONTH("month"), - - @SerializedName("week") - WEEK("week"), - - @SerializedName("year") - YEAR("year"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Interval(String value) { - this.value = value; - } - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("duration") - DURATION("duration"), - - @SerializedName("timestamp") - TIMESTAMP("timestamp"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - } - - @Getter - public static class PriceData { - /** - * Required. Three-letter ISO currency code, in - * lowercase. Must be a supported currency. - */ - @SerializedName("currency") - String currency; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Required. The ID of the product that this price will belong to. */ - @SerializedName("product") - String product; - - /** - * The recurring components of a price such as {@code interval} and {@code interval_count}. - */ - @SerializedName("recurring") - Recurring recurring; - - /** - * Only required if a default - * tax behavior was not provided in the Stripe Tax settings. Specifies whether the price - * is considered inclusive of taxes or exclusive of taxes. One of {@code inclusive}, {@code - * exclusive}, or {@code unspecified}. Once specified as either {@code inclusive} or {@code - * exclusive}, it cannot be changed. - */ - @SerializedName("tax_behavior") - TaxBehavior taxBehavior; - - /** - * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. - */ - @SerializedName("unit_amount") - Long unitAmount; - - /** - * Same as {@code unit_amount}, but accepts a decimal value in cents (or local equivalent) - * with at most 12 decimal places. Only one of {@code unit_amount} and {@code - * unit_amount_decimal} can be set. - */ - @SerializedName("unit_amount_decimal") - BigDecimal unitAmountDecimal; - - private PriceData( - String currency, - Map extraParams, - String product, - Recurring recurring, - TaxBehavior taxBehavior, - Long unitAmount, - BigDecimal unitAmountDecimal) { - this.currency = currency; - this.extraParams = extraParams; - this.product = product; - this.recurring = recurring; - this.taxBehavior = taxBehavior; - this.unitAmount = unitAmount; - this.unitAmountDecimal = unitAmountDecimal; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private String currency; - - private Map extraParams; - - private String product; - - private Recurring recurring; - - private TaxBehavior taxBehavior; - - private Long unitAmount; - - private BigDecimal unitAmountDecimal; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.Phase.LineItem.PriceData build() { - return new QuoteCreateParams.Phase.LineItem.PriceData( - this.currency, - this.extraParams, - this.product, - this.recurring, - this.taxBehavior, - this.unitAmount, - this.unitAmountDecimal); - } - - /** - * Required. Three-letter ISO currency code, in - * lowercase. Must be a supported - * currency. - */ - public Builder setCurrency(String currency) { - this.currency = currency; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link QuoteCreateParams.Phase.LineItem.PriceData#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 QuoteCreateParams.Phase.LineItem.PriceData#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. The ID of the product that this price will belong to. */ - public Builder setProduct(String product) { - this.product = product; - return this; - } - - /** - * The recurring components of a price such as {@code interval} and {@code - * interval_count}. - */ - public Builder setRecurring( - QuoteCreateParams.Phase.LineItem.PriceData.Recurring recurring) { - this.recurring = recurring; - return this; - } - - /** - * Only required if a default - * tax behavior was not provided in the Stripe Tax settings. Specifies whether the - * price is considered inclusive of taxes or exclusive of taxes. One of {@code inclusive}, - * {@code exclusive}, or {@code unspecified}. Once specified as either {@code inclusive} - * or {@code exclusive}, it cannot be changed. - */ - public Builder setTaxBehavior( - QuoteCreateParams.Phase.LineItem.PriceData.TaxBehavior taxBehavior) { - this.taxBehavior = taxBehavior; - return this; - } - - /** - * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. - */ - public Builder setUnitAmount(Long unitAmount) { - this.unitAmount = unitAmount; - return this; - } - - /** - * Same as {@code unit_amount}, but accepts a decimal value in cents (or local equivalent) - * with at most 12 decimal places. Only one of {@code unit_amount} and {@code - * unit_amount_decimal} can be set. - */ - public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { - this.unitAmountDecimal = unitAmountDecimal; - return this; - } - } - - @Getter - public static class Recurring { - /** - * 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. Specifies billing frequency. Either {@code day}, {@code - * week}, {@code month} or {@code year}. - */ - @SerializedName("interval") - Interval interval; - - /** - * The number of intervals between subscription billings. For example, {@code - * interval=month} and {@code interval_count=3} bills every 3 months. Maximum of three - * years interval allowed (3 years, 36 months, or 156 weeks). - */ - @SerializedName("interval_count") - Long intervalCount; - - private Recurring( - Map extraParams, Interval interval, Long intervalCount) { - this.extraParams = extraParams; - this.interval = interval; - this.intervalCount = intervalCount; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Interval interval; - - private Long intervalCount; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.Phase.LineItem.PriceData.Recurring build() { - return new QuoteCreateParams.Phase.LineItem.PriceData.Recurring( - this.extraParams, this.interval, this.intervalCount); - } - - /** - * 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 - * QuoteCreateParams.Phase.LineItem.PriceData.Recurring#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 - * QuoteCreateParams.Phase.LineItem.PriceData.Recurring#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. Specifies billing frequency. Either {@code day}, {@code - * week}, {@code month} or {@code year}. - */ - public Builder setInterval( - QuoteCreateParams.Phase.LineItem.PriceData.Recurring.Interval interval) { - this.interval = interval; - return this; - } - - /** - * The number of intervals between subscription billings. For example, {@code - * interval=month} and {@code interval_count=3} bills every 3 months. Maximum of three - * years interval allowed (3 years, 36 months, or 156 weeks). - */ - public Builder setIntervalCount(Long intervalCount) { - this.intervalCount = intervalCount; - return this; - } - } - - public enum Interval implements ApiRequestParams.EnumParam { - @SerializedName("day") - DAY("day"), - - @SerializedName("month") - MONTH("month"), - - @SerializedName("week") - WEEK("week"), - - @SerializedName("year") - YEAR("year"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Interval(String value) { - this.value = value; - } - } - } - - public enum TaxBehavior implements ApiRequestParams.EnumParam { - @SerializedName("exclusive") - EXCLUSIVE("exclusive"), - - @SerializedName("inclusive") - INCLUSIVE("inclusive"), - - @SerializedName("unspecified") - UNSPECIFIED("unspecified"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - TaxBehavior(String value) { - this.value = value; - } - } - } - } - - public enum BillingCycleAnchor implements ApiRequestParams.EnumParam { - @SerializedName("reset") - RESET("reset"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - BillingCycleAnchor(String value) { - this.value = value; - } - } - - public enum CollectionMethod implements ApiRequestParams.EnumParam { - @SerializedName("charge_automatically") - CHARGE_AUTOMATICALLY("charge_automatically"), - - @SerializedName("send_invoice") - SEND_INVOICE("send_invoice"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - CollectionMethod(String value) { - this.value = value; - } - } - - public enum ProrationBehavior implements ApiRequestParams.EnumParam { - @SerializedName("always_invoice") - ALWAYS_INVOICE("always_invoice"), - - @SerializedName("create_prorations") - CREATE_PRORATIONS("create_prorations"), - - @SerializedName("none") - NONE("none"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - ProrationBehavior(String value) { - this.value = value; - } - } - } - - @Getter - public static class SubscriptionData { - /** Describes the period to bill for upon accepting the quote. */ - @SerializedName("bill_on_acceptance") - BillOnAcceptance billOnAcceptance; - - /** - * Configures when the subscription schedule generates prorations for phase transitions. - * Possible values are {@code prorate_on_next_phase} or {@code prorate_up_front} with the - * default being {@code prorate_on_next_phase}. {@code prorate_on_next_phase} will apply phase - * changes and generate prorations at transition time. {@code prorate_up_front} will bill for - * all phases within the current billing cycle up front. - */ - @SerializedName("billing_behavior") - BillingBehavior billingBehavior; - - /** - * When specified as {@code reset}, the subscription will always start a new billing period when - * the quote is accepted. - */ - @SerializedName("billing_cycle_anchor") - ApiRequestParams.EnumParam billingCycleAnchor; - - /** - * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription for rendering in Stripe surfaces and - * certain local payment methods UIs. - */ - @SerializedName("description") - String description; - - /** - * When creating a new subscription, the date of which the subscription schedule will start - * after the quote is accepted. When updating a subscription, the date of which the subscription - * will be updated using a subscription schedule. The special value {@code current_period_end} - * can be provided to update a subscription at the end of its current period. The {@code - * effective_date} is ignored if it is in the past when the quote is accepted. - */ - @SerializedName("effective_date") - Object effectiveDate; - - /** Behavior of the subscription schedule and underlying subscription when it ends. */ - @SerializedName("end_behavior") - EndBehavior endBehavior; - - /** - * Map of extra parameters for custom features not available in this client library. The content - * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each - * key/value pair is serialized as if the key is a root-level field (serialized) name in this - * param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** - * The id of a subscription schedule the quote will update. The quote will inherit the state of - * the subscription schedule, such as {@code phases}. Cannot be combined with other parameters. - */ - @SerializedName("from_schedule") - String fromSchedule; - - /** - * The id of a subscription that the quote will update. By default, the quote will contain the - * state of the subscription (such as line items, collection method and billing thresholds) - * unless overridden. - */ - @SerializedName("from_subscription") - String fromSubscription; - - /** - * Set of key-value pairs that will set - * metadata on the subscription or subscription schedule when the quote is accepted. If a - * recurring price is included in {@code line_items}, this field will be passed to the resulting - * subscription's {@code metadata} field. If {@code subscription_data.effective_date} is used, - * this field will be passed to the resulting subscription schedule's {@code phases.metadata} - * field. Unlike object-level metadata, this field is declarative. Updates will clear prior - * values. - */ - @SerializedName("metadata") - Map metadata; - - /** - * If specified, the invoicing for the given billing cycle iterations will be processed when the - * quote is accepted. Cannot be used with {@code effective_date}. - */ - @SerializedName("prebilling") - Object prebilling; - - /** - * Determines how to handle prorations. When - * creating a subscription, valid values are {@code create_prorations} or {@code none}. - * - *

When updating a subscription, valid values are {@code create_prorations}, {@code none}, or - * {@code always_invoice}. - * - *

Passing {@code create_prorations} will cause proration invoice items to be created when - * applicable. These proration items will only be invoiced immediately under certain - * conditions. In order to always invoice immediately for prorations, pass {@code - * always_invoice}. - * - *

Prorations can be disabled by passing {@code none}. - */ - @SerializedName("proration_behavior") - ProrationBehavior prorationBehavior; - - /** - * Integer representing the number of trial period days before the customer is charged for the - * first time. - */ - @SerializedName("trial_period_days") - Object trialPeriodDays; - - private SubscriptionData( - BillOnAcceptance billOnAcceptance, - BillingBehavior billingBehavior, - ApiRequestParams.EnumParam billingCycleAnchor, - String description, - Object effectiveDate, - EndBehavior endBehavior, - Map extraParams, - String fromSchedule, - String fromSubscription, - Map metadata, - Object prebilling, - ProrationBehavior prorationBehavior, - Object trialPeriodDays) { - this.billOnAcceptance = billOnAcceptance; - this.billingBehavior = billingBehavior; - this.billingCycleAnchor = billingCycleAnchor; - this.description = description; - this.effectiveDate = effectiveDate; - this.endBehavior = endBehavior; - this.extraParams = extraParams; - this.fromSchedule = fromSchedule; - this.fromSubscription = fromSubscription; - this.metadata = metadata; - this.prebilling = prebilling; - this.prorationBehavior = prorationBehavior; - this.trialPeriodDays = trialPeriodDays; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private BillOnAcceptance billOnAcceptance; - - private BillingBehavior billingBehavior; - - private ApiRequestParams.EnumParam billingCycleAnchor; - - private String description; - - private Object effectiveDate; - - private EndBehavior endBehavior; - - private Map extraParams; - - private String fromSchedule; - - private String fromSubscription; - - private Map metadata; - - private Object prebilling; - - private ProrationBehavior prorationBehavior; - - private Object trialPeriodDays; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteCreateParams.SubscriptionData build() { - return new QuoteCreateParams.SubscriptionData( - this.billOnAcceptance, - this.billingBehavior, - this.billingCycleAnchor, - this.description, - this.effectiveDate, - this.endBehavior, - this.extraParams, - this.fromSchedule, - this.fromSubscription, - this.metadata, - this.prebilling, - this.prorationBehavior, - this.trialPeriodDays); - } - - /** Describes the period to bill for upon accepting the quote. */ - public Builder setBillOnAcceptance( - QuoteCreateParams.SubscriptionData.BillOnAcceptance billOnAcceptance) { - this.billOnAcceptance = billOnAcceptance; - return this; - } - - /** - * Configures when the subscription schedule generates prorations for phase transitions. - * Possible values are {@code prorate_on_next_phase} or {@code prorate_up_front} with the - * default being {@code prorate_on_next_phase}. {@code prorate_on_next_phase} will apply phase - * changes and generate prorations at transition time. {@code prorate_up_front} will bill for - * all phases within the current billing cycle up front. - */ - public Builder setBillingBehavior( - QuoteCreateParams.SubscriptionData.BillingBehavior billingBehavior) { - this.billingBehavior = billingBehavior; - return this; - } - - /** - * When specified as {@code reset}, the subscription will always start a new billing period - * when the quote is accepted. - */ - public Builder setBillingCycleAnchor( - QuoteCreateParams.SubscriptionData.BillingCycleAnchor billingCycleAnchor) { - this.billingCycleAnchor = billingCycleAnchor; - return this; - } - - /** - * When specified as {@code reset}, the subscription will always start a new billing period - * when the quote is accepted. - */ - public Builder setBillingCycleAnchor(EmptyParam billingCycleAnchor) { - this.billingCycleAnchor = billingCycleAnchor; - return this; - } - - /** - * The subscription's description, meant to be displayable to the customer. Use this field to - * optionally store an explanation of the subscription for rendering in Stripe surfaces and - * certain local payment methods UIs. - */ - public Builder setDescription(String description) { - this.description = description; - return this; - } - - /** - * When creating a new subscription, the date of which the subscription schedule will start - * after the quote is accepted. When updating a subscription, the date of which the - * subscription will be updated using a subscription schedule. The special value {@code - * current_period_end} can be provided to update a subscription at the end of its current - * period. The {@code effective_date} is ignored if it is in the past when the quote is - * accepted. - */ - public Builder setEffectiveDate( - QuoteCreateParams.SubscriptionData.EffectiveDate effectiveDate) { - this.effectiveDate = effectiveDate; - return this; - } - - /** - * When creating a new subscription, the date of which the subscription schedule will start - * after the quote is accepted. When updating a subscription, the date of which the - * subscription will be updated using a subscription schedule. The special value {@code - * current_period_end} can be provided to update a subscription at the end of its current - * period. The {@code effective_date} is ignored if it is in the past when the quote is - * accepted. - */ - public Builder setEffectiveDate(Long effectiveDate) { - this.effectiveDate = effectiveDate; - return this; - } - - /** - * When creating a new subscription, the date of which the subscription schedule will start - * after the quote is accepted. When updating a subscription, the date of which the - * subscription will be updated using a subscription schedule. The special value {@code - * current_period_end} can be provided to update a subscription at the end of its current - * period. The {@code effective_date} is ignored if it is in the past when the quote is - * accepted. - */ - public Builder setEffectiveDate(EmptyParam effectiveDate) { - this.effectiveDate = effectiveDate; - return this; - } - - /** Behavior of the subscription schedule and underlying subscription when it ends. */ - public Builder setEndBehavior(QuoteCreateParams.SubscriptionData.EndBehavior endBehavior) { - this.endBehavior = endBehavior; - 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 - * QuoteCreateParams.SubscriptionData#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 QuoteCreateParams.SubscriptionData#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** - * The id of a subscription schedule the quote will update. The quote will inherit the state - * of the subscription schedule, such as {@code phases}. Cannot be combined with other - * parameters. - */ - public Builder setFromSchedule(String fromSchedule) { - this.fromSchedule = fromSchedule; - return this; - } - /** * The id of a subscription that the quote will update. By default, the quote will contain the * state of the subscription (such as line items, collection method and billing thresholds) diff --git a/src/main/java/com/stripe/param/QuoteUpdateParams.java b/src/main/java/com/stripe/param/QuoteUpdateParams.java index c1d693cff7d..a9d3ff34f2b 100644 --- a/src/main/java/com/stripe/param/QuoteUpdateParams.java +++ b/src/main/java/com/stripe/param/QuoteUpdateParams.java @@ -130,13 +130,6 @@ public class QuoteUpdateParams extends ApiRequestParams { @SerializedName("on_behalf_of") Object onBehalfOf; - /** - * List representing phases of the Quote. Each phase can be customized to have different - * durations, prices, and coupons. - */ - @SerializedName("phases") - List phases; - /** * When creating a subscription or subscription schedule, the specified configuration data will be * used. There must be at least one line item with a recurring price for a subscription or @@ -178,7 +171,6 @@ private QuoteUpdateParams( List lines, Map metadata, Object onBehalfOf, - List phases, SubscriptionData subscriptionData, Object subscriptionDataOverrides, Object transferData) { @@ -201,7 +193,6 @@ private QuoteUpdateParams( this.lines = lines; this.metadata = metadata; this.onBehalfOf = onBehalfOf; - this.phases = phases; this.subscriptionData = subscriptionData; this.subscriptionDataOverrides = subscriptionDataOverrides; this.transferData = transferData; @@ -250,8 +241,6 @@ public static class Builder { private Object onBehalfOf; - private List phases; - private SubscriptionData subscriptionData; private Object subscriptionDataOverrides; @@ -280,7 +269,6 @@ public QuoteUpdateParams build() { this.lines, this.metadata, this.onBehalfOf, - this.phases, this.subscriptionData, this.subscriptionDataOverrides, this.transferData); @@ -648,32 +636,6 @@ public Builder setOnBehalfOf(EmptyParam onBehalfOf) { return this; } - /** - * Add an element to `phases` list. A list is initialized for the first `add/addAll` call, and - * subsequent calls adds additional elements to the original list. See {@link - * QuoteUpdateParams#phases} for the field documentation. - */ - public Builder addPhase(QuoteUpdateParams.Phase element) { - if (this.phases == null) { - this.phases = new ArrayList<>(); - } - this.phases.add(element); - return this; - } - - /** - * Add all elements to `phases` list. A list is initialized for the first `add/addAll` call, and - * subsequent calls adds additional elements to the original list. See {@link - * QuoteUpdateParams#phases} for the field documentation. - */ - public Builder addAllPhase(List elements) { - if (this.phases == null) { - this.phases = new ArrayList<>(); - } - this.phases.addAll(elements); - return this; - } - /** * When creating a subscription or subscription schedule, the specified configuration data will * be used. There must be at least one line item with a recurring price for a subscription or @@ -6570,1913 +6532,6 @@ public enum TaxBehavior implements ApiRequestParams.EnumParam { } } - @Getter - public static class Phase { - /** - * When specified as {@code reset}, the subscription will always start a new billing period when - * the quote is accepted. - */ - @SerializedName("billing_cycle_anchor") - BillingCycleAnchor billingCycleAnchor; - - /** - * Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically, - * Stripe will attempt to pay the underlying subscription at the end of each billing cycle using - * the default source attached to the customer. When sending an invoice, Stripe will email your - * customer an invoice with payment instructions and mark the subscription as {@code active}. - * Defaults to {@code charge_automatically} on creation. - */ - @SerializedName("collection_method") - CollectionMethod collectionMethod; - - /** - * A list of Tax Rate ids. These Tax Rates - * will set the Subscription's {@code - * default_tax_rates}, which means they will be the Invoice's {@code - * default_tax_rates} for any Invoices issued by the Subscription during this Phase. - */ - @SerializedName("default_tax_rates") - Object defaultTaxRates; - - /** - * The coupons to redeem into discounts for the schedule phase. If not specified, inherits the - * discount from the subscription's customer. Pass an empty string to avoid inheriting any - * discounts. - */ - @SerializedName("discounts") - Object discounts; - - /** - * The date at which this phase of the quote ends. If set, {@code iterations} must not be set. - */ - @SerializedName("end_date") - Long endDate; - - /** - * 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; - - /** All invoices will be billed using the specified settings. */ - @SerializedName("invoice_settings") - InvoiceSettings invoiceSettings; - - /** - * Integer representing the multiplier applied to the price interval. For example, {@code - * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3} - * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date} must - * not be set. - */ - @SerializedName("iterations") - Long iterations; - - /** - * Required. A list of line items the customer is being quoted for within this - * phase. Each line item includes information about the product, the quantity, and the resulting - * cost. - */ - @SerializedName("line_items") - List lineItems; - - /** - * Set of key-value pairs that will - * declaratively set metadata on the subscription schedule's phases when the quote is accepted. - * After a quote has been finalized, this field can be updated by specifying an identical set of - * quote phases to what was on the quote originally, excluding changes in metadata and phases - * that are now in the past. - */ - @SerializedName("metadata") - Map metadata; - - /** - * If the update changes the current phase, indicates whether the changes should be prorated. - * The default value is {@code create_prorations}. - */ - @SerializedName("proration_behavior") - ProrationBehavior prorationBehavior; - - /** - * If set to true the entire phase is counted as a trial and the customer will not be charged - * for any fees. - */ - @SerializedName("trial") - Boolean trial; - - /** - * Sets the phase to trialing from the start date to this date. Must be before the phase end - * date, can not be combined with {@code trial}. - */ - @SerializedName("trial_end") - Long trialEnd; - - private Phase( - BillingCycleAnchor billingCycleAnchor, - CollectionMethod collectionMethod, - Object defaultTaxRates, - Object discounts, - Long endDate, - Map extraParams, - InvoiceSettings invoiceSettings, - Long iterations, - List lineItems, - Map metadata, - ProrationBehavior prorationBehavior, - Boolean trial, - Long trialEnd) { - this.billingCycleAnchor = billingCycleAnchor; - this.collectionMethod = collectionMethod; - this.defaultTaxRates = defaultTaxRates; - this.discounts = discounts; - this.endDate = endDate; - this.extraParams = extraParams; - this.invoiceSettings = invoiceSettings; - this.iterations = iterations; - this.lineItems = lineItems; - this.metadata = metadata; - this.prorationBehavior = prorationBehavior; - this.trial = trial; - this.trialEnd = trialEnd; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private BillingCycleAnchor billingCycleAnchor; - - private CollectionMethod collectionMethod; - - private Object defaultTaxRates; - - private Object discounts; - - private Long endDate; - - private Map extraParams; - - private InvoiceSettings invoiceSettings; - - private Long iterations; - - private List lineItems; - - private Map metadata; - - private ProrationBehavior prorationBehavior; - - private Boolean trial; - - private Long trialEnd; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteUpdateParams.Phase build() { - return new QuoteUpdateParams.Phase( - this.billingCycleAnchor, - this.collectionMethod, - this.defaultTaxRates, - this.discounts, - this.endDate, - this.extraParams, - this.invoiceSettings, - this.iterations, - this.lineItems, - this.metadata, - this.prorationBehavior, - this.trial, - this.trialEnd); - } - - /** - * When specified as {@code reset}, the subscription will always start a new billing period - * when the quote is accepted. - */ - public Builder setBillingCycleAnchor( - QuoteUpdateParams.Phase.BillingCycleAnchor billingCycleAnchor) { - this.billingCycleAnchor = billingCycleAnchor; - return this; - } - - /** - * Either {@code charge_automatically}, or {@code send_invoice}. When charging automatically, - * Stripe will attempt to pay the underlying subscription at the end of each billing cycle - * using the default source attached to the customer. When sending an invoice, Stripe will - * email your customer an invoice with payment instructions and mark the subscription as - * {@code active}. Defaults to {@code charge_automatically} on creation. - */ - public Builder setCollectionMethod( - QuoteUpdateParams.Phase.CollectionMethod collectionMethod) { - this.collectionMethod = collectionMethod; - return this; - } - - /** - * Add an element to `defaultTaxRates` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteUpdateParams.Phase#defaultTaxRates} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addDefaultTaxRate(String element) { - if (this.defaultTaxRates == null || this.defaultTaxRates instanceof EmptyParam) { - this.defaultTaxRates = new ArrayList(); - } - ((List) this.defaultTaxRates).add(element); - return this; - } - - /** - * Add all elements to `defaultTaxRates` list. A list is initialized for the first - * `add/addAll` call, and subsequent calls adds additional elements to the original list. See - * {@link QuoteUpdateParams.Phase#defaultTaxRates} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAllDefaultTaxRate(List elements) { - if (this.defaultTaxRates == null || this.defaultTaxRates instanceof EmptyParam) { - this.defaultTaxRates = new ArrayList(); - } - ((List) this.defaultTaxRates).addAll(elements); - return this; - } - - /** - * A list of Tax Rate ids. These Tax Rates - * will set the Subscription's {@code - * default_tax_rates}, which means they will be the Invoice's {@code - * default_tax_rates} for any Invoices issued by the Subscription during this Phase. - */ - public Builder setDefaultTaxRates(EmptyParam defaultTaxRates) { - this.defaultTaxRates = defaultTaxRates; - return this; - } - - /** - * A list of Tax Rate ids. These Tax Rates - * will set the Subscription's {@code - * default_tax_rates}, which means they will be the Invoice's {@code - * default_tax_rates} for any Invoices issued by the Subscription during this Phase. - */ - public Builder setDefaultTaxRates(List defaultTaxRates) { - this.defaultTaxRates = defaultTaxRates; - return this; - } - - /** - * Add an element to `discounts` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * QuoteUpdateParams.Phase#discounts} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addDiscount(QuoteUpdateParams.Phase.Discount element) { - if (this.discounts == null || this.discounts instanceof EmptyParam) { - this.discounts = new ArrayList(); - } - ((List) this.discounts).add(element); - return this; - } - - /** - * Add all elements to `discounts` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteUpdateParams.Phase#discounts} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAllDiscount(List elements) { - if (this.discounts == null || this.discounts instanceof EmptyParam) { - this.discounts = new ArrayList(); - } - ((List) this.discounts).addAll(elements); - return this; - } - - /** - * The coupons to redeem into discounts for the schedule phase. If not specified, inherits the - * discount from the subscription's customer. Pass an empty string to avoid inheriting any - * discounts. - */ - public Builder setDiscounts(EmptyParam discounts) { - this.discounts = discounts; - return this; - } - - /** - * The coupons to redeem into discounts for the schedule phase. If not specified, inherits the - * discount from the subscription's customer. Pass an empty string to avoid inheriting any - * discounts. - */ - public Builder setDiscounts(List discounts) { - this.discounts = discounts; - return this; - } - - /** - * The date at which this phase of the quote ends. If set, {@code iterations} must not be set. - */ - public Builder setEndDate(Long endDate) { - this.endDate = endDate; - 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 - * QuoteUpdateParams.Phase#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 QuoteUpdateParams.Phase#extraParams} for the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** All invoices will be billed using the specified settings. */ - public Builder setInvoiceSettings(QuoteUpdateParams.Phase.InvoiceSettings invoiceSettings) { - this.invoiceSettings = invoiceSettings; - return this; - } - - /** - * Integer representing the multiplier applied to the price interval. For example, {@code - * iterations=2} applied to a price with {@code interval=month} and {@code interval_count=3} - * results in a phase of duration {@code 2 * 3 months = 6 months}. If set, {@code end_date} - * must not be set. - */ - public Builder setIterations(Long iterations) { - this.iterations = iterations; - return this; - } - - /** - * Add an element to `lineItems` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * QuoteUpdateParams.Phase#lineItems} for the field documentation. - */ - public Builder addLineItem(QuoteUpdateParams.Phase.LineItem element) { - if (this.lineItems == null) { - this.lineItems = new ArrayList<>(); - } - this.lineItems.add(element); - return this; - } - - /** - * Add all elements to `lineItems` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteUpdateParams.Phase#lineItems} for the field documentation. - */ - public Builder addAllLineItem(List elements) { - if (this.lineItems == null) { - this.lineItems = new ArrayList<>(); - } - this.lineItems.addAll(elements); - return this; - } - - /** - * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` - * call, and subsequent calls add additional key/value pairs to the original map. See {@link - * QuoteUpdateParams.Phase#metadata} for the field documentation. - */ - public Builder putMetadata(String key, String value) { - if (this.metadata == null) { - this.metadata = new HashMap<>(); - } - this.metadata.put(key, value); - return this; - } - - /** - * Add all map key/value pairs to `metadata` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. - * See {@link QuoteUpdateParams.Phase#metadata} for the field documentation. - */ - public Builder putAllMetadata(Map map) { - if (this.metadata == null) { - this.metadata = new HashMap<>(); - } - this.metadata.putAll(map); - return this; - } - - /** - * If the update changes the current phase, indicates whether the changes should be prorated. - * The default value is {@code create_prorations}. - */ - public Builder setProrationBehavior( - QuoteUpdateParams.Phase.ProrationBehavior prorationBehavior) { - this.prorationBehavior = prorationBehavior; - return this; - } - - /** - * If set to true the entire phase is counted as a trial and the customer will not be charged - * for any fees. - */ - public Builder setTrial(Boolean trial) { - this.trial = trial; - return this; - } - - /** - * Sets the phase to trialing from the start date to this date. Must be before the phase end - * date, can not be combined with {@code trial}. - */ - public Builder setTrialEnd(Long trialEnd) { - this.trialEnd = trialEnd; - return this; - } - } - - @Getter - public static class Discount { - /** ID of the coupon to create a new discount for. */ - @SerializedName("coupon") - Object coupon; - - /** ID of an existing discount on the object (or one of its ancestors) to reuse. */ - @SerializedName("discount") - Object discount; - - /** Details to determine how long the discount should be applied for. */ - @SerializedName("discount_end") - DiscountEnd discountEnd; - - /** - * 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; - - /** ID of the promotion code to create a new discount for. */ - @SerializedName("promotion_code") - Object promotionCode; - - private Discount( - Object coupon, - Object discount, - DiscountEnd discountEnd, - Map extraParams, - Object promotionCode) { - this.coupon = coupon; - this.discount = discount; - this.discountEnd = discountEnd; - this.extraParams = extraParams; - this.promotionCode = promotionCode; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object coupon; - - private Object discount; - - private DiscountEnd discountEnd; - - private Map extraParams; - - private Object promotionCode; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteUpdateParams.Phase.Discount build() { - return new QuoteUpdateParams.Phase.Discount( - this.coupon, this.discount, this.discountEnd, this.extraParams, this.promotionCode); - } - - /** ID of the coupon to create a new discount for. */ - public Builder setCoupon(String coupon) { - this.coupon = coupon; - return this; - } - - /** ID of the coupon to create a new discount for. */ - public Builder setCoupon(EmptyParam coupon) { - this.coupon = coupon; - return this; - } - - /** ID of an existing discount on the object (or one of its ancestors) to reuse. */ - public Builder setDiscount(String discount) { - this.discount = discount; - return this; - } - - /** ID of an existing discount on the object (or one of its ancestors) to reuse. */ - public Builder setDiscount(EmptyParam discount) { - this.discount = discount; - return this; - } - - /** Details to determine how long the discount should be applied for. */ - public Builder setDiscountEnd(QuoteUpdateParams.Phase.Discount.DiscountEnd discountEnd) { - this.discountEnd = discountEnd; - 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 QuoteUpdateParams.Phase.Discount#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 QuoteUpdateParams.Phase.Discount#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** ID of the promotion code to create a new discount for. */ - public Builder setPromotionCode(String promotionCode) { - this.promotionCode = promotionCode; - return this; - } - - /** ID of the promotion code to create a new discount for. */ - public Builder setPromotionCode(EmptyParam promotionCode) { - this.promotionCode = promotionCode; - return this; - } - } - - @Getter - public static class DiscountEnd { - /** Time span for the redeemed discount. */ - @SerializedName("duration") - Duration duration; - - /** - * 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 precise Unix timestamp for the discount to end. Must be in the future. */ - @SerializedName("timestamp") - Long timestamp; - - /** - * Required. The type of calculation made to determine when the discount - * ends. - */ - @SerializedName("type") - Type type; - - private DiscountEnd( - Duration duration, Map extraParams, Long timestamp, Type type) { - this.duration = duration; - this.extraParams = extraParams; - this.timestamp = timestamp; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Duration duration; - - private Map extraParams; - - private Long timestamp; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteUpdateParams.Phase.Discount.DiscountEnd build() { - return new QuoteUpdateParams.Phase.Discount.DiscountEnd( - this.duration, this.extraParams, this.timestamp, this.type); - } - - /** Time span for the redeemed discount. */ - public Builder setDuration( - QuoteUpdateParams.Phase.Discount.DiscountEnd.Duration duration) { - this.duration = duration; - 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 QuoteUpdateParams.Phase.Discount.DiscountEnd#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 QuoteUpdateParams.Phase.Discount.DiscountEnd#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 precise Unix timestamp for the discount to end. Must be in the future. */ - public Builder setTimestamp(Long timestamp) { - this.timestamp = timestamp; - return this; - } - - /** - * Required. The type of calculation made to determine when the discount - * ends. - */ - public Builder setType(QuoteUpdateParams.Phase.Discount.DiscountEnd.Type type) { - this.type = type; - return this; - } - } - - @Getter - public static class Duration { - /** - * 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. Specifies a type of interval unit. Either {@code day}, - * {@code week}, {@code month} or {@code year}. - */ - @SerializedName("interval") - Interval interval; - - /** - * Required. The number of intervals, as an whole number greater than 0. - * Stripe multiplies this by the interval type to get the overall duration. - */ - @SerializedName("interval_count") - Long intervalCount; - - private Duration(Map extraParams, Interval interval, Long intervalCount) { - this.extraParams = extraParams; - this.interval = interval; - this.intervalCount = intervalCount; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Interval interval; - - private Long intervalCount; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteUpdateParams.Phase.Discount.DiscountEnd.Duration build() { - return new QuoteUpdateParams.Phase.Discount.DiscountEnd.Duration( - this.extraParams, this.interval, this.intervalCount); - } - - /** - * 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 - * QuoteUpdateParams.Phase.Discount.DiscountEnd.Duration#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 - * QuoteUpdateParams.Phase.Discount.DiscountEnd.Duration#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. Specifies a type of interval unit. Either {@code day}, - * {@code week}, {@code month} or {@code year}. - */ - public Builder setInterval( - QuoteUpdateParams.Phase.Discount.DiscountEnd.Duration.Interval interval) { - this.interval = interval; - return this; - } - - /** - * Required. The number of intervals, as an whole number greater than - * 0. Stripe multiplies this by the interval type to get the overall duration. - */ - public Builder setIntervalCount(Long intervalCount) { - this.intervalCount = intervalCount; - return this; - } - } - - public enum Interval implements ApiRequestParams.EnumParam { - @SerializedName("day") - DAY("day"), - - @SerializedName("month") - MONTH("month"), - - @SerializedName("week") - WEEK("week"), - - @SerializedName("year") - YEAR("year"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Interval(String value) { - this.value = value; - } - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("duration") - DURATION("duration"), - - @SerializedName("timestamp") - TIMESTAMP("timestamp"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - } - - @Getter - public static class InvoiceSettings { - /** - * Number of days within which a customer must pay invoices generated by this subscription - * schedule. This value will be {@code null} for subscription schedules where {@code - * billing=charge_automatically}. - */ - @SerializedName("days_until_due") - Long daysUntilDue; - - /** - * 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 InvoiceSettings(Long daysUntilDue, Map extraParams) { - this.daysUntilDue = daysUntilDue; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Long daysUntilDue; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteUpdateParams.Phase.InvoiceSettings build() { - return new QuoteUpdateParams.Phase.InvoiceSettings(this.daysUntilDue, this.extraParams); - } - - /** - * Number of days within which a customer must pay invoices generated by this subscription - * schedule. This value will be {@code null} for subscription schedules where {@code - * billing=charge_automatically}. - */ - public Builder setDaysUntilDue(Long daysUntilDue) { - this.daysUntilDue = daysUntilDue; - 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 QuoteUpdateParams.Phase.InvoiceSettings#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 QuoteUpdateParams.Phase.InvoiceSettings#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 LineItem { - /** The discounts applied to this line item. */ - @SerializedName("discounts") - Object discounts; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) - * name in this param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** The ID of the price object. One of {@code price} or {@code price_data} is required. */ - @SerializedName("price") - Object price; - - /** - * Data used to generate a new Price object - * inline. One of {@code price} or {@code price_data} is required. - */ - @SerializedName("price_data") - PriceData priceData; - - /** The quantity of the line item. */ - @SerializedName("quantity") - Long quantity; - - /** - * The tax rates which apply to the line item. When set, the {@code default_tax_rates} on the - * quote do not apply to this line item. - */ - @SerializedName("tax_rates") - Object taxRates; - - private LineItem( - Object discounts, - Map extraParams, - Object price, - PriceData priceData, - Long quantity, - Object taxRates) { - this.discounts = discounts; - this.extraParams = extraParams; - this.price = price; - this.priceData = priceData; - this.quantity = quantity; - this.taxRates = taxRates; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object discounts; - - private Map extraParams; - - private Object price; - - private PriceData priceData; - - private Long quantity; - - private Object taxRates; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteUpdateParams.Phase.LineItem build() { - return new QuoteUpdateParams.Phase.LineItem( - this.discounts, - this.extraParams, - this.price, - this.priceData, - this.quantity, - this.taxRates); - } - - /** - * Add an element to `discounts` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteUpdateParams.Phase.LineItem#discounts} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addDiscount(QuoteUpdateParams.Phase.LineItem.Discount element) { - if (this.discounts == null || this.discounts instanceof EmptyParam) { - this.discounts = new ArrayList(); - } - ((List) this.discounts).add(element); - return this; - } - - /** - * Add all elements to `discounts` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteUpdateParams.Phase.LineItem#discounts} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAllDiscount(List elements) { - if (this.discounts == null || this.discounts instanceof EmptyParam) { - this.discounts = new ArrayList(); - } - ((List) this.discounts).addAll(elements); - return this; - } - - /** The discounts applied to this line item. */ - public Builder setDiscounts(EmptyParam discounts) { - this.discounts = discounts; - return this; - } - - /** The discounts applied to this line item. */ - public Builder setDiscounts(List discounts) { - this.discounts = discounts; - 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 QuoteUpdateParams.Phase.LineItem#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 QuoteUpdateParams.Phase.LineItem#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** The ID of the price object. One of {@code price} or {@code price_data} is required. */ - public Builder setPrice(String price) { - this.price = price; - return this; - } - - /** The ID of the price object. One of {@code price} or {@code price_data} is required. */ - public Builder setPrice(EmptyParam price) { - this.price = price; - return this; - } - - /** - * Data used to generate a new Price object - * inline. One of {@code price} or {@code price_data} is required. - */ - public Builder setPriceData(QuoteUpdateParams.Phase.LineItem.PriceData priceData) { - this.priceData = priceData; - return this; - } - - /** The quantity of the line item. */ - public Builder setQuantity(Long quantity) { - this.quantity = quantity; - return this; - } - - /** - * Add an element to `taxRates` list. A list is initialized for the first `add/addAll` call, - * and subsequent calls adds additional elements to the original list. See {@link - * QuoteUpdateParams.Phase.LineItem#taxRates} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addTaxRate(String element) { - if (this.taxRates == null || this.taxRates instanceof EmptyParam) { - this.taxRates = new ArrayList(); - } - ((List) this.taxRates).add(element); - return this; - } - - /** - * Add all elements to `taxRates` list. A list is initialized for the first `add/addAll` - * call, and subsequent calls adds additional elements to the original list. See {@link - * QuoteUpdateParams.Phase.LineItem#taxRates} for the field documentation. - */ - @SuppressWarnings("unchecked") - public Builder addAllTaxRate(List elements) { - if (this.taxRates == null || this.taxRates instanceof EmptyParam) { - this.taxRates = new ArrayList(); - } - ((List) this.taxRates).addAll(elements); - return this; - } - - /** - * The tax rates which apply to the line item. When set, the {@code default_tax_rates} on - * the quote do not apply to this line item. - */ - public Builder setTaxRates(EmptyParam taxRates) { - this.taxRates = taxRates; - return this; - } - - /** - * The tax rates which apply to the line item. When set, the {@code default_tax_rates} on - * the quote do not apply to this line item. - */ - public Builder setTaxRates(List taxRates) { - this.taxRates = taxRates; - return this; - } - } - - @Getter - public static class Discount { - /** ID of the coupon to create a new discount for. */ - @SerializedName("coupon") - Object coupon; - - /** ID of an existing discount on the object (or one of its ancestors) to reuse. */ - @SerializedName("discount") - Object discount; - - /** Details to determine how long the discount should be applied for. */ - @SerializedName("discount_end") - DiscountEnd discountEnd; - - /** - * 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; - - /** ID of the promotion code to create a new discount for. */ - @SerializedName("promotion_code") - Object promotionCode; - - private Discount( - Object coupon, - Object discount, - DiscountEnd discountEnd, - Map extraParams, - Object promotionCode) { - this.coupon = coupon; - this.discount = discount; - this.discountEnd = discountEnd; - this.extraParams = extraParams; - this.promotionCode = promotionCode; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object coupon; - - private Object discount; - - private DiscountEnd discountEnd; - - private Map extraParams; - - private Object promotionCode; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteUpdateParams.Phase.LineItem.Discount build() { - return new QuoteUpdateParams.Phase.LineItem.Discount( - this.coupon, this.discount, this.discountEnd, this.extraParams, this.promotionCode); - } - - /** ID of the coupon to create a new discount for. */ - public Builder setCoupon(String coupon) { - this.coupon = coupon; - return this; - } - - /** ID of the coupon to create a new discount for. */ - public Builder setCoupon(EmptyParam coupon) { - this.coupon = coupon; - return this; - } - - /** ID of an existing discount on the object (or one of its ancestors) to reuse. */ - public Builder setDiscount(String discount) { - this.discount = discount; - return this; - } - - /** ID of an existing discount on the object (or one of its ancestors) to reuse. */ - public Builder setDiscount(EmptyParam discount) { - this.discount = discount; - return this; - } - - /** Details to determine how long the discount should be applied for. */ - public Builder setDiscountEnd( - QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd discountEnd) { - this.discountEnd = discountEnd; - 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 QuoteUpdateParams.Phase.LineItem.Discount#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 QuoteUpdateParams.Phase.LineItem.Discount#extraParams} for the field - * documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** ID of the promotion code to create a new discount for. */ - public Builder setPromotionCode(String promotionCode) { - this.promotionCode = promotionCode; - return this; - } - - /** ID of the promotion code to create a new discount for. */ - public Builder setPromotionCode(EmptyParam promotionCode) { - this.promotionCode = promotionCode; - return this; - } - } - - @Getter - public static class DiscountEnd { - /** Time span for the redeemed discount. */ - @SerializedName("duration") - Duration duration; - - /** - * 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 precise Unix timestamp for the discount to end. Must be in the future. */ - @SerializedName("timestamp") - Long timestamp; - - /** - * Required. The type of calculation made to determine when the discount - * ends. - */ - @SerializedName("type") - Type type; - - private DiscountEnd( - Duration duration, Map extraParams, Long timestamp, Type type) { - this.duration = duration; - this.extraParams = extraParams; - this.timestamp = timestamp; - this.type = type; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Duration duration; - - private Map extraParams; - - private Long timestamp; - - private Type type; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd build() { - return new QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd( - this.duration, this.extraParams, this.timestamp, this.type); - } - - /** Time span for the redeemed discount. */ - public Builder setDuration( - QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd.Duration duration) { - this.duration = duration; - 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 - * QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd#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 - * QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd#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 precise Unix timestamp for the discount to end. Must be in the future. */ - public Builder setTimestamp(Long timestamp) { - this.timestamp = timestamp; - return this; - } - - /** - * Required. The type of calculation made to determine when the - * discount ends. - */ - public Builder setType( - QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd.Type type) { - this.type = type; - return this; - } - } - - @Getter - public static class Duration { - /** - * 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. Specifies a type of interval unit. Either {@code day}, - * {@code week}, {@code month} or {@code year}. - */ - @SerializedName("interval") - Interval interval; - - /** - * Required. The number of intervals, as an whole number greater than - * 0. Stripe multiplies this by the interval type to get the overall duration. - */ - @SerializedName("interval_count") - Long intervalCount; - - private Duration( - Map extraParams, Interval interval, Long intervalCount) { - this.extraParams = extraParams; - this.interval = interval; - this.intervalCount = intervalCount; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Interval interval; - - private Long intervalCount; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd.Duration build() { - return new QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd.Duration( - this.extraParams, this.interval, this.intervalCount); - } - - /** - * 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 - * QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd.Duration#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 - * QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd.Duration#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. Specifies a type of interval unit. Either {@code day}, - * {@code week}, {@code month} or {@code year}. - */ - public Builder setInterval( - QuoteUpdateParams.Phase.LineItem.Discount.DiscountEnd.Duration.Interval - interval) { - this.interval = interval; - return this; - } - - /** - * Required. The number of intervals, as an whole number greater than - * 0. Stripe multiplies this by the interval type to get the overall duration. - */ - public Builder setIntervalCount(Long intervalCount) { - this.intervalCount = intervalCount; - return this; - } - } - - public enum Interval implements ApiRequestParams.EnumParam { - @SerializedName("day") - DAY("day"), - - @SerializedName("month") - MONTH("month"), - - @SerializedName("week") - WEEK("week"), - - @SerializedName("year") - YEAR("year"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Interval(String value) { - this.value = value; - } - } - } - - public enum Type implements ApiRequestParams.EnumParam { - @SerializedName("duration") - DURATION("duration"), - - @SerializedName("timestamp") - TIMESTAMP("timestamp"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Type(String value) { - this.value = value; - } - } - } - } - - @Getter - public static class PriceData { - /** - * Required. Three-letter ISO currency code, in - * lowercase. Must be a supported currency. - */ - @SerializedName("currency") - Object currency; - - /** - * Map of extra parameters for custom features not available in this client library. The - * content in this map is not serialized under this field's {@code @SerializedName} value. - * Instead, each key/value pair is serialized as if the key is a root-level field - * (serialized) name in this param object. Effectively, this map is flattened to its parent - * instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - /** Required. The ID of the product that this price will belong to. */ - @SerializedName("product") - Object product; - - /** - * The recurring components of a price such as {@code interval} and {@code interval_count}. - */ - @SerializedName("recurring") - Recurring recurring; - - /** - * Only required if a default - * tax behavior was not provided in the Stripe Tax settings. Specifies whether the price - * is considered inclusive of taxes or exclusive of taxes. One of {@code inclusive}, {@code - * exclusive}, or {@code unspecified}. Once specified as either {@code inclusive} or {@code - * exclusive}, it cannot be changed. - */ - @SerializedName("tax_behavior") - TaxBehavior taxBehavior; - - /** - * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. - */ - @SerializedName("unit_amount") - Long unitAmount; - - /** - * Same as {@code unit_amount}, but accepts a decimal value in cents (or local equivalent) - * with at most 12 decimal places. Only one of {@code unit_amount} and {@code - * unit_amount_decimal} can be set. - */ - @SerializedName("unit_amount_decimal") - Object unitAmountDecimal; - - private PriceData( - Object currency, - Map extraParams, - Object product, - Recurring recurring, - TaxBehavior taxBehavior, - Long unitAmount, - Object unitAmountDecimal) { - this.currency = currency; - this.extraParams = extraParams; - this.product = product; - this.recurring = recurring; - this.taxBehavior = taxBehavior; - this.unitAmount = unitAmount; - this.unitAmountDecimal = unitAmountDecimal; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Object currency; - - private Map extraParams; - - private Object product; - - private Recurring recurring; - - private TaxBehavior taxBehavior; - - private Long unitAmount; - - private Object unitAmountDecimal; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteUpdateParams.Phase.LineItem.PriceData build() { - return new QuoteUpdateParams.Phase.LineItem.PriceData( - this.currency, - this.extraParams, - this.product, - this.recurring, - this.taxBehavior, - this.unitAmount, - this.unitAmountDecimal); - } - - /** - * Required. Three-letter ISO currency code, in - * lowercase. Must be a supported - * currency. - */ - public Builder setCurrency(String currency) { - this.currency = currency; - return this; - } - - /** - * Required. Three-letter ISO currency code, in - * lowercase. Must be a supported - * currency. - */ - public Builder setCurrency(EmptyParam currency) { - this.currency = currency; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first - * `put/putAll` call, and subsequent calls add additional key/value pairs to the original - * map. See {@link QuoteUpdateParams.Phase.LineItem.PriceData#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 QuoteUpdateParams.Phase.LineItem.PriceData#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. The ID of the product that this price will belong to. */ - public Builder setProduct(String product) { - this.product = product; - return this; - } - - /** Required. The ID of the product that this price will belong to. */ - public Builder setProduct(EmptyParam product) { - this.product = product; - return this; - } - - /** - * The recurring components of a price such as {@code interval} and {@code - * interval_count}. - */ - public Builder setRecurring( - QuoteUpdateParams.Phase.LineItem.PriceData.Recurring recurring) { - this.recurring = recurring; - return this; - } - - /** - * Only required if a default - * tax behavior was not provided in the Stripe Tax settings. Specifies whether the - * price is considered inclusive of taxes or exclusive of taxes. One of {@code inclusive}, - * {@code exclusive}, or {@code unspecified}. Once specified as either {@code inclusive} - * or {@code exclusive}, it cannot be changed. - */ - public Builder setTaxBehavior( - QuoteUpdateParams.Phase.LineItem.PriceData.TaxBehavior taxBehavior) { - this.taxBehavior = taxBehavior; - return this; - } - - /** - * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. - */ - public Builder setUnitAmount(Long unitAmount) { - this.unitAmount = unitAmount; - return this; - } - - /** - * Same as {@code unit_amount}, but accepts a decimal value in cents (or local equivalent) - * with at most 12 decimal places. Only one of {@code unit_amount} and {@code - * unit_amount_decimal} can be set. - */ - public Builder setUnitAmountDecimal(BigDecimal unitAmountDecimal) { - this.unitAmountDecimal = unitAmountDecimal; - return this; - } - - /** - * Same as {@code unit_amount}, but accepts a decimal value in cents (or local equivalent) - * with at most 12 decimal places. Only one of {@code unit_amount} and {@code - * unit_amount_decimal} can be set. - */ - public Builder setUnitAmountDecimal(EmptyParam unitAmountDecimal) { - this.unitAmountDecimal = unitAmountDecimal; - return this; - } - } - - @Getter - public static class Recurring { - /** - * 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. Specifies billing frequency. Either {@code day}, {@code - * week}, {@code month} or {@code year}. - */ - @SerializedName("interval") - Interval interval; - - /** - * The number of intervals between subscription billings. For example, {@code - * interval=month} and {@code interval_count=3} bills every 3 months. Maximum of three - * years interval allowed (3 years, 36 months, or 156 weeks). - */ - @SerializedName("interval_count") - Long intervalCount; - - private Recurring( - Map extraParams, Interval interval, Long intervalCount) { - this.extraParams = extraParams; - this.interval = interval; - this.intervalCount = intervalCount; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private Interval interval; - - private Long intervalCount; - - /** Finalize and obtain parameter instance from this builder. */ - public QuoteUpdateParams.Phase.LineItem.PriceData.Recurring build() { - return new QuoteUpdateParams.Phase.LineItem.PriceData.Recurring( - this.extraParams, this.interval, this.intervalCount); - } - - /** - * 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 - * QuoteUpdateParams.Phase.LineItem.PriceData.Recurring#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 - * QuoteUpdateParams.Phase.LineItem.PriceData.Recurring#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. Specifies billing frequency. Either {@code day}, {@code - * week}, {@code month} or {@code year}. - */ - public Builder setInterval( - QuoteUpdateParams.Phase.LineItem.PriceData.Recurring.Interval interval) { - this.interval = interval; - return this; - } - - /** - * The number of intervals between subscription billings. For example, {@code - * interval=month} and {@code interval_count=3} bills every 3 months. Maximum of three - * years interval allowed (3 years, 36 months, or 156 weeks). - */ - public Builder setIntervalCount(Long intervalCount) { - this.intervalCount = intervalCount; - return this; - } - } - - public enum Interval implements ApiRequestParams.EnumParam { - @SerializedName("day") - DAY("day"), - - @SerializedName("month") - MONTH("month"), - - @SerializedName("week") - WEEK("week"), - - @SerializedName("year") - YEAR("year"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - Interval(String value) { - this.value = value; - } - } - } - - public enum TaxBehavior implements ApiRequestParams.EnumParam { - @SerializedName("exclusive") - EXCLUSIVE("exclusive"), - - @SerializedName("inclusive") - INCLUSIVE("inclusive"), - - @SerializedName("unspecified") - UNSPECIFIED("unspecified"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - TaxBehavior(String value) { - this.value = value; - } - } - } - } - - public enum BillingCycleAnchor implements ApiRequestParams.EnumParam { - @SerializedName("reset") - RESET("reset"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - BillingCycleAnchor(String value) { - this.value = value; - } - } - - public enum CollectionMethod implements ApiRequestParams.EnumParam { - @SerializedName("charge_automatically") - CHARGE_AUTOMATICALLY("charge_automatically"), - - @SerializedName("send_invoice") - SEND_INVOICE("send_invoice"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - CollectionMethod(String value) { - this.value = value; - } - } - - public enum ProrationBehavior implements ApiRequestParams.EnumParam { - @SerializedName("always_invoice") - ALWAYS_INVOICE("always_invoice"), - - @SerializedName("create_prorations") - CREATE_PRORATIONS("create_prorations"), - - @SerializedName("none") - NONE("none"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - ProrationBehavior(String value) { - this.value = value; - } - } - } - @Getter public static class SubscriptionData { /** Describes the period to bill for upon accepting the quote. */ From bdac07dc08963ef3f0a3b169ec51e96173e02055 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 16 Aug 2024 02:40:12 +0000 Subject: [PATCH 04/16] Update generated code for v1204 --- OPENAPI_VERSION | 2 +- .../stripe/model/EventDataClassLookup.java | 3 - .../issuing/DisputeSettlementDetail.java | 142 ------------------ ...DisputeSettlementDetailRetrieveParams.java | 99 ------------ .../com/stripe/service/IssuingService.java | 4 - .../DisputeSettlementDetailService.java | 59 -------- 6 files changed, 1 insertion(+), 308 deletions(-) delete mode 100644 src/main/java/com/stripe/model/issuing/DisputeSettlementDetail.java delete mode 100644 src/main/java/com/stripe/param/issuing/DisputeSettlementDetailRetrieveParams.java delete mode 100644 src/main/java/com/stripe/service/issuing/DisputeSettlementDetailService.java diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a8ae45aaca9..61f85212339 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1203 \ No newline at end of file +v1204 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/EventDataClassLookup.java b/src/main/java/com/stripe/model/EventDataClassLookup.java index 98b99ca6568..50d8a74701d 100644 --- a/src/main/java/com/stripe/model/EventDataClassLookup.java +++ b/src/main/java/com/stripe/model/EventDataClassLookup.java @@ -165,9 +165,6 @@ final class EventDataClassLookup { "issuing.credit_underwriting_record", com.stripe.model.issuing.CreditUnderwritingRecord.class); classLookup.put("issuing.dispute", com.stripe.model.issuing.Dispute.class); - classLookup.put( - "issuing.dispute_settlement_detail", - com.stripe.model.issuing.DisputeSettlementDetail.class); classLookup.put( "issuing.personalization_design", com.stripe.model.issuing.PersonalizationDesign.class); classLookup.put("issuing.physical_bundle", com.stripe.model.issuing.PhysicalBundle.class); diff --git a/src/main/java/com/stripe/model/issuing/DisputeSettlementDetail.java b/src/main/java/com/stripe/model/issuing/DisputeSettlementDetail.java deleted file mode 100644 index 0553a13ccfd..00000000000 --- a/src/main/java/com/stripe/model/issuing/DisputeSettlementDetail.java +++ /dev/null @@ -1,142 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.model.issuing; - -import com.google.gson.annotations.SerializedName; -import com.stripe.exception.StripeException; -import com.stripe.model.HasId; -import com.stripe.net.ApiMode; -import com.stripe.net.ApiRequest; -import com.stripe.net.ApiRequestParams; -import com.stripe.net.ApiResource; -import com.stripe.net.BaseAddress; -import com.stripe.net.RequestOptions; -import com.stripe.param.issuing.DisputeSettlementDetailRetrieveParams; -import java.util.Map; -import lombok.EqualsAndHashCode; -import lombok.Getter; -import lombok.Setter; - -/** - * Represents a record from the card network of a money movement or change in state for an Issuing - * dispute. These records are included in the settlement reports that we receive from networks and - * expose to users as Settlement objects. - */ -@Getter -@Setter -@EqualsAndHashCode(callSuper = false) -public class DisputeSettlementDetail extends ApiResource implements HasId { - /** - * Disputed amount in the card’s currency and in the smallest currency unit. Usually the amount of - * the transaction, but can differ (usually because of currency fluctuation). - */ - @SerializedName("amount") - Long amount; - - /** Time at which the object was created. Measured in seconds since the Unix epoch. */ - @SerializedName("created") - Long created; - - /** - * The currency the original transaction was made in. Three-letter ISO currency code, in lowercase. - * Must be a supported currency. - */ - @SerializedName("currency") - String currency; - - /** The ID of the linked dispute. */ - @SerializedName("dispute") - String dispute; - - /** - * The type of event corresponding to this dispute settlement detail, representing the stage in - * the dispute network lifecycle. - * - *

One of {@code filing}, {@code loss}, {@code representment}, or {@code win}. - */ - @SerializedName("event_type") - String eventType; - - /** Unique identifier for the object. */ - @Getter(onMethod_ = {@Override}) - @SerializedName("id") - String id; - - /** The card used to make the original transaction. */ - @SerializedName("issued_card") - String issuedCard; - - /** - * Has the value {@code true} if the object exists in live mode or the value {@code false} if the - * object exists in test mode. - */ - @SerializedName("livemode") - Boolean livemode; - - /** - * The card network for this dispute settlement detail. One of ["visa", - * "mastercard", "maestro"] - */ - @SerializedName("network") - String network; - - /** - * String representing the object's type. Objects of the same type share the same value. - * - *

Equal to {@code issuing.dispute_settlement_detail}. - */ - @SerializedName("object") - String object; - - /** The ID of the linked card network settlement. */ - @SerializedName("settlement") - String settlement; - - /** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ - public static DisputeSettlementDetail retrieve(String disputeSettlementDetail) - throws StripeException { - return retrieve(disputeSettlementDetail, (Map) null, (RequestOptions) null); - } - - /** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ - public static DisputeSettlementDetail retrieve( - String disputeSettlementDetail, RequestOptions options) throws StripeException { - return retrieve(disputeSettlementDetail, (Map) null, options); - } - - /** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ - public static DisputeSettlementDetail retrieve( - String disputeSettlementDetail, Map params, RequestOptions options) - throws StripeException { - String path = - String.format( - "/v1/issuing/dispute_settlement_details/%s", - ApiResource.urlEncodeId(disputeSettlementDetail)); - ApiRequest request = - new ApiRequest( - BaseAddress.API, ApiResource.RequestMethod.GET, path, params, options, ApiMode.V1); - return getGlobalResponseGetter().request(request, DisputeSettlementDetail.class); - } - - /** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ - public static DisputeSettlementDetail retrieve( - String disputeSettlementDetail, - DisputeSettlementDetailRetrieveParams params, - RequestOptions options) - throws StripeException { - String path = - String.format( - "/v1/issuing/dispute_settlement_details/%s", - ApiResource.urlEncodeId(disputeSettlementDetail)); - ApiResource.checkNullTypedParams(path, params); - ApiRequest request = - new ApiRequest( - BaseAddress.API, - ApiResource.RequestMethod.GET, - path, - ApiRequestParams.paramsToMap(params), - options, - ApiMode.V1); - return getGlobalResponseGetter().request(request, DisputeSettlementDetail.class); - } -} diff --git a/src/main/java/com/stripe/param/issuing/DisputeSettlementDetailRetrieveParams.java b/src/main/java/com/stripe/param/issuing/DisputeSettlementDetailRetrieveParams.java deleted file mode 100644 index a9b7e040cf7..00000000000 --- a/src/main/java/com/stripe/param/issuing/DisputeSettlementDetailRetrieveParams.java +++ /dev/null @@ -1,99 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.param.issuing; - -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 DisputeSettlementDetailRetrieveParams 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 DisputeSettlementDetailRetrieveParams( - 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 DisputeSettlementDetailRetrieveParams build() { - return new DisputeSettlementDetailRetrieveParams(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 - * DisputeSettlementDetailRetrieveParams#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 - * DisputeSettlementDetailRetrieveParams#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 - * DisputeSettlementDetailRetrieveParams#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 DisputeSettlementDetailRetrieveParams#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/IssuingService.java b/src/main/java/com/stripe/service/IssuingService.java index 319756ba0b9..5955d0cdad1 100644 --- a/src/main/java/com/stripe/service/IssuingService.java +++ b/src/main/java/com/stripe/service/IssuingService.java @@ -25,10 +25,6 @@ public com.stripe.service.issuing.CreditUnderwritingRecordService creditUnderwri return new com.stripe.service.issuing.CreditUnderwritingRecordService(this.getResponseGetter()); } - public com.stripe.service.issuing.DisputeSettlementDetailService disputeSettlementDetails() { - return new com.stripe.service.issuing.DisputeSettlementDetailService(this.getResponseGetter()); - } - public com.stripe.service.issuing.DisputeService disputes() { return new com.stripe.service.issuing.DisputeService(this.getResponseGetter()); } diff --git a/src/main/java/com/stripe/service/issuing/DisputeSettlementDetailService.java b/src/main/java/com/stripe/service/issuing/DisputeSettlementDetailService.java deleted file mode 100644 index 8611b7b0fe0..00000000000 --- a/src/main/java/com/stripe/service/issuing/DisputeSettlementDetailService.java +++ /dev/null @@ -1,59 +0,0 @@ -// File generated from our OpenAPI spec -package com.stripe.service.issuing; - -import com.stripe.exception.StripeException; -import com.stripe.model.issuing.DisputeSettlementDetail; -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.issuing.DisputeSettlementDetailRetrieveParams; - -public final class DisputeSettlementDetailService extends ApiService { - public DisputeSettlementDetailService(StripeResponseGetter responseGetter) { - super(responseGetter); - } - - /** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ - public DisputeSettlementDetail retrieve( - String disputeSettlementDetail, DisputeSettlementDetailRetrieveParams params) - throws StripeException { - return retrieve(disputeSettlementDetail, params, (RequestOptions) null); - } - /** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ - public DisputeSettlementDetail retrieve(String disputeSettlementDetail, RequestOptions options) - throws StripeException { - return retrieve(disputeSettlementDetail, (DisputeSettlementDetailRetrieveParams) null, options); - } - /** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ - public DisputeSettlementDetail retrieve(String disputeSettlementDetail) throws StripeException { - return retrieve( - disputeSettlementDetail, - (DisputeSettlementDetailRetrieveParams) null, - (RequestOptions) null); - } - /** Retrieves an Issuing {@code DisputeSettlementDetail} object. */ - public DisputeSettlementDetail retrieve( - String disputeSettlementDetail, - DisputeSettlementDetailRetrieveParams params, - RequestOptions options) - throws StripeException { - String path = - String.format( - "/v1/issuing/dispute_settlement_details/%s", - ApiResource.urlEncodeId(disputeSettlementDetail)); - ApiRequest request = - new ApiRequest( - BaseAddress.API, - ApiResource.RequestMethod.GET, - path, - ApiRequestParams.paramsToMap(params), - options, - ApiMode.V1); - return this.request(request, DisputeSettlementDetail.class); - } -} From 6395c752a07b7fe08cc918fc0cb53b624ba24edc Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:09:14 +0000 Subject: [PATCH 05/16] Update generated code for v1206 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Charge.java | 13 ++++--- .../java/com/stripe/model/PaymentIntent.java | 11 +++--- .../com/stripe/param/ChargeCaptureParams.java | 26 ++++++++------ .../com/stripe/param/ChargeCreateParams.java | 26 ++++++++------ .../param/PaymentIntentCaptureParams.java | 23 +++++++----- .../param/PaymentIntentCreateParams.java | 23 +++++++----- ...entIntentIncrementAuthorizationParams.java | 23 +++++++----- .../param/PaymentIntentUpdateParams.java | 35 ++++++++++-------- .../stripe/param/PaymentLinkCreateParams.java | 24 +++++++------ .../stripe/param/PaymentLinkUpdateParams.java | 36 +++++++++++-------- .../param/checkout/SessionCreateParams.java | 24 +++++++------ 12 files changed, 160 insertions(+), 106 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 61f85212339..66b3e81e837 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1204 \ No newline at end of file +v1206 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 109649ae6d4..db5d9b22e57 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -302,11 +302,14 @@ public class Charge extends ApiResource implements MetadataStore, Balanc ExpandableField sourceTransfer; /** - * 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. + * 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 information + * about requirements, including the 22-character limit, see the Statement + * Descriptor docs. + * + *

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; diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index bf7b066c037..8f5c7916e61 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -336,10 +336,13 @@ public class PaymentIntent extends ApiResource implements HasId, MetadataStore

source; /** - * 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 the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ diff --git a/src/main/java/com/stripe/param/ChargeCaptureParams.java b/src/main/java/com/stripe/param/ChargeCaptureParams.java index bb0c75c1071..ccf85ce8654 100644 --- a/src/main/java/com/stripe/param/ChargeCaptureParams.java +++ b/src/main/java/com/stripe/param/ChargeCaptureParams.java @@ -54,11 +54,14 @@ public class ChargeCaptureParams extends ApiRequestParams { String receiptEmail; /** - * 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. + * 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 information + * about requirements, including the 22-character limit, see the Statement + * Descriptor docs. + * + *

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; @@ -251,11 +254,14 @@ public Builder setReceiptEmail(String receiptEmail) { } /** - * 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. + * 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 information + * about requirements, including the 22-character limit, see the Statement + * Descriptor docs. + * + *

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; diff --git a/src/main/java/com/stripe/param/ChargeCreateParams.java b/src/main/java/com/stripe/param/ChargeCreateParams.java index 13b205d5be8..f46f40be90f 100644 --- a/src/main/java/com/stripe/param/ChargeCreateParams.java +++ b/src/main/java/com/stripe/param/ChargeCreateParams.java @@ -142,11 +142,14 @@ public class ChargeCreateParams extends ApiRequestParams { String source; /** - * 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. + * 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 information + * about requirements, including the 22-character limit, see the Statement + * Descriptor docs. + * + *

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; @@ -527,11 +530,14 @@ public Builder setSource(String source) { } /** - * 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. + * 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 information + * about requirements, including the 22-character limit, see the Statement + * Descriptor docs. + * + *

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; diff --git a/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java b/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java index a737d0ddc66..ba7d0ba80c8 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCaptureParams.java @@ -71,10 +71,13 @@ public class PaymentIntentCaptureParams extends ApiRequestParams { Object paymentDetails; /** - * 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 the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ @@ -321,11 +324,13 @@ public Builder setPaymentDetails(EmptyParam paymentDetails) { } /** - * 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 - * the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index 0e67b582341..9bcd1851ba5 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -275,10 +275,13 @@ public class PaymentIntentCreateParams extends ApiRequestParams { Shipping shipping; /** - * 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 the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ @@ -932,11 +935,13 @@ public Builder setShipping(PaymentIntentCreateParams.Shipping shipping) { } /** - * 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 - * the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ diff --git a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java index 76b1a14aece..19fb19b73a4 100644 --- a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java @@ -60,10 +60,13 @@ public class PaymentIntentIncrementAuthorizationParams extends ApiRequestParams Map metadata; /** - * 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 the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ @@ -250,11 +253,13 @@ public Builder putAllMetadata(Map map) { } /** - * 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 - * the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 137c8ab92fb..9f4d3b74855 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -166,10 +166,13 @@ public class PaymentIntentUpdateParams extends ApiRequestParams { Object shipping; /** - * 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 the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ @@ -731,11 +734,13 @@ public Builder setShipping(EmptyParam shipping) { } /** - * 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 - * the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ @@ -745,11 +750,13 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * 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 - * the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index a534e190e9e..759eff1a7ba 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -3542,11 +3542,13 @@ public static class PaymentIntentData { SetupFutureUsage setupFutureUsage; /** - * Text that appears on the customer's statement as the statement - * descriptor for a non-card charge. This value overrides the account's default statement - * descriptor. Setting this value for a card charge returns an error. For card charges, set the - * the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ @@ -3718,11 +3720,13 @@ public Builder setSetupFutureUsage( } /** - * 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 the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index 7d91a64532a..2be4633ae68 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -3240,11 +3240,13 @@ public static class PaymentIntentData { Object metadata; /** - * 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 - * the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ @@ -3401,11 +3403,13 @@ public Builder setMetadata(Map metadata) { } /** - * 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 the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ @@ -3415,11 +3419,13 @@ public Builder setStatementDescriptor(String statementDescriptor) { } /** - * 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 the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index c98f3c4caa7..0d05b58ddb1 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -4780,11 +4780,13 @@ public static class PaymentIntentData { Shipping shipping; /** - * 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 - * the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ @@ -5027,11 +5029,13 @@ public Builder setShipping(SessionCreateParams.PaymentIntentData.Shipping shippi } /** - * 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 the Statement + * Descriptor docs. + * + *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix * instead. */ From 1cc5b653403d817bc8200abb2681799c947baf31 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 20:59:00 +0000 Subject: [PATCH 06/16] Update generated code for v1207 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Dispute.java | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 66b3e81e837..4bdd5cad6c4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1206 \ No newline at end of file +v1207 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java index 4ae2b714689..4d138e88694 100644 --- a/src/main/java/com/stripe/model/Dispute.java +++ b/src/main/java/com/stripe/model/Dispute.java @@ -1019,8 +1019,7 @@ public static class VisaCompellingEvidence3 extends StripeObject { /** * Visa Compelling Evidence 3.0 eligibility status. * - *

One of {@code accepted}, {@code not_qualified}, {@code partner_rejected}, {@code - * qualified}, {@code requires_action}, or {@code submitted}. + *

One of {@code not_qualified}, {@code qualified}, or {@code requires_action}. */ @SerializedName("status") String status; From 3cb72ffea64d992c9ed067cae11025611a223b2b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 19 Aug 2024 22:40:09 +0000 Subject: [PATCH 07/16] Update generated code for v1208 --- OPENAPI_VERSION | 2 +- .../java/com/stripe/param/InvoiceCreatePreviewParams.java | 6 ++++-- .../com/stripe/param/InvoiceUpcomingLinesListParams.java | 6 ++++-- .../java/com/stripe/param/InvoiceUpcomingLinesParams.java | 6 ++++-- src/main/java/com/stripe/param/InvoiceUpcomingParams.java | 6 ++++-- .../java/com/stripe/param/SubscriptionCreateParams.java | 5 +++-- .../com/stripe/param/SubscriptionScheduleCreateParams.java | 6 ++++-- .../com/stripe/param/SubscriptionScheduleUpdateParams.java | 6 ++++-- .../java/com/stripe/param/SubscriptionUpdateParams.java | 5 +++-- 9 files changed, 31 insertions(+), 17 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4bdd5cad6c4..7d83e2ade32 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1207 \ No newline at end of file +v1208 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index 68cf87fea45..1b87c57ceb3 100644 --- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java @@ -9116,7 +9116,8 @@ public static class PriceData { /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. + * how much to charge or a negative integer representing the amount to credit to the + * customer. */ @SerializedName("unit_amount") Long unitAmount; @@ -9238,7 +9239,8 @@ public Builder setTaxBehavior( /** * A positive integer in cents (or local equivalent) (or 0 for a free price) - * representing how much to charge. + * representing how much to charge or a negative integer representing the amount to + * credit to the customer. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java index fec61611f63..0be485f1f37 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java @@ -9688,7 +9688,8 @@ public static class PriceData { /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. + * how much to charge or a negative integer representing the amount to credit to the + * customer. */ @SerializedName("unit_amount") Long unitAmount; @@ -9811,7 +9812,8 @@ public Builder setTaxBehavior( /** * A positive integer in cents (or local equivalent) (or 0 for a free price) - * representing how much to charge. + * representing how much to charge or a negative integer representing the amount to + * credit to the customer. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java index 6be0b756d78..353c552be29 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java @@ -9622,7 +9622,8 @@ public static class PriceData { /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. + * how much to charge or a negative integer representing the amount to credit to the + * customer. */ @SerializedName("unit_amount") Long unitAmount; @@ -9744,7 +9745,8 @@ public Builder setTaxBehavior( /** * A positive integer in cents (or local equivalent) (or 0 for a free price) - * representing how much to charge. + * representing how much to charge or a negative integer representing the amount to + * credit to the customer. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java index 8b2d25570f0..f9617d12286 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java @@ -9491,7 +9491,8 @@ public static class PriceData { /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. + * how much to charge or a negative integer representing the amount to credit to the + * customer. */ @SerializedName("unit_amount") Long unitAmount; @@ -9611,7 +9612,8 @@ public Builder setTaxBehavior( /** * A positive integer in cents (or local equivalent) (or 0 for a free price) - * representing how much to charge. + * representing how much to charge or a negative integer representing the amount to + * credit to the customer. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index e0f4e383da0..abd5bfa02aa 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -1744,7 +1744,7 @@ public static class PriceData { /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how - * much to charge. + * much to charge or a negative integer representing the amount to credit to the customer. */ @SerializedName("unit_amount") Long unitAmount; @@ -1860,7 +1860,8 @@ public Builder setTaxBehavior( /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. + * how much to charge or a negative integer representing the amount to credit to the + * customer. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java index e90fe073b50..3edc3f373fb 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleCreateParams.java @@ -2768,7 +2768,8 @@ public static class PriceData { /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. + * how much to charge or a negative integer representing the amount to credit to the + * customer. */ @SerializedName("unit_amount") Long unitAmount; @@ -2888,7 +2889,8 @@ public Builder setTaxBehavior( /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. + * how much to charge or a negative integer representing the amount to credit to the + * customer. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; diff --git a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java index eadc7a0bda5..b048d49a3dc 100644 --- a/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionScheduleUpdateParams.java @@ -2854,7 +2854,8 @@ public static class PriceData { /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. + * how much to charge or a negative integer representing the amount to credit to the + * customer. */ @SerializedName("unit_amount") Long unitAmount; @@ -2991,7 +2992,8 @@ public Builder setTaxBehavior( /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. + * how much to charge or a negative integer representing the amount to credit to the + * customer. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index 964905ebf3e..9ecbe1b74ab 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -1803,7 +1803,7 @@ public static class PriceData { /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing how - * much to charge. + * much to charge or a negative integer representing the amount to credit to the customer. */ @SerializedName("unit_amount") Long unitAmount; @@ -1935,7 +1935,8 @@ public Builder setTaxBehavior( /** * A positive integer in cents (or local equivalent) (or 0 for a free price) representing - * how much to charge. + * how much to charge or a negative integer representing the amount to credit to the + * customer. */ public Builder setUnitAmount(Long unitAmount) { this.unitAmount = unitAmount; From 17c6812b15792bdb1ce1cfb02cd2e9b4fd027421 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:36:59 +0000 Subject: [PATCH 08/16] Update generated code for v1209 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/param/PaymentLinkCreateParams.java | 4 ++-- src/main/java/com/stripe/param/PaymentLinkUpdateParams.java | 6 +++--- .../java/com/stripe/param/checkout/SessionCreateParams.java | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7d83e2ade32..cfee5fdbbc9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1208 \ No newline at end of file +v1209 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index 759eff1a7ba..9a9d38b9ea3 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -3557,7 +3557,7 @@ public static class PaymentIntentData { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the * customer's statement. */ @@ -3737,7 +3737,7 @@ public Builder setStatementDescriptor(String statementDescriptor) { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the * customer's statement. */ diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index 2be4633ae68..b10fe7734b7 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -3255,7 +3255,7 @@ public static class PaymentIntentData { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the * customer's statement. */ @@ -3436,7 +3436,7 @@ public Builder setStatementDescriptor(EmptyParam statementDescriptor) { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the * customer's statement. */ @@ -3447,7 +3447,7 @@ public Builder setStatementDescriptorSuffix(String statementDescriptorSuffix) { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the * customer's statement. */ diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index 0d05b58ddb1..069a92d7aad 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -4795,7 +4795,7 @@ public static class PaymentIntentData { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the * customer's statement. */ @@ -5046,7 +5046,7 @@ public Builder setStatementDescriptor(String statementDescriptor) { /** * Provides information about a card charge. Concatenated to the account's statement + * href="https://docs.stripe.com/get-started/account/statement-descriptors#static">statement * descriptor prefix to form the complete statement descriptor that appears on the * customer's statement. */ From 8378c2e638e788c633a3255ab3b316baa5dd11ce Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 21 Aug 2024 07:09:01 +0000 Subject: [PATCH 09/16] Update generated code for v1210 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Invoice.java | 24 ++++++------ src/main/java/com/stripe/model/Order.java | 24 ++++++------ .../com/stripe/model/QuotePreviewInvoice.java | 24 ++++++------ src/main/java/com/stripe/model/TaxId.java | 16 ++++---- .../com/stripe/model/checkout/Session.java | 24 ++++++------ .../com/stripe/model/tax/Calculation.java | 24 ++++++------ .../com/stripe/model/tax/Transaction.java | 24 ++++++------ .../stripe/param/CustomerCreateParams.java | 37 ++++++++++-------- .../param/CustomerTaxIdCreateParams.java | 35 +++++++++-------- .../param/InvoiceCreatePreviewParams.java | 39 ++++++++++--------- .../param/InvoiceUpcomingLinesListParams.java | 39 ++++++++++--------- .../param/InvoiceUpcomingLinesParams.java | 39 ++++++++++--------- .../stripe/param/InvoiceUpcomingParams.java | 39 ++++++++++--------- .../com/stripe/param/OrderCreateParams.java | 39 ++++++++++--------- .../com/stripe/param/OrderUpdateParams.java | 39 ++++++++++--------- .../param/TaxIdCollectionCreateParams.java | 35 +++++++++-------- .../com/stripe/param/TaxIdCreateParams.java | 35 +++++++++-------- .../param/tax/CalculationCreateParams.java | 39 ++++++++++--------- 19 files changed, 305 insertions(+), 272 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index cfee5fdbbc9..e8a656f6d03 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1209 \ No newline at end of file +v1210 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java index 8b6bec98484..b86b1a2be04 100644 --- a/src/main/java/com/stripe/model/Invoice.java +++ b/src/main/java/com/stripe/model/Invoice.java @@ -2605,18 +2605,18 @@ public static class CustomerTaxId extends StripeObject { /** * The type of the tax ID, one of {@code ad_nrt}, {@code ar_cuit}, {@code eu_vat}, {@code * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, - * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code pe_ruc}, {@code ro_tin}, {@code - * rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, {@code gb_vat}, - * {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code no_vat}, {@code - * no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn}, - * {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code th_vat}, - * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn}, {@code us_ein}, - * {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, - * {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code - * sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, - * {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code - * tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, - * {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code unknown}. + * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code hr_oib}, {@code pe_ruc}, {@code + * ro_tin}, {@code rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, + * {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code + * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, + * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, + * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn}, + * {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code + * ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code + * cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, + * {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code + * ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, {@code kz_bin}, + * {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code unknown}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/Order.java b/src/main/java/com/stripe/model/Order.java index e9916dac604..9f18918071c 100644 --- a/src/main/java/com/stripe/model/Order.java +++ b/src/main/java/com/stripe/model/Order.java @@ -1723,18 +1723,18 @@ public static class TaxId extends StripeObject { /** * The type of the tax ID, one of {@code ad_nrt}, {@code ar_cuit}, {@code eu_vat}, {@code * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, - * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code pe_ruc}, {@code ro_tin}, {@code - * rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, {@code gb_vat}, - * {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code no_vat}, {@code - * no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn}, - * {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code - * th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn}, - * {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, - * {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, - * {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code - * ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, - * {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, {@code - * kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code + * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code hr_oib}, {@code pe_ruc}, {@code + * ro_tin}, {@code rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, + * {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code + * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, + * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code + * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, + * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code + * ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, + * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code + * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, + * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code * unknown}. */ @SerializedName("type") diff --git a/src/main/java/com/stripe/model/QuotePreviewInvoice.java b/src/main/java/com/stripe/model/QuotePreviewInvoice.java index 37cb84e6863..ff81e30b827 100644 --- a/src/main/java/com/stripe/model/QuotePreviewInvoice.java +++ b/src/main/java/com/stripe/model/QuotePreviewInvoice.java @@ -1082,18 +1082,18 @@ public static class CustomerTaxId extends StripeObject { /** * The type of the tax ID, one of {@code ad_nrt}, {@code ar_cuit}, {@code eu_vat}, {@code * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, - * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code pe_ruc}, {@code ro_tin}, {@code - * rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, {@code gb_vat}, - * {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code no_vat}, {@code - * no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn}, - * {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code th_vat}, - * {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn}, {@code us_ein}, - * {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, - * {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code cl_tin}, {@code - * sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, {@code ua_vat}, - * {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code ke_pin}, {@code - * tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, {@code kz_bin}, {@code ng_tin}, - * {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code unknown}. + * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code hr_oib}, {@code pe_ruc}, {@code + * ro_tin}, {@code rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, + * {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code + * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, + * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, + * {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn}, + * {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code + * ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, {@code + * cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code ge_vat}, + * {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, {@code + * ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, {@code kz_bin}, + * {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code unknown}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/TaxId.java b/src/main/java/com/stripe/model/TaxId.java index ccfc41296fb..d49bfc8927e 100644 --- a/src/main/java/com/stripe/model/TaxId.java +++ b/src/main/java/com/stripe/model/TaxId.java @@ -80,14 +80,14 @@ public class TaxId extends ApiResource implements HasId { * ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, {@code cn_tin}, * {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, * {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code - * hk_br}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code - * jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code - * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code - * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, - * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, - * {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code - * za_vat}. Note that some legacy tax IDs have type {@code unknown} + * hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code + * is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code + * kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code + * ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, + * {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, + * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, + * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, + * or {@code za_vat}. Note that some legacy tax IDs have type {@code unknown} */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index f3bcea9953a..58baca87e80 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -1271,18 +1271,18 @@ public static class TaxId extends StripeObject { /** * The type of the tax ID, one of {@code ad_nrt}, {@code ar_cuit}, {@code eu_vat}, {@code * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, - * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code pe_ruc}, {@code ro_tin}, {@code - * rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, {@code gb_vat}, - * {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code no_vat}, {@code - * no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn}, - * {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code - * th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn}, - * {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, - * {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, - * {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code - * ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, - * {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, {@code - * kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code + * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code hr_oib}, {@code pe_ruc}, {@code + * ro_tin}, {@code rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, + * {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code + * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, + * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code + * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, + * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code + * ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, + * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code + * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, + * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code * unknown}. */ @SerializedName("type") diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java index da69ddf7ed6..3ea3e96643c 100644 --- a/src/main/java/com/stripe/model/tax/Calculation.java +++ b/src/main/java/com/stripe/model/tax/Calculation.java @@ -316,18 +316,18 @@ public static class TaxId extends StripeObject { /** * The type of the tax ID, one of {@code ad_nrt}, {@code ar_cuit}, {@code eu_vat}, {@code * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, - * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code pe_ruc}, {@code ro_tin}, {@code - * rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, {@code gb_vat}, - * {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code no_vat}, {@code - * no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn}, - * {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code - * th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn}, - * {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, - * {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, - * {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code - * ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, - * {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, {@code - * kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code + * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code hr_oib}, {@code pe_ruc}, {@code + * ro_tin}, {@code rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, + * {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code + * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, + * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code + * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, + * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code + * ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, + * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code + * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, + * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code * unknown}. */ @SerializedName("type") diff --git a/src/main/java/com/stripe/model/tax/Transaction.java b/src/main/java/com/stripe/model/tax/Transaction.java index 5dd3c8adf39..28fd2b066eb 100644 --- a/src/main/java/com/stripe/model/tax/Transaction.java +++ b/src/main/java/com/stripe/model/tax/Transaction.java @@ -363,18 +363,18 @@ public static class TaxId extends StripeObject { /** * The type of the tax ID, one of {@code ad_nrt}, {@code ar_cuit}, {@code eu_vat}, {@code * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, - * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code pe_ruc}, {@code ro_tin}, {@code - * rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, {@code gb_vat}, - * {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code no_vat}, {@code - * no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, {@code ru_inn}, - * {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code tw_vat}, {@code - * th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, {@code my_itn}, - * {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code ca_pst_bc}, - * {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code ae_trn}, - * {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, {@code - * ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code si_tin}, - * {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, {@code - * kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code + * {@code do_rcn}, {@code ec_ruc}, {@code eu_oss_vat}, {@code hr_oib}, {@code pe_ruc}, {@code + * ro_tin}, {@code rs_pib}, {@code sv_nit}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, + * {@code gb_vat}, {@code nz_gst}, {@code au_abn}, {@code au_arn}, {@code in_gst}, {@code + * no_vat}, {@code no_voec}, {@code za_vat}, {@code ch_vat}, {@code mx_rfc}, {@code sg_uen}, + * {@code ru_inn}, {@code ru_kpp}, {@code ca_bn}, {@code hk_br}, {@code es_cif}, {@code + * tw_vat}, {@code th_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code li_uid}, + * {@code my_itn}, {@code us_ein}, {@code kr_brn}, {@code ca_qst}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code my_sst}, {@code sg_gst}, {@code + * ae_trn}, {@code cl_tin}, {@code sa_vat}, {@code id_npwp}, {@code my_frp}, {@code il_vat}, + * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code + * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, + * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, or {@code * unknown}. */ @SerializedName("type") diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java index 0c8f8499433..f4d8e8bcab7 100644 --- a/src/main/java/com/stripe/param/CustomerCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerCreateParams.java @@ -1667,14 +1667,14 @@ public static class TaxIdData { * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code * cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, * {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code - * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, - * {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, - * {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code - * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, - * {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code - * ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, - * {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code - * us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, + * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code + * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, + * {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code + * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1738,15 +1738,15 @@ public Builder putAllExtraParam(Map map) { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code - * jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, - * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code - * za_vat} + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code + * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, + * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, + * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code + * vn_tin}, or {@code za_vat} */ public Builder setType(CustomerCreateParams.TaxIdData.Type type) { this.type = type; @@ -1857,6 +1857,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hr_oib") + HR_OIB("hr_oib"), + @SerializedName("hu_tin") HU_TIN("hu_tin"), diff --git a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java index 126bb14ea85..68592a22adc 100644 --- a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java @@ -31,14 +31,14 @@ public class CustomerTaxIdCreateParams extends ApiRequestParams { * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, * {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, * {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code - * ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code - * is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code - * ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, - * {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, - * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, - * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, - * or {@code za_vat} + * ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code + * in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code + * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code + * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, + * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, + * {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, + * {@code tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -132,14 +132,14 @@ public Builder putAllExtraParam(Map map) { * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code * cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, * {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code - * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, - * {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, - * {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code - * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, - * {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code - * ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, - * {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code - * us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, + * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code + * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, + * {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code + * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(CustomerTaxIdCreateParams.Type type) { this.type = type; @@ -250,6 +250,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hr_oib") + HR_OIB("hr_oib"), + @SerializedName("hu_tin") HU_TIN("hu_tin"), diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index 1b87c57ceb3..b64cb0c393b 100644 --- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java @@ -1359,15 +1359,15 @@ public static class TaxId { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code - * jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, - * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code - * za_vat} + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code + * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, + * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, + * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code + * vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1434,15 +1434,15 @@ public Builder putAllExtraParam(Map map) { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code - * id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, - * {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code - * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code - * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, - * {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code - * tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, - * or {@code za_vat} + * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code + * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, + * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code + * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, + * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code + * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceCreatePreviewParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1553,6 +1553,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hr_oib") + HR_OIB("hr_oib"), + @SerializedName("hu_tin") HU_TIN("hu_tin"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java index 0be485f1f37..db5cb2bfbcf 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java @@ -1873,15 +1873,15 @@ public static class TaxId { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code - * jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, - * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code - * za_vat} + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code + * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, + * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, + * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code + * vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1948,15 +1948,15 @@ public Builder putAllExtraParam(Map map) { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code - * id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, - * {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code - * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code - * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, - * {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code - * tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, - * or {@code za_vat} + * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code + * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, + * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code + * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, + * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code + * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceUpcomingLinesListParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -2067,6 +2067,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hr_oib") + HR_OIB("hr_oib"), + @SerializedName("hu_tin") HU_TIN("hu_tin"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java index 353c552be29..38addeb5f03 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java @@ -1865,15 +1865,15 @@ public static class TaxId { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code - * jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, - * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code - * za_vat} + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code + * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, + * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, + * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code + * vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1940,15 +1940,15 @@ public Builder putAllExtraParam(Map map) { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code - * id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, - * {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code - * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code - * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, - * {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code - * tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, - * or {@code za_vat} + * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code + * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, + * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code + * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, + * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code + * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceUpcomingLinesParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -2059,6 +2059,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hr_oib") + HR_OIB("hr_oib"), + @SerializedName("hu_tin") HU_TIN("hu_tin"), diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java index f9617d12286..8aa48f0322d 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java @@ -1787,15 +1787,15 @@ public static class TaxId { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code - * jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, - * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code - * za_vat} + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code + * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, + * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, + * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code + * vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -1862,15 +1862,15 @@ public Builder putAllExtraParam(Map map) { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code - * id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, - * {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code - * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code - * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, - * {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code - * tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, - * or {@code za_vat} + * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code + * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, + * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code + * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, + * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code + * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ public Builder setType(InvoiceUpcomingParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1981,6 +1981,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hr_oib") + HR_OIB("hr_oib"), + @SerializedName("hu_tin") HU_TIN("hu_tin"), diff --git a/src/main/java/com/stripe/param/OrderCreateParams.java b/src/main/java/com/stripe/param/OrderCreateParams.java index c3d2375d885..993e6cfc3bf 100644 --- a/src/main/java/com/stripe/param/OrderCreateParams.java +++ b/src/main/java/com/stripe/param/OrderCreateParams.java @@ -8079,15 +8079,15 @@ public static class TaxId { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code - * jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, - * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code - * za_vat} + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code + * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, + * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, + * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code + * vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -8153,15 +8153,15 @@ public Builder putAllExtraParam(Map map) { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code - * id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, - * {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code - * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code - * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, - * {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code - * tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, - * or {@code za_vat} + * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code + * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, + * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code + * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, + * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code + * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ public Builder setType(OrderCreateParams.TaxDetails.TaxId.Type type) { this.type = type; @@ -8272,6 +8272,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hr_oib") + HR_OIB("hr_oib"), + @SerializedName("hu_tin") HU_TIN("hu_tin"), diff --git a/src/main/java/com/stripe/param/OrderUpdateParams.java b/src/main/java/com/stripe/param/OrderUpdateParams.java index a64521f3190..fc79b10f7a7 100644 --- a/src/main/java/com/stripe/param/OrderUpdateParams.java +++ b/src/main/java/com/stripe/param/OrderUpdateParams.java @@ -8688,15 +8688,15 @@ public static class TaxId { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code - * jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, - * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code - * za_vat} + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code + * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, + * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, + * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code + * vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -8762,15 +8762,15 @@ public Builder putAllExtraParam(Map map) { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code - * id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, - * {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code - * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code - * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, - * {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code - * tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, - * or {@code za_vat} + * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code + * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, + * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code + * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, + * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code + * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ public Builder setType(OrderUpdateParams.TaxDetails.TaxId.Type type) { this.type = type; @@ -8887,6 +8887,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hr_oib") + HR_OIB("hr_oib"), + @SerializedName("hu_tin") HU_TIN("hu_tin"), diff --git a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java index cdf5f9d227a..5969731c533 100644 --- a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java @@ -31,14 +31,14 @@ public class TaxIdCollectionCreateParams extends ApiRequestParams { * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, * {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, * {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code - * ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code - * is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code - * ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, - * {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, - * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, - * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, - * or {@code za_vat} + * ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code + * in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code + * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code + * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, + * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, + * {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, + * {@code tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -132,14 +132,14 @@ public Builder putAllExtraParam(Map map) { * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code * cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, * {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code - * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, - * {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, - * {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code - * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, - * {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code - * ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, - * {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code - * us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, + * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code + * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, + * {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code + * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(TaxIdCollectionCreateParams.Type type) { this.type = type; @@ -250,6 +250,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hr_oib") + HR_OIB("hr_oib"), + @SerializedName("hu_tin") HU_TIN("hu_tin"), diff --git a/src/main/java/com/stripe/param/TaxIdCreateParams.java b/src/main/java/com/stripe/param/TaxIdCreateParams.java index f7a412a5836..adc4c5ff965 100644 --- a/src/main/java/com/stripe/param/TaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCreateParams.java @@ -35,14 +35,14 @@ public class TaxIdCreateParams extends ApiRequestParams { * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, * {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, {@code ec_ruc}, * {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code gb_vat}, {@code - * ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code - * is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code - * kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code - * ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, - * {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, - * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, - * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, - * or {@code za_vat} + * ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, {@code + * in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code + * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code + * my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, + * {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, + * {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, + * {@code tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -146,14 +146,14 @@ public Builder setOwner(TaxIdCreateParams.Owner owner) { * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code * cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, {@code do_rcn}, * {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code eu_vat}, {@code - * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, {@code il_vat}, - * {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, - * {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code my_frp}, {@code - * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code nz_gst}, - * {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code - * ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, {@code si_tin}, - * {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code - * us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, {@code id_npwp}, + * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code jp_trn}, + * {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, {@code + * rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code sg_uen}, + * {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, {@code + * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} */ public Builder setType(TaxIdCreateParams.Type type) { this.type = type; @@ -380,6 +380,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hr_oib") + HR_OIB("hr_oib"), + @SerializedName("hu_tin") HU_TIN("hu_tin"), diff --git a/src/main/java/com/stripe/param/tax/CalculationCreateParams.java b/src/main/java/com/stripe/param/tax/CalculationCreateParams.java index 7a834bdbfbc..1eed255a0ed 100644 --- a/src/main/java/com/stripe/param/tax/CalculationCreateParams.java +++ b/src/main/java/com/stripe/param/tax/CalculationCreateParams.java @@ -631,15 +631,15 @@ public static class TaxId { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, {@code - * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code id_npwp}, - * {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, {@code - * jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code mx_rfc}, - * {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code - * no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code ro_tin}, - * {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, {@code - * sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code tw_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, or {@code - * za_vat} + * eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code hu_tin}, + * {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code + * jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code + * no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, + * {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, + * {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code + * vn_tin}, or {@code za_vat} */ @SerializedName("type") Type type; @@ -706,15 +706,15 @@ public Builder putAllExtraParam(Map map) { * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code * ch_vat}, {@code cl_tin}, {@code cn_tin}, {@code co_nit}, {@code cr_tin}, {@code de_stn}, * {@code do_rcn}, {@code ec_ruc}, {@code eg_tin}, {@code es_cif}, {@code eu_oss_vat}, - * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hu_tin}, {@code - * id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, {@code jp_rn}, - * {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code - * mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, - * {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code ph_tin}, {@code - * ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, {@code sg_gst}, - * {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code tr_tin}, {@code - * tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, {@code vn_tin}, - * or {@code za_vat} + * {@code eu_vat}, {@code gb_vat}, {@code ge_vat}, {@code hk_br}, {@code hr_oib}, {@code + * hu_tin}, {@code id_npwp}, {@code il_vat}, {@code in_gst}, {@code is_vat}, {@code jp_cn}, + * {@code jp_rn}, {@code jp_trn}, {@code ke_pin}, {@code kr_brn}, {@code kz_bin}, {@code + * li_uid}, {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, + * {@code no_vat}, {@code no_voec}, {@code nz_gst}, {@code om_vat}, {@code pe_ruc}, {@code + * ph_tin}, {@code ro_tin}, {@code rs_pib}, {@code ru_inn}, {@code ru_kpp}, {@code sa_vat}, + * {@code sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sv_nit}, {@code th_vat}, {@code + * tr_tin}, {@code tw_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code ve_rif}, + * {@code vn_tin}, or {@code za_vat} */ public Builder setType(CalculationCreateParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -825,6 +825,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("hk_br") HK_BR("hk_br"), + @SerializedName("hr_oib") + HR_OIB("hr_oib"), + @SerializedName("hu_tin") HU_TIN("hu_tin"), From d099d5175931f07c3413046ad141116af703675f Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Wed, 21 Aug 2024 08:58:22 +0000 Subject: [PATCH 10/16] Update generated code for v1211 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/CustomerSession.java | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index e8a656f6d03..0760c580144 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1210 \ No newline at end of file +v1211 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/CustomerSession.java b/src/main/java/com/stripe/model/CustomerSession.java index b9f64b5433a..547b324c9b1 100644 --- a/src/main/java/com/stripe/model/CustomerSession.java +++ b/src/main/java/com/stripe/model/CustomerSession.java @@ -20,6 +20,14 @@ /** * A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access * control over a Customer. + * + *

Related guides: Customer + * Session with the Payment Element, Customer Session with + * the Pricing Table, Customer Session + * with the Buy Button. */ @Getter @Setter From 4510ea00cb921201a35dc6b27efaac91a4649e46 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 00:44:24 +0000 Subject: [PATCH 11/16] Update generated code for v1212 --- OPENAPI_VERSION | 2 +- ...mentIntentIncrementAuthorizationParams.java | 18 +++++------------- 2 files changed, 6 insertions(+), 14 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0760c580144..662d9dad4db 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1211 \ No newline at end of file +v1212 \ No newline at end of file diff --git a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java index 19fb19b73a4..6fab44e774c 100644 --- a/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentIncrementAuthorizationParams.java @@ -60,15 +60,11 @@ public class PaymentIntentIncrementAuthorizationParams extends ApiRequestParams Map metadata; /** - * Text that appears on the customer's statement as the statement descriptor for a non-card - * charge. This value overrides the account's default statement descriptor. For information about - * requirements, including the 22-character limit, see the Statement * Descriptor docs. - * - *

Setting this value for a card charge returns an error. For card charges, set the statement_descriptor_suffix - * instead. */ @SerializedName("statement_descriptor") String statementDescriptor; @@ -253,15 +249,11 @@ public Builder putAllMetadata(Map map) { } /** - * Text that appears on the customer's statement as the statement descriptor for a non-card - * charge. This value overrides the account's default statement descriptor. For information + * Text that appears on the customer's statement as the statement descriptor for a non-card or + * card charge. This value overrides the account's default statement descriptor. For information * about requirements, including the 22-character limit, see the Statement * Descriptor docs. - * - *

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; From 985808f26796e00f995c907e910e8c45c690dfb2 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 15:28:15 +0000 Subject: [PATCH 12/16] Update generated code for v1213 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Account.java | 9 + src/main/java/com/stripe/model/Charge.java | 8 + .../com/stripe/model/ConfirmationToken.java | 18 +- .../java/com/stripe/model/PaymentIntent.java | 32 +++ .../java/com/stripe/model/PaymentMethod.java | 19 +- .../com/stripe/param/AccountCreateParams.java | 95 +++++++ .../com/stripe/param/AccountUpdateParams.java | 95 +++++++ .../param/ConfirmationTokenCreateParams.java | 81 ++++++ .../CustomerListPaymentMethodsParams.java | 3 + .../CustomerPaymentMethodListParams.java | 3 + .../param/PaymentIntentConfirmParams.java | 241 ++++++++++++++++++ .../param/PaymentIntentCreateParams.java | 241 ++++++++++++++++++ .../param/PaymentIntentUpdateParams.java | 241 ++++++++++++++++++ .../param/PaymentMethodCreateParams.java | 78 ++++++ .../stripe/param/PaymentMethodListParams.java | 3 + .../param/SetupIntentConfirmParams.java | 81 ++++++ .../stripe/param/SetupIntentCreateParams.java | 81 ++++++ .../stripe/param/SetupIntentUpdateParams.java | 81 ++++++ 19 files changed, 1401 insertions(+), 11 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 662d9dad4db..594d33c9500 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1212 \ No newline at end of file +v1213 \ 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 9f06e185ad0..baf4f49a6d1 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -1100,6 +1100,15 @@ public static class Capabilities extends StripeObject { @SerializedName("link_payments") String linkPayments; + /** + * The status of the MB WAY payments capability of the account, or whether the account can + * directly process MB WAY charges. + * + *

One of {@code active}, {@code inactive}, or {@code pending}. + */ + @SerializedName("mb_way_payments") + String mbWayPayments; + /** * The status of the MobilePay capability of the account, or whether the account can directly * process MobilePay charges. diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index db5d9b22e57..5099ee9e71f 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1199,6 +1199,9 @@ public static class PaymentMethodDetails extends StripeObject { @SerializedName("link") Link link; + @SerializedName("mb_way") + MbWay mbWay; + @SerializedName("mobilepay") Mobilepay mobilepay; @@ -2755,6 +2758,11 @@ public static class Link extends StripeObject { String country; } + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class MbWay extends StripeObject {} + @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java index eabdb95976c..e84760c0fe5 100644 --- a/src/main/java/com/stripe/model/ConfirmationToken.java +++ b/src/main/java/com/stripe/model/ConfirmationToken.java @@ -319,6 +319,9 @@ public static class PaymentMethodPreview extends StripeObject { @SerializedName("link") Link link; + @SerializedName("mb_way") + MbWay mbWay; + @SerializedName("mobilepay") Mobilepay mobilepay; @@ -373,11 +376,11 @@ public static class PaymentMethodPreview extends StripeObject { * {@code amazon_pay}, {@code au_becs_debit}, {@code bacs_debit}, {@code bancontact}, {@code * blik}, {@code boleto}, {@code card}, {@code card_present}, {@code cashapp}, {@code * customer_balance}, {@code eps}, {@code fpx}, {@code giropay}, {@code grabpay}, {@code ideal}, - * {@code interac_present}, {@code klarna}, {@code konbini}, {@code link}, {@code mobilepay}, - * {@code multibanco}, {@code oxxo}, {@code p24}, {@code paynow}, {@code paypal}, {@code payto}, - * {@code pix}, {@code promptpay}, {@code rechnung}, {@code revolut_pay}, {@code sepa_debit}, - * {@code sofort}, {@code swish}, {@code twint}, {@code us_bank_account}, {@code wechat_pay}, or - * {@code zip}. + * {@code interac_present}, {@code klarna}, {@code konbini}, {@code link}, {@code mb_way}, + * {@code mobilepay}, {@code multibanco}, {@code oxxo}, {@code p24}, {@code paynow}, {@code + * paypal}, {@code payto}, {@code pix}, {@code promptpay}, {@code rechnung}, {@code + * revolut_pay}, {@code sepa_debit}, {@code sofort}, {@code swish}, {@code twint}, {@code + * us_bank_account}, {@code wechat_pay}, or {@code zip}. */ @SerializedName("type") String type; @@ -1536,6 +1539,11 @@ public static class Link extends StripeObject { String persistentToken; } + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class MbWay extends StripeObject {} + @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index 8f5c7916e61..04966018a6a 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -2835,6 +2835,9 @@ public static class PaymentMethodOptions extends StripeObject { @SerializedName("link") Link link; + @SerializedName("mb_way") + MbWay mbWay; + @SerializedName("mobilepay") Mobilepay mobilepay; @@ -4055,6 +4058,35 @@ public static class Link extends StripeObject { String setupFutureUsage; } + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class MbWay extends StripeObject { + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

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

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

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

Equal to {@code none}. + */ + @SerializedName("setup_future_usage") + String setupFutureUsage; + } + @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/model/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index b057599b023..445a394d1a8 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -142,6 +142,9 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore

key-value pairs that you can attach * to an object. This can be useful for storing additional information about the object in a @@ -219,11 +222,11 @@ public class PaymentMethod extends ApiResource implements HasId, MetadataStore

extraParams; + + /** + * Passing true requests the capability for the account, if it is not already requested. A + * requested capability may not immediately become active. Any requirements to activate the + * capability are returned in the {@code requirements} arrays. + */ + @SerializedName("requested") + Boolean requested; + + private MbWayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountCreateParams.Capabilities.MbWayPayments build() { + return new AccountCreateParams.Capabilities.MbWayPayments( + this.extraParams, this.requested); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Capabilities.MbWayPayments#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountCreateParams.Capabilities.MbWayPayments#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Passing true requests the capability for the account, if it is not already requested. A + * requested capability may not immediately become active. Any requirements to activate the + * capability are returned in the {@code requirements} arrays. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } + @Getter public static class MobilepayPayments { /** diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java index fa8f77f1947..85e17305b45 100644 --- a/src/main/java/com/stripe/param/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountUpdateParams.java @@ -1419,6 +1419,10 @@ public static class Capabilities { @SerializedName("link_payments") LinkPayments linkPayments; + /** The mb_way_payments capability. */ + @SerializedName("mb_way_payments") + MbWayPayments mbWayPayments; + /** The mobilepay_payments capability. */ @SerializedName("mobilepay_payments") MobilepayPayments mobilepayPayments; @@ -1540,6 +1544,7 @@ private Capabilities( KonbiniPayments konbiniPayments, LegacyPayments legacyPayments, LinkPayments linkPayments, + MbWayPayments mbWayPayments, MobilepayPayments mobilepayPayments, MultibancoPayments multibancoPayments, MxBankTransferPayments mxBankTransferPayments, @@ -1591,6 +1596,7 @@ private Capabilities( this.konbiniPayments = konbiniPayments; this.legacyPayments = legacyPayments; this.linkPayments = linkPayments; + this.mbWayPayments = mbWayPayments; this.mobilepayPayments = mobilepayPayments; this.multibancoPayments = multibancoPayments; this.mxBankTransferPayments = mxBankTransferPayments; @@ -1677,6 +1683,8 @@ public static class Builder { private LinkPayments linkPayments; + private MbWayPayments mbWayPayments; + private MobilepayPayments mobilepayPayments; private MultibancoPayments multibancoPayments; @@ -1754,6 +1762,7 @@ public AccountUpdateParams.Capabilities build() { this.konbiniPayments, this.legacyPayments, this.linkPayments, + this.mbWayPayments, this.mobilepayPayments, this.multibancoPayments, this.mxBankTransferPayments, @@ -1987,6 +1996,13 @@ public Builder setLinkPayments(AccountUpdateParams.Capabilities.LinkPayments lin return this; } + /** The mb_way_payments capability. */ + public Builder setMbWayPayments( + AccountUpdateParams.Capabilities.MbWayPayments mbWayPayments) { + this.mbWayPayments = mbWayPayments; + return this; + } + /** The mobilepay_payments capability. */ public Builder setMobilepayPayments( AccountUpdateParams.Capabilities.MobilepayPayments mobilepayPayments) { @@ -4273,6 +4289,85 @@ public Builder setRequested(Boolean requested) { } } + @Getter + public static class MbWayPayments { + /** + * Map of extra parameters for custom features not available in this client library. The + * content in this map is not serialized under this field's {@code @SerializedName} value. + * Instead, each key/value pair is serialized as if the key is a root-level field (serialized) + * name in this param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + /** + * Passing true requests the capability for the account, if it is not already requested. A + * requested capability may not immediately become active. Any requirements to activate the + * capability are returned in the {@code requirements} arrays. + */ + @SerializedName("requested") + Boolean requested; + + private MbWayPayments(Map extraParams, Boolean requested) { + this.extraParams = extraParams; + this.requested = requested; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean requested; + + /** Finalize and obtain parameter instance from this builder. */ + public AccountUpdateParams.Capabilities.MbWayPayments build() { + return new AccountUpdateParams.Capabilities.MbWayPayments( + this.extraParams, this.requested); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Capabilities.MbWayPayments#extraParams} for the field + * documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link AccountUpdateParams.Capabilities.MbWayPayments#extraParams} for the field + * documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Passing true requests the capability for the account, if it is not already requested. A + * requested capability may not immediately become active. Any requirements to activate the + * capability are returned in the {@code requirements} arrays. + */ + public Builder setRequested(Boolean requested) { + this.requested = requested; + return this; + } + } + } + @Getter public static class MobilepayPayments { /** diff --git a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java index 1ec569b087d..2cec426b6b8 100644 --- a/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java +++ b/src/main/java/com/stripe/param/ConfirmationTokenCreateParams.java @@ -367,6 +367,13 @@ public static class PaymentMethodData { @SerializedName("link") Link link; + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + @SerializedName("mb_way") + MbWay mbWay; + /** * Set of key-value pairs that you can attach * to an object. This can be useful for storing additional information about the object in a @@ -541,6 +548,7 @@ private PaymentMethodData( Klarna klarna, Konbini konbini, Link link, + MbWay mbWay, Map metadata, Mobilepay mobilepay, Multibanco multibanco, @@ -586,6 +594,7 @@ private PaymentMethodData( this.klarna = klarna; this.konbini = konbini; this.link = link; + this.mbWay = mbWay; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; @@ -662,6 +671,8 @@ public static class Builder { private Link link; + private MbWay mbWay; + private Map metadata; private Mobilepay mobilepay; @@ -731,6 +742,7 @@ public ConfirmationTokenCreateParams.PaymentMethodData build() { this.klarna, this.konbini, this.link, + this.mbWay, this.metadata, this.mobilepay, this.multibanco, @@ -1000,6 +1012,15 @@ public Builder setLink(ConfirmationTokenCreateParams.PaymentMethodData.Link link return this; } + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + public Builder setMbWay(ConfirmationTokenCreateParams.PaymentMethodData.MbWay mbWay) { + this.mbWay = mbWay; + return this; + } + /** * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link @@ -3251,6 +3272,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class MbWay { + /** + * 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 MbWay(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public ConfirmationTokenCreateParams.PaymentMethodData.MbWay build() { + return new ConfirmationTokenCreateParams.PaymentMethodData.MbWay(this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfirmationTokenCreateParams.PaymentMethodData.MbWay#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link ConfirmationTokenCreateParams.PaymentMethodData.MbWay#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 Mobilepay { /** @@ -4865,6 +4943,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("link") LINK("link"), + @SerializedName("mb_way") + MB_WAY("mb_way"), + @SerializedName("mobilepay") MOBILEPAY("mobilepay"), diff --git a/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java b/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java index fb5e85f9ca6..ed9aaa1def8 100644 --- a/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java +++ b/src/main/java/com/stripe/param/CustomerListPaymentMethodsParams.java @@ -303,6 +303,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("link") LINK("link"), + @SerializedName("mb_way") + MB_WAY("mb_way"), + @SerializedName("mobilepay") MOBILEPAY("mobilepay"), diff --git a/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java b/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java index 9467c1d86e4..1d7099d4e4d 100644 --- a/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java +++ b/src/main/java/com/stripe/param/CustomerPaymentMethodListParams.java @@ -303,6 +303,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("link") LINK("link"), + @SerializedName("mb_way") + MB_WAY("mb_way"), + @SerializedName("mobilepay") MOBILEPAY("mobilepay"), diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index f28bdbb9b36..0680f2fcf4e 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -5481,6 +5481,13 @@ public static class PaymentMethodData { @SerializedName("link") Link link; + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + @SerializedName("mb_way") + MbWay mbWay; + /** * Set of key-value pairs that you can attach * to an object. This can be useful for storing additional information about the object in a @@ -5655,6 +5662,7 @@ private PaymentMethodData( Klarna klarna, Konbini konbini, Link link, + MbWay mbWay, Map metadata, Mobilepay mobilepay, Multibanco multibanco, @@ -5700,6 +5708,7 @@ private PaymentMethodData( this.klarna = klarna; this.konbini = konbini; this.link = link; + this.mbWay = mbWay; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; @@ -5776,6 +5785,8 @@ public static class Builder { private Link link; + private MbWay mbWay; + private Map metadata; private Mobilepay mobilepay; @@ -5845,6 +5856,7 @@ public PaymentIntentConfirmParams.PaymentMethodData build() { this.klarna, this.konbini, this.link, + this.mbWay, this.metadata, this.mobilepay, this.multibanco, @@ -6114,6 +6126,15 @@ public Builder setLink(PaymentIntentConfirmParams.PaymentMethodData.Link link) { return this; } + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + public Builder setMbWay(PaymentIntentConfirmParams.PaymentMethodData.MbWay mbWay) { + this.mbWay = mbWay; + return this; + } + /** * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link @@ -8354,6 +8375,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class MbWay { + /** + * 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 MbWay(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentConfirmParams.PaymentMethodData.MbWay build() { + return new PaymentIntentConfirmParams.PaymentMethodData.MbWay(this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.MbWay#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentConfirmParams.PaymentMethodData.MbWay#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 Mobilepay { /** @@ -9963,6 +10041,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("link") LINK("link"), + @SerializedName("mb_way") + MB_WAY("mb_way"), + @SerializedName("mobilepay") MOBILEPAY("mobilepay"), @@ -10195,6 +10276,13 @@ public static class PaymentMethodOptions { @SerializedName("link") Object link; + /** + * If this is a {@code mb_way} PaymentMethod, this sub-hash contains details about the MB WAY + * payment method options. + */ + @SerializedName("mb_way") + Object mbWay; + /** * If this is a {@code MobilePay} PaymentMethod, this sub-hash contains details about the * MobilePay payment method options. @@ -10346,6 +10434,7 @@ private PaymentMethodOptions( Object klarna, Object konbini, Object link, + Object mbWay, Object mobilepay, Object multibanco, Object oxxo, @@ -10388,6 +10477,7 @@ private PaymentMethodOptions( this.klarna = klarna; this.konbini = konbini; this.link = link; + this.mbWay = mbWay; this.mobilepay = mobilepay; this.multibanco = multibanco; this.oxxo = oxxo; @@ -10461,6 +10551,8 @@ public static class Builder { private Object link; + private Object mbWay; + private Object mobilepay; private Object multibanco; @@ -10524,6 +10616,7 @@ public PaymentIntentConfirmParams.PaymentMethodOptions build() { this.klarna, this.konbini, this.link, + this.mbWay, this.mobilepay, this.multibanco, this.oxxo, @@ -10988,6 +11081,24 @@ public Builder setLink(EmptyParam link) { return this; } + /** + * If this is a {@code mb_way} PaymentMethod, this sub-hash contains details about the MB WAY + * payment method options. + */ + public Builder setMbWay(PaymentIntentConfirmParams.PaymentMethodOptions.MbWay mbWay) { + this.mbWay = mbWay; + return this; + } + + /** + * If this is a {@code mb_way} PaymentMethod, this sub-hash contains details about the MB WAY + * payment method options. + */ + public Builder setMbWay(EmptyParam mbWay) { + this.mbWay = mbWay; + return this; + } + /** * If this is a {@code MobilePay} PaymentMethod, this sub-hash contains details about the * MobilePay payment method options. @@ -18231,6 +18342,136 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class MbWay { + /** + * 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; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

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

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

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

If you've already set {@code setup_future_usage} and you're performing a request using a + * publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private MbWay(Map extraParams, SetupFutureUsage setupFutureUsage) { + this.extraParams = extraParams; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentConfirmParams.PaymentMethodOptions.MbWay build() { + return new PaymentIntentConfirmParams.PaymentMethodOptions.MbWay( + this.extraParams, this.setupFutureUsage); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentConfirmParams.PaymentMethodOptions.MbWay#extraParams} for + * the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentConfirmParams.PaymentMethodOptions.MbWay#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

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

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

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

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + public Builder setSetupFutureUsage( + PaymentIntentConfirmParams.PaymentMethodOptions.MbWay.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + @Getter public static class Mobilepay { /** diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index 9bcd1851ba5..79589dcdcee 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -5971,6 +5971,13 @@ public static class PaymentMethodData { @SerializedName("link") Link link; + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + @SerializedName("mb_way") + MbWay mbWay; + /** * Set of key-value pairs that you can attach * to an object. This can be useful for storing additional information about the object in a @@ -6145,6 +6152,7 @@ private PaymentMethodData( Klarna klarna, Konbini konbini, Link link, + MbWay mbWay, Map metadata, Mobilepay mobilepay, Multibanco multibanco, @@ -6190,6 +6198,7 @@ private PaymentMethodData( this.klarna = klarna; this.konbini = konbini; this.link = link; + this.mbWay = mbWay; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; @@ -6266,6 +6275,8 @@ public static class Builder { private Link link; + private MbWay mbWay; + private Map metadata; private Mobilepay mobilepay; @@ -6335,6 +6346,7 @@ public PaymentIntentCreateParams.PaymentMethodData build() { this.klarna, this.konbini, this.link, + this.mbWay, this.metadata, this.mobilepay, this.multibanco, @@ -6601,6 +6613,15 @@ public Builder setLink(PaymentIntentCreateParams.PaymentMethodData.Link link) { return this; } + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + public Builder setMbWay(PaymentIntentCreateParams.PaymentMethodData.MbWay mbWay) { + this.mbWay = mbWay; + return this; + } + /** * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link @@ -8832,6 +8853,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class MbWay { + /** + * 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 MbWay(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentCreateParams.PaymentMethodData.MbWay build() { + return new PaymentIntentCreateParams.PaymentMethodData.MbWay(this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.MbWay#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentCreateParams.PaymentMethodData.MbWay#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 Mobilepay { /** @@ -10441,6 +10519,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("link") LINK("link"), + @SerializedName("mb_way") + MB_WAY("mb_way"), + @SerializedName("mobilepay") MOBILEPAY("mobilepay"), @@ -10673,6 +10754,13 @@ public static class PaymentMethodOptions { @SerializedName("link") Object link; + /** + * If this is a {@code mb_way} PaymentMethod, this sub-hash contains details about the MB WAY + * payment method options. + */ + @SerializedName("mb_way") + Object mbWay; + /** * If this is a {@code MobilePay} PaymentMethod, this sub-hash contains details about the * MobilePay payment method options. @@ -10824,6 +10912,7 @@ private PaymentMethodOptions( Object klarna, Object konbini, Object link, + Object mbWay, Object mobilepay, Object multibanco, Object oxxo, @@ -10866,6 +10955,7 @@ private PaymentMethodOptions( this.klarna = klarna; this.konbini = konbini; this.link = link; + this.mbWay = mbWay; this.mobilepay = mobilepay; this.multibanco = multibanco; this.oxxo = oxxo; @@ -10939,6 +11029,8 @@ public static class Builder { private Object link; + private Object mbWay; + private Object mobilepay; private Object multibanco; @@ -11002,6 +11094,7 @@ public PaymentIntentCreateParams.PaymentMethodOptions build() { this.klarna, this.konbini, this.link, + this.mbWay, this.mobilepay, this.multibanco, this.oxxo, @@ -11466,6 +11559,24 @@ public Builder setLink(EmptyParam link) { return this; } + /** + * If this is a {@code mb_way} PaymentMethod, this sub-hash contains details about the MB WAY + * payment method options. + */ + public Builder setMbWay(PaymentIntentCreateParams.PaymentMethodOptions.MbWay mbWay) { + this.mbWay = mbWay; + return this; + } + + /** + * If this is a {@code mb_way} PaymentMethod, this sub-hash contains details about the MB WAY + * payment method options. + */ + public Builder setMbWay(EmptyParam mbWay) { + this.mbWay = mbWay; + return this; + } + /** * If this is a {@code MobilePay} PaymentMethod, this sub-hash contains details about the * MobilePay payment method options. @@ -18701,6 +18812,136 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class MbWay { + /** + * 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; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

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

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

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

If you've already set {@code setup_future_usage} and you're performing a request using a + * publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private MbWay(Map extraParams, SetupFutureUsage setupFutureUsage) { + this.extraParams = extraParams; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentCreateParams.PaymentMethodOptions.MbWay build() { + return new PaymentIntentCreateParams.PaymentMethodOptions.MbWay( + this.extraParams, this.setupFutureUsage); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentCreateParams.PaymentMethodOptions.MbWay#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentCreateParams.PaymentMethodOptions.MbWay#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

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

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

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

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + public Builder setSetupFutureUsage( + PaymentIntentCreateParams.PaymentMethodOptions.MbWay.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + @Getter public static class Mobilepay { /** diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 9f4d3b74855..b06223ca3e1 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -6027,6 +6027,13 @@ public static class PaymentMethodData { @SerializedName("link") Link link; + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + @SerializedName("mb_way") + MbWay mbWay; + /** * Set of key-value pairs that you can attach * to an object. This can be useful for storing additional information about the object in a @@ -6201,6 +6208,7 @@ private PaymentMethodData( Klarna klarna, Konbini konbini, Link link, + MbWay mbWay, Map metadata, Mobilepay mobilepay, Multibanco multibanco, @@ -6246,6 +6254,7 @@ private PaymentMethodData( this.klarna = klarna; this.konbini = konbini; this.link = link; + this.mbWay = mbWay; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; @@ -6322,6 +6331,8 @@ public static class Builder { private Link link; + private MbWay mbWay; + private Map metadata; private Mobilepay mobilepay; @@ -6391,6 +6402,7 @@ public PaymentIntentUpdateParams.PaymentMethodData build() { this.klarna, this.konbini, this.link, + this.mbWay, this.metadata, this.mobilepay, this.multibanco, @@ -6657,6 +6669,15 @@ public Builder setLink(PaymentIntentUpdateParams.PaymentMethodData.Link link) { return this; } + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + public Builder setMbWay(PaymentIntentUpdateParams.PaymentMethodData.MbWay mbWay) { + this.mbWay = mbWay; + return this; + } + /** * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link @@ -8978,6 +8999,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class MbWay { + /** + * 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 MbWay(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentUpdateParams.PaymentMethodData.MbWay build() { + return new PaymentIntentUpdateParams.PaymentMethodData.MbWay(this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.MbWay#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentUpdateParams.PaymentMethodData.MbWay#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 Mobilepay { /** @@ -10639,6 +10717,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("link") LINK("link"), + @SerializedName("mb_way") + MB_WAY("mb_way"), + @SerializedName("mobilepay") MOBILEPAY("mobilepay"), @@ -10871,6 +10952,13 @@ public static class PaymentMethodOptions { @SerializedName("link") Object link; + /** + * If this is a {@code mb_way} PaymentMethod, this sub-hash contains details about the MB WAY + * payment method options. + */ + @SerializedName("mb_way") + Object mbWay; + /** * If this is a {@code MobilePay} PaymentMethod, this sub-hash contains details about the * MobilePay payment method options. @@ -11022,6 +11110,7 @@ private PaymentMethodOptions( Object klarna, Object konbini, Object link, + Object mbWay, Object mobilepay, Object multibanco, Object oxxo, @@ -11064,6 +11153,7 @@ private PaymentMethodOptions( this.klarna = klarna; this.konbini = konbini; this.link = link; + this.mbWay = mbWay; this.mobilepay = mobilepay; this.multibanco = multibanco; this.oxxo = oxxo; @@ -11137,6 +11227,8 @@ public static class Builder { private Object link; + private Object mbWay; + private Object mobilepay; private Object multibanco; @@ -11200,6 +11292,7 @@ public PaymentIntentUpdateParams.PaymentMethodOptions build() { this.klarna, this.konbini, this.link, + this.mbWay, this.mobilepay, this.multibanco, this.oxxo, @@ -11664,6 +11757,24 @@ public Builder setLink(EmptyParam link) { return this; } + /** + * If this is a {@code mb_way} PaymentMethod, this sub-hash contains details about the MB WAY + * payment method options. + */ + public Builder setMbWay(PaymentIntentUpdateParams.PaymentMethodOptions.MbWay mbWay) { + this.mbWay = mbWay; + return this; + } + + /** + * If this is a {@code mb_way} PaymentMethod, this sub-hash contains details about the MB WAY + * payment method options. + */ + public Builder setMbWay(EmptyParam mbWay) { + this.mbWay = mbWay; + return this; + } + /** * If this is a {@code MobilePay} PaymentMethod, this sub-hash contains details about the * MobilePay payment method options. @@ -19061,6 +19172,136 @@ public enum SetupFutureUsage implements ApiRequestParams.EnumParam { } } + @Getter + public static class MbWay { + /** + * 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; + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment method. + * + *

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

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

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

If you've already set {@code setup_future_usage} and you're performing a request using a + * publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + @SerializedName("setup_future_usage") + SetupFutureUsage setupFutureUsage; + + private MbWay(Map extraParams, SetupFutureUsage setupFutureUsage) { + this.extraParams = extraParams; + this.setupFutureUsage = setupFutureUsage; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private SetupFutureUsage setupFutureUsage; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentUpdateParams.PaymentMethodOptions.MbWay build() { + return new PaymentIntentUpdateParams.PaymentMethodOptions.MbWay( + this.extraParams, this.setupFutureUsage); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentUpdateParams.PaymentMethodOptions.MbWay#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link PaymentIntentUpdateParams.PaymentMethodOptions.MbWay#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** + * Indicates that you intend to make future payments with this PaymentIntent's payment + * method. + * + *

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

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

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

If you've already set {@code setup_future_usage} and you're performing a request using + * a publishable key, you can only update the value from {@code on_session} to {@code + * off_session}. + */ + public Builder setSetupFutureUsage( + PaymentIntentUpdateParams.PaymentMethodOptions.MbWay.SetupFutureUsage + setupFutureUsage) { + this.setupFutureUsage = setupFutureUsage; + return this; + } + } + + public enum SetupFutureUsage implements ApiRequestParams.EnumParam { + @SerializedName("none") + NONE("none"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + SetupFutureUsage(String value) { + this.value = value; + } + } + } + @Getter public static class Mobilepay { /** diff --git a/src/main/java/com/stripe/param/PaymentMethodCreateParams.java b/src/main/java/com/stripe/param/PaymentMethodCreateParams.java index 91bc3520937..22e8742626b 100644 --- a/src/main/java/com/stripe/param/PaymentMethodCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentMethodCreateParams.java @@ -203,6 +203,12 @@ public class PaymentMethodCreateParams extends ApiRequestParams { @SerializedName("link") Link link; + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment method. + */ + @SerializedName("mb_way") + MbWay mbWay; + /** * Set of key-value pairs that you can attach * to an object. This can be useful for storing additional information about the object in a @@ -383,6 +389,7 @@ private PaymentMethodCreateParams( Klarna klarna, Konbini konbini, Link link, + MbWay mbWay, Map metadata, Mobilepay mobilepay, Multibanco multibanco, @@ -432,6 +439,7 @@ private PaymentMethodCreateParams( this.klarna = klarna; this.konbini = konbini; this.link = link; + this.mbWay = mbWay; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; @@ -515,6 +523,8 @@ public static class Builder { private Link link; + private MbWay mbWay; + private Map metadata; private Mobilepay mobilepay; @@ -589,6 +599,7 @@ public PaymentMethodCreateParams build() { this.klarna, this.konbini, this.link, + this.mbWay, this.metadata, this.mobilepay, this.multibanco, @@ -907,6 +918,15 @@ public Builder setLink(PaymentMethodCreateParams.Link link) { return this; } + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + public Builder setMbWay(PaymentMethodCreateParams.MbWay mbWay) { + this.mbWay = mbWay; + return this; + } + /** * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` call, * and subsequent calls add additional key/value pairs to the original map. See {@link @@ -3313,6 +3333,61 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class MbWay { + /** + * 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 MbWay(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentMethodCreateParams.MbWay build() { + return new PaymentMethodCreateParams.MbWay(this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * PaymentMethodCreateParams.MbWay#extraParams} for the field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original map. + * See {@link PaymentMethodCreateParams.MbWay#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 Mobilepay { /** @@ -4957,6 +5032,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("link") LINK("link"), + @SerializedName("mb_way") + MB_WAY("mb_way"), + @SerializedName("mobilepay") MOBILEPAY("mobilepay"), diff --git a/src/main/java/com/stripe/param/PaymentMethodListParams.java b/src/main/java/com/stripe/param/PaymentMethodListParams.java index dfd62c783e3..93d94cc9dcd 100644 --- a/src/main/java/com/stripe/param/PaymentMethodListParams.java +++ b/src/main/java/com/stripe/param/PaymentMethodListParams.java @@ -274,6 +274,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("link") LINK("link"), + @SerializedName("mb_way") + MB_WAY("mb_way"), + @SerializedName("mobilepay") MOBILEPAY("mobilepay"), diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index bf906337762..00f2759ccc0 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -793,6 +793,13 @@ public static class PaymentMethodData { @SerializedName("link") Link link; + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + @SerializedName("mb_way") + MbWay mbWay; + /** * Set of key-value pairs that you can attach * to an object. This can be useful for storing additional information about the object in a @@ -967,6 +974,7 @@ private PaymentMethodData( Klarna klarna, Konbini konbini, Link link, + MbWay mbWay, Map metadata, Mobilepay mobilepay, Multibanco multibanco, @@ -1012,6 +1020,7 @@ private PaymentMethodData( this.klarna = klarna; this.konbini = konbini; this.link = link; + this.mbWay = mbWay; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; @@ -1088,6 +1097,8 @@ public static class Builder { private Link link; + private MbWay mbWay; + private Map metadata; private Mobilepay mobilepay; @@ -1157,6 +1168,7 @@ public SetupIntentConfirmParams.PaymentMethodData build() { this.klarna, this.konbini, this.link, + this.mbWay, this.metadata, this.mobilepay, this.multibanco, @@ -1423,6 +1435,15 @@ public Builder setLink(SetupIntentConfirmParams.PaymentMethodData.Link link) { return this; } + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + public Builder setMbWay(SetupIntentConfirmParams.PaymentMethodData.MbWay mbWay) { + this.mbWay = mbWay; + return this; + } + /** * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link @@ -3654,6 +3675,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class MbWay { + /** + * 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 MbWay(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentConfirmParams.PaymentMethodData.MbWay build() { + return new SetupIntentConfirmParams.PaymentMethodData.MbWay(this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentConfirmParams.PaymentMethodData.MbWay#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentConfirmParams.PaymentMethodData.MbWay#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 Mobilepay { /** @@ -5263,6 +5341,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("link") LINK("link"), + @SerializedName("mb_way") + MB_WAY("mb_way"), + @SerializedName("mobilepay") MOBILEPAY("mobilepay"), diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java index 7881ce37fe7..36e86ee5d90 100644 --- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java @@ -1251,6 +1251,13 @@ public static class PaymentMethodData { @SerializedName("link") Link link; + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + @SerializedName("mb_way") + MbWay mbWay; + /** * Set of key-value pairs that you can attach * to an object. This can be useful for storing additional information about the object in a @@ -1425,6 +1432,7 @@ private PaymentMethodData( Klarna klarna, Konbini konbini, Link link, + MbWay mbWay, Map metadata, Mobilepay mobilepay, Multibanco multibanco, @@ -1470,6 +1478,7 @@ private PaymentMethodData( this.klarna = klarna; this.konbini = konbini; this.link = link; + this.mbWay = mbWay; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; @@ -1546,6 +1555,8 @@ public static class Builder { private Link link; + private MbWay mbWay; + private Map metadata; private Mobilepay mobilepay; @@ -1615,6 +1626,7 @@ public SetupIntentCreateParams.PaymentMethodData build() { this.klarna, this.konbini, this.link, + this.mbWay, this.metadata, this.mobilepay, this.multibanco, @@ -1881,6 +1893,15 @@ public Builder setLink(SetupIntentCreateParams.PaymentMethodData.Link link) { return this; } + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + public Builder setMbWay(SetupIntentCreateParams.PaymentMethodData.MbWay mbWay) { + this.mbWay = mbWay; + return this; + } + /** * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link @@ -4110,6 +4131,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class MbWay { + /** + * 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 MbWay(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentCreateParams.PaymentMethodData.MbWay build() { + return new SetupIntentCreateParams.PaymentMethodData.MbWay(this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentCreateParams.PaymentMethodData.MbWay#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentCreateParams.PaymentMethodData.MbWay#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 Mobilepay { /** @@ -5718,6 +5796,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("link") LINK("link"), + @SerializedName("mb_way") + MB_WAY("mb_way"), + @SerializedName("mobilepay") MOBILEPAY("mobilepay"), diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index aae0d7d0fbd..0e4c2ef119f 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -598,6 +598,13 @@ public static class PaymentMethodData { @SerializedName("link") Link link; + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + @SerializedName("mb_way") + MbWay mbWay; + /** * Set of key-value pairs that you can attach * to an object. This can be useful for storing additional information about the object in a @@ -772,6 +779,7 @@ private PaymentMethodData( Klarna klarna, Konbini konbini, Link link, + MbWay mbWay, Map metadata, Mobilepay mobilepay, Multibanco multibanco, @@ -817,6 +825,7 @@ private PaymentMethodData( this.klarna = klarna; this.konbini = konbini; this.link = link; + this.mbWay = mbWay; this.metadata = metadata; this.mobilepay = mobilepay; this.multibanco = multibanco; @@ -893,6 +902,8 @@ public static class Builder { private Link link; + private MbWay mbWay; + private Map metadata; private Mobilepay mobilepay; @@ -962,6 +973,7 @@ public SetupIntentUpdateParams.PaymentMethodData build() { this.klarna, this.konbini, this.link, + this.mbWay, this.metadata, this.mobilepay, this.multibanco, @@ -1228,6 +1240,15 @@ public Builder setLink(SetupIntentUpdateParams.PaymentMethodData.Link link) { return this; } + /** + * If this is a MB WAY PaymentMethod, this hash contains details about the MB WAY payment + * method. + */ + public Builder setMbWay(SetupIntentUpdateParams.PaymentMethodData.MbWay mbWay) { + this.mbWay = mbWay; + return this; + } + /** * Add a key/value pair to `metadata` map. A map is initialized for the first `put/putAll` * call, and subsequent calls add additional key/value pairs to the original map. See {@link @@ -3547,6 +3568,63 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class MbWay { + /** + * 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 MbWay(Map extraParams) { + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public SetupIntentUpdateParams.PaymentMethodData.MbWay build() { + return new SetupIntentUpdateParams.PaymentMethodData.MbWay(this.extraParams); + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentUpdateParams.PaymentMethodData.MbWay#extraParams} for the + * field documentation. + */ + public Builder putExtraParam(String key, Object value) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.put(key, value); + return this; + } + + /** + * Add all map key/value pairs to `extraParams` map. A map is initialized for the first + * `put/putAll` call, and subsequent calls add additional key/value pairs to the original + * map. See {@link SetupIntentUpdateParams.PaymentMethodData.MbWay#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 Mobilepay { /** @@ -5207,6 +5285,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("link") LINK("link"), + @SerializedName("mb_way") + MB_WAY("mb_way"), + @SerializedName("mobilepay") MOBILEPAY("mobilepay"), From 861cb72700732f92628bc6bf824d62882ee9898a Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 18:49:09 +0000 Subject: [PATCH 13/16] Update generated code for v1214 --- OPENAPI_VERSION | 2 +- .../model/treasury/InboundTransfer.java | 6 ++++- .../model/treasury/OutboundPayment.java | 8 ++++++- .../model/treasury/OutboundTransfer.java | 8 ++++++- .../stripe/model/treasury/ReceivedCredit.java | 8 ++++++- .../stripe/model/treasury/Transaction.java | 22 ++++++++++++++++--- .../model/treasury/TransactionEntry.java | 22 ++++++++++++++++--- 7 files changed, 65 insertions(+), 11 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 594d33c9500..9c93de75ac9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1213 \ No newline at end of file +v1214 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/treasury/InboundTransfer.java b/src/main/java/com/stripe/model/treasury/InboundTransfer.java index 2bcccd31543..c3c08fc210b 100644 --- a/src/main/java/com/stripe/model/treasury/InboundTransfer.java +++ b/src/main/java/com/stripe/model/treasury/InboundTransfer.java @@ -29,10 +29,14 @@ /** * Use InboundTransfers + * href="https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers">InboundTransfers * to add funds to your FinancialAccount via a PaymentMethod * that is owned by you. The funds will be transferred via an ACH debit. + * + *

Related guide: Moving + * money with Treasury using InboundTransfer objects */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/treasury/OutboundPayment.java b/src/main/java/com/stripe/model/treasury/OutboundPayment.java index 4037a67ef2f..da3c749d079 100644 --- a/src/main/java/com/stripe/model/treasury/OutboundPayment.java +++ b/src/main/java/com/stripe/model/treasury/OutboundPayment.java @@ -29,7 +29,9 @@ import lombok.Setter; /** - * Use OutboundPayments to send funds to another party's external bank account or OutboundPayments + * to send funds to another party's external bank account or FinancialAccount. To send money to an * account belonging to the same user, use an OutboundTransfer. @@ -37,6 +39,10 @@ *

Simulate OutboundPayment state changes with the {@code * /v1/test_helpers/treasury/outbound_payments} endpoints. These methods can only be called on test * mode objects. + * + *

Related guide: Moving + * money with Treasury using OutboundPayment objects */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/treasury/OutboundTransfer.java b/src/main/java/com/stripe/model/treasury/OutboundTransfer.java index 1a799ea32ed..bd636b31500 100644 --- a/src/main/java/com/stripe/model/treasury/OutboundTransfer.java +++ b/src/main/java/com/stripe/model/treasury/OutboundTransfer.java @@ -29,7 +29,9 @@ import lombok.Setter; /** - * Use OutboundTransfers to transfer funds from a OutboundTransfers + * to transfer funds from a FinancialAccount to a PaymentMethod * belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You can send @@ -38,6 +40,10 @@ *

Simulate OutboundTransfer state changes with the {@code * /v1/test_helpers/treasury/outbound_transfers} endpoints. These methods can only be called on test * mode objects. + * + *

Related guide: Moving + * money with Treasury using OutboundTransfer objects */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/treasury/ReceivedCredit.java b/src/main/java/com/stripe/model/treasury/ReceivedCredit.java index a4380cd5d70..03915602376 100644 --- a/src/main/java/com/stripe/model/treasury/ReceivedCredit.java +++ b/src/main/java/com/stripe/model/treasury/ReceivedCredit.java @@ -379,7 +379,9 @@ public static class SourceFlowDetails extends StripeObject { CreditReversal creditReversal; /** - * Use OutboundPayments to send funds to another party's external bank account or OutboundPayments + * to send funds to another party's external bank account or FinancialAccount. To send money * to an account belonging to the same user, use an OutboundTransfer. @@ -387,6 +389,10 @@ public static class SourceFlowDetails extends StripeObject { *

Simulate OutboundPayment state changes with the {@code * /v1/test_helpers/treasury/outbound_payments} endpoints. These methods can only be called on * test mode objects. + * + *

Related guide: Moving + * money with Treasury using OutboundPayment objects */ @SerializedName("outbound_payment") OutboundPayment outboundPayment; diff --git a/src/main/java/com/stripe/model/treasury/Transaction.java b/src/main/java/com/stripe/model/treasury/Transaction.java index efe33505791..3e34b703b2f 100644 --- a/src/main/java/com/stripe/model/treasury/Transaction.java +++ b/src/main/java/com/stripe/model/treasury/Transaction.java @@ -230,10 +230,14 @@ public static class FlowDetails extends StripeObject { /** * Use InboundTransfers + * href="https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers">InboundTransfers * to add funds to your FinancialAccount via a * PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. + * + *

Related guide: Moving + * money with Treasury using InboundTransfer objects */ @SerializedName("inbound_transfer") InboundTransfer inboundTransfer; @@ -251,7 +255,9 @@ public static class FlowDetails extends StripeObject { Authorization issuingAuthorization; /** - * Use OutboundPayments to send funds to another party's external bank account or OutboundPayments + * to send funds to another party's external bank account or FinancialAccount. To send money to * an account belonging to the same user, use an OutboundTransfer. @@ -259,12 +265,18 @@ public static class FlowDetails extends StripeObject { *

Simulate OutboundPayment state changes with the {@code * /v1/test_helpers/treasury/outbound_payments} endpoints. These methods can only be called on * test mode objects. + * + *

Related guide: Moving + * money with Treasury using OutboundPayment objects */ @SerializedName("outbound_payment") OutboundPayment outboundPayment; /** - * Use OutboundTransfers to transfer funds from a OutboundTransfers + * to transfer funds from a FinancialAccount to a PaymentMethod * belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You can @@ -274,6 +286,10 @@ public static class FlowDetails extends StripeObject { *

Simulate OutboundTransfer state changes with the {@code * /v1/test_helpers/treasury/outbound_transfers} endpoints. These methods can only be called on * test mode objects. + * + *

Related guide: Moving + * money with Treasury using OutboundTransfer objects */ @SerializedName("outbound_transfer") OutboundTransfer outboundTransfer; diff --git a/src/main/java/com/stripe/model/treasury/TransactionEntry.java b/src/main/java/com/stripe/model/treasury/TransactionEntry.java index b063a35bd48..2bf59c4a821 100644 --- a/src/main/java/com/stripe/model/treasury/TransactionEntry.java +++ b/src/main/java/com/stripe/model/treasury/TransactionEntry.java @@ -251,10 +251,14 @@ public static class FlowDetails extends StripeObject { /** * Use InboundTransfers + * href="https://docs.stripe.com/docs/treasury/moving-money/financial-accounts/into/inbound-transfers">InboundTransfers * to add funds to your FinancialAccount via a * PaymentMethod that is owned by you. The funds will be transferred via an ACH debit. + * + *

Related guide: Moving + * money with Treasury using InboundTransfer objects */ @SerializedName("inbound_transfer") InboundTransfer inboundTransfer; @@ -272,7 +276,9 @@ public static class FlowDetails extends StripeObject { Authorization issuingAuthorization; /** - * Use OutboundPayments to send funds to another party's external bank account or OutboundPayments + * to send funds to another party's external bank account or FinancialAccount. To send money to * an account belonging to the same user, use an OutboundTransfer. @@ -280,12 +286,18 @@ public static class FlowDetails extends StripeObject { *

Simulate OutboundPayment state changes with the {@code * /v1/test_helpers/treasury/outbound_payments} endpoints. These methods can only be called on * test mode objects. + * + *

Related guide: Moving + * money with Treasury using OutboundPayment objects */ @SerializedName("outbound_payment") OutboundPayment outboundPayment; /** - * Use OutboundTransfers to transfer funds from a OutboundTransfers + * to transfer funds from a FinancialAccount to a PaymentMethod * belonging to the same entity. To send funds to a different party, use OutboundPayments instead. You can @@ -295,6 +307,10 @@ public static class FlowDetails extends StripeObject { *

Simulate OutboundTransfer state changes with the {@code * /v1/test_helpers/treasury/outbound_transfers} endpoints. These methods can only be called on * test mode objects. + * + *

Related guide: Moving + * money with Treasury using OutboundTransfer objects */ @SerializedName("outbound_transfer") OutboundTransfer outboundTransfer; From ae7be87621faf777d45dc02c8e382143b7ccf740 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 19:39:40 +0000 Subject: [PATCH 14/16] Update generated code for v1214 --- src/main/java/com/stripe/ApiVersion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java index 49b66d23755..cd7e25ddf82 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -3,5 +3,5 @@ final class ApiVersion { public static final String CURRENT = "2024-06-20"; - public static final String PREVIEW_CURRENT = "2024-07-16.preview-v2"; + public static final String PREVIEW_CURRENT = "2024-08-21.preview-v2"; } From e72aeba2dca227be056aefda29bb8c1701858527 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 19:49:31 +0000 Subject: [PATCH 15/16] Update generated code for v1214 --- src/main/java/com/stripe/ApiVersion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java index cd7e25ddf82..49b66d23755 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -3,5 +3,5 @@ final class ApiVersion { public static final String CURRENT = "2024-06-20"; - public static final String PREVIEW_CURRENT = "2024-08-21.preview-v2"; + public static final String PREVIEW_CURRENT = "2024-07-16.preview-v2"; } From 2f5a657bdde60e07affb00968cb0db933273cbd4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 22 Aug 2024 21:20:53 +0000 Subject: [PATCH 16/16] Update generated code for v1214 --- src/main/java/com/stripe/ApiVersion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java index 49b66d23755..cd7e25ddf82 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -3,5 +3,5 @@ final class ApiVersion { public static final String CURRENT = "2024-06-20"; - public static final String PREVIEW_CURRENT = "2024-07-16.preview-v2"; + public static final String PREVIEW_CURRENT = "2024-08-21.preview-v2"; }