@depup/stripe 22.0.0-depup.0 → 22.4.0-depup.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +329 -42
- package/OPENAPI_VERSION +1 -1
- package/README.md +2 -2
- package/VERSION +1 -1
- package/changes.json +1 -1
- package/cjs/Error.d.ts +61 -7
- package/cjs/Error.js +12 -3
- package/cjs/Error.js.map +1 -1
- package/cjs/RequestSender.d.ts +2 -1
- package/cjs/RequestSender.js +30 -14
- package/cjs/RequestSender.js.map +1 -1
- package/cjs/StripeResource.js +4 -0
- package/cjs/StripeResource.js.map +1 -1
- package/cjs/Types.d.ts +74 -12
- package/cjs/Types.js.map +1 -1
- package/cjs/Webhooks.d.ts +19 -9
- package/cjs/Webhooks.js +48 -11
- package/cjs/Webhooks.js.map +1 -1
- package/cjs/apiVersion.d.ts +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/autoPagination.js +41 -4
- package/cjs/autoPagination.js.map +1 -1
- package/cjs/lib.d.ts +63 -6
- package/cjs/net/FetchHttpClient.js +15 -2
- package/cjs/net/FetchHttpClient.js.map +1 -1
- package/cjs/net/HttpClient.js.map +1 -1
- package/cjs/net/NodeHttpClient.js +3 -0
- package/cjs/net/NodeHttpClient.js.map +1 -1
- package/cjs/platform/NodePlatformFunctions.d.ts +10 -0
- package/cjs/platform/NodePlatformFunctions.js +75 -2
- package/cjs/platform/NodePlatformFunctions.js.map +1 -1
- package/cjs/platform/PlatformFunctions.d.ts +14 -0
- package/cjs/platform/PlatformFunctions.js +24 -0
- package/cjs/platform/PlatformFunctions.js.map +1 -1
- package/cjs/resources/AccountLinks.d.ts +2 -1
- package/cjs/resources/AccountLinks.js.map +1 -1
- package/cjs/resources/AccountSessions.d.ts +92 -0
- package/cjs/resources/Accounts.d.ts +202 -71
- package/cjs/resources/Accounts.js +31 -21
- package/cjs/resources/Accounts.js.map +1 -1
- package/cjs/resources/ApplePayDomains.js +2 -2
- package/cjs/resources/ApplePayDomains.js.map +1 -1
- package/cjs/resources/ApplicationFees.d.ts +2 -2
- package/cjs/resources/ApplicationFees.js +5 -5
- package/cjs/resources/ApplicationFees.js.map +1 -1
- package/cjs/resources/Apps/Secrets.d.ts +19 -21
- package/cjs/resources/Apps/index.d.ts +6 -2
- package/cjs/resources/Apps/index.js.map +1 -1
- package/cjs/resources/BalanceSettings.d.ts +92 -6
- package/cjs/resources/BalanceTransactions.d.ts +9 -9
- package/cjs/resources/BalanceTransactions.js +3 -3
- package/cjs/resources/BalanceTransactions.js.map +1 -1
- package/cjs/resources/BankAccounts.d.ts +2 -2
- package/cjs/resources/Billing/Alerts.d.ts +29 -31
- package/cjs/resources/Billing/Alerts.js +4 -4
- package/cjs/resources/Billing/Alerts.js.map +1 -1
- package/cjs/resources/Billing/CreditBalanceSummary.d.ts +42 -43
- package/cjs/resources/Billing/CreditBalanceSummary.js.map +1 -1
- package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +75 -77
- package/cjs/resources/Billing/CreditBalanceTransactions.js +1 -1
- package/cjs/resources/Billing/CreditBalanceTransactions.js.map +1 -1
- package/cjs/resources/Billing/CreditGrants.d.ts +43 -45
- package/cjs/resources/Billing/CreditGrants.js +4 -4
- package/cjs/resources/Billing/CreditGrants.js.map +1 -1
- package/cjs/resources/Billing/MeterEventAdjustments.d.ts +10 -11
- package/cjs/resources/Billing/MeterEventAdjustments.js.map +1 -1
- package/cjs/resources/Billing/MeterEvents.d.ts +1 -1
- package/cjs/resources/Billing/Meters.d.ts +45 -47
- package/cjs/resources/Billing/Meters.js +5 -5
- package/cjs/resources/Billing/Meters.js.map +1 -1
- package/cjs/resources/Billing/index.d.ts +40 -14
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/BillingPortal/Configurations.d.ts +148 -150
- package/cjs/resources/BillingPortal/Configurations.js +2 -2
- package/cjs/resources/BillingPortal/Configurations.js.map +1 -1
- package/cjs/resources/BillingPortal/Sessions.d.ts +104 -105
- package/cjs/resources/BillingPortal/Sessions.js.map +1 -1
- package/cjs/resources/BillingPortal/index.d.ts +9 -4
- package/cjs/resources/BillingPortal/index.js.map +1 -1
- package/cjs/resources/Capabilities.d.ts +6 -5
- package/cjs/resources/Cards.d.ts +3 -3
- package/cjs/resources/Charges.d.ts +85 -32
- package/cjs/resources/Charges.js +3 -3
- package/cjs/resources/Charges.js.map +1 -1
- package/cjs/resources/Checkout/Sessions.d.ts +1823 -1575
- package/cjs/resources/Checkout/Sessions.js +4 -4
- package/cjs/resources/Checkout/Sessions.js.map +1 -1
- package/cjs/resources/Checkout/index.d.ts +8 -2
- package/cjs/resources/Checkout/index.js.map +1 -1
- package/cjs/resources/Climate/Orders.d.ts +48 -50
- package/cjs/resources/Climate/Orders.js +3 -3
- package/cjs/resources/Climate/Orders.js.map +1 -1
- package/cjs/resources/Climate/Products.d.ts +15 -17
- package/cjs/resources/Climate/Products.js +1 -1
- package/cjs/resources/Climate/Products.js.map +1 -1
- package/cjs/resources/Climate/Suppliers.d.ts +26 -28
- package/cjs/resources/Climate/Suppliers.js +1 -1
- package/cjs/resources/Climate/Suppliers.js.map +1 -1
- package/cjs/resources/Climate/index.d.ts +15 -6
- package/cjs/resources/Climate/index.js.map +1 -1
- package/cjs/resources/ConfirmationTokens.d.ts +42 -21
- package/cjs/resources/ConfirmationTokens.js +1 -1
- package/cjs/resources/ConfirmationTokens.js.map +1 -1
- package/cjs/resources/CountrySpecs.js +1 -1
- package/cjs/resources/CountrySpecs.js.map +1 -1
- package/cjs/resources/Coupons.d.ts +3 -3
- package/cjs/resources/Coupons.js +3 -3
- package/cjs/resources/Coupons.js.map +1 -1
- package/cjs/resources/CreditNoteLineItems.d.ts +3 -3
- package/cjs/resources/CreditNotes.d.ts +23 -20
- package/cjs/resources/CreditNotes.js +6 -4
- package/cjs/resources/CreditNotes.js.map +1 -1
- package/cjs/resources/CustomerBalanceTransactions.d.ts +2 -2
- package/cjs/resources/CustomerCashBalanceTransactions.d.ts +4 -3
- package/cjs/resources/CustomerSessions.d.ts +25 -24
- package/cjs/resources/CustomerSessions.js.map +1 -1
- package/cjs/resources/Customers.d.ts +14 -14
- package/cjs/resources/Customers.js +31 -27
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/Discounts.d.ts +4 -4
- package/cjs/resources/Disputes.d.ts +43 -12
- package/cjs/resources/Disputes.js +4 -4
- package/cjs/resources/Disputes.js.map +1 -1
- package/cjs/resources/Entitlements/ActiveEntitlements.js +1 -1
- package/cjs/resources/Entitlements/ActiveEntitlements.js.map +1 -1
- package/cjs/resources/Entitlements/Features.js +2 -2
- package/cjs/resources/Entitlements/Features.js.map +1 -1
- package/cjs/resources/Entitlements/index.d.ts +11 -4
- package/cjs/resources/Entitlements/index.js.map +1 -1
- package/cjs/resources/EphemeralKeys.js +1 -1
- package/cjs/resources/EphemeralKeys.js.map +1 -1
- package/cjs/resources/Events.d.ts +68 -3
- package/cjs/resources/Events.js +1 -1
- package/cjs/resources/Events.js.map +1 -1
- package/cjs/resources/ExchangeRates.js +1 -1
- package/cjs/resources/ExchangeRates.js.map +1 -1
- package/cjs/resources/FileLinks.js +2 -2
- package/cjs/resources/FileLinks.js.map +1 -1
- package/cjs/resources/Files.d.ts +5 -3
- package/cjs/resources/Files.js +6 -1
- package/cjs/resources/Files.js.map +1 -1
- package/cjs/resources/FinancialConnections/Accounts.d.ts +167 -145
- package/cjs/resources/FinancialConnections/Accounts.js +6 -6
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +55 -0
- package/cjs/resources/FinancialConnections/Authorizations.js +4 -0
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -0
- package/cjs/resources/FinancialConnections/Sessions.d.ts +115 -42
- package/cjs/resources/FinancialConnections/Sessions.js +1 -1
- package/cjs/resources/FinancialConnections/Sessions.js.map +1 -1
- package/cjs/resources/FinancialConnections/Transactions.d.ts +14 -16
- package/cjs/resources/FinancialConnections/Transactions.js +1 -1
- package/cjs/resources/FinancialConnections/Transactions.js.map +1 -1
- package/cjs/resources/FinancialConnections/index.d.ts +22 -6
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/Forwarding/Requests.d.ts +59 -61
- package/cjs/resources/Forwarding/Requests.js +1 -1
- package/cjs/resources/Forwarding/Requests.js.map +1 -1
- package/cjs/resources/Forwarding/index.d.ts +5 -2
- package/cjs/resources/Forwarding/index.js.map +1 -1
- package/cjs/resources/FundingInstructions.d.ts +4 -4
- package/cjs/resources/Identity/VerificationReports.d.ts +257 -259
- package/cjs/resources/Identity/VerificationReports.js +1 -1
- package/cjs/resources/Identity/VerificationReports.js.map +1 -1
- package/cjs/resources/Identity/VerificationSessions.d.ts +156 -158
- package/cjs/resources/Identity/VerificationSessions.js +4 -4
- package/cjs/resources/Identity/VerificationSessions.js.map +1 -1
- package/cjs/resources/Identity/index.d.ts +12 -4
- package/cjs/resources/Identity/index.js.map +1 -1
- package/cjs/resources/InvoiceItems.d.ts +28 -0
- package/cjs/resources/InvoiceItems.js +3 -3
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +4 -4
- package/cjs/resources/InvoicePayments.d.ts +3 -3
- package/cjs/resources/InvoicePayments.js +1 -1
- package/cjs/resources/InvoicePayments.js.map +1 -1
- package/cjs/resources/InvoiceRenderingTemplates.js +3 -3
- package/cjs/resources/InvoiceRenderingTemplates.js.map +1 -1
- package/cjs/resources/Invoices.d.ts +307 -88
- package/cjs/resources/Invoices.js +14 -14
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +359 -356
- package/cjs/resources/Issuing/Authorizations.js +4 -4
- package/cjs/resources/Issuing/Authorizations.js.map +1 -1
- package/cjs/resources/Issuing/Cardholders.d.ts +173 -145
- package/cjs/resources/Issuing/Cardholders.js +2 -2
- package/cjs/resources/Issuing/Cardholders.js.map +1 -1
- package/cjs/resources/Issuing/Cards.d.ts +229 -189
- package/cjs/resources/Issuing/Cards.js +2 -2
- package/cjs/resources/Issuing/Cards.js.map +1 -1
- package/cjs/resources/Issuing/Disputes.d.ts +230 -232
- package/cjs/resources/Issuing/Disputes.js +3 -3
- package/cjs/resources/Issuing/Disputes.js.map +1 -1
- package/cjs/resources/Issuing/PersonalizationDesigns.d.ts +50 -52
- package/cjs/resources/Issuing/PersonalizationDesigns.js +2 -2
- package/cjs/resources/Issuing/PersonalizationDesigns.js.map +1 -1
- package/cjs/resources/Issuing/PhysicalBundles.d.ts +27 -29
- package/cjs/resources/Issuing/PhysicalBundles.js +1 -1
- package/cjs/resources/Issuing/PhysicalBundles.js.map +1 -1
- package/cjs/resources/Issuing/Tokens.d.ts +133 -135
- package/cjs/resources/Issuing/Tokens.js +2 -2
- package/cjs/resources/Issuing/Tokens.js.map +1 -1
- package/cjs/resources/Issuing/Transactions.d.ts +225 -227
- package/cjs/resources/Issuing/Transactions.js +2 -2
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +46 -16
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +4 -3
- package/cjs/resources/Mandates.d.ts +54 -10
- package/cjs/resources/Mandates.js +1 -1
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/OAuth.d.ts +7 -8
- package/cjs/resources/PaymentAttemptRecords.d.ts +81 -52
- package/cjs/resources/PaymentAttemptRecords.js +1 -1
- package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
- package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +2 -1
- package/cjs/resources/PaymentIntents.d.ts +963 -304
- package/cjs/resources/PaymentIntents.js +12 -10
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +217 -48
- package/cjs/resources/PaymentLinks.js +3 -3
- package/cjs/resources/PaymentLinks.js.map +1 -1
- package/cjs/resources/PaymentMethodConfigurations.d.ts +439 -225
- package/cjs/resources/PaymentMethodConfigurations.js +2 -2
- package/cjs/resources/PaymentMethodConfigurations.js.map +1 -1
- package/cjs/resources/PaymentMethodDomains.d.ts +7 -7
- package/cjs/resources/PaymentMethodDomains.js +3 -3
- package/cjs/resources/PaymentMethodDomains.js.map +1 -1
- package/cjs/resources/PaymentMethods.d.ts +76 -37
- package/cjs/resources/PaymentMethods.js +5 -5
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentRecords.d.ts +113 -66
- package/cjs/resources/PaymentRecords.js +15 -7
- package/cjs/resources/PaymentRecords.js.map +1 -1
- package/cjs/resources/Payouts.d.ts +4 -4
- package/cjs/resources/Payouts.js +4 -4
- package/cjs/resources/Payouts.js.map +1 -1
- package/cjs/resources/Persons.d.ts +6 -6
- package/cjs/resources/Plans.d.ts +6 -6
- package/cjs/resources/Plans.js +3 -3
- package/cjs/resources/Plans.js.map +1 -1
- package/cjs/resources/Prices.d.ts +6 -6
- package/cjs/resources/Prices.js +2 -2
- package/cjs/resources/Prices.js.map +1 -1
- package/cjs/resources/Products.js +7 -7
- package/cjs/resources/Products.js.map +1 -1
- package/cjs/resources/PromotionCodes.d.ts +2 -2
- package/cjs/resources/PromotionCodes.js +2 -2
- package/cjs/resources/PromotionCodes.js.map +1 -1
- package/cjs/resources/Quotes.d.ts +86 -20
- package/cjs/resources/Quotes.js +20 -12
- package/cjs/resources/Quotes.js.map +1 -1
- package/cjs/resources/Radar/EarlyFraudWarnings.js +1 -1
- package/cjs/resources/Radar/EarlyFraudWarnings.js.map +1 -1
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +298 -300
- package/cjs/resources/Radar/PaymentEvaluations.js.map +1 -1
- package/cjs/resources/Radar/ValueListItems.d.ts +14 -16
- package/cjs/resources/Radar/ValueListItems.js +2 -2
- package/cjs/resources/Radar/ValueListItems.js.map +1 -1
- package/cjs/resources/Radar/ValueLists.d.ts +22 -24
- package/cjs/resources/Radar/ValueLists.js +3 -3
- package/cjs/resources/Radar/ValueLists.js.map +1 -1
- package/cjs/resources/Radar/index.d.ts +22 -8
- package/cjs/resources/Radar/index.js.map +1 -1
- package/cjs/resources/Refunds.d.ts +21 -4
- package/cjs/resources/Refunds.js +3 -3
- package/cjs/resources/Refunds.js.map +1 -1
- package/cjs/resources/Reporting/ReportRuns.d.ts +35 -37
- package/cjs/resources/Reporting/ReportRuns.js +1 -1
- package/cjs/resources/Reporting/ReportRuns.js.map +1 -1
- package/cjs/resources/Reporting/ReportTypes.js +1 -1
- package/cjs/resources/Reporting/ReportTypes.js.map +1 -1
- package/cjs/resources/Reporting/index.d.ts +9 -4
- package/cjs/resources/Reporting/index.js.map +1 -1
- package/cjs/resources/Reserve/Holds.d.ts +32 -20
- package/cjs/resources/Reserve/Plans.d.ts +29 -31
- package/cjs/resources/Reserve/Releases.d.ts +23 -25
- package/cjs/resources/Reserve/index.js +1 -2
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/Reviews.js +2 -2
- package/cjs/resources/Reviews.js.map +1 -1
- package/cjs/resources/SetupAttempts.d.ts +24 -7
- package/cjs/resources/SetupIntents.d.ts +444 -118
- package/cjs/resources/SetupIntents.js +5 -5
- package/cjs/resources/SetupIntents.js.map +1 -1
- package/cjs/resources/ShippingRates.d.ts +5 -5
- package/cjs/resources/ShippingRates.js +2 -2
- package/cjs/resources/ShippingRates.js.map +1 -1
- package/cjs/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
- package/cjs/resources/Sigma/ScheduledQueryRuns.js +1 -1
- package/cjs/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
- package/cjs/resources/Sigma/index.d.ts +4 -2
- package/cjs/resources/Sigma/index.js.map +1 -1
- package/cjs/resources/Sources.d.ts +2 -2
- package/cjs/resources/Sources.js +4 -4
- package/cjs/resources/Sources.js.map +1 -1
- package/cjs/resources/SubscriptionItems.d.ts +11 -25
- package/cjs/resources/SubscriptionItems.js +3 -3
- package/cjs/resources/SubscriptionItems.js.map +1 -1
- package/cjs/resources/SubscriptionSchedules.d.ts +168 -37
- package/cjs/resources/SubscriptionSchedules.js +4 -4
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +559 -87
- package/cjs/resources/Subscriptions.js +9 -9
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/Associations.d.ts +25 -26
- package/cjs/resources/Tax/Associations.js.map +1 -1
- package/cjs/resources/Tax/CalculationLineItems.d.ts +57 -59
- package/cjs/resources/Tax/Calculations.d.ts +167 -169
- package/cjs/resources/Tax/Calculations.js +2 -2
- package/cjs/resources/Tax/Calculations.js.map +1 -1
- package/cjs/resources/Tax/Registrations.d.ts +1226 -1194
- package/cjs/resources/Tax/Registrations.js +2 -2
- package/cjs/resources/Tax/Registrations.js.map +1 -1
- package/cjs/resources/Tax/Settings.d.ts +38 -40
- package/cjs/resources/Tax/TransactionLineItems.d.ts +12 -14
- package/cjs/resources/Tax/Transactions.d.ts +116 -118
- package/cjs/resources/Tax/Transactions.js +2 -2
- package/cjs/resources/Tax/Transactions.js.map +1 -1
- package/cjs/resources/Tax/index.d.ts +26 -10
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/TaxCodes.js +1 -1
- package/cjs/resources/TaxCodes.js.map +1 -1
- package/cjs/resources/TaxIds.d.ts +8 -8
- package/cjs/resources/TaxIds.js +2 -2
- package/cjs/resources/TaxIds.js.map +1 -1
- package/cjs/resources/TaxRates.d.ts +5 -5
- package/cjs/resources/TaxRates.js +2 -2
- package/cjs/resources/TaxRates.js.map +1 -1
- package/cjs/resources/Terminal/Configurations.d.ts +540 -434
- package/cjs/resources/Terminal/Configurations.js +3 -3
- package/cjs/resources/Terminal/Configurations.js.map +1 -1
- package/cjs/resources/Terminal/Locations.d.ts +72 -74
- package/cjs/resources/Terminal/Locations.js +3 -3
- package/cjs/resources/Terminal/Locations.js.map +1 -1
- package/cjs/resources/Terminal/OnboardingLinks.d.ts +16 -18
- package/cjs/resources/Terminal/Readers.d.ts +495 -357
- package/cjs/resources/Terminal/Readers.js +11 -11
- package/cjs/resources/Terminal/Readers.js.map +1 -1
- package/cjs/resources/Terminal/index.d.ts +38 -10
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +31 -13
- package/cjs/resources/TestHelpers/ConfirmationTokens.js.map +1 -1
- package/cjs/resources/TestHelpers/Customers.js +1 -1
- package/cjs/resources/TestHelpers/Customers.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/Authorizations.d.ts +17 -17
- package/cjs/resources/TestHelpers/Issuing/Authorizations.js +6 -6
- package/cjs/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/Cards.js +5 -5
- package/cjs/resources/TestHelpers/Issuing/Cards.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.d.ts +3 -2
- package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
- package/cjs/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/Transactions.d.ts +2 -2
- package/cjs/resources/TestHelpers/Issuing/Transactions.js +1 -1
- package/cjs/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/index.js.map +1 -1
- package/cjs/resources/TestHelpers/Refunds.js +1 -1
- package/cjs/resources/TestHelpers/Refunds.js.map +1 -1
- package/cjs/resources/TestHelpers/Terminal/Readers.d.ts +3 -2
- package/cjs/resources/TestHelpers/Terminal/Readers.js +3 -3
- package/cjs/resources/TestHelpers/Terminal/Readers.js.map +1 -1
- package/cjs/resources/TestHelpers/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/TestClocks.d.ts +32 -30
- package/cjs/resources/TestHelpers/TestClocks.js +3 -3
- package/cjs/resources/TestHelpers/TestClocks.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/InboundTransfers.d.ts +2 -1
- package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
- package/cjs/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/OutboundPayments.d.ts +3 -2
- package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
- package/cjs/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.d.ts +3 -2
- package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
- package/cjs/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +2 -1
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.js.map +1 -1
- package/cjs/resources/TestHelpers/Treasury/index.js.map +1 -1
- package/cjs/resources/TestHelpers/index.d.ts +8 -2
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/Tokens.d.ts +19 -9
- package/cjs/resources/Tokens.js +1 -1
- package/cjs/resources/Tokens.js.map +1 -1
- package/cjs/resources/Topups.d.ts +46 -0
- package/cjs/resources/Topups.js +3 -3
- package/cjs/resources/Topups.js.map +1 -1
- package/cjs/resources/Transfers.js +6 -6
- package/cjs/resources/Transfers.js.map +1 -1
- package/cjs/resources/Treasury/CreditReversals.d.ts +13 -15
- package/cjs/resources/Treasury/CreditReversals.js +1 -1
- package/cjs/resources/Treasury/CreditReversals.js.map +1 -1
- package/cjs/resources/Treasury/DebitReversals.d.ts +21 -23
- package/cjs/resources/Treasury/DebitReversals.js +1 -1
- package/cjs/resources/Treasury/DebitReversals.js.map +1 -1
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +265 -266
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +95 -97
- package/cjs/resources/Treasury/FinancialAccounts.js +5 -5
- package/cjs/resources/Treasury/FinancialAccounts.js.map +1 -1
- package/cjs/resources/Treasury/InboundTransfers.d.ts +81 -83
- package/cjs/resources/Treasury/InboundTransfers.js +2 -2
- package/cjs/resources/Treasury/InboundTransfers.js.map +1 -1
- package/cjs/resources/Treasury/OutboundPayments.d.ts +131 -133
- package/cjs/resources/Treasury/OutboundPayments.js +2 -2
- package/cjs/resources/Treasury/OutboundPayments.js.map +1 -1
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +121 -123
- package/cjs/resources/Treasury/OutboundTransfers.js +2 -2
- package/cjs/resources/Treasury/OutboundTransfers.js.map +1 -1
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +123 -125
- package/cjs/resources/Treasury/ReceivedCredits.js +1 -1
- package/cjs/resources/Treasury/ReceivedCredits.js.map +1 -1
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +89 -91
- package/cjs/resources/Treasury/ReceivedDebits.js +1 -1
- package/cjs/resources/Treasury/ReceivedDebits.js.map +1 -1
- package/cjs/resources/Treasury/TransactionEntries.d.ts +77 -79
- package/cjs/resources/Treasury/TransactionEntries.js +1 -1
- package/cjs/resources/Treasury/TransactionEntries.js.map +1 -1
- package/cjs/resources/Treasury/Transactions.d.ts +89 -91
- package/cjs/resources/Treasury/Transactions.js +1 -1
- package/cjs/resources/Treasury/Transactions.js.map +1 -1
- package/cjs/resources/Treasury/index.d.ts +54 -20
- package/cjs/resources/Treasury/index.js.map +1 -1
- package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +14 -17
- package/cjs/resources/V2/Billing/MeterEventAdjustments.js.map +1 -1
- package/cjs/resources/V2/Billing/MeterEventSession.d.ts +4 -4
- package/cjs/resources/V2/Billing/MeterEventSession.js +1 -1
- package/cjs/resources/V2/Billing/index.d.ts +9 -6
- package/cjs/resources/V2/Billing/index.js.map +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 +184 -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/AccountLinks.d.ts +91 -94
- package/cjs/resources/V2/Core/AccountLinks.js.map +1 -1
- package/cjs/resources/V2/Core/AccountPersons.d.ts +370 -374
- package/cjs/resources/V2/Core/AccountTokens.d.ts +80 -11
- package/cjs/resources/V2/Core/AccountTokens.js +6 -2
- package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +7 -6
- package/cjs/resources/V2/Core/Accounts/PersonTokens.js +5 -4
- package/cjs/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts/Persons.d.ts +10 -10
- package/cjs/resources/V2/Core/Accounts/Persons.js +7 -7
- package/cjs/resources/V2/Core/Accounts/Persons.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts.d.ts +3156 -2914
- package/cjs/resources/V2/Core/Accounts.js +4 -4
- package/cjs/resources/V2/Core/Accounts.js.map +1 -1
- package/cjs/resources/V2/Core/EventDestinations.d.ts +104 -61
- package/cjs/resources/V2/Core/EventDestinations.js +6 -6
- package/cjs/resources/V2/Core/EventDestinations.js.map +1 -1
- package/cjs/resources/V2/Core/Events.d.ts +97 -43
- package/cjs/resources/V2/Core/Events.js +3 -2
- package/cjs/resources/V2/Core/Events.js.map +1 -1
- package/cjs/resources/V2/Core/index.d.ts +30 -10
- package/cjs/resources/V2/Core/index.js.map +1 -1
- package/cjs/resources/V2/index.d.ts +4 -0
- package/cjs/resources/V2/index.js +4 -2
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/resources/WebhookEndpoints.d.ts +4 -4
- package/cjs/resources/WebhookEndpoints.js +3 -3
- package/cjs/resources/WebhookEndpoints.js.map +1 -1
- package/cjs/resources.js +6 -0
- package/cjs/resources.js.map +1 -1
- package/cjs/shared.d.ts +5 -0
- package/cjs/stripe.cjs.node.d.ts +14483 -2
- package/cjs/stripe.cjs.node.js +1 -2
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.cjs.worker.d.ts +4 -1
- package/cjs/stripe.cjs.worker.js +3 -1
- package/cjs/stripe.cjs.worker.js.map +1 -1
- package/cjs/stripe.core.d.ts +75 -18
- package/cjs/stripe.core.js +67 -7
- package/cjs/stripe.core.js.map +1 -1
- package/cjs/utils.d.ts +6 -3
- package/cjs/utils.js +19 -21
- package/cjs/utils.js.map +1 -1
- package/esm/Error.d.ts +61 -7
- package/esm/Error.js +12 -3
- package/esm/Error.js.map +1 -1
- package/esm/RequestSender.d.ts +2 -1
- package/esm/RequestSender.js +31 -15
- package/esm/RequestSender.js.map +1 -1
- package/esm/StripeResource.js +5 -1
- package/esm/StripeResource.js.map +1 -1
- package/esm/Types.d.ts +74 -12
- package/esm/Types.js.map +1 -1
- package/esm/Webhooks.d.ts +19 -9
- package/esm/Webhooks.js +48 -11
- package/esm/Webhooks.js.map +1 -1
- package/esm/apiVersion.d.ts +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/autoPagination.js +42 -5
- package/esm/autoPagination.js.map +1 -1
- package/esm/lib.d.ts +63 -6
- package/esm/net/FetchHttpClient.js +15 -2
- package/esm/net/FetchHttpClient.js.map +1 -1
- package/esm/net/HttpClient.js.map +1 -1
- package/esm/net/NodeHttpClient.js +3 -0
- package/esm/net/NodeHttpClient.js.map +1 -1
- package/esm/platform/NodePlatformFunctions.d.ts +10 -0
- package/esm/platform/NodePlatformFunctions.js +75 -2
- package/esm/platform/NodePlatformFunctions.js.map +1 -1
- package/esm/platform/PlatformFunctions.d.ts +14 -0
- package/esm/platform/PlatformFunctions.js +24 -0
- package/esm/platform/PlatformFunctions.js.map +1 -1
- package/esm/resources/AccountLinks.d.ts +2 -1
- package/esm/resources/AccountLinks.js.map +1 -1
- package/esm/resources/AccountSessions.d.ts +92 -0
- package/esm/resources/Accounts.d.ts +202 -71
- package/esm/resources/Accounts.js +31 -21
- package/esm/resources/Accounts.js.map +1 -1
- package/esm/resources/ApplePayDomains.js +2 -2
- package/esm/resources/ApplePayDomains.js.map +1 -1
- package/esm/resources/ApplicationFees.d.ts +2 -2
- package/esm/resources/ApplicationFees.js +5 -5
- package/esm/resources/ApplicationFees.js.map +1 -1
- package/esm/resources/Apps/Secrets.d.ts +19 -21
- package/esm/resources/Apps/index.d.ts +6 -2
- package/esm/resources/Apps/index.js.map +1 -1
- package/esm/resources/BalanceSettings.d.ts +92 -6
- package/esm/resources/BalanceTransactions.d.ts +9 -9
- package/esm/resources/BalanceTransactions.js +3 -3
- package/esm/resources/BalanceTransactions.js.map +1 -1
- package/esm/resources/BankAccounts.d.ts +2 -2
- package/esm/resources/Billing/Alerts.d.ts +29 -31
- package/esm/resources/Billing/Alerts.js +4 -4
- package/esm/resources/Billing/Alerts.js.map +1 -1
- package/esm/resources/Billing/CreditBalanceSummary.d.ts +42 -43
- package/esm/resources/Billing/CreditBalanceSummary.js.map +1 -1
- package/esm/resources/Billing/CreditBalanceTransactions.d.ts +75 -77
- package/esm/resources/Billing/CreditBalanceTransactions.js +1 -1
- package/esm/resources/Billing/CreditBalanceTransactions.js.map +1 -1
- package/esm/resources/Billing/CreditGrants.d.ts +43 -45
- package/esm/resources/Billing/CreditGrants.js +4 -4
- package/esm/resources/Billing/CreditGrants.js.map +1 -1
- package/esm/resources/Billing/MeterEventAdjustments.d.ts +10 -11
- package/esm/resources/Billing/MeterEventAdjustments.js.map +1 -1
- package/esm/resources/Billing/MeterEvents.d.ts +1 -1
- package/esm/resources/Billing/Meters.d.ts +45 -47
- package/esm/resources/Billing/Meters.js +5 -5
- package/esm/resources/Billing/Meters.js.map +1 -1
- package/esm/resources/Billing/index.d.ts +40 -14
- package/esm/resources/Billing/index.js +2 -2
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/BillingPortal/Configurations.d.ts +148 -150
- package/esm/resources/BillingPortal/Configurations.js +2 -2
- package/esm/resources/BillingPortal/Configurations.js.map +1 -1
- package/esm/resources/BillingPortal/Sessions.d.ts +104 -105
- package/esm/resources/BillingPortal/Sessions.js.map +1 -1
- package/esm/resources/BillingPortal/index.d.ts +9 -4
- package/esm/resources/BillingPortal/index.js +2 -2
- package/esm/resources/BillingPortal/index.js.map +1 -1
- package/esm/resources/Capabilities.d.ts +6 -5
- package/esm/resources/Cards.d.ts +3 -3
- package/esm/resources/Charges.d.ts +85 -32
- package/esm/resources/Charges.js +3 -3
- package/esm/resources/Charges.js.map +1 -1
- package/esm/resources/Checkout/Sessions.d.ts +1823 -1575
- package/esm/resources/Checkout/Sessions.js +4 -4
- package/esm/resources/Checkout/Sessions.js.map +1 -1
- package/esm/resources/Checkout/index.d.ts +8 -2
- package/esm/resources/Checkout/index.js +1 -1
- package/esm/resources/Checkout/index.js.map +1 -1
- package/esm/resources/Climate/Orders.d.ts +48 -50
- package/esm/resources/Climate/Orders.js +3 -3
- package/esm/resources/Climate/Orders.js.map +1 -1
- package/esm/resources/Climate/Products.d.ts +15 -17
- package/esm/resources/Climate/Products.js +1 -1
- package/esm/resources/Climate/Products.js.map +1 -1
- package/esm/resources/Climate/Suppliers.d.ts +26 -28
- package/esm/resources/Climate/Suppliers.js +1 -1
- package/esm/resources/Climate/Suppliers.js.map +1 -1
- package/esm/resources/Climate/index.d.ts +15 -6
- package/esm/resources/Climate/index.js +2 -2
- package/esm/resources/Climate/index.js.map +1 -1
- package/esm/resources/ConfirmationTokens.d.ts +42 -21
- package/esm/resources/ConfirmationTokens.js +1 -1
- package/esm/resources/ConfirmationTokens.js.map +1 -1
- package/esm/resources/CountrySpecs.js +1 -1
- package/esm/resources/CountrySpecs.js.map +1 -1
- package/esm/resources/Coupons.d.ts +3 -3
- package/esm/resources/Coupons.js +3 -3
- package/esm/resources/Coupons.js.map +1 -1
- package/esm/resources/CreditNoteLineItems.d.ts +3 -3
- package/esm/resources/CreditNotes.d.ts +23 -20
- package/esm/resources/CreditNotes.js +6 -4
- package/esm/resources/CreditNotes.js.map +1 -1
- package/esm/resources/CustomerBalanceTransactions.d.ts +2 -2
- package/esm/resources/CustomerCashBalanceTransactions.d.ts +4 -3
- package/esm/resources/CustomerSessions.d.ts +25 -24
- package/esm/resources/CustomerSessions.js.map +1 -1
- package/esm/resources/Customers.d.ts +14 -14
- package/esm/resources/Customers.js +31 -27
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/Discounts.d.ts +4 -4
- package/esm/resources/Disputes.d.ts +43 -12
- package/esm/resources/Disputes.js +4 -4
- package/esm/resources/Disputes.js.map +1 -1
- package/esm/resources/Entitlements/ActiveEntitlements.js +1 -1
- package/esm/resources/Entitlements/ActiveEntitlements.js.map +1 -1
- package/esm/resources/Entitlements/Features.js +2 -2
- package/esm/resources/Entitlements/Features.js.map +1 -1
- package/esm/resources/Entitlements/index.d.ts +11 -4
- package/esm/resources/Entitlements/index.js +1 -1
- package/esm/resources/Entitlements/index.js.map +1 -1
- package/esm/resources/EphemeralKeys.js +1 -1
- package/esm/resources/EphemeralKeys.js.map +1 -1
- package/esm/resources/Events.d.ts +68 -3
- package/esm/resources/Events.js +1 -1
- package/esm/resources/Events.js.map +1 -1
- package/esm/resources/ExchangeRates.js +1 -1
- package/esm/resources/ExchangeRates.js.map +1 -1
- package/esm/resources/FileLinks.js +2 -2
- package/esm/resources/FileLinks.js.map +1 -1
- package/esm/resources/Files.d.ts +5 -3
- package/esm/resources/Files.js +6 -1
- package/esm/resources/Files.js.map +1 -1
- package/esm/resources/FinancialConnections/Accounts.d.ts +167 -145
- package/esm/resources/FinancialConnections/Accounts.js +6 -6
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +55 -0
- package/esm/resources/FinancialConnections/Authorizations.js +3 -0
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -0
- package/esm/resources/FinancialConnections/Sessions.d.ts +115 -42
- package/esm/resources/FinancialConnections/Sessions.js +1 -1
- package/esm/resources/FinancialConnections/Sessions.js.map +1 -1
- package/esm/resources/FinancialConnections/Transactions.d.ts +14 -16
- package/esm/resources/FinancialConnections/Transactions.js +1 -1
- package/esm/resources/FinancialConnections/Transactions.js.map +1 -1
- package/esm/resources/FinancialConnections/index.d.ts +22 -6
- package/esm/resources/FinancialConnections/index.js +3 -3
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/Forwarding/Requests.d.ts +59 -61
- package/esm/resources/Forwarding/Requests.js +1 -1
- package/esm/resources/Forwarding/Requests.js.map +1 -1
- package/esm/resources/Forwarding/index.d.ts +5 -2
- package/esm/resources/Forwarding/index.js +1 -1
- package/esm/resources/Forwarding/index.js.map +1 -1
- package/esm/resources/FundingInstructions.d.ts +4 -4
- package/esm/resources/Identity/VerificationReports.d.ts +257 -259
- package/esm/resources/Identity/VerificationReports.js +1 -1
- package/esm/resources/Identity/VerificationReports.js.map +1 -1
- package/esm/resources/Identity/VerificationSessions.d.ts +156 -158
- package/esm/resources/Identity/VerificationSessions.js +4 -4
- package/esm/resources/Identity/VerificationSessions.js.map +1 -1
- package/esm/resources/Identity/index.d.ts +12 -4
- package/esm/resources/Identity/index.js.map +1 -1
- package/esm/resources/InvoiceItems.d.ts +28 -0
- package/esm/resources/InvoiceItems.js +3 -3
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +4 -4
- package/esm/resources/InvoicePayments.d.ts +3 -3
- package/esm/resources/InvoicePayments.js +1 -1
- package/esm/resources/InvoicePayments.js.map +1 -1
- package/esm/resources/InvoiceRenderingTemplates.js +3 -3
- package/esm/resources/InvoiceRenderingTemplates.js.map +1 -1
- package/esm/resources/Invoices.d.ts +307 -88
- package/esm/resources/Invoices.js +14 -14
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +359 -356
- package/esm/resources/Issuing/Authorizations.js +4 -4
- package/esm/resources/Issuing/Authorizations.js.map +1 -1
- package/esm/resources/Issuing/Cardholders.d.ts +173 -145
- package/esm/resources/Issuing/Cardholders.js +2 -2
- package/esm/resources/Issuing/Cardholders.js.map +1 -1
- package/esm/resources/Issuing/Cards.d.ts +229 -189
- package/esm/resources/Issuing/Cards.js +2 -2
- package/esm/resources/Issuing/Cards.js.map +1 -1
- package/esm/resources/Issuing/Disputes.d.ts +230 -232
- package/esm/resources/Issuing/Disputes.js +3 -3
- package/esm/resources/Issuing/Disputes.js.map +1 -1
- package/esm/resources/Issuing/PersonalizationDesigns.d.ts +50 -52
- package/esm/resources/Issuing/PersonalizationDesigns.js +2 -2
- package/esm/resources/Issuing/PersonalizationDesigns.js.map +1 -1
- package/esm/resources/Issuing/PhysicalBundles.d.ts +27 -29
- package/esm/resources/Issuing/PhysicalBundles.js +1 -1
- package/esm/resources/Issuing/PhysicalBundles.js.map +1 -1
- package/esm/resources/Issuing/Tokens.d.ts +133 -135
- package/esm/resources/Issuing/Tokens.js +2 -2
- package/esm/resources/Issuing/Tokens.js.map +1 -1
- package/esm/resources/Issuing/Transactions.d.ts +225 -227
- package/esm/resources/Issuing/Transactions.js +2 -2
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +46 -16
- package/esm/resources/Issuing/index.js +5 -5
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +4 -3
- package/esm/resources/Mandates.d.ts +54 -10
- package/esm/resources/Mandates.js +1 -1
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/OAuth.d.ts +7 -8
- package/esm/resources/PaymentAttemptRecords.d.ts +81 -52
- package/esm/resources/PaymentAttemptRecords.js +1 -1
- package/esm/resources/PaymentAttemptRecords.js.map +1 -1
- package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +2 -1
- package/esm/resources/PaymentIntents.d.ts +963 -304
- package/esm/resources/PaymentIntents.js +12 -10
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +217 -48
- package/esm/resources/PaymentLinks.js +3 -3
- package/esm/resources/PaymentLinks.js.map +1 -1
- package/esm/resources/PaymentMethodConfigurations.d.ts +439 -225
- package/esm/resources/PaymentMethodConfigurations.js +2 -2
- package/esm/resources/PaymentMethodConfigurations.js.map +1 -1
- package/esm/resources/PaymentMethodDomains.d.ts +7 -7
- package/esm/resources/PaymentMethodDomains.js +3 -3
- package/esm/resources/PaymentMethodDomains.js.map +1 -1
- package/esm/resources/PaymentMethods.d.ts +76 -37
- package/esm/resources/PaymentMethods.js +5 -5
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentRecords.d.ts +113 -66
- package/esm/resources/PaymentRecords.js +15 -7
- package/esm/resources/PaymentRecords.js.map +1 -1
- package/esm/resources/Payouts.d.ts +4 -4
- package/esm/resources/Payouts.js +4 -4
- package/esm/resources/Payouts.js.map +1 -1
- package/esm/resources/Persons.d.ts +6 -6
- package/esm/resources/Plans.d.ts +6 -6
- package/esm/resources/Plans.js +3 -3
- package/esm/resources/Plans.js.map +1 -1
- package/esm/resources/Prices.d.ts +6 -6
- package/esm/resources/Prices.js +2 -2
- package/esm/resources/Prices.js.map +1 -1
- package/esm/resources/Products.js +7 -7
- package/esm/resources/Products.js.map +1 -1
- package/esm/resources/PromotionCodes.d.ts +2 -2
- package/esm/resources/PromotionCodes.js +2 -2
- package/esm/resources/PromotionCodes.js.map +1 -1
- package/esm/resources/Quotes.d.ts +86 -20
- package/esm/resources/Quotes.js +20 -12
- package/esm/resources/Quotes.js.map +1 -1
- package/esm/resources/Radar/EarlyFraudWarnings.js +1 -1
- package/esm/resources/Radar/EarlyFraudWarnings.js.map +1 -1
- package/esm/resources/Radar/PaymentEvaluations.d.ts +298 -300
- package/esm/resources/Radar/PaymentEvaluations.js.map +1 -1
- package/esm/resources/Radar/ValueListItems.d.ts +14 -16
- package/esm/resources/Radar/ValueListItems.js +2 -2
- package/esm/resources/Radar/ValueListItems.js.map +1 -1
- package/esm/resources/Radar/ValueLists.d.ts +22 -24
- package/esm/resources/Radar/ValueLists.js +3 -3
- package/esm/resources/Radar/ValueLists.js.map +1 -1
- package/esm/resources/Radar/index.d.ts +22 -8
- package/esm/resources/Radar/index.js +2 -2
- package/esm/resources/Radar/index.js.map +1 -1
- package/esm/resources/Refunds.d.ts +21 -4
- package/esm/resources/Refunds.js +3 -3
- package/esm/resources/Refunds.js.map +1 -1
- package/esm/resources/Reporting/ReportRuns.d.ts +35 -37
- package/esm/resources/Reporting/ReportRuns.js +1 -1
- package/esm/resources/Reporting/ReportRuns.js.map +1 -1
- package/esm/resources/Reporting/ReportTypes.js +1 -1
- package/esm/resources/Reporting/ReportTypes.js.map +1 -1
- package/esm/resources/Reporting/index.d.ts +9 -4
- package/esm/resources/Reporting/index.js +2 -2
- package/esm/resources/Reporting/index.js.map +1 -1
- package/esm/resources/Reserve/Holds.d.ts +32 -20
- package/esm/resources/Reserve/Plans.d.ts +29 -31
- package/esm/resources/Reserve/Releases.d.ts +23 -25
- package/esm/resources/Reserve/index.js +1 -2
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/Reviews.js +2 -2
- package/esm/resources/Reviews.js.map +1 -1
- package/esm/resources/SetupAttempts.d.ts +24 -7
- package/esm/resources/SetupIntents.d.ts +444 -118
- package/esm/resources/SetupIntents.js +5 -5
- package/esm/resources/SetupIntents.js.map +1 -1
- package/esm/resources/ShippingRates.d.ts +5 -5
- package/esm/resources/ShippingRates.js +2 -2
- package/esm/resources/ShippingRates.js.map +1 -1
- package/esm/resources/Sigma/ScheduledQueryRuns.d.ts +7 -9
- package/esm/resources/Sigma/ScheduledQueryRuns.js +1 -1
- package/esm/resources/Sigma/ScheduledQueryRuns.js.map +1 -1
- package/esm/resources/Sigma/index.d.ts +4 -2
- package/esm/resources/Sigma/index.js.map +1 -1
- package/esm/resources/Sources.d.ts +2 -2
- package/esm/resources/Sources.js +4 -4
- package/esm/resources/Sources.js.map +1 -1
- package/esm/resources/SubscriptionItems.d.ts +11 -25
- package/esm/resources/SubscriptionItems.js +3 -3
- package/esm/resources/SubscriptionItems.js.map +1 -1
- package/esm/resources/SubscriptionSchedules.d.ts +168 -37
- package/esm/resources/SubscriptionSchedules.js +4 -4
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +559 -87
- package/esm/resources/Subscriptions.js +9 -9
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/Associations.d.ts +25 -26
- package/esm/resources/Tax/Associations.js.map +1 -1
- package/esm/resources/Tax/CalculationLineItems.d.ts +57 -59
- package/esm/resources/Tax/Calculations.d.ts +167 -169
- package/esm/resources/Tax/Calculations.js +2 -2
- package/esm/resources/Tax/Calculations.js.map +1 -1
- package/esm/resources/Tax/Registrations.d.ts +1226 -1194
- package/esm/resources/Tax/Registrations.js +2 -2
- package/esm/resources/Tax/Registrations.js.map +1 -1
- package/esm/resources/Tax/Settings.d.ts +38 -40
- package/esm/resources/Tax/TransactionLineItems.d.ts +12 -14
- package/esm/resources/Tax/Transactions.d.ts +116 -118
- package/esm/resources/Tax/Transactions.js +2 -2
- package/esm/resources/Tax/Transactions.js.map +1 -1
- package/esm/resources/Tax/index.d.ts +26 -10
- package/esm/resources/Tax/index.js +4 -4
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/TaxCodes.js +1 -1
- package/esm/resources/TaxCodes.js.map +1 -1
- package/esm/resources/TaxIds.d.ts +8 -8
- package/esm/resources/TaxIds.js +2 -2
- package/esm/resources/TaxIds.js.map +1 -1
- package/esm/resources/TaxRates.d.ts +5 -5
- package/esm/resources/TaxRates.js +2 -2
- package/esm/resources/TaxRates.js.map +1 -1
- package/esm/resources/Terminal/Configurations.d.ts +540 -434
- package/esm/resources/Terminal/Configurations.js +3 -3
- package/esm/resources/Terminal/Configurations.js.map +1 -1
- package/esm/resources/Terminal/Locations.d.ts +72 -74
- package/esm/resources/Terminal/Locations.js +3 -3
- package/esm/resources/Terminal/Locations.js.map +1 -1
- package/esm/resources/Terminal/OnboardingLinks.d.ts +16 -18
- package/esm/resources/Terminal/Readers.d.ts +495 -357
- package/esm/resources/Terminal/Readers.js +11 -11
- package/esm/resources/Terminal/Readers.js.map +1 -1
- package/esm/resources/Terminal/index.d.ts +38 -10
- package/esm/resources/Terminal/index.js +5 -5
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +31 -13
- package/esm/resources/TestHelpers/ConfirmationTokens.js.map +1 -1
- package/esm/resources/TestHelpers/Customers.js +1 -1
- package/esm/resources/TestHelpers/Customers.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/Authorizations.d.ts +17 -17
- package/esm/resources/TestHelpers/Issuing/Authorizations.js +6 -6
- package/esm/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/Cards.js +5 -5
- package/esm/resources/TestHelpers/Issuing/Cards.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.d.ts +3 -2
- package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js +3 -3
- package/esm/resources/TestHelpers/Issuing/PersonalizationDesigns.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/Transactions.d.ts +2 -2
- package/esm/resources/TestHelpers/Issuing/Transactions.js +1 -1
- package/esm/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/index.js +3 -3
- package/esm/resources/TestHelpers/Issuing/index.js.map +1 -1
- package/esm/resources/TestHelpers/Refunds.js +1 -1
- package/esm/resources/TestHelpers/Refunds.js.map +1 -1
- package/esm/resources/TestHelpers/Terminal/Readers.d.ts +3 -2
- package/esm/resources/TestHelpers/Terminal/Readers.js +3 -3
- package/esm/resources/TestHelpers/Terminal/Readers.js.map +1 -1
- package/esm/resources/TestHelpers/Terminal/index.js +1 -1
- package/esm/resources/TestHelpers/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/TestClocks.d.ts +32 -30
- package/esm/resources/TestHelpers/TestClocks.js +3 -3
- package/esm/resources/TestHelpers/TestClocks.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/InboundTransfers.d.ts +2 -1
- package/esm/resources/TestHelpers/Treasury/InboundTransfers.js +3 -3
- package/esm/resources/TestHelpers/Treasury/InboundTransfers.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/OutboundPayments.d.ts +3 -2
- package/esm/resources/TestHelpers/Treasury/OutboundPayments.js +4 -4
- package/esm/resources/TestHelpers/Treasury/OutboundPayments.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/OutboundTransfers.d.ts +3 -2
- package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js +4 -4
- package/esm/resources/TestHelpers/Treasury/OutboundTransfers.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +2 -1
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.js.map +1 -1
- package/esm/resources/TestHelpers/Treasury/index.js +5 -5
- package/esm/resources/TestHelpers/Treasury/index.js.map +1 -1
- package/esm/resources/TestHelpers/index.d.ts +8 -2
- package/esm/resources/TestHelpers/index.js +4 -4
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/Tokens.d.ts +19 -9
- package/esm/resources/Tokens.js +1 -1
- package/esm/resources/Tokens.js.map +1 -1
- package/esm/resources/Topups.d.ts +46 -0
- package/esm/resources/Topups.js +3 -3
- package/esm/resources/Topups.js.map +1 -1
- package/esm/resources/Transfers.js +6 -6
- package/esm/resources/Transfers.js.map +1 -1
- package/esm/resources/Treasury/CreditReversals.d.ts +13 -15
- package/esm/resources/Treasury/CreditReversals.js +1 -1
- package/esm/resources/Treasury/CreditReversals.js.map +1 -1
- package/esm/resources/Treasury/DebitReversals.d.ts +21 -23
- package/esm/resources/Treasury/DebitReversals.js +1 -1
- package/esm/resources/Treasury/DebitReversals.js.map +1 -1
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +265 -266
- package/esm/resources/Treasury/FinancialAccounts.d.ts +95 -97
- package/esm/resources/Treasury/FinancialAccounts.js +5 -5
- package/esm/resources/Treasury/FinancialAccounts.js.map +1 -1
- package/esm/resources/Treasury/InboundTransfers.d.ts +81 -83
- package/esm/resources/Treasury/InboundTransfers.js +2 -2
- package/esm/resources/Treasury/InboundTransfers.js.map +1 -1
- package/esm/resources/Treasury/OutboundPayments.d.ts +131 -133
- package/esm/resources/Treasury/OutboundPayments.js +2 -2
- package/esm/resources/Treasury/OutboundPayments.js.map +1 -1
- package/esm/resources/Treasury/OutboundTransfers.d.ts +121 -123
- package/esm/resources/Treasury/OutboundTransfers.js +2 -2
- package/esm/resources/Treasury/OutboundTransfers.js.map +1 -1
- package/esm/resources/Treasury/ReceivedCredits.d.ts +123 -125
- package/esm/resources/Treasury/ReceivedCredits.js +1 -1
- package/esm/resources/Treasury/ReceivedCredits.js.map +1 -1
- package/esm/resources/Treasury/ReceivedDebits.d.ts +89 -91
- package/esm/resources/Treasury/ReceivedDebits.js +1 -1
- package/esm/resources/Treasury/ReceivedDebits.js.map +1 -1
- package/esm/resources/Treasury/TransactionEntries.d.ts +77 -79
- package/esm/resources/Treasury/TransactionEntries.js +1 -1
- package/esm/resources/Treasury/TransactionEntries.js.map +1 -1
- package/esm/resources/Treasury/Transactions.d.ts +89 -91
- package/esm/resources/Treasury/Transactions.js +1 -1
- package/esm/resources/Treasury/Transactions.js.map +1 -1
- package/esm/resources/Treasury/index.d.ts +54 -20
- package/esm/resources/Treasury/index.js +7 -7
- package/esm/resources/Treasury/index.js.map +1 -1
- package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +14 -17
- package/esm/resources/V2/Billing/MeterEventAdjustments.js.map +1 -1
- package/esm/resources/V2/Billing/MeterEventSession.d.ts +4 -4
- package/esm/resources/V2/Billing/MeterEventSession.js +1 -1
- package/esm/resources/V2/Billing/index.d.ts +9 -6
- package/esm/resources/V2/Billing/index.js +2 -2
- package/esm/resources/V2/Billing/index.js.map +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 +184 -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/AccountLinks.d.ts +91 -94
- package/esm/resources/V2/Core/AccountLinks.js.map +1 -1
- package/esm/resources/V2/Core/AccountPersons.d.ts +370 -374
- package/esm/resources/V2/Core/AccountTokens.d.ts +80 -11
- package/esm/resources/V2/Core/AccountTokens.js +6 -2
- package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
- package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +7 -6
- package/esm/resources/V2/Core/Accounts/PersonTokens.js +5 -4
- package/esm/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
- package/esm/resources/V2/Core/Accounts/Persons.d.ts +10 -10
- package/esm/resources/V2/Core/Accounts/Persons.js +7 -7
- package/esm/resources/V2/Core/Accounts/Persons.js.map +1 -1
- package/esm/resources/V2/Core/Accounts.d.ts +3156 -2914
- package/esm/resources/V2/Core/Accounts.js +4 -4
- package/esm/resources/V2/Core/Accounts.js.map +1 -1
- package/esm/resources/V2/Core/EventDestinations.d.ts +104 -61
- package/esm/resources/V2/Core/EventDestinations.js +6 -6
- package/esm/resources/V2/Core/EventDestinations.js.map +1 -1
- package/esm/resources/V2/Core/Events.d.ts +97 -43
- package/esm/resources/V2/Core/Events.js +3 -2
- package/esm/resources/V2/Core/Events.js.map +1 -1
- package/esm/resources/V2/Core/index.d.ts +30 -10
- package/esm/resources/V2/Core/index.js +2 -2
- package/esm/resources/V2/Core/index.js.map +1 -1
- package/esm/resources/V2/index.d.ts +4 -0
- package/esm/resources/V2/index.js +2 -0
- package/esm/resources/V2/index.js.map +1 -1
- package/esm/resources/WebhookEndpoints.d.ts +4 -4
- package/esm/resources/WebhookEndpoints.js +3 -3
- package/esm/resources/WebhookEndpoints.js.map +1 -1
- package/esm/resources.js +6 -0
- package/esm/resources.js.map +1 -1
- package/esm/shared.d.ts +5 -0
- package/esm/stripe.core.d.ts +75 -18
- package/esm/stripe.core.js +68 -8
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +75 -18
- package/esm/stripe.esm.node.js +62 -8
- package/esm/stripe.esm.node.js.map +1 -1
- package/esm/stripe.esm.worker.d.ts +1 -0
- package/esm/stripe.esm.worker.js +1 -0
- package/esm/stripe.esm.worker.js.map +1 -1
- package/esm/utils.d.ts +6 -3
- package/esm/utils.js +17 -17
- package/esm/utils.js.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,50 +1,337 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 22.4.0 - 2026-07-29
|
|
4
|
+
This release changes the pinned API version to 2026-07-29.dahlia.
|
|
5
|
+
|
|
6
|
+
* [#2795](https://github.com/stripe/stripe-node/pull/2795) Update generated code
|
|
7
|
+
* Add support for new resource `FinancialConnections.Authorization`
|
|
8
|
+
* Add support for `unreject` method on resource `Account`
|
|
9
|
+
* Add support for `list` method on resource `PaymentRecord`
|
|
10
|
+
* Add support for `administrative_address` and `principal_place_of_business` on `Account.company`, `AccountCreateParams.company`, `AccountUpdateParams.company`, and `TokenCreateParams.account.company`
|
|
11
|
+
* Add support for `sepa_debit_payments` on `AccountUpdateParams.settings`
|
|
12
|
+
* Remove support for `proof_of_registration` on `AccountCreateParams.documents`. This field was limited-use and is being deprecated.
|
|
13
|
+
* Add support for `payouts_action` on `AccountRejectParams`
|
|
14
|
+
* Add support for new values `mass_transit_parking_tax` and `parking_tax` on enums `Tax.Calculation.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`, `Tax.Calculation.tax_breakdown[].tax_rate_details.tax_type`, `Tax.CalculationLineItem.tax_breakdown[].tax_rate_details.tax_type`, and `Tax.Transaction.shipping_cost.tax_breakdown[].tax_rate_details.tax_type`
|
|
15
|
+
* Add support for new value `chaps` on enums `FundingInstructions.bank_transfer.financial_addresses[].supported_networks` and `PaymentIntent.next_action.display_bank_transfer_instructions.financial_addresses[].supported_networks`
|
|
16
|
+
* Add support for `smart_disputes_management` on `AccountSession.components.disputes_list.features`, `AccountSession.components.payment_details.features`, `AccountSession.components.payment_disputes.features`, `AccountSession.components.payments.features`, `AccountSessionCreateParams.components.disputes_list.features`, `AccountSessionCreateParams.components.payment_details.features`, `AccountSessionCreateParams.components.payment_disputes.features`, and `AccountSessionCreateParams.components.payments.features`
|
|
17
|
+
* Add support for new value `data_share_only` on enums `Charge.payment_method_details.card.three_d_secure.result`, `PaymentAttemptRecord.payment_method_details.card.three_d_secure.result`, `PaymentRecord.payment_method_details.card.three_d_secure.result`, and `SetupAttempt.payment_method_details.card.three_d_secure.result`
|
|
18
|
+
* Add support for new values `bnp_paribas`, `citibank`, and `mbsb_bank` on enums `Charge.payment_method_details.fpx.bank`, `ConfirmationToken.payment_method_preview.fpx.bank`, `PaymentAttemptRecord.payment_method_details.fpx.bank`, `PaymentMethod.fpx.bank`, and `PaymentRecord.payment_method_details.fpx.bank`
|
|
19
|
+
* Remove support for `dynamic_tax_rates` on `Checkout.SessionCreateParams.line_items[]`. This field was limited-use and is being deprecated.
|
|
20
|
+
* Add support for `setup_future_usage` on `Checkout.Session.payment_method_options.payco`, `Checkout.Session.payment_method_options.samsung_pay`, `Checkout.SessionCreateParams.payment_method_options.payco`, `Checkout.SessionCreateParams.payment_method_options.samsung_pay`, `PaymentIntent.payment_method_options.payco`, `PaymentIntent.payment_method_options.samsung_pay`, `PaymentIntentConfirmParams.payment_method_options.payco`, `PaymentIntentConfirmParams.payment_method_options.samsung_pay`, `PaymentIntentCreateParams.payment_method_options.payco`, `PaymentIntentCreateParams.payment_method_options.samsung_pay`, `PaymentIntentUpdateParams.payment_method_options.payco`, `PaymentIntentUpdateParams.payment_method_options.samsung_pay`, and `PaymentLinkUpdateParams.payment_intent_data`
|
|
21
|
+
* Add support for new value `ic_nif` 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`
|
|
22
|
+
* Add support for new values `bnp_paribas`, `citibank`, and `mbsb_bank` on enums `ConfirmationTokenCreateParams.testHelpers.payment_method_data.fpx.bank`, `PaymentIntentConfirmParams.payment_method_data.fpx.bank`, `PaymentIntentCreateParams.payment_method_data.fpx.bank`, `PaymentIntentUpdateParams.payment_method_data.fpx.bank`, `PaymentMethodCreateParams.fpx.bank`, `SetupIntentConfirmParams.payment_method_data.fpx.bank`, `SetupIntentCreateParams.payment_method_data.fpx.bank`, and `SetupIntentUpdateParams.payment_method_data.fpx.bank`
|
|
23
|
+
* Add support for new value `ic_nif` 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`
|
|
24
|
+
* Add support for `network` on `Dispute.payment_method_details.card`
|
|
25
|
+
* Add support for new values `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, `financial_connections.account.upcoming_deactivation`, `financial_connections.authorization.expected_deactivation_date_updated`, and `financial_connections.authorization.upcoming_deactivation` on enum `Event.type`
|
|
26
|
+
* Add support for `limits` and `manual_entry` on `FinancialConnections.SessionCreateParams` and `FinancialConnections.Session`
|
|
27
|
+
* Add support for `require_payment_method_support` on `FinancialConnections.Session.filters` and `FinancialConnections.SessionCreateParams.filters`
|
|
28
|
+
* Add support for `bank_account_token` on `FinancialConnections.Session`
|
|
29
|
+
* Add support for new values `alipay` and `mb_way` on enums `Invoice.payment_settings.payment_method_types`, `InvoiceCreateParams.payment_settings.payment_method_types`, `InvoiceUpdateParams.payment_settings.payment_method_types`, `Subscription.payment_settings.payment_method_types`, `SubscriptionCreateParams.payment_settings.payment_method_types`, and `SubscriptionUpdateParams.payment_settings.payment_method_types`
|
|
30
|
+
* Add support for new values `mass_transit_parking_tax` and `parking_tax` on enums `InvoiceAddLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `InvoiceLineItemUpdateParams.tax_amounts[].tax_rate_data.tax_type`, `InvoiceUpdateLinesParams.lines[].tax_amounts[].tax_rate_data.tax_type`, `TaxRate.tax_type`, `TaxRateCreateParams.tax_type`, and `TaxRateUpdateParams.tax_type`
|
|
31
|
+
* Add support for `metadata` on `InvoiceCreatePreviewParams.subscription_details`
|
|
32
|
+
* Add support for new value `stripe_internal_error` on enum `Issuing.Authorization.request_history[].reason`
|
|
33
|
+
* Add support for `business_name` on `Issuing.Card.shipping`, `Issuing.CardCreateParams.shipping`, and `Issuing.CardUpdateParams.shipping`
|
|
34
|
+
* Add support for new value `correos` on enum `Issuing.Card.shipping.carrier`
|
|
35
|
+
* Add support for `allowed_payment_method_types` on `PaymentIntentConfirmParams`, `PaymentIntentCreateParams`, `PaymentIntentUpdateParams`, `PaymentIntent`, `SetupIntentConfirmParams`, `SetupIntentCreateParams`, `SetupIntentUpdateParams`, and `SetupIntent`
|
|
36
|
+
* Add support for `referrer` on `PaymentIntentConfirmParams.radar_options` and `PaymentIntentCreateParams.radar_options`
|
|
37
|
+
* Add support for `consent_collection` and `shipping_options` on `PaymentLinkUpdateParams`
|
|
38
|
+
* Add support for `custom_fields`, `description`, and `footer` on `Quote.invoice_settings`, `QuoteCreateParams.invoice_settings`, `QuoteUpdateParams.invoice_settings`, `SubscriptionSchedule.default_settings.invoice_settings`, `SubscriptionSchedule.phases[].invoice_settings`, `SubscriptionScheduleCreateParams.default_settings.invoice_settings`, `SubscriptionScheduleCreateParams.phases[].invoice_settings`, `SubscriptionScheduleUpdateParams.default_settings.invoice_settings`, and `SubscriptionScheduleUpdateParams.phases[].invoice_settings`
|
|
39
|
+
* Add support for `customer_account` and `customer` on `Refund`
|
|
40
|
+
* Add support for `payment_method` on `Refund` and `Topup`
|
|
41
|
+
* Add support for `trial` on `SubscriptionSchedule.phases[]`
|
|
42
|
+
* Add support for `mass_transit_parking_tax` and `parking_tax` on `Tax.Registration.country_options.us` and `Tax.RegistrationCreateParams.country_options.us`
|
|
43
|
+
* Add support for new values `mass_transit_parking_tax` and `parking_tax` on enum `Tax.RegistrationCreateParams.country_options.us.type`
|
|
44
|
+
* Add support for new values `mass_transit_parking_tax` and `parking_tax` on enum `Tax.Registration.country_options.us.type`
|
|
45
|
+
* Add support for `initiated_by` and `payment_method_options` on `Topup`
|
|
46
|
+
* Add support for new values `financial_connections.account.expected_deactivation_date_updated`, `financial_connections.account.supported_payment_method_types_updated`, `financial_connections.account.upcoming_deactivation`, `financial_connections.authorization.expected_deactivation_date_updated`, and `financial_connections.authorization.upcoming_deactivation` on enums `WebhookEndpointCreateParams.enabled_events` and `WebhookEndpointUpdateParams.enabled_events`
|
|
47
|
+
* Add support for new value `2026-07-29.dahlia` on enum `WebhookEndpointCreateParams.api_version`
|
|
48
|
+
* Add support for `additional_addresses` on `V2.Core.Account.identity.business_details`, `V2.Core.AccountCreateParams.identity.business_details`, `V2.Core.AccountTokenCreateParams.identity.business_details`, and `V2.Core.AccountUpdateParams.identity.business_details`
|
|
49
|
+
* Add support for snapshot events `FinancialConnectionsAccountExpectedDeactivationDateUpdatedEvent`, `FinancialConnectionsAccountSupportedPaymentMethodTypesUpdatedEvent`, and `FinancialConnectionsAccountUpcomingDeactivationEvent` with resource `FinancialConnections.Account`
|
|
50
|
+
* Add support for snapshot events `FinancialConnectionsAuthorizationExpectedDeactivationDateUpdatedEvent` and `FinancialConnectionsAuthorizationUpcomingDeactivationEvent` with resource `FinancialConnections.Authorization`
|
|
51
|
+
* [#2790](https://github.com/stripe/stripe-node/pull/2790) Bump brace-expansion from 1.1.11 to 1.1.16
|
|
52
|
+
* [#2786](https://github.com/stripe/stripe-node/pull/2786) Adds shared OtherString type to better annotate non-exhaustive enums
|
|
53
|
+
|
|
54
|
+
## 22.3.2 - 2026-07-15
|
|
55
|
+
* [#2784](https://github.com/stripe/stripe-node/pull/2784) Replace source hash with Telemetry UUID
|
|
56
|
+
* [#2783](https://github.com/stripe/stripe-node/pull/2783) Make Error fields generated
|
|
57
|
+
|
|
58
|
+
## 22.3.1 - 2026-07-09
|
|
59
|
+
* [#2781](https://github.com/stripe/stripe-node/pull/2781) Remove unused Retry-After header support
|
|
60
|
+
* [#2779](https://github.com/stripe/stripe-node/pull/2779) Export HttpClient types as interfaces instead of classes
|
|
61
|
+
- `Stripe.HttpClient` and `Stripe.HttpClientResponse` types now reflect the minimal interface contract rather than the concrete class, making custom HTTP client implementations easier to type correctly.
|
|
62
|
+
* [#2778](https://github.com/stripe/stripe-node/pull/2778) Restore missing public type exports from v21 Stripe namespace
|
|
63
|
+
- Restores `Stripe.StripeConfig`, `Stripe.CryptoProvider`, `Stripe.HttpClient`, `Stripe.HttpClientResponse`, `Stripe.Webhooks`, `Stripe.Signature`, `Stripe.WebhookTestHeaderOptions`, `Stripe.StripeResource`, `Stripe.LatestApiVersion`, `Stripe.HttpAgent`, `Stripe.HttpProtocol`, and `Stripe.RawErrorType` type exports that were inadvertently dropped in the v22 type system migration.
|
|
64
|
+
|
|
65
|
+
## 22.3.0 - 2026-06-24
|
|
66
|
+
This release changes the pinned API version to 2026-06-24.dahlia.
|
|
67
|
+
|
|
68
|
+
* [#2748](https://github.com/stripe/stripe-node/pull/2748) Update generated code
|
|
69
|
+
* Add support for `release_details` on `Reserve.Hold`
|
|
70
|
+
* ⚠️ Add support for new value `tax_fund` on enum `BalanceTransaction.type`
|
|
71
|
+
* Change `Billing.CreditGrant.priority` to be required
|
|
72
|
+
* Add support for `buyer_id` on `Charge.payment_method_details.bizum`, `ConfirmationToken.payment_method_preview.bizum`, `ConfirmationToken.payment_method_preview.blik`, `PaymentAttemptRecord.payment_method_details.bizum`, `PaymentMethod.bizum`, `PaymentMethod.blik`, and `PaymentRecord.payment_method_details.bizum`
|
|
73
|
+
* Add support for `transaction_link_id` on `Charge.payment_method_details.card`
|
|
74
|
+
* ⚠️ Add support for new value `sui` on enums `Charge.payment_method_details.crypto.network`, `PaymentAttemptRecord.payment_method_details.crypto.network`, and `PaymentRecord.payment_method_details.crypto.network`
|
|
75
|
+
* ⚠️ Add support for new value `usdsui` on enums `Charge.payment_method_details.crypto.token_currency`, `PaymentAttemptRecord.payment_method_details.crypto.token_currency`, and `PaymentRecord.payment_method_details.crypto.token_currency`
|
|
76
|
+
* Add support for `fingerprint` on `Charge.payment_method_details.pix`, `ConfirmationToken.payment_method_preview.pix`, `PaymentMethod.pix`, and `SetupAttempt.payment_method_details.pix`
|
|
77
|
+
* Add support for `sunbit` on `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_options`, and `PaymentIntentUpdateParams.payment_method_options`
|
|
78
|
+
* Add support for `billing_cycle_anchor_config` on `Checkout.SessionCreateParams.subscription_data`
|
|
79
|
+
* Add support for `wechat_pay` on `Checkout.Session.payment_method_options`
|
|
80
|
+
* Add support for `mastercard_compliance` on `Dispute.evidence.enhanced_evidence`, `Dispute.evidence_details.enhanced_eligibility`, and `DisputeUpdateParams.evidence.enhanced_evidence`
|
|
81
|
+
* ⚠️ Add support for new value `mastercard_compliance` on enum `Dispute.enhanced_eligibility_types`
|
|
82
|
+
* Add support for `status_details` on `FinancialConnections.Account`
|
|
83
|
+
* ⚠️ Add support for new value `validated` on enum `Identity.VerificationSession.redaction.status`
|
|
84
|
+
* Add support for new value `satispay` 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`
|
|
85
|
+
* ⚠️ Add support for new value `satispay` on enums `Invoice.payment_settings.payment_method_types` and `Subscription.payment_settings.payment_method_types`
|
|
86
|
+
* ⚠️ Remove support for `stored_credential_usage` on `PaymentAttemptRecord.payment_method_details.card` and `PaymentRecord.payment_method_details.card`
|
|
87
|
+
* ⚠️ Change `PaymentAttemptRecord.payment_method_details.card.description` and `PaymentRecord.payment_method_details.card.description` to be optional
|
|
88
|
+
* ⚠️ Change `PaymentAttemptRecord.payment_method_details.card.iin` and `PaymentRecord.payment_method_details.card.iin` to be optional
|
|
89
|
+
* ⚠️ Change `PaymentAttemptRecord.payment_method_details.card.issuer` and `PaymentRecord.payment_method_details.card.issuer` to be optional
|
|
90
|
+
* Add support for `setup_future_usage` on `PaymentIntent.payment_method_options.satispay`, `PaymentIntentConfirmParams.payment_method_options.satispay`, `PaymentIntentCreateParams.payment_method_options.satispay`, and `PaymentIntentUpdateParams.payment_method_options.satispay`
|
|
91
|
+
* Change `PaymentRecordReportRefundParams.refunded` to be optional
|
|
92
|
+
* Add support for `satispay` on `SetupAttempt.payment_method_details`
|
|
93
|
+
* Add support for `custom_fields`, `description`, and `footer` on `Subscription.invoice_settings`, `SubscriptionCreateParams.invoice_settings`, and `SubscriptionUpdateParams.invoice_settings`
|
|
94
|
+
* Add support for `payment_method_options` and `payment_method` on `TopupCreateParams`
|
|
95
|
+
* Add support for new value `2026-06-24.dahlia` on enum `WebhookEndpointCreateParams.api_version`
|
|
96
|
+
* Add support for `mode` on `V2.Commerce.ProductCatalogImport`
|
|
97
|
+
* ⚠️ Add support for new value `promotion` on enum `V2.Commerce.ProductCatalogImport.feed_type`
|
|
98
|
+
* Add support for `sunbit_payments` on `V2.Core.Account.configuration.merchant.capabilities`, `V2.Core.AccountCreateParams.configuration.merchant.capabilities`, and `V2.Core.AccountUpdateParams.configuration.merchant.capabilities`
|
|
99
|
+
* Add support for `crypto_money_manager` and `money_manager` on `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service`
|
|
100
|
+
* ⚠️ Remove support for `crypto_storer` and `storer` on `V2.Core.AccountUpdateParams.identity.attestations.terms_of_service`
|
|
101
|
+
* Add support for new value `promotion` on enum `V2.Commerce.ProductCatalogImportCreateParams.feed_type`
|
|
102
|
+
* ⚠️ Add support for new value `sunbit_payments` on enum `EventsV2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent.updated_capability`
|
|
103
|
+
* Add support for error codes `anomalous_money_movement_request`, `failed_tax_calculation`, `financial_account_balance_does_not_support_currency`, `financial_account_capability_not_enabled`, and `financial_account_capability_restricted` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, `StripeError`, and `Terminal.Reader.action.api_error`
|
|
104
|
+
* [#2765](https://github.com/stripe/stripe-node/pull/2765) fix: CJS companion namespace access for resource types at all depths
|
|
105
|
+
|
|
106
|
+
- Fixes TypeScript type access for nested namespaces in CJS mode (e.g. `Stripe.Price.Recurring`, `Stripe.Subscription.BillingMode`)
|
|
107
|
+
- Fixes TypeScript type access for nested resource types e.g. `Stripe.Billing.Alert.Status`, `Stripe.Terminal.Configuration.Tipping` in both ESM and CJS modes.
|
|
108
|
+
|
|
109
|
+
## 22.2.3 - 2026-06-22
|
|
110
|
+
* [#2761](https://github.com/stripe/stripe-node/pull/2761) Encode URI path params in `accounts.retrieve`
|
|
111
|
+
|
|
112
|
+
## 22.2.2 - 2026-06-18
|
|
113
|
+
* [#2725](https://github.com/stripe/stripe-node/pull/2725) Fixes CJS type exports for stripe package (reported in [#2683](https://github.com/stripe/stripe-node/issues/2683))
|
|
114
|
+
* [#2758](https://github.com/stripe/stripe-node/pull/2758) Fix `Stripe.ErrorType.StripeError` incorrectly being usable as a runtime class (reported in [#2661](https://github.com/stripe/stripe-node/issues/2661))
|
|
115
|
+
* [#2753](https://github.com/stripe/stripe-node/pull/2753) handle shadowed namespaces (reported in [#2691](https://github.com/stripe/stripe-node/issues/2691))
|
|
116
|
+
|
|
117
|
+
## 22.2.1 - 2026-06-12
|
|
118
|
+
* [#2750](https://github.com/stripe/stripe-node/pull/2750) URI Encode path params
|
|
119
|
+
* [#2747](https://github.com/stripe/stripe-node/pull/2747) Fix V2ListIterator: concurrency guard and empty page handling
|
|
120
|
+
* [#2740](https://github.com/stripe/stripe-node/pull/2740) Add "source" field to user-agent header
|
|
121
|
+
* [#2734](https://github.com/stripe/stripe-node/pull/2734) Fix parseHttpHeaderAsNumber to return undefined instead of NaN
|
|
122
|
+
|
|
123
|
+
## 22.2.0 - 2026-05-27
|
|
124
|
+
This release changes the pinned API version to 2026-05-27.dahlia.
|
|
125
|
+
|
|
126
|
+
* [#2710](https://github.com/stripe/stripe-node/pull/2710) Update generated code
|
|
127
|
+
* Add support for new resource `V2.Commerce.ProductCatalogImport`
|
|
128
|
+
* Add support for `create` and `retrieve` methods on resource `V2.Commerce.ProductCatalogImport`
|
|
129
|
+
* Add support for `bizum_payments` and `scalapay_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
130
|
+
* Add support for `automatic_transfer_rules_by_currency` on `BalanceSettingUpdateParams.payments.payouts` and `BalanceSettings.payments.payouts`
|
|
131
|
+
* Add support for `start_of_day` on `BalanceSettingUpdateParams.payments.settlement_timing` and `BalanceSettings.payments.settlement_timing`
|
|
132
|
+
* Add support for `description` on `ChargeCreateParams.transfer_data`, `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, and `PaymentIntentUpdateParams.transfer_data`
|
|
133
|
+
* Add support for `bizum` on `Charge.payment_method_details`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentAttemptRecord.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.payment_method_details`, `SetupIntent.payment_method_options`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentConfirmParams.payment_method_options`, `SetupIntentCreateParams.payment_method_data`, `SetupIntentCreateParams.payment_method_options`, `SetupIntentUpdateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_options`
|
|
134
|
+
* Add support for `scalapay` on `Charge.payment_method_details`, `Checkout.Session.payment_method_options`, `Checkout.SessionCreateParams.payment_method_options`, `ConfirmationToken.payment_method_preview`, `ConfirmationTokenCreateParams.testHelpers.payment_method_data`, `PaymentAttemptRecord.payment_method_details`, `PaymentIntent.payment_method_options`, `PaymentIntentConfirmParams.payment_method_data`, `PaymentIntentConfirmParams.payment_method_options`, `PaymentIntentCreateParams.payment_method_data`, `PaymentIntentCreateParams.payment_method_options`, `PaymentIntentUpdateParams.payment_method_data`, `PaymentIntentUpdateParams.payment_method_options`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord.payment_method_details`, `Refund.destination_details`, `SetupIntentConfirmParams.payment_method_data`, `SetupIntentCreateParams.payment_method_data`, and `SetupIntentUpdateParams.payment_method_data`
|
|
135
|
+
* Add support for `mandate` on `Charge.payment_method_details.twint`, `PaymentAttemptRecord.payment_method_details.twint`, and `PaymentRecord.payment_method_details.twint`
|
|
136
|
+
* Add support for new values `bizum` and `scalapay` 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`
|
|
137
|
+
* Change type of `Checkout.SessionCreateParams.payment_method_options.twint.setup_future_usage`, `PaymentIntentConfirmParams.payment_method_options.twint.setup_future_usage`, `PaymentIntentCreateParams.payment_method_options.twint.setup_future_usage`, and `PaymentIntentUpdateParams.payment_method_options.twint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
|
|
138
|
+
* Add support for new values `bizum` and `scalapay` on enum `Checkout.SessionCreateParams.payment_method_types`
|
|
139
|
+
* ⚠️ Change type of `Checkout.Session.payment_method_options.twint.setup_future_usage` and `PaymentIntent.payment_method_options.twint.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
|
|
140
|
+
* Add support for new values `bizum` and `scalapay` 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`
|
|
141
|
+
* ⚠️ Add support for new values `bizum` and `scalapay` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
|
142
|
+
* Add support for new values `bizum` and `scalapay` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
|
143
|
+
* Add support for `credited_items` on `InvoiceItem.proration_details`
|
|
144
|
+
* Add support for new value `twint` 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`
|
|
145
|
+
* Add support for `discountable` on `InvoiceCreatePreviewParams.schedule_details.phases[].add_invoice_items[]`, `SubscriptionCreateParams.add_invoice_items[]`, `SubscriptionSchedule.phases[].add_invoice_items[]`, `SubscriptionScheduleCreateParams.phases[].add_invoice_items[]`, `SubscriptionScheduleUpdateParams.phases[].add_invoice_items[]`, and `SubscriptionUpdateParams.add_invoice_items[]`
|
|
146
|
+
* Add support for `billing_schedules` on `InvoiceCreatePreviewParams.subscription_details`, `SubscriptionCreateParams`, `SubscriptionUpdateParams`, and `Subscription`
|
|
147
|
+
* Add support for new value `max_billed_until` on enums `InvoiceCreatePreviewParams.subscription_details.cancel_at`, `SubscriptionCreateParams.cancel_at`, and `SubscriptionUpdateParams.cancel_at`
|
|
148
|
+
* Add support for `amount_paid_off_stripe` on `Invoice`
|
|
149
|
+
* ⚠️ Add support for new value `twint` on enums `Invoice.payment_settings.payment_method_types` and `Subscription.payment_settings.payment_method_types`
|
|
150
|
+
* Add support for `twint` on `Mandate.payment_method_details` and `SetupAttempt.payment_method_details`
|
|
151
|
+
* Add support for `metadata` on `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, `PaymentIntentUpdateParams.transfer_data`, and `Subscription.pending_update`
|
|
152
|
+
* Add support for `payment_data` on `PaymentIntent.transfer_data`, `PaymentIntentCreateParams.transfer_data`, and `PaymentIntentUpdateParams.transfer_data`
|
|
153
|
+
* ⚠️ Add support for new values `bizum` and `scalapay` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types`
|
|
154
|
+
* Add support for `blik_authorize` on `PaymentIntent.next_action` and `SetupIntent.next_action`
|
|
155
|
+
* Add support for `payment_method_options` on `PaymentLinkCreateParams`, `PaymentLinkUpdateParams`, and `PaymentLink`
|
|
156
|
+
* Add support for new value `bizum` on enums `PaymentLinkCreateParams.payment_method_types` and `PaymentLinkUpdateParams.payment_method_types`
|
|
157
|
+
* ⚠️ Add support for new value `bizum` on enum `PaymentLink.payment_method_types`
|
|
158
|
+
* Add support for `active` on `PaymentMethodConfigurationListParams`
|
|
159
|
+
* Add support for `billed_until` on `SubscriptionItem`
|
|
160
|
+
* Add support for `discount` and `discounts` on `Subscription.pending_update`
|
|
161
|
+
* Add support for `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on `Terminal.ConfigurationCreateParams`, `Terminal.ConfigurationUpdateParams`, and `Terminal.Configuration`
|
|
162
|
+
* Add support for new values `simulated_verifone_m425`, `simulated_verifone_p630`, `simulated_verifone_ux700`, `simulated_verifone_v660p`, `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on enum `Terminal.ReaderListParams.device_type`
|
|
163
|
+
* Add support for `api_error` and `print_content` on `Terminal.Reader.action`
|
|
164
|
+
* ⚠️ Add support for new value `print_content` on enum `Terminal.Reader.action.type`
|
|
165
|
+
* ⚠️ Add support for new values `simulated_verifone_m425`, `simulated_verifone_p630`, `simulated_verifone_ux700`, `simulated_verifone_v660p`, `verifone_m425`, `verifone_p630`, `verifone_ux700`, and `verifone_v660p` on enum `Terminal.Reader.device_type`
|
|
166
|
+
* Add support for `customer` on `TestHelpers.TestClockCreateParams`
|
|
167
|
+
* Add support for new value `2026-05-27.dahlia` on enum `WebhookEndpointCreateParams.api_version`
|
|
168
|
+
* Add support for `signer` on `V2.Core.Account.identity.business_details.documents.proof_of_registration`, `V2.Core.Account.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`, `V2.Core.AccountCreateParams.identity.business_details.documents.proof_of_registration`, `V2.Core.AccountCreateParams.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`, `V2.Core.AccountTokenCreateParams.identity.business_details.documents.proof_of_registration`, `V2.Core.AccountTokenCreateParams.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`, `V2.Core.AccountUpdateParams.identity.business_details.documents.proof_of_registration`, and `V2.Core.AccountUpdateParams.identity.business_details.documents.proof_of_ultimate_beneficial_ownership`
|
|
169
|
+
* Add support for `azure_event_grid` on `V2.Core.EventDestinationCreateParams` and `V2.Core.EventDestination`
|
|
170
|
+
* ⚠️ Add support for new value `no_azure_partner_topic_exists` on enum `V2.Core.EventDestination.status_details.disabled.reason`
|
|
171
|
+
* ⚠️ Add support for new value `azure_event_grid` on enum `V2.Core.EventDestination.type`
|
|
172
|
+
* Add support for new value `azure_event_grid` on enum `V2.Core.EventDestinationCreateParams.type`
|
|
173
|
+
* ⚠️ Add support for new value `meter_event_value_too_many_digits` on enums `EventsV1BillingMeterErrorReportTriggeredEvent.reason.error_types[].code` and `EventsV1BillingMeterNoMeterFoundEvent.reason.error_types[].code`
|
|
174
|
+
* Add support for event notifications `V2CommerceProductCatalogImportsFailedEvent`, `V2CommerceProductCatalogImportsProcessingEvent`, `V2CommerceProductCatalogImportsSucceededEvent`, and `V2CommerceProductCatalogImportsSucceededWithErrorsEvent` with related object `V2.Commerce.ProductCatalogImport`
|
|
175
|
+
* Add support for error codes `payment_method_microdeposit_processing_error` and `siret_invalid` on `Invoice.last_finalization_error`, `PaymentIntent.last_payment_error`, `SetupAttempt.setup_error`, `SetupIntent.last_setup_error`, and `StripeError`
|
|
176
|
+
* [#2723](https://github.com/stripe/stripe-node/pull/2723) Emit warning when `stripe-notify` header is present in response
|
|
177
|
+
* [#2717](https://github.com/stripe/stripe-node/pull/2717) Add V2List and V2ListPromise types for v2 list endpoints
|
|
178
|
+
* Adds `V2List` and `V2ListPromise` types to represent API v2 list responses. These types include deprecated fields from the previously returned list shapes. These fields will be removed in the next major release.
|
|
179
|
+
* [#2715](https://github.com/stripe/stripe-node/pull/2715) Add WinterTC compatibility ESLint rule
|
|
180
|
+
* [#2711](https://github.com/stripe/stripe-node/pull/2711) Export manually maintained types for OAuthToken and OAuth param classes
|
|
181
|
+
```ts
|
|
182
|
+
// ❌ Before (v22.0.0-v22.1.1)
|
|
183
|
+
const oAuthToken: Stripe.OAuthToken = {};
|
|
184
|
+
|
|
185
|
+
// ✅ After (works on v22.1.2+)
|
|
186
|
+
const oAuthToken: Stripe.OAuthToken = {};
|
|
187
|
+
```
|
|
188
|
+
* [#2712](https://github.com/stripe/stripe-node/pull/2712) Exported types for nested param classes
|
|
189
|
+
* Types inside nested param class namespaces(e.g. `Stripe.V2.Core.AccountCreateParams.Configuration`, `Stripe.V2.Core.AccountCreateParams.Dashboard`) are now accessible.
|
|
190
|
+
|
|
191
|
+
## 22.1.1 - 2026-05-06
|
|
192
|
+
* [#2703](https://github.com/stripe/stripe-node/pull/2703) Export Decimal type from Stripe namespace
|
|
193
|
+
|
|
194
|
+
- Added `Stripe.Decimal` as a usable type in the `Stripe` namespace, enabling type annotations like `function takesDecimal(d: Stripe.Decimal)`.
|
|
195
|
+
* [#2704](https://github.com/stripe/stripe-node/pull/2704) Fix file upload regression: restore multipart request data processor
|
|
196
|
+
|
|
197
|
+
- Fixed file uploads failing with `StripeInvalidRequestError` on the `/v1/files` endpoint since v22.
|
|
198
|
+
|
|
199
|
+
## 22.1.0 - 2026-04-23
|
|
200
|
+
This release changes the pinned API version to 2026-04-22.dahlia.
|
|
201
|
+
|
|
202
|
+
* [#2639](https://github.com/stripe/stripe-node/pull/2639) Update generated code
|
|
203
|
+
* Add support for `app_distribution` and `sunbit_payments` on `Account.capabilities`, `AccountCreateParams.capabilities`, and `AccountUpdateParams.capabilities`
|
|
204
|
+
* Add support for `balance_report` and `payout_reconciliation_report` on `AccountSession.components` and `AccountSessionCreateParams.components`
|
|
205
|
+
* ⚠️ Add support for new values `fee_credit_funding`, `inbound_transfer_reversal`, and `inbound_transfer` on enum `BalanceTransaction.type`
|
|
206
|
+
* 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`
|
|
207
|
+
* ⚠️ 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`
|
|
208
|
+
* Add support for `location` and `reader` on `Charge.payment_method_details.klarna`, `PaymentAttemptRecord.payment_method_details.klarna`, and `PaymentRecord.payment_method_details.klarna`
|
|
209
|
+
* Add support for `mandate` on `Charge.payment_method_details.pix`, `PaymentAttemptRecord.payment_method_details.pix`, and `PaymentRecord.payment_method_details.pix`
|
|
210
|
+
* Add support for `managed_payments` on `Checkout.SessionCreateParams`, `Checkout.Session`, `PaymentIntent`, `PaymentLinkCreateParams`, `PaymentLink`, `SetupIntent`, and `Subscription`
|
|
211
|
+
* 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`
|
|
212
|
+
* 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`
|
|
213
|
+
* 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')`
|
|
214
|
+
* Add support for new value `sunbit` on enum `Checkout.SessionCreateParams.payment_method_types`
|
|
215
|
+
* ⚠️ 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`
|
|
216
|
+
* ⚠️ 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')`
|
|
217
|
+
* 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`
|
|
218
|
+
* ⚠️ Add support for new value `sunbit` on enums `ConfirmationToken.payment_method_preview.type` and `PaymentMethod.type`
|
|
219
|
+
* 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`
|
|
220
|
+
* Add support for new value `sunbit` on enums `CustomerListPaymentMethodsParams.type`, `PaymentMethodCreateParams.type`, and `PaymentMethodListParams.type`
|
|
221
|
+
* 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`
|
|
222
|
+
* 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`
|
|
223
|
+
* 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`
|
|
224
|
+
* ⚠️ Add support for new values `pix` and `upi` on enums `Invoice.payment_settings.payment_method_types` and `Subscription.payment_settings.payment_method_types`
|
|
225
|
+
* Add support for `card_presence` on `Issuing.Authorization`
|
|
226
|
+
* 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`
|
|
227
|
+
* ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.cancellation_reason`
|
|
228
|
+
* ⚠️ Add support for new value `fulfillment_error` on enum `Issuing.Card.replacement_reason`
|
|
229
|
+
* Add support for `amount` and `currency` on `Mandate.multi_use`
|
|
230
|
+
* Add support for `amount_to_confirm` on `PaymentIntentConfirmParams`
|
|
231
|
+
* ⚠️ Add support for new value `sunbit` on enums `PaymentIntent.excluded_payment_method_types` and `SetupIntent.excluded_payment_method_types`
|
|
232
|
+
* Add support for `klarna_display_qr_code` on `PaymentIntent.next_action`
|
|
233
|
+
* Add support for new value `sunbit` on enums `PaymentLinkCreateParams.payment_method_types` and `PaymentLinkUpdateParams.payment_method_types`
|
|
234
|
+
* ⚠️ Add support for new value `sunbit` on enum `PaymentLink.payment_method_types`
|
|
235
|
+
* ⚠️ Add support for new values `low`, `not_assessed`, and `unknown` on enum `Radar.PaymentEvaluation.signals.fraudulent_payment.risk_level`
|
|
236
|
+
* Add support for new value `account` on enum `Radar.ValueListCreateParams.item_type`
|
|
237
|
+
* ⚠️ Add support for new value `account` on enum `Radar.ValueList.item_type`
|
|
238
|
+
* Add support for `moto` on `SetupAttempt.payment_method_details.card`
|
|
239
|
+
* Add support for `pix_display_qr_code` on `SetupIntent.next_action`
|
|
240
|
+
* Add support for new value `2026-04-22.dahlia` on enum `WebhookEndpointCreateParams.api_version`
|
|
241
|
+
* 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`
|
|
242
|
+
* [#2688](https://github.com/stripe/stripe-node/pull/2688) Preserve stack traces for async operations
|
|
243
|
+
|
|
244
|
+
## 22.0.2 - 2026-04-16
|
|
245
|
+
* [#2685](https://github.com/stripe/stripe-node/pull/2685) Adds `parseEventNotificationAsync` to match existing sync function
|
|
246
|
+
* [#2681](https://github.com/stripe/stripe-node/pull/2681) Add emitEventBodies config to include bodies in request/response events
|
|
247
|
+
- Added `emitEventBodies` config option to include request and response bodies in `request`/`response` events.
|
|
248
|
+
- Changed `httpClient` config type from `HttpClient` class to `HttpClientInterface` interface.
|
|
249
|
+
* [#2670](https://github.com/stripe/stripe-node/pull/2670) tolerance, receivedAt, timestamp are now optional in Webhook.ts
|
|
250
|
+
* [#2677](https://github.com/stripe/stripe-node/pull/2677) Fixed named export for Bun
|
|
251
|
+
```ts
|
|
252
|
+
// ✅ Fixed
|
|
253
|
+
import { Stripe } from 'stripe';
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## 22.0.1 - 2026-04-08
|
|
257
|
+
* [#2669](https://github.com/stripe/stripe-node/pull/2669) Add constructor based initialization for CJS based TypeScript imports
|
|
258
|
+
* Initialization of Stripe class with `new` keyword is now possible for CJS based TypeScript project. Resolves: [2660](https://github.com/stripe/stripe-node/issues/2660)
|
|
259
|
+
```ts
|
|
260
|
+
import Stripe = require('stripe');
|
|
261
|
+
// ✅ Both statements work
|
|
262
|
+
const stripeNew: Stripe.Stripe = new Stripe('sk_test_...');
|
|
263
|
+
const stripeCalled: Stripe.Stripe = Stripe('sk_test_...');
|
|
264
|
+
```
|
|
265
|
+
* [#2664](https://github.com/stripe/stripe-node/pull/2664) Fixed nested service param exports in the Stripe namespace
|
|
266
|
+
* Resolves: [2658](https://github.com/stripe/stripe-node/issues/2658), [2662](https://github.com/stripe/stripe-node/issues/2662)
|
|
267
|
+
* [#2667](https://github.com/stripe/stripe-node/pull/2667) Add type safety to Stripe constructor config (no runtime change)
|
|
268
|
+
- Fixed some compile-time checks (no runtime changes)
|
|
269
|
+
- Fixed `Stripe` constructor config parameter to use `StripeConfig` type instead of `Record<string, unknown>`, restoring compile-time type safety.
|
|
270
|
+
- Added missing `authenticator` property to `StripeConfig`.
|
|
271
|
+
- Fixed `Stripe.API_VERSION` to retain the literal API version type.
|
|
272
|
+
- Fixed `StripeConfig.stripeContext` to accept `StripeContext` objects in addition to strings.
|
|
273
|
+
* [#2663](https://github.com/stripe/stripe-node/pull/2663) Throw a more descriptive error when calling `rawRequest` with absolute urls
|
|
274
|
+
* [#2652](https://github.com/stripe/stripe-node/pull/2652) Added `string[]` to `WebhookHeader` type for compatibility with express
|
|
275
|
+
* Added `string[]` to the type of `signature` param in `stripe.webhooks.construct_event` method.
|
|
276
|
+
|
|
3
277
|
## 22.0.0 - 2026-04-02
|
|
4
|
-
|
|
278
|
+
This release uses the same pinned API version to `2026-03-25.dahlia` as the last major release. The breaking changes in this release are prefixed with ⚠️ below. There's also a [detailed migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v22) to simplify your upgrade process.
|
|
279
|
+
|
|
280
|
+
* [#2619](https://github.com/stripe/stripe-node/pull/2619) Improved TypeScript support in the Node SDK
|
|
281
|
+
* Moved the types from the partially manually maintained and partially generated types folder to be inline with the implementation in TypeScript files.
|
|
282
|
+
* Removed top-level “stripe” ambient module. This allows import aliasing for the stripe package.
|
|
283
|
+
* ⚠️ `Stripe.StripeContext` is no longer exported as a type. Use `Stripe.StripeContextType` instead.
|
|
284
|
+
* ⚠️ `Stripe.errors.StripeError` is no longer a type. Use `typeof Stripe.errors.StripeError` or `Stripe.ErrorType` instead.
|
|
285
|
+
* ⚠️ CJS entry point no longer exports .default or .Stripe as separate properties.
|
|
286
|
+
* ⚠️ Stripe import is now a true ES6 class. Use `new Stripe()` to create a StripeClient instead of calling it:
|
|
287
|
+
```javascript
|
|
288
|
+
// Before
|
|
289
|
+
const stripeClient = Stripe("sk_test_...");
|
|
290
|
+
|
|
291
|
+
// After
|
|
292
|
+
const stripeClient = new Stripe("sk_test_...");
|
|
293
|
+
```
|
|
5
294
|
* [#2645](https://github.com/stripe/stripe-node/pull/2645) ⚠️ Remove `stripeMethod` and standardize how function args are handled (including removing callback support)
|
|
6
|
-
|
|
7
|
-
- ⚠️ Refactor how incoming method arguments are parsed. Type signatures for API methods should be _much_ more accurate and reliable now
|
|
8
|
-
- ⚠️ Remove support for providing callbacks to API methods. Use `async / await` instead
|
|
9
|
-
- ⚠️ Remove support for passing a plain API key as a function arg. If supplied on a per-request basis, it should be in the `RequestOptions` under the `apiKey` property
|
|
10
|
-
- ⚠️ Keys from `params` and `options` objects are no longer mixed. If present on a method, `RequestParams` must always come first and `RequestOptions` must always come second. To supply options without params, pass `undefined` as the first argument explicitly
|
|
11
|
-
- ⚠️ Removed methods from `StripeResource`: `createFullPath`, `createResourcePathWithSymbols`, `extend`, `method` and `_joinUrlParts`. These were mostly intended for internal use and we no longer need them
|
|
12
|
-
|
|
13
|
-
As a result, the following call patterns are no longer supported:
|
|
14
|
-
|
|
15
|
-
```ts
|
|
16
|
-
stripe.customers.retrieve('cus_123', 'sk_test_123')
|
|
17
|
-
stripe.customers.create({name: 'david', host: 'example.com'}, 'sk_test_123')
|
|
18
|
-
stripe.customers.create({apiKey: 'sk_test_123'})
|
|
19
|
-
stripe.customers.list(customers => {
|
|
20
|
-
// do something with customers
|
|
21
|
-
})
|
|
22
|
-
```
|
|
23
|
-
|
|
295
|
+
|
|
296
|
+
- ⚠️ Refactor how incoming method arguments are parsed. Type signatures for API methods should be _much_ more accurate and reliable now
|
|
297
|
+
- ⚠️ Remove support for providing callbacks to API methods. Use `async / await` instead
|
|
298
|
+
- ⚠️ Remove support for passing a plain API key as a function arg. If supplied on a per-request basis, it should be in the `RequestOptions` under the `apiKey` property
|
|
299
|
+
- ⚠️ Keys from `params` and `options` objects are no longer mixed. If present on a method, `RequestParams` must always come first and `RequestOptions` must always come second. To supply options without params, pass `undefined` as the first argument explicitly
|
|
300
|
+
- ⚠️ Removed methods from `StripeResource`: `createFullPath`, `createResourcePathWithSymbols`, `extend`, `method` and `_joinUrlParts`. These were mostly intended for internal use and we no longer need them
|
|
301
|
+
|
|
302
|
+
As a result, the following call patterns are no longer supported:
|
|
303
|
+
|
|
304
|
+
```ts
|
|
305
|
+
stripe.customers.retrieve('cus_123', 'sk_test_123')
|
|
306
|
+
stripe.customers.create({name: 'david', host: 'example.com'}, 'sk_test_123')
|
|
307
|
+
stripe.customers.create({apiKey: 'sk_test_123'})
|
|
308
|
+
stripe.customers.list(customers => {
|
|
309
|
+
// do something with customers
|
|
310
|
+
})
|
|
311
|
+
```
|
|
312
|
+
|
|
24
313
|
If those look familiar, head over to the [migration guide](https://github.com/stripe/stripe-node/wiki/Migration-guide-for-v22) to update your code.
|
|
25
|
-
* [#2643](https://github.com/stripe/stripe-node/pull/2643) ⚠️
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
email: 'customer@example.com',
|
|
47
|
-
});
|
|
314
|
+
* [#2643](https://github.com/stripe/stripe-node/pull/2643) ⚠️ Removed per-request host override. To use a custom host, set it in the client configuration. All requests from that client will use that host.
|
|
315
|
+
|
|
316
|
+
Before:
|
|
317
|
+
```ts
|
|
318
|
+
import Stripe from 'stripe';
|
|
319
|
+
const stripe = new Stripe('sk_test_...');
|
|
320
|
+
|
|
321
|
+
const customer = await stripe.customers.create({
|
|
322
|
+
email: 'customer@example.com',
|
|
323
|
+
}, {host: 'example.com'});
|
|
324
|
+
```
|
|
325
|
+
|
|
326
|
+
After:
|
|
327
|
+
```ts
|
|
328
|
+
import Stripe from 'stripe';
|
|
329
|
+
const stripe = new Stripe('sk_test_...', {host: 'example.com'});
|
|
330
|
+
|
|
331
|
+
// goes to example.com
|
|
332
|
+
const customer = await stripe.customers.create({
|
|
333
|
+
email: 'customer@example.com',
|
|
334
|
+
});
|
|
48
335
|
```
|
|
49
336
|
* [#2619](https://github.com/stripe/stripe-node/pull/2619) Improved TypeScript support in the Node SDK
|
|
50
337
|
* [#2638](https://github.com/stripe/stripe-node/pull/2638) Converted V2/Amount.ts to V2/V2Amount.ts
|
package/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v2349
|
package/README.md
CHANGED
|
@@ -13,8 +13,8 @@ npm install @depup/stripe
|
|
|
13
13
|
|
|
14
14
|
| Field | Value |
|
|
15
15
|
|-------|-------|
|
|
16
|
-
| Original | [stripe](https://www.npmjs.com/package/stripe) @ 22.
|
|
17
|
-
| Processed | 2026-
|
|
16
|
+
| Original | [stripe](https://www.npmjs.com/package/stripe) @ 22.4.0 |
|
|
17
|
+
| Processed | 2026-08-02 |
|
|
18
18
|
| Smoke test | passed |
|
|
19
19
|
| Deps updated | 0 |
|
|
20
20
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
22.
|
|
1
|
+
22.4.0
|
package/changes.json
CHANGED
package/cjs/Error.d.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { HttpClientResponseError } from './RequestSender.js';
|
|
2
2
|
import { RawErrorType, StripeRawError } from './Types.js';
|
|
3
|
+
import { PaymentIntent } from './resources/PaymentIntents.js';
|
|
4
|
+
import { PaymentMethod } from './resources/PaymentMethods.js';
|
|
5
|
+
import { SetupIntent } from './resources/SetupIntents.js';
|
|
6
|
+
import { CustomerSource } from './resources/CustomerSources.js';
|
|
3
7
|
export declare const generateV1Error: (rawStripeError: StripeRawError) => StripeError;
|
|
4
8
|
export declare const generateOAuthError: (rawStripeError: StripeRawError) => StripeError;
|
|
5
9
|
export declare const generateV2Error: (rawStripeError: StripeRawError) => StripeError;
|
|
@@ -17,18 +21,68 @@ export declare class StripeError extends Error {
|
|
|
17
21
|
[header: string]: string;
|
|
18
22
|
};
|
|
19
23
|
readonly requestId?: string;
|
|
20
|
-
readonly code?: string;
|
|
21
|
-
readonly doc_url?: string;
|
|
22
|
-
readonly param?: string;
|
|
23
24
|
readonly detail?: string | Error | HttpClientResponseError;
|
|
24
25
|
readonly statusCode?: number;
|
|
26
|
+
/**
|
|
27
|
+
* For card errors resulting from a card issuer decline, a short string indicating [how to proceed with an error](https://docs.stripe.com/declines#retrying-issuer-declines) if they provide one.
|
|
28
|
+
*/
|
|
29
|
+
readonly advice_code?: string;
|
|
30
|
+
/**
|
|
31
|
+
* For card errors, the ID of the failed charge.
|
|
32
|
+
*/
|
|
25
33
|
readonly charge?: string;
|
|
34
|
+
/**
|
|
35
|
+
* For some errors that could be handled programmatically, a short string indicating the [error code](https://docs.stripe.com/error-codes) reported.
|
|
36
|
+
*/
|
|
37
|
+
readonly code?: string;
|
|
38
|
+
/**
|
|
39
|
+
* For card errors resulting from a card issuer decline, a short string indicating the [card issuer's reason for the decline](https://docs.stripe.com/declines#issuer-declines) if they provide one.
|
|
40
|
+
*/
|
|
26
41
|
readonly decline_code?: string;
|
|
42
|
+
/**
|
|
43
|
+
* A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
|
|
44
|
+
*/
|
|
45
|
+
readonly doc_url?: string;
|
|
46
|
+
/**
|
|
47
|
+
* For card errors resulting from a card issuer decline, a 2 digit code which indicates the advice given to merchant by the card network on how to proceed with an error.
|
|
48
|
+
*/
|
|
49
|
+
readonly network_advice_code?: string;
|
|
50
|
+
/**
|
|
51
|
+
* For payments declined by the network, an alphanumeric code which indicates the reason the payment failed.
|
|
52
|
+
*/
|
|
53
|
+
readonly network_decline_code?: string;
|
|
54
|
+
/**
|
|
55
|
+
* If the error is parameter-specific, the parameter related to the error. For example, you can use this to display a message near the correct form field.
|
|
56
|
+
*/
|
|
57
|
+
readonly param?: string;
|
|
58
|
+
/**
|
|
59
|
+
* The PaymentIntent object for errors returned on a request involving a PaymentIntent.
|
|
60
|
+
*/
|
|
61
|
+
readonly payment_intent?: PaymentIntent;
|
|
62
|
+
/**
|
|
63
|
+
* The PaymentMethod object for errors returned on a request involving a PaymentMethod.
|
|
64
|
+
*/
|
|
65
|
+
readonly payment_method?: PaymentMethod;
|
|
66
|
+
/**
|
|
67
|
+
* If the error is specific to the type of payment method, the payment method type that had a problem. This field is only populated for invoice-related errors.
|
|
68
|
+
*/
|
|
27
69
|
readonly payment_method_type?: string;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
readonly
|
|
70
|
+
/**
|
|
71
|
+
* A URL to the request log entry in your dashboard.
|
|
72
|
+
*/
|
|
73
|
+
readonly request_log_url?: string;
|
|
74
|
+
/**
|
|
75
|
+
* The SetupIntent object for errors returned on a request involving a SetupIntent.
|
|
76
|
+
*/
|
|
77
|
+
readonly setup_intent?: SetupIntent;
|
|
78
|
+
/**
|
|
79
|
+
* The CustomerSource object for errors returned on a request involving a CustomerSource.
|
|
80
|
+
*/
|
|
81
|
+
readonly source?: CustomerSource;
|
|
82
|
+
/**
|
|
83
|
+
* The user message associated with the error.
|
|
84
|
+
*/
|
|
85
|
+
readonly user_message?: string;
|
|
32
86
|
constructor(raw?: StripeRawError, type?: string | null);
|
|
33
87
|
/**
|
|
34
88
|
* Helper factory which takes raw stripe errors and outputs wrapping instances
|
package/cjs/Error.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
/* eslint-disable no-warning-comments */
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.TemporarySessionExpiredError = exports.RateLimitError = 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
|
+
// errorImports: The end of the section generated from our OpenAPI spec
|
|
6
7
|
const generateV1Error = (rawStripeError) => {
|
|
7
8
|
const statusCode = rawStripeError.statusCode;
|
|
8
9
|
if (statusCode === 429 ||
|
|
@@ -72,27 +73,35 @@ exports.generateV2Error = generateV2Error;
|
|
|
72
73
|
* Specifically for errors returned from Stripe's REST API.
|
|
73
74
|
*/
|
|
74
75
|
class StripeError extends Error {
|
|
76
|
+
// errorProperties: The end of the section generated from our OpenAPI spec
|
|
75
77
|
constructor(raw = {}, type = null) {
|
|
76
78
|
super(raw.message);
|
|
77
79
|
this.type = type || this.constructor.name;
|
|
78
80
|
this.raw = raw;
|
|
79
81
|
this.rawType = raw.type;
|
|
80
|
-
this.code = raw.code;
|
|
81
|
-
this.doc_url = raw.doc_url;
|
|
82
|
-
this.param = raw.param;
|
|
83
82
|
this.detail = raw.detail;
|
|
84
83
|
this.headers = raw.headers;
|
|
85
84
|
this.requestId = raw.requestId;
|
|
86
85
|
this.statusCode = raw.statusCode;
|
|
87
86
|
this.message = raw.message ?? '';
|
|
88
87
|
this.userMessage = raw.user_message;
|
|
88
|
+
// errorAssignments: The beginning of the section generated from our OpenAPI spec
|
|
89
|
+
this.advice_code = raw.advice_code;
|
|
89
90
|
this.charge = raw.charge;
|
|
91
|
+
this.code = raw.code;
|
|
90
92
|
this.decline_code = raw.decline_code;
|
|
93
|
+
this.doc_url = raw.doc_url;
|
|
94
|
+
this.network_advice_code = raw.network_advice_code;
|
|
95
|
+
this.network_decline_code = raw.network_decline_code;
|
|
96
|
+
this.param = raw.param;
|
|
91
97
|
this.payment_intent = raw.payment_intent;
|
|
92
98
|
this.payment_method = raw.payment_method;
|
|
93
99
|
this.payment_method_type = raw.payment_method_type;
|
|
100
|
+
this.request_log_url = raw.request_log_url;
|
|
94
101
|
this.setup_intent = raw.setup_intent;
|
|
95
102
|
this.source = raw.source;
|
|
103
|
+
this.user_message = raw.user_message;
|
|
104
|
+
// errorAssignments: The end of the section generated from our OpenAPI spec
|
|
96
105
|
}
|
|
97
106
|
}
|
|
98
107
|
exports.StripeError = StripeError;
|
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;;;
|
|
1
|
+
{"version":3,"file":"Error.js","sourceRoot":"","sources":["../src/Error.ts"],"names":[],"mappings":"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"}
|