From be2715f2fd3bcaa905842f5dcfb7c1e1579cbbff Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 23:56:17 +0000 Subject: [PATCH] Update generated code for v1399 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/ApiVersion.java | 2 +- src/main/java/com/stripe/model/Account.java | 2 +- .../java/com/stripe/model/AccountSession.java | 50 +++--- .../com/stripe/model/BalanceTransaction.java | 22 +-- .../java/com/stripe/model/Capability.java | 2 +- src/main/java/com/stripe/model/Card.java | 8 + src/main/java/com/stripe/model/Charge.java | 158 +++++++++++++++++- .../com/stripe/model/ConfirmationToken.java | 8 + src/main/java/com/stripe/model/Dispute.java | 40 +++++ .../com/stripe/model/FundingInstructions.java | 28 ++++ src/main/java/com/stripe/model/Invoice.java | 16 +- .../java/com/stripe/model/PaymentIntent.java | 50 +++++- .../java/com/stripe/model/PaymentMethod.java | 8 + .../java/com/stripe/model/SetupIntent.java | 20 ++- .../java/com/stripe/model/StripeError.java | 14 ++ .../java/com/stripe/model/Subscription.java | 8 + .../stripe/model/SubscriptionSchedule.java | 16 ++ src/main/java/com/stripe/model/TaxId.java | 28 ++-- .../billing/CreditBalanceTransaction.java | 46 ++++- .../com/stripe/model/billing/CreditGrant.java | 4 +- .../java/com/stripe/model/billing/Meter.java | 67 ++++++-- .../com/stripe/model/billing/MeterEvent.java | 6 +- .../com/stripe/model/checkout/Session.java | 25 ++- .../stripe/model/issuing/Authorization.java | 4 + .../com/stripe/model/issuing/Transaction.java | 4 + .../com/stripe/model/tax/Calculation.java | 5 +- .../com/stripe/model/tax/Transaction.java | 5 +- .../treasury/FinancialAccountFeatures.java | 12 +- .../com/stripe/param/AccountCreateParams.java | 4 +- .../param/AccountSessionCreateParams.java | 105 ++++++------ .../com/stripe/param/AccountUpdateParams.java | 4 +- .../param/BalanceTransactionListParams.java | 11 +- .../stripe/param/CustomerCreateParams.java | 120 +++++++++---- .../param/CustomerTaxIdCreateParams.java | 114 ++++++++++--- .../stripe/param/CustomerUpdateParams.java | 4 +- .../com/stripe/param/DisputeUpdateParams.java | 102 ++++++++++- .../com/stripe/param/InvoiceCreateParams.java | 3 + .../param/InvoiceCreatePreviewParams.java | 130 ++++++++++---- .../param/InvoiceUpcomingLinesListParams.java | 140 +++++++++++----- .../param/InvoiceUpcomingLinesParams.java | 140 +++++++++++----- .../stripe/param/InvoiceUpcomingParams.java | 140 +++++++++++----- .../com/stripe/param/InvoiceUpdateParams.java | 3 + .../param/PaymentIntentConfirmParams.java | 76 ++++++++- .../param/PaymentIntentCreateParams.java | 76 ++++++++- .../param/PaymentIntentUpdateParams.java | 76 ++++++++- .../stripe/param/PaymentLinkCreateParams.java | 16 +- .../stripe/param/PaymentLinkUpdateParams.java | 51 +++++- .../param/SetupIntentConfirmParams.java | 70 +++++++- .../stripe/param/SetupIntentCreateParams.java | 70 +++++++- .../stripe/param/SetupIntentUpdateParams.java | 70 +++++++- .../param/SubscriptionCreateParams.java | 3 + .../param/SubscriptionUpdateParams.java | 13 +- .../param/TaxIdCollectionCreateParams.java | 114 ++++++++++--- .../com/stripe/param/TaxIdCreateParams.java | 114 ++++++++++--- .../param/WebhookEndpointCreateParams.java | 5 +- .../CreditBalanceSummaryRetrieveParams.java | 4 +- .../billing/CreditGrantCreateParams.java | 22 ++- .../billing/CreditGrantUpdateParams.java | 2 +- .../param/billing/MeterCreateParams.java | 8 +- .../param/billing/MeterEventCreateParams.java | 14 +- .../param/billing/MeterUpdateParams.java | 6 +- .../param/checkout/SessionCreateParams.java | 88 +++++++++- .../param/forwarding/RequestCreateParams.java | 5 +- .../param/tax/CalculationCreateParams.java | 120 +++++++++---- .../param/terminal/LocationUpdateParams.java | 12 +- .../stripe/service/billing/MeterService.java | 40 ++++- 67 files changed, 2212 insertions(+), 543 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7ab08411da8..9fc97dcb222 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1347 \ No newline at end of file +v1399 \ No newline at end of file diff --git a/src/main/java/com/stripe/ApiVersion.java b/src/main/java/com/stripe/ApiVersion.java index d00fa011271..f582b3a469b 100644 --- a/src/main/java/com/stripe/ApiVersion.java +++ b/src/main/java/com/stripe/ApiVersion.java @@ -2,5 +2,5 @@ package com.stripe; final class ApiVersion { - public static final String CURRENT = "2024-11-20.acacia"; + public static final String CURRENT = "2024-12-18.acacia"; } diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index 8dddcf4d8f8..8d9b7bfc033 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -1762,7 +1762,7 @@ public static class FutureRequirements extends StripeObject { List alternatives; /** - * Date on which {@code future_requirements} merges with the main {@code requirements} hash and + * Date on which {@code future_requirements} becomes the main {@code requirements} hash and * {@code future_requirements} becomes empty. After the transition, {@code currently_due} * requirements may immediately become {@code past_due}, but the account may also be given a * grace period depending on its enablement state prior to transitioning. diff --git a/src/main/java/com/stripe/model/AccountSession.java b/src/main/java/com/stripe/model/AccountSession.java index c1c73e05ba9..cbe1dc2cd11 100644 --- a/src/main/java/com/stripe/model/AccountSession.java +++ b/src/main/java/com/stripe/model/AccountSession.java @@ -183,11 +183,11 @@ public static class AccountManagement extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this feature - * is {@code false} when {@code external_account_collection} is enabled and {@code true} - * otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code application}. + * The default value is the opposite of the {@code external_account_collection} value. For + * example, if you don’t set {@code external_account_collection}, it defaults to true and + * {@code disable_stripe_user_authentication} defaults to false. */ @SerializedName("disable_stripe_user_authentication") Boolean disableStripeUserAuthentication; @@ -228,11 +228,11 @@ public static class AccountOnboarding extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this feature - * is {@code false} when {@code external_account_collection} is enabled and {@code true} - * otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code application}. + * The default value is the opposite of the {@code external_account_collection} value. For + * example, if you don’t set {@code external_account_collection}, it defaults to true and + * {@code disable_stripe_user_authentication} defaults to false. */ @SerializedName("disable_stripe_user_authentication") Boolean disableStripeUserAuthentication; @@ -273,11 +273,11 @@ public static class Balances extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this feature - * is {@code false} when {@code external_account_collection} is enabled and {@code true} - * otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code application}. + * The default value is the opposite of the {@code external_account_collection} value. For + * example, if you don’t set {@code external_account_collection}, it defaults to true and + * {@code disable_stripe_user_authentication} defaults to false. */ @SerializedName("disable_stripe_user_authentication") Boolean disableStripeUserAuthentication; @@ -364,11 +364,11 @@ public static class NotificationBanner extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this feature - * is {@code false} when {@code external_account_collection} is enabled and {@code true} - * otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code application}. + * The default value is the opposite of the {@code external_account_collection} value. For + * example, if you don’t set {@code external_account_collection}, it defaults to true and + * {@code disable_stripe_user_authentication} defaults to false. */ @SerializedName("disable_stripe_user_authentication") Boolean disableStripeUserAuthentication; @@ -509,11 +509,11 @@ public static class Payouts extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Features extends StripeObject { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this feature - * is {@code false} when {@code external_account_collection} is enabled and {@code true} - * otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code application}. + * The default value is the opposite of the {@code external_account_collection} value. For + * example, if you don’t set {@code external_account_collection}, it defaults to true and + * {@code disable_stripe_user_authentication} defaults to false. */ @SerializedName("disable_stripe_user_authentication") Boolean disableStripeUserAuthentication; diff --git a/src/main/java/com/stripe/model/BalanceTransaction.java b/src/main/java/com/stripe/model/BalanceTransaction.java index 7fd49308ac9..fd1fbc509af 100644 --- a/src/main/java/com/stripe/model/BalanceTransaction.java +++ b/src/main/java/com/stripe/model/BalanceTransaction.java @@ -128,13 +128,13 @@ public class BalanceTransaction extends ApiResource implements HasId { * payment_failure_refund}, {@code payment_network_reserve_hold}, {@code * payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code * payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code - * refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code - * stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, - * {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code - * transfer_refund}. Learn more about balance transaction types and - * what they represent. To classify transactions for accounting purposes, consider {@code - * reporting_category} instead. + * payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code + * refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee}, + * {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code + * transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}. Learn + * more about balance + * transaction types and what they represent. To classify transactions for accounting + * purposes, consider {@code reporting_category} instead. * *

