stripe 8.210.0 → 8.213.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 +88 -32
- package/VERSION +1 -1
- package/lib/resources/Charges.js +6 -0
- package/lib/resources/Customers.js +6 -0
- package/lib/resources/Invoices.js +6 -0
- package/lib/resources/PaymentIntents.js +6 -0
- package/lib/resources/Prices.js +6 -0
- package/lib/resources/Products.js +6 -0
- package/lib/resources/Refunds.js +5 -0
- package/lib/resources/Subscriptions.js +6 -0
- package/package.json +3 -2
- package/types/2020-08-27/Accounts.d.ts +63 -1
- package/types/2020-08-27/Charges.d.ts +84 -0
- package/types/2020-08-27/Checkout/Sessions.d.ts +35 -1
- package/types/2020-08-27/Customers.d.ts +36 -1
- package/types/2020-08-27/InvoiceLineItems.d.ts +4 -1
- package/types/2020-08-27/Invoices.d.ts +105 -8
- package/types/2020-08-27/Mandates.d.ts +4 -0
- package/types/2020-08-27/PaymentIntents.d.ts +463 -0
- package/types/2020-08-27/PaymentMethods.d.ts +106 -0
- package/types/2020-08-27/Prices.d.ts +30 -0
- package/types/2020-08-27/Products.d.ts +30 -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 +93 -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/lib.d.ts +6 -0
- package/types/test/typescriptTest.ts +27 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,73 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## 8.213.0 - 2022-03-28
|
|
4
|
+
* [#1383](https://github.com/stripe/stripe-node/pull/1383) API Updates
|
|
5
|
+
* Add support for Search API
|
|
6
|
+
* Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription`
|
|
7
|
+
* [#1384](https://github.com/stripe/stripe-node/pull/1384) Bump qs package to latest.
|
|
8
|
+
|
|
9
|
+
## 8.212.0 - 2022-03-25
|
|
10
|
+
* [#1381](https://github.com/stripe/stripe-node/pull/1381) API Updates
|
|
11
|
+
* Add support for PayNow and US Bank Accounts Debits payments
|
|
12
|
+
* **Charge** ([API ref](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details))
|
|
13
|
+
* Add support for `paynow` and `us_bank_account` on `Charge.payment_method_details`
|
|
14
|
+
* **Customer** ([API ref](https://stripe.com/docs/api/payment_methods/customer_list#list_customer_payment_methods-type))
|
|
15
|
+
* Add support for new values `paynow` and `us_bank_account` on enum `CustomerListPaymentMethodsParams.type`
|
|
16
|
+
* **Payment Intent** ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options))
|
|
17
|
+
* Add support for `paynow` and `us_bank_account` on `payment_method_options` on `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams`
|
|
18
|
+
* Add support for `paynow` and `us_bank_account` on `payment_method_data` on `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams`
|
|
19
|
+
* Add support for `paynow_display_qr_code` on `PaymentIntent.next_action`
|
|
20
|
+
* Add support for new values `paynow` and `us_bank_account` on enums `payment_method_data.type` on `PaymentIntentCreateParams`, and `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams`
|
|
21
|
+
* **Setup Intent** ([API ref](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method_options))
|
|
22
|
+
* Add support for `us_bank_account` on `payment_method_options` on `SetupIntent`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntentConfirmParams`
|
|
23
|
+
* **Setup Attempt** ([API ref](https://stripe.com/docs/api/setup_attempts/object#setup_attempt_object-payment_method_details))
|
|
24
|
+
* Add support for `us_bank_account` on `SetupAttempt.payment_method_details`
|
|
25
|
+
* **Payment Method** ([API ref](https://stripe.com/docs/api/payment_methods/object#payment_method_object-paynow))
|
|
26
|
+
* Add support for `paynow` and `us_bank_account` on `PaymentMethod` and `PaymentMethodCreateParams`
|
|
27
|
+
* Add support for `us_bank_account` on `PaymentMethodUpdateParams`
|
|
28
|
+
* Add support for new values `paynow` and `us_bank_account` on enums `PaymentMethod.type`, `PaymentMethodCreateParams.type`. and `PaymentMethodListParams.type`
|
|
29
|
+
* **Checkout Session** ([API ref](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types))
|
|
30
|
+
* Add support for `us_bank_account` on `payment_method_options` on `Checkout.Session` and `CheckoutSessionCreateParams`
|
|
31
|
+
* Add support for new values `paynow` and `us_bank_account` on enum `CheckoutSessionCreateParams.payment_method_types[]`
|
|
32
|
+
* **Invoice** ([API ref](https://stripe.com/docs/api/invoices/object#invoice_object-payment_settings-payment_method_types))
|
|
33
|
+
* Add support for `us_bank_account` on `payment_settings.payment_method_options` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams`
|
|
34
|
+
* Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams`
|
|
35
|
+
* **Subscription** ([API ref](https://stripe.com/docs/api/subscriptions/object#subscription_object-payment_settings-payment_method_types))
|
|
36
|
+
* 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`
|
|
37
|
+
* Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Subscription`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams`
|
|
38
|
+
* **Account capabilities** ([API ref](https://stripe.com/docs/api/accounts/object#account_object-capabilities))
|
|
39
|
+
* Add support for `paynow_payments` on `capabilities` on `Account`, `AccountCreateParams`, and `AccountUpdateParams`
|
|
40
|
+
* Add support for `failure_balance_transaction` on `Charge`
|
|
41
|
+
* Add support for `capture_method` on `afterpay_clearpay`, `card`, and `klarna` on `payment_method_options` on
|
|
42
|
+
`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))
|
|
43
|
+
* Add additional support for verify microdeposits on Payment Intent and Setup Intent ([API ref](https://stripe.com/docs/api/payment_intents/verify_microdeposits))
|
|
44
|
+
* Add support for `microdeposit_type` on `next_action.verify_with_microdeposits` on `PaymentIntent` and `SetupIntent`
|
|
45
|
+
* Add support for `descriptor_code` on `PaymentIntentVerifyMicrodepositsParams` and `SetupIntentVerifyMicrodepositsParams`
|
|
46
|
+
* Add support for `test_clock` on `SubscriptionListParams` ([API ref](https://stripe.com/docs/api/subscriptions/list#list_subscriptions-test_clock))
|
|
47
|
+
* [#1375](https://github.com/stripe/stripe-node/pull/1375) Update error types to be namespaced under Stripe.error
|
|
48
|
+
* [#1380](https://github.com/stripe/stripe-node/pull/1380) Force update minimist dependency
|
|
49
|
+
|
|
50
|
+
## 8.211.0 - 2022-03-23
|
|
51
|
+
* [#1377](https://github.com/stripe/stripe-node/pull/1377) API Updates
|
|
52
|
+
* Add support for `cancel` method on resource `Refund`
|
|
53
|
+
* 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`
|
|
54
|
+
* 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`
|
|
55
|
+
* Change `InvoiceCreateParams.customer` to be optional
|
|
56
|
+
* Add support for `test_clock` on `QuoteListParams`
|
|
57
|
+
* 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[]`
|
|
58
|
+
|
|
3
59
|
## 8.210.0 - 2022-03-18
|
|
4
60
|
* [#1372](https://github.com/stripe/stripe-node/pull/1372) API Updates
|
|
5
61
|
* Add support for `status` on `Card`
|
|
6
62
|
|
|
7
63
|
## 8.209.0 - 2022-03-11
|
|
8
64
|
* [#1368](https://github.com/stripe/stripe-node/pull/1368) API Updates
|
|
9
|
-
* Add support for `mandate` on `Charge.payment_method_details.card`
|
|
10
|
-
* Add support for `mandate_options` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, and `SetupIntent.payment_method_options.card`
|
|
11
|
-
* Add support for `card_await_notification` on `PaymentIntent.next_action`
|
|
12
|
-
* Add support for `customer_notification` on `PaymentIntent.processing.card`
|
|
13
|
-
* Change `PaymentLinkCreateParams.line_items` to be required, and change `PaymentLink.create` to require `PaymentLinkCreateParams`
|
|
14
|
-
|
|
65
|
+
* Add support for `mandate` on `Charge.payment_method_details.card`
|
|
66
|
+
* Add support for `mandate_options` on `PaymentIntentCreateParams.payment_method_options.card`, `PaymentIntentUpdateParams.payment_method_options.card`, `PaymentIntentConfirmParams.payment_method_options.card`, `PaymentIntent.payment_method_options.card`, `SetupIntentCreateParams.payment_method_options.card`, `SetupIntentUpdateParams.payment_method_options.card`, `SetupIntentConfirmParams.payment_method_options.card`, and `SetupIntent.payment_method_options.card`
|
|
67
|
+
* Add support for `card_await_notification` on `PaymentIntent.next_action`
|
|
68
|
+
* Add support for `customer_notification` on `PaymentIntent.processing.card`
|
|
69
|
+
* Change `PaymentLinkCreateParams.line_items` to be required, and change `PaymentLink.create` to require `PaymentLinkCreateParams`
|
|
70
|
+
|
|
15
71
|
* [#1364](https://github.com/stripe/stripe-node/pull/1364) Update search pagination to use page param instead of next_page.
|
|
16
72
|
|
|
17
73
|
## 8.208.0 - 2022-03-09
|
|
@@ -39,24 +95,24 @@
|
|
|
39
95
|
* Change `BillingPortalConfiguration` `.business_profile.privacy_policy_url` and `.business_profile.terms_of_service_url` to be optional on requests and responses
|
|
40
96
|
|
|
41
97
|
* Add support for `konbini_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities`
|
|
42
|
-
* Add support for `konbini` on `Charge.payment_method_details`,
|
|
98
|
+
* Add support for `konbini` on `Charge.payment_method_details`,
|
|
43
99
|
* Add support for `.payment_method_options.konbini` and `.payment_method_data.konbini` on the `PaymentIntent` API.
|
|
44
100
|
* Add support for `.payment_settings.payment_method_options.konbini` on the `Invoice` API.
|
|
45
101
|
* Add support for `.payment_method_options.konbini` on the `Subscription` API
|
|
46
102
|
* Add support for `.payment_method_options.konbini` on the `CheckoutSession` API
|
|
47
|
-
* Add support for `konbini` on the `PaymentMethod` API.
|
|
103
|
+
* Add support for `konbini` on the `PaymentMethod` API.
|
|
48
104
|
* Add support for `konbini_display_details` on `PaymentIntent.next_action`
|
|
49
105
|
* [#1311](https://github.com/stripe/stripe-node/pull/1311) update documentation to use appInfo
|
|
50
106
|
|
|
51
107
|
## 8.204.0 - 2022-02-23
|
|
52
108
|
* [#1354](https://github.com/stripe/stripe-node/pull/1354) API Updates
|
|
53
109
|
* Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.*`
|
|
54
|
-
* Add support for new values `bbpos_wisepad3` and `stripe_m2` on enums `TerminalReaderListParams.device_type` and `Terminal.Reader.device_type`
|
|
55
|
-
* Add support for `object` on `ExternalAccountListParams` (fixes #1351)
|
|
110
|
+
* Add support for new values `bbpos_wisepad3` and `stripe_m2` on enums `TerminalReaderListParams.device_type` and `Terminal.Reader.device_type`
|
|
111
|
+
* Add support for `object` on `ExternalAccountListParams` (fixes #1351)
|
|
56
112
|
|
|
57
113
|
## 8.203.0 - 2022-02-15
|
|
58
114
|
* [#1350](https://github.com/stripe/stripe-node/pull/1350) API Updates
|
|
59
|
-
* Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent`
|
|
115
|
+
* Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent`
|
|
60
116
|
* Add support for new value `grabpay` on enums `InvoiceCreateParams.payment_settings.payment_method_types[]`, `InvoiceUpdateParams.payment_settings.payment_method_types[]`, `Invoice.payment_settings.payment_method_types[]`, `SubscriptionCreateParams.payment_settings.payment_method_types[]`, `SubscriptionUpdateParams.payment_settings.payment_method_types[]`, and `Subscription.payment_settings.payment_method_types[]`
|
|
61
117
|
* [#1348](https://github.com/stripe/stripe-node/pull/1348) API Updates
|
|
62
118
|
* Add support for `pin` on `IssuingCardUpdateParams`
|
|
@@ -73,12 +129,12 @@
|
|
|
73
129
|
|
|
74
130
|
## 8.200.0 - 2022-01-25
|
|
75
131
|
* [#1338](https://github.com/stripe/stripe-node/pull/1338) API Updates
|
|
76
|
-
* Change `Checkout.Session.payment_link` to be required
|
|
77
|
-
* Add support for `phone_number_collection` on `PaymentLinkCreateParams` and `PaymentLink`
|
|
78
|
-
* Add support for new values `payment_link.created` and `payment_link.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
79
|
-
* Add support for new value `is_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type`
|
|
80
|
-
* Add support for new value `is_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
|
|
81
|
-
|
|
132
|
+
* Change `Checkout.Session.payment_link` to be required
|
|
133
|
+
* Add support for `phone_number_collection` on `PaymentLinkCreateParams` and `PaymentLink`
|
|
134
|
+
* Add support for new values `payment_link.created` and `payment_link.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
|
|
135
|
+
* Add support for new value `is_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type`
|
|
136
|
+
* Add support for new value `is_vat` on enums `CustomerCreateParams.tax_id_data[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingLinesParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
|
|
137
|
+
|
|
82
138
|
* [#1333](https://github.com/stripe/stripe-node/pull/1333) Customer tax_ids is not included by default
|
|
83
139
|
|
|
84
140
|
## 8.199.0 - 2022-01-20
|
|
@@ -107,12 +163,12 @@
|
|
|
107
163
|
|
|
108
164
|
## 8.195.0 - 2021-12-22
|
|
109
165
|
* [#1314](https://github.com/stripe/stripe-node/pull/1314) API Updates
|
|
110
|
-
* Add support for `au_becs_debit` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
|
|
166
|
+
* Add support for `au_becs_debit` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
|
|
111
167
|
* Change type of `PaymentIntent.processing.type` from `string` to `literal('card')`. This is not considered a breaking change as the field was added in the same release.
|
|
112
168
|
* [#1313](https://github.com/stripe/stripe-node/pull/1313) API Updates
|
|
113
|
-
* Add support for new values `en-FR`, `es-US`, and `fr-FR` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`
|
|
114
|
-
* Add support for `boleto` on `SetupAttempt.payment_method_details`
|
|
115
|
-
|
|
169
|
+
* Add support for new values `en-FR`, `es-US`, and `fr-FR` on enums `PaymentIntentCreateParams.payment_method_options.klarna.preferred_locale`, `PaymentIntentUpdateParams.payment_method_options.klarna.preferred_locale`, and `PaymentIntentConfirmParams.payment_method_options.klarna.preferred_locale`
|
|
170
|
+
* Add support for `boleto` on `SetupAttempt.payment_method_details`
|
|
171
|
+
|
|
116
172
|
* [#1312](https://github.com/stripe/stripe-node/pull/1312) API Updates
|
|
117
173
|
* Add support for `processing` on `PaymentIntent`
|
|
118
174
|
|
|
@@ -138,15 +194,15 @@
|
|
|
138
194
|
## 8.191.0 - 2021-11-19
|
|
139
195
|
* [#1299](https://github.com/stripe/stripe-node/pull/1299) API Updates
|
|
140
196
|
* Add support for `wallets` on `Issuing.Card`
|
|
141
|
-
|
|
197
|
+
|
|
142
198
|
* [#1298](https://github.com/stripe/stripe-node/pull/1298) API Updates
|
|
143
199
|
* Add support for `interac_present` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
|
|
144
200
|
* Add support for new value `jct` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type`
|
|
145
201
|
|
|
146
202
|
## 8.190.0 - 2021-11-17
|
|
147
203
|
* [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates
|
|
148
|
-
* Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent`
|
|
149
|
-
|
|
204
|
+
* Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent`
|
|
205
|
+
|
|
150
206
|
|
|
151
207
|
## 8.189.0 - 2021-11-16
|
|
152
208
|
* [#1295](https://github.com/stripe/stripe-node/pull/1295) API Updates
|
|
@@ -167,9 +223,9 @@
|
|
|
167
223
|
|
|
168
224
|
## 8.186.1 - 2021-11-04
|
|
169
225
|
* [#1284](https://github.com/stripe/stripe-node/pull/1284) API Updates
|
|
170
|
-
* Remove support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account`. This API was unused.
|
|
171
|
-
* Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account.company`
|
|
172
|
-
|
|
226
|
+
* Remove support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account`. This API was unused.
|
|
227
|
+
* Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account.company`
|
|
228
|
+
|
|
173
229
|
|
|
174
230
|
## 8.186.0 - 2021-11-01
|
|
175
231
|
* [#1283](https://github.com/stripe/stripe-node/pull/1283) API Updates
|
|
@@ -355,7 +411,7 @@
|
|
|
355
411
|
* Added support for `boleto` on `PaymentMethodCreateParams`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `Charge.payment_method_details` and `PaymentMethod`
|
|
356
412
|
* `PaymentMethodListParams.type`, `PaymentMethodCreateParams.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `PaymentIntentCreataParams.payment_method_data.type` and `PaymentMethod.type` added new enum members: `boleto`
|
|
357
413
|
* Added support for `boleto_display_details` on `PaymentIntent.next_action`
|
|
358
|
-
* `TaxIdCreateParams.type`, `Invoice.customer_tax_ids[].type`, `InvoiceLineItemListUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `CustomerCreateParams.tax_id_data[].type`, `Checkout.Session.customer_details.tax_ids[].type` and `TaxId.type` added new enum members: `il_vat`.
|
|
414
|
+
* `TaxIdCreateParams.type`, `Invoice.customer_tax_ids[].type`, `InvoiceLineItemListUpcomingParams.customer_details.tax_ids[].type`, `InvoiceUpcomingParams.customer_details.tax_ids[].type`, `CustomerCreateParams.tax_id_data[].type`, `Checkout.Session.customer_details.tax_ids[].type` and `TaxId.type` added new enum members: `il_vat`.
|
|
359
415
|
* [#1157](https://github.com/stripe/stripe-node/pull/1157) Add support for streaming requests
|
|
360
416
|
|
|
361
417
|
## 8.156.0 - 2021-06-18
|
|
@@ -368,7 +424,7 @@
|
|
|
368
424
|
|
|
369
425
|
## 8.154.0 - 2021-06-07
|
|
370
426
|
* [#1170](https://github.com/stripe/stripe-node/pull/1170) API Updates
|
|
371
|
-
* Added support for `tax_id_collection` on Checkout `Session.tax_id_collection` and `SessionCreateParams`
|
|
427
|
+
* Added support for `tax_id_collection` on Checkout `Session.tax_id_collection` and `SessionCreateParams`
|
|
372
428
|
* Update `Terminal.Reader.location` to be expandable (TypeScript breaking change)
|
|
373
429
|
|
|
374
430
|
## 8.153.0 - 2021-06-04
|
|
@@ -407,7 +463,7 @@
|
|
|
407
463
|
* Update Typescript for `CouponCreateParams.duration` and `CouponCreateParams.products` to be optional.
|
|
408
464
|
* [#1158](https://github.com/stripe/stripe-node/pull/1158) API Updates
|
|
409
465
|
* `AccountUpdateParams.business_profile.support_url` and `AccountCreatParams.business_profile.support_url` changed from `string` to `Stripe.Emptyable<string>`
|
|
410
|
-
* `File.purpose` added new enum members: `finance_report_run`, `document_provider_identity_document`, and `sigma_scheduled_query`
|
|
466
|
+
* `File.purpose` added new enum members: `finance_report_run`, `document_provider_identity_document`, and `sigma_scheduled_query`
|
|
411
467
|
|
|
412
468
|
## 8.148.0 - 2021-05-06
|
|
413
469
|
* [#1154](https://github.com/stripe/stripe-node/pull/1154) API Updates
|
|
@@ -424,7 +480,7 @@
|
|
|
424
480
|
|
|
425
481
|
## 8.145.0 - 2021-04-21
|
|
426
482
|
* [#1143](https://github.com/stripe/stripe-node/pull/1143) API Updates
|
|
427
|
-
* Add support for `single_member_llc` as an enum member of `Account.company.structure` and `TokenCreateParams.account.company.structure` added new enum members:
|
|
483
|
+
* Add support for `single_member_llc` as an enum member of `Account.company.structure` and `TokenCreateParams.account.company.structure` added new enum members:
|
|
428
484
|
* Add support for `dhl` and `royal_mail` as enum members of `Issuing.Card.shipping.carrier`.
|
|
429
485
|
* [#1142](https://github.com/stripe/stripe-node/pull/1142) Improve type definition for for `AccountCreateParams.external_account`
|
|
430
486
|
|
|
@@ -606,7 +662,7 @@
|
|
|
606
662
|
* [#1035](https://github.com/stripe/stripe-node/pull/1035) Add support for `setup_intent.requires_action` on Event
|
|
607
663
|
|
|
608
664
|
## 8.109.0 - 2020-10-09
|
|
609
|
-
* [#1033](https://github.com/stripe/stripe-node/pull/1033) Add support for internal-only `description`, `iin`, and `issuer` for `card_present` and `interac_present` on `Charge.payment_method_details`
|
|
665
|
+
* [#1033](https://github.com/stripe/stripe-node/pull/1033) Add support for internal-only `description`, `iin`, and `issuer` for `card_present` and `interac_present` on `Charge.payment_method_details`
|
|
610
666
|
|
|
611
667
|
## 8.108.0 - 2020-10-08
|
|
612
668
|
* [#1028](https://github.com/stripe/stripe-node/pull/1028) Add support for `Bancontact/iDEAL/Sofort -> SEPA`
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
8.
|
|
1
|
+
8.213.0
|
package/lib/resources/Charges.js
CHANGED
|
@@ -45,6 +45,12 @@ module.exports = StripeResource.extend({
|
|
|
45
45
|
methodType: 'list',
|
|
46
46
|
}),
|
|
47
47
|
|
|
48
|
+
search: stripeMethod({
|
|
49
|
+
method: 'GET',
|
|
50
|
+
path: '/search',
|
|
51
|
+
methodType: 'search',
|
|
52
|
+
}),
|
|
53
|
+
|
|
48
54
|
createBalanceTransaction: stripeMethod({
|
|
49
55
|
method: 'POST',
|
|
50
56
|
path: '/{customer}/balance_transactions',
|
|
@@ -44,6 +44,12 @@ module.exports = StripeResource.extend({
|
|
|
44
44
|
path: '/{intent}/confirm',
|
|
45
45
|
}),
|
|
46
46
|
|
|
47
|
+
search: stripeMethod({
|
|
48
|
+
method: 'GET',
|
|
49
|
+
path: '/search',
|
|
50
|
+
methodType: 'search',
|
|
51
|
+
}),
|
|
52
|
+
|
|
47
53
|
verifyMicrodeposits: stripeMethod({
|
|
48
54
|
method: 'POST',
|
|
49
55
|
path: '/{intent}/verify_microdeposits',
|
package/lib/resources/Prices.js
CHANGED
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.213.0",
|
|
4
4
|
"description": "Stripe API wrapper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stripe",
|
|
@@ -45,11 +45,12 @@
|
|
|
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": {
|
|
51
52
|
"@types/node": ">=8.1.0",
|
|
52
|
-
"qs": "^6.
|
|
53
|
+
"qs": "^6.10.3"
|
|
53
54
|
},
|
|
54
55
|
"license": "MIT",
|
|
55
56
|
"scripts": {
|
|
@@ -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 {
|
|
@@ -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 {
|
|
@@ -2003,6 +2057,28 @@ declare module 'stripe' {
|
|
|
2003
2057
|
}
|
|
2004
2058
|
}
|
|
2005
2059
|
|
|
2060
|
+
interface ChargeSearchParams {
|
|
2061
|
+
/**
|
|
2062
|
+
* The search query string. See [search query language](https://stripe.com/docs/search#search-query-language) and the list of supported [query fields for charges](https://stripe.com/docs/search#query-fields-for-charges).
|
|
2063
|
+
*/
|
|
2064
|
+
query: string;
|
|
2065
|
+
|
|
2066
|
+
/**
|
|
2067
|
+
* Specifies which fields in the response should be expanded.
|
|
2068
|
+
*/
|
|
2069
|
+
expand?: Array<string>;
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
|
|
2073
|
+
*/
|
|
2074
|
+
limit?: number;
|
|
2075
|
+
|
|
2076
|
+
/**
|
|
2077
|
+
* A cursor for pagination across multiple pages of results. Do not include this parameter on the first call. Use the next_page value returned in a response to request subsequent results.
|
|
2078
|
+
*/
|
|
2079
|
+
page?: string;
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2006
2082
|
class ChargesResource {
|
|
2007
2083
|
/**
|
|
2008
2084
|
* To charge a credit card or other payment source, you create a Charge object. If your API key is in test mode, the supplied payment source (e.g., card) won't actually be charged, although everything else will occur as if in live mode. (Stripe assumes that the charge would have completed successfully).
|
|
@@ -2058,6 +2134,14 @@ declare module 'stripe' {
|
|
|
2058
2134
|
id: string,
|
|
2059
2135
|
options?: RequestOptions
|
|
2060
2136
|
): Promise<Stripe.Response<Stripe.Charge>>;
|
|
2137
|
+
|
|
2138
|
+
/**
|
|
2139
|
+
* Search for charges you've previously created using Stripe's [Search Query Language](https://stripe.com/docs/search#search-query-language)
|
|
2140
|
+
*/
|
|
2141
|
+
search(
|
|
2142
|
+
params: ChargeSearchParams,
|
|
2143
|
+
options?: RequestOptions
|
|
2144
|
+
): ApiSearchResultPromise<Stripe.Charge>;
|
|
2061
2145
|
}
|
|
2062
2146
|
}
|
|
2063
2147
|
}
|