stripe 22.7.0-beta.1 → 23.0.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 +1566 -3386
- package/OPENAPI_VERSION +1 -1
- package/README.md +73 -43
- package/VERSION +1 -1
- package/cjs/Error.d.ts +1 -51
- package/cjs/Error.js +2 -125
- package/cjs/Error.js.map +1 -1
- package/cjs/RequestSender.js +35 -13
- package/cjs/RequestSender.js.map +1 -1
- package/cjs/StripeEventNotificationHandler.js +217 -80
- package/cjs/StripeEventNotificationHandler.js.map +1 -1
- package/cjs/StripeResource.js +7 -7
- package/cjs/StripeResource.js.map +1 -1
- package/cjs/Types.d.ts +3 -5
- package/cjs/Types.js.map +1 -1
- package/cjs/Webhooks.js +14 -17
- package/cjs/Webhooks.js.map +1 -1
- package/cjs/apiVersion.d.ts +2 -2
- package/cjs/apiVersion.js +2 -2
- package/cjs/apiVersion.js.map +1 -1
- package/cjs/lib.d.ts +0 -21
- package/cjs/multipart.js +18 -11
- package/cjs/multipart.js.map +1 -1
- package/cjs/net/NodeHttpClient.d.ts +4 -1
- package/cjs/net/NodeHttpClient.js +13 -42
- package/cjs/net/NodeHttpClient.js.map +1 -1
- package/cjs/platform/ExtensibilityPlatformFunctions.d.ts +1 -1
- package/cjs/platform/ExtensibilityPlatformFunctions.js +1 -1
- package/cjs/platform/NodePlatformFunctions.d.ts +0 -2
- package/cjs/platform/NodePlatformFunctions.js +0 -8
- package/cjs/platform/NodePlatformFunctions.js.map +1 -1
- package/cjs/platform/PlatformFunctions.d.ts +3 -1
- package/cjs/platform/PlatformFunctions.js +7 -6
- package/cjs/platform/PlatformFunctions.js.map +1 -1
- package/cjs/resources/AccountLinks.d.ts +1 -1
- package/cjs/resources/AccountSessions.d.ts +1 -245
- package/cjs/resources/AccountSessions.js +1 -1
- package/cjs/resources/AccountSessions.js.map +1 -1
- package/cjs/resources/Accounts.d.ts +94 -655
- package/cjs/resources/Accounts.js +0 -14
- package/cjs/resources/Accounts.js.map +1 -1
- package/cjs/resources/Apps/Installs.d.ts +204 -0
- package/cjs/resources/Apps/Installs.js +41 -0
- package/cjs/resources/Apps/Installs.js.map +1 -0
- package/cjs/resources/Apps/index.d.ts +14 -5
- package/cjs/resources/Apps/index.js +2 -0
- package/cjs/resources/Apps/index.js.map +1 -1
- package/cjs/resources/Balance.d.ts +1 -68
- package/cjs/resources/BalanceTransactions.d.ts +3 -3
- package/cjs/resources/BankAccounts.d.ts +2 -2
- package/cjs/resources/Billing/AlertTriggereds.d.ts +1 -2
- package/cjs/resources/Billing/FeedbackOptions.d.ts +8 -2
- package/cjs/resources/Billing/FeedbackOptions.js +2 -2
- package/cjs/resources/Billing/index.d.ts +0 -3
- package/cjs/resources/Billing/index.js +0 -2
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/Capabilities.d.ts +2 -2
- package/cjs/resources/Cards.d.ts +0 -17
- package/cjs/resources/Charges.d.ts +84 -3083
- package/cjs/resources/Charges.js +2 -8
- package/cjs/resources/Charges.js.map +1 -1
- package/cjs/resources/Checkout/Sessions.d.ts +66 -384
- package/cjs/resources/ConfirmationTokens.d.ts +3 -63
- package/cjs/resources/Coupons.d.ts +0 -53
- package/cjs/resources/Coupons.js +0 -13
- package/cjs/resources/Coupons.js.map +1 -1
- package/cjs/resources/CreditNoteLineItems.d.ts +1 -15
- package/cjs/resources/CreditNotes.d.ts +1 -1
- package/cjs/resources/CustomerSessions.d.ts +0 -68
- package/cjs/resources/Customers.d.ts +4 -23
- package/cjs/resources/Customers.js +0 -14
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/Discounts.d.ts +9 -2
- package/cjs/resources/Disputes.d.ts +0 -29
- package/cjs/resources/Events.d.ts +49 -554
- package/cjs/resources/ExternalAccounts.d.ts +1 -212
- package/cjs/resources/ExternalAccounts.js +0 -44
- package/cjs/resources/ExternalAccounts.js.map +1 -1
- package/cjs/resources/Files.d.ts +2 -2
- package/cjs/resources/FinancialConnections/Accounts.d.ts +6 -71
- package/cjs/resources/FinancialConnections/Accounts.js +1 -9
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +1 -46
- package/cjs/resources/FinancialConnections/Authorizations.js +0 -11
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/cjs/resources/FinancialConnections/Sessions.d.ts +11 -130
- package/cjs/resources/FinancialConnections/index.d.ts +9 -21
- package/cjs/resources/FinancialConnections/index.js +0 -4
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/InvoiceItems.d.ts +16 -84
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +2 -40
- package/cjs/resources/InvoicePayments.d.ts +1 -1
- package/cjs/resources/Invoices.d.ts +161 -1275
- package/cjs/resources/Invoices.js +2 -42
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +0 -13
- package/cjs/resources/Issuing/Cardholders.d.ts +7 -25
- package/cjs/resources/Issuing/Cards.d.ts +0 -13
- package/cjs/resources/Issuing/Disputes.d.ts +0 -13
- package/cjs/resources/Issuing/Tokens.d.ts +3 -3
- package/cjs/resources/Issuing/Transactions.d.ts +0 -22
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +22 -47
- package/cjs/resources/Issuing/index.js +0 -6
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +3 -30
- package/cjs/resources/Mandates.d.ts +25 -33
- package/cjs/resources/Mandates.js +0 -8
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/PaymentAttemptRecords.d.ts +30 -82
- package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +2 -2
- package/cjs/resources/PaymentIntents.d.ts +7153 -17732
- package/cjs/resources/PaymentIntents.js +1 -28
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +13 -13
- package/cjs/resources/PaymentMethodConfigurations.d.ts +14 -224
- package/cjs/resources/PaymentMethods.d.ts +10 -171
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentRecords.d.ts +54 -86
- package/cjs/resources/Payouts.d.ts +1 -1
- package/cjs/resources/Persons.d.ts +6 -6
- package/cjs/resources/Plans.d.ts +1 -1
- package/cjs/resources/Prices.d.ts +0 -36
- package/cjs/resources/ProductCatalog/TrialOffers.d.ts +37 -8
- package/cjs/resources/ProductCatalog/TrialOffers.js +6 -0
- package/cjs/resources/ProductCatalog/TrialOffers.js.map +1 -1
- package/cjs/resources/ProductCatalog/index.d.ts +1 -0
- package/cjs/resources/Products.d.ts +3 -3
- package/cjs/resources/PromotionCodes.d.ts +0 -12
- package/cjs/resources/PromotionCodes.js +0 -27
- package/cjs/resources/PromotionCodes.js.map +1 -1
- package/cjs/resources/Quotes.d.ts +153 -2362
- package/cjs/resources/Quotes.js +13 -1181
- package/cjs/resources/Quotes.js.map +1 -1
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +50 -8
- package/cjs/resources/Radar/ValueListItems.d.ts +1 -31
- package/cjs/resources/Refunds.d.ts +0 -11
- package/cjs/resources/Reserve/Holds.d.ts +6 -53
- package/cjs/resources/Reserve/Holds.js +0 -19
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +10 -18
- package/cjs/resources/Reserve/Plans.js +0 -11
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +7 -42
- package/cjs/resources/Reserve/Releases.js +0 -19
- package/cjs/resources/Reserve/Releases.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +6 -17
- package/cjs/resources/Reserve/index.js +0 -9
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/SetupAttempts.d.ts +12 -30
- package/cjs/resources/SetupIntents.d.ts +116 -330
- package/cjs/resources/Sigma/ScheduledQueryRuns.d.ts +1 -1
- package/cjs/resources/Sigma/ScheduledQueryRuns.js +1 -1
- package/cjs/resources/Sources.d.ts +1 -29
- package/cjs/resources/SubscriptionItems.d.ts +6 -120
- package/cjs/resources/SubscriptionSchedules.d.ts +443 -1149
- package/cjs/resources/SubscriptionSchedules.js +0 -6
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +136 -409
- package/cjs/resources/Subscriptions.js +0 -42
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/CalculationLineItems.d.ts +2 -2
- package/cjs/resources/Tax/Calculations.d.ts +2 -2
- package/cjs/resources/Tax/Locations.d.ts +3 -3
- package/cjs/resources/Tax/Locations.js +2 -2
- package/cjs/resources/Tax/Registrations.d.ts +10 -625
- package/cjs/resources/Tax/Settings.d.ts +2 -2
- package/cjs/resources/Tax/Settings.js +1 -1
- package/cjs/resources/Tax/Transactions.d.ts +1 -1
- package/cjs/resources/Tax/index.d.ts +17 -24
- package/cjs/resources/Tax/index.js +0 -2
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/TaxCodes.d.ts +3 -3
- package/cjs/resources/TaxRates.d.ts +3 -3
- package/cjs/resources/Terminal/Configurations.d.ts +4 -31
- package/cjs/resources/Terminal/Readers.d.ts +6 -22
- package/cjs/resources/Terminal/index.d.ts +0 -5
- package/cjs/resources/Terminal/index.js +0 -2
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +6 -71
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +1 -23
- package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
- package/cjs/resources/TestHelpers/index.d.ts +0 -3
- package/cjs/resources/TestHelpers/index.js +4 -6
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/ThreeDSecure/Authentications.d.ts +860 -0
- package/cjs/resources/ThreeDSecure/Authentications.js +44 -0
- package/cjs/resources/ThreeDSecure/Authentications.js.map +1 -0
- package/cjs/resources/ThreeDSecure/index.d.ts +16 -0
- package/cjs/resources/ThreeDSecure/index.js +13 -0
- package/cjs/resources/ThreeDSecure/index.js.map +1 -0
- package/cjs/resources/Tokens.d.ts +13 -28
- package/cjs/resources/Topups.d.ts +1 -1
- package/cjs/resources/Transfers.d.ts +0 -8
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +0 -5
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +2 -35
- package/cjs/resources/Treasury/InboundTransfers.d.ts +1 -1
- package/cjs/resources/Treasury/OutboundPayments.d.ts +0 -8
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +0 -44
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +7 -29
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +5 -31
- package/cjs/resources/Treasury/TransactionEntries.d.ts +7 -7
- package/cjs/resources/Treasury/Transactions.d.ts +7 -7
- package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +4 -2
- package/cjs/resources/V2/Billing/index.d.ts +6 -45
- package/cjs/resources/V2/Billing/index.js +0 -8
- package/cjs/resources/V2/Billing/index.js.map +1 -1
- package/cjs/resources/V2/Core/AccountLinks.d.ts +4 -22
- package/cjs/resources/V2/Core/AccountPersons.d.ts +16 -5
- package/cjs/resources/V2/Core/AccountTokens.d.ts +241 -32
- package/cjs/resources/V2/Core/AccountTokens.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +112 -9
- package/cjs/resources/V2/Core/Accounts/Persons.d.ts +128 -14
- package/cjs/resources/V2/Core/Accounts/Persons.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts.d.ts +767 -1719
- package/cjs/resources/V2/Core/Accounts.js.map +1 -1
- package/cjs/resources/V2/Core/EventDestinations.d.ts +61 -54
- package/cjs/resources/V2/Core/Events.d.ts +2871 -1063
- package/cjs/resources/V2/Core/index.d.ts +9 -27
- package/cjs/resources/V2/Core/index.js +0 -6
- package/cjs/resources/V2/Core/index.js.map +1 -1
- package/cjs/resources/V2/index.d.ts +0 -30
- package/cjs/resources/V2/index.js +0 -16
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/resources/WebhookEndpoints.d.ts +4 -4
- package/cjs/resources.d.ts +1 -9
- package/cjs/resources.js +17 -149
- package/cjs/resources.js.map +1 -1
- package/cjs/shared.d.ts +5 -2
- package/cjs/stripe.cjs.node.d.ts +1173 -6585
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.core.d.ts +34 -118
- package/cjs/stripe.core.js +73 -70
- package/cjs/stripe.core.js.map +1 -1
- package/cjs/utils.d.ts +18 -0
- package/cjs/utils.js +27 -1
- package/cjs/utils.js.map +1 -1
- package/esm/Error.d.ts +1 -51
- package/esm/Error.js +1 -109
- package/esm/Error.js.map +1 -1
- package/esm/RequestSender.js +36 -14
- package/esm/RequestSender.js.map +1 -1
- package/esm/StripeEventNotificationHandler.js +217 -80
- package/esm/StripeEventNotificationHandler.js.map +1 -1
- package/esm/StripeResource.js +7 -7
- package/esm/StripeResource.js.map +1 -1
- package/esm/Types.d.ts +3 -5
- package/esm/Types.js.map +1 -1
- package/esm/Webhooks.js +14 -17
- package/esm/Webhooks.js.map +1 -1
- package/esm/apiVersion.d.ts +2 -2
- package/esm/apiVersion.js +2 -2
- package/esm/apiVersion.js.map +1 -1
- package/esm/lib.d.ts +0 -21
- package/esm/multipart.js +18 -11
- package/esm/multipart.js.map +1 -1
- package/esm/net/NodeHttpClient.d.ts +4 -1
- package/esm/net/NodeHttpClient.js +13 -42
- package/esm/net/NodeHttpClient.js.map +1 -1
- package/esm/platform/ExtensibilityPlatformFunctions.d.ts +1 -1
- package/esm/platform/ExtensibilityPlatformFunctions.js +1 -1
- package/esm/platform/NodePlatformFunctions.d.ts +0 -2
- package/esm/platform/NodePlatformFunctions.js +0 -8
- package/esm/platform/NodePlatformFunctions.js.map +1 -1
- package/esm/platform/PlatformFunctions.d.ts +3 -1
- package/esm/platform/PlatformFunctions.js +7 -6
- package/esm/platform/PlatformFunctions.js.map +1 -1
- package/esm/resources/AccountLinks.d.ts +1 -1
- package/esm/resources/AccountSessions.d.ts +1 -245
- package/esm/resources/AccountSessions.js +1 -1
- package/esm/resources/AccountSessions.js.map +1 -1
- package/esm/resources/Accounts.d.ts +94 -655
- package/esm/resources/Accounts.js +0 -14
- package/esm/resources/Accounts.js.map +1 -1
- package/esm/resources/Apps/Installs.d.ts +204 -0
- package/esm/resources/Apps/Installs.js +37 -0
- package/esm/resources/Apps/Installs.js.map +1 -0
- package/esm/resources/Apps/index.d.ts +14 -5
- package/esm/resources/Apps/index.js +2 -0
- package/esm/resources/Apps/index.js.map +1 -1
- package/esm/resources/Balance.d.ts +1 -68
- package/esm/resources/BalanceTransactions.d.ts +3 -3
- package/esm/resources/BankAccounts.d.ts +2 -2
- package/esm/resources/Billing/AlertTriggereds.d.ts +1 -2
- package/esm/resources/Billing/FeedbackOptions.d.ts +8 -2
- package/esm/resources/Billing/FeedbackOptions.js +2 -2
- package/esm/resources/Billing/index.d.ts +0 -3
- package/esm/resources/Billing/index.js +0 -2
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/Capabilities.d.ts +2 -2
- package/esm/resources/Cards.d.ts +0 -17
- package/esm/resources/Charges.d.ts +84 -3083
- package/esm/resources/Charges.js +2 -8
- package/esm/resources/Charges.js.map +1 -1
- package/esm/resources/Checkout/Sessions.d.ts +66 -384
- package/esm/resources/ConfirmationTokens.d.ts +3 -63
- package/esm/resources/Coupons.d.ts +0 -53
- package/esm/resources/Coupons.js +0 -13
- package/esm/resources/Coupons.js.map +1 -1
- package/esm/resources/CreditNoteLineItems.d.ts +1 -15
- package/esm/resources/CreditNotes.d.ts +1 -1
- package/esm/resources/CustomerSessions.d.ts +0 -68
- package/esm/resources/Customers.d.ts +4 -23
- package/esm/resources/Customers.js +0 -14
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/Discounts.d.ts +9 -2
- package/esm/resources/Disputes.d.ts +0 -29
- package/esm/resources/Events.d.ts +49 -554
- package/esm/resources/ExternalAccounts.d.ts +1 -212
- package/esm/resources/ExternalAccounts.js +1 -42
- package/esm/resources/ExternalAccounts.js.map +1 -1
- package/esm/resources/Files.d.ts +2 -2
- package/esm/resources/FinancialConnections/Accounts.d.ts +6 -71
- package/esm/resources/FinancialConnections/Accounts.js +1 -9
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +1 -46
- package/esm/resources/FinancialConnections/Authorizations.js +1 -9
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/esm/resources/FinancialConnections/Sessions.d.ts +11 -130
- package/esm/resources/FinancialConnections/index.d.ts +9 -21
- package/esm/resources/FinancialConnections/index.js +0 -4
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/InvoiceItems.d.ts +16 -84
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +2 -40
- package/esm/resources/InvoicePayments.d.ts +1 -1
- package/esm/resources/Invoices.d.ts +161 -1275
- package/esm/resources/Invoices.js +2 -42
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +0 -13
- package/esm/resources/Issuing/Cardholders.d.ts +7 -25
- package/esm/resources/Issuing/Cards.d.ts +0 -13
- package/esm/resources/Issuing/Disputes.d.ts +0 -13
- package/esm/resources/Issuing/Tokens.d.ts +3 -3
- package/esm/resources/Issuing/Transactions.d.ts +0 -22
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +22 -47
- package/esm/resources/Issuing/index.js +0 -6
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +3 -30
- package/esm/resources/Mandates.d.ts +25 -33
- package/esm/resources/Mandates.js +0 -8
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/PaymentAttemptRecords.d.ts +30 -82
- package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +2 -2
- package/esm/resources/PaymentIntents.d.ts +7153 -17732
- package/esm/resources/PaymentIntents.js +1 -28
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +13 -13
- package/esm/resources/PaymentMethodConfigurations.d.ts +14 -224
- package/esm/resources/PaymentMethods.d.ts +10 -171
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentRecords.d.ts +54 -86
- package/esm/resources/Payouts.d.ts +1 -1
- package/esm/resources/Persons.d.ts +6 -6
- package/esm/resources/Plans.d.ts +1 -1
- package/esm/resources/Prices.d.ts +0 -36
- package/esm/resources/ProductCatalog/TrialOffers.d.ts +37 -8
- package/esm/resources/ProductCatalog/TrialOffers.js +6 -0
- package/esm/resources/ProductCatalog/TrialOffers.js.map +1 -1
- package/esm/resources/ProductCatalog/index.d.ts +1 -0
- package/esm/resources/Products.d.ts +3 -3
- package/esm/resources/PromotionCodes.d.ts +0 -12
- package/esm/resources/PromotionCodes.js +0 -27
- package/esm/resources/PromotionCodes.js.map +1 -1
- package/esm/resources/Quotes.d.ts +153 -2362
- package/esm/resources/Quotes.js +13 -1181
- package/esm/resources/Quotes.js.map +1 -1
- package/esm/resources/Radar/PaymentEvaluations.d.ts +50 -8
- package/esm/resources/Radar/ValueListItems.d.ts +1 -31
- package/esm/resources/Refunds.d.ts +0 -11
- package/esm/resources/Reserve/Holds.d.ts +6 -53
- package/esm/resources/Reserve/Holds.js +1 -17
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +10 -18
- package/esm/resources/Reserve/Plans.js +1 -9
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +7 -42
- package/esm/resources/Reserve/Releases.js +1 -17
- package/esm/resources/Reserve/Releases.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +6 -17
- package/esm/resources/Reserve/index.js +0 -9
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/SetupAttempts.d.ts +12 -30
- package/esm/resources/SetupIntents.d.ts +116 -330
- package/esm/resources/Sigma/ScheduledQueryRuns.d.ts +1 -1
- package/esm/resources/Sigma/ScheduledQueryRuns.js +1 -1
- package/esm/resources/Sources.d.ts +1 -29
- package/esm/resources/SubscriptionItems.d.ts +6 -120
- package/esm/resources/SubscriptionSchedules.d.ts +443 -1149
- package/esm/resources/SubscriptionSchedules.js +0 -6
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +136 -409
- package/esm/resources/Subscriptions.js +0 -42
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/CalculationLineItems.d.ts +2 -2
- package/esm/resources/Tax/Calculations.d.ts +2 -2
- package/esm/resources/Tax/Locations.d.ts +3 -3
- package/esm/resources/Tax/Locations.js +2 -2
- package/esm/resources/Tax/Registrations.d.ts +10 -625
- package/esm/resources/Tax/Settings.d.ts +2 -2
- package/esm/resources/Tax/Settings.js +1 -1
- package/esm/resources/Tax/Transactions.d.ts +1 -1
- package/esm/resources/Tax/index.d.ts +17 -24
- package/esm/resources/Tax/index.js +0 -2
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/TaxCodes.d.ts +3 -3
- package/esm/resources/TaxRates.d.ts +3 -3
- package/esm/resources/Terminal/Configurations.d.ts +4 -31
- package/esm/resources/Terminal/Readers.d.ts +6 -22
- package/esm/resources/Terminal/index.d.ts +0 -5
- package/esm/resources/Terminal/index.js +0 -2
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +6 -71
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +1 -23
- package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +0 -22
- package/esm/resources/TestHelpers/index.d.ts +0 -3
- package/esm/resources/TestHelpers/index.js +0 -2
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/ThreeDSecure/Authentications.d.ts +860 -0
- package/esm/resources/ThreeDSecure/Authentications.js +40 -0
- package/esm/resources/ThreeDSecure/Authentications.js.map +1 -0
- package/esm/resources/ThreeDSecure/index.d.ts +16 -0
- package/esm/resources/ThreeDSecure/index.js +9 -0
- package/esm/resources/ThreeDSecure/index.js.map +1 -0
- package/esm/resources/Tokens.d.ts +13 -28
- package/esm/resources/Topups.d.ts +1 -1
- package/esm/resources/Transfers.d.ts +0 -8
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +0 -5
- package/esm/resources/Treasury/FinancialAccounts.d.ts +2 -35
- package/esm/resources/Treasury/InboundTransfers.d.ts +1 -1
- package/esm/resources/Treasury/OutboundPayments.d.ts +0 -8
- package/esm/resources/Treasury/OutboundTransfers.d.ts +0 -44
- package/esm/resources/Treasury/ReceivedCredits.d.ts +7 -29
- package/esm/resources/Treasury/ReceivedDebits.d.ts +5 -31
- package/esm/resources/Treasury/TransactionEntries.d.ts +7 -7
- package/esm/resources/Treasury/Transactions.d.ts +7 -7
- package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +4 -2
- package/esm/resources/V2/Billing/index.d.ts +6 -45
- package/esm/resources/V2/Billing/index.js +0 -8
- package/esm/resources/V2/Billing/index.js.map +1 -1
- package/esm/resources/V2/Core/AccountLinks.d.ts +4 -22
- package/esm/resources/V2/Core/AccountPersons.d.ts +16 -5
- package/esm/resources/V2/Core/AccountTokens.d.ts +241 -32
- package/esm/resources/V2/Core/AccountTokens.js.map +1 -1
- package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +112 -9
- package/esm/resources/V2/Core/Accounts/Persons.d.ts +128 -14
- package/esm/resources/V2/Core/Accounts/Persons.js.map +1 -1
- package/esm/resources/V2/Core/Accounts.d.ts +767 -1719
- package/esm/resources/V2/Core/Accounts.js.map +1 -1
- package/esm/resources/V2/Core/EventDestinations.d.ts +61 -54
- package/esm/resources/V2/Core/Events.d.ts +2871 -1063
- package/esm/resources/V2/Core/index.d.ts +9 -27
- package/esm/resources/V2/Core/index.js +0 -6
- package/esm/resources/V2/Core/index.js.map +1 -1
- package/esm/resources/V2/index.d.ts +0 -30
- package/esm/resources/V2/index.js +0 -16
- package/esm/resources/V2/index.js.map +1 -1
- package/esm/resources/WebhookEndpoints.d.ts +4 -4
- package/esm/resources.d.ts +1 -9
- package/esm/resources.js +9 -136
- package/esm/resources.js.map +1 -1
- package/esm/shared.d.ts +5 -2
- package/esm/stripe.core.d.ts +34 -118
- package/esm/stripe.core.js +41 -38
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +34 -116
- package/esm/stripe.esm.node.js +42 -37
- package/esm/stripe.esm.node.js.map +1 -1
- package/esm/utils.d.ts +18 -0
- package/esm/utils.js +25 -0
- package/esm/utils.js.map +1 -1
- package/package.json +4 -4
- package/cjs/resources/AccountNotices.d.ts +0 -140
- package/cjs/resources/AccountNotices.js +0 -29
- package/cjs/resources/AccountNotices.js.map +0 -1
- package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +0 -85
- package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -15
- package/cjs/resources/Billing/Analytics/MeterUsage.js.map +0 -1
- package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js +0 -4
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
- package/cjs/resources/Billing/Analytics/index.d.ts +0 -15
- package/cjs/resources/Billing/Analytics/index.js +0 -13
- package/cjs/resources/Billing/Analytics/index.js.map +0 -1
- package/cjs/resources/Capital/FinancingOffers.d.ts +0 -194
- package/cjs/resources/Capital/FinancingOffers.js +0 -30
- package/cjs/resources/Capital/FinancingOffers.js.map +0 -1
- package/cjs/resources/Capital/FinancingSummary.d.ts +0 -102
- package/cjs/resources/Capital/FinancingSummary.js +0 -15
- package/cjs/resources/Capital/FinancingSummary.js.map +0 -1
- package/cjs/resources/Capital/FinancingTransactions.d.ts +0 -141
- package/cjs/resources/Capital/FinancingTransactions.js +0 -24
- package/cjs/resources/Capital/FinancingTransactions.js.map +0 -1
- package/cjs/resources/Capital/index.d.ts +0 -25
- package/cjs/resources/Capital/index.js +0 -17
- package/cjs/resources/Capital/index.js.map +0 -1
- package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js +0 -4
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
- package/cjs/resources/FinancialConnections/Institutions.d.ts +0 -99
- package/cjs/resources/FinancialConnections/Institutions.js +0 -23
- package/cjs/resources/FinancialConnections/Institutions.js.map +0 -1
- package/cjs/resources/FxQuotes.d.ts +0 -212
- package/cjs/resources/FxQuotes.js +0 -29
- package/cjs/resources/FxQuotes.js.map +0 -1
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -638
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -47
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
- package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +0 -93
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -23
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
- package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -23
- package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
- package/cjs/resources/Issuing/Settlements.d.ts +0 -83
- package/cjs/resources/Issuing/Settlements.js +0 -4
- package/cjs/resources/Issuing/Settlements.js.map +0 -1
- package/cjs/resources/Margins.d.ts +0 -115
- package/cjs/resources/Margins.js +0 -35
- package/cjs/resources/Margins.js.map +0 -1
- package/cjs/resources/Orders.d.ts +0 -4693
- package/cjs/resources/Orders.js +0 -457
- package/cjs/resources/Orders.js.map +0 -1
- package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -36
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js +0 -4
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
- package/cjs/resources/Privacy/RedactionJobs.d.ts +0 -227
- package/cjs/resources/Privacy/RedactionJobs.js +0 -73
- package/cjs/resources/Privacy/RedactionJobs.js.map +0 -1
- package/cjs/resources/Privacy/index.d.ts +0 -22
- package/cjs/resources/Privacy/index.js +0 -13
- package/cjs/resources/Privacy/index.js.map +0 -1
- package/cjs/resources/QuoteLines.d.ts +0 -507
- package/cjs/resources/QuoteLines.js +0 -4
- package/cjs/resources/QuoteLines.js.map +0 -1
- package/cjs/resources/QuotePreviewInvoices.d.ts +0 -1126
- package/cjs/resources/QuotePreviewInvoices.js +0 -4
- package/cjs/resources/QuotePreviewInvoices.js.map +0 -1
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -786
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js +0 -4
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +0 -418
- package/cjs/resources/SharedPayment/GrantedTokens.js +0 -15
- package/cjs/resources/SharedPayment/GrantedTokens.js.map +0 -1
- package/cjs/resources/SharedPayment/IssuedTokens.d.ts +0 -330
- package/cjs/resources/SharedPayment/IssuedTokens.js +0 -27
- package/cjs/resources/SharedPayment/IssuedTokens.js.map +0 -1
- package/cjs/resources/SharedPayment/index.d.ts +0 -19
- package/cjs/resources/SharedPayment/index.js +0 -15
- package/cjs/resources/SharedPayment/index.js.map +0 -1
- package/cjs/resources/Tax/Forms.d.ts +0 -228
- package/cjs/resources/Tax/Forms.js +0 -32
- package/cjs/resources/Tax/Forms.js.map +0 -1
- package/cjs/resources/Terminal/ReaderCollectedData.d.ts +0 -50
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -15
- package/cjs/resources/Terminal/ReaderCollectedData.js.map +0 -1
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -21
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
- package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
- package/cjs/resources/TestHelpers/SharedPayment/index.js +0 -13
- package/cjs/resources/TestHelpers/SharedPayment/index.js.map +0 -1
- package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +0 -72
- package/cjs/resources/V2/Billing/BillSettingVersions.js +0 -4
- package/cjs/resources/V2/Billing/BillSettingVersions.js.map +0 -1
- package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -23
- package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
- package/cjs/resources/V2/Billing/BillSettings.d.ts +0 -281
- package/cjs/resources/V2/Billing/BillSettings.js +0 -41
- package/cjs/resources/V2/Billing/BillSettings.js.map +0 -1
- package/cjs/resources/V2/Billing/Cadences.d.ts +0 -947
- package/cjs/resources/V2/Billing/Cadences.js +0 -198
- package/cjs/resources/V2/Billing/Cadences.js.map +0 -1
- package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -237
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js +0 -4
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -70
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
- package/cjs/resources/V2/Billing/CollectionSettings.d.ts +0 -776
- package/cjs/resources/V2/Billing/CollectionSettings.js +0 -166
- package/cjs/resources/V2/Billing/CollectionSettings.js.map +0 -1
- package/cjs/resources/V2/Billing/Profiles.d.ts +0 -162
- package/cjs/resources/V2/Billing/Profiles.js +0 -35
- package/cjs/resources/V2/Billing/Profiles.js.map +0 -1
- package/cjs/resources/V2/Core/ApprovalRequests.d.ts +0 -378
- package/cjs/resources/V2/Core/ApprovalRequests.js +0 -39
- package/cjs/resources/V2/Core/ApprovalRequests.js.map +0 -1
- package/cjs/resources/V2/Core/BatchJobs.d.ts +0 -360
- package/cjs/resources/V2/Core/BatchJobs.js +0 -225
- package/cjs/resources/V2/Core/BatchJobs.js.map +0 -1
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -284
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -54
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -256
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -65
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
- package/cjs/resources/V2/Core/Vault/index.d.ts +0 -28
- package/cjs/resources/V2/Core/Vault/index.js +0 -15
- package/cjs/resources/V2/Core/Vault/index.js.map +0 -1
- package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -151
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js +0 -46
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
- package/cjs/resources/V2/Data/Reporting/index.d.ts +0 -13
- package/cjs/resources/V2/Data/Reporting/index.js +0 -13
- package/cjs/resources/V2/Data/Reporting/index.js.map +0 -1
- package/cjs/resources/V2/Data/index.d.ts +0 -10
- package/cjs/resources/V2/Data/index.js +0 -13
- package/cjs/resources/V2/Data/index.js.map +0 -1
- package/cjs/resources/V2/EventMisc.d.ts +0 -0
- package/cjs/resources/V2/EventMisc.js +0 -2
- package/cjs/resources/V2/EventMisc.js.map +0 -1
- package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +0 -163
- package/cjs/resources/V2/Extend/WorkflowRuns.js +0 -23
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +0 -1
- package/cjs/resources/V2/Extend/Workflows.d.ts +0 -120
- package/cjs/resources/V2/Extend/Workflows.js +0 -30
- package/cjs/resources/V2/Extend/Workflows.js.map +0 -1
- package/cjs/resources/V2/Extend/index.d.ts +0 -20
- package/cjs/resources/V2/Extend/index.js +0 -15
- package/cjs/resources/V2/Extend/index.js.map +0 -1
- package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js +0 -4
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -4
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +0 -218
- package/cjs/resources/V2/Iam/ActivityLogs.js +0 -23
- package/cjs/resources/V2/Iam/ActivityLogs.js.map +0 -1
- package/cjs/resources/V2/Iam/index.d.ts +0 -13
- package/cjs/resources/V2/Iam/index.js +0 -13
- package/cjs/resources/V2/Iam/index.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +0 -131
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -23
- package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -240
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -44
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -211
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -31
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -251
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -30
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -209
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -22
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -394
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -41
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -297
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -49
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -336
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -39
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -255
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -53
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -92
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -17
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -296
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -23
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -159
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -23
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -23
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +0 -193
- package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -23
- package/cjs/resources/V2/MoneyManagement/Transactions.js.map +0 -1
- package/cjs/resources/V2/MoneyManagement/index.d.ts +0 -105
- package/cjs/resources/V2/MoneyManagement/index.js +0 -39
- package/cjs/resources/V2/MoneyManagement/index.js.map +0 -1
- package/cjs/resources/V2/Network/BusinessProfiles.d.ts +0 -92
- package/cjs/resources/V2/Network/BusinessProfiles.js +0 -21
- package/cjs/resources/V2/Network/BusinessProfiles.js.map +0 -1
- package/cjs/resources/V2/Network/index.d.ts +0 -13
- package/cjs/resources/V2/Network/index.js +0 -13
- package/cjs/resources/V2/Network/index.js.map +0 -1
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -143
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +0 -41
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
- package/cjs/resources/V2/OrchestratedCommerce/index.js +0 -13
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +0 -1
- package/cjs/resources/V2/Signals/AccountActivity.d.ts +0 -388
- package/cjs/resources/V2/Signals/AccountActivity.js +0 -27
- package/cjs/resources/V2/Signals/AccountActivity.js.map +0 -1
- package/cjs/resources/V2/Signals/AccountEvaluations.d.ts +0 -335
- package/cjs/resources/V2/Signals/AccountEvaluations.js +0 -59
- package/cjs/resources/V2/Signals/AccountEvaluations.js.map +0 -1
- package/cjs/resources/V2/Signals/AccountSignals.d.ts +0 -130
- package/cjs/resources/V2/Signals/AccountSignals.js +0 -58
- package/cjs/resources/V2/Signals/AccountSignals.js.map +0 -1
- package/cjs/resources/V2/Signals/index.d.ts +0 -26
- package/cjs/resources/V2/Signals/index.js +0 -17
- package/cjs/resources/V2/Signals/index.js.map +0 -1
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -45
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -23
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
- package/cjs/resources/V2/TestHelpers/index.d.ts +0 -8
- package/cjs/resources/V2/TestHelpers/index.js +0 -13
- package/cjs/resources/V2/TestHelpers/index.js.map +0 -1
- package/esm/resources/AccountNotices.d.ts +0 -140
- package/esm/resources/AccountNotices.js +0 -25
- package/esm/resources/AccountNotices.js.map +0 -1
- package/esm/resources/Billing/Analytics/MeterUsage.d.ts +0 -85
- package/esm/resources/Billing/Analytics/MeterUsage.js +0 -11
- package/esm/resources/Billing/Analytics/MeterUsage.js.map +0 -1
- package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +0 -32
- package/esm/resources/Billing/Analytics/MeterUsageRows.js +0 -3
- package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +0 -1
- package/esm/resources/Billing/Analytics/index.d.ts +0 -15
- package/esm/resources/Billing/Analytics/index.js +0 -9
- package/esm/resources/Billing/Analytics/index.js.map +0 -1
- package/esm/resources/Capital/FinancingOffers.d.ts +0 -194
- package/esm/resources/Capital/FinancingOffers.js +0 -26
- package/esm/resources/Capital/FinancingOffers.js.map +0 -1
- package/esm/resources/Capital/FinancingSummary.d.ts +0 -102
- package/esm/resources/Capital/FinancingSummary.js +0 -11
- package/esm/resources/Capital/FinancingSummary.js.map +0 -1
- package/esm/resources/Capital/FinancingTransactions.d.ts +0 -141
- package/esm/resources/Capital/FinancingTransactions.js +0 -20
- package/esm/resources/Capital/FinancingTransactions.js.map +0 -1
- package/esm/resources/Capital/index.d.ts +0 -25
- package/esm/resources/Capital/index.js +0 -13
- package/esm/resources/Capital/index.js.map +0 -1
- package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +0 -24
- package/esm/resources/FinancialConnections/AccountInferredBalances.js +0 -3
- package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +0 -1
- package/esm/resources/FinancialConnections/Institutions.d.ts +0 -99
- package/esm/resources/FinancialConnections/Institutions.js +0 -19
- package/esm/resources/FinancialConnections/Institutions.js.map +0 -1
- package/esm/resources/FxQuotes.d.ts +0 -212
- package/esm/resources/FxQuotes.js +0 -25
- package/esm/resources/FxQuotes.js.map +0 -1
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +0 -638
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -43
- package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +0 -1
- package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +0 -93
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -19
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +0 -1
- package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +0 -68
- package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -19
- package/esm/resources/Issuing/FraudLiabilityDebits.js.map +0 -1
- package/esm/resources/Issuing/Settlements.d.ts +0 -83
- package/esm/resources/Issuing/Settlements.js +0 -3
- package/esm/resources/Issuing/Settlements.js.map +0 -1
- package/esm/resources/Margins.d.ts +0 -115
- package/esm/resources/Margins.js +0 -31
- package/esm/resources/Margins.js.map +0 -1
- package/esm/resources/Orders.d.ts +0 -4693
- package/esm/resources/Orders.js +0 -453
- package/esm/resources/Orders.js.map +0 -1
- package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +0 -36
- package/esm/resources/Privacy/RedactionJobValidationErrors.js +0 -3
- package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +0 -1
- package/esm/resources/Privacy/RedactionJobs.d.ts +0 -227
- package/esm/resources/Privacy/RedactionJobs.js +0 -69
- package/esm/resources/Privacy/RedactionJobs.js.map +0 -1
- package/esm/resources/Privacy/index.d.ts +0 -22
- package/esm/resources/Privacy/index.js +0 -9
- package/esm/resources/Privacy/index.js.map +0 -1
- package/esm/resources/QuoteLines.d.ts +0 -507
- package/esm/resources/QuoteLines.js +0 -3
- package/esm/resources/QuoteLines.js.map +0 -1
- package/esm/resources/QuotePreviewInvoices.d.ts +0 -1126
- package/esm/resources/QuotePreviewInvoices.js +0 -3
- package/esm/resources/QuotePreviewInvoices.js.map +0 -1
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +0 -786
- package/esm/resources/QuotePreviewSubscriptionSchedules.js +0 -3
- package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +0 -1
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +0 -418
- package/esm/resources/SharedPayment/GrantedTokens.js +0 -11
- package/esm/resources/SharedPayment/GrantedTokens.js.map +0 -1
- package/esm/resources/SharedPayment/IssuedTokens.d.ts +0 -330
- package/esm/resources/SharedPayment/IssuedTokens.js +0 -23
- package/esm/resources/SharedPayment/IssuedTokens.js.map +0 -1
- package/esm/resources/SharedPayment/index.d.ts +0 -19
- package/esm/resources/SharedPayment/index.js +0 -11
- package/esm/resources/SharedPayment/index.js.map +0 -1
- package/esm/resources/Tax/Forms.d.ts +0 -228
- package/esm/resources/Tax/Forms.js +0 -28
- package/esm/resources/Tax/Forms.js.map +0 -1
- package/esm/resources/Terminal/ReaderCollectedData.d.ts +0 -50
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -11
- package/esm/resources/Terminal/ReaderCollectedData.js.map +0 -1
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +0 -68
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +0 -17
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +0 -1
- package/esm/resources/TestHelpers/SharedPayment/index.d.ts +0 -8
- package/esm/resources/TestHelpers/SharedPayment/index.js +0 -9
- package/esm/resources/TestHelpers/SharedPayment/index.js.map +0 -1
- package/esm/resources/V2/Billing/BillSettingVersions.d.ts +0 -72
- package/esm/resources/V2/Billing/BillSettingVersions.js +0 -3
- package/esm/resources/V2/Billing/BillSettingVersions.js.map +0 -1
- package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +0 -33
- package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -19
- package/esm/resources/V2/Billing/BillSettings/Versions.js.map +0 -1
- package/esm/resources/V2/Billing/BillSettings.d.ts +0 -281
- package/esm/resources/V2/Billing/BillSettings.js +0 -37
- package/esm/resources/V2/Billing/BillSettings.js.map +0 -1
- package/esm/resources/V2/Billing/Cadences.d.ts +0 -947
- package/esm/resources/V2/Billing/Cadences.js +0 -194
- package/esm/resources/V2/Billing/Cadences.js.map +0 -1
- package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +0 -237
- package/esm/resources/V2/Billing/CollectionSettingVersions.js +0 -3
- package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +0 -1
- package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +0 -33
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -66
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +0 -1
- package/esm/resources/V2/Billing/CollectionSettings.d.ts +0 -776
- package/esm/resources/V2/Billing/CollectionSettings.js +0 -162
- package/esm/resources/V2/Billing/CollectionSettings.js.map +0 -1
- package/esm/resources/V2/Billing/Profiles.d.ts +0 -162
- package/esm/resources/V2/Billing/Profiles.js +0 -31
- package/esm/resources/V2/Billing/Profiles.js.map +0 -1
- package/esm/resources/V2/Core/ApprovalRequests.d.ts +0 -378
- package/esm/resources/V2/Core/ApprovalRequests.js +0 -35
- package/esm/resources/V2/Core/ApprovalRequests.js.map +0 -1
- package/esm/resources/V2/Core/BatchJobs.d.ts +0 -360
- package/esm/resources/V2/Core/BatchJobs.js +0 -221
- package/esm/resources/V2/Core/BatchJobs.js.map +0 -1
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +0 -284
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -50
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +0 -1
- package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +0 -256
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -61
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +0 -1
- package/esm/resources/V2/Core/Vault/index.d.ts +0 -28
- package/esm/resources/V2/Core/Vault/index.js +0 -11
- package/esm/resources/V2/Core/Vault/index.js.map +0 -1
- package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +0 -151
- package/esm/resources/V2/Data/Reporting/QueryRuns.js +0 -42
- package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +0 -1
- package/esm/resources/V2/Data/Reporting/index.d.ts +0 -13
- package/esm/resources/V2/Data/Reporting/index.js +0 -9
- package/esm/resources/V2/Data/Reporting/index.js.map +0 -1
- package/esm/resources/V2/Data/index.d.ts +0 -10
- package/esm/resources/V2/Data/index.js +0 -9
- package/esm/resources/V2/Data/index.js.map +0 -1
- package/esm/resources/V2/EventMisc.d.ts +0 -0
- package/esm/resources/V2/EventMisc.js +0 -2
- package/esm/resources/V2/EventMisc.js.map +0 -1
- package/esm/resources/V2/Extend/WorkflowRuns.d.ts +0 -163
- package/esm/resources/V2/Extend/WorkflowRuns.js +0 -19
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +0 -1
- package/esm/resources/V2/Extend/Workflows.d.ts +0 -120
- package/esm/resources/V2/Extend/Workflows.js +0 -26
- package/esm/resources/V2/Extend/Workflows.js.map +0 -1
- package/esm/resources/V2/Extend/index.d.ts +0 -20
- package/esm/resources/V2/Extend/index.js +0 -11
- package/esm/resources/V2/Extend/index.js.map +0 -1
- package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +0 -14
- package/esm/resources/V2/FinancialAddressCreditSimulations.js +0 -3
- package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +0 -1
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -19
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +0 -3
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +0 -1
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +0 -218
- package/esm/resources/V2/Iam/ActivityLogs.js +0 -19
- package/esm/resources/V2/Iam/ActivityLogs.js.map +0 -1
- package/esm/resources/V2/Iam/index.d.ts +0 -13
- package/esm/resources/V2/Iam/index.js +0 -9
- package/esm/resources/V2/Iam/index.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +0 -131
- package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -19
- package/esm/resources/V2/MoneyManagement/Adjustments.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +0 -240
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -40
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +0 -211
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -27
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +0 -251
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -26
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -209
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -18
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +0 -394
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -37
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -297
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -45
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +0 -336
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -35
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +0 -255
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -49
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -92
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -13
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +0 -296
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -19
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +0 -159
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -19
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -19
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/Transactions.d.ts +0 -193
- package/esm/resources/V2/MoneyManagement/Transactions.js +0 -19
- package/esm/resources/V2/MoneyManagement/Transactions.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/index.d.ts +0 -105
- package/esm/resources/V2/MoneyManagement/index.js +0 -35
- package/esm/resources/V2/MoneyManagement/index.js.map +0 -1
- package/esm/resources/V2/Network/BusinessProfiles.d.ts +0 -92
- package/esm/resources/V2/Network/BusinessProfiles.js +0 -17
- package/esm/resources/V2/Network/BusinessProfiles.js.map +0 -1
- package/esm/resources/V2/Network/index.d.ts +0 -13
- package/esm/resources/V2/Network/index.js +0 -9
- package/esm/resources/V2/Network/index.js.map +0 -1
- package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +0 -143
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js +0 -37
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +0 -1
- package/esm/resources/V2/OrchestratedCommerce/index.d.ts +0 -16
- package/esm/resources/V2/OrchestratedCommerce/index.js +0 -9
- package/esm/resources/V2/OrchestratedCommerce/index.js.map +0 -1
- package/esm/resources/V2/Signals/AccountActivity.d.ts +0 -388
- package/esm/resources/V2/Signals/AccountActivity.js +0 -23
- package/esm/resources/V2/Signals/AccountActivity.js.map +0 -1
- package/esm/resources/V2/Signals/AccountEvaluations.d.ts +0 -335
- package/esm/resources/V2/Signals/AccountEvaluations.js +0 -55
- package/esm/resources/V2/Signals/AccountEvaluations.js.map +0 -1
- package/esm/resources/V2/Signals/AccountSignals.d.ts +0 -130
- package/esm/resources/V2/Signals/AccountSignals.js +0 -54
- package/esm/resources/V2/Signals/AccountSignals.js.map +0 -1
- package/esm/resources/V2/Signals/index.d.ts +0 -26
- package/esm/resources/V2/Signals/index.js +0 -13
- package/esm/resources/V2/Signals/index.js.map +0 -1
- package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +0 -45
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -19
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +0 -1
- package/esm/resources/V2/TestHelpers/index.d.ts +0 -8
- package/esm/resources/V2/TestHelpers/index.js +0 -9
- package/esm/resources/V2/TestHelpers/index.js.map +0 -1
package/OPENAPI_VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
v2526
|
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ See the [`stripe-node` API docs](https://stripe.com/docs/api?lang=node) for Node
|
|
|
18
18
|
|
|
19
19
|
## Requirements
|
|
20
20
|
|
|
21
|
-
Per our [Language Version Support Policy](https://docs.stripe.com/sdks/versioning?lang=node#stripe-sdk-language-version-support-policy), we currently support all LTS versions of **Node.js
|
|
21
|
+
Per our [Language Version Support Policy](https://docs.stripe.com/sdks/versioning?lang=node#stripe-sdk-language-version-support-policy), we currently support all LTS versions of **Node.js 20+**.
|
|
22
22
|
|
|
23
23
|
Read more and see the full schedule in the docs: https://docs.stripe.com/sdks/versioning?lang=node#stripe-sdk-language-version-support-policy
|
|
24
24
|
|
|
@@ -40,7 +40,8 @@ value:
|
|
|
40
40
|
|
|
41
41
|
<!-- prettier-ignore -->
|
|
42
42
|
```js
|
|
43
|
-
|
|
43
|
+
import Stripe from 'stripe';
|
|
44
|
+
const stripeClient = new Stripe('sk_test_...');
|
|
44
45
|
|
|
45
46
|
const customer = await stripeClient.customers.create({
|
|
46
47
|
email: 'customer@example.com',
|
|
@@ -71,7 +72,7 @@ stripeClient.customers
|
|
|
71
72
|
> import Stripe from 'stripe';
|
|
72
73
|
>
|
|
73
74
|
> let _stripe: Stripe | null = null;
|
|
74
|
-
> const
|
|
75
|
+
> const getStripeClient = (): Stripe => {
|
|
75
76
|
> if (!_stripe) {
|
|
76
77
|
> _stripe = new Stripe(process.env.STRIPE_SECRET_KEY as string, {
|
|
77
78
|
> // ...
|
|
@@ -80,7 +81,7 @@ stripeClient.customers
|
|
|
80
81
|
> return _stripe;
|
|
81
82
|
> };
|
|
82
83
|
>
|
|
83
|
-
> const getCustomers = () =>
|
|
84
|
+
> const getCustomers = () => getStripeClient().customers.list();
|
|
84
85
|
> ```
|
|
85
86
|
>
|
|
86
87
|
> Alternatively, you can provide a placeholder for the real key (which will be enough to get the code through a build step):
|
|
@@ -88,7 +89,7 @@ stripeClient.customers
|
|
|
88
89
|
> ```ts
|
|
89
90
|
> import Stripe from 'stripe';
|
|
90
91
|
>
|
|
91
|
-
> export const
|
|
92
|
+
> export const stripeClient = new Stripe(
|
|
92
93
|
> process.env.STRIPE_SECRET_KEY || 'api_key_placeholder',
|
|
93
94
|
> {
|
|
94
95
|
> // ...
|
|
@@ -105,14 +106,14 @@ and instantiate it as `new Stripe()` with the latest API version.
|
|
|
105
106
|
|
|
106
107
|
```ts
|
|
107
108
|
import Stripe from 'stripe';
|
|
108
|
-
const
|
|
109
|
+
const stripeClient = new Stripe('sk_test_...');
|
|
109
110
|
|
|
110
111
|
const createCustomer = async () => {
|
|
111
112
|
const params: Stripe.CustomerCreateParams = {
|
|
112
113
|
description: 'test customer',
|
|
113
114
|
};
|
|
114
115
|
|
|
115
|
-
const customer: Stripe.Customer = await
|
|
116
|
+
const customer: Stripe.Customer = await stripeClient.customers.create(params);
|
|
116
117
|
|
|
117
118
|
console.log(customer.id);
|
|
118
119
|
};
|
|
@@ -142,7 +143,7 @@ We also recommend using `// @ts-ignore` if you have access to a beta feature and
|
|
|
142
143
|
so you must cast them appropriately, e.g.,
|
|
143
144
|
|
|
144
145
|
```ts
|
|
145
|
-
const paymentIntent: Stripe.PaymentIntent = await
|
|
146
|
+
const paymentIntent: Stripe.PaymentIntent = await stripeClient.paymentIntents.retrieve(
|
|
146
147
|
'pi_123456789',
|
|
147
148
|
{
|
|
148
149
|
expand: ['customer'],
|
|
@@ -164,6 +165,16 @@ The TypeScript types in stripe-node always reflect the latest shape of the Strip
|
|
|
164
165
|
|
|
165
166
|
Please feel welcome to share your thoughts about the versioning policy in a Github issue. For now, we judge it to be better than the two alternatives: outdated, inaccurate types, or vastly more frequent major releases, which would distract from any future breaking changes with potentially more disruptive runtime implications.
|
|
166
167
|
|
|
168
|
+
### Open and Closed Enum
|
|
169
|
+
|
|
170
|
+
Many of Stripe API enums are open, meaning Stripe may add new values even on older API versions.
|
|
171
|
+
To reflect this, open enum fields in TypeScript include a string type (via `OtherString`) in addition to the known literal values.
|
|
172
|
+
This ensures the field has the correct type for both values known at SDK release time and other values that may be added later.
|
|
173
|
+
|
|
174
|
+
A small number of enums are closed, meaning Stripe guarantees no new values will be added without an API version change.
|
|
175
|
+
|
|
176
|
+
Refer to the [API Reference](https://docs.stripe.com) for the latest set of allowed values.
|
|
177
|
+
|
|
167
178
|
### Using Promises
|
|
168
179
|
|
|
169
180
|
Every method returns a chainable promise which can be used instead of a regular
|
|
@@ -171,7 +182,7 @@ callback:
|
|
|
171
182
|
|
|
172
183
|
```js
|
|
173
184
|
// Create a new customer and then create an invoice item then invoice it:
|
|
174
|
-
|
|
185
|
+
stripeClient.customers
|
|
175
186
|
.create({
|
|
176
187
|
email: 'customer@example.com',
|
|
177
188
|
})
|
|
@@ -213,6 +224,10 @@ Please see https://github.com/stripe-samples/stripe-node-deno-samples for more d
|
|
|
213
224
|
|
|
214
225
|
## Configuration
|
|
215
226
|
|
|
227
|
+
### Suppressing Stripe notices
|
|
228
|
+
|
|
229
|
+
The SDK may print notices from Stripe that it receives in the `Stripe-Notice` header. These notices are always printed when the SDK runs in an agent environment. For API calls to test accounts or sandboxes, notices are also printed when the SDK runs outside an agent environment. To suppress notices when the SDK runs outside an agent environment, set the `STRIPE_SUPPRESS_NOTICES` environment variable to `true` before running your integration.
|
|
230
|
+
|
|
216
231
|
### Initialize with config object
|
|
217
232
|
|
|
218
233
|
The package can be initialized with several options:
|
|
@@ -249,7 +264,7 @@ const stripe = Stripe('sk_test_...', {
|
|
|
249
264
|
Timeout can be set globally via the config object:
|
|
250
265
|
|
|
251
266
|
```js
|
|
252
|
-
const
|
|
267
|
+
const stripeClient = Stripe('sk_test_...', {
|
|
253
268
|
timeout: 20 * 1000, // 20 seconds
|
|
254
269
|
});
|
|
255
270
|
```
|
|
@@ -257,7 +272,7 @@ const stripe = Stripe('sk_test_...', {
|
|
|
257
272
|
And overridden on a per-request basis:
|
|
258
273
|
|
|
259
274
|
```js
|
|
260
|
-
|
|
275
|
+
stripeClient.customers.create(
|
|
261
276
|
{
|
|
262
277
|
email: 'customer@example.com',
|
|
263
278
|
},
|
|
@@ -274,7 +289,7 @@ can be added to any method:
|
|
|
274
289
|
|
|
275
290
|
```js
|
|
276
291
|
// List the balance transactions for a connected account:
|
|
277
|
-
|
|
292
|
+
stripeClient.balanceTransactions.list(
|
|
278
293
|
{
|
|
279
294
|
limit: 10,
|
|
280
295
|
},
|
|
@@ -303,7 +318,7 @@ if (process.env.http_proxy) {
|
|
|
303
318
|
As of [v13](https://github.com/stripe/stripe-node/releases/tag/v13.0.0) stripe-node will automatically do one reattempt for failed requests that are safe to retry. Automatic network retries can be disabled by setting the `maxNetworkRetries` config option to `0`. You can also set a higher number to reattempt multiple times, with exponential backoff. [Idempotency keys](https://stripe.com/docs/api/idempotent_requests) are added where appropriate to prevent duplication.
|
|
304
319
|
|
|
305
320
|
```js
|
|
306
|
-
const
|
|
321
|
+
const stripeClient = Stripe('sk_test_...', {
|
|
307
322
|
maxNetworkRetries: 0, // Disable retries
|
|
308
323
|
});
|
|
309
324
|
```
|
|
@@ -316,7 +331,7 @@ const stripe = Stripe('sk_test_...', {
|
|
|
316
331
|
> connection-closed errors are not retried.
|
|
317
332
|
|
|
318
333
|
```js
|
|
319
|
-
const
|
|
334
|
+
const stripeClient = Stripe('sk_test_...', {
|
|
320
335
|
maxNetworkRetries: 2, // Retry a request twice before giving up
|
|
321
336
|
});
|
|
322
337
|
```
|
|
@@ -324,7 +339,7 @@ const stripe = Stripe('sk_test_...', {
|
|
|
324
339
|
Network retries can also be set on a per-request basis:
|
|
325
340
|
|
|
326
341
|
```js
|
|
327
|
-
|
|
342
|
+
stripeClient.customers.create(
|
|
328
343
|
{
|
|
329
344
|
email: 'customer@example.com',
|
|
330
345
|
},
|
|
@@ -349,17 +364,18 @@ customer.lastResponse.statusCode;
|
|
|
349
364
|
The Stripe object emits `request` and `response` events. You can use them like this:
|
|
350
365
|
|
|
351
366
|
```js
|
|
352
|
-
const
|
|
367
|
+
const Stripe = require('stripe');
|
|
368
|
+
const stripeClient = Stripe('sk_test_...');
|
|
353
369
|
|
|
354
370
|
const onRequest = (request) => {
|
|
355
371
|
// Do something.
|
|
356
372
|
};
|
|
357
373
|
|
|
358
374
|
// Add the event handler function:
|
|
359
|
-
|
|
375
|
+
stripeClient.on('request', onRequest);
|
|
360
376
|
|
|
361
377
|
// Remove the event handler function:
|
|
362
|
-
|
|
378
|
+
stripeClient.off('request', onRequest);
|
|
363
379
|
```
|
|
364
380
|
|
|
365
381
|
#### `request` object
|
|
@@ -403,7 +419,7 @@ Please note that you must pass the _raw_ request body, exactly as received from
|
|
|
403
419
|
You can find an example of how to use this with various JavaScript frameworks in [`examples/webhook-signing`](examples/webhook-signing) folder, but here's what it looks like:
|
|
404
420
|
|
|
405
421
|
```js
|
|
406
|
-
const event =
|
|
422
|
+
const event = stripeClient.webhooks.constructEvent(
|
|
407
423
|
webhookRawBody,
|
|
408
424
|
webhookStripeSignatureHeader,
|
|
409
425
|
webhookSecret
|
|
@@ -412,7 +428,7 @@ const event = stripe.webhooks.constructEvent(
|
|
|
412
428
|
|
|
413
429
|
#### Testing Webhook signing
|
|
414
430
|
|
|
415
|
-
You can use `
|
|
431
|
+
You can use `stripeClient.webhooks.generateTestHeaderString` to mock webhook events that come from Stripe:
|
|
416
432
|
|
|
417
433
|
```js
|
|
418
434
|
const payload = {
|
|
@@ -423,7 +439,7 @@ const payload = {
|
|
|
423
439
|
const payloadString = JSON.stringify(payload, null, 2);
|
|
424
440
|
const secret = 'whsec_test_secret';
|
|
425
441
|
|
|
426
|
-
const header =
|
|
442
|
+
const header = stripeClient.webhooks.generateTestHeaderString({
|
|
427
443
|
payload: payloadString,
|
|
428
444
|
secret,
|
|
429
445
|
});
|
|
@@ -461,6 +477,19 @@ const stripeClient = new Stripe(apiKey, {
|
|
|
461
477
|
});
|
|
462
478
|
```
|
|
463
479
|
|
|
480
|
+
Or using CJS:
|
|
481
|
+
|
|
482
|
+
```js
|
|
483
|
+
const Stripe = require('stripe');
|
|
484
|
+
const stripeClient = Stripe('sk_test_...', {
|
|
485
|
+
appInfo: {
|
|
486
|
+
name: 'MyAwesomePlugin',
|
|
487
|
+
version: '1.2.34', // Optional
|
|
488
|
+
url: 'https://myawesomeplugin.info', // Optional
|
|
489
|
+
},
|
|
490
|
+
});
|
|
491
|
+
```
|
|
492
|
+
|
|
464
493
|
This information is passed along when the library makes calls to the Stripe API.
|
|
465
494
|
|
|
466
495
|
### Auto-pagination
|
|
@@ -474,7 +503,7 @@ such as Node 10+ or [babel](https://babeljs.io/docs/en/babel-plugin-transform-as
|
|
|
474
503
|
the following will auto-paginate:
|
|
475
504
|
|
|
476
505
|
```js
|
|
477
|
-
for await (const customer of
|
|
506
|
+
for await (const customer of stripeClient.customers.list()) {
|
|
478
507
|
doSomething(customer);
|
|
479
508
|
if (shouldStop()) {
|
|
480
509
|
break;
|
|
@@ -488,7 +517,7 @@ If you are in a Node environment that has support for `await`, such as Node 7.9
|
|
|
488
517
|
you may pass an async function to `.autoPagingEach`:
|
|
489
518
|
|
|
490
519
|
```js
|
|
491
|
-
await
|
|
520
|
+
await stripeClient.customers.list().autoPagingEach(async (customer) => {
|
|
492
521
|
await doSomething(customer);
|
|
493
522
|
if (shouldBreak()) {
|
|
494
523
|
return false;
|
|
@@ -500,7 +529,7 @@ console.log('Done iterating.');
|
|
|
500
529
|
Equivalently, without `await`, you may return a Promise, which can resolve to `false` to break:
|
|
501
530
|
|
|
502
531
|
```js
|
|
503
|
-
|
|
532
|
+
stripeClient.customers
|
|
504
533
|
.list()
|
|
505
534
|
.autoPagingEach((customer) => {
|
|
506
535
|
return doSomething(customer).then(() => {
|
|
@@ -525,7 +554,7 @@ to prevent runaway list growth from consuming too much memory. Once the
|
|
|
525
554
|
Returns a promise of an array of all items across pages for a list request.
|
|
526
555
|
|
|
527
556
|
```js
|
|
528
|
-
const allNewCustomers = await
|
|
557
|
+
const allNewCustomers = await stripeClient.customers
|
|
529
558
|
.list({created: {gt: lastMonth}, limit: 100}) // 100 items per page
|
|
530
559
|
.autoPagingToArray({limit: 10000}); // Stop after 10000 items total
|
|
531
560
|
```
|
|
@@ -540,7 +569,7 @@ improve popular features.
|
|
|
540
569
|
You can disable this behavior if you prefer:
|
|
541
570
|
|
|
542
571
|
```js
|
|
543
|
-
const
|
|
572
|
+
const stripeClient = new Stripe('sk_test_...', {
|
|
544
573
|
telemetry: false,
|
|
545
574
|
});
|
|
546
575
|
```
|
|
@@ -570,7 +599,7 @@ npm install stripe@<some-version>
|
|
|
570
599
|
Some preview features require a name and version to be set in the `Stripe-Version` header like `feature_beta=v3`. If your preview feature has this requirement, use the `apiVersion` property of `config` object to set it:
|
|
571
600
|
|
|
572
601
|
```js
|
|
573
|
-
const
|
|
602
|
+
const stripeClient = new Stripe('sk_test_...', {
|
|
574
603
|
apiVersion: '2022-08-01; feature_beta=v3',
|
|
575
604
|
});
|
|
576
605
|
```
|
|
@@ -589,21 +618,7 @@ npm install stripe@private-preview --save-exact
|
|
|
589
618
|
|
|
590
619
|
If you would like to send a request to an undocumented API (for example you are in a private beta), or if you prefer to bypass the method definitions in the library and specify your request details directly, you can use the `rawRequest` method on the StripeClient object.
|
|
591
620
|
|
|
592
|
-
|
|
593
|
-
import Stripe from 'stripe';
|
|
594
|
-
const client = new Stripe('sk_test_...');
|
|
595
|
-
|
|
596
|
-
client.rawRequest(
|
|
597
|
-
'POST',
|
|
598
|
-
'/v1/beta_endpoint',
|
|
599
|
-
{ param: 123 },
|
|
600
|
-
{ apiVersion: '2022-11-15; feature_beta=v3' }
|
|
601
|
-
)
|
|
602
|
-
.then((response) => /* handle response */ )
|
|
603
|
-
.catch((error) => console.error(error));
|
|
604
|
-
```
|
|
605
|
-
|
|
606
|
-
Or using ES modules and `async`/`await`:
|
|
621
|
+
Using ES modules and `async`/`await`:
|
|
607
622
|
|
|
608
623
|
```javascript
|
|
609
624
|
import Stripe from 'stripe';
|
|
@@ -619,6 +634,21 @@ const response = await stripe.rawRequest(
|
|
|
619
634
|
// handle response
|
|
620
635
|
```
|
|
621
636
|
|
|
637
|
+
Or using CJS and promises:
|
|
638
|
+
|
|
639
|
+
```javascript
|
|
640
|
+
const stripeClient = new Stripe('sk_test_...');
|
|
641
|
+
|
|
642
|
+
stripeClient.rawRequest(
|
|
643
|
+
'POST',
|
|
644
|
+
'/v1/beta_endpoint',
|
|
645
|
+
{ param: 123 },
|
|
646
|
+
{ apiVersion: '2022-11-15; feature_beta=v3' }
|
|
647
|
+
)
|
|
648
|
+
.then((response) => /* handle response */ )
|
|
649
|
+
.catch((error) => console.error(error));
|
|
650
|
+
```
|
|
651
|
+
|
|
622
652
|
## Support
|
|
623
653
|
|
|
624
654
|
New features and bug fixes are released on the latest major version of the `stripe` package. If you are on an older major version, we recommend that you upgrade to the latest in order to use the new features and bug fixes including those for security vulnerabilities. Older major versions of the package will continue to be available for use, but will not be receiving any updates.
|
|
@@ -633,7 +663,7 @@ New features and bug fixes are released on the latest major version of the `stri
|
|
|
633
663
|
## Development
|
|
634
664
|
|
|
635
665
|
> [!WARNING]
|
|
636
|
-
> External contributions to this repo from first-time contributors are currently on hiatus. If you'd like to see a change made to the package, please open an issue.
|
|
666
|
+
> External contributions to this repo from first-time contributors are currently on hiatus. If you'd like to see a change made to the package, please open an issue.(
|
|
637
667
|
|
|
638
668
|
[Contribution guidelines for this project](CONTRIBUTING.md)
|
|
639
669
|
|
package/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
23.0.0
|
package/cjs/Error.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export declare class StripeError extends Error {
|
|
|
24
24
|
readonly detail?: string | Error | HttpClientResponseError;
|
|
25
25
|
readonly statusCode?: number;
|
|
26
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.
|
|
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/card#retrying-issuer-declines) if they provide one.
|
|
28
28
|
*/
|
|
29
29
|
readonly advice_code?: string;
|
|
30
30
|
/**
|
|
@@ -209,59 +209,9 @@ export declare class StripeUnsupportedGrantTypeError extends StripeOAuthError {
|
|
|
209
209
|
export declare class StripeUnsupportedResponseTypeError extends StripeOAuthError {
|
|
210
210
|
constructor(raw?: StripeRawError);
|
|
211
211
|
}
|
|
212
|
-
export declare class AlreadyCanceledError extends StripeError {
|
|
213
|
-
constructor(rawStripeError?: StripeRawError);
|
|
214
|
-
}
|
|
215
|
-
export declare class AlreadyExistsError extends StripeError {
|
|
216
|
-
constructor(rawStripeError?: StripeRawError);
|
|
217
|
-
}
|
|
218
|
-
export declare class BlockedByStripeError extends StripeError {
|
|
219
|
-
constructor(rawStripeError?: StripeRawError);
|
|
220
|
-
}
|
|
221
|
-
export declare class CannotProceedError extends StripeError {
|
|
222
|
-
reason: string;
|
|
223
|
-
constructor(rawStripeError: StripeRawError);
|
|
224
|
-
}
|
|
225
|
-
export declare class ControlledByAlternateResourceError extends StripeError {
|
|
226
|
-
constructor(rawStripeError?: StripeRawError);
|
|
227
|
-
}
|
|
228
|
-
export declare class ControlledByDashboardError extends StripeError {
|
|
229
|
-
constructor(rawStripeError?: StripeRawError);
|
|
230
|
-
}
|
|
231
|
-
export declare class FeatureNotEnabledError extends StripeError {
|
|
232
|
-
constructor(rawStripeError?: StripeRawError);
|
|
233
|
-
}
|
|
234
|
-
export declare class FinancialAccountNotOpenError extends StripeError {
|
|
235
|
-
constructor(rawStripeError?: StripeRawError);
|
|
236
|
-
}
|
|
237
|
-
export declare class InsufficientFundsError extends StripeError {
|
|
238
|
-
constructor(rawStripeError?: StripeRawError);
|
|
239
|
-
}
|
|
240
|
-
export declare class InvalidPaymentMethodError extends StripeError {
|
|
241
|
-
invalid_param: InvalidPaymentMethodError.InvalidParam;
|
|
242
|
-
constructor(rawStripeError: StripeRawError);
|
|
243
|
-
}
|
|
244
|
-
export declare namespace InvalidPaymentMethodError {
|
|
245
|
-
type InvalidParam = 'account_number' | 'currency' | 'fedwire_routing_number' | 'routing_number';
|
|
246
|
-
}
|
|
247
|
-
export declare class InvalidPayoutMethodError extends StripeError {
|
|
248
|
-
constructor(rawStripeError?: StripeRawError);
|
|
249
|
-
}
|
|
250
|
-
export declare class NonZeroBalanceError extends StripeError {
|
|
251
|
-
constructor(rawStripeError?: StripeRawError);
|
|
252
|
-
}
|
|
253
|
-
export declare class NotCancelableError extends StripeError {
|
|
254
|
-
constructor(rawStripeError?: StripeRawError);
|
|
255
|
-
}
|
|
256
|
-
export declare class QuotaExceededError extends StripeError {
|
|
257
|
-
constructor(rawStripeError?: StripeRawError);
|
|
258
|
-
}
|
|
259
212
|
export declare class RateLimitError extends StripeError {
|
|
260
213
|
constructor(rawStripeError?: StripeRawError);
|
|
261
214
|
}
|
|
262
|
-
export declare class RecipientNotNotifiableError extends StripeError {
|
|
263
|
-
constructor(rawStripeError?: StripeRawError);
|
|
264
|
-
}
|
|
265
215
|
export declare class TemporarySessionExpiredError extends StripeError {
|
|
266
216
|
constructor(rawStripeError?: StripeRawError);
|
|
267
217
|
}
|
package/cjs/Error.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable camelcase */
|
|
3
3
|
/* eslint-disable no-warning-comments */
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.TemporarySessionExpiredError = exports.
|
|
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
6
|
// errorImports: The end of the section generated from our OpenAPI spec
|
|
7
7
|
const generateV1Error = (rawStripeError) => {
|
|
8
8
|
const statusCode = rawStripeError.statusCode;
|
|
@@ -48,43 +48,14 @@ const generateOAuthError = (rawStripeError) => {
|
|
|
48
48
|
}
|
|
49
49
|
};
|
|
50
50
|
exports.generateOAuthError = generateOAuthError;
|
|
51
|
+
// eslint-disable-next-line complexity
|
|
51
52
|
const generateV2Error = (rawStripeError) => {
|
|
52
53
|
switch (rawStripeError.type) {
|
|
53
54
|
case 'idempotency_error':
|
|
54
55
|
return new StripeIdempotencyError(rawStripeError);
|
|
55
56
|
// switchCases: The beginning of the section generated from our OpenAPI spec
|
|
56
|
-
case 'already_canceled':
|
|
57
|
-
return new AlreadyCanceledError(rawStripeError);
|
|
58
|
-
case 'already_exists':
|
|
59
|
-
return new AlreadyExistsError(rawStripeError);
|
|
60
|
-
case 'blocked_by_stripe':
|
|
61
|
-
return new BlockedByStripeError(rawStripeError);
|
|
62
|
-
case 'cannot_proceed':
|
|
63
|
-
return new CannotProceedError(rawStripeError);
|
|
64
|
-
case 'controlled_by_alternate_resource':
|
|
65
|
-
return new ControlledByAlternateResourceError(rawStripeError);
|
|
66
|
-
case 'controlled_by_dashboard':
|
|
67
|
-
return new ControlledByDashboardError(rawStripeError);
|
|
68
|
-
case 'feature_not_enabled':
|
|
69
|
-
return new FeatureNotEnabledError(rawStripeError);
|
|
70
|
-
case 'financial_account_not_open':
|
|
71
|
-
return new FinancialAccountNotOpenError(rawStripeError);
|
|
72
|
-
case 'insufficient_funds':
|
|
73
|
-
return new InsufficientFundsError(rawStripeError);
|
|
74
|
-
case 'invalid_payment_method':
|
|
75
|
-
return new InvalidPaymentMethodError(rawStripeError);
|
|
76
|
-
case 'invalid_payout_method':
|
|
77
|
-
return new InvalidPayoutMethodError(rawStripeError);
|
|
78
|
-
case 'non_zero_balance':
|
|
79
|
-
return new NonZeroBalanceError(rawStripeError);
|
|
80
|
-
case 'not_cancelable':
|
|
81
|
-
return new NotCancelableError(rawStripeError);
|
|
82
|
-
case 'quota_exceeded':
|
|
83
|
-
return new QuotaExceededError(rawStripeError);
|
|
84
57
|
case 'rate_limit':
|
|
85
58
|
return new RateLimitError(rawStripeError);
|
|
86
|
-
case 'recipient_not_notifiable':
|
|
87
|
-
return new RecipientNotNotifiableError(rawStripeError);
|
|
88
59
|
case 'temporary_session_expired':
|
|
89
60
|
return new TemporarySessionExpiredError(rawStripeError);
|
|
90
61
|
// switchCases: The end of the section generated from our OpenAPI spec
|
|
@@ -309,106 +280,12 @@ class StripeUnsupportedResponseTypeError extends StripeOAuthError {
|
|
|
309
280
|
}
|
|
310
281
|
exports.StripeUnsupportedResponseTypeError = StripeUnsupportedResponseTypeError;
|
|
311
282
|
// classDefinitions: The beginning of the section generated from our OpenAPI spec
|
|
312
|
-
class AlreadyCanceledError extends StripeError {
|
|
313
|
-
constructor(rawStripeError = {}) {
|
|
314
|
-
super(rawStripeError, 'AlreadyCanceledError');
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
exports.AlreadyCanceledError = AlreadyCanceledError;
|
|
318
|
-
class AlreadyExistsError extends StripeError {
|
|
319
|
-
constructor(rawStripeError = {}) {
|
|
320
|
-
super(rawStripeError, 'AlreadyExistsError');
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
exports.AlreadyExistsError = AlreadyExistsError;
|
|
324
|
-
class BlockedByStripeError extends StripeError {
|
|
325
|
-
constructor(rawStripeError = {}) {
|
|
326
|
-
super(rawStripeError, 'BlockedByStripeError');
|
|
327
|
-
}
|
|
328
|
-
}
|
|
329
|
-
exports.BlockedByStripeError = BlockedByStripeError;
|
|
330
|
-
class CannotProceedError extends StripeError {
|
|
331
|
-
constructor(rawStripeError) {
|
|
332
|
-
super(rawStripeError, 'CannotProceedError');
|
|
333
|
-
// @ts-ignore
|
|
334
|
-
this.reason = this.raw.reason;
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
exports.CannotProceedError = CannotProceedError;
|
|
338
|
-
class ControlledByAlternateResourceError extends StripeError {
|
|
339
|
-
constructor(rawStripeError = {}) {
|
|
340
|
-
super(rawStripeError, 'ControlledByAlternateResourceError');
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
exports.ControlledByAlternateResourceError = ControlledByAlternateResourceError;
|
|
344
|
-
class ControlledByDashboardError extends StripeError {
|
|
345
|
-
constructor(rawStripeError = {}) {
|
|
346
|
-
super(rawStripeError, 'ControlledByDashboardError');
|
|
347
|
-
}
|
|
348
|
-
}
|
|
349
|
-
exports.ControlledByDashboardError = ControlledByDashboardError;
|
|
350
|
-
class FeatureNotEnabledError extends StripeError {
|
|
351
|
-
constructor(rawStripeError = {}) {
|
|
352
|
-
super(rawStripeError, 'FeatureNotEnabledError');
|
|
353
|
-
}
|
|
354
|
-
}
|
|
355
|
-
exports.FeatureNotEnabledError = FeatureNotEnabledError;
|
|
356
|
-
class FinancialAccountNotOpenError extends StripeError {
|
|
357
|
-
constructor(rawStripeError = {}) {
|
|
358
|
-
super(rawStripeError, 'FinancialAccountNotOpenError');
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
exports.FinancialAccountNotOpenError = FinancialAccountNotOpenError;
|
|
362
|
-
class InsufficientFundsError extends StripeError {
|
|
363
|
-
constructor(rawStripeError = {}) {
|
|
364
|
-
super(rawStripeError, 'InsufficientFundsError');
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
exports.InsufficientFundsError = InsufficientFundsError;
|
|
368
|
-
class InvalidPaymentMethodError extends StripeError {
|
|
369
|
-
constructor(rawStripeError) {
|
|
370
|
-
super(rawStripeError, 'InvalidPaymentMethodError');
|
|
371
|
-
// @ts-ignore
|
|
372
|
-
this.invalid_param = this.raw.invalid_param;
|
|
373
|
-
}
|
|
374
|
-
}
|
|
375
|
-
exports.InvalidPaymentMethodError = InvalidPaymentMethodError;
|
|
376
|
-
class InvalidPayoutMethodError extends StripeError {
|
|
377
|
-
constructor(rawStripeError = {}) {
|
|
378
|
-
super(rawStripeError, 'InvalidPayoutMethodError');
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
exports.InvalidPayoutMethodError = InvalidPayoutMethodError;
|
|
382
|
-
class NonZeroBalanceError extends StripeError {
|
|
383
|
-
constructor(rawStripeError = {}) {
|
|
384
|
-
super(rawStripeError, 'NonZeroBalanceError');
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
exports.NonZeroBalanceError = NonZeroBalanceError;
|
|
388
|
-
class NotCancelableError extends StripeError {
|
|
389
|
-
constructor(rawStripeError = {}) {
|
|
390
|
-
super(rawStripeError, 'NotCancelableError');
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
exports.NotCancelableError = NotCancelableError;
|
|
394
|
-
class QuotaExceededError extends StripeError {
|
|
395
|
-
constructor(rawStripeError = {}) {
|
|
396
|
-
super(rawStripeError, 'QuotaExceededError');
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
exports.QuotaExceededError = QuotaExceededError;
|
|
400
283
|
class RateLimitError extends StripeError {
|
|
401
284
|
constructor(rawStripeError = {}) {
|
|
402
285
|
super(rawStripeError, 'RateLimitError');
|
|
403
286
|
}
|
|
404
287
|
}
|
|
405
288
|
exports.RateLimitError = RateLimitError;
|
|
406
|
-
class RecipientNotNotifiableError extends StripeError {
|
|
407
|
-
constructor(rawStripeError = {}) {
|
|
408
|
-
super(rawStripeError, 'RecipientNotNotifiableError');
|
|
409
|
-
}
|
|
410
|
-
}
|
|
411
|
-
exports.RecipientNotNotifiableError = RecipientNotNotifiableError;
|
|
412
289
|
class TemporarySessionExpiredError extends StripeError {
|
|
413
290
|
constructor(rawStripeError = {}) {
|
|
414
291
|
super(rawStripeError, 'TemporarySessionExpiredError');
|
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;;;AASxC,uEAAuE;AAEhE,MAAM,eAAe,GAAG,CAC7B,cAA8B,EACjB,EAAE;IACf,MAAM,UAAU,GAAG,cAAc,CAAC,UAAU,CAAC;IAE7C,IACE,UAAU,KAAK,GAAG;QAClB,CAAC,UAAU,KAAK,GAAG,IAAI,cAAc,CAAC,IAAI,KAAK,YAAY,CAAC,EAC5D;QACA,OAAO,IAAI,oBAAoB,CAAC,cAAc,CAAC,CAA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