One of {@code adjustment}, {@code advance}, {@code advance_funding}, {@code * anticipation_repayment}, {@code application_fee}, {@code application_fee_refund}, {@code @@ -145,10 +145,10 @@ public class BalanceTransaction extends ApiResource implements HasId { * payment_failure_refund}, {@code payment_network_reserve_hold}, {@code * payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code * payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code - * refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code - * stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, - * {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code - * transfer_refund}. + * payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code + * refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee}, + * {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code + * transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/Capability.java b/src/main/java/com/stripe/model/Capability.java index d4d7e063612..183d3db6afa 100644 --- a/src/main/java/com/stripe/model/Capability.java +++ b/src/main/java/com/stripe/model/Capability.java @@ -154,7 +154,7 @@ public static class FutureRequirements extends StripeObject { List alternatives; /** - * Date on which {@code future_requirements} merges with the main {@code requirements} hash and + * Date on which {@code future_requirements} becomes the main {@code requirements} hash and * {@code future_requirements} becomes empty. After the transition, {@code currently_due} * requirements may immediately become {@code past_due}, but the account may also be given a * grace period depending on the capability's enablement state prior to transitioning. diff --git a/src/main/java/com/stripe/model/Card.java b/src/main/java/com/stripe/model/Card.java index 5a907833e8d..9cf526e288b 100644 --- a/src/main/java/com/stripe/model/Card.java +++ b/src/main/java/com/stripe/model/Card.java @@ -229,6 +229,14 @@ public class Card extends ApiResource @SerializedName("object") String object; + /** + * Status of a card based on the card issuer. + * + *

One of {@code regulated}, or {@code unregulated}. + */ + @SerializedName("regulated_status") + String regulatedStatus; + /** * For external accounts that are cards, possible values are {@code new} and {@code errored}. If a * payout fails, the status is set to {@code errored} and API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Funding extends StripeObject { + @SerializedName("card") + Card card; + + /** + * funding type of the underlying payment method. + * + *

Equal to {@code card}. + */ + @SerializedName("type") + String type; + + /** + * For more details about Card, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Card extends StripeObject { + /** + * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or + * {@code unknown}. + */ + @SerializedName("brand") + String brand; + + /** + * Two-letter ISO code representing the country of the card. You could use this attribute + * to get a sense of the international breakdown of cards you've collected. + */ + @SerializedName("country") + String country; + + /** Two-digit number representing the card's expiration month. */ + @SerializedName("exp_month") + Long expMonth; + + /** Four-digit number representing the card's expiration year. */ + @SerializedName("exp_year") + Long expYear; + + /** + * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code + * unknown}. + */ + @SerializedName("funding") + String funding; + + /** The last four digits of the card. */ + @SerializedName("last4") + String last4; + } + } + } /** * For more details about AuBecsDebit, please refer to the One of {@code regulated}, or {@code unregulated}. + */ + @SerializedName("regulated_status") + String regulatedStatus; + /** Populated if this transaction used 3D Secure authentication. */ @SerializedName("three_d_secure") ThreeDSecure threeDSecure; @@ -3277,7 +3365,73 @@ public static class Promptpay extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class RevolutPay extends StripeObject {} + public static class RevolutPay extends StripeObject { + @SerializedName("funding") + Funding funding; + + /** + * For more details about Funding, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Funding extends StripeObject { + @SerializedName("card") + Card card; + + /** + * funding type of the underlying payment method. + * + *

Equal to {@code card}. + */ + @SerializedName("type") + String type; + + /** + * For more details about Card, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class Card extends StripeObject { + /** + * Card brand. Can be {@code amex}, {@code diners}, {@code discover}, {@code eftpos_au}, + * {@code jcb}, {@code link}, {@code mastercard}, {@code unionpay}, {@code visa}, or + * {@code unknown}. + */ + @SerializedName("brand") + String brand; + + /** + * Two-letter ISO code representing the country of the card. You could use this attribute + * to get a sense of the international breakdown of cards you've collected. + */ + @SerializedName("country") + String country; + + /** Two-digit number representing the card's expiration month. */ + @SerializedName("exp_month") + Long expMonth; + + /** Four-digit number representing the card's expiration year. */ + @SerializedName("exp_year") + Long expYear; + + /** + * Card funding type. Can be {@code credit}, {@code debit}, {@code prepaid}, or {@code + * unknown}. + */ + @SerializedName("funding") + String funding; + + /** The last four digits of the card. */ + @SerializedName("last4") + String last4; + } + } + } /** * For more details about SamsungPay, please refer to the One of {@code regulated}, or {@code unregulated}. + */ + @SerializedName("regulated_status") + String regulatedStatus; + /** Contains details on how this Card may be used for 3D Secure authentication. */ @SerializedName("three_d_secure_usage") ThreeDSecureUsage threeDSecureUsage; diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java index e8c6c92ebd8..1f40060349d 100644 --- a/src/main/java/com/stripe/model/Dispute.java +++ b/src/main/java/com/stripe/model/Dispute.java @@ -780,6 +780,9 @@ public static class EnhancedEvidence extends StripeObject { @SerializedName("visa_compelling_evidence_3") VisaCompellingEvidence3 visaCompellingEvidence3; + @SerializedName("visa_compliance") + VisaCompliance visaCompliance; + /** * For more details about VisaCompellingEvidence3, please refer to the API Reference. @@ -980,6 +983,23 @@ public static class ShippingAddress extends StripeObject { } } } + + /** + * For more details about VisaCompliance, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class VisaCompliance extends StripeObject { + /** + * A field acknowledging the fee incurred when countering a Visa Compliance dispute. If this + * field is set to true, evidence can be submitted for the compliance dispute, and you may + * incur a $500 fee if the case is lost. + */ + @SerializedName("fee_acknowledged") + Boolean feeAcknowledged; + } } } @@ -1032,6 +1052,9 @@ public static class EnhancedEligibility extends StripeObject { @SerializedName("visa_compelling_evidence_3") VisaCompellingEvidence3 visaCompellingEvidence3; + @SerializedName("visa_compliance") + VisaCompliance visaCompliance; + /** * For more details about VisaCompellingEvidence3, please refer to the API Reference. @@ -1055,6 +1078,23 @@ public static class VisaCompellingEvidence3 extends StripeObject { @SerializedName("status") String status; } + + /** + * For more details about VisaCompliance, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class VisaCompliance extends StripeObject { + /** + * Visa Compelling Evidence 3.0 eligibility status. + * + *

One of {@code fee_acknowledged}, or {@code requires_fee_acknowledgement}. + */ + @SerializedName("status") + String status; + } } } diff --git a/src/main/java/com/stripe/model/FundingInstructions.java b/src/main/java/com/stripe/model/FundingInstructions.java index 17db7de5395..64d9d2573d5 100644 --- a/src/main/java/com/stripe/model/FundingInstructions.java +++ b/src/main/java/com/stripe/model/FundingInstructions.java @@ -156,10 +156,16 @@ public static class Aba extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Iban extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + /** The name of the person or business that owns the bank account. */ @SerializedName("account_holder_name") String accountHolderName; + @SerializedName("bank_address") + Address bankAddress; + /** The BIC/SWIFT code of the account. */ @SerializedName("bic") String bic; @@ -181,6 +187,9 @@ public static class Iban extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class SortCode extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + /** The name of the person or business that owns the bank account. */ @SerializedName("account_holder_name") String accountHolderName; @@ -189,6 +198,9 @@ public static class SortCode extends StripeObject { @SerializedName("account_number") String accountNumber; + @SerializedName("bank_address") + Address bankAddress; + /** The six-digit sort code. */ @SerializedName("sort_code") String sortCode; @@ -199,6 +211,16 @@ public static class SortCode extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Spei extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + + /** The account holder name. */ + @SerializedName("account_holder_name") + String accountHolderName; + + @SerializedName("bank_address") + Address bankAddress; + /** The three-digit bank code. */ @SerializedName("bank_code") String bankCode; @@ -249,6 +271,9 @@ public static class Swift extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class Zengin extends StripeObject { + @SerializedName("account_holder_address") + Address accountHolderAddress; + /** The account holder name. */ @SerializedName("account_holder_name") String accountHolderName; @@ -261,6 +286,9 @@ public static class Zengin extends StripeObject { @SerializedName("account_type") String accountType; + @SerializedName("bank_address") + Address bankAddress; + /** The bank code of the account. */ @SerializedName("bank_code") String bankCode; diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java index 060f1051f50..3c0e6774d59 100644 --- a/src/main/java/com/stripe/model/Invoice.java +++ b/src/main/java/com/stripe/model/Invoice.java @@ -2167,6 +2167,15 @@ public Invoice voidInvoice(InvoiceVoidInvoiceParams params, RequestOptions optio @Setter @EqualsAndHashCode(callSuper = false) public static class AutomaticTax extends StripeObject { + /** + * If Stripe disabled automatic tax, this enum describes why. + * + *

One of {@code finalization_requires_location_inputs}, or {@code + * finalization_system_error}. + */ + @SerializedName("disabled_reason") + String disabledReason; + /** * Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice * items (invoice items with manually specified One of {@code regulated}, or {@code unregulated}. + */ + @SerializedName("regulated_status") + String regulatedStatus; + /** Contains details on how this Card may be used for 3D Secure authentication. */ @SerializedName("three_d_secure_usage") ThreeDSecureUsage threeDSecureUsage; diff --git a/src/main/java/com/stripe/model/SetupIntent.java b/src/main/java/com/stripe/model/SetupIntent.java index 1272118c232..d2526771c0e 100644 --- a/src/main/java/com/stripe/model/SetupIntent.java +++ b/src/main/java/com/stripe/model/SetupIntent.java @@ -1124,7 +1124,15 @@ public static class BacsDebit extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class MandateOptions extends StripeObject {} + public static class MandateOptions extends StripeObject { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + String referencePrefix; + } } /** @@ -1294,7 +1302,15 @@ public static class SepaDebit extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class MandateOptions extends StripeObject {} + public static class MandateOptions extends StripeObject { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + String referencePrefix; + } } /** diff --git a/src/main/java/com/stripe/model/StripeError.java b/src/main/java/com/stripe/model/StripeError.java index 2382a2293c3..6675cd8e32a 100644 --- a/src/main/java/com/stripe/model/StripeError.java +++ b/src/main/java/com/stripe/model/StripeError.java @@ -121,6 +121,20 @@ public class StripeError extends StripeObject { @SerializedName("message") String message; + /** + * For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice + * given to merchant by the card network on how to proceed with an error. + */ + @SerializedName("network_advice_code") + String networkAdviceCode; + + /** + * For card errors resulting from a card issuer decline, a brand specific 2, 3, or 4 digit code + * which indicates the reason the authorization failed. + */ + @SerializedName("network_decline_code") + String networkDeclineCode; + /** * If the error is parameter-specific, the parameter related to the error. For example, you can * use this to display a message near the correct form field. diff --git a/src/main/java/com/stripe/model/Subscription.java b/src/main/java/com/stripe/model/Subscription.java index 4a71991e985..72dcd35dc06 100644 --- a/src/main/java/com/stripe/model/Subscription.java +++ b/src/main/java/com/stripe/model/Subscription.java @@ -1277,6 +1277,14 @@ public Subscription update(SubscriptionUpdateParams params, RequestOptions optio @Setter @EqualsAndHashCode(callSuper = false) public static class AutomaticTax extends StripeObject { + /** + * If Stripe disabled automatic tax, this enum describes why. + * + *

Equal to {@code requires_location_inputs}. + */ + @SerializedName("disabled_reason") + String disabledReason; + /** Whether Stripe automatically computes tax on this subscription. */ @SerializedName("enabled") Boolean enabled; diff --git a/src/main/java/com/stripe/model/SubscriptionSchedule.java b/src/main/java/com/stripe/model/SubscriptionSchedule.java index 0f223dd5da4..b3eef2fbd1f 100644 --- a/src/main/java/com/stripe/model/SubscriptionSchedule.java +++ b/src/main/java/com/stripe/model/SubscriptionSchedule.java @@ -703,6 +703,14 @@ public void setOnBehalfOfObject(Account expandableObject) { @Setter @EqualsAndHashCode(callSuper = false) public static class AutomaticTax extends StripeObject { + /** + * If Stripe disabled automatic tax, this enum describes why. + * + *

Equal to {@code requires_location_inputs}. + */ + @SerializedName("disabled_reason") + String disabledReason; + /** Whether Stripe automatically computes tax on invoices created during this phase. */ @SerializedName("enabled") Boolean enabled; @@ -1289,6 +1297,14 @@ public void setPromotionCodeObject(PromotionCode expandableObject) { @Setter @EqualsAndHashCode(callSuper = false) public static class AutomaticTax extends StripeObject { + /** + * If Stripe disabled automatic tax, this enum describes why. + * + *

Equal to {@code requires_location_inputs}. + */ + @SerializedName("disabled_reason") + String disabledReason; + /** Whether Stripe automatically computes tax on invoices created during this phase. */ @SerializedName("enabled") Boolean enabled; diff --git a/src/main/java/com/stripe/model/TaxId.java b/src/main/java/com/stripe/model/TaxId.java index d53166ff8c7..0ea23b3f01d 100644 --- a/src/main/java/com/stripe/model/TaxId.java +++ b/src/main/java/com/stripe/model/TaxId.java @@ -73,21 +73,25 @@ public class TaxId extends ApiResource implements HasId { Owner owner; /** - * Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code ar_cuit}, {@code au_abn}, - * {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code - * br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code - * ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code ch_vat}, {@code cl_tin}, + * Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code am_tin}, {@code ao_tin}, + * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code ba_tin}, {@code bb_tin}, {@code + * bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code bs_tin}, + * {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, {@code ca_pst_mb}, {@code + * ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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}, + * ge_vat}, {@code gn_nif}, {@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 kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code + * ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code np_pan}, {@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 tz_vat}, - * {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat}. Note that some legacy tax IDs have type {@code unknown} + * {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code + * tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, {@code + * us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code vn_tin}, {@code + * za_vat}, {@code zm_tin}, or {@code zw_tin}. Note that some legacy tax IDs have type {@code + * unknown} */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java b/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java index fccbc2921fe..03364483471 100644 --- a/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java +++ b/src/main/java/com/stripe/model/billing/CreditBalanceTransaction.java @@ -206,10 +206,17 @@ public static class Credit extends StripeObject { @SerializedName("amount") Amount amount; + /** + * Details of the invoice to which the reinstated credits were originally applied. Only present + * if {@code type} is {@code credits_application_invoice_voided}. + */ + @SerializedName("credits_application_invoice_voided") + CreditsApplicationInvoiceVoided creditsApplicationInvoiceVoided; + /** * The type of credit transaction. * - *

Equal to {@code credits_granted}. + *

One of {@code credits_application_invoice_voided}, or {@code credits_granted}. */ @SerializedName("type") String type; @@ -255,6 +262,43 @@ public static class Monetary extends StripeObject { Long value; } } + + /** + * For more details about CreditsApplicationInvoiceVoided, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class CreditsApplicationInvoiceVoided extends StripeObject { + /** The invoice to which the reinstated billing credits were originally applied. */ + @SerializedName("invoice") + @Getter(lombok.AccessLevel.NONE) + @Setter(lombok.AccessLevel.NONE) + ExpandableField invoice; + + /** The invoice line item to which the reinstated billing credits were originally applied. */ + @SerializedName("invoice_line_item") + String invoiceLineItem; + + /** Get ID of expandable {@code invoice} object. */ + public String getInvoice() { + return (this.invoice != null) ? this.invoice.getId() : null; + } + + public void setInvoice(String id) { + this.invoice = ApiResource.setExpandableFieldId(id, this.invoice); + } + + /** Get expanded {@code invoice}. */ + public Invoice getInvoiceObject() { + return (this.invoice != null) ? this.invoice.getExpanded() : null; + } + + public void setInvoiceObject(Invoice expandableObject) { + this.invoice = new ExpandableField(expandableObject.getId(), expandableObject); + } + } } /** diff --git a/src/main/java/com/stripe/model/billing/CreditGrant.java b/src/main/java/com/stripe/model/billing/CreditGrant.java index 091662a63a4..a320d926d4d 100644 --- a/src/main/java/com/stripe/model/billing/CreditGrant.java +++ b/src/main/java/com/stripe/model/billing/CreditGrant.java @@ -63,7 +63,7 @@ public class CreditGrant extends ApiResource implements HasId, MetadataStore customer; - /** The time when the billing credits become effective—when they're eligible for use. */ + /** The time when the billing credits become effective-when they're eligible for use. */ @SerializedName("effective_at") Long effectiveAt; @@ -451,7 +451,7 @@ public static class ApplicabilityConfig extends StripeObject { @EqualsAndHashCode(callSuper = false) public static class Scope extends StripeObject { /** - * The price type for which credit grants can apply. We currently only support the {@code + * The price type that credit grants can apply to. We currently only support the {@code * metered} price type. This refers to prices that have a Billing Meter attached to them. * diff --git a/src/main/java/com/stripe/model/billing/Meter.java b/src/main/java/com/stripe/model/billing/Meter.java index 7397d804146..294b51f6bdb 100644 --- a/src/main/java/com/stripe/model/billing/Meter.java +++ b/src/main/java/com/stripe/model/billing/Meter.java @@ -24,10 +24,9 @@ import lombok.Setter; /** - * A billing meter is a resource that allows you to track usage of a particular event. For example, - * you might create a billing meter to track the number of API calls made by a particular user. You - * can then attach the billing meter to a price and attach the price to a subscription to charge the - * user for the number of API calls they make. + * Meters specify how to aggregate meter events over a billing period. Meter events represent the + * actions that customers take in your system. Meters attach to prices and form the basis of the + * bill. * *

Related guide: Usage based * billing @@ -137,22 +136,34 @@ public static Meter create(MeterCreateParams params, RequestOptions options) return getGlobalResponseGetter().request(request, Meter.class); } - /** Deactivates a billing meter. */ + /** + * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t + * attach a deactivated meter to a price. + */ public Meter deactivate() throws StripeException { return deactivate((Map) null, (RequestOptions) null); } - /** Deactivates a billing meter. */ + /** + * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t + * attach a deactivated meter to a price. + */ public Meter deactivate(RequestOptions options) throws StripeException { return deactivate((Map) null, options); } - /** Deactivates a billing meter. */ + /** + * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t + * attach a deactivated meter to a price. + */ public Meter deactivate(Map params) throws StripeException { return deactivate(params, (RequestOptions) null); } - /** Deactivates a billing meter. */ + /** + * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t + * attach a deactivated meter to a price. + */ public Meter deactivate(Map params, RequestOptions options) throws StripeException { String path = @@ -162,12 +173,18 @@ public Meter deactivate(Map params, RequestOptions options) return getResponseGetter().request(request, Meter.class); } - /** Deactivates a billing meter. */ + /** + * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t + * attach a deactivated meter to a price. + */ public Meter deactivate(MeterDeactivateParams params) throws StripeException { return deactivate(params, (RequestOptions) null); } - /** Deactivates a billing meter. */ + /** + * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t + * attach a deactivated meter to a price. + */ public Meter deactivate(MeterDeactivateParams params, RequestOptions options) throws StripeException { String path = @@ -257,22 +274,34 @@ public static MeterCollection list(MeterListParams params, RequestOptions option return getGlobalResponseGetter().request(request, MeterCollection.class); } - /** Reactivates a billing meter. */ + /** + * When a meter is reactivated, events for this meter can be accepted and you can attach the meter + * to a price. + */ public Meter reactivate() throws StripeException { return reactivate((Map) null, (RequestOptions) null); } - /** Reactivates a billing meter. */ + /** + * When a meter is reactivated, events for this meter can be accepted and you can attach the meter + * to a price. + */ public Meter reactivate(RequestOptions options) throws StripeException { return reactivate((Map) null, options); } - /** Reactivates a billing meter. */ + /** + * When a meter is reactivated, events for this meter can be accepted and you can attach the meter + * to a price. + */ public Meter reactivate(Map params) throws StripeException { return reactivate(params, (RequestOptions) null); } - /** Reactivates a billing meter. */ + /** + * When a meter is reactivated, events for this meter can be accepted and you can attach the meter + * to a price. + */ public Meter reactivate(Map params, RequestOptions options) throws StripeException { String path = @@ -282,12 +311,18 @@ public Meter reactivate(Map params, RequestOptions options) return getResponseGetter().request(request, Meter.class); } - /** Reactivates a billing meter. */ + /** + * When a meter is reactivated, events for this meter can be accepted and you can attach the meter + * to a price. + */ public Meter reactivate(MeterReactivateParams params) throws StripeException { return reactivate(params, (RequestOptions) null); } - /** Reactivates a billing meter. */ + /** + * When a meter is reactivated, events for this meter can be accepted and you can attach the meter + * to a price. + */ public Meter reactivate(MeterReactivateParams params, RequestOptions options) throws StripeException { String path = diff --git a/src/main/java/com/stripe/model/billing/MeterEvent.java b/src/main/java/com/stripe/model/billing/MeterEvent.java index 12e27d7dd36..bd6e5919402 100644 --- a/src/main/java/com/stripe/model/billing/MeterEvent.java +++ b/src/main/java/com/stripe/model/billing/MeterEvent.java @@ -15,9 +15,9 @@ import lombok.Setter; /** - * A billing meter event represents a customer's usage of a product. Meter events are used to bill a - * customer based on their usage. Meter events are associated with billing meters, which define the - * shape of the event's payload and how those events are aggregated for billing. + * Meter events represent actions that customers take in your system. You can use meter events to + * bill a customer based on their usage. Meter events are associated with billing meters, which + * define both the contents of the event’s payload and how to aggregate those events. */ @Getter @Setter diff --git a/src/main/java/com/stripe/model/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index f28a95d9cea..bea1df4a1ae 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -1347,7 +1347,10 @@ public static class TaxId extends StripeObject { * {@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}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code - * ma_vat}, {@code by_tin}, or {@code unknown}. + * ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code bb_tin}, {@code cd_nif}, + * {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin}, {@code gn_nif}, {@code + * mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code np_pan}, {@code tj_tin}, + * {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, or {@code unknown}. */ @SerializedName("type") String type; @@ -1974,7 +1977,15 @@ public static class BacsDebit extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class MandateOptions extends StripeObject {} + public static class MandateOptions extends StripeObject { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + String referencePrefix; + } } /** @@ -3022,7 +3033,15 @@ public static class SepaDebit extends StripeObject { @Getter @Setter @EqualsAndHashCode(callSuper = false) - public static class MandateOptions extends StripeObject {} + public static class MandateOptions extends StripeObject { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + String referencePrefix; + } } /** diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java index 05b589e57ff..3b7cc983996 100644 --- a/src/main/java/com/stripe/model/issuing/Authorization.java +++ b/src/main/java/com/stripe/model/issuing/Authorization.java @@ -914,6 +914,10 @@ public static class MerchantData extends StripeObject { @SerializedName("state") String state; + /** The seller's tax identification number. Currently populated for French merchants only. */ + @SerializedName("tax_id") + String taxId; + /** An ID assigned by the seller to the location of the sale. */ @SerializedName("terminal_id") String terminalId; diff --git a/src/main/java/com/stripe/model/issuing/Transaction.java b/src/main/java/com/stripe/model/issuing/Transaction.java index 6593081e096..ec801d27b9b 100644 --- a/src/main/java/com/stripe/model/issuing/Transaction.java +++ b/src/main/java/com/stripe/model/issuing/Transaction.java @@ -491,6 +491,10 @@ public static class MerchantData extends StripeObject { @SerializedName("state") String state; + /** The seller's tax identification number. Currently populated for French merchants only. */ + @SerializedName("tax_id") + String taxId; + /** An ID assigned by the seller to the location of the sale. */ @SerializedName("terminal_id") String terminalId; diff --git a/src/main/java/com/stripe/model/tax/Calculation.java b/src/main/java/com/stripe/model/tax/Calculation.java index 916eaf99ba6..7d954b0954c 100644 --- a/src/main/java/com/stripe/model/tax/Calculation.java +++ b/src/main/java/com/stripe/model/tax/Calculation.java @@ -334,7 +334,10 @@ public static class TaxId extends StripeObject { * {@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}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code - * ma_vat}, {@code by_tin}, or {@code unknown}. + * ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code bb_tin}, {@code cd_nif}, + * {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin}, {@code gn_nif}, {@code + * mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code np_pan}, {@code tj_tin}, + * {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, or {@code unknown}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/tax/Transaction.java b/src/main/java/com/stripe/model/tax/Transaction.java index cbb0832d0c2..62a31b7c897 100644 --- a/src/main/java/com/stripe/model/tax/Transaction.java +++ b/src/main/java/com/stripe/model/tax/Transaction.java @@ -379,7 +379,10 @@ public static class TaxId extends StripeObject { * {@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}, {@code tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code - * ma_vat}, {@code by_tin}, or {@code unknown}. + * ma_vat}, {@code by_tin}, {@code ao_tin}, {@code bs_tin}, {@code bb_tin}, {@code cd_nif}, + * {@code mr_nif}, {@code me_pib}, {@code zw_tin}, {@code ba_tin}, {@code gn_nif}, {@code + * mk_vat}, {@code sr_fin}, {@code sn_ninea}, {@code am_tin}, {@code np_pan}, {@code tj_tin}, + * {@code ug_tin}, {@code zm_tin}, {@code kh_tin}, or {@code unknown}. */ @SerializedName("type") String type; diff --git a/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java b/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java index b12224c61d8..06a3b892afe 100644 --- a/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java +++ b/src/main/java/com/stripe/model/treasury/FinancialAccountFeatures.java @@ -236,11 +236,11 @@ public static class StatusDetail extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class InboundTransfers extends StripeObject { - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an inbound ACH specific feature. */ @SerializedName("ach") Ach ach; - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an inbound ACH specific feature. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -358,7 +358,7 @@ public static class StatusDetail extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class OutboundPayments extends StripeObject { - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an outbound ACH specific feature. */ @SerializedName("ach") Ach ach; @@ -366,7 +366,7 @@ public static class OutboundPayments extends StripeObject { @SerializedName("us_domestic_wire") UsDomesticWire usDomesticWire; - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an outbound ACH specific feature. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) @@ -484,7 +484,7 @@ public static class StatusDetail extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class OutboundTransfers extends StripeObject { - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an outbound ACH specific feature. */ @SerializedName("ach") Ach ach; @@ -492,7 +492,7 @@ public static class OutboundTransfers extends StripeObject { @SerializedName("us_domestic_wire") UsDomesticWire usDomesticWire; - /** Toggle settings for enabling/disabling an ACH specific feature. */ + /** Toggle settings for enabling/disabling an outbound ACH specific feature. */ @Getter @Setter @EqualsAndHashCode(callSuper = false) diff --git a/src/main/java/com/stripe/param/AccountCreateParams.java b/src/main/java/com/stripe/param/AccountCreateParams.java index 7257c56fb1f..6e02ba32d52 100644 --- a/src/main/java/com/stripe/param/AccountCreateParams.java +++ b/src/main/java/com/stripe/param/AccountCreateParams.java @@ -133,7 +133,7 @@ public class AccountCreateParams extends ApiRequestParams { /** * A hash of account group type to tokens. These are account groups this account should be added - * to + * to. */ @SerializedName("groups") Groups groups; @@ -471,7 +471,7 @@ public Builder putAllExtraParam(Map map) { /** * A hash of account group type to tokens. These are account groups this account should be added - * to + * to. */ public Builder setGroups(AccountCreateParams.Groups groups) { this.groups = groups; diff --git a/src/main/java/com/stripe/param/AccountSessionCreateParams.java b/src/main/java/com/stripe/param/AccountSessionCreateParams.java index 89da3c4cbe7..f6c4b13d9ab 100644 --- a/src/main/java/com/stripe/param/AccountSessionCreateParams.java +++ b/src/main/java/com/stripe/param/AccountSessionCreateParams.java @@ -446,11 +446,11 @@ public Builder setFeatures( @Getter public static class Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this feature - * is {@code false} when {@code external_account_collection} is enabled and {@code true} - * otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code application}. + * The default value is the opposite of the {@code external_account_collection} value. For + * example, if you don’t set {@code external_account_collection}, it defaults to true and + * {@code disable_stripe_user_authentication} defaults to false. */ @SerializedName("disable_stripe_user_authentication") Boolean disableStripeUserAuthentication; @@ -504,11 +504,12 @@ public AccountSessionCreateParams.Components.AccountManagement.Features build() } /** - * Disables Stripe user authentication for this embedded component. This feature can only - * be false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this - * feature is {@code false} when {@code external_account_collection} is enabled and {@code - * true} otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code + * application}. The default value is the opposite of the {@code + * external_account_collection} value. For example, if you don’t set {@code + * external_account_collection}, it defaults to true and {@code + * disable_stripe_user_authentication} defaults to false. */ public Builder setDisableStripeUserAuthentication( Boolean disableStripeUserAuthentication) { @@ -649,11 +650,11 @@ public Builder setFeatures( @Getter public static class Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this feature - * is {@code false} when {@code external_account_collection} is enabled and {@code true} - * otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code application}. + * The default value is the opposite of the {@code external_account_collection} value. For + * example, if you don’t set {@code external_account_collection}, it defaults to true and + * {@code disable_stripe_user_authentication} defaults to false. */ @SerializedName("disable_stripe_user_authentication") Boolean disableStripeUserAuthentication; @@ -707,11 +708,12 @@ public AccountSessionCreateParams.Components.AccountOnboarding.Features build() } /** - * Disables Stripe user authentication for this embedded component. This feature can only - * be false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this - * feature is {@code false} when {@code external_account_collection} is enabled and {@code - * true} otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code + * application}. The default value is the opposite of the {@code + * external_account_collection} value. For example, if you don’t set {@code + * external_account_collection}, it defaults to true and {@code + * disable_stripe_user_authentication} defaults to false. */ public Builder setDisableStripeUserAuthentication( Boolean disableStripeUserAuthentication) { @@ -851,11 +853,11 @@ public Builder setFeatures( @Getter public static class Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this feature - * is {@code false} when {@code external_account_collection} is enabled and {@code true} - * otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code application}. + * The default value is the opposite of the {@code external_account_collection} value. For + * example, if you don’t set {@code external_account_collection}, it defaults to true and + * {@code disable_stripe_user_authentication} defaults to false. */ @SerializedName("disable_stripe_user_authentication") Boolean disableStripeUserAuthentication; @@ -945,11 +947,12 @@ public AccountSessionCreateParams.Components.Balances.Features build() { } /** - * Disables Stripe user authentication for this embedded component. This feature can only - * be false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this - * feature is {@code false} when {@code external_account_collection} is enabled and {@code - * true} otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code + * application}. The default value is the opposite of the {@code + * external_account_collection} value. For example, if you don’t set {@code + * external_account_collection}, it defaults to true and {@code + * disable_stripe_user_authentication} defaults to false. */ public Builder setDisableStripeUserAuthentication( Boolean disableStripeUserAuthentication) { @@ -1258,11 +1261,11 @@ public Builder setFeatures( @Getter public static class Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this feature - * is {@code false} when {@code external_account_collection} is enabled and {@code true} - * otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code application}. + * The default value is the opposite of the {@code external_account_collection} value. For + * example, if you don’t set {@code external_account_collection}, it defaults to true and + * {@code disable_stripe_user_authentication} defaults to false. */ @SerializedName("disable_stripe_user_authentication") Boolean disableStripeUserAuthentication; @@ -1316,11 +1319,12 @@ public AccountSessionCreateParams.Components.NotificationBanner.Features build() } /** - * Disables Stripe user authentication for this embedded component. This feature can only - * be false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this - * feature is {@code false} when {@code external_account_collection} is enabled and {@code - * true} otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code + * application}. The default value is the opposite of the {@code + * external_account_collection} value. For example, if you don’t set {@code + * external_account_collection}, it defaults to true and {@code + * disable_stripe_user_authentication} defaults to false. */ public Builder setDisableStripeUserAuthentication( Boolean disableStripeUserAuthentication) { @@ -1910,11 +1914,11 @@ public Builder setFeatures( @Getter public static class Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this feature - * is {@code false} when {@code external_account_collection} is enabled and {@code true} - * otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code application}. + * The default value is the opposite of the {@code external_account_collection} value. For + * example, if you don’t set {@code external_account_collection}, it defaults to true and + * {@code disable_stripe_user_authentication} defaults to false. */ @SerializedName("disable_stripe_user_authentication") Boolean disableStripeUserAuthentication; @@ -2004,11 +2008,12 @@ public AccountSessionCreateParams.Components.Payouts.Features build() { } /** - * Disables Stripe user authentication for this embedded component. This feature can only - * be false for accounts where you’re responsible for collecting updated information when - * requirements are due or change, like custom accounts. The default value for this - * feature is {@code false} when {@code external_account_collection} is enabled and {@code - * true} otherwise. + * Disables Stripe user authentication for this embedded component. This value can only be + * true for accounts where {@code controller.requirement_collection} is {@code + * application}. The default value is the opposite of the {@code + * external_account_collection} value. For example, if you don’t set {@code + * external_account_collection}, it defaults to true and {@code + * disable_stripe_user_authentication} defaults to false. */ public Builder setDisableStripeUserAuthentication( Boolean disableStripeUserAuthentication) { diff --git a/src/main/java/com/stripe/param/AccountUpdateParams.java b/src/main/java/com/stripe/param/AccountUpdateParams.java index a65a2ab829a..699141df817 100644 --- a/src/main/java/com/stripe/param/AccountUpdateParams.java +++ b/src/main/java/com/stripe/param/AccountUpdateParams.java @@ -117,7 +117,7 @@ public class AccountUpdateParams extends ApiRequestParams { /** * A hash of account group type to tokens. These are account groups this account should be added - * to + * to. */ @SerializedName("groups") Groups groups; @@ -467,7 +467,7 @@ public Builder putAllExtraParam(Map map) { /** * A hash of account group type to tokens. These are account groups this account should be added - * to + * to. */ public Builder setGroups(AccountUpdateParams.Groups groups) { this.groups = groups; diff --git a/src/main/java/com/stripe/param/BalanceTransactionListParams.java b/src/main/java/com/stripe/param/BalanceTransactionListParams.java index fd751e78649..c3cc50da7e0 100644 --- a/src/main/java/com/stripe/param/BalanceTransactionListParams.java +++ b/src/main/java/com/stripe/param/BalanceTransactionListParams.java @@ -82,10 +82,10 @@ public class BalanceTransactionListParams extends ApiRequestParams { * {@code payment}, {@code payment_failure_refund}, {@code payment_network_reserve_hold}, {@code * payment_network_reserve_release}, {@code payment_refund}, {@code payment_reversal}, {@code * payment_unreconciled}, {@code payout}, {@code payout_cancel}, {@code payout_failure}, {@code - * refund}, {@code refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code - * stripe_fee}, {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, - * {@code transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code - * transfer_refund}. + * payout_minimum_balance_hold}, {@code payout_minimum_balance_release}, {@code refund}, {@code + * refund_failure}, {@code reserve_transaction}, {@code reserved_funds}, {@code stripe_fee}, + * {@code stripe_fx_fee}, {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code + * transfer}, {@code transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}. */ @SerializedName("type") String type; @@ -283,7 +283,8 @@ public Builder setStartingAfter(String startingAfter) { * obligation_reversal_inbound}, {@code payment}, {@code payment_failure_refund}, {@code * payment_network_reserve_hold}, {@code payment_network_reserve_release}, {@code * payment_refund}, {@code payment_reversal}, {@code payment_unreconciled}, {@code payout}, - * {@code payout_cancel}, {@code payout_failure}, {@code refund}, {@code refund_failure}, {@code + * {@code payout_cancel}, {@code payout_failure}, {@code payout_minimum_balance_hold}, {@code + * payout_minimum_balance_release}, {@code refund}, {@code refund_failure}, {@code * reserve_transaction}, {@code reserved_funds}, {@code stripe_fee}, {@code stripe_fx_fee}, * {@code tax_fee}, {@code topup}, {@code topup_reversal}, {@code transfer}, {@code * transfer_cancel}, {@code transfer_failure}, or {@code transfer_refund}. diff --git a/src/main/java/com/stripe/param/CustomerCreateParams.java b/src/main/java/com/stripe/param/CustomerCreateParams.java index 7f09c119bc9..837c376ea17 100644 --- a/src/main/java/com/stripe/param/CustomerCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerCreateParams.java @@ -1681,21 +1681,24 @@ public static class TaxIdData { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code - * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * 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 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 tz_vat}, {@code - * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code ba_tin}, + * {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code + * br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 kh_tin}, {@code + * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, + * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code + * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, + * {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code + * tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, + * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code + * vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -1754,21 +1757,24 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, - * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code - * ca_gst_hst}, {@code 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 - * 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code + * ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, + * {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 kh_tin}, + * {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code + * md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * np_pan}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, + * {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code + * ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(CustomerCreateParams.TaxIdData.Type type) { this.type = type; @@ -1789,6 +1795,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ae_trn") AE_TRN("ae_trn"), + @SerializedName("am_tin") + AM_TIN("am_tin"), + + @SerializedName("ao_tin") + AO_TIN("ao_tin"), + @SerializedName("ar_cuit") AR_CUIT("ar_cuit"), @@ -1798,6 +1810,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("ba_tin") + BA_TIN("ba_tin"), + + @SerializedName("bb_tin") + BB_TIN("bb_tin"), + @SerializedName("bg_uic") BG_UIC("bg_uic"), @@ -1813,6 +1831,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bs_tin") + BS_TIN("bs_tin"), + @SerializedName("by_tin") BY_TIN("by_tin"), @@ -1834,6 +1855,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ca_qst") CA_QST("ca_qst"), + @SerializedName("cd_nif") + CD_NIF("cd_nif"), + @SerializedName("ch_uid") CH_UID("ch_uid"), @@ -1879,6 +1903,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ge_vat") GE_VAT("ge_vat"), + @SerializedName("gn_nif") + GN_NIF("gn_nif"), + @SerializedName("hk_br") HK_BR("hk_br"), @@ -1912,6 +1939,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("kh_tin") + KH_TIN("kh_tin"), + @SerializedName("kr_brn") KR_BRN("kr_brn"), @@ -1930,6 +1960,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("md_vat") MD_VAT("md_vat"), + @SerializedName("me_pib") + ME_PIB("me_pib"), + + @SerializedName("mk_vat") + MK_VAT("mk_vat"), + + @SerializedName("mr_nif") + MR_NIF("mr_nif"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -1951,6 +1990,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("no_voec") NO_VOEC("no_voec"), + @SerializedName("np_pan") + NP_PAN("np_pan"), + @SerializedName("nz_gst") NZ_GST("nz_gst"), @@ -1987,12 +2029,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("si_tin") SI_TIN("si_tin"), + @SerializedName("sn_ninea") + SN_NINEA("sn_ninea"), + + @SerializedName("sr_fin") + SR_FIN("sr_fin"), + @SerializedName("sv_nit") SV_NIT("sv_nit"), @SerializedName("th_vat") TH_VAT("th_vat"), + @SerializedName("tj_tin") + TJ_TIN("tj_tin"), + @SerializedName("tr_tin") TR_TIN("tr_tin"), @@ -2005,6 +2056,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ua_vat") UA_VAT("ua_vat"), + @SerializedName("ug_tin") + UG_TIN("ug_tin"), + @SerializedName("us_ein") US_EIN("us_ein"), @@ -2024,7 +2078,13 @@ public enum Type implements ApiRequestParams.EnumParam { VN_TIN("vn_tin"), @SerializedName("za_vat") - ZA_VAT("za_vat"); + ZA_VAT("za_vat"), + + @SerializedName("zm_tin") + ZM_TIN("zm_tin"), + + @SerializedName("zw_tin") + ZW_TIN("zw_tin"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java index dbc72bfabe0..28fda9d68e8 100644 --- a/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/CustomerTaxIdCreateParams.java @@ -26,20 +26,23 @@ public class CustomerTaxIdCreateParams extends ApiRequestParams { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code - * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code + * am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code ba_tin}, + * {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code + * br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, + * {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 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 li_vat}, {@code ma_vat}, - * {@code md_vat}, {@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 + * {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@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 kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, + * {@code no_voec}, {@code np_pan}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, + * {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, + * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -128,21 +131,24 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code - * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * 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 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 tz_vat}, {@code - * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code ba_tin}, + * {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code + * br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 kh_tin}, {@code + * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, + * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code + * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, + * {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code + * tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, + * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code + * vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(CustomerTaxIdCreateParams.Type type) { this.type = type; @@ -163,6 +169,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ae_trn") AE_TRN("ae_trn"), + @SerializedName("am_tin") + AM_TIN("am_tin"), + + @SerializedName("ao_tin") + AO_TIN("ao_tin"), + @SerializedName("ar_cuit") AR_CUIT("ar_cuit"), @@ -172,6 +184,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("ba_tin") + BA_TIN("ba_tin"), + + @SerializedName("bb_tin") + BB_TIN("bb_tin"), + @SerializedName("bg_uic") BG_UIC("bg_uic"), @@ -187,6 +205,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bs_tin") + BS_TIN("bs_tin"), + @SerializedName("by_tin") BY_TIN("by_tin"), @@ -208,6 +229,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ca_qst") CA_QST("ca_qst"), + @SerializedName("cd_nif") + CD_NIF("cd_nif"), + @SerializedName("ch_uid") CH_UID("ch_uid"), @@ -253,6 +277,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ge_vat") GE_VAT("ge_vat"), + @SerializedName("gn_nif") + GN_NIF("gn_nif"), + @SerializedName("hk_br") HK_BR("hk_br"), @@ -286,6 +313,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("kh_tin") + KH_TIN("kh_tin"), + @SerializedName("kr_brn") KR_BRN("kr_brn"), @@ -304,6 +334,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("md_vat") MD_VAT("md_vat"), + @SerializedName("me_pib") + ME_PIB("me_pib"), + + @SerializedName("mk_vat") + MK_VAT("mk_vat"), + + @SerializedName("mr_nif") + MR_NIF("mr_nif"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -325,6 +364,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("no_voec") NO_VOEC("no_voec"), + @SerializedName("np_pan") + NP_PAN("np_pan"), + @SerializedName("nz_gst") NZ_GST("nz_gst"), @@ -361,12 +403,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("si_tin") SI_TIN("si_tin"), + @SerializedName("sn_ninea") + SN_NINEA("sn_ninea"), + + @SerializedName("sr_fin") + SR_FIN("sr_fin"), + @SerializedName("sv_nit") SV_NIT("sv_nit"), @SerializedName("th_vat") TH_VAT("th_vat"), + @SerializedName("tj_tin") + TJ_TIN("tj_tin"), + @SerializedName("tr_tin") TR_TIN("tr_tin"), @@ -379,6 +430,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ua_vat") UA_VAT("ua_vat"), + @SerializedName("ug_tin") + UG_TIN("ug_tin"), + @SerializedName("us_ein") US_EIN("us_ein"), @@ -398,7 +452,13 @@ public enum Type implements ApiRequestParams.EnumParam { VN_TIN("vn_tin"), @SerializedName("za_vat") - ZA_VAT("za_vat"); + ZA_VAT("za_vat"), + + @SerializedName("zm_tin") + ZM_TIN("zm_tin"), + + @SerializedName("zw_tin") + ZW_TIN("zw_tin"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/CustomerUpdateParams.java b/src/main/java/com/stripe/param/CustomerUpdateParams.java index 7b26280b5a6..3a4c538ab4c 100644 --- a/src/main/java/com/stripe/param/CustomerUpdateParams.java +++ b/src/main/java/com/stripe/param/CustomerUpdateParams.java @@ -1743,7 +1743,7 @@ public static class Tax { /** * A flag that indicates when Stripe should validate the customer tax location. Defaults to - * {@code deferred}. + * {@code auto}. */ @SerializedName("validate_location") ValidateLocation validateLocation; @@ -1822,7 +1822,7 @@ public Builder setIpAddress(EmptyParam ipAddress) { /** * A flag that indicates when Stripe should validate the customer tax location. Defaults to - * {@code deferred}. + * {@code auto}. */ public Builder setValidateLocation( CustomerUpdateParams.Tax.ValidateLocation validateLocation) { diff --git a/src/main/java/com/stripe/param/DisputeUpdateParams.java b/src/main/java/com/stripe/param/DisputeUpdateParams.java index ab7a359b04c..702812e9193 100644 --- a/src/main/java/com/stripe/param/DisputeUpdateParams.java +++ b/src/main/java/com/stripe/param/DisputeUpdateParams.java @@ -1086,10 +1086,17 @@ public static class EnhancedEvidence { @SerializedName("visa_compelling_evidence_3") VisaCompellingEvidence3 visaCompellingEvidence3; + /** Evidence provided for Visa Compliance evidence submission. */ + @SerializedName("visa_compliance") + VisaCompliance visaCompliance; + private EnhancedEvidence( - Map extraParams, VisaCompellingEvidence3 visaCompellingEvidence3) { + Map extraParams, + VisaCompellingEvidence3 visaCompellingEvidence3, + VisaCompliance visaCompliance) { this.extraParams = extraParams; this.visaCompellingEvidence3 = visaCompellingEvidence3; + this.visaCompliance = visaCompliance; } public static Builder builder() { @@ -1101,10 +1108,12 @@ public static class Builder { private VisaCompellingEvidence3 visaCompellingEvidence3; + private VisaCompliance visaCompliance; + /** Finalize and obtain parameter instance from this builder. */ public DisputeUpdateParams.Evidence.EnhancedEvidence build() { return new DisputeUpdateParams.Evidence.EnhancedEvidence( - this.extraParams, this.visaCompellingEvidence3); + this.extraParams, this.visaCompellingEvidence3, this.visaCompliance); } /** @@ -1142,6 +1151,13 @@ public Builder setVisaCompellingEvidence3( this.visaCompellingEvidence3 = visaCompellingEvidence3; return this; } + + /** Evidence provided for Visa Compliance evidence submission. */ + public Builder setVisaCompliance( + DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompliance visaCompliance) { + this.visaCompliance = visaCompliance; + return this; + } } @Getter @@ -2220,6 +2236,88 @@ public Builder setState(EmptyParam state) { } } } + + @Getter + public static class VisaCompliance { + /** + * 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 field acknowledging the fee incurred when countering a Visa Compliance dispute. If this + * field is set to true, evidence can be submitted for the compliance dispute, and you may + * incur a $500 fee if the case is lost. + */ + @SerializedName("fee_acknowledged") + Boolean feeAcknowledged; + + private VisaCompliance(Map extraParams, Boolean feeAcknowledged) { + this.extraParams = extraParams; + this.feeAcknowledged = feeAcknowledged; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private Boolean feeAcknowledged; + + /** Finalize and obtain parameter instance from this builder. */ + public DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompliance build() { + return new DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompliance( + this.extraParams, this.feeAcknowledged); + } + + /** + * 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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompliance#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 + * DisputeUpdateParams.Evidence.EnhancedEvidence.VisaCompliance#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 field acknowledging the fee incurred when countering a Visa Compliance dispute. If + * this field is set to true, evidence can be submitted for the compliance dispute, and + * you may incur a $500 fee if the case is lost. + */ + public Builder setFeeAcknowledged(Boolean feeAcknowledged) { + this.feeAcknowledged = feeAcknowledged; + return this; + } + } + } } } } diff --git a/src/main/java/com/stripe/param/InvoiceCreateParams.java b/src/main/java/com/stripe/param/InvoiceCreateParams.java index 2c45d6891a4..d8805bc2fad 100644 --- a/src/main/java/com/stripe/param/InvoiceCreateParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreateParams.java @@ -1527,6 +1527,7 @@ public static class PaymentSettings { * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ @SerializedName("payment_method_types") Object paymentMethodTypes; @@ -1657,6 +1658,7 @@ public Builder addAllPaymentMethodType( * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) { this.paymentMethodTypes = paymentMethodTypes; @@ -1669,6 +1671,7 @@ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) { * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ public Builder setPaymentMethodTypes( List paymentMethodTypes) { diff --git a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index edfa2218e62..894a3ca27bf 100644 --- a/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java +++ b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java @@ -1356,21 +1356,24 @@ public static class TaxId { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, - * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code - * ca_gst_hst}, {@code 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 - * 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code + * ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, + * {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 kh_tin}, + * {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code + * md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * np_pan}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, + * {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code + * ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -1432,21 +1435,24 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, - * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code - * ca_gst_hst}, {@code 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 - * 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code + * ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, + * {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 + * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, + * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code np_pan}, {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code + * th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, + * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(InvoiceCreatePreviewParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1467,6 +1473,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ae_trn") AE_TRN("ae_trn"), + @SerializedName("am_tin") + AM_TIN("am_tin"), + + @SerializedName("ao_tin") + AO_TIN("ao_tin"), + @SerializedName("ar_cuit") AR_CUIT("ar_cuit"), @@ -1476,6 +1488,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("ba_tin") + BA_TIN("ba_tin"), + + @SerializedName("bb_tin") + BB_TIN("bb_tin"), + @SerializedName("bg_uic") BG_UIC("bg_uic"), @@ -1491,6 +1509,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bs_tin") + BS_TIN("bs_tin"), + @SerializedName("by_tin") BY_TIN("by_tin"), @@ -1512,6 +1533,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ca_qst") CA_QST("ca_qst"), + @SerializedName("cd_nif") + CD_NIF("cd_nif"), + @SerializedName("ch_uid") CH_UID("ch_uid"), @@ -1557,6 +1581,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ge_vat") GE_VAT("ge_vat"), + @SerializedName("gn_nif") + GN_NIF("gn_nif"), + @SerializedName("hk_br") HK_BR("hk_br"), @@ -1590,6 +1617,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("kh_tin") + KH_TIN("kh_tin"), + @SerializedName("kr_brn") KR_BRN("kr_brn"), @@ -1608,6 +1638,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("md_vat") MD_VAT("md_vat"), + @SerializedName("me_pib") + ME_PIB("me_pib"), + + @SerializedName("mk_vat") + MK_VAT("mk_vat"), + + @SerializedName("mr_nif") + MR_NIF("mr_nif"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -1629,6 +1668,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("no_voec") NO_VOEC("no_voec"), + @SerializedName("np_pan") + NP_PAN("np_pan"), + @SerializedName("nz_gst") NZ_GST("nz_gst"), @@ -1665,12 +1707,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("si_tin") SI_TIN("si_tin"), + @SerializedName("sn_ninea") + SN_NINEA("sn_ninea"), + + @SerializedName("sr_fin") + SR_FIN("sr_fin"), + @SerializedName("sv_nit") SV_NIT("sv_nit"), @SerializedName("th_vat") TH_VAT("th_vat"), + @SerializedName("tj_tin") + TJ_TIN("tj_tin"), + @SerializedName("tr_tin") TR_TIN("tr_tin"), @@ -1683,6 +1734,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ua_vat") UA_VAT("ua_vat"), + @SerializedName("ug_tin") + UG_TIN("ug_tin"), + @SerializedName("us_ein") US_EIN("us_ein"), @@ -1702,7 +1756,13 @@ public enum Type implements ApiRequestParams.EnumParam { VN_TIN("vn_tin"), @SerializedName("za_vat") - ZA_VAT("za_vat"); + ZA_VAT("za_vat"), + + @SerializedName("zm_tin") + ZM_TIN("zm_tin"), + + @SerializedName("zw_tin") + ZW_TIN("zw_tin"); @Getter(onMethod_ = {@Override}) private final String value; @@ -6451,8 +6511,9 @@ public static class Item { Object billingThresholds; /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ @SerializedName("clear_usage") Boolean clearUsage; @@ -6616,8 +6677,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) { } /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set - * to {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ public Builder setClearUsage(Boolean clearUsage) { this.clearUsage = clearUsage; diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java index f9819ba92ab..e84f061875c 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java @@ -1848,21 +1848,24 @@ public static class TaxId { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, - * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code - * ca_gst_hst}, {@code 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 - * 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code + * ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, + * {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 kh_tin}, + * {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code + * md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * np_pan}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, + * {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code + * ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -1924,21 +1927,24 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, - * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code - * ca_gst_hst}, {@code 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 - * 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code + * ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, + * {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 + * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, + * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code np_pan}, {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code + * th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, + * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(InvoiceUpcomingLinesListParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1959,6 +1965,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ae_trn") AE_TRN("ae_trn"), + @SerializedName("am_tin") + AM_TIN("am_tin"), + + @SerializedName("ao_tin") + AO_TIN("ao_tin"), + @SerializedName("ar_cuit") AR_CUIT("ar_cuit"), @@ -1968,6 +1980,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("ba_tin") + BA_TIN("ba_tin"), + + @SerializedName("bb_tin") + BB_TIN("bb_tin"), + @SerializedName("bg_uic") BG_UIC("bg_uic"), @@ -1983,6 +2001,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bs_tin") + BS_TIN("bs_tin"), + @SerializedName("by_tin") BY_TIN("by_tin"), @@ -2004,6 +2025,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ca_qst") CA_QST("ca_qst"), + @SerializedName("cd_nif") + CD_NIF("cd_nif"), + @SerializedName("ch_uid") CH_UID("ch_uid"), @@ -2049,6 +2073,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ge_vat") GE_VAT("ge_vat"), + @SerializedName("gn_nif") + GN_NIF("gn_nif"), + @SerializedName("hk_br") HK_BR("hk_br"), @@ -2082,6 +2109,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("kh_tin") + KH_TIN("kh_tin"), + @SerializedName("kr_brn") KR_BRN("kr_brn"), @@ -2100,6 +2130,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("md_vat") MD_VAT("md_vat"), + @SerializedName("me_pib") + ME_PIB("me_pib"), + + @SerializedName("mk_vat") + MK_VAT("mk_vat"), + + @SerializedName("mr_nif") + MR_NIF("mr_nif"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -2121,6 +2160,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("no_voec") NO_VOEC("no_voec"), + @SerializedName("np_pan") + NP_PAN("np_pan"), + @SerializedName("nz_gst") NZ_GST("nz_gst"), @@ -2157,12 +2199,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("si_tin") SI_TIN("si_tin"), + @SerializedName("sn_ninea") + SN_NINEA("sn_ninea"), + + @SerializedName("sr_fin") + SR_FIN("sr_fin"), + @SerializedName("sv_nit") SV_NIT("sv_nit"), @SerializedName("th_vat") TH_VAT("th_vat"), + @SerializedName("tj_tin") + TJ_TIN("tj_tin"), + @SerializedName("tr_tin") TR_TIN("tr_tin"), @@ -2175,6 +2226,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ua_vat") UA_VAT("ua_vat"), + @SerializedName("ug_tin") + UG_TIN("ug_tin"), + @SerializedName("us_ein") US_EIN("us_ein"), @@ -2194,7 +2248,13 @@ public enum Type implements ApiRequestParams.EnumParam { VN_TIN("vn_tin"), @SerializedName("za_vat") - ZA_VAT("za_vat"); + ZA_VAT("za_vat"), + + @SerializedName("zm_tin") + ZM_TIN("zm_tin"), + + @SerializedName("zw_tin") + ZW_TIN("zw_tin"); @Getter(onMethod_ = {@Override}) private final String value; @@ -6976,8 +7036,9 @@ public static class Item { Object billingThresholds; /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ @SerializedName("clear_usage") Boolean clearUsage; @@ -7141,8 +7202,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) { } /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set - * to {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ public Builder setClearUsage(Boolean clearUsage) { this.clearUsage = clearUsage; @@ -7974,8 +8036,9 @@ public static class SubscriptionItem { Object billingThresholds; /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing meter + * attached. */ @SerializedName("clear_usage") Boolean clearUsage; @@ -8138,8 +8201,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) { } /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ public Builder setClearUsage(Boolean clearUsage) { this.clearUsage = clearUsage; diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java index 77da275f068..6403c03dff0 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java @@ -1840,21 +1840,24 @@ public static class TaxId { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, - * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code - * ca_gst_hst}, {@code 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 - * 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code + * ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, + * {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 kh_tin}, + * {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code + * md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * np_pan}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, + * {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code + * ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -1916,21 +1919,24 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, - * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code - * ca_gst_hst}, {@code 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 - * 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code + * ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, + * {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 + * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, + * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code np_pan}, {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code + * th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, + * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(InvoiceUpcomingLinesParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1951,6 +1957,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ae_trn") AE_TRN("ae_trn"), + @SerializedName("am_tin") + AM_TIN("am_tin"), + + @SerializedName("ao_tin") + AO_TIN("ao_tin"), + @SerializedName("ar_cuit") AR_CUIT("ar_cuit"), @@ -1960,6 +1972,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("ba_tin") + BA_TIN("ba_tin"), + + @SerializedName("bb_tin") + BB_TIN("bb_tin"), + @SerializedName("bg_uic") BG_UIC("bg_uic"), @@ -1975,6 +1993,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bs_tin") + BS_TIN("bs_tin"), + @SerializedName("by_tin") BY_TIN("by_tin"), @@ -1996,6 +2017,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ca_qst") CA_QST("ca_qst"), + @SerializedName("cd_nif") + CD_NIF("cd_nif"), + @SerializedName("ch_uid") CH_UID("ch_uid"), @@ -2041,6 +2065,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ge_vat") GE_VAT("ge_vat"), + @SerializedName("gn_nif") + GN_NIF("gn_nif"), + @SerializedName("hk_br") HK_BR("hk_br"), @@ -2074,6 +2101,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("kh_tin") + KH_TIN("kh_tin"), + @SerializedName("kr_brn") KR_BRN("kr_brn"), @@ -2092,6 +2122,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("md_vat") MD_VAT("md_vat"), + @SerializedName("me_pib") + ME_PIB("me_pib"), + + @SerializedName("mk_vat") + MK_VAT("mk_vat"), + + @SerializedName("mr_nif") + MR_NIF("mr_nif"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -2113,6 +2152,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("no_voec") NO_VOEC("no_voec"), + @SerializedName("np_pan") + NP_PAN("np_pan"), + @SerializedName("nz_gst") NZ_GST("nz_gst"), @@ -2149,12 +2191,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("si_tin") SI_TIN("si_tin"), + @SerializedName("sn_ninea") + SN_NINEA("sn_ninea"), + + @SerializedName("sr_fin") + SR_FIN("sr_fin"), + @SerializedName("sv_nit") SV_NIT("sv_nit"), @SerializedName("th_vat") TH_VAT("th_vat"), + @SerializedName("tj_tin") + TJ_TIN("tj_tin"), + @SerializedName("tr_tin") TR_TIN("tr_tin"), @@ -2167,6 +2218,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ua_vat") UA_VAT("ua_vat"), + @SerializedName("ug_tin") + UG_TIN("ug_tin"), + @SerializedName("us_ein") US_EIN("us_ein"), @@ -2186,7 +2240,13 @@ public enum Type implements ApiRequestParams.EnumParam { VN_TIN("vn_tin"), @SerializedName("za_vat") - ZA_VAT("za_vat"); + ZA_VAT("za_vat"), + + @SerializedName("zm_tin") + ZM_TIN("zm_tin"), + + @SerializedName("zw_tin") + ZW_TIN("zw_tin"); @Getter(onMethod_ = {@Override}) private final String value; @@ -6935,8 +6995,9 @@ public static class Item { Object billingThresholds; /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ @SerializedName("clear_usage") Boolean clearUsage; @@ -7100,8 +7161,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) { } /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set - * to {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ public Builder setClearUsage(Boolean clearUsage) { this.clearUsage = clearUsage; @@ -7931,8 +7993,9 @@ public static class SubscriptionItem { Object billingThresholds; /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing meter + * attached. */ @SerializedName("clear_usage") Boolean clearUsage; @@ -8095,8 +8158,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) { } /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ public Builder setClearUsage(Boolean clearUsage) { this.clearUsage = clearUsage; diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java index 5659c84f109..6d38185f694 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java @@ -1762,21 +1762,24 @@ public static class TaxId { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, - * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code - * ca_gst_hst}, {@code 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 - * 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code + * ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, + * {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 kh_tin}, + * {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code + * md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * np_pan}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, + * {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code + * ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -1838,21 +1841,24 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, - * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code - * ca_gst_hst}, {@code 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 - * 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code + * ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, + * {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 + * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, + * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code np_pan}, {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code + * th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, + * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(InvoiceUpcomingParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -1873,6 +1879,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ae_trn") AE_TRN("ae_trn"), + @SerializedName("am_tin") + AM_TIN("am_tin"), + + @SerializedName("ao_tin") + AO_TIN("ao_tin"), + @SerializedName("ar_cuit") AR_CUIT("ar_cuit"), @@ -1882,6 +1894,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("ba_tin") + BA_TIN("ba_tin"), + + @SerializedName("bb_tin") + BB_TIN("bb_tin"), + @SerializedName("bg_uic") BG_UIC("bg_uic"), @@ -1897,6 +1915,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bs_tin") + BS_TIN("bs_tin"), + @SerializedName("by_tin") BY_TIN("by_tin"), @@ -1918,6 +1939,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ca_qst") CA_QST("ca_qst"), + @SerializedName("cd_nif") + CD_NIF("cd_nif"), + @SerializedName("ch_uid") CH_UID("ch_uid"), @@ -1963,6 +1987,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ge_vat") GE_VAT("ge_vat"), + @SerializedName("gn_nif") + GN_NIF("gn_nif"), + @SerializedName("hk_br") HK_BR("hk_br"), @@ -1996,6 +2023,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("kh_tin") + KH_TIN("kh_tin"), + @SerializedName("kr_brn") KR_BRN("kr_brn"), @@ -2014,6 +2044,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("md_vat") MD_VAT("md_vat"), + @SerializedName("me_pib") + ME_PIB("me_pib"), + + @SerializedName("mk_vat") + MK_VAT("mk_vat"), + + @SerializedName("mr_nif") + MR_NIF("mr_nif"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -2035,6 +2074,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("no_voec") NO_VOEC("no_voec"), + @SerializedName("np_pan") + NP_PAN("np_pan"), + @SerializedName("nz_gst") NZ_GST("nz_gst"), @@ -2071,12 +2113,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("si_tin") SI_TIN("si_tin"), + @SerializedName("sn_ninea") + SN_NINEA("sn_ninea"), + + @SerializedName("sr_fin") + SR_FIN("sr_fin"), + @SerializedName("sv_nit") SV_NIT("sv_nit"), @SerializedName("th_vat") TH_VAT("th_vat"), + @SerializedName("tj_tin") + TJ_TIN("tj_tin"), + @SerializedName("tr_tin") TR_TIN("tr_tin"), @@ -2089,6 +2140,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ua_vat") UA_VAT("ua_vat"), + @SerializedName("ug_tin") + UG_TIN("ug_tin"), + @SerializedName("us_ein") US_EIN("us_ein"), @@ -2108,7 +2162,13 @@ public enum Type implements ApiRequestParams.EnumParam { VN_TIN("vn_tin"), @SerializedName("za_vat") - ZA_VAT("za_vat"); + ZA_VAT("za_vat"), + + @SerializedName("zm_tin") + ZM_TIN("zm_tin"), + + @SerializedName("zw_tin") + ZW_TIN("zw_tin"); @Getter(onMethod_ = {@Override}) private final String value; @@ -6826,8 +6886,9 @@ public static class Item { Object billingThresholds; /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ @SerializedName("clear_usage") Boolean clearUsage; @@ -6990,8 +7051,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) { } /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set - * to {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ public Builder setClearUsage(Boolean clearUsage) { this.clearUsage = clearUsage; @@ -7811,8 +7873,9 @@ public static class SubscriptionItem { Object billingThresholds; /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing meter + * attached. */ @SerializedName("clear_usage") Boolean clearUsage; @@ -7975,8 +8038,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) { } /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ public Builder setClearUsage(Boolean clearUsage) { this.clearUsage = clearUsage; diff --git a/src/main/java/com/stripe/param/InvoiceUpdateParams.java b/src/main/java/com/stripe/param/InvoiceUpdateParams.java index b3e0de987bd..416580058cd 100644 --- a/src/main/java/com/stripe/param/InvoiceUpdateParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpdateParams.java @@ -1508,6 +1508,7 @@ public static class PaymentSettings { * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ @SerializedName("payment_method_types") Object paymentMethodTypes; @@ -1638,6 +1639,7 @@ public Builder addAllPaymentMethodType( * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) { this.paymentMethodTypes = paymentMethodTypes; @@ -1650,6 +1652,7 @@ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) { * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ public Builder setPaymentMethodTypes( List paymentMethodTypes) { diff --git a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java index a519de9b02f..7111a2a1cbc 100644 --- a/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentConfirmParams.java @@ -8933,8 +8933,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -8944,10 +8953,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new PaymentIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -8979,6 +8990,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } @@ -16528,8 +16559,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -16539,10 +16579,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new PaymentIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -16574,6 +16616,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } @@ -16823,7 +16885,7 @@ public static class Swish { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The order ID displayed in the Swish app after the payment is authorized. */ + /** A reference for this payment to be displayed in the Swish app. */ @SerializedName("reference") Object reference; @@ -16905,13 +16967,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The order ID displayed in the Swish app after the payment is authorized. */ + /** A reference for this payment to be displayed in the Swish app. */ public Builder setReference(String reference) { this.reference = reference; return this; } - /** The order ID displayed in the Swish app after the payment is authorized. */ + /** A reference for this payment to be displayed in the Swish app. */ public Builder setReference(EmptyParam reference) { this.reference = reference; return this; diff --git a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java index 7477332327c..8bc0b498523 100644 --- a/src/main/java/com/stripe/param/PaymentIntentCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentCreateParams.java @@ -9445,8 +9445,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -9456,10 +9465,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new PaymentIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -9491,6 +9502,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } @@ -17030,8 +17061,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -17041,10 +17081,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new PaymentIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -17076,6 +17118,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } @@ -17325,7 +17387,7 @@ public static class Swish { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The order ID displayed in the Swish app after the payment is authorized. */ + /** A reference for this payment to be displayed in the Swish app. */ @SerializedName("reference") Object reference; @@ -17407,13 +17469,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The order ID displayed in the Swish app after the payment is authorized. */ + /** A reference for this payment to be displayed in the Swish app. */ public Builder setReference(String reference) { this.reference = reference; return this; } - /** The order ID displayed in the Swish app after the payment is authorized. */ + /** A reference for this payment to be displayed in the Swish app. */ public Builder setReference(EmptyParam reference) { this.reference = reference; return this; diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index c347babe145..5096403545f 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -8947,8 +8947,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -8958,10 +8967,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new PaymentIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -8993,6 +9004,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } @@ -16640,8 +16671,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -16651,10 +16691,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public PaymentIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new PaymentIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -16686,6 +16728,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } @@ -16935,7 +16997,7 @@ public static class Swish { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - /** The order ID displayed in the Swish app after the payment is authorized. */ + /** A reference for this payment to be displayed in the Swish app. */ @SerializedName("reference") Object reference; @@ -17017,13 +17079,13 @@ public Builder putAllExtraParam(Map map) { return this; } - /** The order ID displayed in the Swish app after the payment is authorized. */ + /** A reference for this payment to be displayed in the Swish app. */ public Builder setReference(String reference) { this.reference = reference; return this; } - /** The order ID displayed in the Swish app after the payment is authorized. */ + /** A reference for this payment to be displayed in the Swish app. */ public Builder setReference(EmptyParam reference) { this.reference = reference; return this; diff --git a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java index 78e83b42c2a..bef1296d4fc 100644 --- a/src/main/java/com/stripe/param/PaymentLinkCreateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkCreateParams.java @@ -1006,8 +1006,12 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter public static class AutomaticTax { /** - * Required. If {@code true}, tax will be calculated automatically using the - * customer's location. + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes the payment link to collect any billing address information + * necessary for tax calculation. */ @SerializedName("enabled") Boolean enabled; @@ -1053,8 +1057,12 @@ public PaymentLinkCreateParams.AutomaticTax build() { } /** - * Required. If {@code true}, tax will be calculated automatically using the - * customer's location. + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes the payment link to collect any billing address + * information necessary for tax calculation. */ public Builder setEnabled(Boolean enabled) { this.enabled = enabled; diff --git a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java index 31a19f3614d..afdf79c15c1 100644 --- a/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentLinkUpdateParams.java @@ -917,8 +917,12 @@ public enum Type implements ApiRequestParams.EnumParam { @Getter public static class AutomaticTax { /** - * Required. If {@code true}, tax will be calculated automatically using the - * customer's location. + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes the payment link to collect any billing address information + * necessary for tax calculation. */ @SerializedName("enabled") Boolean enabled; @@ -964,8 +968,12 @@ public PaymentLinkUpdateParams.AutomaticTax build() { } /** - * Required. If {@code true}, tax will be calculated automatically using the - * customer's location. + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes the payment link to collect any billing address + * information necessary for tax calculation. */ public Builder setEnabled(Boolean enabled) { this.enabled = enabled; @@ -4499,6 +4507,13 @@ public static class SubscriptionData { @SerializedName("metadata") Object metadata; + /** + * Integer representing the number of trial period days before the customer is charged for the + * first time. Has to be at least 1. + */ + @SerializedName("trial_period_days") + Object trialPeriodDays; + /** Settings related to subscription trials. */ @SerializedName("trial_settings") Object trialSettings; @@ -4507,10 +4522,12 @@ private SubscriptionData( Map extraParams, InvoiceSettings invoiceSettings, Object metadata, + Object trialPeriodDays, Object trialSettings) { this.extraParams = extraParams; this.invoiceSettings = invoiceSettings; this.metadata = metadata; + this.trialPeriodDays = trialPeriodDays; this.trialSettings = trialSettings; } @@ -4525,12 +4542,18 @@ public static class Builder { private Object metadata; + private Object trialPeriodDays; + private Object trialSettings; /** Finalize and obtain parameter instance from this builder. */ public PaymentLinkUpdateParams.SubscriptionData build() { return new PaymentLinkUpdateParams.SubscriptionData( - this.extraParams, this.invoiceSettings, this.metadata, this.trialSettings); + this.extraParams, + this.invoiceSettings, + this.metadata, + this.trialPeriodDays, + this.trialSettings); } /** @@ -4619,6 +4642,24 @@ public Builder setMetadata(Map metadata) { return this; } + /** + * Integer representing the number of trial period days before the customer is charged for the + * first time. Has to be at least 1. + */ + public Builder setTrialPeriodDays(Long trialPeriodDays) { + this.trialPeriodDays = trialPeriodDays; + return this; + } + + /** + * Integer representing the number of trial period days before the customer is charged for the + * first time. Has to be at least 1. + */ + public Builder setTrialPeriodDays(EmptyParam trialPeriodDays) { + this.trialPeriodDays = trialPeriodDays; + return this; + } + /** Settings related to subscription trials. */ public Builder setTrialSettings( PaymentLinkUpdateParams.SubscriptionData.TrialSettings trialSettings) { diff --git a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java index 2b2f85f524a..22c575d76df 100644 --- a/src/main/java/com/stripe/param/SetupIntentConfirmParams.java +++ b/src/main/java/com/stripe/param/SetupIntentConfirmParams.java @@ -6318,8 +6318,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -6329,10 +6338,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new SetupIntentConfirmParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -6364,6 +6375,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } @@ -7774,8 +7805,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -7785,10 +7825,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new SetupIntentConfirmParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -7820,6 +7862,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } diff --git a/src/main/java/com/stripe/param/SetupIntentCreateParams.java b/src/main/java/com/stripe/param/SetupIntentCreateParams.java index ad9151e22ce..09c2547ad5f 100644 --- a/src/main/java/com/stripe/param/SetupIntentCreateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentCreateParams.java @@ -6779,8 +6779,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -6790,10 +6799,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new SetupIntentCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -6825,6 +6836,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } @@ -8235,8 +8266,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -8246,10 +8286,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new SetupIntentCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -8281,6 +8323,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } diff --git a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java index 2b89aa41f9c..e233c2d66a6 100644 --- a/src/main/java/com/stripe/param/SetupIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/SetupIntentUpdateParams.java @@ -6262,8 +6262,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -6273,10 +6282,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new SetupIntentUpdateParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -6308,6 +6319,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } @@ -7799,8 +7830,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -7810,10 +7850,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SetupIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new SetupIntentUpdateParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -7845,6 +7887,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } } diff --git a/src/main/java/com/stripe/param/SubscriptionCreateParams.java b/src/main/java/com/stripe/param/SubscriptionCreateParams.java index 367991e8a04..e9a3bd8eea8 100644 --- a/src/main/java/com/stripe/param/SubscriptionCreateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionCreateParams.java @@ -3211,6 +3211,7 @@ public static class PaymentSettings { * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ @SerializedName("payment_method_types") Object paymentMethodTypes; @@ -3333,6 +3334,7 @@ public Builder addAllPaymentMethodType( * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) { this.paymentMethodTypes = paymentMethodTypes; @@ -3345,6 +3347,7 @@ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) { * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ public Builder setPaymentMethodTypes( List paymentMethodTypes) { diff --git a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java index c953b8f3a52..3f171182613 100644 --- a/src/main/java/com/stripe/param/SubscriptionUpdateParams.java +++ b/src/main/java/com/stripe/param/SubscriptionUpdateParams.java @@ -2507,8 +2507,9 @@ public static class Item { Object billingThresholds; /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing meter + * attached. */ @SerializedName("clear_usage") Boolean clearUsage; @@ -2671,8 +2672,9 @@ public Builder setBillingThresholds(EmptyParam billingThresholds) { } /** - * Delete all usage for a given subscription item. Allowed only when {@code deleted} is set to - * {@code true} and the current plan's {@code usage_type} is {@code metered}. + * Delete all usage for a given subscription item. You must pass this when deleting a usage + * records subscription item. {@code clear_usage} has no effect if the plan has a billing + * meter attached. */ public Builder setClearUsage(Boolean clearUsage) { this.clearUsage = clearUsage; @@ -3596,6 +3598,7 @@ public static class PaymentSettings { * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ @SerializedName("payment_method_types") Object paymentMethodTypes; @@ -3718,6 +3721,7 @@ public Builder addAllPaymentMethodType( * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) { this.paymentMethodTypes = paymentMethodTypes; @@ -3730,6 +3734,7 @@ public Builder setPaymentMethodTypes(EmptyParam paymentMethodTypes) { * invoice’s default payment method, the subscription’s default payment method, the customer’s * default payment method, and your invoice template settings. + * Should not be specified with payment_method_configuration */ public Builder setPaymentMethodTypes( List paymentMethodTypes) { diff --git a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java index 24b2317f61d..2ade24b85fa 100644 --- a/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCollectionCreateParams.java @@ -26,20 +26,23 @@ public class TaxIdCollectionCreateParams extends ApiRequestParams { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code - * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code + * am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code ba_tin}, + * {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code + * br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, + * {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 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 li_vat}, {@code ma_vat}, - * {@code md_vat}, {@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 + * {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@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 kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, + * {@code no_voec}, {@code np_pan}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, + * {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, + * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -128,21 +131,24 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code - * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * 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 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 tz_vat}, {@code - * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code ba_tin}, + * {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code + * br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 kh_tin}, {@code + * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, + * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code + * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, + * {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code + * tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, + * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code + * vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(TaxIdCollectionCreateParams.Type type) { this.type = type; @@ -163,6 +169,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ae_trn") AE_TRN("ae_trn"), + @SerializedName("am_tin") + AM_TIN("am_tin"), + + @SerializedName("ao_tin") + AO_TIN("ao_tin"), + @SerializedName("ar_cuit") AR_CUIT("ar_cuit"), @@ -172,6 +184,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("ba_tin") + BA_TIN("ba_tin"), + + @SerializedName("bb_tin") + BB_TIN("bb_tin"), + @SerializedName("bg_uic") BG_UIC("bg_uic"), @@ -187,6 +205,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bs_tin") + BS_TIN("bs_tin"), + @SerializedName("by_tin") BY_TIN("by_tin"), @@ -208,6 +229,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ca_qst") CA_QST("ca_qst"), + @SerializedName("cd_nif") + CD_NIF("cd_nif"), + @SerializedName("ch_uid") CH_UID("ch_uid"), @@ -253,6 +277,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ge_vat") GE_VAT("ge_vat"), + @SerializedName("gn_nif") + GN_NIF("gn_nif"), + @SerializedName("hk_br") HK_BR("hk_br"), @@ -286,6 +313,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("kh_tin") + KH_TIN("kh_tin"), + @SerializedName("kr_brn") KR_BRN("kr_brn"), @@ -304,6 +334,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("md_vat") MD_VAT("md_vat"), + @SerializedName("me_pib") + ME_PIB("me_pib"), + + @SerializedName("mk_vat") + MK_VAT("mk_vat"), + + @SerializedName("mr_nif") + MR_NIF("mr_nif"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -325,6 +364,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("no_voec") NO_VOEC("no_voec"), + @SerializedName("np_pan") + NP_PAN("np_pan"), + @SerializedName("nz_gst") NZ_GST("nz_gst"), @@ -361,12 +403,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("si_tin") SI_TIN("si_tin"), + @SerializedName("sn_ninea") + SN_NINEA("sn_ninea"), + + @SerializedName("sr_fin") + SR_FIN("sr_fin"), + @SerializedName("sv_nit") SV_NIT("sv_nit"), @SerializedName("th_vat") TH_VAT("th_vat"), + @SerializedName("tj_tin") + TJ_TIN("tj_tin"), + @SerializedName("tr_tin") TR_TIN("tr_tin"), @@ -379,6 +430,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ua_vat") UA_VAT("ua_vat"), + @SerializedName("ug_tin") + UG_TIN("ug_tin"), + @SerializedName("us_ein") US_EIN("us_ein"), @@ -398,7 +452,13 @@ public enum Type implements ApiRequestParams.EnumParam { VN_TIN("vn_tin"), @SerializedName("za_vat") - ZA_VAT("za_vat"); + ZA_VAT("za_vat"), + + @SerializedName("zm_tin") + ZM_TIN("zm_tin"), + + @SerializedName("zw_tin") + ZW_TIN("zw_tin"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/TaxIdCreateParams.java b/src/main/java/com/stripe/param/TaxIdCreateParams.java index 6a7dea021d0..675c7544415 100644 --- a/src/main/java/com/stripe/param/TaxIdCreateParams.java +++ b/src/main/java/com/stripe/param/TaxIdCreateParams.java @@ -30,20 +30,23 @@ public class TaxIdCreateParams extends ApiRequestParams { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code - * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code ch_uid}, {@code + * am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code ba_tin}, + * {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code + * br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code ca_pst_bc}, + * {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 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 li_vat}, {@code ma_vat}, - * {@code md_vat}, {@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 + * {@code gb_vat}, {@code ge_vat}, {@code gn_nif}, {@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 kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, + * {@code li_vat}, {@code ma_vat}, {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, + * {@code mx_rfc}, {@code my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, + * {@code no_voec}, {@code np_pan}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * sg_gst}, {@code sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, + * {@code th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, + * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -142,21 +145,24 @@ public Builder setOwner(TaxIdCreateParams.Owner owner) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, {@code - * ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, - * {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code - * 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 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 tz_vat}, {@code - * ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, - * {@code vn_tin}, or {@code za_vat} + * am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code ba_tin}, + * {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, {@code + * br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 kh_tin}, {@code + * kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code md_vat}, + * {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, {@code + * my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code np_pan}, + * {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, {@code + * tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code ug_tin}, + * {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, {@code + * vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(TaxIdCreateParams.Type type) { this.type = type; @@ -293,6 +299,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ae_trn") AE_TRN("ae_trn"), + @SerializedName("am_tin") + AM_TIN("am_tin"), + + @SerializedName("ao_tin") + AO_TIN("ao_tin"), + @SerializedName("ar_cuit") AR_CUIT("ar_cuit"), @@ -302,6 +314,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("ba_tin") + BA_TIN("ba_tin"), + + @SerializedName("bb_tin") + BB_TIN("bb_tin"), + @SerializedName("bg_uic") BG_UIC("bg_uic"), @@ -317,6 +335,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bs_tin") + BS_TIN("bs_tin"), + @SerializedName("by_tin") BY_TIN("by_tin"), @@ -338,6 +359,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ca_qst") CA_QST("ca_qst"), + @SerializedName("cd_nif") + CD_NIF("cd_nif"), + @SerializedName("ch_uid") CH_UID("ch_uid"), @@ -383,6 +407,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ge_vat") GE_VAT("ge_vat"), + @SerializedName("gn_nif") + GN_NIF("gn_nif"), + @SerializedName("hk_br") HK_BR("hk_br"), @@ -416,6 +443,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("kh_tin") + KH_TIN("kh_tin"), + @SerializedName("kr_brn") KR_BRN("kr_brn"), @@ -434,6 +464,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("md_vat") MD_VAT("md_vat"), + @SerializedName("me_pib") + ME_PIB("me_pib"), + + @SerializedName("mk_vat") + MK_VAT("mk_vat"), + + @SerializedName("mr_nif") + MR_NIF("mr_nif"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -455,6 +494,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("no_voec") NO_VOEC("no_voec"), + @SerializedName("np_pan") + NP_PAN("np_pan"), + @SerializedName("nz_gst") NZ_GST("nz_gst"), @@ -491,12 +533,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("si_tin") SI_TIN("si_tin"), + @SerializedName("sn_ninea") + SN_NINEA("sn_ninea"), + + @SerializedName("sr_fin") + SR_FIN("sr_fin"), + @SerializedName("sv_nit") SV_NIT("sv_nit"), @SerializedName("th_vat") TH_VAT("th_vat"), + @SerializedName("tj_tin") + TJ_TIN("tj_tin"), + @SerializedName("tr_tin") TR_TIN("tr_tin"), @@ -509,6 +560,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ua_vat") UA_VAT("ua_vat"), + @SerializedName("ug_tin") + UG_TIN("ug_tin"), + @SerializedName("us_ein") US_EIN("us_ein"), @@ -528,7 +582,13 @@ public enum Type implements ApiRequestParams.EnumParam { VN_TIN("vn_tin"), @SerializedName("za_vat") - ZA_VAT("za_vat"); + ZA_VAT("za_vat"), + + @SerializedName("zm_tin") + ZM_TIN("zm_tin"), + + @SerializedName("zw_tin") + ZW_TIN("zw_tin"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index 0580d57feca..0de2acbc37e 100644 --- a/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java +++ b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java @@ -595,7 +595,10 @@ public enum ApiVersion implements ApiRequestParams.EnumParam { VERSION_2024_10_28_ACACIA("2024-10-28.acacia"), @SerializedName("2024-11-20.acacia") - VERSION_2024_11_20_ACACIA("2024-11-20.acacia"); + VERSION_2024_11_20_ACACIA("2024-11-20.acacia"), + + @SerializedName("2024-12-18.acacia") + VERSION_2024_12_18_ACACIA("2024-12-18.acacia"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java b/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java index 90edb084feb..cbef780ed3c 100644 --- a/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java +++ b/src/main/java/com/stripe/param/billing/CreditBalanceSummaryRetrieveParams.java @@ -236,7 +236,7 @@ public static class ApplicabilityScope { Map extraParams; /** - * Required. The price type for which credit grants can apply. We currently + * Required. The price type that credit grants can apply to. We currently * only support the {@code metered} price type. */ @SerializedName("price_type") @@ -291,7 +291,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. The price type for which credit grants can apply. We currently + * Required. The price type that credit grants can apply to. We currently * only support the {@code metered} price type. */ public Builder setPriceType( diff --git a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java index a00472e10e3..c5ab4882949 100644 --- a/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java +++ b/src/main/java/com/stripe/param/billing/CreditGrantCreateParams.java @@ -28,8 +28,8 @@ public class CreditGrantCreateParams extends ApiRequestParams { String customer; /** - * The time when the billing credits become effective—when they're eligible for use. Defaults to - * the current timestamp if not specified. + * The time when the billing credits become effective-when they're eligible for use. It defaults + * to the current timestamp if not specified. */ @SerializedName("effective_at") Long effectiveAt; @@ -39,8 +39,7 @@ public class CreditGrantCreateParams extends ApiRequestParams { List expand; /** - * The time when the billing credits will expire. If not specified, the billing credits don't - * expire. + * The time when the billing credits expire. If not specified, the billing credits don't expire. */ @SerializedName("expires_at") Long expiresAt; @@ -55,8 +54,8 @@ public class CreditGrantCreateParams extends ApiRequestParams { Map extraParams; /** - * Set of key-value pairs that you can attach to an object. This can be useful for storing - * additional information about the object (for example, cost basis) in a structured format. + * Set of key-value pairs that you can attach to an object. You can use this to store additional + * information about the object (for example, cost basis) in a structured format. */ @SerializedName("metadata") Map metadata; @@ -154,8 +153,8 @@ public Builder setCustomer(String customer) { } /** - * The time when the billing credits become effective—when they're eligible for use. Defaults to - * the current timestamp if not specified. + * The time when the billing credits become effective-when they're eligible for use. It defaults + * to the current timestamp if not specified. */ public Builder setEffectiveAt(Long effectiveAt) { this.effectiveAt = effectiveAt; @@ -189,8 +188,7 @@ public Builder addAllExpand(List elements) { } /** - * The time when the billing credits will expire. If not specified, the billing credits don't - * expire. + * The time when the billing credits expire. If not specified, the billing credits don't expire. */ public Builder setExpiresAt(Long expiresAt) { this.expiresAt = expiresAt; @@ -530,7 +528,7 @@ public static class Scope { Map extraParams; /** - * Required. The price type for which credit grants can apply. We currently + * Required. The price type that credit grants can apply to. We currently * only support the {@code metered} price type. */ @SerializedName("price_type") @@ -585,7 +583,7 @@ public Builder putAllExtraParam(Map map) { } /** - * Required. The price type for which credit grants can apply. We currently + * Required. The price type that credit grants can apply to. We currently * only support the {@code metered} price type. */ public Builder setPriceType( diff --git a/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java b/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java index cde992e155d..77218e325df 100644 --- a/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java +++ b/src/main/java/com/stripe/param/billing/CreditGrantUpdateParams.java @@ -33,7 +33,7 @@ public class CreditGrantUpdateParams extends ApiRequestParams { Map extraParams; /** - * Set of key-value pairs you can attach to an object. This can be useful for storing additional + * Set of key-value pairs you can attach to an object. You can use this to store additional * information about the object (for example, cost basis) in a structured format. */ @SerializedName("metadata") diff --git a/src/main/java/com/stripe/param/billing/MeterCreateParams.java b/src/main/java/com/stripe/param/billing/MeterCreateParams.java index 05978ad27fe..dc694505067 100644 --- a/src/main/java/com/stripe/param/billing/MeterCreateParams.java +++ b/src/main/java/com/stripe/param/billing/MeterCreateParams.java @@ -19,7 +19,7 @@ public class MeterCreateParams extends ApiRequestParams { @SerializedName("default_aggregation") DefaultAggregation defaultAggregation; - /** Required. The meter's name. */ + /** Required. The meter’s name. Not visible to the customer. */ @SerializedName("display_name") String displayName; @@ -116,7 +116,7 @@ public Builder setDefaultAggregation(MeterCreateParams.DefaultAggregation defaul return this; } - /** Required. The meter's name. */ + /** Required. The meter’s name. Not visible to the customer. */ public Builder setDisplayName(String displayName) { this.displayName = displayName; return this; @@ -199,7 +199,7 @@ public Builder setValueSettings(MeterCreateParams.ValueSettings valueSettings) { @Getter public static class CustomerMapping { /** - * Required. The key in the usage event payload to use for mapping the event to + * Required. The key in the meter event payload to use for mapping the event to * a customer. */ @SerializedName("event_payload_key") @@ -245,7 +245,7 @@ public MeterCreateParams.CustomerMapping build() { } /** - * Required. The key in the usage event payload to use for mapping the event + * Required. The key in the meter event payload to use for mapping the event * to a customer. */ public Builder setEventPayloadKey(String eventPayloadKey) { diff --git a/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java b/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java index be342f300fe..5eefd997cdd 100644 --- a/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java +++ b/src/main/java/com/stripe/param/billing/MeterEventCreateParams.java @@ -32,10 +32,10 @@ public class MeterEventCreateParams extends ApiRequestParams { Map extraParams; /** - * A unique identifier for the event. If not provided, one will be generated. We strongly advise - * using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 - * hours. The enforcement of uniqueness primarily addresses issues arising from accidental retries - * or other problems occurring within extremely brief time intervals. This approach helps prevent + * A unique identifier for the event. If not provided, one is generated. We recommend using + * UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 hours. + * The enforcement of uniqueness primarily addresses issues arising from accidental retries or + * other problems occurring within extremely brief time intervals. This approach helps prevent * duplicate entries and ensures data integrity in high-frequency operations. */ @SerializedName("identifier") @@ -162,9 +162,9 @@ public Builder putAllExtraParam(Map map) { } /** - * A unique identifier for the event. If not provided, one will be generated. We strongly advise - * using UUID-like identifiers. We will enforce uniqueness within a rolling period of at least - * 24 hours. The enforcement of uniqueness primarily addresses issues arising from accidental + * A unique identifier for the event. If not provided, one is generated. We recommend using + * UUID-like identifiers. We will enforce uniqueness within a rolling period of at least 24 + * hours. The enforcement of uniqueness primarily addresses issues arising from accidental * retries or other problems occurring within extremely brief time intervals. This approach * helps prevent duplicate entries and ensures data integrity in high-frequency operations. */ diff --git a/src/main/java/com/stripe/param/billing/MeterUpdateParams.java b/src/main/java/com/stripe/param/billing/MeterUpdateParams.java index 6b9552bd775..23987c1af33 100644 --- a/src/main/java/com/stripe/param/billing/MeterUpdateParams.java +++ b/src/main/java/com/stripe/param/billing/MeterUpdateParams.java @@ -12,7 +12,7 @@ @Getter public class MeterUpdateParams extends ApiRequestParams { - /** The meter's name. */ + /** The meter’s name. Not visible to the customer. */ @SerializedName("display_name") Object displayName; @@ -52,13 +52,13 @@ public MeterUpdateParams build() { return new MeterUpdateParams(this.displayName, this.expand, this.extraParams); } - /** The meter's name. */ + /** The meter’s name. Not visible to the customer. */ public Builder setDisplayName(String displayName) { this.displayName = displayName; return this; } - /** The meter's name. */ + /** The meter’s name. Not visible to the customer. */ public Builder setDisplayName(EmptyParam displayName) { this.displayName = displayName; return this; diff --git a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java index e5d713ef794..6e3600135f7 100644 --- a/src/main/java/com/stripe/param/checkout/SessionCreateParams.java +++ b/src/main/java/com/stripe/param/checkout/SessionCreateParams.java @@ -1365,7 +1365,14 @@ public Builder putAllExtraParam(Map map) { @Getter public static class AutomaticTax { - /** Required. Set to true to enable automatic taxes. */ + /** + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes Checkout to collect any billing address information + * necessary for tax calculation. + */ @SerializedName("enabled") Boolean enabled; @@ -1408,7 +1415,14 @@ public SessionCreateParams.AutomaticTax build() { return new SessionCreateParams.AutomaticTax(this.enabled, this.extraParams, this.liability); } - /** Required. Set to true to enable automatic taxes. */ + /** + * Required. Set to {@code true} to calculate tax automatically using the customer's + * location. + * + *

Enabling this parameter causes Checkout to collect any billing address information + * necessary for tax calculation. + */ public Builder setEnabled(Boolean enabled) { this.enabled = enabled; return this; @@ -7514,8 +7528,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -7525,10 +7548,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions build() { return new SessionCreateParams.PaymentMethodOptions.BacsDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -7560,6 +7585,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'DDIC' or 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } @@ -11876,8 +11921,17 @@ public static class MandateOptions { @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) Map extraParams; - private MandateOptions(Map extraParams) { + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special characters: + * '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + @SerializedName("reference_prefix") + Object referencePrefix; + + private MandateOptions(Map extraParams, Object referencePrefix) { this.extraParams = extraParams; + this.referencePrefix = referencePrefix; } public static Builder builder() { @@ -11887,10 +11941,12 @@ public static Builder builder() { public static class Builder { private Map extraParams; + private Object referencePrefix; + /** Finalize and obtain parameter instance from this builder. */ public SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions build() { return new SessionCreateParams.PaymentMethodOptions.SepaDebit.MandateOptions( - this.extraParams); + this.extraParams, this.referencePrefix); } /** @@ -11922,6 +11978,26 @@ public Builder putAllExtraParam(Map map) { this.extraParams.putAll(map); return this; } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(String referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } + + /** + * Prefix used to generate the Mandate reference. Must be at most 12 characters long. Must + * consist of only uppercase letters, numbers, spaces, or the following special + * characters: '/', '_', '-', '&', '.'. Cannot begin with 'STRIPE'. + */ + public Builder setReferencePrefix(EmptyParam referencePrefix) { + this.referencePrefix = referencePrefix; + return this; + } } } diff --git a/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java b/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java index 62537479cd2..02bc4930f35 100644 --- a/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java +++ b/src/main/java/com/stripe/param/forwarding/RequestCreateParams.java @@ -438,7 +438,10 @@ public enum Replacement implements ApiRequestParams.EnumParam { CARD_NUMBER("card_number"), @SerializedName("cardholder_name") - CARDHOLDER_NAME("cardholder_name"); + CARDHOLDER_NAME("cardholder_name"), + + @SerializedName("request_signature") + REQUEST_SIGNATURE("request_signature"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/tax/CalculationCreateParams.java b/src/main/java/com/stripe/param/tax/CalculationCreateParams.java index 5948d1f6023..7c446b06ed5 100644 --- a/src/main/java/com/stripe/param/tax/CalculationCreateParams.java +++ b/src/main/java/com/stripe/param/tax/CalculationCreateParams.java @@ -626,21 +626,24 @@ public static class TaxId { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, - * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code - * ca_gst_hst}, {@code 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 - * 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code + * ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, + * {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 kh_tin}, + * {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, {@code + * md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code my_frp}, + * {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, {@code + * np_pan}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * sg_uen}, {@code si_tin}, {@code sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code th_vat}, + * {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, {@code + * ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code ve_rif}, + * {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ @SerializedName("type") Type type; @@ -702,21 +705,24 @@ public Builder putAllExtraParam(Map map) { /** * Required. Type of the tax ID, one of {@code ad_nrt}, {@code ae_trn}, - * {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code bg_uic}, {@code bh_vat}, {@code - * bo_tin}, {@code br_cnpj}, {@code br_cpf}, {@code by_tin}, {@code ca_bn}, {@code - * ca_gst_hst}, {@code 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 - * 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 li_vat}, {@code ma_vat}, {@code md_vat}, {@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 tz_vat}, {@code ua_vat}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code - * uz_vat}, {@code ve_rif}, {@code vn_tin}, or {@code za_vat} + * {@code am_tin}, {@code ao_tin}, {@code ar_cuit}, {@code au_abn}, {@code au_arn}, {@code + * ba_tin}, {@code bb_tin}, {@code bg_uic}, {@code bh_vat}, {@code bo_tin}, {@code br_cnpj}, + * {@code br_cpf}, {@code bs_tin}, {@code by_tin}, {@code ca_bn}, {@code ca_gst_hst}, {@code + * ca_pst_bc}, {@code ca_pst_mb}, {@code ca_pst_sk}, {@code ca_qst}, {@code cd_nif}, {@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 gn_nif}, {@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 + * kh_tin}, {@code kr_brn}, {@code kz_bin}, {@code li_uid}, {@code li_vat}, {@code ma_vat}, + * {@code md_vat}, {@code me_pib}, {@code mk_vat}, {@code mr_nif}, {@code mx_rfc}, {@code + * my_frp}, {@code my_itn}, {@code my_sst}, {@code ng_tin}, {@code no_vat}, {@code no_voec}, + * {@code np_pan}, {@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 sn_ninea}, {@code sr_fin}, {@code sv_nit}, {@code + * th_vat}, {@code tj_tin}, {@code tr_tin}, {@code tw_vat}, {@code tz_vat}, {@code ua_vat}, + * {@code ug_tin}, {@code us_ein}, {@code uy_ruc}, {@code uz_tin}, {@code uz_vat}, {@code + * ve_rif}, {@code vn_tin}, {@code za_vat}, {@code zm_tin}, or {@code zw_tin} */ public Builder setType(CalculationCreateParams.CustomerDetails.TaxId.Type type) { this.type = type; @@ -737,6 +743,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ae_trn") AE_TRN("ae_trn"), + @SerializedName("am_tin") + AM_TIN("am_tin"), + + @SerializedName("ao_tin") + AO_TIN("ao_tin"), + @SerializedName("ar_cuit") AR_CUIT("ar_cuit"), @@ -746,6 +758,12 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("au_arn") AU_ARN("au_arn"), + @SerializedName("ba_tin") + BA_TIN("ba_tin"), + + @SerializedName("bb_tin") + BB_TIN("bb_tin"), + @SerializedName("bg_uic") BG_UIC("bg_uic"), @@ -761,6 +779,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("br_cpf") BR_CPF("br_cpf"), + @SerializedName("bs_tin") + BS_TIN("bs_tin"), + @SerializedName("by_tin") BY_TIN("by_tin"), @@ -782,6 +803,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ca_qst") CA_QST("ca_qst"), + @SerializedName("cd_nif") + CD_NIF("cd_nif"), + @SerializedName("ch_uid") CH_UID("ch_uid"), @@ -827,6 +851,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ge_vat") GE_VAT("ge_vat"), + @SerializedName("gn_nif") + GN_NIF("gn_nif"), + @SerializedName("hk_br") HK_BR("hk_br"), @@ -860,6 +887,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ke_pin") KE_PIN("ke_pin"), + @SerializedName("kh_tin") + KH_TIN("kh_tin"), + @SerializedName("kr_brn") KR_BRN("kr_brn"), @@ -878,6 +908,15 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("md_vat") MD_VAT("md_vat"), + @SerializedName("me_pib") + ME_PIB("me_pib"), + + @SerializedName("mk_vat") + MK_VAT("mk_vat"), + + @SerializedName("mr_nif") + MR_NIF("mr_nif"), + @SerializedName("mx_rfc") MX_RFC("mx_rfc"), @@ -899,6 +938,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("no_voec") NO_VOEC("no_voec"), + @SerializedName("np_pan") + NP_PAN("np_pan"), + @SerializedName("nz_gst") NZ_GST("nz_gst"), @@ -935,12 +977,21 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("si_tin") SI_TIN("si_tin"), + @SerializedName("sn_ninea") + SN_NINEA("sn_ninea"), + + @SerializedName("sr_fin") + SR_FIN("sr_fin"), + @SerializedName("sv_nit") SV_NIT("sv_nit"), @SerializedName("th_vat") TH_VAT("th_vat"), + @SerializedName("tj_tin") + TJ_TIN("tj_tin"), + @SerializedName("tr_tin") TR_TIN("tr_tin"), @@ -953,6 +1004,9 @@ public enum Type implements ApiRequestParams.EnumParam { @SerializedName("ua_vat") UA_VAT("ua_vat"), + @SerializedName("ug_tin") + UG_TIN("ug_tin"), + @SerializedName("us_ein") US_EIN("us_ein"), @@ -972,7 +1026,13 @@ public enum Type implements ApiRequestParams.EnumParam { VN_TIN("vn_tin"), @SerializedName("za_vat") - ZA_VAT("za_vat"); + ZA_VAT("za_vat"), + + @SerializedName("zm_tin") + ZM_TIN("zm_tin"), + + @SerializedName("zw_tin") + ZW_TIN("zw_tin"); @Getter(onMethod_ = {@Override}) private final String value; diff --git a/src/main/java/com/stripe/param/terminal/LocationUpdateParams.java b/src/main/java/com/stripe/param/terminal/LocationUpdateParams.java index f2989e6def0..bdcd34e505d 100644 --- a/src/main/java/com/stripe/param/terminal/LocationUpdateParams.java +++ b/src/main/java/com/stripe/param/terminal/LocationUpdateParams.java @@ -13,9 +13,9 @@ @Getter public class LocationUpdateParams extends ApiRequestParams { /** - * The full address of the location. If you're updating the {@code address} field, avoid changing - * the {@code country}. If you need to modify the {@code country} field, create a new {@code - * Location} object and re-register any existing readers to that location. + * The full address of the location. You can't change the location's {@code country}. If you need + * to modify the {@code country} field, create a new {@code Location} object and re-register any + * existing readers to that location. */ @SerializedName("address") Address address; @@ -94,9 +94,9 @@ public LocationUpdateParams build() { } /** - * The full address of the location. If you're updating the {@code address} field, avoid - * changing the {@code country}. If you need to modify the {@code country} field, create a new - * {@code Location} object and re-register any existing readers to that location. + * The full address of the location. You can't change the location's {@code country}. If you + * need to modify the {@code country} field, create a new {@code Location} object and + * re-register any existing readers to that location. */ public Builder setAddress(LocationUpdateParams.Address address) { this.address = address; diff --git a/src/main/java/com/stripe/service/billing/MeterService.java b/src/main/java/com/stripe/service/billing/MeterService.java index 57e247d51bb..fe88176b5f7 100644 --- a/src/main/java/com/stripe/service/billing/MeterService.java +++ b/src/main/java/com/stripe/service/billing/MeterService.java @@ -115,19 +115,31 @@ public Meter update(String id, MeterUpdateParams params, RequestOptions options) options); return this.request(request, Meter.class); } - /** Deactivates a billing meter. */ + /** + * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t + * attach a deactivated meter to a price. + */ public Meter deactivate(String id, MeterDeactivateParams params) throws StripeException { return deactivate(id, params, (RequestOptions) null); } - /** Deactivates a billing meter. */ + /** + * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t + * attach a deactivated meter to a price. + */ public Meter deactivate(String id, RequestOptions options) throws StripeException { return deactivate(id, (MeterDeactivateParams) null, options); } - /** Deactivates a billing meter. */ + /** + * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t + * attach a deactivated meter to a price. + */ public Meter deactivate(String id) throws StripeException { return deactivate(id, (MeterDeactivateParams) null, (RequestOptions) null); } - /** Deactivates a billing meter. */ + /** + * When a meter is deactivated, no more meter events will be accepted for this meter. You can’t + * attach a deactivated meter to a price. + */ public Meter deactivate(String id, MeterDeactivateParams params, RequestOptions options) throws StripeException { String path = String.format("/v1/billing/meters/%s/deactivate", ApiResource.urlEncodeId(id)); @@ -140,19 +152,31 @@ public Meter deactivate(String id, MeterDeactivateParams params, RequestOptions options); return this.request(request, Meter.class); } - /** Reactivates a billing meter. */ + /** + * When a meter is reactivated, events for this meter can be accepted and you can attach the meter + * to a price. + */ public Meter reactivate(String id, MeterReactivateParams params) throws StripeException { return reactivate(id, params, (RequestOptions) null); } - /** Reactivates a billing meter. */ + /** + * When a meter is reactivated, events for this meter can be accepted and you can attach the meter + * to a price. + */ public Meter reactivate(String id, RequestOptions options) throws StripeException { return reactivate(id, (MeterReactivateParams) null, options); } - /** Reactivates a billing meter. */ + /** + * When a meter is reactivated, events for this meter can be accepted and you can attach the meter + * to a price. + */ public Meter reactivate(String id) throws StripeException { return reactivate(id, (MeterReactivateParams) null, (RequestOptions) null); } - /** Reactivates a billing meter. */ + /** + * When a meter is reactivated, events for this meter can be accepted and you can attach the meter + * to a price. + */ public Meter reactivate(String id, MeterReactivateParams params, RequestOptions options) throws StripeException { String path = String.format("/v1/billing/meters/%s/reactivate", ApiResource.urlEncodeId(id));