stripe 8.209.0 → 8.212.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 +54 -0
- package/VERSION +1 -1
- package/lib/resources/Refunds.js +5 -0
- package/package.json +2 -1
- package/types/2020-08-27/Accounts.d.ts +63 -1
- package/types/2020-08-27/Cards.d.ts +5 -0
- package/types/2020-08-27/Charges.d.ts +54 -0
- package/types/2020-08-27/Checkout/Sessions.d.ts +35 -1
- package/types/2020-08-27/Customers.d.ts +6 -1
- package/types/2020-08-27/InvoiceLineItems.d.ts +4 -1
- package/types/2020-08-27/Invoices.d.ts +75 -8
- package/types/2020-08-27/Mandates.d.ts +4 -0
- package/types/2020-08-27/PaymentIntents.d.ts +436 -1
- package/types/2020-08-27/PaymentMethods.d.ts +106 -0
- package/types/2020-08-27/Quotes.d.ts +5 -0
- package/types/2020-08-27/Refunds.d.ts +22 -0
- package/types/2020-08-27/SetupAttempts.d.ts +4 -0
- package/types/2020-08-27/SetupIntents.d.ts +75 -0
- package/types/2020-08-27/Subscriptions.d.ts +63 -0
- package/types/2020-08-27/TaxIds.d.ts +8 -2
- package/types/2020-08-27/WebhookEndpoints.d.ts +10 -0
- package/types/2020-08-27/index.d.ts +1 -2
- package/types/Errors.d.ts +245 -0
- package/types/test/typescriptTest.ts +27 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,59 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 8.212.0 - 2022-03-25
|
|
4
|
+
* [#1381](https://github.com/stripe/stripe-node/pull/1381) API Updates
|
|
5
|
+
* Add support for PayNow and US Bank Accounts Debits payments
|
|
6
|
+
* **Charge** ([API ref](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details))
|
|
7
|
+
* Add support for `paynow` and `us_bank_account` on `Charge.payment_method_details`
|
|
8
|
+
* **Customer** ([API ref](https://stripe.com/docs/api/payment_methods/customer_list#list_customer_payment_methods-type))
|
|
9
|
+
* Add support for new values `paynow` and `us_bank_account` on enum `CustomerListPaymentMethodsParams.type`
|
|
10
|
+
* **Payment Intent** ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options))
|
|
11
|
+
* Add support for `paynow` and `us_bank_account` on `payment_method_options` on `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams`
|
|
12
|
+
* Add support for `paynow` and `us_bank_account` on `payment_method_data` on `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams`
|
|
13
|
+
* Add support for `paynow_display_qr_code` on `PaymentIntent.next_action`
|
|
14
|
+
* Add support for new values `paynow` and `us_bank_account` on enums `payment_method_data.type` on `PaymentIntentCreateParams`, and `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams`
|
|
15
|
+
* **Setup Intent** ([API ref](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method_options))
|
|
16
|
+
* Add support for `us_bank_account` on `payment_method_options` on `SetupIntent`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntentConfirmParams`
|
|
17
|
+
* **Setup Attempt** ([API ref](https://stripe.com/docs/api/setup_attempts/object#setup_attempt_object-payment_method_details))
|
|
18
|
+
* Add support for `us_bank_account` on `SetupAttempt.payment_method_details`
|
|
19
|
+
* **Payment Method** ([API ref](https://stripe.com/docs/api/payment_methods/object#payment_method_object-paynow))
|
|
20
|
+
* Add support for `paynow` and `us_bank_account` on `PaymentMethod` and `PaymentMethodCreateParams`
|
|
21
|
+
* Add support for `us_bank_account` on `PaymentMethodUpdateParams`
|
|
22
|
+
* Add support for new values `paynow` and `us_bank_account` on enums `PaymentMethod.type`, `PaymentMethodCreateParams.type`. and `PaymentMethodListParams.type`
|
|
23
|
+
* **Checkout Session** ([API ref](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types))
|
|
24
|
+
* Add support for `us_bank_account` on `payment_method_options` on `Checkout.Session` and `CheckoutSessionCreateParams`
|
|
25
|
+
* Add support for new values `paynow` and `us_bank_account` on enum `CheckoutSessionCreateParams.payment_method_types[]`
|
|
26
|
+
* **Invoice** ([API ref](https://stripe.com/docs/api/invoices/object#invoice_object-payment_settings-payment_method_types))
|
|
27
|
+
* Add support for `us_bank_account` on `payment_settings.payment_method_options` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams`
|
|
28
|
+
* Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams`
|
|
29
|
+
* **Subscription** ([API ref](https://stripe.com/docs/api/subscriptions/object#subscription_object-payment_settings-payment_method_types))
|
|
30
|
+
* Add support for `us_bank_account` on `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options`
|
|
31
|
+
* Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Subscription`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams`
|
|
32
|
+
* **Account capabilities** ([API ref](https://stripe.com/docs/api/accounts/object#account_object-capabilities))
|
|
33
|
+
* Add support for `paynow_payments` on `capabilities` on `Account`, `AccountCreateParams`, and `AccountUpdateParams`
|
|
34
|
+
* Add support for `failure_balance_transaction` on `Charge`
|
|
35
|
+
* Add support for `capture_method` on `afterpay_clearpay`, `card`, and `klarna` on `payment_method_options` on
|
|
36
|
+
`PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams` ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options-afterpay_clearpay-capture_method))
|
|
37
|
+
* Add additional support for verify microdeposits on Payment Intent and Setup Intent ([API ref](https://stripe.com/docs/api/payment_intents/verify_microdeposits))
|
|
38
|
+
* Add support for `microdeposit_type` on `next_action.verify_with_microdeposits` on `PaymentIntent` and `SetupIntent`
|
|
39
|
+
* Add support for `descriptor_code` on `PaymentIntentVerifyMicrodepositsParams` and `SetupIntentVerifyMicrodepositsParams`
|
|
40
|
+
* Add support for `test_clock` on `SubscriptionListParams` ([API ref](https://stripe.com/docs/api/subscriptions/list#list_subscriptions-test_clock))
|
|
41
|
+
* [#1375](https://github.com/stripe/stripe-node/pull/1375) Update error types to be namespaced under Stripe.error
|
|
42
|
+
* [#1380](https://github.com/stripe/stripe-node/pull/1380) Force update minimist dependency
|
|
43
|
+
|
|
44
|
+
## 8.211.0 - 2022-03-23
|
|
45
|
+
* [#1377](https://github.com/stripe/stripe-node/pull/1377) API Updates
|
|
46
|
+
* Add support for `cancel` method on resource `Refund`
|
|
47
|
+
* Add support for new values `bg_uic`, `hu_tin`, and `si_tin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type`
|
|
48
|
+
* Add support for new values `bg_uic`, `hu_tin`, and `si_tin` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
|
|
49
|
+
* Change `InvoiceCreateParams.customer` to be optional
|
|
50
|
+
* Add support for `test_clock` on `QuoteListParams`
|
|
51
|
+
* Add support for new values `test_helpers.test_clock.advancing`, `test_helpers.test_clock.created`, `test_helpers.test_clock.deleted`, `test_helpers.test_clock.internal_failure`, and `test_helpers.test_clock.ready` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
52
|
+
|
|
53
|
+
## 8.210.0 - 2022-03-18
|
|
54
|
+
* [#1372](https://github.com/stripe/stripe-node/pull/1372) API Updates
|
|
55
|
+
* Add support for `status` on `Card`
|
|
56
|
+
|
|
3
57
|
## 8.209.0 - 2022-03-11
|
|
4
58
|
* [#1368](https://github.com/stripe/stripe-node/pull/1368) API Updates
|
|
5
59
|
* Add support for `mandate` on `Charge.payment_method_details.card`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.
|
|
1
|
+
8.212.0
|
package/lib/resources/Refunds.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stripe",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.212.0",
|
|
4
4
|
"description": "Stripe API wrapper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stripe",
|
|
@@ -45,6 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"resolutions": {
|
|
47
47
|
"ansi-regex": "5.0.1",
|
|
48
|
+
"minimist": "1.2.6",
|
|
48
49
|
"nanoid": "3.2.0"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
@@ -43,7 +43,7 @@ declare module 'stripe' {
|
|
|
43
43
|
country: string;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Time at which the
|
|
46
|
+
* Time at which the account was connected. Measured in seconds since the Unix epoch.
|
|
47
47
|
*/
|
|
48
48
|
created?: number;
|
|
49
49
|
|
|
@@ -256,6 +256,11 @@ declare module 'stripe' {
|
|
|
256
256
|
*/
|
|
257
257
|
p24_payments?: Capabilities.P24Payments;
|
|
258
258
|
|
|
259
|
+
/**
|
|
260
|
+
* The status of the paynow payments capability of the account, or whether the account can directly process paynow charges.
|
|
261
|
+
*/
|
|
262
|
+
paynow_payments?: Capabilities.PaynowPayments;
|
|
263
|
+
|
|
259
264
|
/**
|
|
260
265
|
* The status of the SEPA Direct Debits payments capability of the account, or whether the account can directly process SEPA Direct Debits charges.
|
|
261
266
|
*/
|
|
@@ -280,6 +285,11 @@ declare module 'stripe' {
|
|
|
280
285
|
* The status of the transfers capability of the account, or whether your platform can transfer funds to the account.
|
|
281
286
|
*/
|
|
282
287
|
transfers?: Capabilities.Transfers;
|
|
288
|
+
|
|
289
|
+
/**
|
|
290
|
+
* The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
|
|
291
|
+
*/
|
|
292
|
+
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
|
|
283
293
|
}
|
|
284
294
|
|
|
285
295
|
namespace Capabilities {
|
|
@@ -323,6 +333,8 @@ declare module 'stripe' {
|
|
|
323
333
|
|
|
324
334
|
type P24Payments = 'active' | 'inactive' | 'pending';
|
|
325
335
|
|
|
336
|
+
type PaynowPayments = 'active' | 'inactive' | 'pending';
|
|
337
|
+
|
|
326
338
|
type SepaDebitPayments = 'active' | 'inactive' | 'pending';
|
|
327
339
|
|
|
328
340
|
type SofortPayments = 'active' | 'inactive' | 'pending';
|
|
@@ -332,6 +344,8 @@ declare module 'stripe' {
|
|
|
332
344
|
type TaxReportingUs1099Misc = 'active' | 'inactive' | 'pending';
|
|
333
345
|
|
|
334
346
|
type Transfers = 'active' | 'inactive' | 'pending';
|
|
347
|
+
|
|
348
|
+
type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';
|
|
335
349
|
}
|
|
336
350
|
|
|
337
351
|
interface Company {
|
|
@@ -1270,6 +1284,11 @@ declare module 'stripe' {
|
|
|
1270
1284
|
*/
|
|
1271
1285
|
p24_payments?: Capabilities.P24Payments;
|
|
1272
1286
|
|
|
1287
|
+
/**
|
|
1288
|
+
* The paynow_payments capability.
|
|
1289
|
+
*/
|
|
1290
|
+
paynow_payments?: Capabilities.PaynowPayments;
|
|
1291
|
+
|
|
1273
1292
|
/**
|
|
1274
1293
|
* The sepa_debit_payments capability.
|
|
1275
1294
|
*/
|
|
@@ -1294,6 +1313,11 @@ declare module 'stripe' {
|
|
|
1294
1313
|
* The transfers capability.
|
|
1295
1314
|
*/
|
|
1296
1315
|
transfers?: Capabilities.Transfers;
|
|
1316
|
+
|
|
1317
|
+
/**
|
|
1318
|
+
* The us_bank_account_ach_payments capability.
|
|
1319
|
+
*/
|
|
1320
|
+
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
|
|
1297
1321
|
}
|
|
1298
1322
|
|
|
1299
1323
|
namespace Capabilities {
|
|
@@ -1437,6 +1461,13 @@ declare module 'stripe' {
|
|
|
1437
1461
|
requested?: boolean;
|
|
1438
1462
|
}
|
|
1439
1463
|
|
|
1464
|
+
interface PaynowPayments {
|
|
1465
|
+
/**
|
|
1466
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
1467
|
+
*/
|
|
1468
|
+
requested?: boolean;
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1440
1471
|
interface SepaDebitPayments {
|
|
1441
1472
|
/**
|
|
1442
1473
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -1471,6 +1502,13 @@ declare module 'stripe' {
|
|
|
1471
1502
|
*/
|
|
1472
1503
|
requested?: boolean;
|
|
1473
1504
|
}
|
|
1505
|
+
|
|
1506
|
+
interface UsBankAccountAchPayments {
|
|
1507
|
+
/**
|
|
1508
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
1509
|
+
*/
|
|
1510
|
+
requested?: boolean;
|
|
1511
|
+
}
|
|
1474
1512
|
}
|
|
1475
1513
|
|
|
1476
1514
|
interface Company {
|
|
@@ -2352,6 +2390,11 @@ declare module 'stripe' {
|
|
|
2352
2390
|
*/
|
|
2353
2391
|
p24_payments?: Capabilities.P24Payments;
|
|
2354
2392
|
|
|
2393
|
+
/**
|
|
2394
|
+
* The paynow_payments capability.
|
|
2395
|
+
*/
|
|
2396
|
+
paynow_payments?: Capabilities.PaynowPayments;
|
|
2397
|
+
|
|
2355
2398
|
/**
|
|
2356
2399
|
* The sepa_debit_payments capability.
|
|
2357
2400
|
*/
|
|
@@ -2376,6 +2419,11 @@ declare module 'stripe' {
|
|
|
2376
2419
|
* The transfers capability.
|
|
2377
2420
|
*/
|
|
2378
2421
|
transfers?: Capabilities.Transfers;
|
|
2422
|
+
|
|
2423
|
+
/**
|
|
2424
|
+
* The us_bank_account_ach_payments capability.
|
|
2425
|
+
*/
|
|
2426
|
+
us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
|
|
2379
2427
|
}
|
|
2380
2428
|
|
|
2381
2429
|
namespace Capabilities {
|
|
@@ -2519,6 +2567,13 @@ declare module 'stripe' {
|
|
|
2519
2567
|
requested?: boolean;
|
|
2520
2568
|
}
|
|
2521
2569
|
|
|
2570
|
+
interface PaynowPayments {
|
|
2571
|
+
/**
|
|
2572
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
2573
|
+
*/
|
|
2574
|
+
requested?: boolean;
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2522
2577
|
interface SepaDebitPayments {
|
|
2523
2578
|
/**
|
|
2524
2579
|
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
@@ -2553,6 +2608,13 @@ declare module 'stripe' {
|
|
|
2553
2608
|
*/
|
|
2554
2609
|
requested?: boolean;
|
|
2555
2610
|
}
|
|
2611
|
+
|
|
2612
|
+
interface UsBankAccountAchPayments {
|
|
2613
|
+
/**
|
|
2614
|
+
* Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
|
|
2615
|
+
*/
|
|
2616
|
+
requested?: boolean;
|
|
2617
|
+
}
|
|
2556
2618
|
}
|
|
2557
2619
|
|
|
2558
2620
|
interface Company {
|
|
@@ -160,6 +160,11 @@ declare module 'stripe' {
|
|
|
160
160
|
*/
|
|
161
161
|
recipient?: string | Stripe.Recipient | null;
|
|
162
162
|
|
|
163
|
+
/**
|
|
164
|
+
* For external accounts, possible values are `new` and `errored`. If a transfer fails, the status is set to `errored` and transfers are stopped until account details are updated.
|
|
165
|
+
*/
|
|
166
|
+
status?: string | null;
|
|
167
|
+
|
|
163
168
|
/**
|
|
164
169
|
* If the card number is tokenized, this is the method that was used. Can be `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null.
|
|
165
170
|
*/
|
|
@@ -105,6 +105,11 @@ declare module 'stripe' {
|
|
|
105
105
|
*/
|
|
106
106
|
disputed: boolean;
|
|
107
107
|
|
|
108
|
+
/**
|
|
109
|
+
* ID of the balance transaction that describes the reversal of the balance on your account due to payment failure.
|
|
110
|
+
*/
|
|
111
|
+
failure_balance_transaction?: string | Stripe.BalanceTransaction | null;
|
|
112
|
+
|
|
108
113
|
/**
|
|
109
114
|
* Error code explaining reason for charge failure if available (see [the errors section](https://stripe.com/docs/api#errors) for a list of codes).
|
|
110
115
|
*/
|
|
@@ -426,6 +431,8 @@ declare module 'stripe' {
|
|
|
426
431
|
|
|
427
432
|
p24?: PaymentMethodDetails.P24;
|
|
428
433
|
|
|
434
|
+
paynow?: PaymentMethodDetails.Paynow;
|
|
435
|
+
|
|
429
436
|
sepa_credit_transfer?: PaymentMethodDetails.SepaCreditTransfer;
|
|
430
437
|
|
|
431
438
|
sepa_debit?: PaymentMethodDetails.SepaDebit;
|
|
@@ -441,6 +448,8 @@ declare module 'stripe' {
|
|
|
441
448
|
*/
|
|
442
449
|
type: string;
|
|
443
450
|
|
|
451
|
+
us_bank_account?: PaymentMethodDetails.UsBankAccount;
|
|
452
|
+
|
|
444
453
|
wechat?: PaymentMethodDetails.Wechat;
|
|
445
454
|
|
|
446
455
|
wechat_pay?: PaymentMethodDetails.WechatPay;
|
|
@@ -1518,6 +1527,13 @@ declare module 'stripe' {
|
|
|
1518
1527
|
| 'volkswagen_bank';
|
|
1519
1528
|
}
|
|
1520
1529
|
|
|
1530
|
+
interface Paynow {
|
|
1531
|
+
/**
|
|
1532
|
+
* Reference number associated with this PayNow payment
|
|
1533
|
+
*/
|
|
1534
|
+
reference: string | null;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1521
1537
|
interface SepaCreditTransfer {
|
|
1522
1538
|
/**
|
|
1523
1539
|
* Name of the bank associated with the bank account.
|
|
@@ -1629,6 +1645,44 @@ declare module 'stripe' {
|
|
|
1629
1645
|
|
|
1630
1646
|
interface StripeAccount {}
|
|
1631
1647
|
|
|
1648
|
+
interface UsBankAccount {
|
|
1649
|
+
/**
|
|
1650
|
+
* Account holder type: individual or company.
|
|
1651
|
+
*/
|
|
1652
|
+
account_holder_type: UsBankAccount.AccountHolderType | null;
|
|
1653
|
+
|
|
1654
|
+
/**
|
|
1655
|
+
* Account type: checkings or savings. Defaults to checking if omitted.
|
|
1656
|
+
*/
|
|
1657
|
+
account_type: UsBankAccount.AccountType | null;
|
|
1658
|
+
|
|
1659
|
+
/**
|
|
1660
|
+
* Name of the bank associated with the bank account.
|
|
1661
|
+
*/
|
|
1662
|
+
bank_name: string | null;
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
* Uniquely identifies this particular bank account. You can use this attribute to check whether two bank accounts are the same.
|
|
1666
|
+
*/
|
|
1667
|
+
fingerprint: string | null;
|
|
1668
|
+
|
|
1669
|
+
/**
|
|
1670
|
+
* Last four digits of the bank account number.
|
|
1671
|
+
*/
|
|
1672
|
+
last4: string | null;
|
|
1673
|
+
|
|
1674
|
+
/**
|
|
1675
|
+
* Routing number of the bank account.
|
|
1676
|
+
*/
|
|
1677
|
+
routing_number: string | null;
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
namespace UsBankAccount {
|
|
1681
|
+
type AccountHolderType = 'company' | 'individual';
|
|
1682
|
+
|
|
1683
|
+
type AccountType = 'checking' | 'savings';
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1632
1686
|
interface Wechat {}
|
|
1633
1687
|
|
|
1634
1688
|
interface WechatPay {
|
|
@@ -329,7 +329,7 @@ declare module 'stripe' {
|
|
|
329
329
|
|
|
330
330
|
interface TaxId {
|
|
331
331
|
/**
|
|
332
|
-
* 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`, `is_vat`, or `unknown`
|
|
332
|
+
* 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`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, or `unknown`
|
|
333
333
|
*/
|
|
334
334
|
type: TaxId.Type;
|
|
335
335
|
|
|
@@ -344,6 +344,7 @@ declare module 'stripe' {
|
|
|
344
344
|
| 'ae_trn'
|
|
345
345
|
| 'au_abn'
|
|
346
346
|
| 'au_arn'
|
|
347
|
+
| 'bg_uic'
|
|
347
348
|
| 'br_cnpj'
|
|
348
349
|
| 'br_cpf'
|
|
349
350
|
| 'ca_bn'
|
|
@@ -359,6 +360,7 @@ declare module 'stripe' {
|
|
|
359
360
|
| 'gb_vat'
|
|
360
361
|
| 'ge_vat'
|
|
361
362
|
| 'hk_br'
|
|
363
|
+
| 'hu_tin'
|
|
362
364
|
| 'id_npwp'
|
|
363
365
|
| 'il_vat'
|
|
364
366
|
| 'in_gst'
|
|
@@ -378,6 +380,7 @@ declare module 'stripe' {
|
|
|
378
380
|
| 'sa_vat'
|
|
379
381
|
| 'sg_gst'
|
|
380
382
|
| 'sg_uen'
|
|
383
|
+
| 'si_tin'
|
|
381
384
|
| 'th_vat'
|
|
382
385
|
| 'tw_vat'
|
|
383
386
|
| 'ua_vat'
|
|
@@ -440,6 +443,8 @@ declare module 'stripe' {
|
|
|
440
443
|
konbini?: PaymentMethodOptions.Konbini;
|
|
441
444
|
|
|
442
445
|
oxxo?: PaymentMethodOptions.Oxxo;
|
|
446
|
+
|
|
447
|
+
us_bank_account?: PaymentMethodOptions.UsBankAccount;
|
|
443
448
|
}
|
|
444
449
|
|
|
445
450
|
namespace PaymentMethodOptions {
|
|
@@ -513,6 +518,17 @@ declare module 'stripe' {
|
|
|
513
518
|
*/
|
|
514
519
|
expires_after_days: number;
|
|
515
520
|
}
|
|
521
|
+
|
|
522
|
+
interface UsBankAccount {
|
|
523
|
+
/**
|
|
524
|
+
* Bank account verification method.
|
|
525
|
+
*/
|
|
526
|
+
verification_method?: UsBankAccount.VerificationMethod;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
namespace UsBankAccount {
|
|
530
|
+
type VerificationMethod = 'automatic' | 'instant';
|
|
531
|
+
}
|
|
516
532
|
}
|
|
517
533
|
|
|
518
534
|
type PaymentStatus = 'no_payment_required' | 'paid' | 'unpaid';
|
|
@@ -1525,6 +1541,11 @@ declare module 'stripe' {
|
|
|
1525
1541
|
*/
|
|
1526
1542
|
oxxo?: PaymentMethodOptions.Oxxo;
|
|
1527
1543
|
|
|
1544
|
+
/**
|
|
1545
|
+
* contains details about the Us Bank Account payment method options.
|
|
1546
|
+
*/
|
|
1547
|
+
us_bank_account?: PaymentMethodOptions.UsBankAccount;
|
|
1548
|
+
|
|
1528
1549
|
/**
|
|
1529
1550
|
* contains details about the WeChat Pay payment method options.
|
|
1530
1551
|
*/
|
|
@@ -1613,6 +1634,17 @@ declare module 'stripe' {
|
|
|
1613
1634
|
expires_after_days?: number;
|
|
1614
1635
|
}
|
|
1615
1636
|
|
|
1637
|
+
interface UsBankAccount {
|
|
1638
|
+
/**
|
|
1639
|
+
* Verification method for the intent
|
|
1640
|
+
*/
|
|
1641
|
+
verification_method?: UsBankAccount.VerificationMethod;
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
namespace UsBankAccount {
|
|
1645
|
+
type VerificationMethod = 'automatic' | 'instant';
|
|
1646
|
+
}
|
|
1647
|
+
|
|
1616
1648
|
interface WechatPay {
|
|
1617
1649
|
/**
|
|
1618
1650
|
* The app ID registered with WeChat Pay. Only required when client is ios or android.
|
|
@@ -1648,8 +1680,10 @@ declare module 'stripe' {
|
|
|
1648
1680
|
| 'konbini'
|
|
1649
1681
|
| 'oxxo'
|
|
1650
1682
|
| 'p24'
|
|
1683
|
+
| 'paynow'
|
|
1651
1684
|
| 'sepa_debit'
|
|
1652
1685
|
| 'sofort'
|
|
1686
|
+
| 'us_bank_account'
|
|
1653
1687
|
| 'wechat_pay';
|
|
1654
1688
|
|
|
1655
1689
|
interface PhoneNumberCollection {
|
|
@@ -430,7 +430,7 @@ declare module 'stripe' {
|
|
|
430
430
|
|
|
431
431
|
interface TaxIdDatum {
|
|
432
432
|
/**
|
|
433
|
-
* 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`, `is_vat`, `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`
|
|
433
|
+
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `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`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `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`, `si_tin`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`
|
|
434
434
|
*/
|
|
435
435
|
type: TaxIdDatum.Type;
|
|
436
436
|
|
|
@@ -445,6 +445,7 @@ declare module 'stripe' {
|
|
|
445
445
|
| 'ae_trn'
|
|
446
446
|
| 'au_abn'
|
|
447
447
|
| 'au_arn'
|
|
448
|
+
| 'bg_uic'
|
|
448
449
|
| 'br_cnpj'
|
|
449
450
|
| 'br_cpf'
|
|
450
451
|
| 'ca_bn'
|
|
@@ -460,6 +461,7 @@ declare module 'stripe' {
|
|
|
460
461
|
| 'gb_vat'
|
|
461
462
|
| 'ge_vat'
|
|
462
463
|
| 'hk_br'
|
|
464
|
+
| 'hu_tin'
|
|
463
465
|
| 'id_npwp'
|
|
464
466
|
| 'il_vat'
|
|
465
467
|
| 'in_gst'
|
|
@@ -479,6 +481,7 @@ declare module 'stripe' {
|
|
|
479
481
|
| 'sa_vat'
|
|
480
482
|
| 'sg_gst'
|
|
481
483
|
| 'sg_uen'
|
|
484
|
+
| 'si_tin'
|
|
482
485
|
| 'th_vat'
|
|
483
486
|
| 'tw_vat'
|
|
484
487
|
| 'ua_vat'
|
|
@@ -714,8 +717,10 @@ declare module 'stripe' {
|
|
|
714
717
|
| 'konbini'
|
|
715
718
|
| 'oxxo'
|
|
716
719
|
| 'p24'
|
|
720
|
+
| 'paynow'
|
|
717
721
|
| 'sepa_debit'
|
|
718
722
|
| 'sofort'
|
|
723
|
+
| 'us_bank_account'
|
|
719
724
|
| 'wechat_pay';
|
|
720
725
|
}
|
|
721
726
|
|
|
@@ -373,7 +373,7 @@ declare module 'stripe' {
|
|
|
373
373
|
|
|
374
374
|
interface TaxId {
|
|
375
375
|
/**
|
|
376
|
-
* 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`, `is_vat`, `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`
|
|
376
|
+
* Type of the tax ID, one of `ae_trn`, `au_abn`, `au_arn`, `bg_uic`, `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`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `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`, `si_tin`, `th_vat`, `tw_vat`, `ua_vat`, `us_ein`, or `za_vat`
|
|
377
377
|
*/
|
|
378
378
|
type: TaxId.Type;
|
|
379
379
|
|
|
@@ -388,6 +388,7 @@ declare module 'stripe' {
|
|
|
388
388
|
| 'ae_trn'
|
|
389
389
|
| 'au_abn'
|
|
390
390
|
| 'au_arn'
|
|
391
|
+
| 'bg_uic'
|
|
391
392
|
| 'br_cnpj'
|
|
392
393
|
| 'br_cpf'
|
|
393
394
|
| 'ca_bn'
|
|
@@ -403,6 +404,7 @@ declare module 'stripe' {
|
|
|
403
404
|
| 'gb_vat'
|
|
404
405
|
| 'ge_vat'
|
|
405
406
|
| 'hk_br'
|
|
407
|
+
| 'hu_tin'
|
|
406
408
|
| 'id_npwp'
|
|
407
409
|
| 'il_vat'
|
|
408
410
|
| 'in_gst'
|
|
@@ -422,6 +424,7 @@ declare module 'stripe' {
|
|
|
422
424
|
| 'sa_vat'
|
|
423
425
|
| 'sg_gst'
|
|
424
426
|
| 'sg_uen'
|
|
427
|
+
| 'si_tin'
|
|
425
428
|
| 'th_vat'
|
|
426
429
|
| 'tw_vat'
|
|
427
430
|
| 'ua_vat'
|