stripe 22.2.0-beta.1 → 22.2.0-beta.2

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 (173) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/OPENAPI_VERSION +1 -1
  3. package/VERSION +1 -1
  4. package/cjs/Error.d.ts +8 -1
  5. package/cjs/Error.js +11 -1
  6. package/cjs/Error.js.map +1 -1
  7. package/cjs/StripeEventNotificationHandler.js +15 -0
  8. package/cjs/StripeEventNotificationHandler.js.map +1 -1
  9. package/cjs/Types.d.ts +1 -1
  10. package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +3 -3
  11. package/cjs/resources/V2/Billing/BillSettings.d.ts +12 -12
  12. package/cjs/resources/V2/Billing/Cadences.d.ts +35 -37
  13. package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +7 -9
  14. package/cjs/resources/V2/Billing/CollectionSettings.d.ts +24 -30
  15. package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +5 -5
  16. package/cjs/resources/V2/Billing/MeterEventSession.d.ts +4 -4
  17. package/cjs/resources/V2/Billing/MeterEventSession.js +1 -1
  18. package/cjs/resources/V2/Billing/Profiles.d.ts +1 -1
  19. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.d.ts +99 -0
  20. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js +156 -0
  21. package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -0
  22. package/cjs/resources/V2/Commerce/ProductCatalog/index.d.ts +8 -0
  23. package/cjs/resources/V2/Commerce/ProductCatalog/index.js +13 -0
  24. package/cjs/resources/V2/Commerce/ProductCatalog/index.js.map +1 -0
  25. package/cjs/resources/V2/Commerce/ProductCatalogImports.d.ts +183 -0
  26. package/cjs/resources/V2/Commerce/ProductCatalogImports.js +4 -0
  27. package/cjs/resources/V2/Commerce/ProductCatalogImports.js.map +1 -0
  28. package/cjs/resources/V2/Commerce/index.d.ts +13 -0
  29. package/cjs/resources/V2/Commerce/index.js +13 -0
  30. package/cjs/resources/V2/Commerce/index.js.map +1 -0
  31. package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +2 -1
  32. package/cjs/resources/V2/Core/Accounts/PersonTokens.js +2 -1
  33. package/cjs/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  34. package/cjs/resources/V2/Core/Accounts.d.ts +1 -1
  35. package/cjs/resources/V2/Core/BatchJobs.d.ts +23 -22
  36. package/cjs/resources/V2/Core/Events.d.ts +402 -5
  37. package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +2 -2
  38. package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +156 -0
  39. package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
  40. package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  41. package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
  42. package/cjs/resources/V2/Data/Reporting/index.js +13 -0
  43. package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
  44. package/cjs/resources/V2/Data/index.d.ts +10 -0
  45. package/cjs/resources/V2/Data/index.js +13 -0
  46. package/cjs/resources/V2/Data/index.js.map +1 -0
  47. package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
  48. package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
  49. package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  50. package/cjs/resources/V2/Extend/Workflows.d.ts +123 -0
  51. package/cjs/resources/V2/Extend/Workflows.js +30 -0
  52. package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
  53. package/cjs/resources/V2/Extend/index.d.ts +20 -0
  54. package/cjs/resources/V2/Extend/index.js +15 -0
  55. package/cjs/resources/V2/Extend/index.js.map +1 -0
  56. package/cjs/resources/V2/Iam/ActivityLogs.d.ts +204 -0
  57. package/cjs/resources/V2/Iam/ActivityLogs.js +17 -0
  58. package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
  59. package/cjs/resources/V2/Iam/index.d.ts +12 -0
  60. package/cjs/resources/V2/Iam/index.js +13 -0
  61. package/cjs/resources/V2/Iam/index.js.map +1 -0
  62. package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +6 -9
  63. package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +2 -2
  64. package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +1 -1
  65. package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +2 -1
  66. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +1 -0
  67. package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  68. package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +1 -1
  69. package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +1 -1
  70. package/cjs/resources/V2/Network/BusinessProfiles.d.ts +96 -0
  71. package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
  72. package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
  73. package/cjs/resources/V2/Network/index.d.ts +13 -0
  74. package/cjs/resources/V2/Network/index.js +13 -0
  75. package/cjs/resources/V2/Network/index.js.map +1 -0
  76. package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
  77. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
  78. package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  79. package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  80. package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
  81. package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  82. package/cjs/resources/V2/index.d.ts +18 -0
  83. package/cjs/resources/V2/index.js +18 -6
  84. package/cjs/resources/V2/index.js.map +1 -1
  85. package/cjs/resources.js +28 -0
  86. package/cjs/resources.js.map +1 -1
  87. package/cjs/stripe.core.js +1 -1
  88. package/esm/Error.d.ts +8 -1
  89. package/esm/Error.js +9 -0
  90. package/esm/Error.js.map +1 -1
  91. package/esm/StripeEventNotificationHandler.js +15 -0
  92. package/esm/StripeEventNotificationHandler.js.map +1 -1
  93. package/esm/Types.d.ts +1 -1
  94. package/esm/resources/V2/Billing/BillSettingVersions.d.ts +3 -3
  95. package/esm/resources/V2/Billing/BillSettings.d.ts +12 -12
  96. package/esm/resources/V2/Billing/Cadences.d.ts +35 -37
  97. package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +7 -9
  98. package/esm/resources/V2/Billing/CollectionSettings.d.ts +24 -30
  99. package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +5 -5
  100. package/esm/resources/V2/Billing/MeterEventSession.d.ts +4 -4
  101. package/esm/resources/V2/Billing/MeterEventSession.js +1 -1
  102. package/esm/resources/V2/Billing/Profiles.d.ts +1 -1
  103. package/esm/resources/V2/Commerce/ProductCatalog/Imports.d.ts +99 -0
  104. package/esm/resources/V2/Commerce/ProductCatalog/Imports.js +152 -0
  105. package/esm/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -0
  106. package/esm/resources/V2/Commerce/ProductCatalog/index.d.ts +8 -0
  107. package/esm/resources/V2/Commerce/ProductCatalog/index.js +9 -0
  108. package/esm/resources/V2/Commerce/ProductCatalog/index.js.map +1 -0
  109. package/esm/resources/V2/Commerce/ProductCatalogImports.d.ts +183 -0
  110. package/esm/resources/V2/Commerce/ProductCatalogImports.js +3 -0
  111. package/esm/resources/V2/Commerce/ProductCatalogImports.js.map +1 -0
  112. package/esm/resources/V2/Commerce/index.d.ts +13 -0
  113. package/esm/resources/V2/Commerce/index.js +9 -0
  114. package/esm/resources/V2/Commerce/index.js.map +1 -0
  115. package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +2 -1
  116. package/esm/resources/V2/Core/Accounts/PersonTokens.js +2 -1
  117. package/esm/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
  118. package/esm/resources/V2/Core/Accounts.d.ts +1 -1
  119. package/esm/resources/V2/Core/BatchJobs.d.ts +23 -22
  120. package/esm/resources/V2/Core/Events.d.ts +402 -5
  121. package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +2 -2
  122. package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +156 -0
  123. package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
  124. package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
  125. package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
  126. package/esm/resources/V2/Data/Reporting/index.js +9 -0
  127. package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
  128. package/esm/resources/V2/Data/index.d.ts +10 -0
  129. package/esm/resources/V2/Data/index.js +9 -0
  130. package/esm/resources/V2/Data/index.js.map +1 -0
  131. package/esm/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
  132. package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
  133. package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
  134. package/esm/resources/V2/Extend/Workflows.d.ts +123 -0
  135. package/esm/resources/V2/Extend/Workflows.js +26 -0
  136. package/esm/resources/V2/Extend/Workflows.js.map +1 -0
  137. package/esm/resources/V2/Extend/index.d.ts +20 -0
  138. package/esm/resources/V2/Extend/index.js +11 -0
  139. package/esm/resources/V2/Extend/index.js.map +1 -0
  140. package/esm/resources/V2/Iam/ActivityLogs.d.ts +204 -0
  141. package/esm/resources/V2/Iam/ActivityLogs.js +13 -0
  142. package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
  143. package/esm/resources/V2/Iam/index.d.ts +12 -0
  144. package/esm/resources/V2/Iam/index.js +9 -0
  145. package/esm/resources/V2/Iam/index.js.map +1 -0
  146. package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +6 -9
  147. package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +2 -2
  148. package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +1 -1
  149. package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +2 -1
  150. package/esm/resources/V2/MoneyManagement/PayoutMethods.js +1 -0
  151. package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
  152. package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +1 -1
  153. package/esm/resources/V2/MoneyManagement/Transactions.d.ts +1 -1
  154. package/esm/resources/V2/Network/BusinessProfiles.d.ts +96 -0
  155. package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
  156. package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
  157. package/esm/resources/V2/Network/index.d.ts +13 -0
  158. package/esm/resources/V2/Network/index.js +9 -0
  159. package/esm/resources/V2/Network/index.js.map +1 -0
  160. package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
  161. package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
  162. package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
  163. package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
  164. package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
  165. package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
  166. package/esm/resources/V2/index.d.ts +18 -0
  167. package/esm/resources/V2/index.js +12 -0
  168. package/esm/resources/V2/index.js.map +1 -1
  169. package/esm/resources.js +28 -0
  170. package/esm/resources.js.map +1 -1
  171. package/esm/stripe.core.js +1 -1
  172. package/esm/stripe.esm.node.js +1 -1
  173. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## 22.2.0-beta.2 - 2026-04-24
