stripe 17.3.0-beta.1 → 17.3.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 (164) hide show
  1. package/CHANGELOG.md +152 -925
  2. package/README.md +4 -4
  3. package/VERSION +1 -1
  4. package/cjs/apiVersion.js +1 -1
  5. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  6. package/cjs/resources/Invoices.js +0 -17
  7. package/cjs/resources/PaymentIntents.js +0 -4
  8. package/cjs/resources/Quotes.js +0 -32
  9. package/cjs/resources/SubscriptionSchedules.js +0 -4
  10. package/cjs/resources/Terminal/Readers.js +0 -12
  11. package/cjs/resources/V2/Core/EventDestinations.js +41 -0
  12. package/cjs/resources/V2/Core.js +2 -0
  13. package/cjs/resources.js +10 -42
  14. package/cjs/stripe.core.js +1 -1
  15. package/esm/apiVersion.js +1 -1
  16. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  17. package/esm/resources/Invoices.js +0 -17
  18. package/esm/resources/PaymentIntents.js +0 -4
  19. package/esm/resources/Quotes.js +0 -32
  20. package/esm/resources/SubscriptionSchedules.js +0 -4
  21. package/esm/resources/Terminal/Readers.js +0 -12
  22. package/esm/resources/V2/Core/EventDestinations.js +38 -0
  23. package/esm/resources/V2/Core.js +2 -0
  24. package/esm/resources.js +0 -29
  25. package/esm/stripe.core.js +1 -1
  26. package/package.json +1 -1
  27. package/types/AccountLinksResource.d.ts +1 -5
  28. package/types/AccountSessions.d.ts +0 -45
  29. package/types/AccountSessionsResource.d.ts +0 -324
  30. package/types/Accounts.d.ts +1 -155
  31. package/types/AccountsResource.d.ts +1 -415
  32. package/types/Charges.d.ts +0 -83
  33. package/types/ChargesResource.d.ts +0 -1294
  34. package/types/Checkout/Sessions.d.ts +79 -302
  35. package/types/Checkout/SessionsResource.d.ts +85 -354
  36. package/types/ConfirmationTokens.d.ts +0 -82
  37. package/types/Coupons.d.ts +1 -1
  38. package/types/CouponsResource.d.ts +1 -1
  39. package/types/CreditNotes.d.ts +0 -21
  40. package/types/CreditNotesResource.d.ts +0 -51
  41. package/types/CustomersResource.d.ts +0 -6
  42. package/types/Disputes.d.ts +3 -3
  43. package/types/EventTypes.d.ts +18 -545
  44. package/types/Events.d.ts +1 -90
  45. package/types/FinancialConnections/Accounts.d.ts +1 -29
  46. package/types/FinancialConnections/AccountsResource.d.ts +3 -35
  47. package/types/FinancialConnections/Sessions.d.ts +1 -49
  48. package/types/FinancialConnections/SessionsResource.d.ts +1 -38
  49. package/types/InvoiceItems.d.ts +0 -5
  50. package/types/InvoiceItemsResource.d.ts +0 -98
  51. package/types/InvoiceLineItems.d.ts +1 -28
  52. package/types/Invoices.d.ts +2 -124
  53. package/types/InvoicesResource.d.ts +1855 -5503
  54. package/types/Issuing/CardholdersResource.d.ts +1 -2
  55. package/types/Issuing/Transactions.d.ts +0 -2
  56. package/types/Issuing/TransactionsResource.d.ts +0 -5
  57. package/types/LineItems.d.ts +0 -7
  58. package/types/Mandates.d.ts +0 -77
  59. package/types/PaymentIntents.d.ts +1 -613
  60. package/types/PaymentIntentsResource.d.ts +3687 -7740
  61. package/types/PaymentLinks.d.ts +0 -6
  62. package/types/PaymentLinksResource.d.ts +0 -12
  63. package/types/PaymentMethodConfigurations.d.ts +0 -36
  64. package/types/PaymentMethodConfigurationsResource.d.ts +0 -50
  65. package/types/PaymentMethods.d.ts +0 -82
  66. package/types/PaymentMethodsResource.d.ts +0 -115
  67. package/types/Prices.d.ts +0 -22
  68. package/types/PricesResource.d.ts +0 -22
  69. package/types/Products.d.ts +0 -39
  70. package/types/ProductsResource.d.ts +0 -36
  71. package/types/Quotes.d.ts +1 -591
  72. package/types/QuotesResource.d.ts +199 -2531
  73. package/types/Refunds.d.ts +1 -4
  74. package/types/SetupAttempts.d.ts +0 -11
  75. package/types/SetupIntents.d.ts +1 -112
  76. package/types/SetupIntentsResource.d.ts +3 -594
  77. package/types/Sources.d.ts +0 -23
  78. package/types/SubscriptionItems.d.ts +0 -21
  79. package/types/SubscriptionItemsResource.d.ts +0 -109
  80. package/types/SubscriptionSchedules.d.ts +0 -200
  81. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  82. package/types/Subscriptions.d.ts +1 -82
  83. package/types/SubscriptionsResource.d.ts +2 -347
  84. package/types/Terminal/Readers.d.ts +0 -278
  85. package/types/Terminal/ReadersResource.d.ts +0 -215
  86. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -87
  87. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  88. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  89. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  90. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  91. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  92. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  93. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  94. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  95. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  96. package/types/V2/Core/EventDestinationsResource.d.ts +281 -0
  97. package/types/V2/Core/EventsResource.d.ts +1 -1
  98. package/types/V2/CoreResource.d.ts +1 -0
  99. package/types/V2/EventDestinations.d.ts +164 -0
  100. package/types/WebhookEndpointsResource.d.ts +4 -65
  101. package/types/index.d.ts +2 -53
  102. package/cjs/resources/AccountNotices.js +0 -21
  103. package/cjs/resources/Capital/FinancingOffers.js +0 -21
  104. package/cjs/resources/Capital/FinancingSummary.js +0 -12
  105. package/cjs/resources/Capital/FinancingTransactions.js +0 -17
  106. package/cjs/resources/FinancialConnections/Institutions.js +0 -17
  107. package/cjs/resources/GiftCards/Cards.js +0 -23
  108. package/cjs/resources/GiftCards/Transactions.js +0 -33
  109. package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
  110. package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
  111. package/cjs/resources/Margins.js +0 -22
  112. package/cjs/resources/Orders.js +0 -24
  113. package/cjs/resources/Tax/Associations.js +0 -9
  114. package/cjs/resources/Tax/Forms.js +0 -20
  115. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  116. package/esm/resources/AccountNotices.js +0 -18
  117. package/esm/resources/Capital/FinancingOffers.js +0 -18
  118. package/esm/resources/Capital/FinancingSummary.js +0 -9
  119. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  120. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  121. package/esm/resources/GiftCards/Cards.js +0 -20
  122. package/esm/resources/GiftCards/Transactions.js +0 -30
  123. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  124. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  125. package/esm/resources/Margins.js +0 -19
  126. package/esm/resources/Orders.js +0 -21
  127. package/esm/resources/Tax/Associations.js +0 -6
  128. package/esm/resources/Tax/Forms.js +0 -17
  129. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  130. package/types/AccountNotices.d.ts +0 -113
  131. package/types/AccountNoticesResource.d.ts +0 -98
  132. package/types/Billing/MeterErrorReports.d.ts +0 -106
  133. package/types/Capital/FinancingOffers.d.ts +0 -188
  134. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  135. package/types/Capital/FinancingSummary.d.ts +0 -106
  136. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  137. package/types/Capital/FinancingTransactions.d.ts +0 -135
  138. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  139. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  140. package/types/FinancialConnections/Institutions.d.ts +0 -93
  141. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  142. package/types/GiftCards/Cards.d.ts +0 -118
  143. package/types/GiftCards/CardsResource.d.ts +0 -159
  144. package/types/GiftCards/Transactions.d.ts +0 -129
  145. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  146. package/types/InvoicePayments.d.ts +0 -138
  147. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  148. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  149. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  150. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  151. package/types/Issuing/Settlements.d.ts +0 -103
  152. package/types/Margins.d.ts +0 -56
  153. package/types/MarginsResource.d.ts +0 -114
  154. package/types/Orders.d.ts +0 -1154
  155. package/types/OrdersResource.d.ts +0 -2911
  156. package/types/QuoteLines.d.ts +0 -634
  157. package/types/QuotePreviewInvoices.d.ts +0 -1601
  158. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -814
  159. package/types/Tax/Associations.d.ts +0 -126
  160. package/types/Tax/AssociationsResource.d.ts +0 -29
  161. package/types/Tax/Forms.d.ts +0 -220
  162. package/types/Tax/FormsResource.d.ts +0 -107
  163. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  164. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
