stripe 10.16.0-beta.2 → 10.16.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.
Files changed (50) hide show
  1. package/CHANGELOG.md +47 -84
  2. package/VERSION +1 -1
  3. package/lib/resources/SubscriptionSchedules.js +0 -4
  4. package/lib/resources/Terminal/Readers.js +0 -4
  5. package/lib/resources.js +0 -11
  6. package/lib/stripe.js +1 -2
  7. package/package.json +1 -1
  8. package/types/2022-08-01/Accounts.d.ts +0 -62
  9. package/types/2022-08-01/Charges.d.ts +0 -48
  10. package/types/2022-08-01/Checkout/Sessions.d.ts +1 -14
  11. package/types/2022-08-01/Customers.d.ts +2 -8
  12. package/types/2022-08-01/Discounts.d.ts +0 -10
  13. package/types/2022-08-01/Invoices.d.ts +3 -70
  14. package/types/2022-08-01/Issuing/Transactions.d.ts +0 -12
  15. package/types/2022-08-01/Orders.d.ts +3 -170
  16. package/types/2022-08-01/PaymentIntents.d.ts +3 -417
  17. package/types/2022-08-01/PaymentLinks.d.ts +0 -3
  18. package/types/2022-08-01/PaymentMethods.d.ts +3 -59
  19. package/types/2022-08-01/Prices.d.ts +0 -44
  20. package/types/2022-08-01/Products.d.ts +0 -75
  21. package/types/2022-08-01/Quotes.d.ts +0 -563
  22. package/types/2022-08-01/SetupIntents.d.ts +3 -110
  23. package/types/2022-08-01/Sources.d.ts +0 -23
  24. package/types/2022-08-01/SubscriptionItems.d.ts +0 -82
  25. package/types/2022-08-01/SubscriptionSchedules.d.ts +0 -826
  26. package/types/2022-08-01/Subscriptions.d.ts +0 -179
  27. package/types/2022-08-01/TaxIds.d.ts +2 -8
  28. package/types/2022-08-01/Terminal/Readers.d.ts +0 -92
  29. package/types/2022-08-01/TestHelpers/Terminal/Readers.d.ts +1 -15
  30. package/types/2022-08-01/TestHelpers/Treasury/ReceivedCredits.d.ts +0 -26
  31. package/types/2022-08-01/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -26
  32. package/types/2022-08-01/Treasury/OutboundTransfers.d.ts +0 -52
  33. package/types/2022-08-01/Treasury/ReceivedCredits.d.ts +0 -26
  34. package/types/2022-08-01/Treasury/ReceivedDebits.d.ts +0 -31
  35. package/types/2022-08-01/WebhookEndpoints.d.ts +0 -2
  36. package/types/2022-08-01/index.d.ts +0 -18
  37. package/lib/resources/AccountSessions.js +0 -11
  38. package/lib/resources/Capital/FinancingOffers.js +0 -20
  39. package/lib/resources/Capital/FinancingSummary.js +0 -11
  40. package/lib/resources/Capital/FinancingTransactions.js +0 -16
  41. package/lib/resources/GiftCards/Cards.js +0 -28
  42. package/lib/resources/GiftCards/Transactions.js +0 -32
  43. package/lib/resources/QuotePhases.js +0 -21
  44. package/types/2022-08-01/AccountSessions.d.ts +0 -67
  45. package/types/2022-08-01/Capital/FinancingOffers.d.ts +0 -271
  46. package/types/2022-08-01/Capital/FinancingSummary.d.ts +0 -121
  47. package/types/2022-08-01/Capital/FinancingTransactions.d.ts +0 -175
  48. package/types/2022-08-01/GiftCards/Cards.d.ts +0 -270
  49. package/types/2022-08-01/GiftCards/Transactions.d.ts +0 -323
  50. package/types/2022-08-01/QuotePhases.d.ts +0 -226
package/CHANGELOG.md CHANGED
@@ -1,20 +1,9 @@
1
1
  # Changelog
2
2
 