4
+ * [#2693](https://github.com/stripe/stripe-node/pull/2693) Update generated code for beta
5
+ * Add support for new resources `V2.Commerce.ProductCatalogImport`, `V2.Data.Reporting.QueryRun`, `V2.Extend.WorkflowRun`, `V2.Extend.Workflow`, `V2.Iam.ActivityLog`, `V2.Network.BusinessProfile`, and `V2.OrchestratedCommerce.Agreement`
6
+ * Add support for `confirm`, `create`, `list`, `retrieve`, and `terminate` methods on resource `V2.OrchestratedCommerce.Agreement`
7
+ * Add support for `me` and `retrieve` methods on resource `V2.Network.BusinessProfile`
8
+ * Add support for `list` method on resource `V2.Iam.ActivityLog`
9
+ * Add support for `list` and `retrieve` methods on resource `V2.Extend.WorkflowRun`
10
+ * Add support for `invoke`, `list`, and `retrieve` methods on resource `V2.Extend.Workflow`
11
+ * Add support for `create` and `retrieve` methods on resources `V2.Commerce.ProductCatalogImport` and `V2.Data.Reporting.QueryRun`
12
+ * ⚠️ Change type of `V2.Billing.Cadence.settings_data.collection.payment_method_options.konbini`, `V2.Billing.CollectionSetting.payment_method_options.konbini`, `V2.Billing.CollectionSettingCreateParams.payment_method_options.konbini`, `V2.Billing.CollectionSettingUpdateParams.payment_method_options.konbini`, and `V2.Billing.CollectionSettingVersion.payment_method_options.konbini` from `map(string: dynamic)` to `an object`
13
+ * ⚠️ Change type of `V2.Billing.Cadence.settings_data.collection.payment_method_options.sepa_debit`, `V2.Billing.CollectionSetting.payment_method_options.sepa_debit`, `V2.Billing.CollectionSettingCreateParams.payment_method_options.sepa_debit`, `V2.Billing.CollectionSettingUpdateParams.payment_method_options.sepa_debit`, and `V2.Billing.CollectionSettingVersion.payment_method_options.sepa_debit` from `map(string: dynamic)` to `an object`
14
+ * ⚠️ Add support for new values `cn_bank_account` and `jp_bank_account` on enum `V2.Core.Account.configuration.recipient.default_outbound_destination.type`
15
+ * ⚠️ Add support for new values `futsu` and `toza` on enums `V2.Core.Vault.GbBankAccount.bank_account_type` and `V2.MoneyManagement.PayoutMethod.bank_account.bank_account_type`
16
+ * ⚠️ Change type of `V2.MoneyManagement.InboundTransfer.transfer_history[].bank_debit_processing` from `map(string: dynamic)` to `an object`
17
+ * ⚠️ Change type of `V2.MoneyManagement.InboundTransfer.transfer_history[].bank_debit_queued` from `map(string: dynamic)` to `an object`
18
+ * ⚠️ Change type of `V2.MoneyManagement.InboundTransfer.transfer_history[].bank_debit_succeeded` from `map(string: dynamic)` to `an object`
19
+ * ⚠️ Add support for new value `payout_method_amount_limit_exceeded` on enum `V2.MoneyManagement.OutboundTransfer.status_details.failed.reason`
20
+ * ⚠️ Add support for new values `inbound_transfer_reversal`, `outbound_payment_reversal`, `outbound_transfer_reversal`, `received_credit_reversal`, `received_debit_reversal`, and `stripe_fee_tax` on enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.transaction_details.category`
21
+ * ⚠️ Remove support for value `return` from enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.transaction_details.category`
22
+ * Add support for new values `futsu` and `toza` on enums `V2.Core.Vault.GbBankAccountCreateParams.bank_account_type`, `V2.MoneyManagement.OutboundSetupIntentCreateParams.payout_method_data.bank_account.bank_account_type`, and `V2.MoneyManagement.OutboundSetupIntentUpdateParams.payout_method_data.bank_account.bank_account_type`
23
+ * Change type of `V2.Core.BatchJobCreateParams.endpoint.http_method` from `literal('post')` to `enum('delete'|'post')`
24
+ * ⚠️ Add support for new value `meter_event_value_too_many_digits` on enums `EventsV1BillingMeterErrorReportTriggeredEvent.reason.error_types[].code` and `EventsV1BillingMeterNoMeterFoundEvent.reason.error_types[].code`
25
+ * Add support for `treasury_transaction` on `EventsV2MoneyManagementTransactionCreatedEvent`
26
+ * Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `V2.Commerce.ProductCatalogImport`
27
+ * Add support for event notifications `V2DataReportingQueryRunCreatedEvent`, `V2DataReportingQueryRunFailedEvent`, `V2DataReportingQueryRunSucceededEvent`, and `V2DataReportingQueryRunUpdatedEvent` with related object `V2.Data.Reporting.QueryRun`
28
+ * Add support for event notifications `V2ExtendWorkflowRunFailedEvent`, `V2ExtendWorkflowRunStartedEvent`, and `V2ExtendWorkflowRunSucceededEvent` with related object `V2.Extend.WorkflowRun`
29
+ * Add support for event notifications `V2OrchestratedCommerceAgreementConfirmedEvent`, `V2OrchestratedCommerceAgreementCreatedEvent`, `V2OrchestratedCommerceAgreementPartiallyConfirmedEvent`, and `V2OrchestratedCommerceAgreementTerminatedEvent` with related object `V2.OrchestratedCommerce.Agreement`
30
+ * Add support for error type `CannotProceedError`
31
+
3
32
  ## 22.2.0-beta.1 - 2026-04-23
4
33
  This release changes the pinned API version to 2026-04-22.private.
5
34
 
@@ -29,6 +58,51 @@ This release changes the pinned API version to 2026-04-22.private.
29
58
  * Add support for `purpose` on `Treasury.OutboundPaymentCreateParams` and `Treasury.OutboundPayment`
30
59
  * Add support for error codes `action_blocked` and `approval_required` on `QuotePreviewInvoice.last_finalization_error`
31
60
 
61
+ ## 22.1.0 - 2026-04-23
62
+ This release changes the pinned API version to 2026-04-22.dahlia.
63
+
64
+ * [#2639](https://github.com/stripe/stripe-node/pull/2639) Update generated code
65
+ * Add support for `app_distribution` and `sunbit_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
66
+ * Add support for `balance_report` and `payout_reconciliation_report` on `AccountSession.components` and `AccountSessionCreateParams.components`
67
+ * ⚠️ Add support for new values `fee_credit_funding`, `inbound_transfer_reversal`, and `inbound_transfer` on enum `BalanceTransaction.type`
68
+ * Add support for `sunbit` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentAttemptRecord.payment_method_details`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.payment_method_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
69
+ * ⚠️ Add support for new values `phantom_cash` and `usdt` on enums `Charge.payment_method_details.crypto.token_currency`, `PaymentAttemptRecord.payment_method_details.crypto.token_currency`, and `PaymentRecord.payment_method_details.crypto.token_currency`
70
+ * Add support for `location` and `reader` on `Charge.payment_method_details.klarna`, `PaymentAttemptRecord.payment_method_details.klarna`, and `PaymentRecord.payment_method_details.klarna`
71
+ * Add support for `mandate` on `Charge.payment_method_details.pix`, `PaymentAttemptRecord.payment_method_details.pix`, and `PaymentRecord.payment_method_details.pix`
72
+ * Add support for `managed_payments` on `Checkout.SessionCreateParams`, `Checkout.Session`, `PaymentIntent`, `PaymentLinkCreateParams`, `PaymentLink`, `SetupIntent`, and `Subscription`
73
+ * Add support for new value `sunbit` on enums `Checkout.SessionCreateParams.excluded_payment_method_types`, `PaymentIntentConfirmParams.excluded_payment_method_types`, `PaymentIntentCreateParams.excluded_payment_method_types`, `PaymentIntentUpdateParams.excluded_payment_method_types`, `SetupIntentCreateParams.excluded_payment_method_types`, and `SetupIntentUpdateParams.excluded_payment_method_types`
74
+ * Add support for `mandate_options` on `Checkout.Session.payment_method_options.pix`, `Checkout.SessionCreateParams.payment_method_options.pix`, `PaymentIntent.payment_method_options.pix`, `PaymentIntentConfirmParams.payment_method_options.pix`, `PaymentIntentCreateParams.payment_method_options.pix`, and `PaymentIntentUpdateParams.payment_method_options.pix`
75
+ * Change type of `Checkout.SessionCreateParams.payment_method_options.pix.setup_future_usage`, `PaymentIntentConfirmParams.payment_method_options.pix.setup_future_usage`, `PaymentIntentCreateParams.payment_method_options.pix.setup_future_usage`, and `PaymentIntentUpdateParams.payment_method_options.pix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
76
+ * Add support for new value `sunbit` on enum `Checkout.SessionCreateParams.payment_method_types`
77
+ * ⚠️ Add support for new values `fo_vat`, `gi_tin`, `it_cf`, and `py_ruc` on enums `Checkout.Session.customer_details.tax_ids[].type`, `Invoice.customer_tax_ids[].type`, `Tax.Calculation.customer_details.tax_ids[].type`, `Tax.Transaction.customer_details.tax_ids[].type`, and `TaxId.type`
78
+ * ⚠️ Change type of `Checkout.Session.payment_method_options.pix.setup_future_usage` and `PaymentIntent.payment_method_options.pix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
79
+ * Add support for new value `sunbit` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.type`, `PaymentIntentConfirmParams.payment_method_data.type`, `PaymentIntentCreateParams.payment_method_data.type`, `PaymentIntentUpdateParams.payment_method_data.type`, `SetupIntentConfirmParams.payment_method_data.type`, `SetupIntentCreateParams.payment_method_data.type`, and `SetupIntentUpdateParams.payment_method_data.type`
80
+ * ⚠️ Add support for new value `sunbit` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
81
+ * Add support for new values `fo_vat`, `gi_tin`, `it_cf`, and `py_ruc` on enums `CustomerCreateParams.tax_id_data[].type`, `CustomerCreateTaxIdParams.type`, `InvoiceCreatePreviewParams.customer_details.tax_ids[].type`, `Tax.CalculationCreateParams.customer_details.tax_ids[].type`, and `TaxIdCreateParams.type`
82
+ * Add support for new value `sunbit` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
83
+ * Add support for `pix` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Mandate.payment_method_details`, `SetupAttempt.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options`
84
+ * Add support for `upi` on `Invoice.payment_settings.payment_method_options`, `InvoiceCreateParams.payment_settings.payment_method_options`, `InvoiceUpdateParams.payment_settings.payment_method_options`, `Subscription.payment_settings.payment_method_options`, `SubscriptionCreateParams.payment_settings.payment_method_options`, and `SubscriptionUpdateParams.payment_settings.payment_method_options`
85
+ * Add support for new values `pix` and `upi` on enums `InvoiceCreateParams.payment_settings.payment_method_types`, `InvoiceUpdateParams.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types`
86
+ * ⚠️ Add support for new values `pix` and `upi` on enums `Invoice.payment_settings.payment_method_types` and `Subscription.payment_settings.payment_method_types`
87
+ * Add support for `card_presence` on `Issuing.Authorization`
88
+ * Add support for `allowed_card_presences` and `blocked_card_presences` on `Issuing.Card.spending_controls`, `Issuing.CardCreateParams.spending_controls`, `Issuing.CardUpdateParams.spending_controls`, `Issuing.Cardholder.spending_controls`, `Issuing.CardholderCreateParams.spending_controls`, and `Issuing.CardholderUpdateParams.spending_controls`
89
+ * ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.cancellation_reason`
90
+ * ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.replacement_reason`
91
+ * Add support for `amount` and `currency` on `Mandate.multi_use`
92
+ * Add support for `amount_to_confirm` on `PaymentIntentConfirmParams`
93
+ * ⚠️ Add support for new value `sunbit` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types`
94
+ * Add support for `klarna_display_qr_code` on `PaymentIntent.next_action`
95
+ * Add support for new value `sunbit` on enums `PaymentLinkCreateParams.payment_method_types` and `PaymentLinkUpdateParams.payment_method_types`
96
+ * ⚠️ Add support for new value `sunbit` on enum `PaymentLink.payment_method_types`
97
+ * ⚠️ Add support for new values `low`, `not_assessed`, and `unknown` on enum `Radar.PaymentEvaluation.signals.fraudulent_payment.risk_level`
98
+ * Add support for new value `account` on enum `Radar.ValueListCreateParams.item_type`
99
+ * ⚠️ Add support for new value `account` on enum `Radar.ValueList.item_type`
100
+ * Add support for `moto` on `SetupAttempt.payment_method_details.card`
101
+ * Add support for `pix_display_qr_code` on `SetupIntent.next_action`
102
+ * Add support for new value `2026-04-22.dahlia` on enum `WebhookEndpointCreateParams.api_version`
103
+ * Add support for error codes `action_blocked` and `approval_required` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
104
+ * [#2688](https://github.com/stripe/stripe-node/pull/2688) Preserve stack traces for async operations
105
+
32
106
  ## 22.1.0-beta.3 - 2026-04-16
33
107
  Please review the [changelog for 22.0.2](https://github.com/stripe/stripe-node/blob/master/CHANGELOG.md#2202---2026-04-16) for more information about changes in this release.
34
108
 
package/OPENAPI_VERSION CHANGED
@@ -1 +1 @@
1
- v2252
1
+ v2253
package/VERSION CHANGED
@@ -1 +1 @@
1
- 22.2.0-beta.1
1
+ 22.2.0-beta.2
package/cjs/Error.d.ts CHANGED
@@ -164,6 +164,10 @@ export declare class AlreadyExistsError extends StripeError {
164
164
  export declare class BlockedByStripeError extends StripeError {
165
165
  constructor(rawStripeError?: StripeRawError);
166
166
  }
167
+ export declare class CannotProceedError extends StripeError {
168
+ reason: string;
169
+ constructor(rawStripeError: StripeRawError);
170
+ }
167
171
  export declare class ControlledByAlternateResourceError extends StripeError {
168
172
  constructor(rawStripeError?: StripeRawError);
169
173
  }
@@ -180,9 +184,12 @@ export declare class InsufficientFundsError extends StripeError {
180
184
  constructor(rawStripeError?: StripeRawError);
181
185
  }
182
186
  export declare class InvalidPaymentMethodError extends StripeError {
183
- invalid_param: any;
187
+ invalid_param: InvalidPaymentMethodError.InvalidParam;
184
188
  constructor(rawStripeError: StripeRawError);
185
189
  }
190
+ export declare namespace InvalidPaymentMethodError {
191
+ type InvalidParam = 'account_number' | 'currency' | 'fedwire_routing_number' | 'routing_number';
192
+ }
186
193
  export declare class InvalidPayoutMethodError extends StripeError {
187
194
  constructor(rawStripeError?: StripeRawError);
188
195
  }
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.RecipientNotNotifiableError = exports.RateLimitError = exports.QuotaExceededError = exports.NotCancelableError = exports.NonZeroBalanceError = exports.InvalidPayoutMethodError = exports.InvalidPaymentMethodError = exports.InsufficientFundsError = exports.FinancialAccountNotOpenError = exports.FeatureNotEnabledError = exports.ControlledByDashboardError = exports.ControlledByAlternateResourceError = exports.BlockedByStripeError = exports.AlreadyExistsError = exports.AlreadyCanceledError = exports.StripeUnsupportedResponseTypeError = exports.StripeUnsupportedGrantTypeError = exports.StripeInvalidScopeError = exports.StripeOAuthInvalidRequestError = exports.StripeInvalidClientError = exports.StripeInvalidGrantError = exports.StripeOAuthError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateOAuthError = exports.generateV1Error = void 0;
5
+ exports.TemporarySessionExpiredError = exports.RecipientNotNotifiableError = exports.RateLimitError = exports.QuotaExceededError = exports.NotCancelableError = exports.NonZeroBalanceError = exports.InvalidPayoutMethodError = exports.InvalidPaymentMethodError = exports.InsufficientFundsError = exports.FinancialAccountNotOpenError = exports.FeatureNotEnabledError = exports.ControlledByDashboardError = exports.ControlledByAlternateResourceError = exports.CannotProceedError = exports.BlockedByStripeError = exports.AlreadyExistsError = exports.AlreadyCanceledError = exports.StripeUnsupportedResponseTypeError = exports.StripeUnsupportedGrantTypeError = exports.StripeInvalidScopeError = exports.StripeOAuthInvalidRequestError = exports.StripeInvalidClientError = exports.StripeInvalidGrantError = exports.StripeOAuthError = exports.StripeIdempotencyError = exports.StripeSignatureVerificationError = exports.StripeConnectionError = exports.StripeRateLimitError = exports.StripePermissionError = exports.StripeAuthenticationError = exports.StripeAPIError = exports.StripeInvalidRequestError = exports.StripeCardError = exports.StripeError = exports.generateV2Error = exports.generateOAuthError = exports.generateV1Error = void 0;
6
6
  const generateV1Error = (rawStripeError) => {
7
7
  const statusCode = rawStripeError.statusCode;
8
8
  if (statusCode === 429 ||
@@ -58,6 +58,8 @@ const generateV2Error = (rawStripeError) => {
58
58
  return new AlreadyExistsError(rawStripeError);
59
59
  case 'blocked_by_stripe':
60
60
  return new BlockedByStripeError(rawStripeError);
61
+ case 'cannot_proceed':
62
+ return new CannotProceedError(rawStripeError);
61
63
  case 'controlled_by_alternate_resource':
62
64
  return new ControlledByAlternateResourceError(rawStripeError);
63
65
  case 'controlled_by_dashboard':
@@ -316,6 +318,14 @@ class BlockedByStripeError extends StripeError {
316
318
  }
317
319
  }
318
320
  exports.BlockedByStripeError = BlockedByStripeError;
321
+ class CannotProceedError extends StripeError {
322
+ constructor(rawStripeError) {
323
+ super(rawStripeError, 'CannotProceedError');
324
+ // @ts-ignore
325
+ this.reason = this.raw.reason;
326
+ }
327
+ }
328
+ exports.CannotProceedError = CannotProceedError;
319
329
  class ControlledByAlternateResourceError extends StripeError {
320
330
  constructor(rawStripeError = {}) {
321
331
  super(rawStripeError, 'ControlledByAlternateResourceError');
package/cjs/Error.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Error.js","sourceRoot":"","sources":["../src/Error.ts"],"names":[],"mappings":";AAAA,8BAA8B;AAC9B,wCAAwC;;;AAKjC,MAAM,eAAe,GAAG,CAC7B,cAA8B,EACjB,EAAE;IACf,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC;IAE7C,IACE,UAAU,KAAK,GAAG;QAClB,CAAC,UAAU,KAAK,GAAG,IAAI,cAAc,CAAC,IAAI,KAAK,YAAY,CAAC,EAC5D;QACA,OAAO,IAAI,oBAAoB,CAAC,cAAc,CAAC,CAAC;KACjD;IAED,IAAI,UAAU,KAAK,GAAG,IAAI,UAAU,KAAK,GAAG,EAAE;QAC5C,IAAI,cAAc,CAAC,IAAI,KAAK,mBAAmB,EAAE;YAC/C,OAAO,IAAI,sBAAsB,CAAC,cAAc,CAAC,CAAC;SACnD;QACD,OAAO,IAAI,yBAAyB,CAAC,cAAc,CAAC,CAAC;KACtD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,CAAC,cAAc,EAAE,6BAA6B,CAAC,CAAC;IACvD,CAAC;CACF;AAJD,kEAIC;AACD,MAAa,4BAA6B,SAAQ,WAAW;IAC3D,YAAY,iBAAiC,EAAE;QAC7C,KAAK,CAAC,cAAc,EAAE,8BAA8B,CAAC,CAAC;IACxD,CAAC;CACF;AAJD,oEAIC;AACD,2EAA2E"}
@@ -7,6 +7,10 @@ const KNOWN_EVENT_TYPES = new Set([
7
7
  // event-types: The beginning of the section generated from our OpenAPI spec
8
8
  'v1.billing.meter.error_report_triggered',
9
9
  'v1.billing.meter.no_meter_found',
10
+ 'v2.commerce.product_catalog.imports.failed',
11
+ 'v2.commerce.product_catalog.imports.processing',
12
+ 'v2.commerce.product_catalog.imports.succeeded',
13
+ 'v2.commerce.product_catalog.imports.succeeded_with_errors',
10
14
  'v2.core.account.closed',
11
15
  'v2.core.account.created',
12
16
  'v2.core.account.updated',
@@ -38,6 +42,13 @@ const KNOWN_EVENT_TYPES = new Set([
38
42
  'v2.core.batch_job.validation_failed',
39
43
  'v2.core.event_destination.ping',
40
44
  'v2.core.health.event_generation_failure.resolved',
45
+ 'v2.data.reporting.query_run.created',
46
+ 'v2.data.reporting.query_run.failed',
47
+ 'v2.data.reporting.query_run.succeeded',
48
+ 'v2.data.reporting.query_run.updated',
49
+ 'v2.extend.workflow_run.failed',
50
+ 'v2.extend.workflow_run.started',
51
+ 'v2.extend.workflow_run.succeeded',
41
52
  'v2.money_management.adjustment.created',
42
53
  'v2.money_management.financial_account.created',
43
54
  'v2.money_management.financial_account.updated',
@@ -74,6 +85,10 @@ const KNOWN_EVENT_TYPES = new Set([
74
85
  'v2.money_management.received_debit.updated',
75
86
  'v2.money_management.transaction.created',
76
87
  'v2.money_management.transaction.updated',
88
+ 'v2.orchestrated_commerce.agreement.confirmed',
89
+ 'v2.orchestrated_commerce.agreement.created',
90
+ 'v2.orchestrated_commerce.agreement.partially_confirmed',
91
+ 'v2.orchestrated_commerce.agreement.terminated',
77
92
  // event-types: The end of the section generated from our OpenAPI spec
78
93
  ]);
79
94
  class StripeEventNotificationHandler {
@@ -1 +1 @@
1
- {"version":3,"file":"StripeEventNotificationHandler.js","sourceRoot":"","sources":["../src/StripeEventNotificationHandler.ts"],"names":[],"mappings":";;;AAgBA,6EAA6E;AAC7E,yFAAyF;AACzF,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,4EAA4E;IAC5E,yCAAyC;IACzC,iCAAiC;IACjC,wBAAwB;IACxB,yBAAyB;IACzB,yBAAyB;IACzB,mEAAmE;IACnE,iDAAiD;IACjD,mEAAmE;IACnE,iDAAiD;IACjD,oEAAoE;IACpE,kDAAkD;IAClD,iEAAiE;IACjE,+CAA+C;IAC/C,mCAAmC;IACnC,8CAA8C;IAC9C,mCAAmC;IACnC,uCAAuC;IACvC,+BAA+B;IAC/B,gCAAgC;IAChC,gCAAgC;IAChC,gCAAgC;IAChC,gCAAgC;IAChC,4BAA4B;IAC5B,6BAA6B;IAC7B,2BAA2B;IAC3B,oCAAoC;IACpC,2BAA2B;IAC3B,2BAA2B;IAC3B,kCAAkC;IAClC,8BAA8B;IAC9B,qCAAqC;IACrC,gCAAgC;IAChC,kDAAkD;IAClD,wCAAwC;IACxC,+CAA+C;IAC/C,+CAA+C;IAC/C,iDAAiD;IACjD,8CAA8C;IAC9C,gDAAgD;IAChD,wDAAwD;IACxD,4DAA4D;IAC5D,wDAAwD;IACxD,0DAA0D;IAC1D,2DAA2D;IAC3D,+CAA+C;IAC/C,8CAA8C;IAC9C,6CAA6C;IAC7C,6CAA6C;IAC7C,+CAA+C;IAC/C,8CAA8C;IAC9C,gDAAgD;IAChD,+CAA+C;IAC/C,8CAA8C;IAC9C,8CAA8C;IAC9C,gDAAgD;IAChD,+CAA+C;IAC/C,2CAA2C;IAC3C,2CAA2C;IAC3C,+CAA+C;IAC/C,4CAA4C;IAC5C,8CAA8C;IAC9C,+CAA+C;IAC/C,6CAA6C;IAC7C,2CAA2C;IAC3C,4CAA4C;IA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AM,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACtE,MAAM,CAAC,MAAM,CAAC,WAAW,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QACxC,WAAW,CAAC,IAAI,GAAG;YACjB,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI;YACnB,aAAa,EAAE,KAAK,CAAC,OAAO;SAC7B,CAAC;QAEF,MAAM,OAAO,GAAG,IAAI,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACpD,IAAI,OAAO,EAAE;YACX,OAAO,MAAM,OAAO,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;SAC1C;aAAM;YACL,OAAO,MAAM,IAAI,CAAC,gBAAgB,CAChC,KAAwC,EACxC,WAAW,EACX;gBACE,gBAAgB,EAAE,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;aACpD,CACF,CAAC;SACH;IACH,CAAC;CACF;AA7ED,wEA6EC"}
1
+ {"version":3,"file":"StripeEventNotificationHandler.js","sourceRoot":"","sources":["../src/StripeEventNotificationHandler.ts"],"names":[],"mappings":";;;AAgBA,6EAA6E;AAC7E,yFAAyF;AACzF,MAAM,iBAAiB,GAAG,IAAI,GAAG,CAAC;IAChC,4EAA4E;IAC5E,yCAAyC;IACzC,iCAAiC;IACjC,4CAA4C;IAC5C,gDAAgD;IAChD,+CAA+C;IAC/C,2DAA2D;IAC3D,wBAAwB;IACxB,yBAAyB;IACzB,yBAAyB;IACzB,mEAAmE;IACnE,iDAAiD;IACjD,mEAAmE;IACnE,iDAAiD;IACjD,oEAAoE;IACpE,kDAAkD;IAClD,iEAAiE;IACjE,+CAA+C;IAC/C,mCAAmC;IACnC,8CAA8C;IAC9C,mCAAmC;IACnC,uCAAuC;IACvC,+BAA+B;IAC/B,gCAAgC;IAChC,gCAAgC;IAChC,gCAAgC;IAChC,gCAAgC;IAChC,4BAA4B;IAC5B,6BAA6B;IAC7B,2BAA2B;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C,gBAAgB,CAChC,KAAwC,EACxC,WAAW,EACX;gBACE,gBAAgB,EAAE,iBAAiB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC;aACpD,CACF,CAAC;SACH;IACH,CAAC;CACF;AA7ED,wEA6EC"}
package/cjs/Types.d.ts CHANGED
@@ -48,7 +48,7 @@ export type MethodSpec = {
48
48
  responseSchema?: V2RuntimeSchema;
49
49
  };
50
50
  export type MultipartRequestData = RequestData | StreamingFile | BufferedFile;
51
- export type RawErrorType = 'card_error' | 'invalid_request_error' | 'api_error' | 'idempotency_error' | 'rate_limit_error' | 'authentication_error' | 'invalid_grant' | 'invalid_client' | 'invalid_request' | 'invalid_scope' | 'unsupported_grant_type' | 'unsupported_response_type' | 'already_canceled' | 'already_exists' | 'blocked_by_stripe' | 'controlled_by_alternate_resource' | 'controlled_by_dashboard' | 'feature_not_enabled' | 'financial_account_not_open' | 'insufficient_funds' | 'invalid_payment_method' | 'invalid_payout_method' | 'non_zero_balance' | 'not_cancelable' | 'quota_exceeded' | 'rate_limit' | 'recipient_not_notifiable' | 'temporary_session_expired';
51
+ export type RawErrorType = 'card_error' | 'invalid_request_error' | 'api_error' | 'idempotency_error' | 'rate_limit_error' | 'authentication_error' | 'invalid_grant' | 'invalid_client' | 'invalid_request' | 'invalid_scope' | 'unsupported_grant_type' | 'unsupported_response_type' | 'already_canceled' | 'already_exists' | 'blocked_by_stripe' | 'cannot_proceed' | 'controlled_by_alternate_resource' | 'controlled_by_dashboard' | 'feature_not_enabled' | 'financial_account_not_open' | 'insufficient_funds' | 'invalid_payment_method' | 'invalid_payout_method' | 'non_zero_balance' | 'not_cancelable' | 'quota_exceeded' | 'rate_limit' | 'recipient_not_notifiable' | 'temporary_session_expired';
52
52
  export type RequestArgs = Array<any>;
53
53
  export type StripeRequest = {
54
54
  host: string;
@@ -39,14 +39,14 @@ export declare namespace V2 {
39
39
  }
40
40
  interface Invoice {
41
41
  /**
42
- * The amount of time until the invoice will be overdue for payment.
42
+ * The amount of time until the invoice is overdue for payment.
43
43
  */
44
44
  time_until_due?: Invoice.TimeUntilDue;
45
45
  }
46
46
  namespace Calculation {
47
47
  interface Tax {
48
48
  /**
49
- * Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
49
+ * Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual".
50
50
  */
51
51
  type: Tax.Type;
52
52
  }
@@ -62,7 +62,7 @@ export declare namespace V2 {
62
62
  interval: TimeUntilDue.Interval;
63
63
  /**
64
64
  * The number of interval units. For example, if interval=day and interval_count=30,
65
- * the invoice will be due in 30 days.
65
+ * the invoice is due in 30 days.
66
66
  */
67
67
  interval_count: number;
68
68
  }
@@ -53,8 +53,8 @@ export interface BillSetting {
53
53
  */
54
54
  invoice_rendering_template?: string;
55
55
  /**
56
- * The latest version of the current settings object. This will be
57
- * Updated every time an attribute of the settings is updated.
56
+ * The latest version of the current settings object. This is
57
+ * updated every time an attribute of the settings is updated.
58
58
  */
59
59
  latest_version: string;
60
60
  /**
@@ -83,14 +83,14 @@ export declare namespace V2 {
83
83
  }
84
84
  interface Invoice {
85
85
  /**
86
- * The amount of time until the invoice will be overdue for payment.
86
+ * The amount of time until the invoice is overdue for payment.
87
87
  */
88
88
  time_until_due?: Invoice.TimeUntilDue;
89
89
  }
90
90
  namespace Calculation {
91
91
  interface Tax {
92
92
  /**
93
- * Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
93
+ * Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual".
94
94
  */
95
95
  type: Tax.Type;
96
96
  }
@@ -106,7 +106,7 @@ export declare namespace V2 {
106
106
  interval: TimeUntilDue.Interval;
107
107
  /**
108
108
  * The number of interval units. For example, if interval=day and interval_count=30,
109
- * the invoice will be due in 30 days.
109
+ * the invoice is due in 30 days.
110
110
  */
111
111
  interval_count: number;
112
112
  }
@@ -152,14 +152,14 @@ export declare namespace V2 {
152
152
  }
153
153
  interface Invoice {
154
154
  /**
155
- * The amount of time until the invoice will be overdue for payment.
155
+ * The amount of time until the invoice is overdue for payment.
156
156
  */
157
157
  time_until_due?: Invoice.TimeUntilDue;
158
158
  }
159
159
  namespace Calculation {
160
160
  interface Tax {
161
161
  /**
162
- * Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
162
+ * Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual".
163
163
  */
164
164
  type: Tax.Type;
165
165
  }
@@ -175,7 +175,7 @@ export declare namespace V2 {
175
175
  interval: TimeUntilDue.Interval;
176
176
  /**
177
177
  * The number of interval units. For example, if interval=day and interval_count=30,
178
- * the invoice will be due in 30 days.
178
+ * the invoice is due in 30 days.
179
179
  */
180
180
  interval_count: number;
181
181
  }
@@ -214,7 +214,7 @@ export declare namespace V2 {
214
214
  */
215
215
  invoice_rendering_template?: string;
216
216
  /**
217
- * Optionally change the live version of the BillSetting. Providing `live_version = "latest"` will set the
217
+ * Optionally change the live version of the BillSetting. Providing `live_version = "latest"` sets the
218
218
  * BillSetting' `live_version` to its latest version.
219
219
  */
220
220
  live_version?: string;
@@ -233,14 +233,14 @@ export declare namespace V2 {
233
233
  }
234
234
  interface Invoice {
235
235
  /**
236
- * The amount of time until the invoice will be overdue for payment.
236
+ * The amount of time until the invoice is overdue for payment.
237
237
  */
238
238
  time_until_due?: Invoice.TimeUntilDue;
239
239
  }
240
240
  namespace Calculation {
241
241
  interface Tax {
242
242
  /**
243
- * Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
243
+ * Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual".
244
244
  */
245
245
  type: Tax.Type;
246
246
  }
@@ -256,7 +256,7 @@ export declare namespace V2 {
256
256
  interval: TimeUntilDue.Interval;
257
257
  /**
258
258
  * The number of interval units. For example, if interval=day and interval_count=30,
259
- * the invoice will be due in 30 days.
259
+ * the invoice is due in 30 days.
260
260
  */
261
261
  interval_count: number;
262
262
  }
@@ -108,7 +108,7 @@ export declare namespace V2 {
108
108
  }
109
109
  interface Payer {
110
110
  /**
111
- * The ID of the Billing Profile object which determines how a bill will be paid.
111
+ * The ID of the Billing Profile object which determines how a bill is paid.
112
112
  */
113
113
  billing_profile: string;
114
114
  /**
@@ -152,7 +152,7 @@ export declare namespace V2 {
152
152
  /**
153
153
  * The day to anchor the billing on for a type="month" billing cycle from 1-31.
154
154
  * If this number is greater than the number of days in the month being billed,
155
- * this will anchor to the last day of the month.
155
+ * this anchors to the last day of the month.
156
156
  */
157
157
  day_of_month: number;
158
158
  /**
@@ -181,11 +181,11 @@ export declare namespace V2 {
181
181
  /**
182
182
  * The day to anchor the billing on for a type="month" billing cycle from 1-31.
183
183
  * If this number is greater than the number of days in the month being billed,
184
- * this will anchor to the last day of the month.
184
+ * this anchors to the last day of the month.
185
185
  */
186
186
  day_of_month: number;
187
187
  /**
188
- * The month to bill on from 1-12. If not provided, this will default to the month the cadence was created.
188
+ * The month to bill on from 1-12. If not provided, this defaults to the month the cadence was created.
189
189
  */
190
190
  month_of_year: number;
191
191
  /**
@@ -313,9 +313,9 @@ export declare namespace V2 {
313
313
  }
314
314
  interface Collection {
315
315
  /**
316
- * Either automatic, or send_invoice. When charging automatically, Stripe will attempt to pay this
317
- * bill at the end of the period using the payment method attached to the payer profile. When sending an invoice,
318
- * Stripe will email your payer profile an invoice with payment instructions.
316
+ * Either automatic, or send_invoice. When charging automatically, Stripe attempts to pay this
317
+ * bill at the end of the period using the payment method attached to the billing profile. When sending an invoice,
318
+ * Stripe emails your billing profile an invoice with payment instructions.
319
319
  * Defaults to automatic.
320
320
  */
321
321
  collection_method: Collection.CollectionMethod;
@@ -341,14 +341,14 @@ export declare namespace V2 {
341
341
  }
342
342
  interface Invoice {
343
343
  /**
344
- * The amount of time until the invoice will be overdue for payment.
344
+ * The amount of time until the invoice is overdue for payment.
345
345
  */
346
346
  time_until_due?: Invoice.TimeUntilDue;
347
347
  }
348
348
  namespace Calculation {
349
349
  interface Tax {
350
350
  /**
351
- * Determines if tax will be calculated automatically based on a PTC or manually based on rules defined by the merchant. Defaults to "manual".
351
+ * Determines if tax is calculated automatically based on a PTC or manually based on rules defined by the business. Defaults to "manual".
352
352
  */
353
353
  type: Tax.Type;
354
354
  }
@@ -364,7 +364,7 @@ export declare namespace V2 {
364
364
  interval: TimeUntilDue.Interval;
365
365
  /**
366
366
  * The number of interval units. For example, if interval=day and interval_count=30,
367
- * the invoice will be due in 30 days.
367
+ * the invoice is due in 30 days.
368
368
  */
369
369
  interval_count: number;
370
370
  }
@@ -467,12 +467,10 @@ export declare namespace V2 {
467
467
  */
468
468
  funding_type?: 'bank_transfer';
469
469
  }
470
- type Konbini = {
471
- [key: string]: unknown;
472
- };
473
- type SepaDebit = {
474
- [key: string]: unknown;
475
- };
470
+ interface Konbini {
471
+ }
472
+ interface SepaDebit {
473
+ }
476
474
  interface UsBankAccount {
477
475
  /**
478
476
  * Additional fields for Financial Connections Session creation.
@@ -611,7 +609,7 @@ export declare namespace V2 {
611
609
  /**
612
610
  * The number of intervals (specified in the interval attribute) between
613
611
  * cadence billings. For example, type=month and interval_count=3 bills every
614
- * 3 months. If this is not provided, it will default to 1.
612
+ * 3 months. If not provided, this defaults to 1.
615
613
  */
616
614
  interval_count?: number;
617
615
  /**
@@ -633,7 +631,7 @@ export declare namespace V2 {
633
631
  }
634
632
  interface Payer {
635
633
  /**
636
- * The ID of the Billing Profile object which determines how a bill will be paid.
634
+ * The ID of the Billing Profile object which determines how a bill is paid.
637
635
  */
638
636
  billing_profile: string;
639
637
  }
@@ -655,7 +653,7 @@ export declare namespace V2 {
655
653
  interface Day {
656
654
  /**
657
655
  * The time at which the billing cycle ends.
658
- * This field is optional, and if not provided, it will default to
656
+ * This field is optional, and if not provided, it defaults to
659
657
  * the time at which the cadence was created in UTC timezone.
660
658
  */
661
659
  time?: Day.Time;
@@ -664,20 +662,20 @@ export declare namespace V2 {
664
662
  /**
665
663
  * The day to anchor the billing on for a type="month" billing cycle from
666
664
  * 1-31. If this number is greater than the number of days in the month being
667
- * billed, this will anchor to the last day of the month. If not provided,
668
- * this will default to the day the cadence was created.
665
+ * billed, this anchors to the last day of the month. If not provided,
666
+ * this defaults to the day the cadence was created.
669
667
  */
670
668
  day_of_month: number;
671
669
  /**
672
670
  * The month to anchor the billing on for a type="month" billing cycle from
673
- * 1-12. If not provided, this will default to the month the cadence was created.
671
+ * 1-12. If not provided, this defaults to the month the cadence was created.
674
672
  * This setting can only be used for monthly billing cycles with `interval_count` of 2, 3, 4 or 6.
675
- * All occurrences will be calculated from month provided.
673
+ * All occurrences are calculated from the month provided.
676
674
  */
677
675
  month_of_year?: number;
678
676
  /**
679
677
  * The time at which the billing cycle ends.
680
- * This field is optional, and if not provided, it will default to
678
+ * This field is optional, and if not provided, it defaults to
681
679
  * the time at which the cadence was created in UTC timezone.
682
680
  */
683
681
  time?: Month.Time;
@@ -687,13 +685,13 @@ export declare namespace V2 {
687
685
  /**
688
686
  * The day of the week to bill the type=week billing cycle on.
689
687
  * Numbered from 1-7 for Monday to Sunday respectively, based on the ISO-8601
690
- * week day numbering. If not provided, this will default to the day the
688
+ * week day numbering. If not provided, this defaults to the day the
691
689
  * cadence was created.
692
690
  */
693
691
  day_of_week: number;
694
692
  /**
695
693
  * The time at which the billing cycle ends.
696
- * This field is optional, and if not provided, it will default to
694
+ * This field is optional, and if not provided, it defaults to
697
695
  * the time at which the cadence was created in UTC timezone.
698
696
  */
699
697
  time?: Week.Time;
@@ -702,18 +700,18 @@ export declare namespace V2 {
702
700
  /**
703
701
  * The day to anchor the billing on for a type="month" billing cycle from
704
702
  * 1-31. If this number is greater than the number of days in the month being
705
- * billed, this will anchor to the last day of the month. If not provided,
706
- * this will default to the day the cadence was created.
703
+ * billed, this anchors to the last day of the month. If not provided,
704
+ * this defaults to the day the cadence was created.
707
705
  */
708
706
  day_of_month?: number;
709
707
  /**
710
- * The month to bill on from 1-12. If not provided, this will default to the
708
+ * The month to bill on from 1-12. If not provided, this defaults to the
711
709
  * month the cadence was created.
712
710
  */
713
711
  month_of_year?: number;
714
712
  /**
715
713
  * The time at which the billing cycle ends.
716
- * This field is optional, and if not provided, it will default to
714
+ * This field is optional, and if not provided, it defaults to
717
715
  * the time at which the cadence was created in UTC timezone.
718
716
  */
719
717
  time?: Year.Time;
@@ -807,7 +805,7 @@ export declare namespace V2 {
807
805
  id: string;
808
806
  /**
809
807
  * An optional field to specify the version of the Settings to use.
810
- * If not provided, this will always default to the live version any time the settings are used.
808
+ * If not provided, this defaults to the live version any time the settings are used.
811
809
  */
812
810
  version?: string;
813
811
  }
@@ -818,7 +816,7 @@ export declare namespace V2 {
818
816
  id: string;
819
817
  /**
820
818
  * An optional field to specify the version of the Settings to use.
821
- * If not provided, this will always default to the live version any time the settings are used.
819
+ * If not provided, this defaults to the live version any time the settings are used.
822
820
  */
823
821
  version?: string;
824
822
  }
@@ -859,7 +857,7 @@ export declare namespace V2 {
859
857
  namespace CadenceUpdateParams {
860
858
  interface Payer {
861
859
  /**
862
- * The ID of the Billing Profile object which determines how a bill will be paid.
860
+ * The ID of the Billing Profile object which determines how a bill is paid.
863
861
  */
864
862
  billing_profile?: string;
865
863
  }
@@ -881,8 +879,8 @@ export declare namespace V2 {
881
879
  id: string;
882
880
  /**
883
881
  * An optional field to specify the version of Settings to use.
884
- * If not provided, this will always default to the `live_version` specified on the setting, any time the settings are used.
885
- * Using a specific version here will prevent the settings from updating, and is discouraged for cadences.
882
+ * If not provided, this defaults to the `live_version` specified on the setting, any time the settings are used.
883
+ * Using a specific version here prevents the settings from updating, and is discouraged for cadences.
886
884
  * To clear a pinned version, set the version to null.
887
885
  */
888
886
  version?: string;
@@ -894,8 +892,8 @@ export declare namespace V2 {
894
892
  id: string;
895
893
  /**
896
894
  * An optional field to specify the version of Settings to use.
897
- * If not provided, this will always default to the `live_version` specified on the setting, any time the settings are used.
898
- * Using a specific version here will prevent the settings from updating, and is discouraged for cadences.
895
+ * If not provided, this defaults to the `live_version` specified on the setting, any time the settings are used.
896
+ * Using a specific version here prevents the settings from updating, and is discouraged for cadences.
899
897
  * To clear a pinned version, set the version to null.
900
898
  */
901
899
  version?: string;