mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 14:57:10 +00:00
Fixed customer tax_id_data to match Stripe documentation (#39293)
* # Fixed customer tax_id_data to match Stripe documentation Source: https://stripe.com/docs/api/customers/create#create_customer-tax_id_data * # Fixed customer tax_id_data to match Stripe documentation & Added tests Source: https://stripe.com/docs/api/customers/create#create_customer-tax_id_data * # Fixed customer tax_id_data to match Stripe documentation & Added tests Source: https://stripe.com/docs/api/customers/create#create_customer-tax_id_data * # Fixed customer tax_id_data to match Stripe documentation & Added tests Source: https://stripe.com/docs/api/customers/create#create_customer-tax_id_data * # Fixed customer tax_id_data to match Stripe documentation & Added tests Source: https://stripe.com/docs/api/customers/create#create_customer-tax_id_data * # Added missing default_tax_rates also https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates * # Added missing default_tax_rates also https://stripe.com/docs/api/subscriptions/create#create_subscription-default_tax_rates
This commit is contained in:
committed by
Wesley Wigham
parent
728d12d9e9
commit
d4ee0e98f3
Vendored
+8
-2
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user