3
- ## 10.16.0-beta.2 - 2022-11-02
4
- * [#1598](https://github.com/stripe/stripe-node/pull/1598) API Updates for beta branch
5
- * Updated beta APIs to the latest stable version
6
- * Add support for `cashappPayments` and `zipPayments` on `Account`.
7
- * Add support for `cashapp` and `zip` on `Charge`, `PaymentMethod`.
8
- * Add support for `trialSettings` on `SubscriptionSchedule`.
9
-
10
- ## 10.16.0-beta.1 - 2022-10-21
11
- * [#1589](https://github.com/stripe/stripe-node/pull/1589) API Updates for beta branch
12
- * Updated stable APIs to the latest version
13
- * Add support for new value `revoked` on enum `CapitalFinancingOfferListParams.status`
14
- * Add support for `paypal` on `Charge.payment_method_details` and `Source`
15
- * Add support for `network_data` on `Issuing.Transaction`
16
- * Add support for new value `paypal` on enum `Source.type`
17
- * Add support for `billing_cycle_anchor` on `SubscriptionScheduleAmendParams.amendments[]`
3
+ ## 10.16.0 - 2022-11-03
4
+ * [#1596](https://github.com/stripe/stripe-node/pull/1596) API Updates
5
+ * Add support for `on_behalf_of` on `CheckoutSessionCreateParams.subscription_data`, `SubscriptionCreateParams`, `SubscriptionSchedule.default_settings`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.default_settings`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.default_settings`, `SubscriptionScheduleUpdateParams.phases[]`, `SubscriptionUpdateParams`, and `Subscription`
6
+ * Add support for `tax_behavior` and `tax_code` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceUpcomingLinesParams.invoice_items[]`, and `InvoiceUpcomingParams.invoice_items[]`
18
7
 
19
8
  ## 10.15.0 - 2022-10-20
20
9
  * [#1588](https://github.com/stripe/stripe-node/pull/1588) API Updates
@@ -23,11 +12,6 @@
23
12
  * Add support for `tipping` on `Terminal.Reader.action.process_payment_intent.process_config` and `TerminalReaderProcessPaymentIntentParams.process_config`
24
13
  * [#1585](https://github.com/stripe/stripe-node/pull/1585) use native UUID method if available
25
14
 
26
- ## 10.15.0-beta.1 - 2022-10-14
27
- * Add support for `schedule_settings` on `SubscriptionScheduleAmendParams`
28
- * Add support for new value `upcoming_invoice` on enum `SubscriptionScheduleAmendParams.amendments[].amendment_end.type`
29
- * Add support for new values `schedule_end` and `upcoming_invoice` on enum `SubscriptionScheduleAmendParams.amendments[].amendment_start.type`
30
-
31
15
  ## 10.14.0 - 2022-10-13
32
16
  * [#1582](https://github.com/stripe/stripe-node/pull/1582) API Updates
33
17
  * Add support for new values `invalid_representative_country` and `verification_failed_residential_address` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code`
@@ -35,11 +19,6 @@
35
19
  * Add support for `network_data` on `Issuing.Authorization`
36
20
  * ⚠️ Remove `currency`, `description`, `images`, and `name` from `Checkout.SessionCreateParams`. These properties do not work on the latest API version. (fixes #1575)
37
21
 
38
- ## 10.14.0-beta.1 - 2022-10-07
39
- * [#1572](https://github.com/stripe/stripe-node/pull/1572) API Updates for beta branch
40
- * Updated stable APIs to the latest version
41
- * Add `reference_id` to `Paypal` interface.
42
-
43
22
  ## 10.13.0 - 2022-10-06
44
23
  * [#1571](https://github.com/stripe/stripe-node/pull/1571) API Updates
45
24
  * Add support for new value `invalid_dob_age_under_18` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code`
@@ -60,11 +39,6 @@
60
39
  * [#1562](https://github.com/stripe/stripe-node/pull/1562) Restore lib after generating
61
40
  * [#1551](https://github.com/stripe/stripe-node/pull/1551) Re-introduce Typescript changes
62
41
 
63
- ## 10.12.0-beta.1 - 2022-09-26
64
- * [#1561](https://github.com/stripe/stripe-node/pull/1561) API Updates for beta branch
65
- * Updated stable APIs to the latest version
66
- * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
67
-
68
42
  ## 10.11.0 - 2022-09-22
69
43
  * [#1560](https://github.com/stripe/stripe-node/pull/1560) API Updates
70
44
  * Add support for `terms_of_service` on `Checkout.Session.consent_collection`, `Checkout.Session.consent`, `CheckoutSessionCreateParams.consent_collection`, `PaymentLink.consent_collection`, and `PaymentLinkCreateParams.consent_collection`
@@ -72,6 +46,7 @@
72
46
  * Add support for `statement_descriptor` on `PaymentIntentIncrementAuthorizationParams`
73
47
  * Change `SubscriptionSchedule.phases[].currency` to be required
74
48
 
49
+
75
50
  ## 10.10.0 - 2022-09-15
76
51
  * [#1552](https://github.com/stripe/stripe-node/pull/1552) API Updates
77
52
  * Add support for `pix` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `CheckoutSessionCreateParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodCreateParams`, `PaymentMethod`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
@@ -114,11 +89,6 @@
114
89
  * [#1532](https://github.com/stripe/stripe-node/pull/1532) Update coveralls step to run for one node version, remove finish step
115
90
  * [#1531](https://github.com/stripe/stripe-node/pull/1531) Regen yarn.lock.
116
91
 
117
- ## 10.6.0-beta.1 - 2022-08-26
118
- * [#1529](https://github.com/stripe/stripe-node/pull/1529) API Updates for beta branch
119
- * Updated stable APIs to the latest version
120
- * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
121
-
122
92
  ## 10.5.0 - 2022-08-24
123
93
  * [#1527](https://github.com/stripe/stripe-node/pull/1527) fix: Update FetchHttpClient to send empty string for empty POST/PUT/PATCH requests.
124
94
  * [#1528](https://github.com/stripe/stripe-node/pull/1528) Update README.md to use a new NOTE notation
@@ -133,11 +103,6 @@
133
103
  * Change the return type of `Customer.fundCashBalance` test helper from `CustomerBalanceTransaction` to `CustomerCashBalanceTransaction`.
134
104
  * This would generally be considered a breaking change, but we've worked with all existing users to migrate and are comfortable releasing this as a minor as it is solely a test helper method. This was essentially broken prior to this change.
135
105
 
136
- ## 10.4.0-beta.1 - 2022-08-23
137
- * [#1523](https://github.com/stripe/stripe-node/pull/1523) API Updates for beta branch
138
- - Updated stable APIs to the latest version
139
- - `Stripe-Version` beta headers are not pinned by-default and need to be manually specified, please refer to [beta SDKs README section](https://github.com/stripe/stripe-node/blob/master/README.md#beta-sdks)
140
- * [#1521](https://github.com/stripe/stripe-node/pull/1521) fix: Update FetchHttpClient to send empty string for empty POST/PUT/PATCH requests.
141
106
 
142
107
  ## 10.3.0 - 2022-08-19
143
108
  * [#1516](https://github.com/stripe/stripe-node/pull/1516) API Updates
@@ -150,15 +115,11 @@
150
115
  * Add support for new value `customer_cash_balance_transaction.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
151
116
  * [#1515](https://github.com/stripe/stripe-node/pull/1515) Add a support section to the readme
152
117
 
153
- ## 10.3.0-beta.1 - 2022-08-11
154
- * [#1511](https://github.com/stripe/stripe-node/pull/1511) API Updates for beta branch
155
- - Updated stable APIs to the latest version
156
- - Add refund_payment method to Terminal resource
157
-
158
118
  ## 10.2.0 - 2022-08-11
159
119
  * [#1510](https://github.com/stripe/stripe-node/pull/1510) API Updates
160
120
  * Add support for `payment_method_collection` on `Checkout.Session`, `CheckoutSessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
161
121
 
122
+
162
123
  ## 10.1.0 - 2022-08-09
163
124
  * [#1506](https://github.com/stripe/stripe-node/pull/1506) API Updates
164
125
  * Add support for `process_config` on `Terminal.Reader.action.process_payment_intent`
@@ -168,22 +129,50 @@
168
129
  * [#1503](https://github.com/stripe/stripe-node/pull/1503) API Updates
169
130
  * Add support for `expires_at` on `Apps.Secret` and `AppsSecretCreateParams`
170
131
 
171
- ## 10.1.0-beta.1 - 2022-08-03
172
- * [#1498](https://github.com/stripe/stripe-node/pull/1498) API Updates for beta branch
173
- - Updated stable APIs to the latest version
174
- - Added the `Order` resource support
175
-
176
132
  ## 10.0.0 - 2022-08-02
177
133
 
178
- Major version release for API version 2022-08-01. Default API version changed to "2022-08-01".
134
+ This release includes breaking changes resulting from:
179
135
 
180
- Breaking changes that arose during code generation of the library that we postponed for the next major version. For changes to the SDK, read more detailed description at https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v10. For changes to the Stripe products, read more at https://stripe.com/docs/upgrades#2022-08-01.
136
+ * Moving to use the new API version "2022-08-01". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-08-01
137
+ * Cleaning up the SDK to remove deprecated/unused APIs and rename classes/methods/properties to sync with product APIs. Read more detailed description at https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v10.
181
138
 
182
139
  "⚠️" symbol highlights breaking changes.
183
140
 
184
141
  * [#1497](https://github.com/stripe/stripe-node/pull/1497) API Updates
185
142
  * [#1493](https://github.com/stripe/stripe-node/pull/1493) Next major release changes
186
143
 
144
+ ### Added
145
+ * Add support for new value `invalid_tos_acceptance` on enums `Account.future_requirements.errors[].code`, `Account.requirements.errors[].code`, `Capability.future_requirements.errors[].code`, `Capability.requirements.errors[].code`, `Person.future_requirements.errors[].code`, and `Person.requirements.errors[].code`
146
+ * Add support for `shipping_cost` and `shipping_details` on `Checkout.Session`
147
+
148
+ ### ⚠️ Changed
149
+ * Change type of `business_profile`, `business_type`, `country`, `default_currency`, and `settings` properties on `Account` resource to be nullable.
150
+ * Change type of `currency` property on `Checkout.Session` resource from `string` to `'cad' | 'usd'`.
151
+ * Change location of TypeScript definitions for `CreditNoteLineItemListPreviewParams`, `CreditNoteLineItemListPreviewParams.Line`, `CreditNoteLineItemListPreviewParams.Line.Type`, and `CreditNoteLineItemListPreviewParams.Line.Reason` interfaces from `CreditNoteLineItems.d.ts` to `CreditNotes.d.ts`.
152
+ * Change type of `address`, `currency`, `delinquent`, `discount`, `invoice_prefix`, `name`, `phone`, and `preferred_locales` properties on `Customer` resource to be nullable.
153
+ * Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`.
154
+
155
+ ### ⚠️ Removed
156
+ * Remove for `AlipayAccount`, `DeletedAlipayAccount`, `BitcoinReceiver`, `DeletedBitcoinReceiver`, `BitcoinTransaction`, and `BitcoinTransactionListParams` definitions.
157
+ * Remove `AlipayAccount` and `BitcoinReceiver` from `CustomerSource`.
158
+ * Remove `Stripe.DeletedAlipayAccount` and `Stripe.DeletedBitcoinReceiver` from possible values of `source` property in `PaymentIntent`.
159
+ * Remove `IssuerFraudRecord`, `IssuerFraudRecordRetrieveParams`, `IssuerFraudRecordListParams`, and `IssuerFraudRecordsResource`, definitions.
160
+ * Remove `treasury.received_credit.reversed` webhook event constant. Please use `treasury.received_credit.returned` instead.
161
+ * Remove `order.payment_failed`, `transfer.failed`, and `transfer.paid`. The events were deprecated.
162
+ * Remove `retrieveDetails` method from `Issuing.Card` resource. The method was unsupported. Read more at https://stripe.com/docs/issuing/cards/virtual.
163
+ * Remove `Issuing.CardDetails` and `CardRetrieveDetailsParams` definition.
164
+ * Remove `IssuerFraudRecords` resource.
165
+ * Remove `Recipient` resource and`recipient` property from `Card` resource.
166
+ * Remove `InvoiceMarkUncollectibleParams` definition.
167
+ * Remove deprecated `Stripe.Errors` and `StripeError` (and derived `StripeCardError`, `StripeInvalidRequestError`, `StripeAPIError`, `StripeAuthenticationError`, `StripePermissionError`, `StripeRateLimitError`, `StripeConnectionError`, `StripeSignatureVerificationError`, `StripeIdempotencyError`, and `StripeInvalidGrantError`) definitions.
168
+ * Remove `redirect_url` from `LoginLinks` definition. The property is no longer supported.
169
+ * Remove `LineItemListParams` definition. The interface was no longer in use.
170
+
171
+ ### ⚠️ Renamed
172
+ * Rename `listUpcomingLineItems` method on `Invoice` resource to `listUpcomingLines`.
173
+ * Rename `InvoiceLineItemListUpcomingParams` to `InvoiceListUpcomingLinesParams`.
174
+ * Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`.
175
+
187
176
  ## 9.16.0 - 2022-07-26
188
177
  * [#1492](https://github.com/stripe/stripe-node/pull/1492) API Updates
189
178
  * Add support for new value `exempted` on enums `Charge.payment_method_details.card.three_d_secure.result` and `SetupAttempt.payment_method_details.card.three_d_secure.result`
@@ -200,20 +189,6 @@ Breaking changes that arose during code generation of the library that we postpo
200
189
  * Add support for `mandate` on `InvoicePayParams`
201
190
  * Add support for `product_data` on `OrderCreateParams.line_items[]` and `OrderUpdateParams.line_items[]`
202
191
 
203
- ## 9.15.0-beta.1 - 2022-07-22
204
- * [#1485](https://github.com/stripe/stripe-node/pull/1485) API Updates for beta branch
205
- - Updated stable APIs to the latest version
206
- * [#1483](https://github.com/stripe/stripe-node/pull/1483) API Updates for beta branch
207
- - Updated stable APIs to the latest version
208
- - Add `QuotePhase` resource
209
- * [#1479](https://github.com/stripe/stripe-node/pull/1479) API Updates for beta branch
210
- - Updated stable APIs to the latest version
211
- - Add `Price.migrate_to` property
212
- - Add `SubscriptionSchedule.amend` method.
213
- - Add `Discount.subscription_item` property.
214
- - Add `Quote.subscription_data.billing_behavior`, `billing_cycle_anchor`, `end_behavior`, `from_schedule`, `from_subscription`, `prebilling`, `proration_behavior` properties.
215
- - Add `phases` parameter to `Quote.create`
216
- - Add `Subscription.discounts`, `prebilling` properties.
217
192
 
218
193
  ## 9.14.0 - 2022-07-18
219
194
  * [#1477](https://github.com/stripe/stripe-node/pull/1477) API Updates
@@ -236,18 +211,6 @@ Breaking changes that arose during code generation of the library that we postpo
236
211
  * Change `Transfer.source_type` to be optional and not nullable
237
212
  * [#1471](https://github.com/stripe/stripe-node/pull/1471) Update readme to include a note on beta packages
238
213
 
239
- ## 9.13.0-beta.1 - 2022-07-07
240
- * [#1469](https://github.com/stripe/stripe-node/pull/1469) API Updates for beta branch
241
- - Include `server_side_confirmation_beta=v1` beta
242
- - Add `secretKeyConfirmation` to `PaymentIntent`
243
- * [#1451](https://github.com/stripe/stripe-node/pull/1451) API Updates
244
- - Updated stable APIs to the latest version
245
- * [#1457](https://github.com/stripe/stripe-node/pull/1457) Use the generated API version
246
- * [#1445](https://github.com/stripe/stripe-node/pull/1445) Support updating pre-release versions
247
- * [#1442](https://github.com/stripe/stripe-node/pull/1442) API Updates
248
- * Add support for `network_details` method on resource `ReceivedCredits`/`ReceivedDebits`
249
- * [#1444](https://github.com/stripe/stripe-node/pull/1444) Merge master branch into beta branch
250
-
251
214
  ## 9.12.0 - 2022-07-07
252
215
  * [#1468](https://github.com/stripe/stripe-node/pull/1468) API Updates
253
216
  * Add support for `currency` on `CheckoutSessionCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `PaymentLinkCreateParams`, `SubscriptionCreateParams`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[]`, and `Subscription`
@@ -310,10 +273,6 @@ Breaking changes that arose during code generation of the library that we postpo
310
273
  * Change type of `Order.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderCreateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `OrderUpdateParams.payment.settings.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntent.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentConfirmParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, `PaymentIntentCreateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]`, and `PaymentIntentUpdateParams.payment_method_options.customer_balance.bank_transfer.requested_address_types[]` from `literal('zengin')` to `enum`
311
274
  * Add support for `custom_unit_amount` on `PriceCreateParams` and `Price`
312
275
 
313
- ## 9.8.0-beta.1 - 2022-06-08
314
- * [#1442](https://github.com/stripe/stripe-node/pull/1442) API Updates
315
- * Add support for `network_details` method on resource `ReceivedCredits`/`ReceivedDebits`
316
-
317
276
  ## 9.7.0 - 2022-06-08
318
277
  * [#1441](https://github.com/stripe/stripe-node/pull/1441) API Updates
319
278
  * Add support for `affirm`, `bancontact`, `card`, `ideal`, `p24`, and `sofort` on `Checkout.Session.payment_method_options` and `CheckoutSessionCreateParams.payment_method_options`
@@ -334,6 +293,7 @@ Breaking changes that arose during code generation of the library that we postpo
334
293
  * Add support for `network` on `SetupIntent.payment_method_options.card`
335
294
  * Add support for new value `simulated_wisepos_e` on enums `Terminal.Reader.device_type` and `TerminalReaderListParams.device_type`
336
295
 
296
+
337
297
  ## 9.5.0 - 2022-05-26
338
298
  * [#1434](https://github.com/stripe/stripe-node/pull/1434) API Updates
339
299
  * Add support for `affirm_payments` and `link_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
@@ -404,6 +364,7 @@ Major version release - The [migration guide](https://github.com/stripe/stripe-n
404
364
  * Add support for `default_price` on `ProductUpdateParams` and `Product`
405
365
  * Add support for `instructions_email` on `RefundCreateParams` and `Refund`
406
366
 
367
+
407
368
  ## 8.221.0 - 2022-05-05
408
369
  * [#1413](https://github.com/stripe/stripe-node/pull/1413) API Updates
409
370
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
@@ -680,6 +641,7 @@ Major version release - The [migration guide](https://github.com/stripe/stripe-n
680
641
  * [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates
681
642
  * Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent`
682
643
 
644
+
683
645
  ## 8.189.0 - 2021-11-16
684
646
  * [#1295](https://github.com/stripe/stripe-node/pull/1295) API Updates
685
647
  * Add support for new resource `ShippingRate`
@@ -702,6 +664,7 @@ Major version release - The [migration guide](https://github.com/stripe/stripe-n
702
664
  * Remove support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account`. This API was unused.
703
665
  * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account.company`
704
666
 
667
+
705
668
  ## 8.186.0 - 2021-11-01
706
669
  * [#1283](https://github.com/stripe/stripe-node/pull/1283) API Updates
707
670
  * Add support for `ownership_declaration` on `AccountUpdateParams.company`, `AccountCreateParams.company`, `Account.company`, and `TokenCreateParams.account.company`
@@ -845,6 +808,7 @@ Major version release - The [migration guide](https://github.com/stripe/stripe-n
845
808
  * Add support for `wallet` on `Issuing.Transaction`
846
809
  * Add support for `ideal` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
847
810
 
811
+
848
812
  ## 8.163.0 - 2021-07-15
849
813
  * [#1102](https://github.com/stripe/stripe-node/pull/1102), [#1191](https://github.com/stripe/stripe-node/pull/1191) Add support for `stripeAccount` when initializing the client
850
814
 
@@ -2377,7 +2341,7 @@ Pull requests included in this release (cf. [#606](https://github.com/stripe/str
2377
2341
 
2378
2342
  - [BUGFIX] Fix incorrect deleteDiscount method & related spec(s)
2379
2343
 
2380
- ## 2.2.1 - 2013-12-01
2344
+ ### 2.2.1 - 2013-12-01
2381
2345
 
2382
2346
  - [BUGFIX] Fix user-agent header issue (see issue #75)
2383
2347
 
@@ -2440,4 +2404,3 @@ Pull requests included in this release (cf. [#606](https://github.com/stripe/str
2440
2404
  ## 0.0.2 - 2011-09-28
2441
2405
 
2442
2406
  - Initial release with customers and tokens APIs
2443
-
package/VERSION CHANGED
@@ -1 +1 @@
1
- 10.16.0-beta.2
1
+ 10.16.0
@@ -21,10 +21,6 @@ module.exports = StripeResource.extend({
21
21
  path: '',
22
22
  methodType: 'list',
23
23
  }),
24
- amend: stripeMethod({
25
- method: 'POST',
26
- path: '/{schedule}/amend',
27
- }),
28
24
  cancel: stripeMethod({
29
25
  method: 'POST',
30
26
  path: '/{schedule}/cancel',
@@ -37,10 +37,6 @@ module.exports = StripeResource.extend({
37
37
  method: 'POST',
38
38
  path: '/{reader}/process_setup_intent',
39
39
  }),
40
- refundPayment: stripeMethod({
41
- method: 'POST',
42
- path: '/{reader}/refund_payment',
43
- }),
44
40
  setReaderDisplay: stripeMethod({
45
41
  method: 'POST',
46
42
  path: '/{reader}/set_reader_display',
package/lib/resources.js CHANGED
@@ -6,7 +6,6 @@ module.exports = {
6
6
  // Support Accounts for consistency, Account for backwards compatibility
7
7
  Account: require('./resources/Accounts'),
8
8
  AccountLinks: require('./resources/AccountLinks'),
9
- AccountSessions: require('./resources/AccountSessions'),
10
9
  ApplePayDomains: require('./resources/ApplePayDomains'),
11
10
  ApplicationFees: require('./resources/ApplicationFees'),
12
11
  Balance: require('./resources/Balance'),
@@ -36,7 +35,6 @@ module.exports = {
36
35
  Products: require('./resources/Products'),
37
36
  PromotionCodes: require('./resources/PromotionCodes'),
38
37
  Quotes: require('./resources/Quotes'),
39
- QuotePhases: require('./resources/QuotePhases'),
40
38
  Refunds: require('./resources/Refunds'),
41
39
  Reviews: require('./resources/Reviews'),
42
40
  SetupAttempts: require('./resources/SetupAttempts'),
@@ -60,11 +58,6 @@ module.exports = {
60
58
  Configurations: require('./resources/BillingPortal/Configurations'),
61
59
  Sessions: require('./resources/BillingPortal/Sessions'),
62
60
  }),
63
- Capital: resourceNamespace('capital', {
64
- FinancingOffers: require('./resources/Capital/FinancingOffers'),
65
- FinancingSummary: require('./resources/Capital/FinancingSummary'),
66
- FinancingTransactions: require('./resources/Capital/FinancingTransactions'),
67
- }),
68
61
  Checkout: resourceNamespace('checkout', {
69
62
  Sessions: require('./resources/Checkout/Sessions'),
70
63
  }),
@@ -72,10 +65,6 @@ module.exports = {
72
65
  Accounts: require('./resources/FinancialConnections/Accounts'),
73
66
  Sessions: require('./resources/FinancialConnections/Sessions'),
74
67
  }),
75
- GiftCards: resourceNamespace('giftCards', {
76
- Cards: require('./resources/GiftCards/Cards'),
77
- Transactions: require('./resources/GiftCards/Transactions'),
78
- }),
79
68
  Identity: resourceNamespace('identity', {
80
69
  VerificationReports: require('./resources/Identity/VerificationReports'),
81
70
  VerificationSessions: require('./resources/Identity/VerificationSessions'),
package/lib/stripe.js CHANGED
@@ -1,11 +1,10 @@
1
1
  'use strict';
2
2
  const _Error = require('./Error');
3
3
  const resources = require('./resources');
4
- const apiVersion = require('./apiVersion');
5
4
  const DEFAULT_HOST = 'api.stripe.com';
6
5
  const DEFAULT_PORT = '443';
7
6
  const DEFAULT_BASE_PATH = '/v1/';
8
- const DEFAULT_API_VERSION = apiVersion.ApiVersion;
7
+ const DEFAULT_API_VERSION = null;
9
8
  const DEFAULT_TIMEOUT = 80000;
10
9
  Stripe.PACKAGE_VERSION = require('../package.json').version;
11
10
  const utils = require('./utils');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stripe",
3
- "version": "10.16.0-beta.2",
3
+ "version": "10.16.0",
4
4
  "description": "Stripe API wrapper",
5
5
  "keywords": [
6
6
  "stripe",
@@ -221,11 +221,6 @@ declare module 'stripe' {
221
221
  */
222
222
  cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;
223
223
 
224
- /**
225
- * The status of the Cash App Pay capability of the account, or whether the account can directly process Cash App Pay payments.
226
- */
227
- cashapp_payments?: Capabilities.CashappPayments;
228
-
229
224
  /**
230
225
  * The status of the EPS payments capability of the account, or whether the account can directly process EPS charges.
231
226
  */
@@ -330,11 +325,6 @@ declare module 'stripe' {
330
325
  * The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
331
326
  */
332
327
  us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
333
-
334
- /**
335
- * The status of the Zip capability of the account, or whether the account can directly process Zip charges.
336
- */
337
- zip_payments?: Capabilities.ZipPayments;
338
328
  }
339
329
 
340
330
  namespace Capabilities {
@@ -362,8 +352,6 @@ declare module 'stripe' {
362
352
 
363
353
  type CartesBancairesPayments = 'active' | 'inactive' | 'pending';
364
354
 
365
- type CashappPayments = 'active' | 'inactive' | 'pending';
366
-
367
355
  type EpsPayments = 'active' | 'inactive' | 'pending';
368
356
 
369
357
  type FpxPayments = 'active' | 'inactive' | 'pending';
@@ -405,8 +393,6 @@ declare module 'stripe' {
405
393
  type Treasury = 'active' | 'inactive' | 'pending';
406
394
 
407
395
  type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';
408
-
409
- type ZipPayments = 'active' | 'inactive' | 'pending';
410
396
  }
411
397
 
412
398
  interface Company {
@@ -1352,11 +1338,6 @@ declare module 'stripe' {
1352
1338
  */
1353
1339
  cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;
1354
1340
 
1355
- /**
1356
- * The cashapp_payments capability.
1357
- */
1358
- cashapp_payments?: Capabilities.CashappPayments;
1359
-
1360
1341
  /**
1361
1342
  * The eps_payments capability.
1362
1343
  */
@@ -1461,11 +1442,6 @@ declare module 'stripe' {
1461
1442
  * The us_bank_account_ach_payments capability.
1462
1443
  */
1463
1444
  us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
1464
-
1465
- /**
1466
- * The zip_payments capability.
1467
- */
1468
- zip_payments?: Capabilities.ZipPayments;
1469
1445
  }
1470
1446
 
1471
1447
  namespace Capabilities {
@@ -1553,13 +1529,6 @@ declare module 'stripe' {
1553
1529
  requested?: boolean;
1554
1530
  }
1555
1531
 
1556
- interface CashappPayments {
1557
- /**
1558
- * 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.
1559
- */
1560
- requested?: boolean;
1561
- }
1562
-
1563
1532
  interface EpsPayments {
1564
1533
  /**
1565
1534
  * 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.
@@ -1706,13 +1675,6 @@ declare module 'stripe' {
1706
1675
  */
1707
1676
  requested?: boolean;
1708
1677
  }
1709
-
1710
- interface ZipPayments {
1711
- /**
1712
- * 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.
1713
- */
1714
- requested?: boolean;
1715
- }
1716
1678
  }
1717
1679
 
1718
1680
  interface Company {
@@ -2591,11 +2553,6 @@ declare module 'stripe' {
2591
2553
  */
2592
2554
  cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;
2593
2555
 
2594
- /**
2595
- * The cashapp_payments capability.
2596
- */
2597
- cashapp_payments?: Capabilities.CashappPayments;
2598
-
2599
2556
  /**
2600
2557
  * The eps_payments capability.
2601
2558
  */
@@ -2700,11 +2657,6 @@ declare module 'stripe' {
2700
2657
  * The us_bank_account_ach_payments capability.
2701
2658
  */
2702
2659
  us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
2703
-
2704
- /**
2705
- * The zip_payments capability.
2706
- */
2707
- zip_payments?: Capabilities.ZipPayments;
2708
2660
  }
2709
2661
 
2710
2662
  namespace Capabilities {
@@ -2792,13 +2744,6 @@ declare module 'stripe' {
2792
2744
  requested?: boolean;
2793
2745
  }
2794
2746
 
2795
- interface CashappPayments {
2796
- /**
2797
- * 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.
2798
- */
2799
- requested?: boolean;
2800
- }
2801
-
2802
2747
  interface EpsPayments {
2803
2748
  /**
2804
2749
  * 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.
@@ -2945,13 +2890,6 @@ declare module 'stripe' {
2945
2890
  */
2946
2891
  requested?: boolean;
2947
2892
  }
2948
-
2949
- interface ZipPayments {
2950
- /**
2951
- * 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.
2952
- */
2953
- requested?: boolean;
2954
- }
2955
2893
  }
2956
2894
 
2957
2895
  interface Company {
@@ -417,8 +417,6 @@ declare module 'stripe' {
417
417
 
418
418
  card_present?: PaymentMethodDetails.CardPresent;
419
419
 
420
- cashapp?: PaymentMethodDetails.Cashapp;
421
-
422
420
  customer_balance?: PaymentMethodDetails.CustomerBalance;
423
421
 
424
422
  eps?: PaymentMethodDetails.Eps;
@@ -447,8 +445,6 @@ declare module 'stripe' {
447
445
 
448
446
  paynow?: PaymentMethodDetails.Paynow;
449
447
 
450
- paypal?: PaymentMethodDetails.Paypal;
451
-
452
448
  pix?: PaymentMethodDetails.Pix;
453
449
 
454
450
  promptpay?: PaymentMethodDetails.Promptpay;
@@ -473,8 +469,6 @@ declare module 'stripe' {
473
469
  wechat?: PaymentMethodDetails.Wechat;
474
470
 
475
471
  wechat_pay?: PaymentMethodDetails.WechatPay;
476
-
477
- zip?: PaymentMethodDetails.Zip;
478
472
  }
479
473
 
480
474
  namespace PaymentMethodDetails {
@@ -1129,8 +1123,6 @@ declare module 'stripe' {
1129
1123
  }
1130
1124
  }
1131
1125
 
1132
- interface Cashapp {}
1133
-
1134
1126
  interface CustomerBalance {}
1135
1127
 
1136
1128
  interface Eps {
@@ -1579,44 +1571,6 @@ declare module 'stripe' {
1579
1571
  reference: string | null;
1580
1572
  }
1581
1573
 
1582
- interface Paypal {
1583
- /**
1584
- * PayPal account PayerID. This identifier uniquely identifies the PayPal customer.
1585
- */
1586
- payer_id: string | null;
1587
-
1588
- /**
1589
- * The shipping address for the customer, as supplied by the merchant at the point of payment
1590
- * execution. This shipping address will not be updated if the merchant updates the shipping
1591
- * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1592
- */
1593
- shipping?: Stripe.Address | null;
1594
-
1595
- /**
1596
- * A unique ID generated by PayPal for this transaction.
1597
- */
1598
- transaction_id?: string | null;
1599
-
1600
- /**
1601
- * The shipping address for the customer, as supplied by the merchant at the point of payment
1602
- * execution. This shipping address will not be updated if the merchant updates the shipping
1603
- * address on the PaymentIntent after the PaymentIntent was successfully confirmed.
1604
- */
1605
- verified_address?: Stripe.Address | null;
1606
-
1607
- /**
1608
- * Owner's verified email. Values are verified or provided by PayPal directly
1609
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1610
- */
1611
- verified_email: string | null;
1612
-
1613
- /**
1614
- * Owner's verified full name. Values are verified or provided by PayPal directly
1615
- * (if supported) at the time of authorization or settlement. They cannot be set or mutated.
1616
- */
1617
- verified_name: string | null;
1618
- }
1619
-
1620
1574
  interface Pix {
1621
1575
  /**
1622
1576
  * Unique transaction id generated by BCB
@@ -1793,8 +1747,6 @@ declare module 'stripe' {
1793
1747
  */
1794
1748
  transaction_id: string | null;
1795
1749
  }
1796
-
1797
- interface Zip {}
1798
1750
  }
1799
1751
 
1800
1752
  interface RadarOptions {
@@ -379,7 +379,7 @@ declare module 'stripe' {
379
379
 
380
380
  interface TaxId {
381
381
  /**
382
- * The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `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`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, `tr_tin`, `eg_tin`, `ph_tin`, or `unknown`
382
+ * The type of the tax ID, one of `eu_vat`, `br_cnpj`, `br_cpf`, `eu_oss_vat`, `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`, `jp_trn`, `li_uid`, `my_itn`, `us_ein`, `kr_brn`, `ca_qst`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `my_sst`, `sg_gst`, `ae_trn`, `cl_tin`, `sa_vat`, `id_npwp`, `my_frp`, `il_vat`, `ge_vat`, `ua_vat`, `is_vat`, `bg_uic`, `hu_tin`, `si_tin`, `ke_pin`, or `unknown`
383
383
  */
384
384
  type: TaxId.Type;
385
385
 
@@ -405,7 +405,6 @@ declare module 'stripe' {
405
405
  | 'ca_qst'
406
406
  | 'ch_vat'
407
407
  | 'cl_tin'
408
- | 'eg_tin'
409
408
  | 'es_cif'
410
409
  | 'eu_oss_vat'
411
410
  | 'eu_vat'
@@ -429,7 +428,6 @@ declare module 'stripe' {
429
428
  | 'my_sst'
430
429
  | 'no_vat'
431
430
  | 'nz_gst'
432
- | 'ph_tin'
433
431
  | 'ru_inn'
434
432
  | 'ru_kpp'
435
433
  | 'sa_vat'
@@ -437,7 +435,6 @@ declare module 'stripe' {
437
435
  | 'sg_uen'
438
436
  | 'si_tin'
439
437
  | 'th_vat'
440
- | 'tr_tin'
441
438
  | 'tw_vat'
442
439
  | 'ua_vat'
443
440
  | 'unknown'
@@ -2145,11 +2142,6 @@ declare module 'stripe' {
2145
2142
  */
2146
2143
  paynow?: PaymentMethodOptions.Paynow;
2147
2144
 
2148
- /**
2149
- * contains details about the PayPal payment method options.
2150
- */
2151
- paypal?: PaymentMethodOptions.Paypal;
2152
-
2153
2145
  /**
2154
2146
  * contains details about the Pix payment method options.
2155
2147
  */
@@ -2572,10 +2564,6 @@ declare module 'stripe' {
2572
2564
  tos_shown_and_accepted?: boolean;
2573
2565
  }
2574
2566
 
2575
- interface Paypal {
2576
- currency: string;
2577
- }
2578
-
2579
2567
  interface Pix {
2580
2568
  /**
2581
2569
  * The number of seconds (between 10 and 1209600) after which Pix payment will expire. Defaults to 86400 seconds.
@@ -2699,7 +2687,6 @@ declare module 'stripe' {
2699
2687
  | 'oxxo'
2700
2688
  | 'p24'
2701
2689
  | 'paynow'
2702
- | 'paypal'
2703
2690
  | 'pix'
2704
2691
  | 'promptpay'
2705
2692
  | 'sepa_debit'