stripe 17.7.0-beta.1 → 17.7.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 (176) hide show
  1. package/CHANGELOG.md +120 -1064
  2. package/OPENAPI_VERSION +1 -1
  3. package/README.md +0 -1
  4. package/VERSION +1 -1
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/FinancialConnections/Accounts.js +0 -5
  7. package/cjs/resources/Invoices.js +0 -17
  8. package/cjs/resources/PaymentIntents.js +0 -8
  9. package/cjs/resources/Quotes.js +0 -32
  10. package/cjs/resources/SubscriptionSchedules.js +0 -4
  11. package/cjs/resources/Terminal/Readers.js +0 -12
  12. package/cjs/resources.js +10 -48
  13. package/cjs/stripe.core.js +1 -1
  14. package/esm/apiVersion.js +1 -1
  15. package/esm/resources/FinancialConnections/Accounts.js +0 -5
  16. package/esm/resources/Invoices.js +0 -17
  17. package/esm/resources/PaymentIntents.js +0 -8
  18. package/esm/resources/Quotes.js +0 -32
  19. package/esm/resources/SubscriptionSchedules.js +0 -4
  20. package/esm/resources/Terminal/Readers.js +0 -12
  21. package/esm/resources.js +0 -33
  22. package/esm/stripe.core.js +1 -1
  23. package/package.json +1 -1
  24. package/types/AccountLinksResource.d.ts +1 -5
  25. package/types/AccountSessions.d.ts +0 -45
  26. package/types/AccountSessionsResource.d.ts +0 -243
  27. package/types/Accounts.d.ts +1 -205
  28. package/types/AccountsResource.d.ts +2 -526
  29. package/types/Billing/CreditBalanceSummaryResource.d.ts +1 -1
  30. package/types/Billing/CreditGrants.d.ts +5 -0
  31. package/types/Billing/CreditGrantsResource.d.ts +7 -2
  32. package/types/Cards.d.ts +0 -5
  33. package/types/Charges.d.ts +1 -149
  34. package/types/ChargesResource.d.ts +0 -1294
  35. package/types/Checkout/Sessions.d.ts +29 -302
  36. package/types/Checkout/SessionsResource.d.ts +30 -383
  37. package/types/ConfirmationTokens.d.ts +0 -99
  38. package/types/Coupons.d.ts +1 -1
  39. package/types/CouponsResource.d.ts +1 -1
  40. package/types/CreditNotes.d.ts +0 -21
  41. package/types/CreditNotesResource.d.ts +0 -51
  42. package/types/CustomersResource.d.ts +0 -7
  43. package/types/EventTypes.d.ts +0 -596
  44. package/types/Events.d.ts +0 -93
  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 -137
  53. package/types/InvoicesResource.d.ts +1882 -5567
  54. package/types/Issuing/Authorizations.d.ts +0 -1
  55. package/types/Issuing/CardholdersResource.d.ts +1 -2
  56. package/types/Issuing/Transactions.d.ts +0 -2
  57. package/types/Issuing/TransactionsResource.d.ts +0 -5
  58. package/types/LineItems.d.ts +0 -32
  59. package/types/Mandates.d.ts +0 -77
  60. package/types/PaymentIntents.d.ts +30 -648
  61. package/types/PaymentIntentsResource.d.ts +3848 -8060
  62. package/types/PaymentLinks.d.ts +0 -6
  63. package/types/PaymentLinksResource.d.ts +0 -12
  64. package/types/PaymentMethodConfigurations.d.ts +0 -180
  65. package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
  66. package/types/PaymentMethods.d.ts +0 -99
  67. package/types/PaymentMethodsResource.d.ts +0 -133
  68. package/types/Prices.d.ts +0 -22
  69. package/types/PricesResource.d.ts +0 -22
  70. package/types/Products.d.ts +0 -39
  71. package/types/ProductsResource.d.ts +5 -36
  72. package/types/Quotes.d.ts +1 -591
  73. package/types/QuotesResource.d.ts +199 -2531
  74. package/types/Refunds.d.ts +0 -14
  75. package/types/SetupAttempts.d.ts +0 -38
  76. package/types/SetupIntents.d.ts +1 -111
  77. package/types/SetupIntentsResource.d.ts +3 -645
  78. package/types/Sources.d.ts +0 -29
  79. package/types/SubscriptionItems.d.ts +0 -21
  80. package/types/SubscriptionItemsResource.d.ts +0 -109
  81. package/types/SubscriptionSchedules.d.ts +0 -200
  82. package/types/SubscriptionSchedulesResource.d.ts +13 -1231
  83. package/types/Subscriptions.d.ts +1 -91
  84. package/types/SubscriptionsResource.d.ts +2 -369
  85. package/types/Terminal/Readers.d.ts +0 -290
  86. package/types/Terminal/ReadersResource.d.ts +0 -215
  87. package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -104
  88. package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
  89. package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
  90. package/types/TokensResource.d.ts +1 -3
  91. package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
  92. package/types/Treasury/FinancialAccounts.d.ts +0 -5
  93. package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
  94. package/types/Treasury/OutboundTransfers.d.ts +0 -26
  95. package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
  96. package/types/Treasury/ReceivedCredits.d.ts +0 -26
  97. package/types/Treasury/ReceivedDebits.d.ts +0 -31
  98. package/types/WebhookEndpointsResource.d.ts +2 -71
  99. package/types/index.d.ts +0 -62
  100. package/types/lib.d.ts +1 -1
  101. package/types/test/typescriptTest.ts +3 -3
  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/Issuing/FraudLiabilityDebits.js +0 -17
  112. package/cjs/resources/Margins.js +0 -22
  113. package/cjs/resources/Orders.js +0 -24
  114. package/cjs/resources/PaymentAttemptRecords.js +0 -17
  115. package/cjs/resources/PaymentRecords.js +0 -29
  116. package/cjs/resources/Tax/Associations.js +0 -9
  117. package/cjs/resources/Tax/Forms.js +0 -20
  118. package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
  119. package/esm/resources/AccountNotices.js +0 -18
  120. package/esm/resources/Capital/FinancingOffers.js +0 -18
  121. package/esm/resources/Capital/FinancingSummary.js +0 -9
  122. package/esm/resources/Capital/FinancingTransactions.js +0 -14
  123. package/esm/resources/FinancialConnections/Institutions.js +0 -14
  124. package/esm/resources/GiftCards/Cards.js +0 -20
  125. package/esm/resources/GiftCards/Transactions.js +0 -30
  126. package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
  127. package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
  128. package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
  129. package/esm/resources/Margins.js +0 -19
  130. package/esm/resources/Orders.js +0 -21
  131. package/esm/resources/PaymentAttemptRecords.js +0 -14
  132. package/esm/resources/PaymentRecords.js +0 -26
  133. package/esm/resources/Tax/Associations.js +0 -6
  134. package/esm/resources/Tax/Forms.js +0 -17
  135. package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
  136. package/types/AccountNotices.d.ts +0 -113
  137. package/types/AccountNoticesResource.d.ts +0 -98
  138. package/types/Billing/MeterErrorReports.d.ts +0 -106
  139. package/types/Capital/FinancingOffers.d.ts +0 -188
  140. package/types/Capital/FinancingOffersResource.d.ts +0 -97
  141. package/types/Capital/FinancingSummary.d.ts +0 -106
  142. package/types/Capital/FinancingSummaryResource.d.ts +0 -27
  143. package/types/Capital/FinancingTransactions.d.ts +0 -135
  144. package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
  145. package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
  146. package/types/FinancialConnections/Institutions.d.ts +0 -93
  147. package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
  148. package/types/GiftCards/Cards.d.ts +0 -118
  149. package/types/GiftCards/CardsResource.d.ts +0 -159
  150. package/types/GiftCards/Transactions.d.ts +0 -129
  151. package/types/GiftCards/TransactionsResource.d.ts +0 -201
  152. package/types/InvoicePayments.d.ts +0 -113
  153. package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
  154. package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
  155. package/types/Issuing/DisputeSettlementDetails.d.ts +0 -73
  156. package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
  157. package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
  158. package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
  159. package/types/Issuing/Settlements.d.ts +0 -103
  160. package/types/Margins.d.ts +0 -56
  161. package/types/MarginsResource.d.ts +0 -114
  162. package/types/Orders.d.ts +0 -1179
  163. package/types/OrdersResource.d.ts +0 -2961
  164. package/types/PaymentAttemptRecords.d.ts +0 -242
  165. package/types/PaymentAttemptRecordsResource.d.ts +0 -47
  166. package/types/PaymentRecords.d.ts +0 -242
  167. package/types/PaymentRecordsResource.d.ts +0 -455
  168. package/types/QuoteLines.d.ts +0 -634
  169. package/types/QuotePreviewInvoices.d.ts +0 -1658
  170. package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -824
  171. package/types/Tax/Associations.d.ts +0 -126
  172. package/types/Tax/AssociationsResource.d.ts +0 -29
  173. package/types/Tax/Forms.d.ts +0 -220
  174. package/types/Tax/FormsResource.d.ts +0 -107
  175. package/types/Terminal/ReaderCollectedData.d.ts +0 -51
  176. package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1472
