diff --git a/types/stripe/index.d.ts b/types/stripe/index.d.ts index 4849a1582c..14d9d4d952 100644 --- a/types/stripe/index.d.ts +++ b/types/stripe/index.d.ts @@ -2793,7 +2793,7 @@ declare namespace Stripe { /** * The customer’s tax IDs. */ - tax_id_data?: { + tax_id_data?: Array<{ /** * Type of the tax ID, one of au_abn, eu_vat, in_gst, no_vat, or nz_gst. */ @@ -2803,7 +2803,7 @@ declare namespace Stripe { * Value of the tax ID. */ value: string; - }; + }>; /** * @deprecated @@ -8360,6 +8360,12 @@ declare namespace Stripe { * Using this flag requires contacting Stripe support in order to have the account whitelisted. */ pay_immediately?: boolean; + + /** + * The tax rates that will apply to the subscription. + */ + + default_tax_rates?: string[]; } interface ISubscriptionCreationOptions extends ISubscriptionCustCreationOptions { diff --git a/types/stripe/stripe-tests.ts b/types/stripe/stripe-tests.ts index 6fd1fe202a..22228195b1 100644 --- a/types/stripe/stripe-tests.ts +++ b/types/stripe/stripe-tests.ts @@ -487,7 +487,13 @@ stripe.customers.create( phone: '15551234567', description: 'Customer for test@example.com', source: 'tok_15V2YhEe31JkLCeQy9iUgsJX', // obtained with Stripe.js - metadata: { test: '123', test2: 123 }, // IOptionsMetadata test + metadata: { test: '123', test2: 123 }, // IOptionsMetadata test, + tax_id_data: [ + { + type: 'eu_vat', + value: 'DE123456789' + } + ] }, (err, customer) => { // asynchronously called