stripe 17.8.0-beta.1 → 18.1.0-beta.1

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 (221) hide show
  1. package/CHANGELOG.md +100 -16
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/Error.js +91 -1
  5. package/cjs/apiVersion.js +1 -1
  6. package/cjs/resources/BalanceSettings.js +10 -0
  7. package/cjs/resources/ExternalAccounts.js +23 -0
  8. package/cjs/resources/Invoices.js +0 -9
  9. package/cjs/resources/SubscriptionItems.js +0 -9
  10. package/cjs/resources/V2/Core/AccountLinks.js +9 -0
  11. package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
  12. package/cjs/resources/V2/Core/Accounts.js +25 -0
  13. package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +28 -0
  14. package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +24 -0
  15. package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
  16. package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +17 -0
  17. package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
  18. package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
  19. package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +12 -0
  20. package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
  21. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
  22. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
  23. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
  24. package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
  25. package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
  26. package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
  27. package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
  28. package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
  29. package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
  30. package/cjs/resources.js +56 -8
  31. package/cjs/stripe.core.js +3 -14
  32. package/esm/Error.js +79 -0
  33. package/esm/apiVersion.js +1 -1
  34. package/esm/resources/BalanceSettings.js +7 -0
  35. package/esm/resources/ExternalAccounts.js +20 -0
  36. package/esm/resources/Invoices.js +0 -9
  37. package/esm/resources/SubscriptionItems.js +0 -9
  38. package/esm/resources/V2/Core/AccountLinks.js +6 -0
  39. package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
  40. package/esm/resources/V2/Core/Accounts.js +22 -0
  41. package/esm/resources/V2/Core/Vault/GbBankAccounts.js +25 -0
  42. package/esm/resources/V2/Core/Vault/UsBankAccounts.js +21 -0
  43. package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
  44. package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +14 -0
  45. package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
  46. package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
  47. package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +9 -0
  48. package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
  49. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
  50. package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
  51. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
  52. package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
  53. package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
  54. package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
  55. package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
  56. package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
  57. package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
  58. package/esm/resources.js +46 -0
  59. package/esm/stripe.core.js +3 -14
  60. package/package.json +1 -1
  61. package/types/Accounts.d.ts +54 -6
  62. package/types/AccountsResource.d.ts +128 -1
  63. package/types/ApplicationFees.d.ts +1 -1
  64. package/types/BalanceSettings.d.ts +85 -0
  65. package/types/BalanceSettingsResource.d.ts +108 -0
  66. package/types/BalanceTransactions.d.ts +3 -1
  67. package/types/BalanceTransactionsResource.d.ts +1 -1
  68. package/types/BankAccounts.d.ts +9 -1
  69. package/types/Billing/CreditBalanceSummary.d.ts +5 -0
  70. package/types/Billing/CreditBalanceSummaryResource.d.ts +10 -5
  71. package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
  72. package/types/Billing/CreditGrants.d.ts +7 -2
  73. package/types/Billing/CreditGrantsResource.d.ts +13 -3
  74. package/types/Billing/Meters.d.ts +1 -1
  75. package/types/Billing/MetersResource.d.ts +2 -2
  76. package/types/BillingPortal/Sessions.d.ts +5 -0
  77. package/types/BillingPortal/SessionsResource.d.ts +12 -4
  78. package/types/Capabilities.d.ts +8 -0
  79. package/types/Cards.d.ts +1 -4
  80. package/types/CashBalances.d.ts +5 -0
  81. package/types/Charges.d.ts +74 -5
  82. package/types/ChargesResource.d.ts +1 -1
  83. package/types/Checkout/Sessions.d.ts +87 -52
  84. package/types/Checkout/SessionsResource.d.ts +94 -69
  85. package/types/ConfirmationTokens.d.ts +102 -0
  86. package/types/Coupons.d.ts +2 -2
  87. package/types/CouponsResource.d.ts +1 -1
  88. package/types/CreditNoteLineItems.d.ts +39 -20
  89. package/types/CreditNotes.d.ts +31 -19
  90. package/types/CreditNotesResource.d.ts +5 -15
  91. package/types/CustomerBalanceTransactions.d.ts +10 -1
  92. package/types/CustomerCashBalanceTransactions.d.ts +2 -0
  93. package/types/CustomerSessions.d.ts +5 -0
  94. package/types/CustomerSessionsResource.d.ts +6 -1
  95. package/types/Customers.d.ts +5 -3
  96. package/types/CustomersResource.d.ts +4 -14
  97. package/types/Discounts.d.ts +10 -0
  98. package/types/Errors.d.ts +69 -2
  99. package/types/EventTypes.d.ts +137 -1
  100. package/types/Events.d.ts +11 -1
  101. package/types/ExternalAccountsResource.d.ts +219 -0
  102. package/types/FinancialConnections/Accounts.d.ts +2 -0
  103. package/types/FinancialConnections/AccountsResource.d.ts +5 -0
  104. package/types/FinancialConnections/Sessions.d.ts +2 -0
  105. package/types/FinancialConnections/SessionsResource.d.ts +5 -0
  106. package/types/Identity/VerificationSessions.d.ts +5 -0
  107. package/types/Identity/VerificationSessionsResource.d.ts +7 -0
  108. package/types/InvoiceItems.d.ts +65 -26
  109. package/types/InvoiceItemsResource.d.ts +45 -28
  110. package/types/InvoiceLineItems.d.ts +173 -66
  111. package/types/InvoicePayments.d.ts +2 -11
  112. package/types/Invoices.d.ts +128 -111
  113. package/types/InvoicesResource.d.ts +285 -5038
  114. package/types/Issuing/Authorizations.d.ts +1 -1
  115. package/types/Issuing/AuthorizationsResource.d.ts +1 -1
  116. package/types/Issuing/DisputeSettlementDetails.d.ts +12 -0
  117. package/types/Issuing/Settlements.d.ts +17 -7
  118. package/types/Issuing/Transactions.d.ts +3 -0
  119. package/types/LineItems.d.ts +17 -0
  120. package/types/Mandates.d.ts +8 -0
  121. package/types/OrdersResource.d.ts +16 -16
  122. package/types/PaymentAttemptRecords.d.ts +1881 -11
  123. package/types/PaymentIntents.d.ts +93 -8
  124. package/types/PaymentIntentsResource.d.ts +504 -10
  125. package/types/PaymentLinks.d.ts +49 -0
  126. package/types/PaymentLinksResource.d.ts +77 -0
  127. package/types/PaymentMethodConfigurations.d.ts +108 -0
  128. package/types/PaymentMethodConfigurationsResource.d.ts +150 -0
  129. package/types/PaymentMethodDomainsResource.d.ts +6 -6
  130. package/types/PaymentMethods.d.ts +71 -0
  131. package/types/PaymentMethodsResource.d.ts +88 -18
  132. package/types/PaymentRecords.d.ts +1873 -10
  133. package/types/PaymentRecordsResource.d.ts +5 -5
  134. package/types/Payouts.d.ts +5 -0
  135. package/types/PayoutsResource.d.ts +5 -0
  136. package/types/Persons.d.ts +17 -9
  137. package/types/Plans.d.ts +0 -7
  138. package/types/PlansResource.d.ts +0 -7
  139. package/types/Prices.d.ts +0 -11
  140. package/types/PricesResource.d.ts +2 -13
  141. package/types/PromotionCodes.d.ts +5 -0
  142. package/types/PromotionCodesResource.d.ts +10 -0
  143. package/types/QuotePreviewInvoices.d.ts +128 -101
  144. package/types/QuotePreviewSubscriptionSchedules.d.ts +5 -51
  145. package/types/Quotes.d.ts +10 -0
  146. package/types/QuotesResource.d.ts +17 -2
  147. package/types/Refunds.d.ts +18 -0
  148. package/types/Reviews.d.ts +3 -2
  149. package/types/SetupAttempts.d.ts +27 -1
  150. package/types/SetupIntents.d.ts +12 -1
  151. package/types/SetupIntentsResource.d.ts +240 -0
  152. package/types/SubscriptionItems.d.ts +9 -11
  153. package/types/SubscriptionItemsResource.d.ts +2 -94
  154. package/types/SubscriptionSchedules.d.ts +5 -51
  155. package/types/SubscriptionSchedulesResource.d.ts +14 -110
  156. package/types/Subscriptions.d.ts +6 -33
  157. package/types/SubscriptionsResource.d.ts +22 -91
  158. package/types/Tax/RegistrationsResource.d.ts +1 -1
  159. package/types/TaxIds.d.ts +10 -0
  160. package/types/TaxIdsResource.d.ts +10 -0
  161. package/types/Terminal/Configurations.d.ts +86 -3
  162. package/types/Terminal/ConfigurationsResource.d.ts +192 -2
  163. package/types/Terminal/Readers.d.ts +14 -4
  164. package/types/Terminal/ReadersResource.d.ts +6 -1
  165. package/types/TestHelpers/ConfirmationTokensResource.d.ts +118 -0
  166. package/types/TestHelpers/Terminal/ReadersResource.d.ts +3 -3
  167. package/types/TokensResource.d.ts +6 -1
  168. package/types/Treasury/FinancialAccountsResource.d.ts +1 -1
  169. package/types/V2/Core/AccountLinks.d.ts +101 -0
  170. package/types/V2/Core/AccountLinksResource.d.ts +90 -0
  171. package/types/V2/Core/Accounts/PersonsResource.d.ts +3760 -0
  172. package/types/V2/Core/Accounts.d.ts +8057 -0
  173. package/types/V2/Core/AccountsResource.d.ts +10184 -0
  174. package/types/V2/Core/EventDestinationsResource.d.ts +0 -5
  175. package/types/V2/Core/EventsResource.d.ts +0 -5
  176. package/types/V2/Core/Persons.d.ts +1857 -0
  177. package/types/V2/Core/Vault/GbBankAccounts.d.ts +155 -0
  178. package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +172 -0
  179. package/types/V2/Core/Vault/UsBankAccounts.d.ts +65 -0
  180. package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +123 -0
  181. package/types/V2/EventDestinations.d.ts +1 -1
  182. package/types/V2/EventTypes.d.ts +687 -1
  183. package/types/V2/Events.d.ts +1 -1
  184. package/types/V2/FinancialAddressCreditSimulations.d.ts +22 -0
  185. package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +27 -0
  186. package/types/V2/MoneyManagement/Adjustments.d.ts +105 -0
  187. package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
  188. package/types/V2/MoneyManagement/FinancialAccounts.d.ts +540 -0
  189. package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +52 -0
  190. package/types/V2/MoneyManagement/FinancialAddresses.d.ts +308 -0
  191. package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +287 -0
  192. package/types/V2/MoneyManagement/InboundTransfers.d.ts +201 -0
  193. package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
  194. package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +141 -0
  195. package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +93 -0
  196. package/types/V2/MoneyManagement/OutboundPayments.d.ts +273 -0
  197. package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +242 -0
  198. package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +92 -0
  199. package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +296 -0
  200. package/types/V2/MoneyManagement/OutboundTransfers.d.ts +246 -0
  201. package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +207 -0
  202. package/types/V2/MoneyManagement/PayoutMethods.d.ts +146 -0
  203. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
  204. package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +82 -0
  205. package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
  206. package/types/V2/MoneyManagement/ReceivedCredits.d.ts +280 -0
  207. package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
  208. package/types/V2/MoneyManagement/ReceivedDebits.d.ts +219 -0
  209. package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
  210. package/types/V2/MoneyManagement/TransactionEntries.d.ts +151 -0
  211. package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
  212. package/types/V2/MoneyManagement/Transactions.d.ts +166 -0
  213. package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
  214. package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +66 -0
  215. package/types/WebhookEndpointsResource.d.ts +21 -3
  216. package/types/index.d.ts +74 -6
  217. package/types/lib.d.ts +11 -1
  218. package/types/test/typescriptTest.ts +3 -6
  219. package/types/Deprecations.d.ts +0 -215
  220. package/types/UsageRecordSummaries.d.ts +0 -56
  221. package/types/UsageRecords.d.ts +0 -45
