stripe 17.1.0 → 17.2.0-beta.2
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 +901 -109
- package/README.md +4 -4
- package/VERSION +1 -1
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/GiftCards/Cards.js +23 -0
- package/cjs/resources/GiftCards/Transactions.js +33 -0
- package/cjs/resources/Invoices.js +17 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +4 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/Terminal/Readers.js +12 -0
- package/cjs/resources/TestHelpers/Issuing/Cards.js +4 -0
- package/cjs/resources.js +42 -10
- package/cjs/stripe.core.js +1 -1
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/GiftCards/Cards.js +20 -0
- package/esm/resources/GiftCards/Transactions.js +30 -0
- package/esm/resources/Invoices.js +17 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +4 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/Terminal/Readers.js +12 -0
- package/esm/resources/TestHelpers/Issuing/Cards.js +4 -0
- package/esm/resources.js +29 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +75 -5
- package/types/AccountSessionsResource.d.ts +354 -5
- package/types/Accounts.d.ts +127 -3
- package/types/AccountsResource.d.ts +296 -2
- package/types/Billing/CreditGrants.d.ts +2 -2
- package/types/Billing/CreditGrantsResource.d.ts +2 -2
- package/types/Billing/MeterErrorReports.d.ts +106 -0
- package/types/Billing/Meters.d.ts +2 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Charges.d.ts +152 -0
- package/types/ChargesResource.d.ts +1294 -0
- package/types/Checkout/Sessions.d.ts +309 -5
- package/types/Checkout/SessionsResource.d.ts +356 -5
- package/types/ConfirmationTokens.d.ts +137 -0
- package/types/Coupons.d.ts +1 -1
- package/types/CouponsResource.d.ts +1 -1
- package/types/CreditNotes.d.ts +21 -0
- package/types/CreditNotesResource.d.ts +51 -0
- package/types/CustomersResource.d.ts +22 -2
- package/types/Disputes.d.ts +152 -0
- package/types/DisputesResource.d.ts +120 -0
- package/types/EventTypes.d.ts +564 -2
- package/types/Events.d.ts +91 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +29 -1
- package/types/FinancialConnections/AccountsResource.d.ts +35 -3
- package/types/FinancialConnections/Institutions.d.ts +93 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +49 -1
- package/types/FinancialConnections/SessionsResource.d.ts +38 -1
- package/types/Forwarding/Requests.d.ts +5 -0
- package/types/GiftCards/Cards.d.ts +118 -0
- package/types/GiftCards/CardsResource.d.ts +159 -0
- package/types/GiftCards/Transactions.d.ts +129 -0
- package/types/GiftCards/TransactionsResource.d.ts +201 -0
- package/types/InvoiceItems.d.ts +5 -0
- package/types/InvoiceItemsResource.d.ts +98 -0
- package/types/InvoiceLineItems.d.ts +31 -1
- package/types/InvoicePayments.d.ts +138 -0
- package/types/Invoices.d.ts +134 -3
- package/types/InvoicesResource.d.ts +5478 -1799
- package/types/Issuing/Authorizations.d.ts +1 -1
- package/types/Issuing/AuthorizationsResource.d.ts +1 -1
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +73 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/Settlements.d.ts +103 -0
- package/types/Issuing/Transactions.d.ts +2 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +7 -0
- package/types/Mandates.d.ts +85 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1154 -0
- package/types/OrdersResource.d.ts +2911 -0
- package/types/PaymentIntents.d.ts +643 -1
- package/types/PaymentIntentsResource.d.ts +7790 -3514
- package/types/PaymentLinks.d.ts +3 -0
- package/types/PaymentLinksResource.d.ts +6 -0
- package/types/PaymentMethodConfigurations.d.ts +36 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +52 -2
- package/types/PaymentMethods.d.ts +137 -0
- package/types/PaymentMethodsResource.d.ts +158 -0
- package/types/Persons.d.ts +1 -1
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Products.d.ts +39 -0
- package/types/ProductsResource.d.ts +36 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1596 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +814 -0
- package/types/Quotes.d.ts +591 -1
- package/types/QuotesResource.d.ts +2526 -194
- package/types/SetupAttempts.d.ts +19 -0
- package/types/SetupIntents.d.ts +112 -1
- package/types/SetupIntentsResource.d.ts +669 -3
- package/types/Sources.d.ts +23 -0
- package/types/SubscriptionItems.d.ts +21 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +200 -0
- package/types/SubscriptionSchedulesResource.d.ts +1234 -16
- package/types/Subscriptions.d.ts +82 -1
- package/types/SubscriptionsResource.d.ts +348 -3
- package/types/Tax/Associations.d.ts +126 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/CalculationLineItems.d.ts +1 -0
- package/types/Tax/Calculations.d.ts +33 -1
- package/types/Tax/CalculationsResource.d.ts +7 -1
- package/types/Tax/Forms.d.ts +133 -0
- package/types/Tax/FormsResource.d.ts +90 -0
- package/types/Tax/Registrations.d.ts +82 -0
- package/types/Tax/RegistrationsResource.d.ts +109 -0
- package/types/Tax/Transactions.d.ts +8 -1
- package/types/TaxIds.d.ts +7 -1
- package/types/TaxIdsResource.d.ts +7 -1
- package/types/TaxRates.d.ts +25 -0
- package/types/TaxRatesResource.d.ts +2 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +278 -0
- package/types/Terminal/ReadersResource.d.ts +215 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +112 -0
- package/types/TestHelpers/Issuing/CardsResource.d.ts +22 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/TokensResource.d.ts +1 -1
- package/types/Treasury/FinancialAccounts.d.ts +6 -1
- package/types/Treasury/FinancialAccountsResource.d.ts +10 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/UsageRecordSummaries.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +66 -0
- package/types/index.d.ts +53 -0
|
@@ -62,6 +62,11 @@ declare module 'stripe' {
|
|
|
62
62
|
*/
|
|
63
63
|
bh?: CountryOptions.Bh;
|
|
64
64
|
|
|
65
|
+
/**
|
|
66
|
+
* Options for the registration in BY.
|
|
67
|
+
*/
|
|
68
|
+
by?: CountryOptions.By;
|
|
69
|
+
|
|
65
70
|
/**
|
|
66
71
|
* Options for the registration in CA.
|
|
67
72
|
*/
|
|
@@ -82,6 +87,11 @@ declare module 'stripe' {
|
|
|
82
87
|
*/
|
|
83
88
|
co?: CountryOptions.Co;
|
|
84
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Options for the registration in CR.
|
|
92
|
+
*/
|
|
93
|
+
cr?: CountryOptions.Cr;
|
|
94
|
+
|
|
85
95
|
/**
|
|
86
96
|
* Options for the registration in CY.
|
|
87
97
|
*/
|
|
@@ -102,6 +112,11 @@ declare module 'stripe' {
|
|
|
102
112
|
*/
|
|
103
113
|
dk?: CountryOptions.Dk;
|
|
104
114
|
|
|
115
|
+
/**
|
|
116
|
+
* Options for the registration in EC.
|
|
117
|
+
*/
|
|
118
|
+
ec?: CountryOptions.Ec;
|
|
119
|
+
|
|
105
120
|
/**
|
|
106
121
|
* Options for the registration in EE.
|
|
107
122
|
*/
|
|
@@ -207,6 +222,16 @@ declare module 'stripe' {
|
|
|
207
222
|
*/
|
|
208
223
|
lv?: CountryOptions.Lv;
|
|
209
224
|
|
|
225
|
+
/**
|
|
226
|
+
* Options for the registration in MA.
|
|
227
|
+
*/
|
|
228
|
+
ma?: CountryOptions.Ma;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Options for the registration in MD.
|
|
232
|
+
*/
|
|
233
|
+
md?: CountryOptions.Md;
|
|
234
|
+
|
|
210
235
|
/**
|
|
211
236
|
* Options for the registration in MT.
|
|
212
237
|
*/
|
|
@@ -262,6 +287,16 @@ declare module 'stripe' {
|
|
|
262
287
|
*/
|
|
263
288
|
ro?: CountryOptions.Ro;
|
|
264
289
|
|
|
290
|
+
/**
|
|
291
|
+
* Options for the registration in RS.
|
|
292
|
+
*/
|
|
293
|
+
rs?: CountryOptions.Rs;
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Options for the registration in RU.
|
|
297
|
+
*/
|
|
298
|
+
ru?: CountryOptions.Ru;
|
|
299
|
+
|
|
265
300
|
/**
|
|
266
301
|
* Options for the registration in SA.
|
|
267
302
|
*/
|
|
@@ -297,11 +332,21 @@ declare module 'stripe' {
|
|
|
297
332
|
*/
|
|
298
333
|
tr?: CountryOptions.Tr;
|
|
299
334
|
|
|
335
|
+
/**
|
|
336
|
+
* Options for the registration in TZ.
|
|
337
|
+
*/
|
|
338
|
+
tz?: CountryOptions.Tz;
|
|
339
|
+
|
|
300
340
|
/**
|
|
301
341
|
* Options for the registration in US.
|
|
302
342
|
*/
|
|
303
343
|
us?: CountryOptions.Us;
|
|
304
344
|
|
|
345
|
+
/**
|
|
346
|
+
* Options for the registration in UZ.
|
|
347
|
+
*/
|
|
348
|
+
uz?: CountryOptions.Uz;
|
|
349
|
+
|
|
305
350
|
/**
|
|
306
351
|
* Options for the registration in VN.
|
|
307
352
|
*/
|
|
@@ -416,6 +461,13 @@ declare module 'stripe' {
|
|
|
416
461
|
type: 'standard';
|
|
417
462
|
}
|
|
418
463
|
|
|
464
|
+
interface By {
|
|
465
|
+
/**
|
|
466
|
+
* Type of registration to be created in `country`.
|
|
467
|
+
*/
|
|
468
|
+
type: 'simplified';
|
|
469
|
+
}
|
|
470
|
+
|
|
419
471
|
interface Ca {
|
|
420
472
|
/**
|
|
421
473
|
* Options for the provincial tax registration.
|
|
@@ -460,6 +512,13 @@ declare module 'stripe' {
|
|
|
460
512
|
type: 'simplified';
|
|
461
513
|
}
|
|
462
514
|
|
|
515
|
+
interface Cr {
|
|
516
|
+
/**
|
|
517
|
+
* Type of registration to be created in `country`.
|
|
518
|
+
*/
|
|
519
|
+
type: 'simplified';
|
|
520
|
+
}
|
|
521
|
+
|
|
463
522
|
interface Cy {
|
|
464
523
|
/**
|
|
465
524
|
* Options for the standard registration.
|
|
@@ -568,6 +627,13 @@ declare module 'stripe' {
|
|
|
568
627
|
type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard';
|
|
569
628
|
}
|
|
570
629
|
|
|
630
|
+
interface Ec {
|
|
631
|
+
/**
|
|
632
|
+
* Type of registration to be created in `country`.
|
|
633
|
+
*/
|
|
634
|
+
type: 'simplified';
|
|
635
|
+
}
|
|
636
|
+
|
|
571
637
|
interface Ee {
|
|
572
638
|
/**
|
|
573
639
|
* Options for the standard registration.
|
|
@@ -955,6 +1021,20 @@ declare module 'stripe' {
|
|
|
955
1021
|
type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard';
|
|
956
1022
|
}
|
|
957
1023
|
|
|
1024
|
+
interface Ma {
|
|
1025
|
+
/**
|
|
1026
|
+
* Type of registration to be created in `country`.
|
|
1027
|
+
*/
|
|
1028
|
+
type: 'simplified';
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
interface Md {
|
|
1032
|
+
/**
|
|
1033
|
+
* Type of registration to be created in `country`.
|
|
1034
|
+
*/
|
|
1035
|
+
type: 'simplified';
|
|
1036
|
+
}
|
|
1037
|
+
|
|
958
1038
|
interface Mt {
|
|
959
1039
|
/**
|
|
960
1040
|
* Options for the standard registration.
|
|
@@ -1132,6 +1212,20 @@ declare module 'stripe' {
|
|
|
1132
1212
|
type Type = 'ioss' | 'oss_non_union' | 'oss_union' | 'standard';
|
|
1133
1213
|
}
|
|
1134
1214
|
|
|
1215
|
+
interface Rs {
|
|
1216
|
+
/**
|
|
1217
|
+
* Type of registration to be created in `country`.
|
|
1218
|
+
*/
|
|
1219
|
+
type: 'standard';
|
|
1220
|
+
}
|
|
1221
|
+
|
|
1222
|
+
interface Ru {
|
|
1223
|
+
/**
|
|
1224
|
+
* Type of registration to be created in `country`.
|
|
1225
|
+
*/
|
|
1226
|
+
type: 'simplified';
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1135
1229
|
interface Sa {
|
|
1136
1230
|
/**
|
|
1137
1231
|
* Type of registration to be created in `country`.
|
|
@@ -1241,6 +1335,13 @@ declare module 'stripe' {
|
|
|
1241
1335
|
type: 'simplified';
|
|
1242
1336
|
}
|
|
1243
1337
|
|
|
1338
|
+
interface Tz {
|
|
1339
|
+
/**
|
|
1340
|
+
* Type of registration to be created in `country`.
|
|
1341
|
+
*/
|
|
1342
|
+
type: 'simplified';
|
|
1343
|
+
}
|
|
1344
|
+
|
|
1244
1345
|
interface Us {
|
|
1245
1346
|
/**
|
|
1246
1347
|
* Options for the local amusement tax registration.
|
|
@@ -1315,9 +1416,17 @@ declare module 'stripe' {
|
|
|
1315
1416
|
| 'local_amusement_tax'
|
|
1316
1417
|
| 'local_lease_tax'
|
|
1317
1418
|
| 'state_communications_tax'
|
|
1419
|
+
| 'state_retail_delivery_fee'
|
|
1318
1420
|
| 'state_sales_tax';
|
|
1319
1421
|
}
|
|
1320
1422
|
|
|
1423
|
+
interface Uz {
|
|
1424
|
+
/**
|
|
1425
|
+
* Type of registration to be created in `country`.
|
|
1426
|
+
*/
|
|
1427
|
+
type: 'simplified';
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1321
1430
|
interface Vn {
|
|
1322
1431
|
/**
|
|
1323
1432
|
* Type of registration to be created in `country`.
|
|
@@ -125,7 +125,7 @@ declare module 'stripe' {
|
|
|
125
125
|
|
|
126
126
|
interface TaxId {
|
|
127
127
|
/**
|
|
128
|
-
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `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`, `jp_trn`, `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`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, or `unknown`
|
|
128
|
+
* The type of the tax ID, one of `ad_nrt`, `ar_cuit`, `eu_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `cn_tin`, `co_nit`, `cr_tin`, `do_rcn`, `ec_ruc`, `eu_oss_vat`, `hr_oib`, `pe_ruc`, `ro_tin`, `rs_pib`, `sv_nit`, `uy_ruc`, `ve_rif`, `vn_tin`, `gb_vat`, `nz_gst`, `au_abn`, `au_arn`, `in_gst`, `no_vat`, `no_voec`, `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`, `jp_trn`, `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`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, `bh_vat`, `kz_bin`, `ng_tin`, `om_vat`, `de_stn`, `ch_uid`, `tz_vat`, `uz_vat`, `uz_tin`, `md_vat`, `ma_vat`, `by_tin`, or `unknown`
|
|
129
129
|
*/
|
|
130
130
|
type: TaxId.Type;
|
|
131
131
|
|
|
@@ -147,6 +147,7 @@ declare module 'stripe' {
|
|
|
147
147
|
| 'bo_tin'
|
|
148
148
|
| 'br_cnpj'
|
|
149
149
|
| 'br_cpf'
|
|
150
|
+
| 'by_tin'
|
|
150
151
|
| 'ca_bn'
|
|
151
152
|
| 'ca_gst_hst'
|
|
152
153
|
| 'ca_pst_bc'
|
|
@@ -182,6 +183,8 @@ declare module 'stripe' {
|
|
|
182
183
|
| 'kr_brn'
|
|
183
184
|
| 'kz_bin'
|
|
184
185
|
| 'li_uid'
|
|
186
|
+
| 'ma_vat'
|
|
187
|
+
| 'md_vat'
|
|
185
188
|
| 'mx_rfc'
|
|
186
189
|
| 'my_frp'
|
|
187
190
|
| 'my_itn'
|
|
@@ -205,10 +208,13 @@ declare module 'stripe' {
|
|
|
205
208
|
| 'th_vat'
|
|
206
209
|
| 'tr_tin'
|
|
207
210
|
| 'tw_vat'
|
|
211
|
+
| 'tz_vat'
|
|
208
212
|
| 'ua_vat'
|
|
209
213
|
| 'unknown'
|
|
210
214
|
| 'us_ein'
|
|
211
215
|
| 'uy_ruc'
|
|
216
|
+
| 'uz_tin'
|
|
217
|
+
| 'uz_vat'
|
|
212
218
|
| 've_rif'
|
|
213
219
|
| 'vn_tin'
|
|
214
220
|
| 'za_vat';
|
|
@@ -364,6 +370,7 @@ declare module 'stripe' {
|
|
|
364
370
|
| 'lease_tax'
|
|
365
371
|
| 'pst'
|
|
366
372
|
| 'qst'
|
|
373
|
+
| 'retail_delivery_fee'
|
|
367
374
|
| 'rst'
|
|
368
375
|
| 'sales_tax'
|
|
369
376
|
| 'vat';
|
package/types/TaxIds.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ declare module 'stripe' {
|
|
|
70
70
|
owner: TaxId.Owner | null;
|
|
71
71
|
|
|
72
72
|
/**
|
|
73
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown`
|
|
73
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. Note that some legacy tax IDs have type `unknown`
|
|
74
74
|
*/
|
|
75
75
|
type: TaxId.Type;
|
|
76
76
|
|
|
@@ -123,6 +123,7 @@ declare module 'stripe' {
|
|
|
123
123
|
| 'bo_tin'
|
|
124
124
|
| 'br_cnpj'
|
|
125
125
|
| 'br_cpf'
|
|
126
|
+
| 'by_tin'
|
|
126
127
|
| 'ca_bn'
|
|
127
128
|
| 'ca_gst_hst'
|
|
128
129
|
| 'ca_pst_bc'
|
|
@@ -158,6 +159,8 @@ declare module 'stripe' {
|
|
|
158
159
|
| 'kr_brn'
|
|
159
160
|
| 'kz_bin'
|
|
160
161
|
| 'li_uid'
|
|
162
|
+
| 'ma_vat'
|
|
163
|
+
| 'md_vat'
|
|
161
164
|
| 'mx_rfc'
|
|
162
165
|
| 'my_frp'
|
|
163
166
|
| 'my_itn'
|
|
@@ -181,10 +184,13 @@ declare module 'stripe' {
|
|
|
181
184
|
| 'th_vat'
|
|
182
185
|
| 'tr_tin'
|
|
183
186
|
| 'tw_vat'
|
|
187
|
+
| 'tz_vat'
|
|
184
188
|
| 'ua_vat'
|
|
185
189
|
| 'unknown'
|
|
186
190
|
| 'us_ein'
|
|
187
191
|
| 'uy_ruc'
|
|
192
|
+
| 'uz_tin'
|
|
193
|
+
| 'uz_vat'
|
|
188
194
|
| 've_rif'
|
|
189
195
|
| 'vn_tin'
|
|
190
196
|
| 'za_vat';
|
|
@@ -4,7 +4,7 @@ declare module 'stripe' {
|
|
|
4
4
|
namespace Stripe {
|
|
5
5
|
interface TaxIdCreateParams {
|
|
6
6
|
/**
|
|
7
|
-
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `ve_rif`, `vn_tin`, or `za_vat`
|
|
7
|
+
* Type of the tax ID, one of `ad_nrt`, `ae_trn`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`
|
|
8
8
|
*/
|
|
9
9
|
type: TaxIdCreateParams.Type;
|
|
10
10
|
|
|
@@ -57,6 +57,7 @@ declare module 'stripe' {
|
|
|
57
57
|
| 'bo_tin'
|
|
58
58
|
| 'br_cnpj'
|
|
59
59
|
| 'br_cpf'
|
|
60
|
+
| 'by_tin'
|
|
60
61
|
| 'ca_bn'
|
|
61
62
|
| 'ca_gst_hst'
|
|
62
63
|
| 'ca_pst_bc'
|
|
@@ -92,6 +93,8 @@ declare module 'stripe' {
|
|
|
92
93
|
| 'kr_brn'
|
|
93
94
|
| 'kz_bin'
|
|
94
95
|
| 'li_uid'
|
|
96
|
+
| 'ma_vat'
|
|
97
|
+
| 'md_vat'
|
|
95
98
|
| 'mx_rfc'
|
|
96
99
|
| 'my_frp'
|
|
97
100
|
| 'my_itn'
|
|
@@ -115,9 +118,12 @@ declare module 'stripe' {
|
|
|
115
118
|
| 'th_vat'
|
|
116
119
|
| 'tr_tin'
|
|
117
120
|
| 'tw_vat'
|
|
121
|
+
| 'tz_vat'
|
|
118
122
|
| 'ua_vat'
|
|
119
123
|
| 'us_ein'
|
|
120
124
|
| 'uy_ruc'
|
|
125
|
+
| 'uz_tin'
|
|
126
|
+
| 'uz_vat'
|
|
121
127
|
| 've_rif'
|
|
122
128
|
| 'vn_tin'
|
|
123
129
|
| 'za_vat';
|
package/types/TaxRates.d.ts
CHANGED
|
@@ -50,6 +50,11 @@ declare module 'stripe' {
|
|
|
50
50
|
*/
|
|
51
51
|
effective_percentage: number | null;
|
|
52
52
|
|
|
53
|
+
/**
|
|
54
|
+
* The amount of the tax rate when the `rate_type` is `flat_amount`. Tax rates with `rate_type` `percentage` can vary based on the transaction, resulting in this field being `null`. This field exposes the amount and currency of the flat tax rate.
|
|
55
|
+
*/
|
|
56
|
+
flat_amount?: TaxRate.FlatAmount | null;
|
|
57
|
+
|
|
53
58
|
/**
|
|
54
59
|
* This specifies if the tax rate is inclusive or exclusive.
|
|
55
60
|
*/
|
|
@@ -80,6 +85,11 @@ declare module 'stripe' {
|
|
|
80
85
|
*/
|
|
81
86
|
percentage: number;
|
|
82
87
|
|
|
88
|
+
/**
|
|
89
|
+
* Indicates the type of tax rate applied to the taxable amount. This value can be `null` when no tax applies to the location.
|
|
90
|
+
*/
|
|
91
|
+
rate_type?: TaxRate.RateType | null;
|
|
92
|
+
|
|
83
93
|
/**
|
|
84
94
|
* [ISO 3166-2 subdivision code](https://en.wikipedia.org/wiki/ISO_3166-2:US), without country prefix. For example, "NY" for New York, United States.
|
|
85
95
|
*/
|
|
@@ -92,6 +102,18 @@ declare module 'stripe' {
|
|
|
92
102
|
}
|
|
93
103
|
|
|
94
104
|
namespace TaxRate {
|
|
105
|
+
interface FlatAmount {
|
|
106
|
+
/**
|
|
107
|
+
* Amount of the tax when the `rate_type` is `flat_amount`. This positive integer represents how much to charge in the smallest currency unit (e.g., 100 cents to charge $1.00 or 100 to charge ¥100, a zero-decimal currency). The amount value supports up to eight digits (e.g., a value of 99999999 for a USD charge of $999,999.99).
|
|
108
|
+
*/
|
|
109
|
+
amount: number;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Three-letter ISO currency code, in lowercase.
|
|
113
|
+
*/
|
|
114
|
+
currency: string;
|
|
115
|
+
}
|
|
116
|
+
|
|
95
117
|
type JurisdictionLevel =
|
|
96
118
|
| 'city'
|
|
97
119
|
| 'country'
|
|
@@ -100,6 +122,8 @@ declare module 'stripe' {
|
|
|
100
122
|
| 'multiple'
|
|
101
123
|
| 'state';
|
|
102
124
|
|
|
125
|
+
type RateType = 'flat_amount' | 'percentage';
|
|
126
|
+
|
|
103
127
|
type TaxType =
|
|
104
128
|
| 'amusement_tax'
|
|
105
129
|
| 'communications_tax'
|
|
@@ -110,6 +134,7 @@ declare module 'stripe' {
|
|
|
110
134
|
| 'lease_tax'
|
|
111
135
|
| 'pst'
|
|
112
136
|
| 'qst'
|
|
137
|
+
| 'retail_delivery_fee'
|
|
113
138
|
| 'rst'
|
|
114
139
|
| 'sales_tax'
|
|
115
140
|
| 'vat';
|
|
@@ -70,6 +70,7 @@ declare module 'stripe' {
|
|
|
70
70
|
| 'lease_tax'
|
|
71
71
|
| 'pst'
|
|
72
72
|
| 'qst'
|
|
73
|
+
| 'retail_delivery_fee'
|
|
73
74
|
| 'rst'
|
|
74
75
|
| 'sales_tax'
|
|
75
76
|
| 'vat';
|
|
@@ -140,6 +141,7 @@ declare module 'stripe' {
|
|
|
140
141
|
| 'lease_tax'
|
|
141
142
|
| 'pst'
|
|
142
143
|
| 'qst'
|
|
144
|
+
| 'retail_delivery_fee'
|
|
143
145
|
| 'rst'
|
|
144
146
|
| 'sales_tax'
|
|
145
147
|
| 'vat';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Terminal {
|
|
6
|
+
/**
|
|
7
|
+
* Returns data collected by Terminal readers. This data is only stored for 24 hours.
|
|
8
|
+
*/
|
|
9
|
+
interface ReaderCollectedData {
|
|
10
|
+
/**
|
|
11
|
+
* Unique identifier for the object.
|
|
12
|
+
*/
|
|
13
|
+
id: string;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'terminal.reader_collected_data';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
22
|
+
*/
|
|
23
|
+
created: number;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
27
|
+
*/
|
|
28
|
+
livemode: boolean;
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* The magstripe data collected by the reader.
|
|
32
|
+
*/
|
|
33
|
+
magstripe: ReaderCollectedData.Magstripe | null;
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* The type of data collected by the reader.
|
|
37
|
+
*/
|
|
38
|
+
type: 'magstripe';
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
namespace ReaderCollectedData {
|
|
42
|
+
interface Magstripe {
|
|
43
|
+
/**
|
|
44
|
+
* The raw magstripe data collected by the reader.
|
|
45
|
+
*/
|
|
46
|
+
data: string | null;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
|
|
3
|
+
declare module 'stripe' {
|
|
4
|
+
namespace Stripe {
|
|
5
|
+
namespace Terminal {
|
|
6
|
+
interface ReaderCollectedDataRetrieveParams {
|
|
7
|
+
/**
|
|
8
|
+
* Specifies which fields in the response should be expanded.
|
|
9
|
+
*/
|
|
10
|
+
expand?: Array<string>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
class ReaderCollectedDataResource {
|
|
14
|
+
/**
|
|
15
|
+
* Retrieve data collected using Reader hardware.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(
|
|
18
|
+
id: string,
|
|
19
|
+
params?: ReaderCollectedDataRetrieveParams,
|
|
20
|
+
options?: RequestOptions
|
|
21
|
+
): Promise<Stripe.Response<Stripe.Terminal.ReaderCollectedData>>;
|
|
22
|
+
retrieve(
|
|
23
|
+
id: string,
|
|
24
|
+
options?: RequestOptions
|
|
25
|
+
): Promise<Stripe.Response<Stripe.Terminal.ReaderCollectedData>>;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|