stripe 8.188.0 → 8.192.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +0 -1
- package/VERSION +1 -1
- package/lib/resources/ShippingRates.js +31 -0
- package/lib/resources.js +1 -0
- package/package.json +1 -2
- package/types/2020-08-27/Capabilities.d.ts +1 -1
- package/types/2020-08-27/Charges.d.ts +3 -3
- package/types/2020-08-27/Checkout/Sessions.d.ts +150 -8
- package/types/2020-08-27/Customers.d.ts +3 -1
- package/types/2020-08-27/InvoiceLineItems.d.ts +4 -2
- package/types/2020-08-27/Invoices.d.ts +7 -3
- package/types/2020-08-27/Issuing/Cards.d.ts +56 -0
- package/types/2020-08-27/PaymentIntents.d.ts +83 -6
- package/types/2020-08-27/PaymentMethods.d.ts +2 -2
- package/types/2020-08-27/SetupIntents.d.ts +1 -1
- package/types/2020-08-27/ShippingRates.d.ts +320 -0
- package/types/2020-08-27/Subscriptions.d.ts +5 -5
- package/types/2020-08-27/TaxIds.d.ts +6 -2
- package/types/2020-08-27/TaxRates.d.ts +3 -0
- package/types/2020-08-27/Terminal/Locations.d.ts +1 -0
- package/types/2020-08-27/Terminal/Readers.d.ts +1 -1
- package/types/2020-08-27/index.d.ts +2 -0
- package/types/lib.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 8.192.0 - 2021-12-09
|
|
4
|
+
* [#1307](https://github.com/stripe/stripe-node/pull/1307) API Updates
|
|
5
|
+
* Add support for new values `ge_vat` and `ua_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type`
|
|
6
|
+
* Add support for new values `ge_vat` and `ua_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
|
|
7
|
+
* Change type of `PaymentIntentCreateParams.payment_method_data.billing_details.email`, `PaymentIntentUpdateParams.payment_method_data.billing_details.email`, `PaymentIntentConfirmParams.payment_method_data.billing_details.email`, `PaymentMethodCreateParams.billing_details.email`, and `PaymentMethodUpdateParams.billing_details.email` from `string` to `emptyStringable(string)`
|
|
8
|
+
* Add support for `giropay` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
|
|
9
|
+
* Add support for new value `en-IE` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`
|
|
10
|
+
* [#1301](https://github.com/stripe/stripe-node/pull/1301) Remove coveralls from package.json
|
|
11
|
+
* [#1300](https://github.com/stripe/stripe-node/pull/1300) Fix broken link in docstring
|
|
12
|
+
|
|
13
|
+
## 8.191.0 - 2021-11-19
|
|
14
|
+
* [#1299](https://github.com/stripe/stripe-node/pull/1299) API Updates
|
|
15
|
+
* Add support for `wallets` on `Issuing.Card`
|
|
16
|
+
|
|
17
|
+
* [#1298](https://github.com/stripe/stripe-node/pull/1298) API Updates
|
|
18
|
+
* Add support for `interac_present` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
|
|
19
|
+
* Add support for new value `jct` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type`
|
|
20
|
+
|
|
21
|
+
## 8.190.0 - 2021-11-17
|
|
22
|
+
* [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates
|
|
23
|
+
* Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent`
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
## 8.189.0 - 2021-11-16
|
|
27
|
+
* [#1295](https://github.com/stripe/stripe-node/pull/1295) API Updates
|
|
28
|
+
* Add support for new resource `ShippingRate`
|
|
29
|
+
* Add support for `shipping_options` on `CheckoutSessionCreateParams` and `Checkout.Session`
|
|
30
|
+
* Add support for `shipping_rate` on `Checkout.Session`
|
|
31
|
+
|
|
3
32
|
## 8.188.0 - 2021-11-12
|
|
4
33
|
* [#1293](https://github.com/stripe/stripe-node/pull/1293) API Updates
|
|
5
34
|
* Add support for new value `agrobank` on enums `Charge.payment_method_details.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, and `PaymentMethod.fpx.bank`
|
package/README.md
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.org/package/stripe)
|
|
4
4
|
[](https://travis-ci.org/stripe/stripe-node)
|
|
5
|
-
[](https://coveralls.io/github/stripe/stripe-node)
|
|
6
5
|
[](https://www.npmjs.com/package/stripe)
|
|
7
6
|
[](https://runkit.com/npm/stripe)
|
|
8
7
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.
|
|
1
|
+
8.192.0
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
'use strict';
|
|
4
|
+
|
|
5
|
+
const StripeResource = require('../StripeResource');
|
|
6
|
+
const stripeMethod = StripeResource.method;
|
|
7
|
+
|
|
8
|
+
module.exports = StripeResource.extend({
|
|
9
|
+
path: 'shipping_rates',
|
|
10
|
+
|
|
11
|
+
create: stripeMethod({
|
|
12
|
+
method: 'POST',
|
|
13
|
+
path: '',
|
|
14
|
+
}),
|
|
15
|
+
|
|
16
|
+
retrieve: stripeMethod({
|
|
17
|
+
method: 'GET',
|
|
18
|
+
path: '/{shippingRateToken}',
|
|
19
|
+
}),
|
|
20
|
+
|
|
21
|
+
update: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
path: '/{shippingRateToken}',
|
|
24
|
+
}),
|
|
25
|
+
|
|
26
|
+
list: stripeMethod({
|
|
27
|
+
method: 'GET',
|
|
28
|
+
path: '',
|
|
29
|
+
methodType: 'list',
|
|
30
|
+
}),
|
|
31
|
+
});
|
package/lib/resources.js
CHANGED
|
@@ -43,6 +43,7 @@ module.exports = {
|
|
|
43
43
|
Reviews: require('./resources/Reviews'),
|
|
44
44
|
SetupAttempts: require('./resources/SetupAttempts'),
|
|
45
45
|
SetupIntents: require('./resources/SetupIntents'),
|
|
46
|
+
ShippingRates: require('./resources/ShippingRates'),
|
|
46
47
|
Skus: require('./resources/SKUs'),
|
|
47
48
|
Sources: require('./resources/Sources'),
|
|
48
49
|
Subscriptions: require('./resources/Subscriptions'),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stripe",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.192.0",
|
|
4
4
|
"description": "Stripe API wrapper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stripe",
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
"@typescript-eslint/parser": "^2.13.0",
|
|
32
32
|
"chai": "~4.2.0",
|
|
33
33
|
"chai-as-promised": "~7.1.1",
|
|
34
|
-
"coveralls": "^3.0.0",
|
|
35
34
|
"eslint": "^6.8.0",
|
|
36
35
|
"eslint-config-prettier": "^4.1.0",
|
|
37
36
|
"eslint-plugin-chai-friendly": "^0.4.0",
|
|
@@ -187,7 +187,7 @@ declare module 'stripe' {
|
|
|
187
187
|
*
|
|
188
188
|
* - [Afterpay Clearpay's terms of service](https://stripe.com/afterpay-clearpay/legal#restricted-businesses)
|
|
189
189
|
*
|
|
190
|
-
* If you believe that the rejection is in error, please contact support
|
|
190
|
+
* If you believe that the rejection is in error, please contact support at https://support.stripe.com/contact/ for assistance.
|
|
191
191
|
*/
|
|
192
192
|
disabled_reason: string | null;
|
|
193
193
|
|
|
@@ -1419,7 +1419,7 @@ declare module 'stripe' {
|
|
|
1419
1419
|
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Preferred language of the Klarna authorization page that the customer is redirected to.
|
|
1422
|
-
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `fr-FR`, or `en-FR`
|
|
1422
|
+
* Can be one of `de-AT`, `en-AT`, `nl-BE`, `fr-BE`, `en-BE`, `de-DE`, `en-DE`, `da-DK`, `en-DK`, `es-ES`, `en-ES`, `fi-FI`, `sv-FI`, `en-FI`, `en-GB`, `en-IE`, `it-IT`, `en-IT`, `nl-NL`, `en-NL`, `nb-NO`, `en-NO`, `sv-SE`, `en-SE`, `en-US`, `fr-FR`, or `en-FR`
|
|
1423
1423
|
*/
|
|
1424
1424
|
preferred_locale: string | null;
|
|
1425
1425
|
}
|
|
@@ -1668,7 +1668,7 @@ declare module 'stripe' {
|
|
|
1668
1668
|
application_fee_amount?: number;
|
|
1669
1669
|
|
|
1670
1670
|
/**
|
|
1671
|
-
* Whether to immediately capture the charge. Defaults to `true`. When `false`, the charge issues an authorization (or pre-authorization), and will need to be [captured](https://stripe.com/docs/api#capture_charge) later. Uncaptured charges expire
|
|
1671
|
+
* Whether to immediately capture the charge. Defaults to `true`. When `false`, the charge issues an authorization (or pre-authorization), and will need to be [captured](https://stripe.com/docs/api#capture_charge) later. Uncaptured charges expire after a set number of days (7 by default). For more information, see the [authorizing charges and settling later](https://stripe.com/docs/charges/placing-a-hold) documentation.
|
|
1672
1672
|
*/
|
|
1673
1673
|
capture?: boolean;
|
|
1674
1674
|
|
|
@@ -2018,7 +2018,7 @@ declare module 'stripe' {
|
|
|
2018
2018
|
/**
|
|
2019
2019
|
* Capture the payment of an existing, uncaptured, charge. This is the second half of the two-step payment flow, where first you [created a charge](https://stripe.com/docs/api#create_charge) with the capture option set to false.
|
|
2020
2020
|
*
|
|
2021
|
-
* Uncaptured payments expire
|
|
2021
|
+
* Uncaptured payments expire a set number of days after they are created ([7 by default](https://stripe.com/docs/charges/placing-a-hold)). If they are not captured by that point in time, they will be marked as refunded and will no longer be capturable.
|
|
2022
2022
|
*/
|
|
2023
2023
|
capture(
|
|
2024
2024
|
id: string,
|
|
@@ -169,6 +169,16 @@ declare module 'stripe' {
|
|
|
169
169
|
*/
|
|
170
170
|
shipping_address_collection: Session.ShippingAddressCollection | null;
|
|
171
171
|
|
|
172
|
+
/**
|
|
173
|
+
* The shipping rate options applied to this Session.
|
|
174
|
+
*/
|
|
175
|
+
shipping_options: Array<Session.ShippingOption>;
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* The ID of the ShippingRate for Checkout Sessions in `payment` mode.
|
|
179
|
+
*/
|
|
180
|
+
shipping_rate: string | Stripe.ShippingRate | null;
|
|
181
|
+
|
|
172
182
|
/**
|
|
173
183
|
* The status of the Checkout Session, one of `open`, `complete`, or `expired`.
|
|
174
184
|
*/
|
|
@@ -307,7 +317,7 @@ declare module 'stripe' {
|
|
|
307
317
|
|
|
308
318
|
interface TaxId {
|
|
309
319
|
/**
|
|
310
|
-
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `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`, `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`, or `unknown`
|
|
320
|
+
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `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`, `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`, or `unknown`
|
|
311
321
|
*/
|
|
312
322
|
type: TaxId.Type;
|
|
313
323
|
|
|
@@ -335,6 +345,7 @@ declare module 'stripe' {
|
|
|
335
345
|
| 'es_cif'
|
|
336
346
|
| 'eu_vat'
|
|
337
347
|
| 'gb_vat'
|
|
348
|
+
| 'ge_vat'
|
|
338
349
|
| 'hk_br'
|
|
339
350
|
| 'id_npwp'
|
|
340
351
|
| 'il_vat'
|
|
@@ -356,6 +367,7 @@ declare module 'stripe' {
|
|
|
356
367
|
| 'sg_uen'
|
|
357
368
|
| 'th_vat'
|
|
358
369
|
| 'tw_vat'
|
|
370
|
+
| 'ua_vat'
|
|
359
371
|
| 'unknown'
|
|
360
372
|
| 'us_ein'
|
|
361
373
|
| 'za_vat';
|
|
@@ -763,6 +775,18 @@ declare module 'stripe' {
|
|
|
763
775
|
| 'ZZ';
|
|
764
776
|
}
|
|
765
777
|
|
|
778
|
+
interface ShippingOption {
|
|
779
|
+
/**
|
|
780
|
+
* A non-negative integer in cents representing how much to charge.
|
|
781
|
+
*/
|
|
782
|
+
shipping_amount: number;
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* The shipping rate.
|
|
786
|
+
*/
|
|
787
|
+
shipping_rate: string | Stripe.ShippingRate;
|
|
788
|
+
}
|
|
789
|
+
|
|
766
790
|
type Status = 'complete' | 'expired' | 'open';
|
|
767
791
|
|
|
768
792
|
type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
|
|
@@ -995,7 +1019,12 @@ declare module 'stripe' {
|
|
|
995
1019
|
shipping_address_collection?: SessionCreateParams.ShippingAddressCollection;
|
|
996
1020
|
|
|
997
1021
|
/**
|
|
998
|
-
* The shipping rate to apply to this Session.
|
|
1022
|
+
* The shipping rate options to apply to this Session.
|
|
1023
|
+
*/
|
|
1024
|
+
shipping_options?: Array<SessionCreateParams.ShippingOption>;
|
|
1025
|
+
|
|
1026
|
+
/**
|
|
1027
|
+
* [Deprecated] The shipping rate to apply to this Session. Only up to one may be specified.
|
|
999
1028
|
*/
|
|
1000
1029
|
shipping_rates?: Array<string>;
|
|
1001
1030
|
|
|
@@ -1106,12 +1135,12 @@ declare module 'stripe' {
|
|
|
1106
1135
|
adjustable_quantity?: LineItem.AdjustableQuantity;
|
|
1107
1136
|
|
|
1108
1137
|
/**
|
|
1109
|
-
* The amount to be collected per unit of the line item. If specified, must also pass `currency` and `name`.
|
|
1138
|
+
* [Deprecated] The amount to be collected per unit of the line item. If specified, must also pass `currency` and `name`.
|
|
1110
1139
|
*/
|
|
1111
1140
|
amount?: number;
|
|
1112
1141
|
|
|
1113
1142
|
/**
|
|
1114
|
-
* 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). Required if `amount` is passed.
|
|
1143
|
+
* [Deprecated] 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). Required if `amount` is passed.
|
|
1115
1144
|
*/
|
|
1116
1145
|
currency?: string;
|
|
1117
1146
|
|
|
@@ -1128,22 +1157,22 @@ declare module 'stripe' {
|
|
|
1128
1157
|
dynamic_tax_rates?: Array<string>;
|
|
1129
1158
|
|
|
1130
1159
|
/**
|
|
1131
|
-
* A list of image URLs representing this line item. Each image can be up to 5 MB in size. If passing `price` or `price_data`, specify images on the associated product instead.
|
|
1160
|
+
* [Deprecated] A list of image URLs representing this line item. Each image can be up to 5 MB in size. If passing `price` or `price_data`, specify images on the associated product instead.
|
|
1132
1161
|
*/
|
|
1133
1162
|
images?: Array<string>;
|
|
1134
1163
|
|
|
1135
1164
|
/**
|
|
1136
|
-
* The name for the item to be displayed on the Checkout page. Required if `amount` is passed.
|
|
1165
|
+
* [Deprecated] The name for the item to be displayed on the Checkout page. Required if `amount` is passed.
|
|
1137
1166
|
*/
|
|
1138
1167
|
name?: string;
|
|
1139
1168
|
|
|
1140
1169
|
/**
|
|
1141
|
-
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price
|
|
1170
|
+
* The ID of the [Price](https://stripe.com/docs/api/prices) or [Plan](https://stripe.com/docs/api/plans) object. One of `price` or `price_data` is required.
|
|
1142
1171
|
*/
|
|
1143
1172
|
price?: string;
|
|
1144
1173
|
|
|
1145
1174
|
/**
|
|
1146
|
-
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price
|
|
1175
|
+
* Data used to generate a new [Price](https://stripe.com/docs/api/prices) object inline. One of `price` or `price_data` is required.
|
|
1147
1176
|
*/
|
|
1148
1177
|
price_data?: LineItem.PriceData;
|
|
1149
1178
|
|
|
@@ -1849,6 +1878,119 @@ declare module 'stripe' {
|
|
|
1849
1878
|
| 'ZZ';
|
|
1850
1879
|
}
|
|
1851
1880
|
|
|
1881
|
+
interface ShippingOption {
|
|
1882
|
+
/**
|
|
1883
|
+
* The ID of the Shipping Rate to use for this shipping option.
|
|
1884
|
+
*/
|
|
1885
|
+
shipping_rate?: string;
|
|
1886
|
+
|
|
1887
|
+
/**
|
|
1888
|
+
* Parameters to be passed to Shipping Rate creation for this shipping option
|
|
1889
|
+
*/
|
|
1890
|
+
shipping_rate_data?: ShippingOption.ShippingRateData;
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
namespace ShippingOption {
|
|
1894
|
+
interface ShippingRateData {
|
|
1895
|
+
/**
|
|
1896
|
+
* The estimated range for how long shipping will take, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
1897
|
+
*/
|
|
1898
|
+
delivery_estimate?: ShippingRateData.DeliveryEstimate;
|
|
1899
|
+
|
|
1900
|
+
/**
|
|
1901
|
+
* The name of the shipping rate, meant to be displayable to the customer. This will appear on CheckoutSessions.
|
|
1902
|
+
*/
|
|
1903
|
+
display_name: string;
|
|
1904
|
+
|
|
1905
|
+
/**
|
|
1906
|
+
* Describes a fixed amount to charge for shipping. Must be present if type is `fixed_amount`.
|
|
1907
|
+
*/
|
|
1908
|
+
fixed_amount?: ShippingRateData.FixedAmount;
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
1912
|
+
*/
|
|
1913
|
+
metadata?: Stripe.MetadataParam;
|
|
1914
|
+
|
|
1915
|
+
/**
|
|
1916
|
+
* Specifies whether the rate is considered inclusive of taxes or exclusive of taxes. One of `inclusive`, `exclusive`, or `unspecified`.
|
|
1917
|
+
*/
|
|
1918
|
+
tax_behavior?: ShippingRateData.TaxBehavior;
|
|
1919
|
+
|
|
1920
|
+
/**
|
|
1921
|
+
* A [tax code](https://stripe.com/docs/tax/tax-codes) ID. The Shipping tax code is `txcd_92010001`.
|
|
1922
|
+
*/
|
|
1923
|
+
tax_code?: string;
|
|
1924
|
+
|
|
1925
|
+
/**
|
|
1926
|
+
* The type of calculation to use on the shipping rate. Can only be `fixed_amount` for now.
|
|
1927
|
+
*/
|
|
1928
|
+
type?: 'fixed_amount';
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
namespace ShippingRateData {
|
|
1932
|
+
interface DeliveryEstimate {
|
|
1933
|
+
/**
|
|
1934
|
+
* The upper bound of the estimated range. If empty, represents no upper bound i.e., infinite.
|
|
1935
|
+
*/
|
|
1936
|
+
maximum?: DeliveryEstimate.Maximum;
|
|
1937
|
+
|
|
1938
|
+
/**
|
|
1939
|
+
* The lower bound of the estimated range. If empty, represents no lower bound.
|
|
1940
|
+
*/
|
|
1941
|
+
minimum?: DeliveryEstimate.Minimum;
|
|
1942
|
+
}
|
|
1943
|
+
|
|
1944
|
+
namespace DeliveryEstimate {
|
|
1945
|
+
interface Maximum {
|
|
1946
|
+
/**
|
|
1947
|
+
* A unit of time.
|
|
1948
|
+
*/
|
|
1949
|
+
unit: Maximum.Unit;
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* Must be greater than 0.
|
|
1953
|
+
*/
|
|
1954
|
+
value: number;
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
namespace Maximum {
|
|
1958
|
+
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
1959
|
+
}
|
|
1960
|
+
|
|
1961
|
+
interface Minimum {
|
|
1962
|
+
/**
|
|
1963
|
+
* A unit of time.
|
|
1964
|
+
*/
|
|
1965
|
+
unit: Minimum.Unit;
|
|
1966
|
+
|
|
1967
|
+
/**
|
|
1968
|
+
* Must be greater than 0.
|
|
1969
|
+
*/
|
|
1970
|
+
value: number;
|
|
1971
|
+
}
|
|
1972
|
+
|
|
1973
|
+
namespace Minimum {
|
|
1974
|
+
type Unit = 'business_day' | 'day' | 'hour' | 'month' | 'week';
|
|
1975
|
+
}
|
|
1976
|
+
}
|
|
1977
|
+
|
|
1978
|
+
interface FixedAmount {
|
|
1979
|
+
/**
|
|
1980
|
+
* A non-negative integer in cents representing how much to charge.
|
|
1981
|
+
*/
|
|
1982
|
+
amount: number;
|
|
1983
|
+
|
|
1984
|
+
/**
|
|
1985
|
+
* 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).
|
|
1986
|
+
*/
|
|
1987
|
+
currency: string;
|
|
1988
|
+
}
|
|
1989
|
+
|
|
1990
|
+
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
1991
|
+
}
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1852
1994
|
type SubmitType = 'auto' | 'book' | 'donate' | 'pay';
|
|
1853
1995
|
|
|
1854
1996
|
interface SubscriptionData {
|
|
@@ -420,7 +420,7 @@ declare module 'stripe' {
|
|
|
420
420
|
|
|
421
421
|
interface TaxIdDatum {
|
|
422
422
|
/**
|
|
423
|
-
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
|
|
423
|
+
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`
|
|
424
424
|
*/
|
|
425
425
|
type: TaxIdDatum.Type;
|
|
426
426
|
|
|
@@ -448,6 +448,7 @@ declare module 'stripe' {
|
|
|
448
448
|
| 'es_cif'
|
|
449
449
|
| 'eu_vat'
|
|
450
450
|
| 'gb_vat'
|
|
451
|
+
| 'ge_vat'
|
|
451
452
|
| 'hk_br'
|
|
452
453
|
| 'id_npwp'
|
|
453
454
|
| 'il_vat'
|
|
@@ -469,6 +470,7 @@ declare module 'stripe' {
|
|
|
469
470
|
| 'sg_uen'
|
|
470
471
|
| 'th_vat'
|
|
471
472
|
| 'tw_vat'
|
|
473
|
+
| 'ua_vat'
|
|
472
474
|
| 'us_ein'
|
|
473
475
|
| 'za_vat';
|
|
474
476
|
}
|
|
@@ -268,7 +268,7 @@ declare module 'stripe' {
|
|
|
268
268
|
subscription_trial_end?: 'now' | number;
|
|
269
269
|
|
|
270
270
|
/**
|
|
271
|
-
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `subscription_trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `subscription_trial_end` is not allowed. See [Using trial periods on subscriptions](docs/billing/subscriptions/trials) to learn more.
|
|
271
|
+
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `subscription_trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `subscription_trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
|
272
272
|
*/
|
|
273
273
|
subscription_trial_from_plan?: boolean;
|
|
274
274
|
}
|
|
@@ -347,7 +347,7 @@ declare module 'stripe' {
|
|
|
347
347
|
|
|
348
348
|
interface TaxId {
|
|
349
349
|
/**
|
|
350
|
-
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
|
|
350
|
+
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`
|
|
351
351
|
*/
|
|
352
352
|
type: TaxId.Type;
|
|
353
353
|
|
|
@@ -375,6 +375,7 @@ declare module 'stripe' {
|
|
|
375
375
|
| 'es_cif'
|
|
376
376
|
| 'eu_vat'
|
|
377
377
|
| 'gb_vat'
|
|
378
|
+
| 'ge_vat'
|
|
378
379
|
| 'hk_br'
|
|
379
380
|
| 'id_npwp'
|
|
380
381
|
| 'il_vat'
|
|
@@ -396,6 +397,7 @@ declare module 'stripe' {
|
|
|
396
397
|
| 'sg_uen'
|
|
397
398
|
| 'th_vat'
|
|
398
399
|
| 'tw_vat'
|
|
400
|
+
| 'ua_vat'
|
|
399
401
|
| 'us_ein'
|
|
400
402
|
| 'za_vat';
|
|
401
403
|
}
|
|
@@ -399,7 +399,7 @@ declare module 'stripe' {
|
|
|
399
399
|
|
|
400
400
|
interface CustomerTaxId {
|
|
401
401
|
/**
|
|
402
|
-
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `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`, `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`, or `unknown`
|
|
402
|
+
* The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `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`, `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`, or `unknown`
|
|
403
403
|
*/
|
|
404
404
|
type: CustomerTaxId.Type;
|
|
405
405
|
|
|
@@ -427,6 +427,7 @@ declare module 'stripe' {
|
|
|
427
427
|
| 'es_cif'
|
|
428
428
|
| 'eu_vat'
|
|
429
429
|
| 'gb_vat'
|
|
430
|
+
| 'ge_vat'
|
|
430
431
|
| 'hk_br'
|
|
431
432
|
| 'id_npwp'
|
|
432
433
|
| 'il_vat'
|
|
@@ -448,6 +449,7 @@ declare module 'stripe' {
|
|
|
448
449
|
| 'sg_uen'
|
|
449
450
|
| 'th_vat'
|
|
450
451
|
| 'tw_vat'
|
|
452
|
+
| 'ua_vat'
|
|
451
453
|
| 'unknown'
|
|
452
454
|
| 'us_ein'
|
|
453
455
|
| 'za_vat';
|
|
@@ -1497,7 +1499,7 @@ declare module 'stripe' {
|
|
|
1497
1499
|
subscription_trial_end?: 'now' | number;
|
|
1498
1500
|
|
|
1499
1501
|
/**
|
|
1500
|
-
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `subscription_trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `subscription_trial_end` is not allowed. See [Using trial periods on subscriptions](docs/billing/subscriptions/trials) to learn more.
|
|
1502
|
+
* Indicates if a plan's `trial_period_days` should be applied to the subscription. Setting `subscription_trial_end` per subscription is preferred, and this defaults to `false`. Setting this flag to `true` together with `subscription_trial_end` is not allowed. See [Using trial periods on subscriptions](https://stripe.com/docs/billing/subscriptions/trials) to learn more.
|
|
1501
1503
|
*/
|
|
1502
1504
|
subscription_trial_from_plan?: boolean;
|
|
1503
1505
|
}
|
|
@@ -1576,7 +1578,7 @@ declare module 'stripe' {
|
|
|
1576
1578
|
|
|
1577
1579
|
interface TaxId {
|
|
1578
1580
|
/**
|
|
1579
|
-
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `us_ein`, or `za_vat`
|
|
1581
|
+
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_vat`, `cl_tin`, `es_cif`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `id_npwp`, `il_vat`, `in_gst`, `jp_cn`, `jp_rn`, `kr_brn`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `no_vat`, `nz_gst`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`
|
|
1580
1582
|
*/
|
|
1581
1583
|
type: TaxId.Type;
|
|
1582
1584
|
|
|
@@ -1604,6 +1606,7 @@ declare module 'stripe' {
|
|
|
1604
1606
|
| 'es_cif'
|
|
1605
1607
|
| 'eu_vat'
|
|
1606
1608
|
| 'gb_vat'
|
|
1609
|
+
| 'ge_vat'
|
|
1607
1610
|
| 'hk_br'
|
|
1608
1611
|
| 'id_npwp'
|
|
1609
1612
|
| 'il_vat'
|
|
@@ -1625,6 +1628,7 @@ declare module 'stripe' {
|
|
|
1625
1628
|
| 'sg_uen'
|
|
1626
1629
|
| 'th_vat'
|
|
1627
1630
|
| 'tw_vat'
|
|
1631
|
+
| 'ua_vat'
|
|
1628
1632
|
| 'us_ein'
|
|
1629
1633
|
| 'za_vat';
|
|
1630
1634
|
}
|
|
@@ -110,6 +110,11 @@ declare module 'stripe' {
|
|
|
110
110
|
* The type of the card.
|
|
111
111
|
*/
|
|
112
112
|
type: Card.Type;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Information relating to digital wallets (like Apple Pay and Google Pay).
|
|
116
|
+
*/
|
|
117
|
+
wallets: Card.Wallets | null;
|
|
113
118
|
}
|
|
114
119
|
|
|
115
120
|
namespace Card {
|
|
@@ -1101,6 +1106,57 @@ declare module 'stripe' {
|
|
|
1101
1106
|
type Status = 'active' | 'canceled' | 'inactive';
|
|
1102
1107
|
|
|
1103
1108
|
type Type = 'physical' | 'virtual';
|
|
1109
|
+
|
|
1110
|
+
interface Wallets {
|
|
1111
|
+
apple_pay: Wallets.ApplePay;
|
|
1112
|
+
|
|
1113
|
+
google_pay: Wallets.GooglePay;
|
|
1114
|
+
|
|
1115
|
+
/**
|
|
1116
|
+
* Unique identifier for a card used with digital wallets
|
|
1117
|
+
*/
|
|
1118
|
+
primary_account_identifier: string | null;
|
|
1119
|
+
}
|
|
1120
|
+
|
|
1121
|
+
namespace Wallets {
|
|
1122
|
+
interface ApplePay {
|
|
1123
|
+
/**
|
|
1124
|
+
* Apple Pay Eligibility
|
|
1125
|
+
*/
|
|
1126
|
+
eligible: boolean;
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
* Reason the card is ineligible for Apple Pay
|
|
1130
|
+
*/
|
|
1131
|
+
ineligible_reason: ApplePay.IneligibleReason | null;
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
namespace ApplePay {
|
|
1135
|
+
type IneligibleReason =
|
|
1136
|
+
| 'missing_agreement'
|
|
1137
|
+
| 'missing_cardholder_contact'
|
|
1138
|
+
| 'unsupported_region';
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
interface GooglePay {
|
|
1142
|
+
/**
|
|
1143
|
+
* Google Pay Eligibility
|
|
1144
|
+
*/
|
|
1145
|
+
eligible: boolean;
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Reason the card is ineligible for Google Pay
|
|
1149
|
+
*/
|
|
1150
|
+
ineligible_reason: GooglePay.IneligibleReason | null;
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
namespace GooglePay {
|
|
1154
|
+
type IneligibleReason =
|
|
1155
|
+
| 'missing_agreement'
|
|
1156
|
+
| 'missing_cardholder_contact'
|
|
1157
|
+
| 'unsupported_region';
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1104
1160
|
}
|
|
1105
1161
|
|
|
1106
1162
|
interface CardCreateParams {
|