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

Support passing tax_rates when creating invoice items through Subscription or SubscriptionSchedule #1049

Merged
merged 1 commit into from
Oct 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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: 1 addition & 1 deletion types/2020-08-27/Cards.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ declare module 'stripe' {
exp_year: number;

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number,for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*/
fingerprint?: string | null;

Expand Down
6 changes: 3 additions & 3 deletions types/2020-08-27/Charges.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -662,7 +662,7 @@ declare module 'stripe' {
exp_year: number;

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number,for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*/
fingerprint?: string | null;

Expand Down Expand Up @@ -929,7 +929,7 @@ declare module 'stripe' {
exp_year: number;

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number,for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*/
fingerprint: string | null;

Expand Down Expand Up @@ -1210,7 +1210,7 @@ declare module 'stripe' {
exp_year: number;

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number,for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*/
fingerprint: string | null;

Expand Down
2 changes: 1 addition & 1 deletion types/2020-08-27/PaymentMethods.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ declare module 'stripe' {
exp_year: number;

/**
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number,for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
* Uniquely identifies this particular card number. You can use this attribute to check whether two customers who've signed up with you are using the same card number, for example. For payment methods that tokenize card information (Apple Pay, Google Pay), the tokenized number might be provided instead of the underlying card number.
*/
fingerprint?: string | null;

Expand Down
15 changes: 15 additions & 0 deletions types/2020-08-27/SubscriptionSchedules.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,11 @@ declare module 'stripe' {
* The quantity of the invoice item.
*/
quantity: number | null;

/**
* The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
*/
tax_rates?: Array<Stripe.TaxRate> | null;
}

type BillingCycleAnchor = 'automatic' | 'phase_start';
Expand Down Expand Up @@ -554,6 +559,11 @@ declare module 'stripe' {
* Quantity for this item. Defaults to 1.
*/
quantity?: number;

/**
* The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
*/
tax_rates?: Array<string> | null;
}

namespace AddInvoiceItem {
Expand Down Expand Up @@ -922,6 +932,11 @@ declare module 'stripe' {
* Quantity for this item. Defaults to 1.
*/
quantity?: number;

/**
* The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
*/
tax_rates?: Array<string> | null;
}

namespace AddInvoiceItem {
Expand Down
10 changes: 10 additions & 0 deletions types/2020-08-27/Subscriptions.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,11 @@ declare module 'stripe' {
* Quantity for this item. Defaults to 1.
*/
quantity?: number;

/**
* The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
*/
tax_rates?: Array<string> | null;
}

namespace AddInvoiceItem {
Expand Down Expand Up @@ -759,6 +764,11 @@ declare module 'stripe' {
* Quantity for this item. Defaults to 1.
*/
quantity?: number;

/**
* The tax rates which apply to the item. When set, the `default_tax_rates` do not apply to this item.
*/
tax_rates?: Array<string> | null;
}

namespace AddInvoiceItem {
Expand Down