package/CHANGELOG.md CHANGED
@@ -1,24 +1,97 @@
1
1
  # Changelog
2
2
 
3
+ ## 18.1.0-beta.1 - 2025-04-02
4
+ * [#2288](https://github.com/stripe/stripe-node/pull/2288) Update generated code for beta
5
+ This release changes the pinned API version to `2025-03-31.preview`
6
+
7
+ ### Breaking Changes
8
+ * Remove support for `amount_overpaid` on `InvoicePayment`
9
+ * Remove support for values `out_of_band_payment` and `payment_record` from enum `InvoicePayment.payment.type`
10
+ * Remove support for `interchange_fees`, `net_total`, `network_fees`, and `transaction_volume` on `Issuing.Settlement`
11
+ * Remove support for `billing_thresholds` on `QuotePreviewSubscriptionSchedule.default_settings`, `QuotePreviewSubscriptionSchedule.phases[].items[]`, and `QuotePreviewSubscriptionSchedule.phases[]`
12
+ * Remove support for `coupon` on `QuotePreviewSubscriptionSchedule.phases[]`
13
+ * Remove support for `value` on `Terminal.Reader.action.collect_inputs.inputs[].selection.choices[]`, `Terminal.Reader.action.collect_inputs.inputs[].selection`, and `Terminal.ReaderCollectInputsParams.inputs[].selection.choices[]`
14
+ * Change `Checkout.Session.permissions.update` to be optional
15
+ * Change type of `InvoicePayment.is_default` from `boolean | null` to `boolean`
16
+ * Change `Invoice.amount_overpaid` and `QuotePreviewInvoice.amount_overpaid` to be required
17
+ * Change type of `PaymentAttemptRecord.payment_method_details.type` and `PaymentRecord.payment_method_details.type` from `literal('custom')` to `string`
18
+ * Change type of `PaymentAttemptRecord.payment_record` from `string` to `string | null`
19
+ * Change `PaymentAttemptRecord.payment_method_details.custom` and `PaymentRecord.payment_method_details.custom` to be optional
20
+ * Change `PaymentRecordReportPaymentParams.payment_reference` to be optional
21
+ * Change type of `PaymentRecord.latest_payment_attempt_record` from `string` to `string | null`
22
+
23
+ ### Additions
24
+ * Add support for new resources `BalanceSettings`
25
+ * Add support for `retrieve` and `update` methods on resource `BalanceSettings`
26
+ * Add support for `create`, `del`, `list`, `retrieve`, and `update` methods on a new `ExternalAccountService` class to access cards and bank accounts made available in the new path `v1/external_accounts`. Access this via `StripeClient.externalAccounts`
27
+ * Add support for `stripe_balance_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
28
+ * Add support for `customer_account` on `Billing.CreditBalanceSummaryRetrieveParams`, `Billing.CreditBalanceSummary`, `Billing.CreditBalanceTransactionListParams`, `Billing.CreditGrantCreateParams`, `Billing.CreditGrantListParams`, `Billing.CreditGrant`, `BillingPortal.SessionCreateParams`, `BillingPortal.Session`, `Checkout.SessionCreateParams`, `Checkout.SessionListParams`, `Checkout.Session`, `ConfirmationToken.payment_method_preview`, `CreditNoteListParams`, `CreditNote`, `CustomerBalanceTransaction`, `CustomerCashBalanceTransaction`, `CustomerCashBalance`, `CustomerPaymentMethod`, `CustomerSessionCreateParams`, `CustomerSession`, `CustomerTaxId.owner`, `CustomerTaxId`, `Customer`, `Discount`, `FinancialConnections.Account.account_holder`, `FinancialConnections.AccountListParams.account_holder`, `FinancialConnections.Session.account_holder`, `FinancialConnections.SessionCreateParams.account_holder`, `InvoiceCreateParams`, `InvoiceCreatePreviewParams`, `InvoiceItemCreateParams`, `InvoiceItemListParams`, `InvoiceItem`, `InvoiceListParams`, `Invoice`, `PaymentIntentCreateParams`, `PaymentIntentListParams`, `PaymentIntentUpdateParams`, `PaymentIntent`, `PaymentMethodAttachParams`, `PaymentMethod`, `PromotionCodeCreateParams`, `PromotionCodeListParams`, `PromotionCode`, `QuoteCreateParams`, `QuoteListParams`, `QuotePreviewInvoice`, `QuotePreviewSubscriptionSchedule`, `QuoteUpdateParams`, `Quote`, `SetupAttempt`, `SetupIntentCreateParams`, `SetupIntentListParams`, `SetupIntentUpdateParams`, `SetupIntent`, `SubscriptionCreateParams`, `SubscriptionListParams`, `SubscriptionScheduleCreateParams`, `SubscriptionScheduleListParams`, `SubscriptionSchedule`, `Subscription`, `TaxId.owner`, `TaxIdCreateParams.owner`, `TaxIdListParams.owner`, and `TaxId`
29
+ * Add support for `stripe_balance` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `CustomerPaymentMethod`, `PaymentAttemptRecord.payment_method_details`, `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`, `PaymentRecord.payment_method_details`, `SetupAttempt.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
30
+ * Add support for `update_line_items` and `update_shipping_details` on `Checkout.Session.permissions` and `Checkout.SessionCreateParams.permissions`
31
+ * Add support for `provider` on `Checkout.Session.automatic_tax`, `Invoice.automatic_tax`, `Quote.automatic_tax`, and `QuotePreviewInvoice.automatic_tax`
32
+ * Add support for `tax_calculation_reference` on `CreditNoteLineItem`, `CreditNotePreviewLines`, `InvoiceLineItem`, `LineItem`, `PaymentLinkLineItem`, `QuoteComputedUpfrontLineItems`, `QuoteLineItem`, and `SessionLineItem`
33
+ * Add support for `payment_method_options` on `ConfirmationTokenCreateParams.testHelpers`
34
+ * Add support for `installments` on `ConfirmationToken.payment_method_options.card`
35
+ * Add support for `context` on `Event`
36
+ * Add support for `related_customer_account` on `Identity.VerificationSession`, `identity.VerificationSessionCreateParams`, and `identity.VerificationSessionListParams`
37
+ * Add support for `network_data` on `Issuing.DisputeSettlementDetail`
38
+ * Add support for `interchange_fees_amount`, `net_total_amount`, `network_fees_amount`, `other_fees_amount`, `other_fees_count`, and `transaction_amount` on `Issuing.Settlement`
39
+ * Add support for `reported_by` on `PaymentAttemptRecord`
40
+ * Add support for `ach_credit_transfer`, `ach_debit`, `acss_debit`, `affirm`, `afterpay_clearpay`, `alipay`, `alma`, `amazon_pay`, `au_becs_debit`, `bacs_debit`, `bancontact`, `blik`, `boleto`, `card_present`, `card`, `cashapp`, `customer_balance`, `eps`, `fpx`, `giropay`, `gopay`, `grabpay`, `id_bank_transfer`, `ideal`, `interac_present`, `kakao_pay`, `klarna`, `konbini`, `kr_card`, `link`, `mb_way`, `mobilepay`, `multibanco`, `naver_pay`, `nz_bank_account`, `oxxo`, `p24`, `pay_by_bank`, `payco`, `paynow`, `paypal`, `payto`, `pix`, `promptpay`, `qris`, `rechnung`, `revolut_pay`, `samsung_pay`, `satispay`, `sepa_credit_transfer`, `sepa_debit`, `shopeepay`, `sofort`, `stripe_account`, `swish`, `twint`, `us_bank_account`, `wechat_pay`, `wechat`, and `zip` on `PaymentAttemptRecord.payment_method_details` and `PaymentRecord.payment_method_details`
41
+ * Add support for `payout_method` on `PayoutCreateParams` and `Payout`
42
+ * Add support for `confirmation_secret`, `parent`, and `total_taxes` on `QuotePreviewInvoice`
43
+ * Add support for new values `forwarding_api_retryable_upstream_error`, `setup_intent_mobile_wallet_unsupported`, `v2_account_disconnection_unsupported`, and `v2_account_missing_configuration` on enum `QuotePreviewInvoice.last_finalization_error.code`
44
+ * Add support for new values `klarna`, `nz_bank_account`, and `stripe_balance` on enum `QuotePreviewInvoice.payment_settings.payment_method_types`
45
+ * Add support for `id` and `text` on `Terminal.Reader.action.collect_inputs.inputs[].selection.choices[]`, `Terminal.Reader.action.collect_inputs.inputs[].selection`, and `Terminal.ReaderCollectInputsParams.inputs[].selection.choices[]`
46
+
47
+ #### New APIs for Money CardManagement
48
+
49
+ * Add support for new resources `V2.FinancialAddressCreditSimulation`, `V2.FinancialAddressGeneratedMicrodeposits`, `V2.MoneyManagement.Adjustment`, `V2.MoneyManagement.FinancialAccount`, `V2.MoneyManagement.FinancialAddress`, `V2.MoneyManagement.InboundTransfer`, `V2.MoneyManagement.OutboundPaymentQuote`, `V2.MoneyManagement.OutboundPayment`, `V2.MoneyManagement.OutboundSetupIntent`, `V2.MoneyManagement.OutboundTransfer`, `V2.MoneyManagement.PayoutMethod`, `V2.MoneyManagement.PayoutMethodsBankAccountSpec`, `V2.MoneyManagement.ReceivedCredit`, `V2.MoneyManagement.ReceivedDebit`, `V2.MoneyManagement.TransactionEntry`, and `V2.MoneyManagement.Transaction`
50
+ * Add support for `create` method on resource `V2.MoneyManagement.OutboundPaymentQuote`
51
+ * Add support for `list` and `retrieve` methods on resources `V2.MoneyManagement.Adjustment`, `V2.MoneyManagement.FinancialAccount`, `V2.MoneyManagement.ReceivedCredit`, `V2.MoneyManagement.ReceivedDebit`, `V2.MoneyManagement.TransactionEntry`, and `V2.MoneyManagement.Transaction`
52
+ * Add support for `create`, `list`, and `retrieve` methods on resources `V2.MoneyManagement.FinancialAddress` and `V2.MoneyManagement.InboundTransfer`
53
+ * Add support for `cancel`, `create`, `list`, and `retrieve` methods on resources `V2.MoneyManagement.OutboundPayment` and `V2.MoneyManagement.OutboundTransfer`
54
+ * Add support for `archive`, `list`, `retrieve`, and `unarchive` methods on resource `V2.MoneyManagement.PayoutMethod`
55
+ * Add support for `cancel`, `create`, `list`, `retrieve`, and `update` methods on resource `V2.MoneyManagement.OutboundSetupIntent`
56
+ * Add support for `retrieve` method on resource `V2.MoneyManagement.PayoutMethodsBankAccountSpec`
57
+ * Add support for new values `account_number`, `fedwire_routing_number`, and `routing_number` on enum `invalid_payment_method.invalid_param`
58
+ * Add support for new thin event `V2MoneyManagementFinancialAccountCreatedEvent` with related object `V2.MoneyManagement.FinancialAccount`
59
+ * Add support for new thin events `V2MoneyManagementFinancialAddressActivatedEvent` and `V2MoneyManagementFinancialAddressFailedEvent` with related object `V2.MoneyManagement.FinancialAddress`
60
+ * Add support for new thin events `V2MoneyManagementInboundTransferAvailableEvent`, `V2MoneyManagementInboundTransferBankDebitFailedEvent`, `V2MoneyManagementInboundTransferBankDebitProcessingEvent`, `V2MoneyManagementInboundTransferBankDebitQueuedEvent`, `V2MoneyManagementInboundTransferBankDebitReturnedEvent`, and `V2MoneyManagementInboundTransferBankDebitSucceededEvent` with related object `V2.MoneyManagement.InboundTransfer`
61
+ * Add support for new thin events `V2MoneyManagementOutboundPaymentCanceledEvent`, `V2MoneyManagementOutboundPaymentCreatedEvent`, `V2MoneyManagementOutboundPaymentFailedEvent`, `V2MoneyManagementOutboundPaymentPostedEvent`, and `V2MoneyManagementOutboundPaymentReturnedEvent` with related object `V2.MoneyManagement.OutboundPayment`
62
+ * Add support for new thin events `V2MoneyManagementOutboundTransferCanceledEvent`, `V2MoneyManagementOutboundTransferCreatedEvent`, `V2MoneyManagementOutboundTransferFailedEvent`, `V2MoneyManagementOutboundTransferPostedEvent`, and `V2MoneyManagementOutboundTransferReturnedEvent` with related object `V2.MoneyManagement.OutboundTransfer`
63
+ * Add support for new thin events `V2MoneyManagementReceivedCreditAvailableEvent`, `V2MoneyManagementReceivedCreditFailedEvent`, `V2MoneyManagementReceivedCreditReturnedEvent`, and `V2MoneyManagementReceivedCreditSucceededEvent` with related object `V2.MoneyManagement.ReceivedCredit`
64
+ * Add support for new thin events `V2MoneyManagementReceivedDebitCanceledEvent`, `V2MoneyManagementReceivedDebitFailedEvent`, `V2MoneyManagementReceivedDebitPendingEvent`, `V2MoneyManagementReceivedDebitSucceededEvent`, and `V2MoneyManagementReceivedDebitUpdatedEvent` with related object `V2.MoneyManagement.ReceivedDebit`
65
+ * Add support for new error types `AlreadyCanceledError`, `BlockedByStripeError`, `ControlledByDashboardError`, `FeatureNotEnabledError`, `FinancialAccountNotOpenError`, `InsufficientFundsError`, `InvalidPayoutMethodError`, `NotCancelableError`, and `RecipientNotNotifiableError`
66
+
67
+
68
+ #### New APIs for Accounts v2 in private preview
69
+ See [SaaS platform payments with subscription billing using Accounts v2](https://docs.stripe.com/connect/accounts-v2/saas-platform-payments-billing)
70
+
71
+ * Add support for new resources `V2.Core.AccountLink`, `V2.Core.Account`, `V2.Core.Person`, `V2.Core.Vault.GbBankAccount`, `V2.Core.Vault.UsBankAccount`
72
+ * Add support for `close`, `create`, `list`, `retrieve`, and `update` methods on resource `V2.Core.Account`
73
+ * Add support for `create` method on resource `V2.Core.AccountLink`
74
+ * Add support for `acknowledge_confirmation_of_payee`, `archive`, `create`, `initiate_confirmation_of_payee`, and `retrieve` methods on resource `V2.Core.Vault.GbBankAccount`
75
+ * Add support for `archive`, `create`, `retrieve`, and `update` methods on resource `V2.Core.Vault.UsBankAccount`
76
+ * Add support for new thin events `V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationCustomerUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationMerchantUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent`, `V2CoreAccountIncludingConfigurationRecipientUpdatedEvent`, `V2CoreAccountIncludingIdentityUpdatedEvent`, and `V2CoreAccountIncludingRequirementsUpdatedEvent`
77
+ * Add support for new thin event `V2CoreAccountLinkCompletedEvent` with related object `V2.Core.AccountLink`
78
+ * Add support for new thin events `V2CoreAccountPersonCreatedEvent`, `V2CoreAccountPersonDeletedEvent`, and `V2CoreAccountPersonUpdatedEvent` with related object `V2.Core.Person`
79
+
80
+ ### Changes
81
+ * Change `Billing.CreditBalanceSummaryRetrieveParams.customer`, `Billing.CreditBalanceTransactionListParams.customer`, `Billing.CreditGrantCreateParams.customer`, `BillingPortal.SessionCreateParams.customer`, `CustomerSessionCreateParams.customer`, `InvoiceItemCreateParams.customer`, `PaymentMethodAttachParams.customer`, and `SubscriptionCreateParams.customer` to be optional
82
+ * Change `CreditNote.refunds` to be required
83
+ * Change type of `PaymentAttemptRecord.payment_method_details.custom` and `PaymentRecord.payment_method_details.custom` from `PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails | null` to `PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails`
84
+ * Change `OrderCreateParams.payment.settings.payment_method_options.wechat_pay.client` and `OrderUpdateParams.payment.settings.payment_method_options.wechat_pay.client` to be optional
85
+
86
+
3
87
  ## 17.8.0-beta.1 - 2025-03-18
4
88
  * [#2271](https://github.com/stripe/stripe-node/pull/2271) Beta SDK updates between Open API versions 1473 and 1505
5
-
6
- * Add support for `succeed_input_collection` and `timeout_input_collection` test helper methods on resource `Terminal.Reader`
7
- * Change type of `Account.risk_controls.rejected_reason` from enum to enum | null
8
- * Change `Checkout.Session.collected_information.shipping_details` and `Checkout.Session.collected_information` to be required
9
- * Add support for `target_date` on `Order.payment.settings.payment_method_options.acss_debit`, `Order.payment.settings.payment_method_options.sepa_debit`, `OrderCreateParams.payment.settings.payment_method_options.acss_debit`, `OrderCreateParams.payment.settings.payment_method_options.sepa_debit`, `OrderUpdateParams.payment.settings.payment_method_options.acss_debit`, and `OrderUpdateParams.payment.settings.payment_method_options.sepa_debit`
10
- * [#2272](https://github.com/stripe/stripe-node/pull/2272) Merge master
11
89
 
12
- ## 17.7.0-beta.1 - 2025-02-07
13
- * [#2254](https://github.com/stripe/stripe-node/pull/2254) Update generated code for beta
14
- * Add support for `rejected_reason` on `Account.risk_controls`
15
- * Add support for `product_tax_code_selector` on `AccountSessionCreateParams.components`
16
- * Add support for `prices` on `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, `Billing.CreditGrant.applicability_config.scope`, and `Billing.CreditGrantCreateParams.applicability_config.scope`
17
- * Change `Billing.CreditGrant.applicability_config.scope.price_type`, `Checkout.Session.collected_information.business_name`, `Checkout.Session.collected_information.email`, `Checkout.Session.collected_information.phone`, `Checkout.Session.collected_information.shipping_details`, and `Checkout.Session.collected_information.tax_ids` to be optional
18
- * Add support for `brand_product` on `Charge.payment_method_details.amazon_pay.funding.card` and `Charge.payment_method_details.revolut_pay.funding.card`
19
- * Add support for `restrictions` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
20
- * Change `Checkout.Session.discounts` to be required
21
- * Change type of `TokenCreateParams.person.political_exposure` from `string` to `enum('existing'|'none')`
90
+ * Add support for `succeed_input_collection` and `timeout_input_collection` test helper methods on resource `Terminal.Reader`
91
+ * Change type of `Account.risk_controls.rejected_reason` from enum to enum | null
92
+ * Change `Checkout.Session.collected_information.shipping_details` and `Checkout.Session.collected_information` to be required
93
+ * Add support for `target_date` on `Order.payment.settings.payment_method_options.acss_debit`, `Order.payment.settings.payment_method_options.sepa_debit`, `OrderCreateParams.payment.settings.payment_method_options.acss_debit`, `OrderCreateParams.payment.settings.payment_method_options.sepa_debit`, `OrderUpdateParams.payment.settings.payment_method_options.acss_debit`, and `OrderUpdateParams.payment.settings.payment_method_options.sepa_debit`
94
+ * [#2272](https://github.com/stripe/stripe-node/pull/2272) Merge master
22
95
 
23
96
  ## 17.7.0 - 2025-02-24
24
97
  * [#2256](https://github.com/stripe/stripe-node/pull/2256) Update generated code
@@ -35,6 +108,17 @@
35
108
  * [#2259](https://github.com/stripe/stripe-node/pull/2259) Add Next.js App Router webhook example that leverages Route Handlers
36
109
  * [#2257](https://github.com/stripe/stripe-node/pull/2257) Include `OPENAPI_VERSION` into npm bundle
37
110
 
111
+ ## 17.7.0-beta.1 - 2025-02-07
112
+ * [#2254](https://github.com/stripe/stripe-node/pull/2254) Update generated code for beta
113
+ * Add support for `rejected_reason` on `Account.risk_controls`
114
+ * Add support for `product_tax_code_selector` on `AccountSessionCreateParams.components`
115
+ * Add support for `prices` on `Billing.CreditBalanceSummaryRetrieveParams.filter.applicability_scope`, `Billing.CreditGrant.applicability_config.scope`, and `Billing.CreditGrantCreateParams.applicability_config.scope`
116
+ * Change `Billing.CreditGrant.applicability_config.scope.price_type`, `Checkout.Session.collected_information.business_name`, `Checkout.Session.collected_information.email`, `Checkout.Session.collected_information.phone`, `Checkout.Session.collected_information.shipping_details`, and `Checkout.Session.collected_information.tax_ids` to be optional
117
+ * Add support for `brand_product` on `Charge.payment_method_details.amazon_pay.funding.card` and `Charge.payment_method_details.revolut_pay.funding.card`
118
+ * Add support for `restrictions` on `Checkout.Session.payment_method_options.card` and `Checkout.SessionCreateParams.payment_method_options.card`
119
+ * Change `Checkout.Session.discounts` to be required
120
+ * Change type of `TokenCreateParams.person.political_exposure` from `string` to `enum('existing'|'none')`
121
+
38
122
  ## 17.6.0 - 2025-01-27
39
123
  * [#2250](https://github.com/stripe/stripe-node/pull/2250) Update generated code
40
124
  * Add support for `close` method on resource `Treasury.FinancialAccount`
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v1505
1
+ v1648
package/VERSION CHANGED
@@ -1 +1 @@
1
- 17.8.0-beta.1
1
+ 18.1.0-beta.1
package/cjs/Error.js CHANGED
@@ -2,7 +2,7 @@
2
2
  /* eslint-disable camelcase */
3
3
  /* eslint-disable no-warning-comments */
4
4
  Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.TemporarySessionExpiredError = exports.StripeUnknownError = exports.StripeInvalidGrantError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateV1Error = void 0;
5
+ exports.InvalidPaymentMethodError = exports.ControlledByDashboardError = exports.InvalidPayoutMethodError = exports.FeatureNotEnabledError = exports.RecipientNotNotifiableError = exports.QuotaExceededError = exports.InsufficientFundsError = exports.NotCancelableError = exports.AlreadyCanceledError = exports.BlockedByStripeError = exports.FinancialAccountNotOpenError = exports.TemporarySessionExpiredError = exports.StripeUnknownError = exports.StripeInvalidGrantError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateV1Error = void 0;
6
6
  const generateV1Error = (rawStripeError) => {
7
7
  switch (rawStripeError.type) {
8
8
  case 'card_error':
@@ -30,6 +30,28 @@ const generateV2Error = (rawStripeError) => {
30
30
  // switchCases: The beginning of the section generated from our OpenAPI spec
31
31
  case 'temporary_session_expired':
32
32
  return new TemporarySessionExpiredError(rawStripeError);
33
+ case 'financial_account_not_open':
34
+ return new FinancialAccountNotOpenError(rawStripeError);
35
+ case 'blocked_by_stripe':
36
+ return new BlockedByStripeError(rawStripeError);
37
+ case 'already_canceled':
38
+ return new AlreadyCanceledError(rawStripeError);
39
+ case 'not_cancelable':
40
+ return new NotCancelableError(rawStripeError);
41
+ case 'insufficient_funds':
42
+ return new InsufficientFundsError(rawStripeError);
43
+ case 'quota_exceeded':
44
+ return new QuotaExceededError(rawStripeError);
45
+ case 'recipient_not_notifiable':
46
+ return new RecipientNotNotifiableError(rawStripeError);
47
+ case 'feature_not_enabled':
48
+ return new FeatureNotEnabledError(rawStripeError);
49
+ case 'invalid_payout_method':
50
+ return new InvalidPayoutMethodError(rawStripeError);
51
+ case 'controlled_by_dashboard':
52
+ return new ControlledByDashboardError(rawStripeError);
53
+ case 'invalid_payment_method':
54
+ return new InvalidPaymentMethodError(rawStripeError);
33
55
  // switchCases: The end of the section generated from our OpenAPI spec
34
56
  }
35
57
  // Special handling for requests with missing required fields in V2 APIs.
@@ -200,4 +222,72 @@ class TemporarySessionExpiredError extends StripeError {
200
222
  }
201
223
  }
202
224
  exports.TemporarySessionExpiredError = TemporarySessionExpiredError;
225
+ class FinancialAccountNotOpenError extends StripeError {
226
+ constructor(rawStripeError = {}) {
227
+ super(rawStripeError, 'FinancialAccountNotOpenError');
228
+ }
229
+ }
230
+ exports.FinancialAccountNotOpenError = FinancialAccountNotOpenError;
231
+ class BlockedByStripeError extends StripeError {
232
+ constructor(rawStripeError = {}) {
233
+ super(rawStripeError, 'BlockedByStripeError');
234
+ }
235
+ }
236
+ exports.BlockedByStripeError = BlockedByStripeError;
237
+ class AlreadyCanceledError extends StripeError {
238
+ constructor(rawStripeError = {}) {
239
+ super(rawStripeError, 'AlreadyCanceledError');
240
+ }
241
+ }
242
+ exports.AlreadyCanceledError = AlreadyCanceledError;
243
+ class NotCancelableError extends StripeError {
244
+ constructor(rawStripeError = {}) {
245
+ super(rawStripeError, 'NotCancelableError');
246
+ }
247
+ }
248
+ exports.NotCancelableError = NotCancelableError;
249
+ class InsufficientFundsError extends StripeError {
250
+ constructor(rawStripeError = {}) {
251
+ super(rawStripeError, 'InsufficientFundsError');
252
+ }
253
+ }
254
+ exports.InsufficientFundsError = InsufficientFundsError;
255
+ class QuotaExceededError extends StripeError {
256
+ constructor(rawStripeError = {}) {
257
+ super(rawStripeError, 'QuotaExceededError');
258
+ }
259
+ }
260
+ exports.QuotaExceededError = QuotaExceededError;
261
+ class RecipientNotNotifiableError extends StripeError {
262
+ constructor(rawStripeError = {}) {
263
+ super(rawStripeError, 'RecipientNotNotifiableError');
264
+ }
265
+ }
266
+ exports.RecipientNotNotifiableError = RecipientNotNotifiableError;
267
+ class FeatureNotEnabledError extends StripeError {
268
+ constructor(rawStripeError = {}) {
269
+ super(rawStripeError, 'FeatureNotEnabledError');
270
+ }
271
+ }
272
+ exports.FeatureNotEnabledError = FeatureNotEnabledError;
273
+ class InvalidPayoutMethodError extends StripeError {
274
+ constructor(rawStripeError = {}) {
275
+ super(rawStripeError, 'InvalidPayoutMethodError');
276
+ }
277
+ }
278
+ exports.InvalidPayoutMethodError = InvalidPayoutMethodError;
279
+ class ControlledByDashboardError extends StripeError {
280
+ constructor(rawStripeError = {}) {
281
+ super(rawStripeError, 'ControlledByDashboardError');
282
+ }
283
+ }
284
+ exports.ControlledByDashboardError = ControlledByDashboardError;
285
+ class InvalidPaymentMethodError extends StripeError {
286
+ constructor(rawStripeError) {
287
+ super(rawStripeError, 'InvalidPaymentMethodError');
288
+ // @ts-ignore
289
+ this.invalid_param = this.raw.invalid_param;
290
+ }
291
+ }
292
+ exports.InvalidPaymentMethodError = InvalidPaymentMethodError;
203
293
  // classDefinitions: The end of the section generated from our OpenAPI spec
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-02-24.acacia';
5
+ exports.ApiVersion = '2025-03-31.preview';
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.BalanceSettings = void 0;
5
+ const StripeResource_js_1 = require("../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.BalanceSettings = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/balance_settings' }),
9
+ update: stripeMethod({ method: 'POST', fullPath: '/v1/balance_settings' }),
10
+ });
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ExternalAccounts = void 0;
5
+ const StripeResource_js_1 = require("../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.ExternalAccounts = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({ method: 'POST', fullPath: '/v1/external_accounts' }),
9
+ retrieve: stripeMethod({
10
+ method: 'GET',
11
+ fullPath: '/v1/external_accounts/{id}',
12
+ }),
13
+ update: stripeMethod({
14
+ method: 'POST',
15
+ fullPath: '/v1/external_accounts/{id}',
16
+ }),
17
+ list: stripeMethod({
18
+ method: 'GET',
19
+ fullPath: '/v1/external_accounts',
20
+ methodType: 'list',
21
+ }),
22
+ del: stripeMethod({ method: 'DELETE', fullPath: '/v1/external_accounts/{id}' }),
23
+ });
@@ -44,11 +44,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
44
44
  fullPath: '/v1/invoices/{invoice}/payments',
45
45
  methodType: 'list',
46
46
  }),
47
- listUpcomingLines: stripeMethod({
48
- method: 'GET',
49
- fullPath: '/v1/invoices/upcoming/lines',
50
- methodType: 'list',
51
- }),
52
47
  markUncollectible: stripeMethod({
53
48
  method: 'POST',
54
49
  fullPath: '/v1/invoices/{invoice}/mark_uncollectible',
@@ -62,10 +57,6 @@ exports.Invoices = StripeResource_js_1.StripeResource.extend({
62
57
  method: 'GET',
63
58
  fullPath: '/v1/invoices/{invoice}/payments/{invoice_payment}',
64
59
  }),
65
- retrieveUpcoming: stripeMethod({
66
- method: 'GET',
67
- fullPath: '/v1/invoices/upcoming',
68
- }),
69
60
  search: stripeMethod({
70
61
  method: 'GET',
71
62
  fullPath: '/v1/invoices/search',
@@ -23,13 +23,4 @@ exports.SubscriptionItems = StripeResource_js_1.StripeResource.extend({
23
23
  method: 'DELETE',
24
24
  fullPath: '/v1/subscription_items/{item}',
25
25
  }),
26
- createUsageRecord: stripeMethod({
27
- method: 'POST',
28
- fullPath: '/v1/subscription_items/{subscription_item}/usage_records',
29
- }),
30
- listUsageRecordSummaries: stripeMethod({
31
- method: 'GET',
32
- fullPath: '/v1/subscription_items/{subscription_item}/usage_record_summaries',
33
- methodType: 'list',
34
- }),
35
26
  });
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.AccountLinks = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.AccountLinks = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({ method: 'POST', fullPath: '/v2/core/account_links' }),
9
+ });
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Persons = void 0;
5
+ const StripeResource_js_1 = require("../../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.Persons = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/core/accounts/{account_id}/persons',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/core/accounts/{account_id}/persons/{id}',
15
+ }),
16
+ update: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v2/core/accounts/{account_id}/persons/{id}',
19
+ }),
20
+ list: stripeMethod({
21
+ method: 'GET',
22
+ fullPath: '/v2/core/accounts/{account_id}/persons',
23
+ methodType: 'list',
24
+ }),
25
+ del: stripeMethod({
26
+ method: 'DELETE',
27
+ fullPath: '/v2/core/accounts/{account_id}/persons/{id}',
28
+ }),
29
+ });
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Accounts = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const Persons_js_1 = require("./Accounts/Persons.js");
7
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
8
+ exports.Accounts = StripeResource_js_1.StripeResource.extend({
9
+ constructor: function (...args) {
10
+ StripeResource_js_1.StripeResource.apply(this, args);
11
+ this.persons = new Persons_js_1.Persons(...args);
12
+ },
13
+ create: stripeMethod({ method: 'POST', fullPath: '/v2/core/accounts' }),
14
+ retrieve: stripeMethod({ method: 'GET', fullPath: '/v2/core/accounts/{id}' }),
15
+ update: stripeMethod({ method: 'POST', fullPath: '/v2/core/accounts/{id}' }),
16
+ list: stripeMethod({
17
+ method: 'GET',
18
+ fullPath: '/v2/core/accounts',
19
+ methodType: 'list',
20
+ }),
21
+ close: stripeMethod({
22
+ method: 'POST',
23
+ fullPath: '/v2/core/accounts/{id}/close',
24
+ }),
25
+ });
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.GbBankAccounts = void 0;
5
+ const StripeResource_js_1 = require("../../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.GbBankAccounts = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/core/vault/gb_bank_accounts',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/core/vault/gb_bank_accounts/{id}',
15
+ }),
16
+ acknowledgeConfirmationOfPayee: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v2/core/vault/gb_bank_accounts/{id}/acknowledge_confirmation_of_payee',
19
+ }),
20
+ archive: stripeMethod({
21
+ method: 'POST',
22
+ fullPath: '/v2/core/vault/gb_bank_accounts/{id}/archive',
23
+ }),
24
+ initiateConfirmationOfPayee: stripeMethod({
25
+ method: 'POST',
26
+ fullPath: '/v2/core/vault/gb_bank_accounts/{id}/initiate_confirmation_of_payee',
27
+ }),
28
+ });
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.UsBankAccounts = void 0;
5
+ const StripeResource_js_1 = require("../../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.UsBankAccounts = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/core/vault/us_bank_accounts',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/core/vault/us_bank_accounts/{id}',
15
+ }),
16
+ update: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v2/core/vault/us_bank_accounts/{id}',
19
+ }),
20
+ archive: stripeMethod({
21
+ method: 'POST',
22
+ fullPath: '/v2/core/vault/us_bank_accounts/{id}/archive',
23
+ }),
24
+ });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Adjustments = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.Adjustments = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v2/money_management/adjustments/{id}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/money_management/adjustments',
15
+ methodType: 'list',
16
+ }),
17
+ });
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FinancialAccounts = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.FinancialAccounts = StripeResource_js_1.StripeResource.extend({
8
+ retrieve: stripeMethod({
9
+ method: 'GET',
10
+ fullPath: '/v2/money_management/financial_accounts/{id}',
11
+ }),
12
+ list: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/money_management/financial_accounts',
15
+ methodType: 'list',
16
+ }),
17
+ });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.FinancialAddresses = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.FinancialAddresses = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/money_management/financial_addresses',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/money_management/financial_addresses/{id}',
15
+ }),
16
+ list: stripeMethod({
17
+ method: 'GET',
18
+ fullPath: '/v2/money_management/financial_addresses',
19
+ methodType: 'list',
20
+ }),
21
+ });
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.InboundTransfers = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.InboundTransfers = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/money_management/inbound_transfers',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/money_management/inbound_transfers/{id}',
15
+ }),
16
+ list: stripeMethod({
17
+ method: 'GET',
18
+ fullPath: '/v2/money_management/inbound_transfers',
19
+ methodType: 'list',
20
+ }),
21
+ });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.OutboundPaymentQuotes = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.OutboundPaymentQuotes = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/money_management/outbound_payment_quotes',
11
+ }),
12
+ });
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.OutboundPayments = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.OutboundPayments = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/money_management/outbound_payments',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/money_management/outbound_payments/{id}',
15
+ }),
16
+ list: stripeMethod({
17
+ method: 'GET',
18
+ fullPath: '/v2/money_management/outbound_payments',
19
+ methodType: 'list',
20
+ }),
21
+ cancel: stripeMethod({
22
+ method: 'POST',
23
+ fullPath: '/v2/money_management/outbound_payments/{id}/cancel',
24
+ }),
25
+ });
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.OutboundSetupIntents = void 0;
5
+ const StripeResource_js_1 = require("../../../StripeResource.js");
6
+ const stripeMethod = StripeResource_js_1.StripeResource.method;
7
+ exports.OutboundSetupIntents = StripeResource_js_1.StripeResource.extend({
8
+ create: stripeMethod({
9
+ method: 'POST',
10
+ fullPath: '/v2/money_management/outbound_setup_intents',
11
+ }),
12
+ retrieve: stripeMethod({
13
+ method: 'GET',
14
+ fullPath: '/v2/money_management/outbound_setup_intents/{id}',
15
+ }),
16
+ update: stripeMethod({
17
+ method: 'POST',
18
+ fullPath: '/v2/money_management/outbound_setup_intents/{id}',
19
+ }),
20
+ list: stripeMethod({
21
+ method: 'GET',
22
+ fullPath: '/v2/money_management/outbound_setup_intents',
23
+ methodType: 'list',
24
+ }),
25
+ cancel: stripeMethod({
26
+ method: 'POST',
27
+ fullPath: '/v2/money_management/outbound_setup_intents/{id}/cancel',
28
+ }),
29
+ });