stripe 8.211.0 → 8.214.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 CHANGED
@@ -1,5 +1,58 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 8.214.0 - 2022-03-30
4
+ * [#1386](https://github.com/stripe/stripe-node/pull/1386) API Updates
5
+ * Add support for `cancel_action`, `process_payment_intent`, `process_setup_intent`, and `set_reader_display` methods on resource `Terminal.Reader`
6
+ * Change `Charge.failure_balance_transaction`, `Invoice.payment_settings.payment_method_options.us_bank_account`, `PaymentIntent.next_action.verify_with_microdeposits.microdeposit_type`, `SetupIntent.next_action.verify_with_microdeposits.microdeposit_type`, and `Subscription.payment_settings.payment_method_options.us_bank_account` to be required
7
+ * Add support for `action` on `Terminal.Reader`
8
+
9
+ ## 8.213.0 - 2022-03-28
10
+ * [#1383](https://github.com/stripe/stripe-node/pull/1383) API Updates
11
+ * Add support for Search API
12
+ * Add support for `search` method on resources `Charge`, `Customer`, `Invoice`, `PaymentIntent`, `Price`, `Product`, and `Subscription`
13
+ * [#1384](https://github.com/stripe/stripe-node/pull/1384) Bump qs package to latest.
14
+
15
+ ## 8.212.0 - 2022-03-25
16
+ * [#1381](https://github.com/stripe/stripe-node/pull/1381) API Updates
17
+ * Add support for PayNow and US Bank Accounts Debits payments
18
+ * **Charge** ([API ref](https://stripe.com/docs/api/charges/object#charge_object-payment_method_details))
19
+ * Add support for `paynow` and `us_bank_account` on `Charge.payment_method_details`
20
+ * **Customer** ([API ref](https://stripe.com/docs/api/payment_methods/customer_list#list_customer_payment_methods-type))
21
+ * Add support for new values `paynow` and `us_bank_account` on enum `CustomerListPaymentMethodsParams.type`
22
+ * **Payment Intent** ([API ref](https://stripe.com/docs/api/payment_intents/object#payment_intent_object-payment_method_options))
23
+ * Add support for `paynow` and `us_bank_account` on `payment_method_options` on `PaymentIntent`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams`
24
+ * Add support for `paynow` and `us_bank_account` on `payment_method_data` on `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams`
25
+ * Add support for `paynow_display_qr_code` on `PaymentIntent.next_action`
26
+ * Add support for new values `paynow` and `us_bank_account` on enums `payment_method_data.type` on `PaymentIntentCreateParams`, and `PaymentIntentUpdateParams`, and `PaymentIntentConfirmParams`
27
+ * **Setup Intent** ([API ref](https://stripe.com/docs/api/setup_intents/object#setup_intent_object-payment_method_options))
28
+ * Add support for `us_bank_account` on `payment_method_options` on `SetupIntent`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntentConfirmParams`
29
+ * **Setup Attempt** ([API ref](https://stripe.com/docs/api/setup_attempts/object#setup_attempt_object-payment_method_details))
30
+ * Add support for `us_bank_account` on `SetupAttempt.payment_method_details`
31
+ * **Payment Method** ([API ref](https://stripe.com/docs/api/payment_methods/object#payment_method_object-paynow))
32
+ * Add support for `paynow` and `us_bank_account` on `PaymentMethod` and `PaymentMethodCreateParams`
33
+ * Add support for `us_bank_account` on `PaymentMethodUpdateParams`
34
+ * Add support for new values `paynow` and `us_bank_account` on enums `PaymentMethod.type`, `PaymentMethodCreateParams.type`. and `PaymentMethodListParams.type`
35
+ * **Checkout Session** ([API ref](https://stripe.com/docs/api/checkout/sessions/create#create_checkout_session-payment_method_types))
36
+ * Add support for `us_bank_account` on `payment_method_options` on `Checkout.Session` and `CheckoutSessionCreateParams`
37
+ * Add support for new values `paynow` and `us_bank_account` on enum `CheckoutSessionCreateParams.payment_method_types[]`
38
+ * **Invoice** ([API ref](https://stripe.com/docs/api/invoices/object#invoice_object-payment_settings-payment_method_types))
39
+ * Add support for `us_bank_account` on `payment_settings.payment_method_options` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams`
40
+ * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Invoice`, `InvoiceCreateParams`, and `InvoiceUpdateParams`
41
+ * **Subscription** ([API ref](https://stripe.com/docs/api/subscriptions/object#subscription_object-payment_settings-payment_method_types))
42
+ * 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`
43
+ * Add support for new values `paynow` and `us_bank_account` on enums `payment_settings.payment_method_types[]` on `Subscription`, `SubscriptionCreateParams`, and `SubscriptionUpdateParams`
44
+ * **Account capabilities** ([API ref](https://stripe.com/docs/api/accounts/object#account_object-capabilities))
45
+ * Add support for `paynow_payments` on `capabilities` on `Account`, `AccountCreateParams`, and `AccountUpdateParams`
46
+ * Add support for `failure_balance_transaction` on `Charge`
47
+ * Add support for `capture_method` on `afterpay_clearpay`, `card`, and `klarna` on `payment_method_options` on
48
+ `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))
49
+ * Add additional support for verify microdeposits on Payment Intent and Setup Intent ([API ref](https://stripe.com/docs/api/payment_intents/verify_microdeposits))
50
+ * Add support for `microdeposit_type` on `next_action.verify_with_microdeposits` on `PaymentIntent` and `SetupIntent`
51
+ * Add support for `descriptor_code` on `PaymentIntentVerifyMicrodepositsParams` and `SetupIntentVerifyMicrodepositsParams`
52
+ * Add support for `test_clock` on `SubscriptionListParams` ([API ref](https://stripe.com/docs/api/subscriptions/list#list_subscriptions-test_clock))
53
+ * [#1375](https://github.com/stripe/stripe-node/pull/1375) Update error types to be namespaced under Stripe.error
54
+ * [#1380](https://github.com/stripe/stripe-node/pull/1380) Force update minimist dependency
55
+
3
56
  ## 8.211.0 - 2022-03-23
4
57
  * [#1377](https://github.com/stripe/stripe-node/pull/1377) API Updates
5
58
  * Add support for `cancel` method on resource `Refund`
@@ -15,12 +68,12 @@
15
68
 
16
69
  ## 8.209.0 - 2022-03-11
17
70
  * [#1368](https://github.com/stripe/stripe-node/pull/1368) API Updates
18
- * Add support for `mandate` on `Charge.payment_method_details.card`
19
- * 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`
20
- * Add support for `card_await_notification` on `PaymentIntent.next_action`
21
- * Add support for `customer_notification` on `PaymentIntent.processing.card`
22
- * Change `PaymentLinkCreateParams.line_items` to be required, and change `PaymentLink.create` to require `PaymentLinkCreateParams`
23
-
71
+ * Add support for `mandate` on `Charge.payment_method_details.card`
72
+ * 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`
73
+ * Add support for `card_await_notification` on `PaymentIntent.next_action`
74
+ * Add support for `customer_notification` on `PaymentIntent.processing.card`
75
+ * Change `PaymentLinkCreateParams.line_items` to be required, and change `PaymentLink.create` to require `PaymentLinkCreateParams`
76
+
24
77
  * [#1364](https://github.com/stripe/stripe-node/pull/1364) Update search pagination to use page param instead of next_page.
25
78
 
26
79
  ## 8.208.0 - 2022-03-09
@@ -48,24 +101,24 @@
48
101
  * Change `BillingPortalConfiguration` `.business_profile.privacy_policy_url` and `.business_profile.terms_of_service_url` to be optional on requests and responses
49
102
 
50
103
  * Add support for `konbini_payments` on `AccountUpdateParams.capabilities`, `AccountCreateParams.capabilities`, and `Account.capabilities`
51
- * Add support for `konbini` on `Charge.payment_method_details`,
104
+ * Add support for `konbini` on `Charge.payment_method_details`,
52
105
  * Add support for `.payment_method_options.konbini` and `.payment_method_data.konbini` on the `PaymentIntent` API.
53
106
  * Add support for `.payment_settings.payment_method_options.konbini` on the `Invoice` API.
54
107
  * Add support for `.payment_method_options.konbini` on the `Subscription` API
55
108
  * Add support for `.payment_method_options.konbini` on the `CheckoutSession` API
56
- * Add support for `konbini` on the `PaymentMethod` API.
109
+ * Add support for `konbini` on the `PaymentMethod` API.
57
110
  * Add support for `konbini_display_details` on `PaymentIntent.next_action`
58
111
  * [#1311](https://github.com/stripe/stripe-node/pull/1311) update documentation to use appInfo
59
112
 
60
113
  ## 8.204.0 - 2022-02-23
61
114
  * [#1354](https://github.com/stripe/stripe-node/pull/1354) API Updates
62
115
  * Add support for `setup_future_usage` on `PaymentIntentCreateParams.payment_method_options.*`
63
- * Add support for new values `bbpos_wisepad3` and `stripe_m2` on enums `TerminalReaderListParams.device_type` and `Terminal.Reader.device_type`
64
- * Add support for `object` on `ExternalAccountListParams` (fixes #1351)
116
+ * Add support for new values `bbpos_wisepad3` and `stripe_m2` on enums `TerminalReaderListParams.device_type` and `Terminal.Reader.device_type`
117
+ * Add support for `object` on `ExternalAccountListParams` (fixes #1351)
65
118
 
66
119
  ## 8.203.0 - 2022-02-15
67
120
  * [#1350](https://github.com/stripe/stripe-node/pull/1350) API Updates
68
- * Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent`
121
+ * Add support for `verify_microdeposits` method on resources `PaymentIntent` and `SetupIntent`
69
122
  * 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[]`
70
123
  * [#1348](https://github.com/stripe/stripe-node/pull/1348) API Updates
71
124
  * Add support for `pin` on `IssuingCardUpdateParams`
@@ -82,12 +135,12 @@
82
135
 
83
136
  ## 8.200.0 - 2022-01-25
84
137
  * [#1338](https://github.com/stripe/stripe-node/pull/1338) API Updates
85
- * Change `Checkout.Session.payment_link` to be required
86
- * Add support for `phone_number_collection` on `PaymentLinkCreateParams` and `PaymentLink`
87
- * Add support for new values `payment_link.created` and `payment_link.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
88
- * Add support for new value `is_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type`
89
- * 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`
90
-
138
+ * Change `Checkout.Session.payment_link` to be required
139
+ * Add support for `phone_number_collection` on `PaymentLinkCreateParams` and `PaymentLink`
140
+ * Add support for new values `payment_link.created` and `payment_link.updated` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
141
+ * Add support for new value `is_vat` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, and `TaxId.type`
142
+ * 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`
143
+
91
144
  * [#1333](https://github.com/stripe/stripe-node/pull/1333) Customer tax_ids is not included by default
92
145
 
93
146
  ## 8.199.0 - 2022-01-20
@@ -116,12 +169,12 @@
116
169
 
117
170
  ## 8.195.0 - 2021-12-22
118
171
  * [#1314](https://github.com/stripe/stripe-node/pull/1314) API Updates
119
- * Add support for `au_becs_debit` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
172
+ * Add support for `au_becs_debit` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
120
173
  * 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.
121
174
  * [#1313](https://github.com/stripe/stripe-node/pull/1313) API Updates
122
- * 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`
123
- * Add support for `boleto` on `SetupAttempt.payment_method_details`
124
-
175
+ * 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`
176
+ * Add support for `boleto` on `SetupAttempt.payment_method_details`
177
+
125
178
  * [#1312](https://github.com/stripe/stripe-node/pull/1312) API Updates
126
179
  * Add support for `processing` on `PaymentIntent`
127
180
 
@@ -147,15 +200,15 @@
147
200
  ## 8.191.0 - 2021-11-19
148
201
  * [#1299](https://github.com/stripe/stripe-node/pull/1299) API Updates
149
202
  * Add support for `wallets` on `Issuing.Card`
150
-
203
+
151
204
  * [#1298](https://github.com/stripe/stripe-node/pull/1298) API Updates
152
205
  * Add support for `interac_present` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
153
206
  * Add support for new value `jct` on enums `TaxRateCreateParams.tax_type`, `TaxRateUpdateParams.tax_type`, and `TaxRate.tax_type`
154
207
 
155
208
  ## 8.190.0 - 2021-11-17
156
209
  * [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates
157
- * Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent`
158
-
210
+ * Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent`
211
+
159
212
 
160
213
  ## 8.189.0 - 2021-11-16
161
214
  * [#1295](https://github.com/stripe/stripe-node/pull/1295) API Updates
@@ -176,9 +229,9 @@
176
229
 
177
230
  ## 8.186.1 - 2021-11-04
178
231
  * [#1284](https://github.com/stripe/stripe-node/pull/1284) API Updates
179
- * Remove support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account`. This API was unused.
180
- * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account.company`
181
-
232
+ * Remove support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account`. This API was unused.
233
+ * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account.company`
234
+
182
235
 
183
236
  ## 8.186.0 - 2021-11-01
184
237
  * [#1283](https://github.com/stripe/stripe-node/pull/1283) API Updates
@@ -364,7 +417,7 @@
364
417
  * 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`
365
418
  * `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`
366
419
  * Added support for `boleto_display_details` on `PaymentIntent.next_action`
367
- * `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`.
420
+ * `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`.
368
421
  * [#1157](https://github.com/stripe/stripe-node/pull/1157) Add support for streaming requests
369
422
 
370
423
  ## 8.156.0 - 2021-06-18
@@ -377,7 +430,7 @@
377
430
 
378
431
  ## 8.154.0 - 2021-06-07
379
432
  * [#1170](https://github.com/stripe/stripe-node/pull/1170) API Updates
380
- * Added support for `tax_id_collection` on Checkout `Session.tax_id_collection` and `SessionCreateParams`
433
+ * Added support for `tax_id_collection` on Checkout `Session.tax_id_collection` and `SessionCreateParams`
381
434
  * Update `Terminal.Reader.location` to be expandable (TypeScript breaking change)
382
435
 
383
436
  ## 8.153.0 - 2021-06-04
@@ -416,7 +469,7 @@
416
469
  * Update Typescript for `CouponCreateParams.duration` and `CouponCreateParams.products` to be optional.
417
470
  * [#1158](https://github.com/stripe/stripe-node/pull/1158) API Updates
418
471
  * `AccountUpdateParams.business_profile.support_url` and `AccountCreatParams.business_profile.support_url` changed from `string` to `Stripe.Emptyable<string>`
419
- * `File.purpose` added new enum members: `finance_report_run`, `document_provider_identity_document`, and `sigma_scheduled_query`
472
+ * `File.purpose` added new enum members: `finance_report_run`, `document_provider_identity_document`, and `sigma_scheduled_query`
420
473
 
421
474
  ## 8.148.0 - 2021-05-06
422
475
  * [#1154](https://github.com/stripe/stripe-node/pull/1154) API Updates
@@ -433,7 +486,7 @@
433
486
 
434
487
  ## 8.145.0 - 2021-04-21
435
488
  * [#1143](https://github.com/stripe/stripe-node/pull/1143) API Updates
436
- * Add support for `single_member_llc` as an enum member of `Account.company.structure` and `TokenCreateParams.account.company.structure` added new enum members:
489
+ * Add support for `single_member_llc` as an enum member of `Account.company.structure` and `TokenCreateParams.account.company.structure` added new enum members:
437
490
  * Add support for `dhl` and `royal_mail` as enum members of `Issuing.Card.shipping.carrier`.
438
491
  * [#1142](https://github.com/stripe/stripe-node/pull/1142) Improve type definition for for `AccountCreateParams.external_account`
439
492
 
@@ -615,7 +668,7 @@
615
668
  * [#1035](https://github.com/stripe/stripe-node/pull/1035) Add support for `setup_intent.requires_action` on Event
616
669
 
617
670
  ## 8.109.0 - 2020-10-09
618
- * [#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`
671
+ * [#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`
619
672
 
620
673
  ## 8.108.0 - 2020-10-08
621
674
  * [#1028](https://github.com/stripe/stripe-node/pull/1028) Add support for `Bancontact/iDEAL/Sofort -> SEPA`
package/VERSION CHANGED
@@ -1 +1 @@
1
- 8.211.0
1
+ 8.214.0
@@ -33,4 +33,10 @@ module.exports = StripeResource.extend({
33
33
  method: 'POST',
34
34
  path: '/{charge}/capture',
35
35
  }),
36
+
37
+ search: stripeMethod({
38
+ method: 'GET',
39
+ path: '/search',
40
+ methodType: 'search',
41
+ }),
36
42
  });
@@ -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',
@@ -54,6 +54,12 @@ module.exports = StripeResource.extend({
54
54
  path: '/upcoming',
55
55
  }),
56
56
 
57
+ search: stripeMethod({
58
+ method: 'GET',
59
+ path: '/search',
60
+ methodType: 'search',
61
+ }),
62
+
57
63
  sendInvoice: stripeMethod({
58
64
  method: 'POST',
59
65
  path: '/{invoice}/send',
@@ -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',
@@ -28,4 +28,10 @@ module.exports = StripeResource.extend({
28
28
  path: '',
29
29
  methodType: 'list',
30
30
  }),
31
+
32
+ search: stripeMethod({
33
+ method: 'GET',
34
+ path: '/search',
35
+ methodType: 'search',
36
+ }),
31
37
  });
@@ -33,4 +33,10 @@ module.exports = StripeResource.extend({
33
33
  method: 'DELETE',
34
34
  path: '/{id}',
35
35
  }),
36
+
37
+ search: stripeMethod({
38
+ method: 'GET',
39
+ path: '/search',
40
+ methodType: 'search',
41
+ }),
36
42
  });
@@ -38,4 +38,10 @@ module.exports = StripeResource.extend({
38
38
  method: 'DELETE',
39
39
  path: '/{subscriptionExposedId}/discount',
40
40
  }),
41
+
42
+ search: stripeMethod({
43
+ method: 'GET',
44
+ path: '/search',
45
+ methodType: 'search',
46
+ }),
41
47
  });
@@ -33,4 +33,24 @@ module.exports = StripeResource.extend({
33
33
  method: 'DELETE',
34
34
  path: '/{reader}',
35
35
  }),
36
+
37
+ cancelAction: stripeMethod({
38
+ method: 'POST',
39
+ path: '/{reader}/cancel_action',
40
+ }),
41
+
42
+ processPaymentIntent: stripeMethod({
43
+ method: 'POST',
44
+ path: '/{reader}/process_payment_intent',
45
+ }),
46
+
47
+ processSetupIntent: stripeMethod({
48
+ method: 'POST',
49
+ path: '/{reader}/process_setup_intent',
50
+ }),
51
+
52
+ setReaderDisplay: stripeMethod({
53
+ method: 'POST',
54
+ path: '/{reader}/set_reader_display',
55
+ }),
36
56
  });
@@ -0,0 +1,15 @@
1
+ // File generated from our OpenAPI spec
2
+
3
+ 'use strict';
4
+
5
+ const StripeResource = require('../../../StripeResource');
6
+ const stripeMethod = StripeResource.method;
7
+
8
+ module.exports = StripeResource.extend({
9
+ path: 'test_helpers/terminal/readers',
10
+
11
+ presentPaymentMethod: stripeMethod({
12
+ method: 'POST',
13
+ path: '/{reader}/present_payment_method',
14
+ }),
15
+ });
package/lib/resources.js CHANGED
@@ -93,5 +93,8 @@ module.exports = {
93
93
  }),
94
94
  TestHelpers: resourceNamespace('testHelpers', {
95
95
  TestClocks: require('./resources/TestHelpers/TestClocks'),
96
+ Terminal: resourceNamespace('terminal', {
97
+ Readers: require('./resources/TestHelpers/Terminal/Readers'),
98
+ }),
96
99
  }),
97
100
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "8.211.0",
3
+ "version": "8.214.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.6.0"
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 object was created. Measured in seconds since the Unix epoch.
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 {