package/README.md CHANGED
@@ -197,7 +197,7 @@ const stripe = Stripe('sk_test_...', {
197
197
  | `host` | `'api.stripe.com'` | Host that requests are made to. |
198
198
  | `port` | 443 | Port that requests are made to. |
199
199
  | `protocol` | `'https'` | `'https'` or `'http'`. `http` is never appropriate for sending requests to Stripe servers, and we strongly discourage `http`, even in local testing scenarios, as this can result in your credentials being transmitted over an insecure channel. |
200
- | `telemetry` | `true` | Allow Stripe to send [telemetry](#telemetry). |
200
+ | `telemetry` | `true` | Allow Stripe to send [telemetry](#telemetry). |
201
201
 
202
202
  > **Note**
203
203
  > Both `maxNetworkRetries` and `timeout` can be overridden on a per-request basis.
@@ -522,7 +522,6 @@ const stripe = new Stripe('sk_test_...', {
522
522
  If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on the StripeClient object.
523
523
 
524
524
  ```javascript
525
- import Stripe from 'stripe';
526
525
  const client = new Stripe('sk_test_...');
527
526
 
528
527
  client.rawRequest(
@@ -544,13 +543,14 @@ const stripe = new Stripe('sk_test_...');
544
543
  const response = await stripe.rawRequest(
545
544
  'POST',
546
545
  '/v1/beta_endpoint',
547
- {param: 123},
548
- {apiVersion: '2022-11-15; feature_beta=v3'}
546
+ { param: 123 },
547
+ { apiVersion: '2022-11-15; feature_beta=v3' }
549
548
  );
550
549
 
551
550
  // handle response
552
551
  ```
553
552
 
553
+
554
554
  ## Support
555
555
 
556
556
  New features and bug fixes are released on the latest major version of the `stripe` package. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
package/VERSION CHANGED
@@ -1 +1 @@
1
- 17.3.0-beta.1
1
+ 17.3.0
package/cjs/apiVersion.js CHANGED
@@ -2,4 +2,4 @@
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.ApiVersion = void 0;
5
- exports.ApiVersion = '2024-09-30.acacia';
5
+ exports.ApiVersion = '2024-10-28.acacia';
@@ -18,11 +18,6 @@ exports.Accounts = StripeResource_js_1.StripeResource.extend({
18
18
  method: 'POST',
19
19
  fullPath: '/v1/financial_connections/accounts/{account}/disconnect',
20
20
  }),
21
- listInferredBalances: stripeMethod({
22
- method: 'GET',
23
- fullPath: '/v1/financial_connections/accounts/{account}/inferred_balances',
24
- methodType: 'list',
25
- }),
26
21
  listOwners: stripeMethod({
27
22
  method: 'GET',
28
23
  fullPath: '/v1/financial_connections/accounts/{account}/owners',
@@ -18,14 +18,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
18
18
  method: 'POST',
19
19
  fullPath: '/v1/invoices/{invoice}/add_lines',
20
20
  }),
21
- attachPayment: stripeMethod({
22
- method: 'POST',
23
- fullPath: '/v1/invoices/{invoice}/attach_payment',
24
- }),
25
- attachPaymentIntent: stripeMethod({
26
- method: 'POST',
27
- fullPath: '/v1/invoices/{invoice}/attach_payment_intent',
28
- }),
29
21
  createPreview: stripeMethod({
30
22
  method: 'POST',
31
23
  fullPath: '/v1/invoices/create_preview',
@@ -39,11 +31,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
39
31
  fullPath: '/v1/invoices/{invoice}/lines',
40
32
  methodType: 'list',
41
33
  }),
42
- listPayments: stripeMethod({
43
- method: 'GET',
44
- fullPath: '/v1/invoices/{invoice}/payments',
45
- methodType: 'list',
46
- }),
47
34
  listUpcomingLines: stripeMethod({
48
35
  method: 'GET',
49
36
  fullPath: '/v1/invoices/upcoming/lines',
@@ -58,10 +45,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
58
45
  method: 'POST',
59
46
  fullPath: '/v1/invoices/{invoice}/remove_lines',
60
47
  }),
61
- retrievePayment: stripeMethod({
62
- method: 'GET',
63
- fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
64
- }),
65
48
  retrieveUpcoming: stripeMethod({
66
49
  method: 'GET',
67
50
  fullPath: '/v1/invoices/upcoming',
@@ -35,10 +35,6 @@ exports.PaymentIntents = StripeResource_js_1.StripeResource.extend({
35
35
  method: 'POST',
36
36
  fullPath: '/v1/payment_intents/{intent}/confirm',
37
37
  }),
38
- decrementAuthorization: stripeMethod({
39
- method: 'POST',
40
- fullPath: '/v1/payment_intents/{intent}/decrement_authorization',
41
- }),
42
38
  incrementAuthorization: stripeMethod({
43
39
  method: 'POST',
44
40
  fullPath: '/v1/payment_intents/{intent}/increment_authorization',
@@ -19,11 +19,6 @@ exports.Quotes = StripeResource_js_1.StripeResource.extend({
19
19
  method: 'POST',
20
20
  fullPath: '/v1/quotes/{quote}/finalize',
21
21
  }),
22
- listPreviewInvoiceLines: stripeMethod({
23
- method: 'GET',
24
- fullPath: '/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines',
25
- methodType: 'list',
26
- }),
27
22
  listComputedUpfrontLineItems: stripeMethod({
28
23
  method: 'GET',
29
24
  fullPath: '/v1/quotes/{quote}/computed_upfront_line_items',
@@ -34,37 +29,10 @@ exports.Quotes = StripeResource_js_1.StripeResource.extend({
34
29
  fullPath: '/v1/quotes/{quote}/line_items',
35
30
  methodType: 'list',
36
31
  }),
37
- listLines: stripeMethod({
38
- method: 'GET',
39
- fullPath: '/v1/quotes/{quote}/lines',
40
- methodType: 'list',
41
- }),
42
- listPreviewInvoices: stripeMethod({
43
- method: 'GET',
44
- fullPath: '/v1/quotes/{quote}/preview_invoices',
45
- methodType: 'list',
46
- }),
47
- listPreviewSubscriptionSchedules: stripeMethod({
48
- method: 'GET',
49
- fullPath: '/v1/quotes/{quote}/preview_subscription_schedules',
50
- methodType: 'list',
51
- }),
52
- markDraft: stripeMethod({
53
- method: 'POST',
54
- fullPath: '/v1/quotes/{quote}/mark_draft',
55
- }),
56
- markStale: stripeMethod({
57
- method: 'POST',
58
- fullPath: '/v1/quotes/{quote}/mark_stale',
59
- }),
60
32
  pdf: stripeMethod({
61
33
  method: 'GET',
62
34
  fullPath: '/v1/quotes/{quote}/pdf',
63
35
  host: 'files.stripe.com',
64
36
  streaming: true,
65
37
  }),
66
- reestimate: stripeMethod({
67
- method: 'POST',
68
- fullPath: '/v1/quotes/{quote}/reestimate',
69
- }),
70
38
  });
@@ -22,10 +22,6 @@ exports.SubscriptionSchedules = StripeResource_js_1.StripeResource.extend({
22
22
  fullPath: '/v1/subscription_schedules',
23
23
  methodType: 'list',
24
24
  }),
25
- amend: stripeMethod({
26
- method: 'POST',
27
- fullPath: '/v1/subscription_schedules/{schedule}/amend',
28
- }),
29
25
  cancel: stripeMethod({
30
26
  method: 'POST',
31
27
  fullPath: '/v1/subscription_schedules/{schedule}/cancel',
@@ -27,18 +27,6 @@ exports.Readers = StripeResource_js_1.StripeResource.extend({
27
27
  method: 'POST',
28
28
  fullPath: '/v1/terminal/readers/{reader}/cancel_action',
29
29
  }),
30
- collectInputs: stripeMethod({
31
- method: 'POST',
32
- fullPath: '/v1/terminal/readers/{reader}/collect_inputs',
33
- }),
34
- collectPaymentMethod: stripeMethod({
35
- method: 'POST',
36
- fullPath: '/v1/terminal/readers/{reader}/collect_payment_method',
37
- }),
38
- confirmPaymentIntent: stripeMethod({
39
- method: 'POST',
40
- fullPath: '/v1/terminal/readers/{reader}/confirm_payment_intent',
41
- }),
42
30
  processPaymentIntent: stripeMethod({
43
31
  method: 'POST',
44
32
  fullPath: '/v1/terminal/readers/{reader}/process_payment_intent',
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.EventDestinations = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.EventDestinations = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/core/event_destinations',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/core/event_destinations/{id}',
15
+ }),
16
+ update: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v2/core/event_destinations/{id}',
19
+ }),
20
+ list: stripeMethod({
21
+ method: 'GET',
22
+ fullPath: '/v2/core/event_destinations',
23
+ methodType: 'list',
24
+ }),
25
+ del: stripeMethod({
26
+ method: 'DELETE',
27
+ fullPath: '/v2/core/event_destinations/{id}',
28
+ }),
29
+ disable: stripeMethod({
30
+ method: 'POST',
31
+ fullPath: '/v2/core/event_destinations/{id}/disable',
32
+ }),
33
+ enable: stripeMethod({
34
+ method: 'POST',
35
+ fullPath: '/v2/core/event_destinations/{id}/enable',
36
+ }),
37
+ ping: stripeMethod({
38
+ method: 'POST',
39
+ fullPath: '/v2/core/event_destinations/{id}/ping',
40
+ }),
41
+ });
@@ -3,10 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  exports.Core = void 0;
5
5
  const StripeResource_js_1 = require("../../StripeResource.js");
6
+ const EventDestinations_js_1 = require("./Core/EventDestinations.js");
6
7
  const Events_js_1 = require("./Core/Events.js");
7
8
  exports.Core = StripeResource_js_1.StripeResource.extend({
8
9
  constructor: function (...args) {
9
10
  StripeResource_js_1.StripeResource.apply(this, args);
11
+ this.eventDestinations = new EventDestinations_js_1.EventDestinations(...args);
10
12
  this.events = new Events_js_1.Events(...args);
11
13
  },
12
14
  });
package/cjs/resources.js CHANGED
@@ -1,20 +1,18 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.Orders = exports.OAuth = exports.Margins = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoiceItems = exports.Files = exports.FileLinks = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountNotices = exports.AccountLinks = exports.Account = void 0;
5
- exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.GiftCards = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.V2 = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = void 0;
4
+ exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.OAuth = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoiceItems = exports.Files = exports.FileLinks = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountLinks = exports.Account = void 0;
5
+ exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.V2 = exports.Transfers = exports.Topups = void 0;
6
6
  const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
7
7
  const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
8
8
  const ActiveEntitlements_js_1 = require("./resources/Entitlements/ActiveEntitlements.js");
9
9
  const Alerts_js_1 = require("./resources/Billing/Alerts.js");
10
- const Associations_js_1 = require("./resources/Tax/Associations.js");
11
10
  const Authorizations_js_1 = require("./resources/TestHelpers/Issuing/Authorizations.js");
12
11
  const Authorizations_js_2 = require("./resources/Issuing/Authorizations.js");
13
12
  const Calculations_js_1 = require("./resources/Tax/Calculations.js");
14
13
  const Cardholders_js_1 = require("./resources/Issuing/Cardholders.js");
15
14
  const Cards_js_1 = require("./resources/TestHelpers/Issuing/Cards.js");
16
- const Cards_js_2 = require("./resources/GiftCards/Cards.js");
17
- const Cards_js_3 = require("./resources/Issuing/Cards.js");
15
+ const Cards_js_2 = require("./resources/Issuing/Cards.js");
18
16
  const Configurations_js_1 = require("./resources/BillingPortal/Configurations.js");
19
17
  const Configurations_js_2 = require("./resources/Terminal/Configurations.js");
20
18
  const ConfirmationTokens_js_1 = require("./resources/TestHelpers/ConfirmationTokens.js");
@@ -23,21 +21,14 @@ const CreditBalanceSummary_js_1 = require("./resources/Billing/CreditBalanceSumm
23
21
  const CreditBalanceTransactions_js_1 = require("./resources/Billing/CreditBalanceTransactions.js");
24
22
  const CreditGrants_js_1 = require("./resources/Billing/CreditGrants.js");
25
23
  const CreditReversals_js_1 = require("./resources/Treasury/CreditReversals.js");
26
- const CreditUnderwritingRecords_js_1 = require("./resources/Issuing/CreditUnderwritingRecords.js");
27
24
  const Customers_js_1 = require("./resources/TestHelpers/Customers.js");
28
25
  const DebitReversals_js_1 = require("./resources/Treasury/DebitReversals.js");
29
- const DisputeSettlementDetails_js_1 = require("./resources/Issuing/DisputeSettlementDetails.js");
30
26
  const Disputes_js_1 = require("./resources/Issuing/Disputes.js");
31
27
  const EarlyFraudWarnings_js_1 = require("./resources/Radar/EarlyFraudWarnings.js");
32
28
  const Features_js_1 = require("./resources/Entitlements/Features.js");
33
29
  const FinancialAccounts_js_1 = require("./resources/Treasury/FinancialAccounts.js");
34
- const FinancingOffers_js_1 = require("./resources/Capital/FinancingOffers.js");
35
- const FinancingSummary_js_1 = require("./resources/Capital/FinancingSummary.js");
36
- const FinancingTransactions_js_1 = require("./resources/Capital/FinancingTransactions.js");
37
- const Forms_js_1 = require("./resources/Tax/Forms.js");
38
30
  const InboundTransfers_js_1 = require("./resources/TestHelpers/Treasury/InboundTransfers.js");
39
31
  const InboundTransfers_js_2 = require("./resources/Treasury/InboundTransfers.js");
40
- const Institutions_js_1 = require("./resources/FinancialConnections/Institutions.js");
41
32
  const Locations_js_1 = require("./resources/Terminal/Locations.js");
42
33
  const MeterEventAdjustments_js_1 = require("./resources/Billing/MeterEventAdjustments.js");
43
34
  const MeterEvents_js_1 = require("./resources/Billing/MeterEvents.js");
@@ -51,7 +42,6 @@ const PersonalizationDesigns_js_1 = require("./resources/TestHelpers/Issuing/Per
51
42
  const PersonalizationDesigns_js_2 = require("./resources/Issuing/PersonalizationDesigns.js");
52
43
  const PhysicalBundles_js_1 = require("./resources/Issuing/PhysicalBundles.js");
53
44
  const Products_js_1 = require("./resources/Climate/Products.js");
54
- const ReaderCollectedData_js_1 = require("./resources/Terminal/ReaderCollectedData.js");
55
45
  const Readers_js_1 = require("./resources/TestHelpers/Terminal/Readers.js");
56
46
  const Readers_js_2 = require("./resources/Terminal/Readers.js");
57
47
  const ReceivedCredits_js_1 = require("./resources/TestHelpers/Treasury/ReceivedCredits.js");
@@ -75,10 +65,9 @@ const Tokens_js_1 = require("./resources/Issuing/Tokens.js");
75
65
  const TransactionEntries_js_1 = require("./resources/Treasury/TransactionEntries.js");
76
66
  const Transactions_js_1 = require("./resources/TestHelpers/Issuing/Transactions.js");
77
67
  const Transactions_js_2 = require("./resources/FinancialConnections/Transactions.js");
78
- const Transactions_js_3 = require("./resources/GiftCards/Transactions.js");
79
- const Transactions_js_4 = require("./resources/Issuing/Transactions.js");
80
- const Transactions_js_5 = require("./resources/Tax/Transactions.js");
81
- const Transactions_js_6 = require("./resources/Treasury/Transactions.js");
68
+ const Transactions_js_3 = require("./resources/Issuing/Transactions.js");
69
+ const Transactions_js_4 = require("./resources/Tax/Transactions.js");
70
+ const Transactions_js_5 = require("./resources/Treasury/Transactions.js");
82
71
  const ValueListItems_js_1 = require("./resources/Radar/ValueListItems.js");
83
72
  const ValueLists_js_1 = require("./resources/Radar/ValueLists.js");
84
73
  const VerificationReports_js_1 = require("./resources/Identity/VerificationReports.js");
@@ -87,8 +76,6 @@ var Accounts_js_2 = require("./resources/Accounts.js");
87
76
  Object.defineProperty(exports, "Account", { enumerable: true, get: function () { return Accounts_js_2.Accounts; } });
88
77
  var AccountLinks_js_1 = require("./resources/AccountLinks.js");
89
78
  Object.defineProperty(exports, "AccountLinks", { enumerable: true, get: function () { return AccountLinks_js_1.AccountLinks; } });
90
- var AccountNotices_js_1 = require("./resources/AccountNotices.js");
91
- Object.defineProperty(exports, "AccountNotices", { enumerable: true, get: function () { return AccountNotices_js_1.AccountNotices; } });
92
79
  var AccountSessions_js_1 = require("./resources/AccountSessions.js");
93
80
  Object.defineProperty(exports, "AccountSessions", { enumerable: true, get: function () { return AccountSessions_js_1.AccountSessions; } });
94
81
  var Accounts_js_3 = require("./resources/Accounts.js");
@@ -135,12 +122,8 @@ var Invoices_js_1 = require("./resources/Invoices.js");
135
122
  Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return Invoices_js_1.Invoices; } });
136
123
  var Mandates_js_1 = require("./resources/Mandates.js");
137
124
  Object.defineProperty(exports, "Mandates", { enumerable: true, get: function () { return Mandates_js_1.Mandates; } });
138
- var Margins_js_1 = require("./resources/Margins.js");
139
- Object.defineProperty(exports, "Margins", { enumerable: true, get: function () { return Margins_js_1.Margins; } });
140
125
  var OAuth_js_1 = require("./resources/OAuth.js");
141
126
  Object.defineProperty(exports, "OAuth", { enumerable: true, get: function () { return OAuth_js_1.OAuth; } });
142
- var Orders_js_2 = require("./resources/Orders.js");
143
- Object.defineProperty(exports, "Orders", { enumerable: true, get: function () { return Orders_js_2.Orders; } });
144
127
  var PaymentIntents_js_1 = require("./resources/PaymentIntents.js");
145
128
  Object.defineProperty(exports, "PaymentIntents", { enumerable: true, get: function () { return PaymentIntents_js_1.PaymentIntents; } });
146
129
  var PaymentLinks_js_1 = require("./resources/PaymentLinks.js");
@@ -211,11 +194,6 @@ exports.BillingPortal = (0, ResourceNamespace_js_1.resourceNamespace)('billingPo
211
194
  Configurations: Configurations_js_1.Configurations,
212
195
  Sessions: Sessions_js_1.Sessions,
213
196
  });
214
- exports.Capital = (0, ResourceNamespace_js_1.resourceNamespace)('capital', {
215
- FinancingOffers: FinancingOffers_js_1.FinancingOffers,
216
- FinancingSummary: FinancingSummary_js_1.FinancingSummary,
217
- FinancingTransactions: FinancingTransactions_js_1.FinancingTransactions,
218
- });
219
197
  exports.Checkout = (0, ResourceNamespace_js_1.resourceNamespace)('checkout', {
220
198
  Sessions: Sessions_js_2.Sessions,
221
199
  });
@@ -230,17 +208,12 @@ exports.Entitlements = (0, ResourceNamespace_js_1.resourceNamespace)('entitlemen
230
208
  });
231
209
  exports.FinancialConnections = (0, ResourceNamespace_js_1.resourceNamespace)('financialConnections', {
232
210
  Accounts: Accounts_js_1.Accounts,
233
- Institutions: Institutions_js_1.Institutions,
234
211
  Sessions: Sessions_js_3.Sessions,
235
212
  Transactions: Transactions_js_2.Transactions,
236
213
  });
237
214
  exports.Forwarding = (0, ResourceNamespace_js_1.resourceNamespace)('forwarding', {
238
215
  Requests: Requests_js_1.Requests,
239
216
  });
240
- exports.GiftCards = (0, ResourceNamespace_js_1.resourceNamespace)('giftCards', {
241
- Cards: Cards_js_2.Cards,
242
- Transactions: Transactions_js_3.Transactions,
243
- });
244
217
  exports.Identity = (0, ResourceNamespace_js_1.resourceNamespace)('identity', {
245
218
  VerificationReports: VerificationReports_js_1.VerificationReports,
246
219
  VerificationSessions: VerificationSessions_js_1.VerificationSessions,
@@ -248,14 +221,12 @@ exports.Identity = (0, ResourceNamespace_js_1.resourceNamespace)('identity', {
248
221
  exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
249
222
  Authorizations: Authorizations_js_2.Authorizations,
250
223
  Cardholders: Cardholders_js_1.Cardholders,
251
- Cards: Cards_js_3.Cards,
252
- CreditUnderwritingRecords: CreditUnderwritingRecords_js_1.CreditUnderwritingRecords,
253
- DisputeSettlementDetails: DisputeSettlementDetails_js_1.DisputeSettlementDetails,
224
+ Cards: Cards_js_2.Cards,
254
225
  Disputes: Disputes_js_1.Disputes,
255
226
  PersonalizationDesigns: PersonalizationDesigns_js_2.PersonalizationDesigns,
256
227
  PhysicalBundles: PhysicalBundles_js_1.PhysicalBundles,
257
228
  Tokens: Tokens_js_1.Tokens,
258
- Transactions: Transactions_js_4.Transactions,
229
+ Transactions: Transactions_js_3.Transactions,
259
230
  });
260
231
  exports.Radar = (0, ResourceNamespace_js_1.resourceNamespace)('radar', {
261
232
  EarlyFraudWarnings: EarlyFraudWarnings_js_1.EarlyFraudWarnings,
@@ -270,18 +241,15 @@ exports.Sigma = (0, ResourceNamespace_js_1.resourceNamespace)('sigma', {
270
241
  ScheduledQueryRuns: ScheduledQueryRuns_js_1.ScheduledQueryRuns,
271
242
  });
272
243
  exports.Tax = (0, ResourceNamespace_js_1.resourceNamespace)('tax', {
273
- Associations: Associations_js_1.Associations,
274
244
  Calculations: Calculations_js_1.Calculations,
275
- Forms: Forms_js_1.Forms,
276
245
  Registrations: Registrations_js_1.Registrations,
277
246
  Settings: Settings_js_1.Settings,
278
- Transactions: Transactions_js_5.Transactions,
247
+ Transactions: Transactions_js_4.Transactions,
279
248
  });
280
249
  exports.Terminal = (0, ResourceNamespace_js_1.resourceNamespace)('terminal', {
281
250
  Configurations: Configurations_js_2.Configurations,
282
251
  ConnectionTokens: ConnectionTokens_js_1.ConnectionTokens,
283
252
  Locations: Locations_js_1.Locations,
284
- ReaderCollectedData: ReaderCollectedData_js_1.ReaderCollectedData,
285
253
  Readers: Readers_js_2.Readers,
286
254
  });
287
255
  exports.TestHelpers = (0, ResourceNamespace_js_1.resourceNamespace)('testHelpers', {
@@ -316,5 +284,5 @@ exports.Treasury = (0, ResourceNamespace_js_1.resourceNamespace)('treasury', {
316
284
  ReceivedCredits: ReceivedCredits_js_2.ReceivedCredits,
317
285
  ReceivedDebits: ReceivedDebits_js_2.ReceivedDebits,
318
286
  TransactionEntries: TransactionEntries_js_1.TransactionEntries,
319
- Transactions: Transactions_js_6.Transactions,
287
+ Transactions: Transactions_js_5.Transactions,
320
288
  });
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
36
36
  ];
37
37
  const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
38
38
  function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
39
- Stripe.PACKAGE_VERSION = '17.3.0-beta.1';
39
+ Stripe.PACKAGE_VERSION = '17.3.0';
40
40
  Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
41
41
  Stripe.StripeResource = StripeResource_js_1.StripeResource;
42
42
  Stripe.resources = resources;
package/esm/apiVersion.js CHANGED
@@ -1,2 +1,2 @@
1
1
  // File generated from our OpenAPI spec
2
- export const ApiVersion = '2024-09-30.acacia';
2
+ export const ApiVersion = '2024-10-28.acacia';
@@ -15,11 +15,6 @@ export const Accounts = StripeResource.extend({
15
15
  method: 'POST',
16
16
  fullPath: '/v1/financial_connections/accounts/{account}/disconnect',
17
17
  }),
18
- listInferredBalances: stripeMethod({
19
- method: 'GET',
20
- fullPath: '/v1/financial_connections/accounts/{account}/inferred_balances',
21
- methodType: 'list',
22
- }),
23
18
  listOwners: stripeMethod({
24
19
  method: 'GET',
25
20
  fullPath: '/v1/financial_connections/accounts/{account}/owners',
@@ -15,14 +15,6 @@ export const Invoices = StripeResource.extend({
15
15
  method: 'POST',
16
16
  fullPath: '/v1/invoices/{invoice}/add_lines',
17
17
  }),
18
- attachPayment: stripeMethod({
19
- method: 'POST',
20
- fullPath: '/v1/invoices/{invoice}/attach_payment',
21
- }),
22
- attachPaymentIntent: stripeMethod({
23
- method: 'POST',
24
- fullPath: '/v1/invoices/{invoice}/attach_payment_intent',
25
- }),
26
18
  createPreview: stripeMethod({
27
19
  method: 'POST',
28
20
  fullPath: '/v1/invoices/create_preview',
@@ -36,11 +28,6 @@ export const Invoices = StripeResource.extend({
36
28
  fullPath: '/v1/invoices/{invoice}/lines',
37
29
  methodType: 'list',
38
30
  }),
39
- listPayments: stripeMethod({
40
- method: 'GET',
41
- fullPath: '/v1/invoices/{invoice}/payments',
42
- methodType: 'list',
43
- }),
44
31
  listUpcomingLines: stripeMethod({
45
32
  method: 'GET',
46
33
  fullPath: '/v1/invoices/upcoming/lines',
@@ -55,10 +42,6 @@ export const Invoices = StripeResource.extend({
55
42
  method: 'POST',
56
43
  fullPath: '/v1/invoices/{invoice}/remove_lines',
57
44
  }),
58
- retrievePayment: stripeMethod({
59
- method: 'GET',
60
- fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
61
- }),
62
45
  retrieveUpcoming: stripeMethod({
63
46
  method: 'GET',
64
47
  fullPath: '/v1/invoices/upcoming',
@@ -32,10 +32,6 @@ export const PaymentIntents = StripeResource.extend({
32
32
  method: 'POST',
33
33
  fullPath: '/v1/payment_intents/{intent}/confirm',
34
34
  }),
35
- decrementAuthorization: stripeMethod({
36
- method: 'POST',
37
- fullPath: '/v1/payment_intents/{intent}/decrement_authorization',
38
- }),
39
35
  incrementAuthorization: stripeMethod({
40
36
  method: 'POST',
41
37
  fullPath: '/v1/payment_intents/{intent}/increment_authorization',
@@ -16,11 +16,6 @@ export const Quotes = StripeResource.extend({
16
16
  method: 'POST',
17
17
  fullPath: '/v1/quotes/{quote}/finalize',
18
18
  }),
19
- listPreviewInvoiceLines: stripeMethod({
20
- method: 'GET',
21
- fullPath: '/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines',
22
- methodType: 'list',
23
- }),
24
19
  listComputedUpfrontLineItems: stripeMethod({
25
20
  method: 'GET',
26
21
  fullPath: '/v1/quotes/{quote}/computed_upfront_line_items',
@@ -31,37 +26,10 @@ export const Quotes = StripeResource.extend({
31
26
  fullPath: '/v1/quotes/{quote}/line_items',
32
27
  methodType: 'list',
33
28
  }),
34
- listLines: stripeMethod({
35
- method: 'GET',
36
- fullPath: '/v1/quotes/{quote}/lines',
37
- methodType: 'list',
38
- }),
39
- listPreviewInvoices: stripeMethod({
40
- method: 'GET',
41
- fullPath: '/v1/quotes/{quote}/preview_invoices',
42
- methodType: 'list',
43
- }),
44
- listPreviewSubscriptionSchedules: stripeMethod({
45
- method: 'GET',
46
- fullPath: '/v1/quotes/{quote}/preview_subscription_schedules',
47
- methodType: 'list',
48
- }),
49
- markDraft: stripeMethod({
50
- method: 'POST',
51
- fullPath: '/v1/quotes/{quote}/mark_draft',
52
- }),
53
- markStale: stripeMethod({
54
- method: 'POST',
55
- fullPath: '/v1/quotes/{quote}/mark_stale',
56
- }),
57
29
  pdf: stripeMethod({
58
30
  method: 'GET',
59
31
  fullPath: '/v1/quotes/{quote}/pdf',
60
32
  host: 'files.stripe.com',
61
33
  streaming: true,
62
34
  }),
63
- reestimate: stripeMethod({
64
- method: 'POST',
65
- fullPath: '/v1/quotes/{quote}/reestimate',
66
- }),
67
35
  });
@@ -19,10 +19,6 @@ export const SubscriptionSchedules = StripeResource.extend({
19
19
  fullPath: '/v1/subscription_schedules',
20
20
  methodType: 'list',
21
21
  }),
22
- amend: stripeMethod({
23
- method: 'POST',
24
- fullPath: '/v1/subscription_schedules/{schedule}/amend',
25
- }),
26
22
  cancel: stripeMethod({
27
23
  method: 'POST',
28
24
  fullPath: '/v1/subscription_schedules/{schedule}/cancel',
@@ -24,18 +24,6 @@ export const Readers = StripeResource.extend({
24
24
  method: 'POST',
25
25
  fullPath: '/v1/terminal/readers/{reader}/cancel_action',
26
26
  }),
27
- collectInputs: stripeMethod({
28
- method: 'POST',
29
- fullPath: '/v1/terminal/readers/{reader}/collect_inputs',
30
- }),
31
- collectPaymentMethod: stripeMethod({
32
- method: 'POST',
33
- fullPath: '/v1/terminal/readers/{reader}/collect_payment_method',
34
- }),
35
- confirmPaymentIntent: stripeMethod({
36
- method: 'POST',
37
- fullPath: '/v1/terminal/readers/{reader}/confirm_payment_intent',
38
- }),
39
27
  processPaymentIntent: stripeMethod({
40
28
  method: 'POST',
41
29
  fullPath: '/v1/terminal/readers/{reader}/process_payment_intent',
@@ -0,0 +1,38 @@
1
+ // File generated from our OpenAPI spec
2
+ import { StripeResource } from '../../../StripeResource.js';
3
+ const stripeMethod = StripeResource.method;
4
+ export const EventDestinations = StripeResource.extend({
5
+ create: stripeMethod({
6
+ method: 'POST',
7
+ fullPath: '/v2/core/event_destinations',
8
+ }),
9
+ retrieve: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v2/core/event_destinations/{id}',
12
+ }),
13
+ update: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v2/core/event_destinations/{id}',
16
+ }),
17
+ list: stripeMethod({
18
+ method: 'GET',
19
+ fullPath: '/v2/core/event_destinations',
20
+ methodType: 'list',
21
+ }),
22
+ del: stripeMethod({
23
+ method: 'DELETE',
24
+ fullPath: '/v2/core/event_destinations/{id}',
25
+ }),
26
+ disable: stripeMethod({
27
+ method: 'POST',
28
+ fullPath: '/v2/core/event_destinations/{id}/disable',
29
+ }),
30
+ enable: stripeMethod({
31
+ method: 'POST',
32
+ fullPath: '/v2/core/event_destinations/{id}/enable',
33
+ }),
34
+ ping: stripeMethod({
35
+ method: 'POST',
36
+ fullPath: '/v2/core/event_destinations/{id}/ping',
37
+ }),
38
+ });
@@ -1,9 +1,11 @@
1
1
  // File generated from our OpenAPI spec
2
2
  import { StripeResource } from '../../StripeResource.js';
3
+ import { EventDestinations } from './Core/EventDestinations.js';
3
4
  import { Events } from './Core/Events.js';
4
5
  export const Core = StripeResource.extend({
5
6
  constructor: function (...args) {
6
7
  StripeResource.apply(this, args);
8
+ this.eventDestinations = new EventDestinations(...args);
7
9
  this.events = new Events(...args);
8
10
  },
9
11
  });