1
+ v1505
package/README.md CHANGED
@@ -554,7 +554,6 @@ const stripe = new Stripe('sk_test_...', {
554
554
  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.
555
555
 
556
556
  ```javascript
557
- import Stripe from 'stripe';
558
557
  const client = new Stripe('sk_test_...');
559
558
 
560
559
  client.rawRequest(
package/VERSION CHANGED
@@ -1 +1 @@
1
- 17.7.0-beta.1
1
+ 17.7.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 = '2025-01-27.acacia';
5
+ exports.ApiVersion = '2025-02-24.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',
@@ -48,10 +44,6 @@ exports.PaymentIntents = StripeResource_js_1.StripeResource.extend({
48
44
  fullPath: '/v1/payment_intents/search',
49
45
  methodType: 'search',
50
46
  }),
51
- triggerAction: stripeMethod({
52
- method: 'POST',
53
- fullPath: '/v1/test/payment_intents/{intent}/trigger_action',
54
- }),
55
47
  verifyMicrodeposits: stripeMethod({
56
48
  method: 'POST',
57
49
  fullPath: '/v1/payment_intents/{intent}/verify_microdeposits',
@@ -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',
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.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.PaymentRecords = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.PaymentAttemptRecords = 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.V2 = 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.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = 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.V2 = 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.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,24 +21,16 @@ 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 EventDestinations_js_1 = require("./resources/V2/Core/EventDestinations.js");
33
29
  const Events_js_1 = require("./resources/V2/Core/Events.js");
34
30
  const Features_js_1 = require("./resources/Entitlements/Features.js");
35
31
  const FinancialAccounts_js_1 = require("./resources/Treasury/FinancialAccounts.js");
36
- const FinancingOffers_js_1 = require("./resources/Capital/FinancingOffers.js");
37
- const FinancingSummary_js_1 = require("./resources/Capital/FinancingSummary.js");
38
- const FinancingTransactions_js_1 = require("./resources/Capital/FinancingTransactions.js");
39
- const Forms_js_1 = require("./resources/Tax/Forms.js");
40
- const FraudLiabilityDebits_js_1 = require("./resources/Issuing/FraudLiabilityDebits.js");
41
32
  const InboundTransfers_js_1 = require("./resources/TestHelpers/Treasury/InboundTransfers.js");
42
33
  const InboundTransfers_js_2 = require("./resources/Treasury/InboundTransfers.js");
43
- const Institutions_js_1 = require("./resources/FinancialConnections/Institutions.js");
44
34
  const Locations_js_1 = require("./resources/Terminal/Locations.js");
45
35
  const MeterEventAdjustments_js_1 = require("./resources/Billing/MeterEventAdjustments.js");
46
36
  const MeterEventAdjustments_js_2 = require("./resources/V2/Billing/MeterEventAdjustments.js");
@@ -58,7 +48,6 @@ const PersonalizationDesigns_js_1 = require("./resources/TestHelpers/Issuing/Per
58
48
  const PersonalizationDesigns_js_2 = require("./resources/Issuing/PersonalizationDesigns.js");
59
49
  const PhysicalBundles_js_1 = require("./resources/Issuing/PhysicalBundles.js");
60
50
  const Products_js_1 = require("./resources/Climate/Products.js");
61
- const ReaderCollectedData_js_1 = require("./resources/Terminal/ReaderCollectedData.js");
62
51
  const Readers_js_1 = require("./resources/TestHelpers/Terminal/Readers.js");
63
52
  const Readers_js_2 = require("./resources/Terminal/Readers.js");
64
53
  const ReceivedCredits_js_1 = require("./resources/TestHelpers/Treasury/ReceivedCredits.js");
@@ -82,10 +71,9 @@ const Tokens_js_1 = require("./resources/Issuing/Tokens.js");
82
71
  const TransactionEntries_js_1 = require("./resources/Treasury/TransactionEntries.js");
83
72
  const Transactions_js_1 = require("./resources/TestHelpers/Issuing/Transactions.js");
84
73
  const Transactions_js_2 = require("./resources/FinancialConnections/Transactions.js");
85
- const Transactions_js_3 = require("./resources/GiftCards/Transactions.js");
86
- const Transactions_js_4 = require("./resources/Issuing/Transactions.js");
87
- const Transactions_js_5 = require("./resources/Tax/Transactions.js");
88
- const Transactions_js_6 = require("./resources/Treasury/Transactions.js");
74
+ const Transactions_js_3 = require("./resources/Issuing/Transactions.js");
75
+ const Transactions_js_4 = require("./resources/Tax/Transactions.js");
76
+ const Transactions_js_5 = require("./resources/Treasury/Transactions.js");
89
77
  const ValueListItems_js_1 = require("./resources/Radar/ValueListItems.js");
90
78
  const ValueLists_js_1 = require("./resources/Radar/ValueLists.js");
91
79
  const VerificationReports_js_1 = require("./resources/Identity/VerificationReports.js");
@@ -94,8 +82,6 @@ var Accounts_js_2 = require("./resources/Accounts.js");
94
82
  Object.defineProperty(exports, "Account", { enumerable: true, get: function () { return Accounts_js_2.Accounts; } });
95
83
  var AccountLinks_js_1 = require("./resources/AccountLinks.js");
96
84
  Object.defineProperty(exports, "AccountLinks", { enumerable: true, get: function () { return AccountLinks_js_1.AccountLinks; } });
97
- var AccountNotices_js_1 = require("./resources/AccountNotices.js");
98
- Object.defineProperty(exports, "AccountNotices", { enumerable: true, get: function () { return AccountNotices_js_1.AccountNotices; } });
99
85
  var AccountSessions_js_1 = require("./resources/AccountSessions.js");
100
86
  Object.defineProperty(exports, "AccountSessions", { enumerable: true, get: function () { return AccountSessions_js_1.AccountSessions; } });
101
87
  var Accounts_js_3 = require("./resources/Accounts.js");
@@ -142,14 +128,8 @@ var Invoices_js_1 = require("./resources/Invoices.js");
142
128
  Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return Invoices_js_1.Invoices; } });
143
129
  var Mandates_js_1 = require("./resources/Mandates.js");
144
130
  Object.defineProperty(exports, "Mandates", { enumerable: true, get: function () { return Mandates_js_1.Mandates; } });
145
- var Margins_js_1 = require("./resources/Margins.js");
146
- Object.defineProperty(exports, "Margins", { enumerable: true, get: function () { return Margins_js_1.Margins; } });
147
131
  var OAuth_js_1 = require("./resources/OAuth.js");
148
132
  Object.defineProperty(exports, "OAuth", { enumerable: true, get: function () { return OAuth_js_1.OAuth; } });
149
- var Orders_js_2 = require("./resources/Orders.js");
150
- Object.defineProperty(exports, "Orders", { enumerable: true, get: function () { return Orders_js_2.Orders; } });
151
- var PaymentAttemptRecords_js_1 = require("./resources/PaymentAttemptRecords.js");
152
- Object.defineProperty(exports, "PaymentAttemptRecords", { enumerable: true, get: function () { return PaymentAttemptRecords_js_1.PaymentAttemptRecords; } });
153
133
  var PaymentIntents_js_1 = require("./resources/PaymentIntents.js");
154
134
  Object.defineProperty(exports, "PaymentIntents", { enumerable: true, get: function () { return PaymentIntents_js_1.PaymentIntents; } });
155
135
  var PaymentLinks_js_1 = require("./resources/PaymentLinks.js");
@@ -160,8 +140,6 @@ var PaymentMethodDomains_js_1 = require("./resources/PaymentMethodDomains.js");
160
140
  Object.defineProperty(exports, "PaymentMethodDomains", { enumerable: true, get: function () { return PaymentMethodDomains_js_1.PaymentMethodDomains; } });
161
141
  var PaymentMethods_js_1 = require("./resources/PaymentMethods.js");
162
142
  Object.defineProperty(exports, "PaymentMethods", { enumerable: true, get: function () { return PaymentMethods_js_1.PaymentMethods; } });
163
- var PaymentRecords_js_1 = require("./resources/PaymentRecords.js");
164
- Object.defineProperty(exports, "PaymentRecords", { enumerable: true, get: function () { return PaymentRecords_js_1.PaymentRecords; } });
165
143
  var Payouts_js_1 = require("./resources/Payouts.js");
166
144
  Object.defineProperty(exports, "Payouts", { enumerable: true, get: function () { return Payouts_js_1.Payouts; } });
167
145
  var Plans_js_1 = require("./resources/Plans.js");
@@ -220,11 +198,6 @@ exports.BillingPortal = (0, ResourceNamespace_js_1.resourceNamespace)('billingPo
220
198
  Configurations: Configurations_js_1.Configurations,
221
199
  Sessions: Sessions_js_1.Sessions,
222
200
  });
223
- exports.Capital = (0, ResourceNamespace_js_1.resourceNamespace)('capital', {
224
- FinancingOffers: FinancingOffers_js_1.FinancingOffers,
225
- FinancingSummary: FinancingSummary_js_1.FinancingSummary,
226
- FinancingTransactions: FinancingTransactions_js_1.FinancingTransactions,
227
- });
228
201
  exports.Checkout = (0, ResourceNamespace_js_1.resourceNamespace)('checkout', {
229
202
  Sessions: Sessions_js_2.Sessions,
230
203
  });
@@ -239,17 +212,12 @@ exports.Entitlements = (0, ResourceNamespace_js_1.resourceNamespace)('entitlemen
239
212
  });
240
213
  exports.FinancialConnections = (0, ResourceNamespace_js_1.resourceNamespace)('financialConnections', {
241
214
  Accounts: Accounts_js_1.Accounts,
242
- Institutions: Institutions_js_1.Institutions,
243
215
  Sessions: Sessions_js_3.Sessions,
244
216
  Transactions: Transactions_js_2.Transactions,
245
217
  });
246
218
  exports.Forwarding = (0, ResourceNamespace_js_1.resourceNamespace)('forwarding', {
247
219
  Requests: Requests_js_1.Requests,
248
220
  });
249
- exports.GiftCards = (0, ResourceNamespace_js_1.resourceNamespace)('giftCards', {
250
- Cards: Cards_js_2.Cards,
251
- Transactions: Transactions_js_3.Transactions,
252
- });
253
221
  exports.Identity = (0, ResourceNamespace_js_1.resourceNamespace)('identity', {
254
222
  VerificationReports: VerificationReports_js_1.VerificationReports,
255
223
  VerificationSessions: VerificationSessions_js_1.VerificationSessions,
@@ -257,15 +225,12 @@ exports.Identity = (0, ResourceNamespace_js_1.resourceNamespace)('identity', {
257
225
  exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
258
226
  Authorizations: Authorizations_js_2.Authorizations,
259
227
  Cardholders: Cardholders_js_1.Cardholders,
260
- Cards: Cards_js_3.Cards,
261
- CreditUnderwritingRecords: CreditUnderwritingRecords_js_1.CreditUnderwritingRecords,
262
- DisputeSettlementDetails: DisputeSettlementDetails_js_1.DisputeSettlementDetails,
228
+ Cards: Cards_js_2.Cards,
263
229
  Disputes: Disputes_js_1.Disputes,
264
- FraudLiabilityDebits: FraudLiabilityDebits_js_1.FraudLiabilityDebits,
265
230
  PersonalizationDesigns: PersonalizationDesigns_js_2.PersonalizationDesigns,
266
231
  PhysicalBundles: PhysicalBundles_js_1.PhysicalBundles,
267
232
  Tokens: Tokens_js_1.Tokens,
268
- Transactions: Transactions_js_4.Transactions,
233
+ Transactions: Transactions_js_3.Transactions,
269
234
  });
270
235
  exports.Radar = (0, ResourceNamespace_js_1.resourceNamespace)('radar', {
271
236
  EarlyFraudWarnings: EarlyFraudWarnings_js_1.EarlyFraudWarnings,
@@ -280,18 +245,15 @@ exports.Sigma = (0, ResourceNamespace_js_1.resourceNamespace)('sigma', {
280
245
  ScheduledQueryRuns: ScheduledQueryRuns_js_1.ScheduledQueryRuns,
281
246
  });
282
247
  exports.Tax = (0, ResourceNamespace_js_1.resourceNamespace)('tax', {
283
- Associations: Associations_js_1.Associations,
284
248
  Calculations: Calculations_js_1.Calculations,
285
- Forms: Forms_js_1.Forms,
286
249
  Registrations: Registrations_js_1.Registrations,
287
250
  Settings: Settings_js_1.Settings,
288
- Transactions: Transactions_js_5.Transactions,
251
+ Transactions: Transactions_js_4.Transactions,
289
252
  });
290
253
  exports.Terminal = (0, ResourceNamespace_js_1.resourceNamespace)('terminal', {
291
254
  Configurations: Configurations_js_2.Configurations,
292
255
  ConnectionTokens: ConnectionTokens_js_1.ConnectionTokens,
293
256
  Locations: Locations_js_1.Locations,
294
- ReaderCollectedData: ReaderCollectedData_js_1.ReaderCollectedData,
295
257
  Readers: Readers_js_2.Readers,
296
258
  });
297
259
  exports.TestHelpers = (0, ResourceNamespace_js_1.resourceNamespace)('testHelpers', {
@@ -326,7 +288,7 @@ exports.Treasury = (0, ResourceNamespace_js_1.resourceNamespace)('treasury', {
326
288
  ReceivedCredits: ReceivedCredits_js_2.ReceivedCredits,
327
289
  ReceivedDebits: ReceivedDebits_js_2.ReceivedDebits,
328
290
  TransactionEntries: TransactionEntries_js_1.TransactionEntries,
329
- Transactions: Transactions_js_6.Transactions,
291
+ Transactions: Transactions_js_5.Transactions,
330
292
  });
331
293
  exports.V2 = (0, ResourceNamespace_js_1.resourceNamespace)('v2', {
332
294
  Billing: (0, ResourceNamespace_js_1.resourceNamespace)('billing', {
@@ -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.7.0-beta.1';
39
+ Stripe.PACKAGE_VERSION = '17.7.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 = '2025-01-27.acacia';
2
+ export const ApiVersion = '2025-02-24.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',
@@ -45,10 +41,6 @@ export const PaymentIntents = StripeResource.extend({
45
41
  fullPath: '/v1/payment_intents/search',
46
42
  methodType: 'search',
47
43
  }),
48
- triggerAction: stripeMethod({
49
- method: 'POST',
50
- fullPath: '/v1/test/payment_intents/{intent}/trigger_action',
51
- }),
52
44
  verifyMicrodeposits: stripeMethod({
53
45
  method: 'POST',
54
46
  fullPath: '/v1/payment_intents/{intent}/verify_microdeposits',
@@ -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',