You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: types/2020-03-02/Checkout/Sessions.d.ts
+81-1
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,16 @@ declare module 'stripe' {
16
16
*/
17
17
object: 'checkout.session';
18
18
19
+
/**
20
+
* Total of all items before discounts or taxes are applied.
21
+
*/
22
+
amount_subtotal: number|null;
23
+
24
+
/**
25
+
* Total of all items after discounts and taxes are applied.
26
+
*/
27
+
amount_total: number|null;
28
+
19
29
/**
20
30
* Describes whether Checkout should collect the customer's billing address.
21
31
*/
@@ -33,6 +43,11 @@ declare module 'stripe' {
33
43
*/
34
44
client_reference_id: string|null;
35
45
46
+
/**
47
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
48
+
*/
49
+
currency: string|null;
50
+
36
51
/**
37
52
* The ID of the customer for this session.
38
53
* For Checkout Sessions in `payment` or `subscription` mode, Checkout
@@ -125,6 +140,11 @@ declare module 'stripe' {
125
140
* subscription creation is successful.
126
141
*/
127
142
success_url: string;
143
+
144
+
/**
145
+
* Tax and discount details for the computed total amount.
146
+
*/
147
+
total_details: Session.TotalDetails|null;
128
148
}
129
149
130
150
namespaceSession{
@@ -506,6 +526,66 @@ declare module 'stripe' {
506
526
}
507
527
508
528
typeSubmitType='auto'|'book'|'donate'|'pay';
529
+
530
+
interfaceTotalDetails{
531
+
/**
532
+
* This is the sum of all the line item discounts.
533
+
*/
534
+
amount_discount: number;
535
+
536
+
/**
537
+
* This is the sum of all the line item tax amounts.
538
+
*/
539
+
amount_tax: number;
540
+
541
+
breakdown?: TotalDetails.Breakdown;
542
+
}
543
+
544
+
namespaceTotalDetails{
545
+
interfaceBreakdown{
546
+
/**
547
+
* The aggregated line item discounts.
548
+
*/
549
+
discounts: Array<Breakdown.Discount>;
550
+
551
+
/**
552
+
* The aggregated line item tax amounts by rate.
553
+
*/
554
+
taxes: Array<Breakdown.Tax>;
555
+
}
556
+
557
+
namespaceBreakdown{
558
+
interfaceDiscount{
559
+
/**
560
+
* The amount discounted.
561
+
*/
562
+
amount: number;
563
+
564
+
/**
565
+
* A discount represents the actual application of a coupon to a particular
566
+
* customer. It contains information about when the discount began and when it
567
+
* will end.
568
+
*
569
+
* Related guide: [Applying Discounts to Subscriptions](https://stripe.com/docs/billing/subscriptions/discounts).
570
+
*/
571
+
discount: Stripe.Discount;
572
+
}
573
+
574
+
interfaceTax{
575
+
/**
576
+
* Amount of tax applied for this rate.
577
+
*/
578
+
amount: number;
579
+
580
+
/**
581
+
* Tax rates can be applied to [invoices](https://stripe.com/docs/billing/invoices/tax-rates), [subscriptions](https://stripe.com/docs/billing/subscriptions/taxes) and [Checkout Sessions](https://stripe.com/docs/payments/checkout/set-up-a-subscription#tax-rates) to collect tax.
582
+
*
583
+
* Related guide: [Tax Rates](https://stripe.com/docs/billing/taxes/tax-rates).
584
+
*/
585
+
rate: Stripe.TaxRate;
586
+
}
587
+
}
588
+
}
509
589
}
510
590
511
591
interfaceSessionCreateParams{
@@ -818,7 +898,7 @@ declare module 'stripe' {
818
898
on_behalf_of?: string;
819
899
820
900
/**
821
-
* Email address that the receipt for the resulting payment will be sent to.
901
+
* Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
Copy file name to clipboardexpand all lines: types/2020-03-02/PaymentIntents.d.ts
+5-5
Original file line number
Diff line number
Diff line change
@@ -140,7 +140,7 @@ declare module 'stripe' {
140
140
payment_method_types: Array<string>;
141
141
142
142
/**
143
-
* Email address that the receipt for the resulting payment will be sent to.
143
+
* Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
144
144
*/
145
145
receipt_email: string|null;
146
146
@@ -606,7 +606,7 @@ declare module 'stripe' {
606
606
payment_method_types?: Array<string>;
607
607
608
608
/**
609
-
* Email address that the receipt for the resulting payment will be sent to.
609
+
* Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
610
610
*/
611
611
receipt_email?: string;
612
612
@@ -1193,7 +1193,7 @@ declare module 'stripe' {
1193
1193
payment_method_types?: Array<string>;
1194
1194
1195
1195
/**
1196
-
* Email address that the receipt for the resulting payment will be sent to.
1196
+
* Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
* Email address that the receipt for the resulting payment will be sent to.
1755
+
* Email address that the receipt for the resulting payment will be sent to. If `receipt_email` is specified for a payment in live mode, a receipt will be sent regardless of your [email settings](https://dashboard.stripe.com/account/emails).
* A PaymentIntent object can be canceled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action.
2320
+
* A PaymentIntent object can be canceled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, or requires_action.
2321
2321
*
2322
2322
* Once canceled, no additional charges will be made by the PaymentIntent and any operations on the PaymentIntent will fail with an error. For PaymentIntents with status='requires_capture', the remaining amount_capturable will automatically be refunded.
* A SetupIntent object can be canceled when it is in one of these statuses: requires_payment_method, requires_capture, requires_confirmation, requires_action.
751
+
* A SetupIntent object can be canceled when it is in one of these statuses: requires_payment_method, requires_confirmation, or requires_action.
752
752
*
753
753
* Once canceled, setup is abandoned and any operations on the SetupIntent will fail with an error.
Copy file name to clipboardexpand all lines: types/2020-03-02/SubscriptionItems.d.ts
+3-3
Original file line number
Diff line number
Diff line change
@@ -124,7 +124,7 @@ declare module 'stripe' {
124
124
*
125
125
* Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
126
126
*
127
-
* Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not create a subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
127
+
* Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
* Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
269
269
*
270
-
* Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not create a subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
270
+
* Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
* For the specified subscription item, returns a list of summary objects. Each object in the list provides usage information that's been summarized from multiple usage records and over a subscription billing period (e.g., 15 usage records in the billing plan's month of September).
490
+
* For the specified subscription item, returns a list of summary objects. Each object in the list provides usage information that's been summarized from multiple usage records and over a subscription billing period (e.g., 15 usage records in the month of September).
491
491
*
492
492
* The list is sorted in reverse-chronological order (newest first). The first list item represents the most current usage period that hasn't ended yet. Since new usage records can still be added, the returned summary information for the subscription item's ID should be seen as unstable until the subscription billing period ends.
Copy file name to clipboardexpand all lines: types/2020-03-02/Subscriptions.d.ts
+4-4
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,7 @@ declare module 'stripe' {
100
100
ended_at: number|null;
101
101
102
102
/**
103
-
* List of subscription items, each with an attached plan.
103
+
* List of subscription items, each with an attached price.
104
104
*/
105
105
items: ApiList<Stripe.SubscriptionItem>;
106
106
@@ -371,7 +371,7 @@ declare module 'stripe' {
371
371
expand?: Array<string>;
372
372
373
373
/**
374
-
* A list of up to 20 subscription items, each with an attached plan.
374
+
* A list of up to 20 subscription items, each with an attached price.
375
375
*/
376
376
items?: Array<SubscriptionCreateParams.Item>;
377
377
@@ -694,7 +694,7 @@ declare module 'stripe' {
694
694
expand?: Array<string>;
695
695
696
696
/**
697
-
* List of subscription items, each with an attached plan.
697
+
* A list of up to 20 subscription items, each with an attached price.
698
698
*/
699
699
items?: Array<SubscriptionUpdateParams.Item>;
700
700
@@ -718,7 +718,7 @@ declare module 'stripe' {
718
718
*
719
719
* Use `pending_if_incomplete` to update the subscription using [pending updates](https://stripe.com/docs/billing/subscriptions/pending-updates). When you use `pending_if_incomplete` you can only pass the parameters [supported by pending updates](https://stripe.com/docs/billing/pending-updates-reference#supported-attributes).
720
720
*
721
-
* Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's first invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not create a subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
721
+
* Use `error_if_incomplete` if you want Stripe to return an HTTP 402 status code if a subscription's invoice cannot be paid. For example, if a payment method requires 3DS authentication due to SCA regulation and further user action is needed, this parameter does not update the subscription and returns an error instead. This was the default behavior for API versions prior to 2019-03-14. See the [changelog](https://stripe.com/docs/upgrades#2019-03-14) to learn more.
Copy file name to clipboardexpand all lines: types/2020-03-02/TaxRates.d.ts
+3-3
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ declare module 'stripe' {
15
15
object: 'tax_rate';
16
16
17
17
/**
18
-
* Defaults to `true`. When set to `false`, this tax rate is considered archived and cannot be applied to new applications or Checkout Sessions, but will still be applied to subscriptions and invoices that already have it set.
18
+
* Defaults to `true`. When set to `false`, this tax rate cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
19
19
*/
20
20
active: boolean;
21
21
@@ -77,7 +77,7 @@ declare module 'stripe' {
77
77
percentage: number;
78
78
79
79
/**
80
-
* Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates continue to work where they are currently applied however they cannot be used for new applications or Checkout Sessions.
80
+
* Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
81
81
*/
82
82
active?: boolean;
83
83
@@ -111,7 +111,7 @@ declare module 'stripe' {
111
111
112
112
interfaceTaxRateUpdateParams{
113
113
/**
114
-
* Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates continue to work where they are currently applied however they cannot be used for new applications or Checkout Sessions.
114
+
* Flag determining whether the tax rate is active or inactive (archived). Inactive tax rates cannot be used with new applications or Checkout Sessions, but will still work for subscriptions and invoices that already have it set.
0 commit comments