stripe 11.3.0-beta.1 → 11.4.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 (80) hide show
  1. package/CHANGELOG.md +108 -95
  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 -12
  6. package/lib/stripe.js +1 -2
  7. package/package.json +1 -1
  8. package/types/Accounts.d.ts +0 -14
  9. package/types/AccountsResource.d.ts +0 -48
  10. package/types/Charges.d.ts +0 -48
  11. package/types/Checkout/SessionsResource.d.ts +1 -11
  12. package/types/Coupons.d.ts +1 -1
  13. package/types/CouponsResource.d.ts +1 -1
  14. package/types/CustomerBalanceTransactions.d.ts +2 -1
  15. package/types/CustomersResource.d.ts +1 -4
  16. package/types/Discounts.d.ts +0 -10
  17. package/types/InvoiceItemsResource.d.ts +0 -88
  18. package/types/InvoicesResource.d.ts +0 -410
  19. package/types/Issuing/Authorizations.d.ts +0 -25
  20. package/types/Issuing/CardholdersResource.d.ts +2 -4
  21. package/types/Issuing/Transactions.d.ts +0 -17
  22. package/types/LineItems.d.ts +0 -7
  23. package/types/Mandates.d.ts +0 -4
  24. package/types/PaymentIntents.d.ts +0 -83
  25. package/types/PaymentIntentsResource.d.ts +5 -336
  26. package/types/PaymentLinks.d.ts +0 -1
  27. package/types/PaymentLinksResource.d.ts +0 -2
  28. package/types/PaymentMethods.d.ts +1 -16
  29. package/types/PaymentMethodsResource.d.ts +2 -43
  30. package/types/Prices.d.ts +0 -22
  31. package/types/PricesResource.d.ts +0 -22
  32. package/types/Products.d.ts +0 -39
  33. package/types/ProductsResource.d.ts +0 -36
  34. package/types/Quotes.d.ts +0 -50
  35. package/types/QuotesResource.d.ts +0 -865
  36. package/types/SetupIntents.d.ts +0 -35
  37. package/types/SetupIntentsResource.d.ts +3 -75
  38. package/types/Sources.d.ts +0 -23
  39. package/types/SubscriptionItems.d.ts +0 -23
  40. package/types/SubscriptionItemsResource.d.ts +0 -147
  41. package/types/SubscriptionSchedules.d.ts +0 -201
  42. package/types/SubscriptionSchedulesResource.d.ts +1 -1089
  43. package/types/Subscriptions.d.ts +0 -32
  44. package/types/SubscriptionsResource.d.ts +0 -411
  45. package/types/Terminal/Readers.d.ts +0 -47
  46. package/types/Terminal/ReadersResource.d.ts +0 -45
  47. package/types/TestHelpers/Terminal/ReadersResource.d.ts +1 -15
  48. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  49. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  50. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  51. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  52. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  53. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  54. package/types/WebhookEndpointsResource.d.ts +0 -2
  55. package/types/index.d.ts +0 -28
  56. package/lib/resources/AccountSessions.js +0 -10
  57. package/lib/resources/Capital/FinancingOffers.js +0 -19
  58. package/lib/resources/Capital/FinancingSummary.js +0 -10
  59. package/lib/resources/Capital/FinancingTransactions.js +0 -15
  60. package/lib/resources/GiftCards/Cards.js +0 -27
  61. package/lib/resources/GiftCards/Transactions.js +0 -31
  62. package/lib/resources/Orders.js +0 -40
  63. package/lib/resources/QuotePhases.js +0 -20
  64. package/types/2022-08-01/Orders.d.ts +0 -3514
  65. package/types/AccountSessions.d.ts +0 -45
  66. package/types/AccountSessionsResource.d.ts +0 -27
  67. package/types/Capital/FinancingOffers.d.ts +0 -183
  68. package/types/Capital/FinancingOffersResource.d.ts +0 -95
  69. package/types/Capital/FinancingSummary.d.ts +0 -101
  70. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  71. package/types/Capital/FinancingTransactions.d.ts +0 -119
  72. package/types/Capital/FinancingTransactionsResource.d.ts +0 -63
  73. package/types/GiftCards/Cards.d.ts +0 -118
  74. package/types/GiftCards/CardsResource.d.ts +0 -159
  75. package/types/GiftCards/Transactions.d.ts +0 -129
  76. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  77. package/types/Orders.d.ts +0 -950
  78. package/types/OrdersResource.d.ts +0 -2569
  79. package/types/QuotePhases.d.ts +0 -164
  80. package/types/QuotePhasesResource.d.ts +0 -67
package/CHANGELOG.md CHANGED
@@ -1,10 +1,13 @@
1
1
  # Changelog
2
2
 
