From 419de68dcafdd6639536b4b6f45665ca7c56983e Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:57:49 +0000 Subject: [PATCH 01/16] Update generated code for v1386 --- OPENAPI_VERSION | 2 +- .../com/stripe/param/forwarding/RequestCreateParams.java | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 128fcf47628..3949637a4b9 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1384 \ No newline at end of file +v1386 \ No newline at end of file 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; From fda553da4a0fe4f12dc504481e1b1ebfb96da589 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 16:32:29 +0000 Subject: [PATCH 02/16] Update generated code for v1387 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/issuing/Authorization.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 3949637a4b9..7d20b24e554 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1386 \ No newline at end of file +v1387 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/issuing/Authorization.java b/src/main/java/com/stripe/model/issuing/Authorization.java index 05b589e57ff..5964131850a 100644 --- a/src/main/java/com/stripe/model/issuing/Authorization.java +++ b/src/main/java/com/stripe/model/issuing/Authorization.java @@ -1113,8 +1113,8 @@ public static class RequestHistory extends StripeObject { *

One of {@code account_disabled}, {@code card_active}, {@code card_canceled}, {@code * card_expired}, {@code card_inactive}, {@code cardholder_blocked}, {@code * cardholder_inactive}, {@code cardholder_verification_required}, {@code - * insecure_authorization_method}, {@code insufficient_funds}, {@code not_allowed}, {@code - * pin_blocked}, {@code spending_controls}, {@code suspected_fraud}, {@code + * insecure_authorization_method}, {@code insufficient_funds}, {@code network_fallback}, {@code + * not_allowed}, {@code pin_blocked}, {@code spending_controls}, {@code suspected_fraud}, {@code * verification_failed}, {@code webhook_approved}, {@code webhook_declined}, {@code * webhook_error}, or {@code webhook_timeout}. */ From fb386e5ea2f5aa5ecd6a1c5bd4aebcd88a7efdcf Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 19:47:58 +0000 Subject: [PATCH 03/16] Update generated code for v1388 --- OPENAPI_VERSION | 2 +- .../java/com/stripe/model/PaymentRecord.java | 27 ------------------- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 7d20b24e554..0378aa2f47f 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1387 \ No newline at end of file +v1388 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/PaymentRecord.java b/src/main/java/com/stripe/model/PaymentRecord.java index da2ac2f2011..ee0787acdf9 100644 --- a/src/main/java/com/stripe/model/PaymentRecord.java +++ b/src/main/java/com/stripe/model/PaymentRecord.java @@ -43,10 +43,6 @@ public class PaymentRecord extends ApiResource implements HasId { @SerializedName("amount_guaranteed") AmountGuaranteed amountGuaranteed; - /** A representation of an amount of money, consisting of an amount and a currency. */ - @SerializedName("amount_refunded") - AmountRefunded amountRefunded; - /** A representation of an amount of money, consisting of an amount and a currency. */ @SerializedName("amount_requested") AmountRequested amountRequested; @@ -459,28 +455,6 @@ public static class AmountGuaranteed extends StripeObject { Long value; } - /** A representation of an amount of money, consisting of an amount and a currency. */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class AmountRefunded extends StripeObject { - /** - * Three-letter ISO currency - * code, in lowercase. Must be a supported - * currency. - */ - @SerializedName("currency") - String currency; - - /** - * A positive integer representing the amount in the smallest currency unit e.g., 100 - * cents for $1.00 or 100 for ¥100, a zero-decimal currency). - */ - @SerializedName("value") - Long value; - } - /** A representation of an amount of money, consisting of an amount and a currency. */ @Getter @Setter @@ -683,7 +657,6 @@ public void setResponseGetter(StripeResponseGetter responseGetter) { trySetResponseGetter(amountCanceled, responseGetter); trySetResponseGetter(amountFailed, responseGetter); trySetResponseGetter(amountGuaranteed, responseGetter); - trySetResponseGetter(amountRefunded, responseGetter); trySetResponseGetter(amountRequested, responseGetter); trySetResponseGetter(customerDetails, responseGetter); trySetResponseGetter(paymentMethodDetails, responseGetter); From 4f66444a7e1eb64397833535e3b310012acddcea Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:39:22 +0000 Subject: [PATCH 04/16] Update generated code for v1388 --- .../java/com/stripe/model/capital/FinancingSummary.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/stripe/model/capital/FinancingSummary.java b/src/main/java/com/stripe/model/capital/FinancingSummary.java index 2d312f8051b..338a8426a31 100644 --- a/src/main/java/com/stripe/model/capital/FinancingSummary.java +++ b/src/main/java/com/stripe/model/capital/FinancingSummary.java @@ -106,7 +106,7 @@ public static class Details extends StripeObject { * milliseconds since unix epoch. */ @SerializedName("advance_paid_out_at") - Long advancePaidOutAt; + BigDecimal advancePaidOutAt; /** Currency that the financing offer is transacted in. For example, {@code usd}. */ @SerializedName("currency") @@ -133,7 +133,7 @@ public static class Details extends StripeObject { * epoch. */ @SerializedName("repayments_begin_at") - Long repaymentsBeginAt; + BigDecimal repaymentsBeginAt; /** Per-transaction rate at which Stripe will withhold funds to repay the financing. */ @SerializedName("withhold_rate") @@ -150,7 +150,7 @@ public static class CurrentRepaymentInterval extends StripeObject { * seconds since unix epoch. */ @SerializedName("due_at") - Long dueAt; + BigDecimal dueAt; /** The amount that has already been paid in the current repayment interval. */ @SerializedName("paid_amount") From 70a0164cce7514eb6170418cc4d23c705dd165a4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:06:40 +0000 Subject: [PATCH 05/16] Update generated code for v1389 --- OPENAPI_VERSION | 2 +- .../billing/CreditBalanceTransaction.java | 46 ++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0378aa2f47f..cd5e5a3314d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1388 \ No newline at end of file +v1389 \ No newline at end of file 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); + } + } } /** From 4ebf6c370930ea6a2382ec3d5144fb99cd153eb4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:41:33 +0000 Subject: [PATCH 06/16] Update generated code for v1390 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Charge.java | 26 --- .../java/com/stripe/model/PaymentIntent.java | 8 - .../stripe/model/issuing/Authorization.java | 4 + .../com/stripe/model/issuing/Transaction.java | 4 + .../param/PaymentIntentConfirmParams.java | 32 ---- .../param/PaymentIntentCreateParams.java | 32 ---- ...entIntentIncrementAuthorizationParams.java | 181 ------------------ .../param/PaymentIntentUpdateParams.java | 32 ---- 9 files changed, 9 insertions(+), 312 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index cd5e5a3314d..53cd015554d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1389 \ No newline at end of file +v1390 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 42034e3ed55..ea9ee2d154b 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1770,10 +1770,6 @@ public static class Card extends StripeObject { @SerializedName("amount_authorized") Long amountAuthorized; - /** The latest amount intended to be authorized by this charge. */ - @SerializedName("amount_requested") - Long amountRequested; - /** Authorization code on the charge. */ @SerializedName("authorization_code") String authorizationCode; @@ -1904,9 +1900,6 @@ public static class Card extends StripeObject { @SerializedName("overcapture") Overcapture overcapture; - @SerializedName("partial_authorization") - PartialAuthorization partialAuthorization; - /** Populated if this transaction used 3D Secure authentication. */ @SerializedName("three_d_secure") ThreeDSecure threeDSecure; @@ -2091,25 +2084,6 @@ public static class Overcapture extends StripeObject { String status; } - /** - * For more details about PartialAuthorization, please refer to the API Reference. - */ - @Getter - @Setter - @EqualsAndHashCode(callSuper = false) - public static class PartialAuthorization extends StripeObject { - /** - * Indicates whether the transaction requested for partial authorization feature and the - * authorization outcome. - * - *

One of {@code declined}, {@code fully_authorized}, {@code not_requested}, or {@code - * partially_authorized}. - */ - @SerializedName("status") - String status; - } - /** * For more details about ThreeDSecure, please refer to the API Reference. diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index ed06a71fe73..a0a74841f28 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -3745,14 +3745,6 @@ public static class Card extends StripeObject { @SerializedName("request_overcapture") String requestOvercapture; - /** - * Request partial authorization on this PaymentIntent. - * - *

One of {@code if_available}, or {@code never}. - */ - @SerializedName("request_partial_authorization") - String requestPartialAuthorization; - /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and metadata; - /** Payment method-specific configuration for this PaymentIntent. */ - @SerializedName("payment_method_options") - PaymentMethodOptions paymentMethodOptions; - /** * Text that appears on the customer's statement as the statement descriptor for a non-card or * card charge. This value overrides the account's default statement descriptor. For information @@ -89,7 +85,6 @@ private PaymentIntentIncrementAuthorizationParams( List expand, Map extraParams, Map metadata, - PaymentMethodOptions paymentMethodOptions, String statementDescriptor, TransferData transferData) { this.amount = amount; @@ -99,7 +94,6 @@ private PaymentIntentIncrementAuthorizationParams( this.expand = expand; this.extraParams = extraParams; this.metadata = metadata; - this.paymentMethodOptions = paymentMethodOptions; this.statementDescriptor = statementDescriptor; this.transferData = transferData; } @@ -123,8 +117,6 @@ public static class Builder { private Map metadata; - private PaymentMethodOptions paymentMethodOptions; - private String statementDescriptor; private TransferData transferData; @@ -139,7 +131,6 @@ public PaymentIntentIncrementAuthorizationParams build() { this.expand, this.extraParams, this.metadata, - this.paymentMethodOptions, this.statementDescriptor, this.transferData); } @@ -257,13 +248,6 @@ public Builder putAllMetadata(Map map) { return this; } - /** Payment method-specific configuration for this PaymentIntent. */ - public Builder setPaymentMethodOptions( - PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions paymentMethodOptions) { - this.paymentMethodOptions = paymentMethodOptions; - return this; - } - /** * Text that appears on the customer's statement as the statement descriptor for a non-card or * card charge. This value overrides the account's default statement descriptor. For information @@ -523,171 +507,6 @@ public Builder putAllExtraParam(Map map) { } } - @Getter - public static class PaymentMethodOptions { - /** Configuration for any card payments attempted on this PaymentIntent. */ - @SerializedName("card") - Card card; - - /** - * Map of extra parameters for custom features not available in this client library. The content - * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each - * key/value pair is serialized as if the key is a root-level field (serialized) name in this - * param object. Effectively, this map is flattened to its parent instance. - */ - @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) - Map extraParams; - - private PaymentMethodOptions(Card card, Map extraParams) { - this.card = card; - this.extraParams = extraParams; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Card card; - - private Map extraParams; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions build() { - return new PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions( - this.card, this.extraParams); - } - - /** Configuration for any card payments attempted on this PaymentIntent. */ - public Builder setCard( - PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card card) { - this.card = card; - return this; - } - - /** - * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` - * call, and subsequent calls add additional key/value pairs to the original map. See {@link - * PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions#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 PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions#extraParams} for - * the field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - } - - @Getter - public static class Card { - /** - * 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; - - /** Request partial authorization on this PaymentIntent. */ - @SerializedName("request_partial_authorization") - RequestPartialAuthorization requestPartialAuthorization; - - private Card( - Map extraParams, - RequestPartialAuthorization requestPartialAuthorization) { - this.extraParams = extraParams; - this.requestPartialAuthorization = requestPartialAuthorization; - } - - public static Builder builder() { - return new Builder(); - } - - public static class Builder { - private Map extraParams; - - private RequestPartialAuthorization requestPartialAuthorization; - - /** Finalize and obtain parameter instance from this builder. */ - public PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card build() { - return new PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card( - this.extraParams, this.requestPartialAuthorization); - } - - /** - * 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 - * PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card#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 - * PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card#extraParams} for the - * field documentation. - */ - public Builder putAllExtraParam(Map map) { - if (this.extraParams == null) { - this.extraParams = new HashMap<>(); - } - this.extraParams.putAll(map); - return this; - } - - /** Request partial authorization on this PaymentIntent. */ - public Builder setRequestPartialAuthorization( - PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card - .RequestPartialAuthorization - requestPartialAuthorization) { - this.requestPartialAuthorization = requestPartialAuthorization; - return this; - } - } - - public enum RequestPartialAuthorization implements ApiRequestParams.EnumParam { - @SerializedName("if_available") - IF_AVAILABLE("if_available"), - - @SerializedName("never") - NEVER("never"); - - @Getter(onMethod_ = {@Override}) - private final String value; - - RequestPartialAuthorization(String value) { - this.value = value; - } - } - } - } - @Getter public static class TransferData { /** The amount that will be transferred automatically when a charge succeeds. */ diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index 5e6a947c891..fccfc205735 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -15783,10 +15783,6 @@ public static class Card { @SerializedName("request_overcapture") RequestOvercapture requestOvercapture; - /** Request partial authorization on this PaymentIntent. */ - @SerializedName("request_partial_authorization") - RequestPartialAuthorization requestPartialAuthorization; - /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and Date: Sat, 7 Dec 2024 00:38:12 +0000 Subject: [PATCH 07/16] Update generated code for v1392 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Invoice.java | 7 +- src/main/java/com/stripe/model/Order.java | 5 +- .../com/stripe/model/QuotePreviewInvoice.java | 7 +- src/main/java/com/stripe/model/TaxId.java | 28 ++-- .../com/stripe/model/checkout/Session.java | 10 +- .../com/stripe/model/tax/Calculation.java | 5 +- .../com/stripe/model/tax/Transaction.java | 5 +- .../stripe/param/CustomerCreateParams.java | 120 +++++++++++++----- .../param/CustomerTaxIdCreateParams.java | 114 +++++++++++++---- .../param/InvoiceCreatePreviewParams.java | 120 +++++++++++++----- .../param/InvoiceUpcomingLinesListParams.java | 120 +++++++++++++----- .../param/InvoiceUpcomingLinesParams.java | 120 +++++++++++++----- .../stripe/param/InvoiceUpcomingParams.java | 120 +++++++++++++----- .../com/stripe/param/OrderCreateParams.java | 120 +++++++++++++----- .../com/stripe/param/OrderUpdateParams.java | 120 +++++++++++++----- .../param/TaxIdCollectionCreateParams.java | 114 +++++++++++++---- .../com/stripe/param/TaxIdCreateParams.java | 114 +++++++++++++---- .../param/tax/CalculationCreateParams.java | 120 +++++++++++++----- 19 files changed, 1028 insertions(+), 343 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 53cd015554d..3819fbfcf71 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1390 \ No newline at end of file +v1392 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Invoice.java b/src/main/java/com/stripe/model/Invoice.java index 01ddecb766c..0dcaebc51dd 100644 --- a/src/main/java/com/stripe/model/Invoice.java +++ b/src/main/java/com/stripe/model/Invoice.java @@ -2632,8 +2632,11 @@ public static class CustomerTaxId extends StripeObject { * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code - * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or - * {@code unknown}. + * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code 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/Order.java b/src/main/java/com/stripe/model/Order.java index 9324f06e04e..6473259060c 100644 --- a/src/main/java/com/stripe/model/Order.java +++ b/src/main/java/com/stripe/model/Order.java @@ -1938,7 +1938,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/QuotePreviewInvoice.java b/src/main/java/com/stripe/model/QuotePreviewInvoice.java index 1a2dabbdfbc..751f96960e1 100644 --- a/src/main/java/com/stripe/model/QuotePreviewInvoice.java +++ b/src/main/java/com/stripe/model/QuotePreviewInvoice.java @@ -1148,8 +1148,11 @@ public static class CustomerTaxId extends StripeObject { * {@code ge_vat}, {@code ua_vat}, {@code is_vat}, {@code bg_uic}, {@code hu_tin}, {@code * si_tin}, {@code ke_pin}, {@code tr_tin}, {@code eg_tin}, {@code ph_tin}, {@code bh_vat}, * {@code kz_bin}, {@code ng_tin}, {@code om_vat}, {@code de_stn}, {@code ch_uid}, {@code - * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code ma_vat}, {@code by_tin}, or - * {@code unknown}. + * tz_vat}, {@code uz_vat}, {@code uz_tin}, {@code md_vat}, {@code 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/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/checkout/Session.java b/src/main/java/com/stripe/model/checkout/Session.java index c12ab98f3f3..432eede24db 100644 --- a/src/main/java/com/stripe/model/checkout/Session.java +++ b/src/main/java/com/stripe/model/checkout/Session.java @@ -1003,7 +1003,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; @@ -1428,7 +1431,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/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/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/InvoiceCreatePreviewParams.java b/src/main/java/com/stripe/param/InvoiceCreatePreviewParams.java index 96348a24193..93e330ac219 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; diff --git a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java index 8c0624bef47..07a1a2c9863 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesListParams.java @@ -1870,21 +1870,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; @@ -1946,21 +1949,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; @@ -1981,6 +1987,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"), @@ -1990,6 +2002,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"), @@ -2005,6 +2023,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"), @@ -2026,6 +2047,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"), @@ -2071,6 +2095,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"), @@ -2104,6 +2131,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"), @@ -2122,6 +2152,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"), @@ -2143,6 +2182,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"), @@ -2179,12 +2221,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"), @@ -2197,6 +2248,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"), @@ -2216,7 +2270,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/InvoiceUpcomingLinesParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java index cc20fb3cdea..7607b231631 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingLinesParams.java @@ -1862,21 +1862,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; @@ -1938,21 +1941,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; @@ -1973,6 +1979,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"), @@ -1982,6 +1994,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"), @@ -1997,6 +2015,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"), @@ -2018,6 +2039,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"), @@ -2063,6 +2087,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"), @@ -2096,6 +2123,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"), @@ -2114,6 +2144,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"), @@ -2135,6 +2174,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"), @@ -2171,12 +2213,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"), @@ -2189,6 +2240,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"), @@ -2208,7 +2262,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/InvoiceUpcomingParams.java b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java index 4712e327c08..773c1d0636e 100644 --- a/src/main/java/com/stripe/param/InvoiceUpcomingParams.java +++ b/src/main/java/com/stripe/param/InvoiceUpcomingParams.java @@ -1784,21 +1784,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; @@ -1860,21 +1863,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; @@ -1895,6 +1901,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"), @@ -1904,6 +1916,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"), @@ -1919,6 +1937,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"), @@ -1940,6 +1961,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"), @@ -1985,6 +2009,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"), @@ -2018,6 +2045,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"), @@ -2036,6 +2066,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"), @@ -2057,6 +2096,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"), @@ -2093,12 +2135,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"), @@ -2111,6 +2162,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"), @@ -2130,7 +2184,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/OrderCreateParams.java b/src/main/java/com/stripe/param/OrderCreateParams.java index 55644ae9276..167fd7a3528 100644 --- a/src/main/java/com/stripe/param/OrderCreateParams.java +++ b/src/main/java/com/stripe/param/OrderCreateParams.java @@ -8472,21 +8472,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; @@ -8547,21 +8550,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(OrderCreateParams.TaxDetails.TaxId.Type type) { this.type = type; @@ -8582,6 +8588,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"), @@ -8591,6 +8603,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"), @@ -8606,6 +8624,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"), @@ -8627,6 +8648,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"), @@ -8672,6 +8696,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"), @@ -8705,6 +8732,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"), @@ -8723,6 +8753,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"), @@ -8744,6 +8783,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"), @@ -8780,12 +8822,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"), @@ -8798,6 +8849,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"), @@ -8817,7 +8871,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/OrderUpdateParams.java b/src/main/java/com/stripe/param/OrderUpdateParams.java index a56a3142cf1..e802e3a0a27 100644 --- a/src/main/java/com/stripe/param/OrderUpdateParams.java +++ b/src/main/java/com/stripe/param/OrderUpdateParams.java @@ -9105,21 +9105,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; @@ -9180,21 +9183,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(OrderUpdateParams.TaxDetails.TaxId.Type type) { this.type = type; @@ -9221,6 +9227,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"), @@ -9230,6 +9242,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"), @@ -9245,6 +9263,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"), @@ -9266,6 +9287,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"), @@ -9311,6 +9335,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"), @@ -9344,6 +9371,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"), @@ -9362,6 +9392,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"), @@ -9383,6 +9422,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"), @@ -9419,12 +9461,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"), @@ -9437,6 +9488,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"), @@ -9456,7 +9510,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/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/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; From b59eb7f1e9a1f67e562ff29a72bb6b2cdbe064d1 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:51:24 +0000 Subject: [PATCH 08/16] Update generated code for v1394 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Card.java | 8 ++++++++ src/main/java/com/stripe/model/Charge.java | 8 ++++++++ src/main/java/com/stripe/model/ConfirmationToken.java | 8 ++++++++ src/main/java/com/stripe/model/PaymentMethod.java | 8 ++++++++ 5 files changed, 33 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 3819fbfcf71..acf4c7638fe 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1392 \ No newline at end of file +v1394 \ No newline at end of file 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 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; diff --git a/src/main/java/com/stripe/model/ConfirmationToken.java b/src/main/java/com/stripe/model/ConfirmationToken.java index 0abf7f14cf1..323ee5037da 100644 --- a/src/main/java/com/stripe/model/ConfirmationToken.java +++ b/src/main/java/com/stripe/model/ConfirmationToken.java @@ -719,6 +719,14 @@ public static class Card extends StripeObject { @SerializedName("networks") Networks networks; + /** + * Status of a card based on the card issuer. + * + *

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/PaymentMethod.java b/src/main/java/com/stripe/model/PaymentMethod.java index 90a963225f8..5e498158000 100644 --- a/src/main/java/com/stripe/model/PaymentMethod.java +++ b/src/main/java/com/stripe/model/PaymentMethod.java @@ -951,6 +951,14 @@ public static class Card extends StripeObject { @SerializedName("networks") Networks networks; + /** + * Status of a card based on the card issuer. + * + *

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; From df3c3732b977a326cf4336ab327743a4b3ee2be1 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:12:27 +0000 Subject: [PATCH 09/16] Update generated code for v1395 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/ApiVersion.java | 2 +- .../java/com/stripe/param/WebhookEndpointCreateParams.java | 5 ++++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index acf4c7638fe..c9e0a8482bc 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1394 \ No newline at end of file +v1395 \ 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/param/WebhookEndpointCreateParams.java b/src/main/java/com/stripe/param/WebhookEndpointCreateParams.java index aafa8fa1791..ab927be2404 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; From e570d8e2a50a1ceff5122b182fc9f66aad1941ae Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:22:17 +0000 Subject: [PATCH 10/16] Update generated code for v1396 --- OPENAPI_VERSION | 2 +- .../java/com/stripe/model/AccountSession.java | 50 +++---- .../param/AccountSessionCreateParams.java | 126 +++++++++--------- 3 files changed, 92 insertions(+), 86 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c9e0a8482bc..5120dc63e2e 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1395 \ No newline at end of file +v1396 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/AccountSession.java b/src/main/java/com/stripe/model/AccountSession.java index eefb39a4b44..47b6ef0e8c8 100644 --- a/src/main/java/com/stripe/model/AccountSession.java +++ b/src/main/java/com/stripe/model/AccountSession.java @@ -192,11 +192,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 - * {@code true} 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; @@ -237,11 +237,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 - * {@code true} 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; @@ -282,11 +282,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 - * {@code true} 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; @@ -448,11 +448,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 - * {@code true} 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; @@ -593,11 +593,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 - * {@code true} 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/param/AccountSessionCreateParams.java b/src/main/java/com/stripe/param/AccountSessionCreateParams.java index 62fea18419a..bf502328812 100644 --- a/src/main/java/com/stripe/param/AccountSessionCreateParams.java +++ b/src/main/java/com/stripe/param/AccountSessionCreateParams.java @@ -654,11 +654,11 @@ public Builder setFeatures( @Getter public static class Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * {@code true} 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; @@ -712,11 +712,12 @@ public AccountSessionCreateParams.Components.AccountManagement.Features build() } /** - * Disables Stripe user authentication for this embedded component. This feature can only - * be {@code true} 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) { @@ -857,11 +858,11 @@ public Builder setFeatures( @Getter public static class Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * {@code true} 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; @@ -915,11 +916,12 @@ public AccountSessionCreateParams.Components.AccountOnboarding.Features build() } /** - * Disables Stripe user authentication for this embedded component. This feature can only - * be {@code true} 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) { @@ -1445,11 +1447,11 @@ public Builder setFeatures( @Getter public static class Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * {@code true} 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; @@ -1539,11 +1541,12 @@ public AccountSessionCreateParams.Components.Balances.Features build() { } /** - * Disables Stripe user authentication for this embedded component. This feature can only - * be {@code true} 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) { @@ -2444,11 +2447,11 @@ public Builder setFeatures( @Getter public static class Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * {@code true} 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; @@ -2514,11 +2517,12 @@ public AccountSessionCreateParams.Components.FinancialAccount.Features build() { } /** - * Disables Stripe user authentication for this embedded component. This feature can only - * be {@code true} 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) { @@ -3265,11 +3269,11 @@ public Builder setFeatures( @Getter public static class Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * {@code true} 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; @@ -3323,11 +3327,12 @@ public AccountSessionCreateParams.Components.NotificationBanner.Features build() } /** - * Disables Stripe user authentication for this embedded component. This feature can only - * be {@code true} 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) { @@ -4064,11 +4069,11 @@ public Builder setFeatures( @Getter public static class Features { /** - * Disables Stripe user authentication for this embedded component. This feature can only be - * {@code true} 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; @@ -4158,11 +4163,12 @@ public AccountSessionCreateParams.Components.Payouts.Features build() { } /** - * Disables Stripe user authentication for this embedded component. This feature can only - * be {@code true} 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) { From 96b1a3f18ae5a6e469f4ab75270bf5415300ce17 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:26:15 +0000 Subject: [PATCH 11/16] Update generated code for v1397 --- OPENAPI_VERSION | 2 +- .../com/stripe/model/terminal/Reader.java | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 5120dc63e2e..42258ffb394 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1396 \ No newline at end of file +v1397 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/terminal/Reader.java b/src/main/java/com/stripe/model/terminal/Reader.java index 9f54bdfd065..c8ebe612c4d 100644 --- a/src/main/java/com/stripe/model/terminal/Reader.java +++ b/src/main/java/com/stripe/model/terminal/Reader.java @@ -928,6 +928,10 @@ public static class Toggle extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class CollectPaymentMethod extends StripeObject { + /** Account the payment intent belongs to. */ + @SerializedName("account") + String account; + /** Represents a per-transaction override of a reader configuration. */ @SerializedName("collect_config") CollectConfig collectConfig; @@ -950,6 +954,7 @@ public static class CollectPaymentMethod extends StripeObject { @SerializedName("payment_method") PaymentMethod paymentMethod; + /** This field will be deprecated. Please use {@code account} instead. */ @SerializedName("stripe_account") String stripeAccount; @@ -1010,12 +1015,17 @@ public static class Tipping extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class ConfirmPaymentIntent extends StripeObject { + /** Account the payment intent belongs to. */ + @SerializedName("account") + String account; + /** Most recent PaymentIntent processed by the reader. */ @SerializedName("payment_intent") @Getter(lombok.AccessLevel.NONE) @Setter(lombok.AccessLevel.NONE) ExpandableField paymentIntent; + /** This field will be deprecated. Please use {@code account} instead. */ @SerializedName("stripe_account") String stripeAccount; @@ -1044,6 +1054,10 @@ public void setPaymentIntentObject(PaymentIntent expandableObject) { @Setter @EqualsAndHashCode(callSuper = false) public static class ProcessPaymentIntent extends StripeObject { + /** Account the payment intent belongs to. */ + @SerializedName("account") + String account; + /** Most recent PaymentIntent processed by the reader. */ @SerializedName("payment_intent") @Getter(lombok.AccessLevel.NONE) @@ -1054,6 +1068,7 @@ public static class ProcessPaymentIntent extends StripeObject { @SerializedName("process_config") ProcessConfig processConfig; + /** This field will be deprecated. Please use {@code account} instead. */ @SerializedName("stripe_account") String stripeAccount; @@ -1167,6 +1182,10 @@ public static class ProcessConfig extends StripeObject { @Setter @EqualsAndHashCode(callSuper = false) public static class RefundPayment extends StripeObject { + /** Account the payment intent belongs to. */ + @SerializedName("account") + String account; + /** The amount being refunded. */ @SerializedName("amount") Long amount; @@ -1228,6 +1247,7 @@ public static class RefundPayment extends StripeObject { @SerializedName("reverse_transfer") Boolean reverseTransfer; + /** This field will be deprecated. Please use {@code account} instead. */ @SerializedName("stripe_account") String stripeAccount; From 6e7c3dfc23c229769331f6e296c252d3bd4b55f3 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:50:32 +0000 Subject: [PATCH 12/16] Update generated code for v1398 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Dispute.java | 40 +++++++ .../com/stripe/param/DisputeUpdateParams.java | 102 +++++++++++++++++- 3 files changed, 141 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 42258ffb394..030963bfb20 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1397 \ No newline at end of file +v1398 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Dispute.java b/src/main/java/com/stripe/model/Dispute.java index 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/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; + } + } + } } } } From ed6509f86649c7206577f2c7cfdd354377b6c87b Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 01:16:47 +0000 Subject: [PATCH 13/16] Update generated code for v1400 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Charge.java | 26 +++ .../java/com/stripe/model/PaymentIntent.java | 8 + .../param/PaymentIntentConfirmParams.java | 32 ++++ .../param/PaymentIntentCreateParams.java | 32 ++++ ...entIntentIncrementAuthorizationParams.java | 181 ++++++++++++++++++ .../param/PaymentIntentUpdateParams.java | 32 ++++ 7 files changed, 312 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 030963bfb20..801f5f8b6ee 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1398 \ No newline at end of file +v1400 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index c456da1f11f..2b99be05443 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1770,6 +1770,10 @@ public static class Card extends StripeObject { @SerializedName("amount_authorized") Long amountAuthorized; + /** The latest amount intended to be authorized by this charge. */ + @SerializedName("amount_requested") + Long amountRequested; + /** Authorization code on the charge. */ @SerializedName("authorization_code") String authorizationCode; @@ -1900,6 +1904,9 @@ public static class Card extends StripeObject { @SerializedName("overcapture") Overcapture overcapture; + @SerializedName("partial_authorization") + PartialAuthorization partialAuthorization; + /** * Status of a card based on the card issuer. * @@ -2092,6 +2099,25 @@ public static class Overcapture extends StripeObject { String status; } + /** + * For more details about PartialAuthorization, please refer to the API Reference. + */ + @Getter + @Setter + @EqualsAndHashCode(callSuper = false) + public static class PartialAuthorization extends StripeObject { + /** + * Indicates whether the transaction requested for partial authorization feature and the + * authorization outcome. + * + *

One of {@code declined}, {@code fully_authorized}, {@code not_requested}, or {@code + * partially_authorized}. + */ + @SerializedName("status") + String status; + } + /** * For more details about ThreeDSecure, please refer to the API Reference. diff --git a/src/main/java/com/stripe/model/PaymentIntent.java b/src/main/java/com/stripe/model/PaymentIntent.java index a0a74841f28..ed06a71fe73 100644 --- a/src/main/java/com/stripe/model/PaymentIntent.java +++ b/src/main/java/com/stripe/model/PaymentIntent.java @@ -3745,6 +3745,14 @@ public static class Card extends StripeObject { @SerializedName("request_overcapture") String requestOvercapture; + /** + * Request partial authorization on this PaymentIntent. + * + *

One of {@code if_available}, or {@code never}. + */ + @SerializedName("request_partial_authorization") + String requestPartialAuthorization; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and metadata; + /** Payment method-specific configuration for this PaymentIntent. */ + @SerializedName("payment_method_options") + PaymentMethodOptions paymentMethodOptions; + /** * Text that appears on the customer's statement as the statement descriptor for a non-card or * card charge. This value overrides the account's default statement descriptor. For information @@ -85,6 +89,7 @@ private PaymentIntentIncrementAuthorizationParams( List expand, Map extraParams, Map metadata, + PaymentMethodOptions paymentMethodOptions, String statementDescriptor, TransferData transferData) { this.amount = amount; @@ -94,6 +99,7 @@ private PaymentIntentIncrementAuthorizationParams( this.expand = expand; this.extraParams = extraParams; this.metadata = metadata; + this.paymentMethodOptions = paymentMethodOptions; this.statementDescriptor = statementDescriptor; this.transferData = transferData; } @@ -117,6 +123,8 @@ public static class Builder { private Map metadata; + private PaymentMethodOptions paymentMethodOptions; + private String statementDescriptor; private TransferData transferData; @@ -131,6 +139,7 @@ public PaymentIntentIncrementAuthorizationParams build() { this.expand, this.extraParams, this.metadata, + this.paymentMethodOptions, this.statementDescriptor, this.transferData); } @@ -248,6 +257,13 @@ public Builder putAllMetadata(Map map) { return this; } + /** Payment method-specific configuration for this PaymentIntent. */ + public Builder setPaymentMethodOptions( + PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions paymentMethodOptions) { + this.paymentMethodOptions = paymentMethodOptions; + return this; + } + /** * Text that appears on the customer's statement as the statement descriptor for a non-card or * card charge. This value overrides the account's default statement descriptor. For information @@ -507,6 +523,171 @@ public Builder putAllExtraParam(Map map) { } } + @Getter + public static class PaymentMethodOptions { + /** Configuration for any card payments attempted on this PaymentIntent. */ + @SerializedName("card") + Card card; + + /** + * Map of extra parameters for custom features not available in this client library. The content + * in this map is not serialized under this field's {@code @SerializedName} value. Instead, each + * key/value pair is serialized as if the key is a root-level field (serialized) name in this + * param object. Effectively, this map is flattened to its parent instance. + */ + @SerializedName(ApiRequestParams.EXTRA_PARAMS_KEY) + Map extraParams; + + private PaymentMethodOptions(Card card, Map extraParams) { + this.card = card; + this.extraParams = extraParams; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Card card; + + private Map extraParams; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions build() { + return new PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions( + this.card, this.extraParams); + } + + /** Configuration for any card payments attempted on this PaymentIntent. */ + public Builder setCard( + PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card card) { + this.card = card; + return this; + } + + /** + * Add a key/value pair to `extraParams` map. A map is initialized for the first `put/putAll` + * call, and subsequent calls add additional key/value pairs to the original map. See {@link + * PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions#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 PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions#extraParams} for + * the field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + } + + @Getter + public static class Card { + /** + * 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; + + /** Request partial authorization on this PaymentIntent. */ + @SerializedName("request_partial_authorization") + RequestPartialAuthorization requestPartialAuthorization; + + private Card( + Map extraParams, + RequestPartialAuthorization requestPartialAuthorization) { + this.extraParams = extraParams; + this.requestPartialAuthorization = requestPartialAuthorization; + } + + public static Builder builder() { + return new Builder(); + } + + public static class Builder { + private Map extraParams; + + private RequestPartialAuthorization requestPartialAuthorization; + + /** Finalize and obtain parameter instance from this builder. */ + public PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card build() { + return new PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card( + this.extraParams, this.requestPartialAuthorization); + } + + /** + * 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 + * PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card#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 + * PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card#extraParams} for the + * field documentation. + */ + public Builder putAllExtraParam(Map map) { + if (this.extraParams == null) { + this.extraParams = new HashMap<>(); + } + this.extraParams.putAll(map); + return this; + } + + /** Request partial authorization on this PaymentIntent. */ + public Builder setRequestPartialAuthorization( + PaymentIntentIncrementAuthorizationParams.PaymentMethodOptions.Card + .RequestPartialAuthorization + requestPartialAuthorization) { + this.requestPartialAuthorization = requestPartialAuthorization; + return this; + } + } + + public enum RequestPartialAuthorization implements ApiRequestParams.EnumParam { + @SerializedName("if_available") + IF_AVAILABLE("if_available"), + + @SerializedName("never") + NEVER("never"); + + @Getter(onMethod_ = {@Override}) + private final String value; + + RequestPartialAuthorization(String value) { + this.value = value; + } + } + } + } + @Getter public static class TransferData { /** The amount that will be transferred automatically when a charge succeeds. */ diff --git a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java index fccfc205735..5e6a947c891 100644 --- a/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java +++ b/src/main/java/com/stripe/param/PaymentIntentUpdateParams.java @@ -15783,6 +15783,10 @@ public static class Card { @SerializedName("request_overcapture") RequestOvercapture requestOvercapture; + /** Request partial authorization on this PaymentIntent. */ + @SerializedName("request_partial_authorization") + RequestPartialAuthorization requestPartialAuthorization; + /** * We strongly recommend that you rely on our SCA Engine to automatically prompt your * customers for authentication based on risk level and Date: Tue, 10 Dec 2024 14:00:22 +0000 Subject: [PATCH 14/16] Update generated code for v1401 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Charge.java | 11 +++++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 801f5f8b6ee..786255474af 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1400 \ No newline at end of file +v1401 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Charge.java b/src/main/java/com/stripe/model/Charge.java index 2b99be05443..7c40907237c 100644 --- a/src/main/java/com/stripe/model/Charge.java +++ b/src/main/java/com/stripe/model/Charge.java @@ -1901,6 +1901,17 @@ public static class Card extends StripeObject { @SerializedName("network_token") NetworkToken networkToken; + /** + * This is used by the financial networks to identify a transaction. Visa calls this the + * Transaction ID, Mastercard calls this the Trace ID, and American Express calls this the + * Acquirer Reference Data. The first three digits of the Trace ID is the Financial Network + * Code, the next 6 digits is the Banknet Reference Number, and the last 4 digits represent + * the date (MM/DD). This field will be available for successful Visa, Mastercard, or American + * Express transactions and always null for other card brands. + */ + @SerializedName("network_transaction_id") + String networkTransactionId; + @SerializedName("overcapture") Overcapture overcapture; From 55e808c144abdf0980e995aef60a0eb9e99eedd8 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:46:01 +0000 Subject: [PATCH 15/16] Update generated code for v1405 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Card.java | 11 +++++++++++ src/main/java/com/stripe/model/Source.java | 11 +++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 786255474af..a7ed76c941d 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1401 \ No newline at end of file +v1405 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Card.java b/src/main/java/com/stripe/model/Card.java index 9cf526e288b..ecd01d42e77 100644 --- a/src/main/java/com/stripe/model/Card.java +++ b/src/main/java/com/stripe/model/Card.java @@ -78,6 +78,17 @@ public class Card extends ApiResource @SerializedName("address_zip_check") String addressZipCheck; + /** + * This field indicates whether this payment method can be shown again to its customer in a + * checkout flow. Stripe products such as Checkout and Elements use this field to determine + * whether a payment method can be shown as a saved payment method in a checkout flow. The field + * defaults to “unspecified”. + * + *

One of {@code always}, {@code limited}, or {@code unspecified}. + */ + @SerializedName("allow_redisplay") + String allowRedisplay; + /** * A set of available payout methods for this card. Only values from this set should be passed as * the {@code method} when creating a payout. diff --git a/src/main/java/com/stripe/model/Source.java b/src/main/java/com/stripe/model/Source.java index 2c48014c33a..97d0be9e414 100644 --- a/src/main/java/com/stripe/model/Source.java +++ b/src/main/java/com/stripe/model/Source.java @@ -50,6 +50,17 @@ public class Source extends ApiResource implements MetadataStore, Paymen @SerializedName("alipay") Alipay alipay; + /** + * This field indicates whether this payment method can be shown again to its customer in a + * checkout flow. Stripe products such as Checkout and Elements use this field to determine + * whether a payment method can be shown as a saved payment method in a checkout flow. The field + * defaults to “unspecified”. + * + *

One of {@code always}, {@code limited}, or {@code unspecified}. + */ + @SerializedName("allow_redisplay") + String allowRedisplay; + /** * A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, * Japanese Yen being a zero-decimal currency) representing the total amount associated with the From 8036eeeaf9d15d1fcf3dd8a671a98958827f45db Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 22:48:30 +0000 Subject: [PATCH 16/16] Update generated code for v1406 --- OPENAPI_VERSION | 2 +- src/main/java/com/stripe/model/Account.java | 9 ++++----- src/main/java/com/stripe/model/Capability.java | 9 ++++----- src/main/java/com/stripe/model/Person.java | 9 ++++----- 4 files changed, 13 insertions(+), 16 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index a7ed76c941d..b58f2893935 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1405 \ No newline at end of file +v1406 \ No newline at end of file diff --git a/src/main/java/com/stripe/model/Account.java b/src/main/java/com/stripe/model/Account.java index cceb4653c79..da76cd3a244 100644 --- a/src/main/java/com/stripe/model/Account.java +++ b/src/main/java/com/stripe/model/Account.java @@ -1965,8 +1965,8 @@ public static class FutureRequirements extends StripeObject { List errors; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become - * required, they appear in {@code currently_due} as well. + * Fields you must collect when all thresholds are reached. As they become required, they appear + * in {@code currently_due} as well. */ @SerializedName("eventually_due") List eventuallyDue; @@ -2167,9 +2167,8 @@ public static class Requirements extends StripeObject { List errors; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become - * required, they appear in {@code currently_due} as well, and {@code current_deadline} becomes - * set. + * Fields you must collect when all thresholds are reached. As they become required, they appear + * in {@code currently_due} as well, and {@code current_deadline} becomes set. */ @SerializedName("eventually_due") List eventuallyDue; diff --git a/src/main/java/com/stripe/model/Capability.java b/src/main/java/com/stripe/model/Capability.java index 183d3db6afa..b7085f58aa2 100644 --- a/src/main/java/com/stripe/model/Capability.java +++ b/src/main/java/com/stripe/model/Capability.java @@ -191,8 +191,8 @@ public static class FutureRequirements extends StripeObject { List errors; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become - * required, they appear in {@code currently_due} as well. + * Fields you must collect when all thresholds are reached. As they become required, they appear + * in {@code currently_due} as well. */ @SerializedName("eventually_due") List eventuallyDue; @@ -374,9 +374,8 @@ public static class Requirements extends StripeObject { List errors; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become - * required, they appear in {@code currently_due} as well, and {@code current_deadline} becomes - * set. + * Fields you must collect when all thresholds are reached. As they become required, they appear + * in {@code currently_due} as well, and {@code current_deadline} becomes set. */ @SerializedName("eventually_due") List eventuallyDue; diff --git a/src/main/java/com/stripe/model/Person.java b/src/main/java/com/stripe/model/Person.java index 2101b84409e..6f69c71c13e 100644 --- a/src/main/java/com/stripe/model/Person.java +++ b/src/main/java/com/stripe/model/Person.java @@ -444,8 +444,8 @@ public static class FutureRequirements extends StripeObject { List errors; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become - * required, they appear in {@code currently_due} as well, and the account's {@code + * Fields you must collect when all thresholds are reached. As they become required, they appear + * in {@code currently_due} as well, and the account's {@code * future_requirements[current_deadline]} becomes set. */ @SerializedName("eventually_due") @@ -661,9 +661,8 @@ public static class Requirements extends StripeObject { List errors; /** - * Fields that need to be collected assuming all volume thresholds are reached. As they become - * required, they appear in {@code currently_due} as well, and the account's {@code - * current_deadline} becomes set. + * Fields you must collect when all thresholds are reached. As they become required, they appear + * in {@code currently_due} as well, and the account's {@code current_deadline} becomes set. */ @SerializedName("eventually_due") List eventuallyDue;