Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #2159

Merged
merged 21 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
ec058dc
Update generated code (#2155)
stripe-openapi[bot] Aug 15, 2024
1488452
Bump version to 16.8.0
helenye-stripe Aug 15, 2024
4316e83
Merge upstream and update generated code for v1202
stripe-openapi[bot] Aug 15, 2024
fd2da5c
Update generated code for v1203
stripe-openapi[bot] Aug 15, 2024
fb7d8a1
Update generated code for v1204
stripe-openapi[bot] Aug 16, 2024
b329d7b
Update generated code for v1206
stripe-openapi[bot] Aug 19, 2024
eac4383
Update generated code for v1207
stripe-openapi[bot] Aug 19, 2024
5fa60e5
Remove a ts-ignore by using Object.entries (#2150)
QuentinLemCode Aug 19, 2024
4d13647
Bump braces from 3.0.2 to 3.0.3 (#2108)
dependabot[bot] Aug 19, 2024
cf65051
Merge upstream and update generated code for v1208
stripe-openapi[bot] Aug 19, 2024
a0cdbc6
Add typings for generateTestHeaderStringAsync (#2152)
hansottowirtz Aug 19, 2024
849bb82
Add codeowners (#2160)
xavdid-stripe Aug 20, 2024
b8f968b
Merge upstream and update generated code for v1209
stripe-openapi[bot] Aug 20, 2024
0585832
Update generated code for v1210
stripe-openapi[bot] Aug 21, 2024
29a517f
Update generated code for v1211
stripe-openapi[bot] Aug 21, 2024
605fc20
Update generated code for v1212
stripe-openapi[bot] Aug 22, 2024
81afa22
Update generated code for v1213
stripe-openapi[bot] Aug 22, 2024
8b71ae6
Update generated code for v1214
stripe-openapi[bot] Aug 22, 2024
9a1aeb6
Update generated code for v1214
stripe-openapi[bot] Aug 22, 2024
2dd2976
Update generated code for v1214
stripe-openapi[bot] Aug 22, 2024
f5a4d8c
Update generated code for v1214
stripe-openapi[bot] Aug 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# All files should be reviewed by a member of the SDKs team
* @stripe/api-library-reviewers
10 changes: 4 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,16 @@
"editor.formatOnSave": true,

"typescript.updateImportsOnFileMove.enabled": "always",
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},

"javascript.updateImportsOnFileMove.enabled": "always",
"[javascript]": {
"[typescript][javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},

// Extension settings
"npm.packageManager": "yarn",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
"source.fixAll.eslint": "explicit",
// eslint handles import sorting, don't let VSCode fight it
"source.organizeImports": "never"
}
}
11 changes: 10 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@
* Add support for `collected_information` on `Checkout.SessionUpdateParams` and `Checkout.Session`
* Add support for `shipping_options` on `Checkout.SessionUpdateParams`

## 16.8.0 - 2024-08-15
* [#2155](https://github.com/stripe/stripe-node/pull/2155) Update generated code
* Add support for `authorization_code` on `Charge.payment_method_details.card`
* Add support for `wallet` on `Charge.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card.generated_from.payment_method_details.card_present`, `ConfirmationToken.payment_method_preview.card_present`, `PaymentMethod.card.generated_from.payment_method_details.card_present`, and `PaymentMethod.card_present`
* Add support for `mandate_options` on `PaymentIntent.payment_method_options.bacs_debit`, `PaymentIntentConfirmParams.payment_method_options.bacs_debit`, `PaymentIntentCreateParams.payment_method_options.bacs_debit`, and `PaymentIntentUpdateParams.payment_method_options.bacs_debit`
* Add support for `bacs_debit` on `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, and `SetupIntentUpdateParams.payment_method_options`
* Add support for `chips` on `Treasury.OutboundPayment.tracking_details.us_domestic_wire`, `Treasury.OutboundPaymentUpdateParams.testHelpers.tracking_details.us_domestic_wire`, `Treasury.OutboundTransfer.tracking_details.us_domestic_wire`, and `Treasury.OutboundTransferUpdateParams.testHelpers.tracking_details.us_domestic_wire`
* Change type of `Treasury.OutboundPayment.tracking_details.us_domestic_wire.imad` and `Treasury.OutboundTransfer.tracking_details.us_domestic_wire.imad` from `string` to `string | null`

## 16.8.0-beta.1 - 2024-08-12
* [#2148](https://github.com/stripe/stripe-node/pull/2148) Update generated code for beta
* Add support for `capital_financing_application` and `capital_financing` on `AccountSession.components`
Expand All @@ -15,7 +24,7 @@
* Add support for new value `custom` on enums `Checkout.Session.ui_mode` and `Checkout.SessionCreateParams.ui_mode`
* ⚠️ Remove support for `risk_correlation_id` on `PaymentIntent.payment_method_options.rechnung`, `PaymentIntentConfirmParams.payment_method_options.rechnung`, `PaymentIntentCreateParams.payment_method_options.rechnung`, and `PaymentIntentUpdateParams.payment_method_options.rechnung`
* Add support for new value `payto` on enums `PaymentLink.payment_method_types[]`, `PaymentLinkCreateParams.payment_method_types[]`, and `PaymentLinkUpdateParams.payment_method_types[]`
* Change `QuoteLine.cancel_subscription_schedule` to be required
* Change `QuoteLine.cancel_subscription_schedule` to be required

## 16.7.0 - 2024-08-08
* [#2147](https://github.com/stripe/stripe-node/pull/2147) Update generated code
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1201
v1214
2 changes: 1 addition & 1 deletion src/apiVersion.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// File generated from our OpenAPI spec

export const ApiVersion = '2024-06-20';
export const PreviewVersion = '2024-07-16.preview-v2';
export const PreviewVersion = '2024-08-21.preview-v2';
5 changes: 1 addition & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -329,10 +329,7 @@ export function flattenAndStringify(
const result: Record<string, string | Uint8Array> = {};

const step = (obj: MultipartRequestData, prevKey: string | null): void => {
Object.keys(obj).forEach((key) => {
// @ts-ignore
const value = obj[key];

Object.entries(obj).forEach(([key, value]) => {
const newKey = prevKey ? `${prevKey}[${key}]` : key;

if (isObject(value)) {
Expand Down
2 changes: 1 addition & 1 deletion test/resources/generated_examples_test.spec.js

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions types/Accounts.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,11 @@ declare module 'stripe' {
*/
link_payments?: Capabilities.LinkPayments;

/**
* The status of the MB WAY payments capability of the account, or whether the account can directly process MB WAY charges.
*/
mb_way_payments?: Capabilities.MbWayPayments;

/**
* The status of the MobilePay capability of the account, or whether the account can directly process MobilePay charges.
*/
Expand Down Expand Up @@ -520,6 +525,8 @@ declare module 'stripe' {

type LinkPayments = 'active' | 'inactive' | 'pending';

type MbWayPayments = 'active' | 'inactive' | 'pending';

type MobilepayPayments = 'active' | 'inactive' | 'pending';

type MultibancoPayments = 'active' | 'inactive' | 'pending';
Expand Down
24 changes: 24 additions & 0 deletions types/AccountsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,11 @@ declare module 'stripe' {
*/
link_payments?: Capabilities.LinkPayments;

/**
* The mb_way_payments capability.
*/
mb_way_payments?: Capabilities.MbWayPayments;

/**
* The mobilepay_payments capability.
*/
Expand Down Expand Up @@ -640,6 +645,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface MbWayPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface MobilepayPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down Expand Up @@ -2071,6 +2083,11 @@ declare module 'stripe' {
*/
link_payments?: Capabilities.LinkPayments;

/**
* The mb_way_payments capability.
*/
mb_way_payments?: Capabilities.MbWayPayments;

/**
* The mobilepay_payments capability.
*/
Expand Down Expand Up @@ -2377,6 +2394,13 @@ declare module 'stripe' {
requested?: boolean;
}

interface MbWayPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
*/
requested?: boolean;
}

interface MobilepayPayments {
/**
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
Expand Down
8 changes: 7 additions & 1 deletion types/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ declare module 'stripe' {
source_transfer: string | Stripe.Transfer | null;

/**
* For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
* For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
*
* For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
*/
statement_descriptor: string | null;

Expand Down Expand Up @@ -416,6 +418,8 @@ declare module 'stripe' {

link?: PaymentMethodDetails.Link;

mb_way?: PaymentMethodDetails.MbWay;

mobilepay?: PaymentMethodDetails.Mobilepay;

multibanco?: PaymentMethodDetails.Multibanco;
Expand Down Expand Up @@ -1713,6 +1717,8 @@ declare module 'stripe' {
country: string | null;
}

interface MbWay {}

interface Mobilepay {
/**
* Internal card details
Expand Down
8 changes: 6 additions & 2 deletions types/ChargesResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ declare module 'stripe' {
source?: string;

/**
* For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
* For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
*
* For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
*/
statement_descriptor?: string;

Expand Down Expand Up @@ -948,7 +950,9 @@ declare module 'stripe' {
receipt_email?: string;

/**
* For a non-card charge, text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors). This value overrides the account's default statement descriptor. For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
* For a non-card charge, text that appears on the customer's statement as the statement descriptor. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
*
* For a card charge, this value is ignored unless you don't specify a `statement_descriptor_suffix`, in which case this value is used as the suffix.
*/
statement_descriptor?: string;

Expand Down
3 changes: 2 additions & 1 deletion types/Checkout/Sessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -535,7 +535,7 @@ declare module 'stripe' {

interface TaxId {
/**
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `za_vat`, `ch_vat`, `mx_rfc`, `sg_uen`, `ru_inn`, `ru_kpp`, `ca_bn`, `hk_br`, `es_cif`, `tw_vat`, `th_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
*/
type: TaxId.Type;

Expand Down Expand Up @@ -579,6 +579,7 @@ declare module 'stripe' {
| 'gb_vat'
| 'ge_vat'
| 'hk_br'
| 'hr_oib'
| 'hu_tin'
| 'id_npwp'
| 'il_vat'
Expand Down
6 changes: 4 additions & 2 deletions types/Checkout/SessionsResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -905,12 +905,14 @@ declare module 'stripe' {
shipping?: PaymentIntentData.Shipping;

/**
* Text that appears on the customer's statement as the [statement descriptor](https://docs.stripe.com/get-started/account/statement-descriptors) for a non-card charge. This value overrides the account's default statement descriptor. Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
* Text that appears on the customer's statement as the statement descriptor for a non-card charge. This value overrides the account's default statement descriptor. For information about requirements, including the 22-character limit, see [the Statement Descriptor docs](https://docs.stripe.com/get-started/account/statement-descriptors).
*
* Setting this value for a card charge returns an error. For card charges, set the [statement_descriptor_suffix](https://docs.stripe.com/get-started/account/statement-descriptors#dynamic) instead.
*/
statement_descriptor?: string;

/**
* Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.corp.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
* Provides information about a card charge. Concatenated to the account's [statement descriptor prefix](https://docs.stripe.com/get-started/account/statement-descriptors#static) to form the complete statement descriptor that appears on the customer's statement.
*/
statement_descriptor_suffix?: string;

Expand Down
5 changes: 5 additions & 0 deletions types/ConfirmationTokens.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,8 @@ declare module 'stripe' {

link?: PaymentMethodPreview.Link;

mb_way?: PaymentMethodPreview.MbWay;

mobilepay?: PaymentMethodPreview.Mobilepay;

multibanco?: PaymentMethodPreview.Multibanco;
Expand Down Expand Up @@ -1217,6 +1219,8 @@ declare module 'stripe' {
persistent_token?: string;
}

interface MbWay {}

interface Mobilepay {}

interface Multibanco {}
Expand Down Expand Up @@ -1413,6 +1417,7 @@ declare module 'stripe' {
| 'klarna'
| 'konbini'
| 'link'
| 'mb_way'
| 'mobilepay'
| 'multibanco'
| 'oxxo'
Expand Down
4 changes: 4 additions & 0 deletions types/CustomerSessions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ declare module 'stripe' {
/**
* A Customer Session allows you to grant Stripe's frontend SDKs (like Stripe.js) client-side access
* control over a Customer.
*
* Related guides: [Customer Session with the Payment Element](https://stripe.com/payments/accept-a-payment-deferred?platform=web&type=payment#save-payment-methods),
* [Customer Session with the Pricing Table](https://stripe.com/payments/checkout/pricing-table#customer-session),
* [Customer Session with the Buy Button](https://stripe.com/payment-links/buy-button#pass-an-existing-customer).
*/
interface CustomerSession {
/**
Expand Down
7 changes: 5 additions & 2 deletions types/CustomersResource.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ declare module 'stripe' {

interface TaxIdDatum {
/**
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
*/
type: TaxIdDatum.Type;

Expand Down Expand Up @@ -259,6 +259,7 @@ declare module 'stripe' {
| 'gb_vat'
| 'ge_vat'
| 'hk_br'
| 'hr_oib'
| 'hu_tin'
| 'id_npwp'
| 'il_vat'
Expand Down Expand Up @@ -652,7 +653,7 @@ declare module 'stripe' {

interface CustomerCreateTaxIdParams {
/**
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
*/
type: CustomerCreateTaxIdParams.Type;

Expand Down Expand Up @@ -701,6 +702,7 @@ declare module 'stripe' {
| 'gb_vat'
| 'ge_vat'
| 'hk_br'
| 'hr_oib'
| 'hu_tin'
| 'id_npwp'
| 'il_vat'
Expand Down Expand Up @@ -812,6 +814,7 @@ declare module 'stripe' {
| 'klarna'
| 'konbini'
| 'link'
| 'mb_way'
| 'mobilepay'
| 'multibanco'
| 'oxxo'
Expand Down
Loading
Loading