3
- ## 11.3.0-beta.1 - 2022-12-08
4
- * [#1635](https://github.com/stripe/stripe-node/pull/1635) API Updates for beta branch
5
- * Updated stable APIs to the latest version
6
- * [#1633](https://github.com/stripe/stripe-node/pull/1633) API Updates for beta branch
7
- * Updated stable APIs to the latest version
3
+ ## 11.4.0 - 2022-12-15
4
+ * [#1639](https://github.com/stripe/stripe-node/pull/1639) API Updates
5
+ * Add support for new value `invoice_overpaid` on enum `CustomerBalanceTransaction.type`
6
+ * [#1637](https://github.com/stripe/stripe-node/pull/1637) Update packages in examples/webhook-signing
7
+
8
+ ## 11.3.0 - 2022-12-08
9
+ * [#1634](https://github.com/stripe/stripe-node/pull/1634) API Updates
10
+ * Change `CustomerListPaymentMethodsParams.type` and `PaymentMethodListParams.type` to be optional
8
11
 
9
12
  ## 11.2.0 - 2022-12-06
10
13
  * [#1632](https://github.com/stripe/stripe-node/pull/1632) API Updates
@@ -29,6 +32,7 @@
29
32
  * Add support for `custom_text` on `Checkout.Session`, `CheckoutSessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
30
33
  * Add support for `hosted_instructions_url` on `PaymentIntent.next_action.paynow_display_qr_code`
31
34
 
35
+
32
36
  ## 11.0.0 - 2022-11-16
33
37
 
34
38
  This release includes breaking changes resulting from moving to use the new API version "2022-11-15". To learn more about these changes to Stripe products, see https://stripe.com/docs/upgrades#2022-11-15
@@ -41,11 +45,62 @@ This release includes breaking changes resulting from moving to use the new API
41
45
  * [#1615](https://github.com/stripe/stripe-node/pull/1615) API Updates
42
46
  * ⚠️ Remove support for `tos_shown_and_accepted` on `CheckoutSessionCreateParams.payment_method_options.paynow`. The property was mistakenly released and never worked.
43
47
 
44
- ## 10.18.0-beta.1 - 2022-11-10
45
- * [#1616](https://github.com/stripe/stripe-node/pull/1616) API Updates for beta branch
46
- * Updated stable APIs to the latest version
47
- * Add `discount_end` to `Discount`.
48
- * Add `url` to `MerchantData`.
48
+ ### ⚠️ Changed
49
+ * Drop support for Node.js 8 and 10. We now support Node.js 12+. ((#1579)
50
+ * Change `StripeSignatureVerificationError` to have `header` and `payload` fields instead of `detail`. To access these properties, use `err.header` and `err.payload` instead of `err.detail.header` and `err.detail.payload`. (#1574)
51
+
52
+ ### ⚠️ Removed
53
+ * Remove `Orders` resource. (#1580)
54
+ * Remove `SKU` resource (#1583)
55
+ * Remove deprecated `CheckoutSessionCreateParams.subscription_data.items`. (#1580)
56
+ * Remove deprecated configuration setter methods (`setHost`, `setProtocol`, `setPort`, `setApiVersion`, `setApiKey`, `setTimeout`, `setAppInfo`, `setHttpAgent`, `setMaxNetworkRetries`, and `setTelemetryEnabled`). (#1597)
57
+
58
+ Use the config object to set these options instead, for example:
59
+ ```typescript
60
+ const stripe = Stripe('sk_test_...', {
61
+ apiVersion: '2019-08-08',
62
+ maxNetworkRetries: 1,
63
+ httpAgent: new ProxyAgent(process.env.http_proxy),
64
+ timeout: 1000,
65
+ host: 'api.example.com',
66
+ port: 123,
67
+ telemetry: true,
68
+ });
69
+ ```
70
+ * Remove deprecated basic method definitions. (#1600)
71
+ Use basic methods defined on the resource instead.
72
+ ```typescript
73
+ // Before
74
+ basicMethods: true
75
+
76
+ // After
77
+ create: stripeMethod({
78
+ method: 'POST',
79
+ fullPath: '/v1/resource',
80
+ }),
81
+ list: stripeMethod({
82
+ method: 'GET',
83
+ methodType: 'list',
84
+ fullPath: '/v1/resource',
85
+ }),
86
+ retrieve: stripeMethod({
87
+ method: 'GET',
88
+ fullPath: '/v1/resource/{id}',
89
+ }),
90
+ update: stripeMethod({
91
+ method: 'POST',
92
+ fullPath: '/v1/resource/{id}',
93
+ }),
94
+ // Avoid 'delete' keyword in JS
95
+ del: stripeMethod({
96
+ method: 'DELETE',
97
+ fullPath: '/v1/resource/{id}',
98
+ }),
99
+ ```
100
+ * Remove deprecated option names. Use the following option names instead (`OLD`->`NEW`): `api_key`->`apiKey`, `idempotency_key`->`idempotencyKey`, `stripe_account`->`stripeAccount`, `stripe_version`->`apiVersion`, `stripeVersion`->`apiVersion`. (#1600)
101
+ * Remove `charges` field on `PaymentIntent` and replace it with `latest_charge`. (#1614 )
102
+ * Remove deprecated `amount` field on `Checkout.Session.LineItem`. (#1614 )
103
+ * Remove support for `tos_shown_and_accepted` on `Checkout.Session.PaymentMethodOptions.Paynow`. (#1614 )
49
104
 
50
105
  ## 10.17.0 - 2022-11-08
51
106
  * [#1610](https://github.com/stripe/stripe-node/pull/1610) API Updates
@@ -59,22 +114,6 @@ This release includes breaking changes resulting from moving to use the new API
59
114
  * 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`
60
115
  * Add support for `tax_behavior` and `tax_code` on `InvoiceItemCreateParams`, `InvoiceItemUpdateParams`, `InvoiceUpcomingLinesParams.invoice_items[]`, and `InvoiceUpcomingParams.invoice_items[]`
61
116
 
62
- ## 10.16.0-beta.2 - 2022-11-02
63
- * [#1598](https://github.com/stripe/stripe-node/pull/1598) API Updates for beta branch
64
- * Updated beta APIs to the latest stable version
65
- * Add support for `cashappPayments` and `zipPayments` on `Account`.
66
- * Add support for `cashapp` and `zip` on `Charge`, `PaymentMethod`.
67
- * Add support for `trialSettings` on `SubscriptionSchedule`.
68
-
69
- ## 10.16.0-beta.1 - 2022-10-21
70
- * [#1589](https://github.com/stripe/stripe-node/pull/1589) API Updates for beta branch
71
- * Updated stable APIs to the latest version
72
- * Add support for new value `revoked` on enum `CapitalFinancingOfferListParams.status`
73
- * Add support for `paypal` on `Charge.payment_method_details` and `Source`
74
- * Add support for `network_data` on `Issuing.Transaction`
75
- * Add support for new value `paypal` on enum `Source.type`
76
- * Add support for `billing_cycle_anchor` on `SubscriptionScheduleAmendParams.amendments[]`
77
-
78
117
  ## 10.15.0 - 2022-10-20
79
118
  * [#1588](https://github.com/stripe/stripe-node/pull/1588) API Updates
80
119
  * Add support for new values `jp_trn` and `ke_pin` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Order.tax_details.tax_ids[].type`, and `TaxId.type`
@@ -82,11 +121,6 @@ This release includes breaking changes resulting from moving to use the new API
82
121
  * Add support for `tipping` on `Terminal.Reader.action.process_payment_intent.process_config` and `TerminalReaderProcessPaymentIntentParams.process_config`
83
122
  * [#1585](https://github.com/stripe/stripe-node/pull/1585) use native UUID method if available
84
123
 
85
- ## 10.15.0-beta.1 - 2022-10-14
86
- * Add support for `schedule_settings` on `SubscriptionScheduleAmendParams`
87
- * Add support for new value `upcoming_invoice` on enum `SubscriptionScheduleAmendParams.amendments[].amendment_end.type`
88
- * Add support for new values `schedule_end` and `upcoming_invoice` on enum `SubscriptionScheduleAmendParams.amendments[].amendment_start.type`
89
-
90
124
  ## 10.14.0 - 2022-10-13
91
125
  * [#1582](https://github.com/stripe/stripe-node/pull/1582) API Updates
92
126
  * 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`
@@ -94,11 +128,6 @@ This release includes breaking changes resulting from moving to use the new API
94
128
  * Add support for `network_data` on `Issuing.Authorization`
95
129
  * ⚠️ Remove `currency`, `description`, `images`, and `name` from `Checkout.SessionCreateParams`. These properties do not work on the latest API version. (fixes #1575)
96
130
 
97
- ## 10.14.0-beta.1 - 2022-10-07
98
- * [#1572](https://github.com/stripe/stripe-node/pull/1572) API Updates for beta branch
99
- * Updated stable APIs to the latest version
100
- * Add `reference_id` to `Paypal` interface.
101
-
102
131
  ## 10.13.0 - 2022-10-06
103
132
  * [#1571](https://github.com/stripe/stripe-node/pull/1571) API Updates
104
133
  * 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`
@@ -119,11 +148,6 @@ This release includes breaking changes resulting from moving to use the new API
119
148
  * [#1562](https://github.com/stripe/stripe-node/pull/1562) Restore lib after generating
120
149
  * [#1551](https://github.com/stripe/stripe-node/pull/1551) Re-introduce Typescript changes
121
150
 
122
- ## 10.12.0-beta.1 - 2022-09-26
123
- * [#1561](https://github.com/stripe/stripe-node/pull/1561) API Updates for beta branch
124
- * Updated stable APIs to the latest version
125
- * Add `FinancingOffer`, `FinancingSummary` and `FinancingTransaction` resources.
126
-
127
151
  ## 10.11.0 - 2022-09-22
128
152
  * [#1560](https://github.com/stripe/stripe-node/pull/1560) API Updates
129
153
  * Add support for `terms_of_service` on `Checkout.Session.consent_collection`, `Checkout.Session.consent`, `CheckoutSessionCreateParams.consent_collection`, `PaymentLink.consent_collection`, and `PaymentLinkCreateParams.consent_collection`
@@ -131,6 +155,7 @@ This release includes breaking changes resulting from moving to use the new API
131
155
  * Add support for `statement_descriptor` on `PaymentIntentIncrementAuthorizationParams`
132
156
  * Change `SubscriptionSchedule.phases[].currency` to be required
133
157
 
158
+
134
159
  ## 10.10.0 - 2022-09-15
135
160
  * [#1552](https://github.com/stripe/stripe-node/pull/1552) API Updates
136
161
  * 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`
@@ -173,11 +198,6 @@ This release includes breaking changes resulting from moving to use the new API
173
198
  * [#1532](https://github.com/stripe/stripe-node/pull/1532) Update coveralls step to run for one node version, remove finish step
174
199
  * [#1531](https://github.com/stripe/stripe-node/pull/1531) Regen yarn.lock.
175
200
 
176
- ## 10.6.0-beta.1 - 2022-08-26
177
- * [#1529](https://github.com/stripe/stripe-node/pull/1529) API Updates for beta branch
178
- * Updated stable APIs to the latest version
179
- * Add support for the beta [Gift Card API](https://stripe.com/docs/gift-cards).
180
-
181
201
  ## 10.5.0 - 2022-08-24
182
202
  * [#1527](https://github.com/stripe/stripe-node/pull/1527) fix: Update FetchHttpClient to send empty string for empty POST/PUT/PATCH requests.
183
203
  * [#1528](https://github.com/stripe/stripe-node/pull/1528) Update README.md to use a new NOTE notation
@@ -192,11 +212,6 @@ This release includes breaking changes resulting from moving to use the new API
192
212
  * Change the return type of `Customer.fundCashBalance` test helper from `CustomerBalanceTransaction` to `CustomerCashBalanceTransaction`.
193
213
  * 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.
194
214
 
195
- ## 10.4.0-beta.1 - 2022-08-23
196
- * [#1523](https://github.com/stripe/stripe-node/pull/1523) API Updates for beta branch
197
- - Updated stable APIs to the latest version
198
- - `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)
199
- * [#1521](https://github.com/stripe/stripe-node/pull/1521) fix: Update FetchHttpClient to send empty string for empty POST/PUT/PATCH requests.
200
215
 
201
216
  ## 10.3.0 - 2022-08-19
202
217
  * [#1516](https://github.com/stripe/stripe-node/pull/1516) API Updates
@@ -209,15 +224,11 @@ This release includes breaking changes resulting from moving to use the new API
209
224
  * Add support for new value `customer_cash_balance_transaction.created` on enums `WebhookEndpointCreateParams.enabled_events[]` and `WebhookEndpointUpdateParams.enabled_events[]`
210
225
  * [#1515](https://github.com/stripe/stripe-node/pull/1515) Add a support section to the readme
211
226
 
212
- ## 10.3.0-beta.1 - 2022-08-11
213
- * [#1511](https://github.com/stripe/stripe-node/pull/1511) API Updates for beta branch
214
- - Updated stable APIs to the latest version
215
- - Add refund_payment method to Terminal resource
216
-
217
227
  ## 10.2.0 - 2022-08-11
218
228
  * [#1510](https://github.com/stripe/stripe-node/pull/1510) API Updates
219
229
  * Add support for `payment_method_collection` on `Checkout.Session`, `CheckoutSessionCreateParams`, `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
220
230
 
231
+
221
232
  ## 10.1.0 - 2022-08-09
222
233
  * [#1506](https://github.com/stripe/stripe-node/pull/1506) API Updates
223
234
  * Add support for `process_config` on `Terminal.Reader.action.process_payment_intent`
@@ -227,22 +238,50 @@ This release includes breaking changes resulting from moving to use the new API
227
238
  * [#1503](https://github.com/stripe/stripe-node/pull/1503) API Updates
228
239
  * Add support for `expires_at` on `Apps.Secret` and `AppsSecretCreateParams`
229
240
 
230
- ## 10.1.0-beta.1 - 2022-08-03
231
- * [#1498](https://github.com/stripe/stripe-node/pull/1498) API Updates for beta branch
232
- - Updated stable APIs to the latest version
233
- - Added the `Order` resource support
234
-
235
241
  ## 10.0.0 - 2022-08-02
236
242
 
237
- Major version release for API version 2022-08-01. Default API version changed to "2022-08-01".
243
+ This release includes breaking changes resulting from:
238
244
 
239
- 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.
245
+ * 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
246
+ * 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.
240
247
 
241
248
  "⚠️" symbol highlights breaking changes.
242
249
 
243
250
  * [#1497](https://github.com/stripe/stripe-node/pull/1497) API Updates
244
251
  * [#1493](https://github.com/stripe/stripe-node/pull/1493) Next major release changes
245
252
 
253
+ ### Added
254
+ * 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`
255
+ * Add support for `shipping_cost` and `shipping_details` on `Checkout.Session`
256
+
257
+ ### ⚠️ Changed
258
+ * Change type of `business_profile`, `business_type`, `country`, `default_currency`, and `settings` properties on `Account` resource to be nullable.
259
+ * Change type of `currency` property on `Checkout.Session` resource from `string` to `'cad' | 'usd'`.
260
+ * 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`.
261
+ * Change type of `address`, `currency`, `delinquent`, `discount`, `invoice_prefix`, `name`, `phone`, and `preferred_locales` properties on `Customer` resource to be nullable.
262
+ * Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`.
263
+
264
+ ### ⚠️ Removed
265
+ * Remove for `AlipayAccount`, `DeletedAlipayAccount`, `BitcoinReceiver`, `DeletedBitcoinReceiver`, `BitcoinTransaction`, and `BitcoinTransactionListParams` definitions.
266
+ * Remove `AlipayAccount` and `BitcoinReceiver` from `CustomerSource`.
267
+ * Remove `Stripe.DeletedAlipayAccount` and `Stripe.DeletedBitcoinReceiver` from possible values of `source` property in `PaymentIntent`.
268
+ * Remove `IssuerFraudRecord`, `IssuerFraudRecordRetrieveParams`, `IssuerFraudRecordListParams`, and `IssuerFraudRecordsResource`, definitions.
269
+ * Remove `treasury.received_credit.reversed` webhook event constant. Please use `treasury.received_credit.returned` instead.
270
+ * Remove `order.payment_failed`, `transfer.failed`, and `transfer.paid`. The events were deprecated.
271
+ * Remove `retrieveDetails` method from `Issuing.Card` resource. The method was unsupported. Read more at https://stripe.com/docs/issuing/cards/virtual.
272
+ * Remove `Issuing.CardDetails` and `CardRetrieveDetailsParams` definition.
273
+ * Remove `IssuerFraudRecords` resource.
274
+ * Remove `Recipient` resource and`recipient` property from `Card` resource.
275
+ * Remove `InvoiceMarkUncollectibleParams` definition.
276
+ * Remove deprecated `Stripe.Errors` and `StripeError` (and derived `StripeCardError`, `StripeInvalidRequestError`, `StripeAPIError`, `StripeAuthenticationError`, `StripePermissionError`, `StripeRateLimitError`, `StripeConnectionError`, `StripeSignatureVerificationError`, `StripeIdempotencyError`, and `StripeInvalidGrantError`) definitions.
277
+ * Remove `redirect_url` from `LoginLinks` definition. The property is no longer supported.
278
+ * Remove `LineItemListParams` definition. The interface was no longer in use.
279
+
280
+ ### ⚠️ Renamed
281
+ * Rename `listUpcomingLineItems` method on `Invoice` resource to `listUpcomingLines`.
282
+ * Rename `InvoiceLineItemListUpcomingParams` to `InvoiceListUpcomingLinesParams`.
283
+ * Rename `InvoiceRetrieveUpcomingParams` to `InvoiceListUpcomingLinesParams`.
284
+
246
285
  ## 9.16.0 - 2022-07-26
247
286
  * [#1492](https://github.com/stripe/stripe-node/pull/1492) API Updates
248
287
  * 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`
@@ -259,20 +298,6 @@ Breaking changes that arose during code generation of the library that we postpo
259
298
  * Add support for `mandate` on `InvoicePayParams`
260
299
  * Add support for `product_data` on `OrderCreateParams.line_items[]` and `OrderUpdateParams.line_items[]`
261
300
 
262
- ## 9.15.0-beta.1 - 2022-07-22
263
- * [#1485](https://github.com/stripe/stripe-node/pull/1485) API Updates for beta branch
264
- - Updated stable APIs to the latest version
265
- * [#1483](https://github.com/stripe/stripe-node/pull/1483) API Updates for beta branch
266
- - Updated stable APIs to the latest version
267
- - Add `QuotePhase` resource
268
- * [#1479](https://github.com/stripe/stripe-node/pull/1479) API Updates for beta branch
269
- - Updated stable APIs to the latest version
270
- - Add `Price.migrate_to` property
271
- - Add `SubscriptionSchedule.amend` method.
272
- - Add `Discount.subscription_item` property.
273
- - Add `Quote.subscription_data.billing_behavior`, `billing_cycle_anchor`, `end_behavior`, `from_schedule`, `from_subscription`, `prebilling`, `proration_behavior` properties.
274
- - Add `phases` parameter to `Quote.create`
275
- - Add `Subscription.discounts`, `prebilling` properties.
276
301
 
277
302
  ## 9.14.0 - 2022-07-18
278
303
  * [#1477](https://github.com/stripe/stripe-node/pull/1477) API Updates
@@ -295,18 +320,6 @@ Breaking changes that arose during code generation of the library that we postpo
295
320
  * Change `Transfer.source_type` to be optional and not nullable
296
321
  * [#1471](https://github.com/stripe/stripe-node/pull/1471) Update readme to include a note on beta packages
297
322
 
298
- ## 9.13.0-beta.1 - 2022-07-07
299
- * [#1469](https://github.com/stripe/stripe-node/pull/1469) API Updates for beta branch
300
- - Include `server_side_confirmation_beta=v1` beta
301
- - Add `secretKeyConfirmation` to `PaymentIntent`
302
- * [#1451](https://github.com/stripe/stripe-node/pull/1451) API Updates
303
- - Updated stable APIs to the latest version
304
- * [#1457](https://github.com/stripe/stripe-node/pull/1457) Use the generated API version
305
- * [#1445](https://github.com/stripe/stripe-node/pull/1445) Support updating pre-release versions
306
- * [#1442](https://github.com/stripe/stripe-node/pull/1442) API Updates
307
- * Add support for `network_details` method on resource `ReceivedCredits`/`ReceivedDebits`
308
- * [#1444](https://github.com/stripe/stripe-node/pull/1444) Merge master branch into beta branch
309
-
310
323
  ## 9.12.0 - 2022-07-07
311
324
  * [#1468](https://github.com/stripe/stripe-node/pull/1468) API Updates
312
325
  * Add support for `currency` on `CheckoutSessionCreateParams`, `InvoiceUpcomingLinesParams`, `InvoiceUpcomingParams`, `PaymentLinkCreateParams`, `SubscriptionCreateParams`, `SubscriptionSchedule.phases[]`, `SubscriptionScheduleCreateParams.phases[]`, `SubscriptionScheduleUpdateParams.phases[]`, and `Subscription`
@@ -369,10 +382,6 @@ Breaking changes that arose during code generation of the library that we postpo
369
382
  * 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`
370
383
  * Add support for `custom_unit_amount` on `PriceCreateParams` and `Price`
371
384
 
372
- ## 9.8.0-beta.1 - 2022-06-08
373
- * [#1442](https://github.com/stripe/stripe-node/pull/1442) API Updates
374
- * Add support for `network_details` method on resource `ReceivedCredits`/`ReceivedDebits`
375
-
376
385
  ## 9.7.0 - 2022-06-08
377
386
  * [#1441](https://github.com/stripe/stripe-node/pull/1441) API Updates
378
387
  * Add support for `affirm`, `bancontact`, `card`, `ideal`, `p24`, and `sofort` on `Checkout.Session.payment_method_options` and `CheckoutSessionCreateParams.payment_method_options`
@@ -393,6 +402,7 @@ Breaking changes that arose during code generation of the library that we postpo
393
402
  * Add support for `network` on `SetupIntent.payment_method_options.card`
394
403
  * Add support for new value `simulated_wisepos_e` on enums `Terminal.Reader.device_type` and `TerminalReaderListParams.device_type`
395
404
 
405
+
396
406
  ## 9.5.0 - 2022-05-26
397
407
  * [#1434](https://github.com/stripe/stripe-node/pull/1434) API Updates
398
408
  * Add support for `affirm_payments` and `link_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
@@ -463,6 +473,7 @@ Major version release - The [migration guide](https://github.com/stripe/stripe-n
463
473
  * Add support for `default_price` on `ProductUpdateParams` and `Product`
464
474
  * Add support for `instructions_email` on `RefundCreateParams` and `Refund`
465
475
 
476
+
466
477
  ## 8.221.0 - 2022-05-05
467
478
  * [#1413](https://github.com/stripe/stripe-node/pull/1413) API Updates
468
479
  * Add support for new resources `FinancialConnections.AccountOwner`, `FinancialConnections.AccountOwnership`, `FinancialConnections.Account`, and `FinancialConnections.Session`
@@ -739,6 +750,7 @@ Major version release - The [migration guide](https://github.com/stripe/stripe-n
739
750
  * [#1297](https://github.com/stripe/stripe-node/pull/1297) API Updates
740
751
  * Add support for `automatic_payment_methods` on `PaymentIntentCreateParams` and `PaymentIntent`
741
752
 
753
+
742
754
  ## 8.189.0 - 2021-11-16
743
755
  * [#1295](https://github.com/stripe/stripe-node/pull/1295) API Updates
744
756
  * Add support for new resource `ShippingRate`
@@ -761,6 +773,7 @@ Major version release - The [migration guide](https://github.com/stripe/stripe-n
761
773
  * Remove support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account`. This API was unused.
762
774
  * Add support for `ownership_declaration_shown_and_signed` on `TokenCreateParams.account.company`
763
775
 
776
+
764
777
  ## 8.186.0 - 2021-11-01
765
778
  * [#1283](https://github.com/stripe/stripe-node/pull/1283) API Updates
766
779
  * Add support for `ownership_declaration` on `AccountUpdateParams.company`, `AccountCreateParams.company`, `Account.company`, and `TokenCreateParams.account.company`
@@ -904,6 +917,7 @@ Major version release - The [migration guide](https://github.com/stripe/stripe-n
904
917
  * Add support for `wallet` on `Issuing.Transaction`
905
918
  * Add support for `ideal` on `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, and `PaymentIntent.payment_method_options`
906
919
 
920
+
907
921
  ## 8.163.0 - 2021-07-15
908
922
  * [#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
909
923
 
@@ -2436,7 +2450,7 @@ Pull requests included in this release (cf. [#606](https://github.com/stripe/str
2436
2450
 
2437
2451
  - [BUGFIX] Fix incorrect deleteDiscount method & related spec(s)
2438
2452
 
2439
- ## 2.2.1 - 2013-12-01
2453
+ ### 2.2.1 - 2013-12-01
2440
2454
 
2441
2455
  - [BUGFIX] Fix user-agent header issue (see issue #75)
2442
2456
 
@@ -2499,4 +2513,3 @@ Pull requests included in this release (cf. [#606](https://github.com/stripe/str
2499
2513
  ## 0.0.2 - 2011-09-28
2500
2514
 
2501
2515
  - Initial release with customers and tokens APIs
2502
-
package/VERSION CHANGED
@@ -1 +1 @@
1
- 11.3.0-beta.1
1
+ 11.4.0
@@ -20,10 +20,6 @@ module.exports = StripeResource.extend({
20
20
  fullPath: '/v1/subscription_schedules',
21
21
  methodType: 'list',
22
22
  }),
23
- amend: stripeMethod({
24
- method: 'POST',
25
- fullPath: '/v1/subscription_schedules/{schedule}/amend',
26
- }),
27
23
  cancel: stripeMethod({
28
24
  method: 'POST',
29
25
  fullPath: '/v1/subscription_schedules/{schedule}/cancel',
@@ -36,10 +36,6 @@ module.exports = StripeResource.extend({
36
36
  method: 'POST',
37
37
  fullPath: '/v1/terminal/readers/{reader}/process_setup_intent',
38
38
  }),
39
- refundPayment: stripeMethod({
40
- method: 'POST',
41
- fullPath: '/v1/terminal/readers/{reader}/refund_payment',
42
- }),
43
39
  setReaderDisplay: stripeMethod({
44
40
  method: 'POST',
45
41
  fullPath: '/v1/terminal/readers/{reader}/set_reader_display',
package/lib/resources.js CHANGED
@@ -6,7 +6,6 @@ module.exports = {
6
6
  Account: require('./resources/Accounts'),
7
7
  AccountLinks: require('./resources/AccountLinks'),
8
8
  Accounts: require('./resources/Accounts'),
9
- AccountSessions: require('./resources/AccountSessions'),
10
9
  ApplePayDomains: require('./resources/ApplePayDomains'),
11
10
  ApplicationFees: require('./resources/ApplicationFees'),
12
11
  Balance: require('./resources/Balance'),
@@ -26,7 +25,6 @@ module.exports = {
26
25
  Invoices: require('./resources/Invoices'),
27
26
  Mandates: require('./resources/Mandates'),
28
27
  OAuth: require('./resources/OAuth'),
29
- Orders: require('./resources/Orders'),
30
28
  PaymentIntents: require('./resources/PaymentIntents'),
31
29
  PaymentLinks: require('./resources/PaymentLinks'),
32
30
  PaymentMethods: require('./resources/PaymentMethods'),
@@ -35,7 +33,6 @@ module.exports = {
35
33
  Prices: require('./resources/Prices'),
36
34
  Products: require('./resources/Products'),
37
35
  PromotionCodes: require('./resources/PromotionCodes'),
38
- QuotePhases: require('./resources/QuotePhases'),
39
36
  Quotes: require('./resources/Quotes'),
40
37
  Refunds: require('./resources/Refunds'),
41
38
  Reviews: require('./resources/Reviews'),
@@ -59,11 +56,6 @@ module.exports = {
59
56
  Configurations: require('./resources/BillingPortal/Configurations'),
60
57
  Sessions: require('./resources/BillingPortal/Sessions'),
61
58
  }),
62
- Capital: resourceNamespace('capital', {
63
- FinancingOffers: require('./resources/Capital/FinancingOffers'),
64
- FinancingSummary: require('./resources/Capital/FinancingSummary'),
65
- FinancingTransactions: require('./resources/Capital/FinancingTransactions'),
66
- }),
67
59
  Checkout: resourceNamespace('checkout', {
68
60
  Sessions: require('./resources/Checkout/Sessions'),
69
61
  }),
@@ -71,10 +63,6 @@ module.exports = {
71
63
  Accounts: require('./resources/FinancialConnections/Accounts'),
72
64
  Sessions: require('./resources/FinancialConnections/Sessions'),
73
65
  }),
74
- GiftCards: resourceNamespace('giftCards', {
75
- Cards: require('./resources/GiftCards/Cards'),
76
- Transactions: require('./resources/GiftCards/Transactions'),
77
- }),
78
66
  Identity: resourceNamespace('identity', {
79
67
  VerificationReports: require('./resources/Identity/VerificationReports'),
80
68
  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": "11.3.0-beta.1",
3
+ "version": "11.4.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
  */
@@ -335,11 +330,6 @@ declare module 'stripe' {
335
330
  * The status of the US bank account ACH payments capability of the account, or whether the account can directly process US bank account charges.
336
331
  */
337
332
  us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
338
-
339
- /**
340
- * The status of the Zip capability of the account, or whether the account can directly process Zip charges.
341
- */
342
- zip_payments?: Capabilities.ZipPayments;
343
333
  }
344
334
 
345
335
  namespace Capabilities {
@@ -367,8 +357,6 @@ declare module 'stripe' {
367
357
 
368
358
  type CartesBancairesPayments = 'active' | 'inactive' | 'pending';
369
359
 
370
- type CashappPayments = 'active' | 'inactive' | 'pending';
371
-
372
360
  type EpsPayments = 'active' | 'inactive' | 'pending';
373
361
 
374
362
  type FpxPayments = 'active' | 'inactive' | 'pending';
@@ -412,8 +400,6 @@ declare module 'stripe' {
412
400
  type Treasury = 'active' | 'inactive' | 'pending';
413
401
 
414
402
  type UsBankAccountAchPayments = 'active' | 'inactive' | 'pending';
415
-
416
- type ZipPayments = 'active' | 'inactive' | 'pending';
417
403
  }
418
404
 
419
405
  interface Company {
@@ -196,11 +196,6 @@ declare module 'stripe' {
196
196
  */
197
197
  cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;
198
198
 
199
- /**
200
- * The cashapp_payments capability.
201
- */
202
- cashapp_payments?: Capabilities.CashappPayments;
203
-
204
199
  /**
205
200
  * The eps_payments capability.
206
201
  */
@@ -310,11 +305,6 @@ declare module 'stripe' {
310
305
  * The us_bank_account_ach_payments capability.
311
306
  */
312
307
  us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
313
-
314
- /**
315
- * The zip_payments capability.
316
- */
317
- zip_payments?: Capabilities.ZipPayments;
318
308
  }
319
309
 
320
310
  namespace Capabilities {
@@ -402,13 +392,6 @@ declare module 'stripe' {
402
392
  requested?: boolean;
403
393
  }
404
394
 
405
- interface CashappPayments {
406
- /**
407
- * 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.
408
- */
409
- requested?: boolean;
410
- }
411
-
412
395
  interface EpsPayments {
413
396
  /**
414
397
  * 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.
@@ -562,13 +545,6 @@ declare module 'stripe' {
562
545
  */
563
546
  requested?: boolean;
564
547
  }
565
-
566
- interface ZipPayments {
567
- /**
568
- * 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.
569
- */
570
- requested?: boolean;
571
- }
572
548
  }
573
549
 
574
550
  interface Company {
@@ -1447,11 +1423,6 @@ declare module 'stripe' {
1447
1423
  */
1448
1424
  cartes_bancaires_payments?: Capabilities.CartesBancairesPayments;
1449
1425
 
1450
- /**
1451
- * The cashapp_payments capability.
1452
- */
1453
- cashapp_payments?: Capabilities.CashappPayments;
1454
-
1455
1426
  /**
1456
1427
  * The eps_payments capability.
1457
1428
  */
@@ -1561,11 +1532,6 @@ declare module 'stripe' {
1561
1532
  * The us_bank_account_ach_payments capability.
1562
1533
  */
1563
1534
  us_bank_account_ach_payments?: Capabilities.UsBankAccountAchPayments;
1564
-
1565
- /**
1566
- * The zip_payments capability.
1567
- */
1568
- zip_payments?: Capabilities.ZipPayments;
1569
1535
  }
1570
1536
 
1571
1537
  namespace Capabilities {
@@ -1653,13 +1619,6 @@ declare module 'stripe' {
1653
1619
  requested?: boolean;
1654
1620
  }
1655
1621
 
1656
- interface CashappPayments {
1657
- /**
1658
- * 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.
1659
- */
1660
- requested?: boolean;
1661
- }
1662
-
1663
1622
  interface EpsPayments {
1664
1623
  /**
1665
1624
  * 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.
@@ -1813,13 +1772,6 @@ declare module 'stripe' {
1813
1772
  */
1814
1773
  requested?: boolean;
1815
1774
  }
1816
-
1817
- interface ZipPayments {
1818
- /**
1819
- * 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.
1820
- */
1821
- requested?: boolean;
1822
- }
1823
1775
  }
1824
1776
 
1825
1777
  interface Company {