stripe 22.2.0-beta.1 → 22.2.0-beta.3
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.
- package/CHANGELOG.md +77 -0
- package/OPENAPI_VERSION +1 -1
- package/README.md +0 -1
- package/VERSION +1 -1
- package/cjs/Error.d.ts +8 -1
- package/cjs/Error.js +11 -1
- package/cjs/Error.js.map +1 -1
- package/cjs/StripeEventNotificationHandler.js +15 -0
- package/cjs/StripeEventNotificationHandler.js.map +1 -1
- package/cjs/Types.d.ts +1 -1
- package/cjs/resources/Files.d.ts +2 -0
- package/cjs/resources/Files.js +5 -0
- package/cjs/resources/Files.js.map +1 -1
- package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +3 -3
- package/cjs/resources/V2/Billing/BillSettings.d.ts +12 -12
- package/cjs/resources/V2/Billing/Cadences.d.ts +35 -37
- package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +7 -9
- package/cjs/resources/V2/Billing/CollectionSettings.d.ts +24 -30
- package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +5 -5
- package/cjs/resources/V2/Billing/MeterEventSession.d.ts +4 -4
- package/cjs/resources/V2/Billing/MeterEventSession.js +1 -1
- package/cjs/resources/V2/Billing/Profiles.d.ts +1 -1
- package/cjs/resources/V2/Commerce/ProductCatalog/Imports.d.ts +99 -0
- package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js +156 -0
- package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -0
- package/cjs/resources/V2/Commerce/ProductCatalog/index.d.ts +8 -0
- package/cjs/resources/V2/Commerce/ProductCatalog/index.js +13 -0
- package/cjs/resources/V2/Commerce/ProductCatalog/index.js.map +1 -0
- package/cjs/resources/V2/Commerce/ProductCatalogImports.d.ts +183 -0
- package/cjs/resources/V2/Commerce/ProductCatalogImports.js +4 -0
- package/cjs/resources/V2/Commerce/ProductCatalogImports.js.map +1 -0
- package/cjs/resources/V2/Commerce/index.d.ts +13 -0
- package/cjs/resources/V2/Commerce/index.js +13 -0
- package/cjs/resources/V2/Commerce/index.js.map +1 -0
- package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +2 -1
- package/cjs/resources/V2/Core/Accounts/PersonTokens.js +2 -1
- package/cjs/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts.d.ts +1 -1
- package/cjs/resources/V2/Core/BatchJobs.d.ts +23 -22
- package/cjs/resources/V2/Core/Events.d.ts +402 -5
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +2 -2
- package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +156 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
- package/cjs/resources/V2/Data/index.d.ts +10 -0
- package/cjs/resources/V2/Data/index.js +13 -0
- package/cjs/resources/V2/Data/index.js.map +1 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/cjs/resources/V2/Extend/Workflows.d.ts +123 -0
- package/cjs/resources/V2/Extend/Workflows.js +30 -0
- package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +20 -0
- package/cjs/resources/V2/Extend/index.js +15 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -0
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +204 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js +17 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/cjs/resources/V2/Iam/index.d.ts +12 -0
- package/cjs/resources/V2/Iam/index.js +13 -0
- package/cjs/resources/V2/Iam/index.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +6 -9
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +2 -2
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +1 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +2 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +1 -1
- package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +1 -1
- package/cjs/resources/V2/Network/BusinessProfiles.d.ts +96 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/cjs/resources/V2/Network/index.d.ts +13 -0
- package/cjs/resources/V2/Network/index.js +13 -0
- package/cjs/resources/V2/Network/index.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/cjs/resources/V2/index.d.ts +18 -0
- package/cjs/resources/V2/index.js +18 -6
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/resources.js +28 -0
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.core.d.ts +1 -0
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.d.ts +8 -1
- package/esm/Error.js +9 -0
- package/esm/Error.js.map +1 -1
- package/esm/StripeEventNotificationHandler.js +15 -0
- package/esm/StripeEventNotificationHandler.js.map +1 -1
- package/esm/Types.d.ts +1 -1
- package/esm/resources/Files.d.ts +2 -0
- package/esm/resources/Files.js +5 -0
- package/esm/resources/Files.js.map +1 -1
- package/esm/resources/V2/Billing/BillSettingVersions.d.ts +3 -3
- package/esm/resources/V2/Billing/BillSettings.d.ts +12 -12
- package/esm/resources/V2/Billing/Cadences.d.ts +35 -37
- package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +7 -9
- package/esm/resources/V2/Billing/CollectionSettings.d.ts +24 -30
- package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +5 -5
- package/esm/resources/V2/Billing/MeterEventSession.d.ts +4 -4
- package/esm/resources/V2/Billing/MeterEventSession.js +1 -1
- package/esm/resources/V2/Billing/Profiles.d.ts +1 -1
- package/esm/resources/V2/Commerce/ProductCatalog/Imports.d.ts +99 -0
- package/esm/resources/V2/Commerce/ProductCatalog/Imports.js +152 -0
- package/esm/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -0
- package/esm/resources/V2/Commerce/ProductCatalog/index.d.ts +8 -0
- package/esm/resources/V2/Commerce/ProductCatalog/index.js +9 -0
- package/esm/resources/V2/Commerce/ProductCatalog/index.js.map +1 -0
- package/esm/resources/V2/Commerce/ProductCatalogImports.d.ts +183 -0
- package/esm/resources/V2/Commerce/ProductCatalogImports.js +3 -0
- package/esm/resources/V2/Commerce/ProductCatalogImports.js.map +1 -0
- package/esm/resources/V2/Commerce/index.d.ts +13 -0
- package/esm/resources/V2/Commerce/index.js +9 -0
- package/esm/resources/V2/Commerce/index.js.map +1 -0
- package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +2 -1
- package/esm/resources/V2/Core/Accounts/PersonTokens.js +2 -1
- package/esm/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
- package/esm/resources/V2/Core/Accounts.d.ts +1 -1
- package/esm/resources/V2/Core/BatchJobs.d.ts +23 -22
- package/esm/resources/V2/Core/Events.d.ts +402 -5
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +2 -2
- package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +156 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/esm/resources/V2/Data/Reporting/index.js +9 -0
- package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
- package/esm/resources/V2/Data/index.d.ts +10 -0
- package/esm/resources/V2/Data/index.js +9 -0
- package/esm/resources/V2/Data/index.js.map +1 -0
- package/esm/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/esm/resources/V2/Extend/Workflows.d.ts +123 -0
- package/esm/resources/V2/Extend/Workflows.js +26 -0
- package/esm/resources/V2/Extend/Workflows.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +20 -0
- package/esm/resources/V2/Extend/index.js +11 -0
- package/esm/resources/V2/Extend/index.js.map +1 -0
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +204 -0
- package/esm/resources/V2/Iam/ActivityLogs.js +13 -0
- package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/esm/resources/V2/Iam/index.d.ts +12 -0
- package/esm/resources/V2/Iam/index.js +9 -0
- package/esm/resources/V2/Iam/index.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +6 -9
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +2 -2
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +1 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +2 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +1 -1
- package/esm/resources/V2/MoneyManagement/Transactions.d.ts +1 -1
- package/esm/resources/V2/Network/BusinessProfiles.d.ts +96 -0
- package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
- package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/esm/resources/V2/Network/index.d.ts +13 -0
- package/esm/resources/V2/Network/index.js +9 -0
- package/esm/resources/V2/Network/index.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/esm/resources/V2/index.d.ts +18 -0
- package/esm/resources/V2/index.js +12 -0
- package/esm/resources/V2/index.js.map +1 -1
- package/esm/resources.js +28 -0
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.d.ts +1 -0
- package/esm/stripe.core.js +1 -1
- package/esm/stripe.esm.node.d.ts +1 -0
- package/esm/stripe.esm.node.js +1 -1
- package/esm/stripe.esm.node.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,37 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 22.2.0-beta.3 - 2026-05-07
|
|
4
|
+
* [#2706](https://github.com/stripe/stripe-node/pull/2706) Merge bug fixes from https://github.com/stripe/stripe-node/releases/tag/v22.1.1 to Public Preview
|
|
5
|
+
|
|
6
|
+
## 22.2.0-beta.2 - 2026-04-24
|
|
7
|
+
* [#2693](https://github.com/stripe/stripe-node/pull/2693) Update generated code for beta
|
|
8
|
+
* 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`
|
|
9
|
+
* Add support for `confirm`, `create`, `list`, `retrieve`, and `terminate` methods on resource `V2.OrchestratedCommerce.Agreement`
|
|
10
|
+
* Add support for `me` and `retrieve` methods on resource `V2.Network.BusinessProfile`
|
|
11
|
+
* Add support for `list` method on resource `V2.Iam.ActivityLog`
|
|
12
|
+
* Add support for `list` and `retrieve` methods on resource `V2.Extend.WorkflowRun`
|
|
13
|
+
* Add support for `invoke`, `list`, and `retrieve` methods on resource `V2.Extend.Workflow`
|
|
14
|
+
* Add support for `create` and `retrieve` methods on resources `V2.Commerce.ProductCatalogImport` and `V2.Data.Reporting.QueryRun`
|
|
15
|
+
* ⚠️ 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`
|
|
16
|
+
* ⚠️ 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`
|
|
17
|
+
* ⚠️ Add support for new values `cn_bank_account` and `jp_bank_account` on enum `V2.Core.Account.configuration.recipient.default_outbound_destination.type`
|
|
18
|
+
* ⚠️ 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`
|
|
19
|
+
* ⚠️ Change type of `V2.MoneyManagement.InboundTransfer.transfer_history[].bank_debit_processing` from `map(string: dynamic)` to `an object`
|
|
20
|
+
* ⚠️ Change type of `V2.MoneyManagement.InboundTransfer.transfer_history[].bank_debit_queued` from `map(string: dynamic)` to `an object`
|
|
21
|
+
* ⚠️ Change type of `V2.MoneyManagement.InboundTransfer.transfer_history[].bank_debit_succeeded` from `map(string: dynamic)` to `an object`
|
|
22
|
+
* ⚠️ Add support for new value `payout_method_amount_limit_exceeded` on enum `V2.MoneyManagement.OutboundTransfer.status_details.failed.reason`
|
|
23
|
+
* ⚠️ 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`
|
|
24
|
+
* ⚠️ Remove support for value `return` from enums `V2.MoneyManagement.Transaction.category` and `V2.MoneyManagement.TransactionEntry.transaction_details.category`
|
|
25
|
+
* 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`
|
|
26
|
+
* Change type of `V2.Core.BatchJobCreateParams.endpoint.http_method` from `literal('post')` to `enum('delete'|'post')`
|
|
27
|
+
* ⚠️ Add support for new value `meter_event_value_too_many_digits` on enums `EventsV1BillingMeterErrorReportTriggeredEvent.reason.error_types[].code` and `EventsV1BillingMeterNoMeterFoundEvent.reason.error_types[].code`
|
|
28
|
+
* Add support for `treasury_transaction` on `EventsV2MoneyManagementTransactionCreatedEvent`
|
|
29
|
+
* Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `V2.Commerce.ProductCatalogImport`
|
|
30
|
+
* Add support for event notifications `V2DataReportingQueryRunCreatedEvent`, `V2DataReportingQueryRunFailedEvent`, `V2DataReportingQueryRunSucceededEvent`, and `V2DataReportingQueryRunUpdatedEvent` with related object `V2.Data.Reporting.QueryRun`
|
|
31
|
+
* Add support for event notifications `V2ExtendWorkflowRunFailedEvent`, `V2ExtendWorkflowRunStartedEvent`, and `V2ExtendWorkflowRunSucceededEvent` with related object `V2.Extend.WorkflowRun`
|
|
32
|
+
* Add support for event notifications `V2OrchestratedCommerceAgreementConfirmedEvent`, `V2OrchestratedCommerceAgreementCreatedEvent`, `V2OrchestratedCommerceAgreementPartiallyConfirmedEvent`, and `V2OrchestratedCommerceAgreementTerminatedEvent` with related object `V2.OrchestratedCommerce.Agreement`
|
|
33
|
+
* Add support for error type `CannotProceedError`
|
|
34
|
+
|
|
3
35
|
## 22.2.0-beta.1 - 2026-04-23
|
|
4
36
|
This release changes the pinned API version to 2026-04-22.private.
|
|
5
37
|
|
|
@@ -29,6 +61,51 @@ This release changes the pinned API version to 2026-04-22.private.
|
|
|
29
61
|
* Add support for `purpose` on `Treasury.OutboundPaymentCreateParams` and `Treasury.OutboundPayment`
|
|
30
62
|
* Add support for error codes `action_blocked` and `approval_required` on `QuotePreviewInvoice.last_finalization_error`
|
|
31
63
|
|
|
64
|
+
## 22.1.0 - 2026-04-23
|
|
65
|
+
This release changes the pinned API version to 2026-04-22.dahlia.
|
|
66
|
+
|
|
67
|
+
* [#2639](https://github.com/stripe/stripe-node/pull/2639) Update generated code
|
|
68
|
+
* Add support for `app_distribution` and `sunbit_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
69
|
+
* Add support for `balance_report` and `payout_reconciliation_report` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
|
70
|
+
* ⚠️ Add support for new values `fee_credit_funding`, `inbound_transfer_reversal`, and `inbound_transfer` on enum `BalanceTransaction.type`
|
|
71
|
+
* 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`
|
|
72
|
+
* ⚠️ 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`
|
|
73
|
+
* Add support for `location` and `reader` on `Charge.payment_method_details.klarna`, `PaymentAttemptRecord.payment_method_details.klarna`, and `PaymentRecord.payment_method_details.klarna`
|
|
74
|
+
* Add support for `mandate` on `Charge.payment_method_details.pix`, `PaymentAttemptRecord.payment_method_details.pix`, and `PaymentRecord.payment_method_details.pix`
|
|
75
|
+
* Add support for `managed_payments` on `Checkout.SessionCreateParams`, `Checkout.Session`, `PaymentIntent`, `PaymentLinkCreateParams`, `PaymentLink`, `SetupIntent`, and `Subscription`
|
|
76
|
+
* 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`
|
|
77
|
+
* 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`
|
|
78
|
+
* 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')`
|
|
79
|
+
* Add support for new value `sunbit` on enum `Checkout.SessionCreateParams.payment_method_types`
|
|
80
|
+
* ⚠️ 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`
|
|
81
|
+
* ⚠️ 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')`
|
|
82
|
+
* 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`
|
|
83
|
+
* ⚠️ Add support for new value `sunbit` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
|
84
|
+
* 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`
|
|
85
|
+
* Add support for new value `sunbit` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
|
86
|
+
* 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`
|
|
87
|
+
* 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`
|
|
88
|
+
* 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`
|
|
89
|
+
* ⚠️ Add support for new values `pix` and `upi` on enums `Invoice.payment_settings.payment_method_types` and `Subscription.payment_settings.payment_method_types`
|
|
90
|
+
* Add support for `card_presence` on `Issuing.Authorization`
|
|
91
|
+
* 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`
|
|
92
|
+
* ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.cancellation_reason`
|
|
93
|
+
* ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.replacement_reason`
|
|
94
|
+
* Add support for `amount` and `currency` on `Mandate.multi_use`
|
|
95
|
+
* Add support for `amount_to_confirm` on `PaymentIntentConfirmParams`
|
|
96
|
+
* ⚠️ Add support for new value `sunbit` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types`
|
|
97
|
+
* Add support for `klarna_display_qr_code` on `PaymentIntent.next_action`
|
|
98
|
+
* Add support for new value `sunbit` on enums `PaymentLinkCreateParams.payment_method_types` and `PaymentLinkUpdateParams.payment_method_types`
|
|
99
|
+
* ⚠️ Add support for new value `sunbit` on enum `PaymentLink.payment_method_types`
|
|
100
|
+
* ⚠️ Add support for new values `low`, `not_assessed`, and `unknown` on enum `Radar.PaymentEvaluation.signals.fraudulent_payment.risk_level`
|
|
101
|
+
* Add support for new value `account` on enum `Radar.ValueListCreateParams.item_type`
|
|
102
|
+
* ⚠️ Add support for new value `account` on enum `Radar.ValueList.item_type`
|
|
103
|
+
* Add support for `moto` on `SetupAttempt.payment_method_details.card`
|
|
104
|
+
* Add support for `pix_display_qr_code` on `SetupIntent.next_action`
|
|
105
|
+
* Add support for new value `2026-04-22.dahlia` on enum `WebhookEndpointCreateParams.api_version`
|
|
106
|
+
* 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`
|
|
107
|
+
* [#2688](https://github.com/stripe/stripe-node/pull/2688) Preserve stack traces for async operations
|
|
108
|
+
|
|
32
109
|
## 22.1.0-beta.3 - 2026-04-16
|
|
33
110
|
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
111
|
|
package/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v2253
|
package/README.md
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
[](https://www.npmjs.org/package/stripe)
|
|
4
4
|
[](https://github.com/stripe/stripe-node/actions?query=branch%3Amaster)
|
|
5
5
|
[](https://www.npmjs.com/package/stripe)
|
|
6
|
-
[](https://runkit.com/npm/stripe)
|
|
7
6
|
|
|
8
7
|
> [!TIP]
|
|
9
8
|
> Want to chat live with Stripe engineers? Join us on our [Discord server](https://stripe.com/go/discord/node).
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
22.2.0-beta.
|
|
1
|
+
22.2.0-beta.3
|
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:
|
|
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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ACD,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,gD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C,OAAO,EACP,SAAS,EACT,IAAI,CAAC,aAAa,CACnB,CAAC;QAEF,sFAAsF;QACtF,kEAAkE;QAClE,4FAA4F;QAC5F,sEAAsE;QACtE,MAAM,WAAW,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,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,m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AC,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"}
|
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;
|
package/cjs/resources/Files.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { multipartRequestDataProcessor } from '../multipart.js';
|
|
1
2
|
import { StripeResource } from '../StripeResource.js';
|
|
2
3
|
import { FileLink } from './FileLinks.js';
|
|
3
4
|
import { Emptyable, MetadataParam, PaginationParams, RangeQueryParam } from '../shared.js';
|
|
4
5
|
import { RequestOptions, ApiListPromise, Response, ApiList, FileData } from '../lib.js';
|
|
5
6
|
export declare class FileResource extends StripeResource {
|
|
7
|
+
requestDataProcessor: typeof multipartRequestDataProcessor;
|
|
6
8
|
/**
|
|
7
9
|
* Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.
|
|
8
10
|
*/
|
package/cjs/resources/Files.js
CHANGED
|
@@ -2,8 +2,13 @@
|
|
|
2
2
|
// File generated from our OpenAPI spec
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.FileResource = void 0;
|
|
5
|
+
const multipart_js_1 = require("../multipart.js");
|
|
5
6
|
const StripeResource_js_1 = require("../StripeResource.js");
|
|
6
7
|
class FileResource extends StripeResource_js_1.StripeResource {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.requestDataProcessor = multipart_js_1.multipartRequestDataProcessor;
|
|
11
|
+
}
|
|
7
12
|
/**
|
|
8
13
|
* Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.
|
|
9
14
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Files.js","sourceRoot":"","sources":["../../src/resources/Files.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;
|
|
1
|
+
{"version":3,"file":"Files.js","sourceRoot":"","sources":["../../src/resources/Files.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,kDAA8D;AAC9D,4DAAoD;AAgBpD,MAAa,YAAa,SAAQ,kCAAc;IAAhD;;QACE,yBAAoB,GAAG,4CAA6B,CAAC;IAsCvD,CAAC;IArCC;;OAEG;IACH,IAAI,CACF,MAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE;YAC5D,UAAU,EAAE,MAAM;SACnB,CAAQ,CAAC;IACZ,CAAC;IACD;;;;OAIG;IACH,MAAM,CACJ,MAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE;YAC7D,OAAO,EAAE;gBACP,cAAc,EAAE,qBAAqB;aACtC;YACD,OAAO,EAAE,OAAO;SACjB,CAAQ,CAAC;IACZ,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,CAAQ,CAAC;IAC7E,CAAC;CACF;AAvCD,oCAuCC"}
|
|
@@ -39,14 +39,14 @@ export declare namespace V2 {
|
|
|
39
39
|
}
|
|
40
40
|
interface Invoice {
|
|
41
41
|
/**
|
|
42
|
-
* The amount of time until the invoice
|
|
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
|
|
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
|
|
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
|
|
57
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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"`
|
|
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
|
|
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
|
|
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
|
|
259
|
+
* the invoice is due in 30 days.
|
|
260
260
|
*/
|
|
261
261
|
interval_count: number;
|
|
262
262
|
}
|