stripe 19.3.1 → 19.4.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1722 -12
- package/OPENAPI_VERSION +1 -1
- package/README.md +1 -0
- package/VERSION +1 -1
- package/cjs/Error.js +115 -1
- package/cjs/apiVersion.js +2 -3
- package/cjs/resources/AccountNotices.js +21 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js +12 -0
- package/cjs/resources/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/Capital/FinancingSummary.js +12 -0
- package/cjs/resources/Capital/FinancingTransactions.js +17 -0
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js +28 -0
- package/cjs/resources/ExternalAccounts.js +23 -0
- package/cjs/resources/FinancialConnections/Accounts.js +5 -0
- package/cjs/resources/FinancialConnections/Institutions.js +17 -0
- package/cjs/resources/FxQuotes.js +15 -0
- package/cjs/resources/Identity/BlocklistEntries.js +25 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +33 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +17 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +17 -0
- package/cjs/resources/Issuing/Programs.js +22 -0
- package/cjs/resources/Mandates.js +5 -0
- package/cjs/resources/Margins.js +22 -0
- package/cjs/resources/Orders.js +24 -0
- package/cjs/resources/PaymentIntents.js +8 -0
- package/cjs/resources/PaymentMethods.js +4 -0
- package/cjs/resources/Privacy/RedactionJobs.js +42 -0
- package/cjs/resources/Quotes.js +32 -0
- package/cjs/resources/SubscriptionSchedules.js +4 -0
- package/cjs/resources/Subscriptions.js +4 -0
- package/cjs/resources/Tax/Associations.js +9 -0
- package/cjs/resources/Tax/Forms.js +20 -0
- package/cjs/resources/Terminal/OnboardingLinks.js +12 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +12 -0
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +16 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/BillSettings.js +27 -0
- package/cjs/resources/V2/Billing/Cadences.js +23 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +17 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +30 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +25 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +17 -0
- package/cjs/resources/V2/Billing/Intents.js +36 -0
- package/cjs/resources/V2/Billing/LicenseFeeSubscriptions.js +12 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +17 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +27 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +25 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +22 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions/Components.js +12 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +26 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +29 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +17 -0
- package/cjs/resources/V2/Billing/PricingPlans.js +29 -0
- package/cjs/resources/V2/Billing/Profiles.js +19 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +29 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js +25 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js +17 -0
- package/cjs/resources/V2/Billing/RateCards.js +29 -0
- package/cjs/resources/V2/Billing/ServiceActions.js +20 -0
- package/cjs/resources/V2/Core/AccountLinks.js +9 -0
- package/cjs/resources/V2/Core/Accounts/Persons.js +29 -0
- package/cjs/resources/V2/Core/Accounts.js +25 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +16 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +33 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +37 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +17 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +29 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +21 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +21 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +16 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +25 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +29 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +25 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +12 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +17 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +20 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +17 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +17 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js +29 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js +13 -0
- package/cjs/resources/V2/Reporting/Reports.js +12 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +16 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +12 -0
- package/cjs/resources.js +152 -8
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +100 -0
- package/esm/apiVersion.js +1 -2
- package/esm/resources/AccountNotices.js +18 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js +9 -0
- package/esm/resources/Capital/FinancingOffers.js +18 -0
- package/esm/resources/Capital/FinancingSummary.js +9 -0
- package/esm/resources/Capital/FinancingTransactions.js +14 -0
- package/esm/resources/DelegatedCheckout/RequestedSessions.js +25 -0
- package/esm/resources/ExternalAccounts.js +20 -0
- package/esm/resources/FinancialConnections/Accounts.js +5 -0
- package/esm/resources/FinancialConnections/Institutions.js +14 -0
- package/esm/resources/FxQuotes.js +12 -0
- package/esm/resources/Identity/BlocklistEntries.js +22 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +30 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +14 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +14 -0
- package/esm/resources/Issuing/Programs.js +19 -0
- package/esm/resources/Mandates.js +5 -0
- package/esm/resources/Margins.js +19 -0
- package/esm/resources/Orders.js +21 -0
- package/esm/resources/PaymentIntents.js +8 -0
- package/esm/resources/PaymentMethods.js +4 -0
- package/esm/resources/Privacy/RedactionJobs.js +39 -0
- package/esm/resources/Quotes.js +32 -0
- package/esm/resources/SubscriptionSchedules.js +4 -0
- package/esm/resources/Subscriptions.js +4 -0
- package/esm/resources/Tax/Associations.js +6 -0
- package/esm/resources/Tax/Forms.js +17 -0
- package/esm/resources/Terminal/OnboardingLinks.js +9 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +9 -0
- package/esm/resources/TestHelpers/Capital/FinancingOffers.js +13 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/BillSettings.js +24 -0
- package/esm/resources/V2/Billing/Cadences.js +20 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +14 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +27 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +22 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +14 -0
- package/esm/resources/V2/Billing/Intents.js +33 -0
- package/esm/resources/V2/Billing/LicenseFeeSubscriptions.js +9 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +14 -0
- package/esm/resources/V2/Billing/LicenseFees.js +24 -0
- package/esm/resources/V2/Billing/LicensedItems.js +22 -0
- package/esm/resources/V2/Billing/MeteredItems.js +19 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions/Components.js +9 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +23 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js +26 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +14 -0
- package/esm/resources/V2/Billing/PricingPlans.js +26 -0
- package/esm/resources/V2/Billing/Profiles.js +16 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +26 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js +22 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js +14 -0
- package/esm/resources/V2/Billing/RateCards.js +26 -0
- package/esm/resources/V2/Billing/ServiceActions.js +17 -0
- package/esm/resources/V2/Core/AccountLinks.js +6 -0
- package/esm/resources/V2/Core/Accounts/Persons.js +26 -0
- package/esm/resources/V2/Core/Accounts.js +22 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js +13 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +30 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +34 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +26 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +18 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +13 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +22 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +26 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +22 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +9 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +14 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +14 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +17 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +14 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +14 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js +26 -0
- package/esm/resources/V2/Reporting/ReportRuns.js +10 -0
- package/esm/resources/V2/Reporting/Reports.js +9 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +9 -0
- package/esm/resources.js +139 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +5 -1
- package/types/AccountNotices.d.ts +113 -0
- package/types/AccountNoticesResource.d.ts +98 -0
- package/types/AccountSessions.d.ts +45 -0
- package/types/AccountSessionsResource.d.ts +264 -0
- package/types/Accounts.d.ts +215 -2
- package/types/AccountsResource.d.ts +634 -2
- package/types/ApplicationFees.d.ts +6 -1
- package/types/Balance.d.ts +82 -0
- package/types/BalanceTransactions.d.ts +2 -1
- package/types/BankAccounts.d.ts +2 -0
- package/types/Billing/AlertTriggereds.d.ts +16 -1
- package/types/Billing/Alerts.d.ts +116 -1
- package/types/Billing/AlertsResource.d.ts +149 -2
- package/types/Billing/Analytics/MeterUsage.d.ts +31 -0
- package/types/Billing/Analytics/MeterUsageResource.d.ts +694 -0
- package/types/Billing/Analytics/MeterUsageRows.d.ts +58 -0
- package/types/Billing/CreditBalanceSummary.d.ts +123 -2
- package/types/Billing/CreditBalanceSummaryResource.d.ts +20 -3
- package/types/Billing/CreditBalanceTransactions.d.ts +118 -2
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +12 -4
- package/types/Billing/CreditGrants.d.ts +76 -1
- package/types/Billing/CreditGrantsResource.d.ts +45 -4
- package/types/Billing/MeterEventSummaries.d.ts +7 -0
- package/types/Billing/Meters.d.ts +5 -0
- package/types/Billing/MetersResource.d.ts +17 -0
- package/types/BillingPortal/Sessions.d.ts +5 -0
- package/types/BillingPortal/SessionsResource.d.ts +12 -4
- package/types/Capabilities.d.ts +2 -0
- package/types/Capital/FinancingOffers.d.ts +188 -0
- package/types/Capital/FinancingOffersResource.d.ts +97 -0
- package/types/Capital/FinancingSummary.d.ts +106 -0
- package/types/Capital/FinancingSummaryResource.d.ts +27 -0
- package/types/Capital/FinancingTransactions.d.ts +135 -0
- package/types/Capital/FinancingTransactionsResource.d.ts +68 -0
- package/types/Cards.d.ts +19 -0
- package/types/CashBalances.d.ts +5 -0
- package/types/Charges.d.ts +190 -0
- package/types/ChargesResource.d.ts +1406 -0
- package/types/Checkout/Sessions.d.ts +427 -2
- package/types/Checkout/SessionsResource.d.ts +682 -2
- package/types/ConfirmationTokens.d.ts +139 -0
- package/types/Coupons.d.ts +35 -0
- package/types/CouponsResource.d.ts +23 -0
- package/types/CreditNoteLineItems.d.ts +17 -0
- package/types/CreditNotes.d.ts +5 -0
- package/types/CreditNotesResource.d.ts +5 -0
- package/types/CustomerBalanceTransactions.d.ts +2 -0
- package/types/CustomerCashBalanceTransactions.d.ts +2 -0
- package/types/CustomerSessions.d.ts +46 -0
- package/types/CustomerSessionsResource.d.ts +48 -2
- package/types/Customers.d.ts +2 -0
- package/types/CustomersResource.d.ts +8 -0
- package/types/DelegatedCheckout/RequestedSessions.d.ts +384 -0
- package/types/DelegatedCheckout/RequestedSessionsResource.d.ts +599 -0
- package/types/Discounts.d.ts +20 -0
- package/types/Disputes.d.ts +40 -0
- package/types/DisputesResource.d.ts +11 -0
- package/types/Errors.d.ts +85 -0
- package/types/EventTypes.d.ts +630 -0
- package/types/Events.d.ts +95 -0
- package/types/ExternalAccountsResource.d.ts +304 -0
- package/types/FinancialConnections/AccountInferredBalances.d.ts +38 -0
- package/types/FinancialConnections/Accounts.d.ts +36 -1
- package/types/FinancialConnections/AccountsResource.d.ts +40 -3
- package/types/FinancialConnections/Institutions.d.ts +98 -0
- package/types/FinancialConnections/InstitutionsResource.d.ts +47 -0
- package/types/FinancialConnections/Sessions.d.ts +51 -1
- package/types/FinancialConnections/SessionsResource.d.ts +43 -1
- package/types/FxQuotes.d.ts +155 -0
- package/types/FxQuotesResource.d.ts +130 -0
- package/types/Identity/BlocklistEntries.d.ts +78 -0
- package/types/Identity/BlocklistEntriesResource.d.ts +146 -0
- package/types/Identity/VerificationReports.d.ts +10 -0
- package/types/Identity/VerificationReportsResource.d.ts +5 -0
- package/types/Identity/VerificationSessions.d.ts +5 -0
- package/types/Identity/VerificationSessionsResource.d.ts +7 -0
- package/types/InvoiceItems.d.ts +127 -2
- package/types/InvoiceItemsResource.d.ts +117 -6
- package/types/InvoiceLineItems.d.ts +171 -3
- package/types/Invoices.d.ts +217 -5
- package/types/InvoicesResource.d.ts +1710 -2
- package/types/Issuing/CardholdersResource.d.ts +2 -1
- package/types/Issuing/CreditUnderwritingRecords.d.ts +451 -0
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +1032 -0
- package/types/Issuing/DisputeSettlementDetails.d.ts +85 -0
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebits.d.ts +52 -0
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +52 -0
- package/types/Issuing/Programs.d.ts +42 -0
- package/types/Issuing/ProgramsResource.d.ts +96 -0
- package/types/Issuing/Settlements.d.ts +113 -0
- package/types/Issuing/Transactions.d.ts +5 -0
- package/types/Issuing/TransactionsResource.d.ts +5 -0
- package/types/LineItems.d.ts +49 -0
- package/types/Mandates.d.ts +135 -1
- package/types/MandatesResource.d.ts +31 -0
- package/types/Margins.d.ts +56 -0
- package/types/MarginsResource.d.ts +114 -0
- package/types/Orders.d.ts +1163 -0
- package/types/OrdersResource.d.ts +3139 -0
- package/types/PaymentAttemptRecords.d.ts +141 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +7 -13
- package/types/PaymentIntents.d.ts +807 -27
- package/types/PaymentIntentsResource.d.ts +9828 -5019
- package/types/PaymentLinks.d.ts +6 -0
- package/types/PaymentLinksResource.d.ts +12 -0
- package/types/PaymentMethodBalances.d.ts +63 -0
- package/types/PaymentMethodConfigurations.d.ts +216 -0
- package/types/PaymentMethodConfigurationsResource.d.ts +300 -0
- package/types/PaymentMethods.d.ts +144 -0
- package/types/PaymentMethodsResource.d.ts +187 -2
- package/types/PaymentRecords.d.ts +141 -0
- package/types/Persons.d.ts +30 -0
- package/types/Prices.d.ts +22 -0
- package/types/PricesResource.d.ts +22 -0
- package/types/Privacy/RedactionJobValidationErrors.d.ts +60 -0
- package/types/Privacy/RedactionJobs.d.ts +111 -0
- package/types/Privacy/RedactionJobsResource.d.ts +230 -0
- package/types/PromotionCodes.d.ts +5 -0
- package/types/PromotionCodesResource.d.ts +10 -0
- package/types/QuoteLines.d.ts +634 -0
- package/types/QuotePreviewInvoices.d.ts +1784 -0
- package/types/QuotePreviewSubscriptionSchedules.d.ts +1108 -0
- package/types/Quotes.d.ts +982 -1
- package/types/QuotesResource.d.ts +3226 -293
- package/types/Refunds.d.ts +14 -0
- package/types/SetupAttempts.d.ts +51 -1
- package/types/SetupIntents.d.ts +239 -2
- package/types/SetupIntentsResource.d.ts +1044 -4
- package/types/Sources.d.ts +29 -0
- package/types/SubscriptionItems.d.ts +26 -0
- package/types/SubscriptionItemsResource.d.ts +109 -0
- package/types/SubscriptionSchedules.d.ts +403 -0
- package/types/SubscriptionSchedulesResource.d.ts +1404 -0
- package/types/Subscriptions.d.ts +370 -1
- package/types/SubscriptionsResource.d.ts +757 -8
- package/types/Tax/Associations.d.ts +82 -0
- package/types/Tax/AssociationsResource.d.ts +29 -0
- package/types/Tax/Forms.d.ts +220 -0
- package/types/Tax/FormsResource.d.ts +107 -0
- package/types/TaxIds.d.ts +10 -0
- package/types/TaxIdsResource.d.ts +10 -0
- package/types/Terminal/Configurations.d.ts +9 -0
- package/types/Terminal/ConfigurationsResource.d.ts +46 -18
- package/types/Terminal/OnboardingLinks.d.ts +57 -0
- package/types/Terminal/OnboardingLinksResource.d.ts +62 -0
- package/types/Terminal/ReaderCollectedData.d.ts +51 -0
- package/types/Terminal/ReaderCollectedDataResource.d.ts +29 -0
- package/types/Terminal/Readers.d.ts +20 -0
- package/types/TestHelpers/Capital/FinancingOffersResource.d.ts +130 -0
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +126 -0
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +26 -0
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +26 -0
- package/types/TokensResource.d.ts +44 -0
- package/types/Transfers.d.ts +9 -0
- package/types/TransfersResource.d.ts +7 -0
- package/types/TransitBalances.d.ts +40 -0
- package/types/Treasury/FinancialAccountFeatures.d.ts +7 -0
- package/types/Treasury/FinancialAccounts.d.ts +5 -0
- package/types/Treasury/FinancialAccountsResource.d.ts +37 -0
- package/types/Treasury/OutboundTransfers.d.ts +26 -0
- package/types/Treasury/OutboundTransfersResource.d.ts +26 -0
- package/types/Treasury/ReceivedCredits.d.ts +26 -0
- package/types/Treasury/ReceivedDebits.d.ts +31 -0
- package/types/V2/Billing/BillSettingVersions.d.ts +97 -0
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/BillSettings.d.ts +120 -0
- package/types/V2/Billing/BillSettingsResource.d.ts +241 -0
- package/types/V2/Billing/Cadences.d.ts +735 -0
- package/types/V2/Billing/CadencesResource.d.ts +516 -0
- package/types/V2/Billing/CollectionSettingVersions.d.ts +318 -0
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +62 -0
- package/types/V2/Billing/CollectionSettings.d.ts +341 -0
- package/types/V2/Billing/CollectionSettingsResource.d.ts +683 -0
- package/types/V2/Billing/CustomPricingUnits.d.ts +56 -0
- package/types/V2/Billing/CustomPricingUnitsResource.d.ts +122 -0
- package/types/V2/Billing/IntentActions.d.ts +459 -0
- package/types/V2/Billing/Intents/ActionsResource.d.ts +58 -0
- package/types/V2/Billing/Intents.d.ts +117 -0
- package/types/V2/Billing/IntentsResource.d.ts +575 -0
- package/types/V2/Billing/LicenseFeeSubscriptions.d.ts +64 -0
- package/types/V2/Billing/LicenseFeeSubscriptionsResource.d.ts +28 -0
- package/types/V2/Billing/LicenseFeeVersions.d.ts +106 -0
- package/types/V2/Billing/LicenseFees/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/LicenseFees.d.ts +164 -0
- package/types/V2/Billing/LicenseFeesResource.d.ts +290 -0
- package/types/V2/Billing/LicensedItems.d.ts +73 -0
- package/types/V2/Billing/LicensedItemsResource.d.ts +157 -0
- package/types/V2/Billing/MeterEvents.d.ts +1 -2
- package/types/V2/Billing/MeteredItems.d.ts +101 -0
- package/types/V2/Billing/MeteredItemsResource.d.ts +189 -0
- package/types/V2/Billing/PricingPlanComponents.d.ts +109 -0
- package/types/V2/Billing/PricingPlanSubscriptionComponents.d.ts +57 -0
- package/types/V2/Billing/PricingPlanSubscriptions/ComponentsResource.d.ts +40 -0
- package/types/V2/Billing/PricingPlanSubscriptions.d.ts +144 -0
- package/types/V2/Billing/PricingPlanSubscriptionsResource.d.ts +120 -0
- package/types/V2/Billing/PricingPlanVersions.d.ts +49 -0
- package/types/V2/Billing/PricingPlans/ComponentsResource.d.ts +197 -0
- package/types/V2/Billing/PricingPlans/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/PricingPlans.d.ts +84 -0
- package/types/V2/Billing/PricingPlansResource.d.ts +151 -0
- package/types/V2/Billing/Profiles.d.ts +70 -0
- package/types/V2/Billing/ProfilesResource.d.ts +150 -0
- package/types/V2/Billing/RateCardRates.d.ts +144 -0
- package/types/V2/Billing/RateCardSubscriptions.d.ts +144 -0
- package/types/V2/Billing/RateCardSubscriptionsResource.d.ts +157 -0
- package/types/V2/Billing/RateCardVersions.d.ts +39 -0
- package/types/V2/Billing/RateCards/RatesResource.d.ts +203 -0
- package/types/V2/Billing/RateCards/VersionsResource.d.ts +58 -0
- package/types/V2/Billing/RateCards.d.ts +98 -0
- package/types/V2/Billing/RateCardsResource.d.ts +162 -0
- package/types/V2/Billing/ServiceActions.d.ts +274 -0
- package/types/V2/Billing/ServiceActionsResource.d.ts +370 -0
- package/types/V2/Core/AccountLinks.d.ts +168 -0
- package/types/V2/Core/AccountLinksResource.d.ts +152 -0
- package/types/V2/Core/AccountPersons.d.ts +615 -0
- package/types/V2/Core/Accounts/PersonsResource.d.ts +1153 -0
- package/types/V2/Core/Accounts.d.ts +7478 -0
- package/types/V2/Core/AccountsResource.d.ts +6723 -0
- package/types/V2/Core/ClaimableSandboxes.d.ts +132 -0
- package/types/V2/Core/ClaimableSandboxesResource.d.ts +74 -0
- package/types/V2/Core/EventTypes.d.ts +8680 -10
- package/types/V2/Core/Events.d.ts +14 -0
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +160 -0
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +194 -0
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +116 -0
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +198 -0
- package/types/V2/FinancialAddressCreditSimulations.d.ts +27 -0
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +32 -0
- package/types/V2/MoneyManagement/Adjustments.d.ts +110 -0
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +83 -0
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +148 -0
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +172 -0
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +178 -0
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +126 -0
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +212 -0
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +144 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +170 -0
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +115 -0
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +283 -0
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +247 -0
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +97 -0
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +330 -0
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +256 -0
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +213 -0
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +201 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +93 -0
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +41 -0
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +113 -0
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +307 -0
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +78 -0
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +186 -0
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +48 -0
- package/types/V2/MoneyManagement/RecipientVerifications.d.ts +112 -0
- package/types/V2/MoneyManagement/RecipientVerificationsResource.d.ts +77 -0
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +162 -0
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +82 -0
- package/types/V2/MoneyManagement/Transactions.d.ts +177 -0
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +83 -0
- package/types/V2/Payments/OffSessionPayments.d.ts +326 -0
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +401 -0
- package/types/V2/Reporting/ReportRuns.d.ts +154 -0
- package/types/V2/Reporting/ReportRunsResource.d.ts +75 -0
- package/types/V2/Reporting/Reports.d.ts +120 -0
- package/types/V2/Reporting/ReportsResource.d.ts +30 -0
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +73 -0
- package/types/V2/TestHelpers/MoneyManagementResource.d.ts +49 -0
- package/types/WebhookEndpointsResource.d.ts +74 -0
- package/types/Webhooks.d.ts +2 -0
- package/types/apiVersion.d.ts +1 -2
- package/types/index.d.ts +233 -0
- package/types/lib.d.ts +10 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.FinancialAddresses = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.FinancialAddresses = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
credit: stripeMethod({
|
|
9
|
+
method: 'POST',
|
|
10
|
+
fullPath: '/v2/test_helpers/financial_addresses/{id}/credit',
|
|
11
|
+
}),
|
|
12
|
+
generateMicrodeposits: stripeMethod({
|
|
13
|
+
method: 'POST',
|
|
14
|
+
fullPath: '/v2/test_helpers/financial_addresses/{id}/generate_microdeposits',
|
|
15
|
+
}),
|
|
16
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.MoneyManagement = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../../StripeResource.js");
|
|
6
|
+
const stripeMethod = StripeResource_js_1.StripeResource.method;
|
|
7
|
+
exports.MoneyManagement = StripeResource_js_1.StripeResource.extend({
|
|
8
|
+
recipientVerifications: stripeMethod({
|
|
9
|
+
method: 'POST',
|
|
10
|
+
fullPath: '/v2/test_helpers/money_management/recipient_verifications',
|
|
11
|
+
}),
|
|
12
|
+
});
|
package/cjs/resources.js
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.Climate = exports.Checkout = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = void 0;
|
|
4
|
+
exports.SetupIntents = exports.SetupAttempts = exports.Reviews = exports.Refunds = exports.Quotes = exports.PromotionCodes = exports.Products = exports.Prices = exports.Plans = exports.Payouts = exports.PaymentRecords = exports.PaymentMethods = exports.PaymentMethodDomains = exports.PaymentMethodConfigurations = exports.PaymentLinks = exports.PaymentIntents = exports.PaymentAttemptRecords = exports.Orders = exports.OAuth = exports.Margins = exports.Mandates = exports.Invoices = exports.InvoiceRenderingTemplates = exports.InvoicePayments = exports.InvoiceItems = exports.FxQuotes = exports.Files = exports.FileLinks = exports.ExternalAccounts = exports.ExchangeRates = exports.Events = exports.EphemeralKeys = exports.Disputes = exports.Customers = exports.CustomerSessions = exports.CreditNotes = exports.Coupons = exports.CountrySpecs = exports.ConfirmationTokens = exports.Charges = exports.BalanceTransactions = exports.BalanceSettings = exports.Balance = exports.ApplicationFees = exports.ApplePayDomains = exports.Accounts = exports.AccountSessions = exports.AccountNotices = exports.AccountLinks = exports.Account = void 0;
|
|
5
|
+
exports.V2 = exports.Treasury = exports.TestHelpers = exports.Terminal = exports.Tax = exports.Sigma = exports.Reporting = exports.Radar = exports.Privacy = exports.Issuing = exports.Identity = exports.Forwarding = exports.FinancialConnections = exports.Entitlements = exports.DelegatedCheckout = exports.Climate = exports.Checkout = exports.Capital = exports.BillingPortal = exports.Billing = exports.Apps = exports.WebhookEndpoints = exports.Transfers = exports.Topups = exports.Tokens = exports.TaxRates = exports.TaxIds = exports.TaxCodes = exports.Subscriptions = exports.SubscriptionSchedules = exports.SubscriptionItems = exports.Sources = exports.ShippingRates = void 0;
|
|
6
6
|
const ResourceNamespace_js_1 = require("./ResourceNamespace.js");
|
|
7
|
+
const AccountLinks_js_1 = require("./resources/V2/Core/AccountLinks.js");
|
|
7
8
|
const Accounts_js_1 = require("./resources/FinancialConnections/Accounts.js");
|
|
9
|
+
const Accounts_js_2 = require("./resources/V2/Core/Accounts.js");
|
|
8
10
|
const ActiveEntitlements_js_1 = require("./resources/Entitlements/ActiveEntitlements.js");
|
|
11
|
+
const Adjustments_js_1 = require("./resources/V2/MoneyManagement/Adjustments.js");
|
|
9
12
|
const Alerts_js_1 = require("./resources/Billing/Alerts.js");
|
|
13
|
+
const Associations_js_1 = require("./resources/Tax/Associations.js");
|
|
10
14
|
const Authorizations_js_1 = require("./resources/Issuing/Authorizations.js");
|
|
11
15
|
const Authorizations_js_2 = require("./resources/TestHelpers/Issuing/Authorizations.js");
|
|
16
|
+
const BillSettings_js_1 = require("./resources/V2/Billing/BillSettings.js");
|
|
17
|
+
const BlocklistEntries_js_1 = require("./resources/Identity/BlocklistEntries.js");
|
|
18
|
+
const Cadences_js_1 = require("./resources/V2/Billing/Cadences.js");
|
|
12
19
|
const Calculations_js_1 = require("./resources/Tax/Calculations.js");
|
|
13
20
|
const Cardholders_js_1 = require("./resources/Issuing/Cardholders.js");
|
|
14
21
|
const Cards_js_1 = require("./resources/Issuing/Cards.js");
|
|
15
22
|
const Cards_js_2 = require("./resources/TestHelpers/Issuing/Cards.js");
|
|
23
|
+
const ClaimableSandboxes_js_1 = require("./resources/V2/Core/ClaimableSandboxes.js");
|
|
24
|
+
const CollectionSettings_js_1 = require("./resources/V2/Billing/CollectionSettings.js");
|
|
16
25
|
const Configurations_js_1 = require("./resources/BillingPortal/Configurations.js");
|
|
17
26
|
const Configurations_js_2 = require("./resources/Terminal/Configurations.js");
|
|
18
27
|
const ConfirmationTokens_js_1 = require("./resources/TestHelpers/ConfirmationTokens.js");
|
|
@@ -21,16 +30,35 @@ const CreditBalanceSummary_js_1 = require("./resources/Billing/CreditBalanceSumm
|
|
|
21
30
|
const CreditBalanceTransactions_js_1 = require("./resources/Billing/CreditBalanceTransactions.js");
|
|
22
31
|
const CreditGrants_js_1 = require("./resources/Billing/CreditGrants.js");
|
|
23
32
|
const CreditReversals_js_1 = require("./resources/Treasury/CreditReversals.js");
|
|
33
|
+
const CreditUnderwritingRecords_js_1 = require("./resources/Issuing/CreditUnderwritingRecords.js");
|
|
34
|
+
const CustomPricingUnits_js_1 = require("./resources/V2/Billing/CustomPricingUnits.js");
|
|
24
35
|
const Customers_js_1 = require("./resources/TestHelpers/Customers.js");
|
|
25
36
|
const DebitReversals_js_1 = require("./resources/Treasury/DebitReversals.js");
|
|
37
|
+
const DisputeSettlementDetails_js_1 = require("./resources/Issuing/DisputeSettlementDetails.js");
|
|
26
38
|
const Disputes_js_1 = require("./resources/Issuing/Disputes.js");
|
|
27
39
|
const EarlyFraudWarnings_js_1 = require("./resources/Radar/EarlyFraudWarnings.js");
|
|
28
40
|
const EventDestinations_js_1 = require("./resources/V2/Core/EventDestinations.js");
|
|
29
41
|
const Events_js_1 = require("./resources/V2/Core/Events.js");
|
|
30
42
|
const Features_js_1 = require("./resources/Entitlements/Features.js");
|
|
31
43
|
const FinancialAccounts_js_1 = require("./resources/Treasury/FinancialAccounts.js");
|
|
44
|
+
const FinancialAccounts_js_2 = require("./resources/V2/MoneyManagement/FinancialAccounts.js");
|
|
45
|
+
const FinancialAddresses_js_1 = require("./resources/V2/MoneyManagement/FinancialAddresses.js");
|
|
46
|
+
const FinancialAddresses_js_2 = require("./resources/V2/TestHelpers/FinancialAddresses.js");
|
|
47
|
+
const FinancingOffers_js_1 = require("./resources/Capital/FinancingOffers.js");
|
|
48
|
+
const FinancingOffers_js_2 = require("./resources/TestHelpers/Capital/FinancingOffers.js");
|
|
49
|
+
const FinancingSummary_js_1 = require("./resources/Capital/FinancingSummary.js");
|
|
50
|
+
const FinancingTransactions_js_1 = require("./resources/Capital/FinancingTransactions.js");
|
|
51
|
+
const Forms_js_1 = require("./resources/Tax/Forms.js");
|
|
52
|
+
const FraudLiabilityDebits_js_1 = require("./resources/Issuing/FraudLiabilityDebits.js");
|
|
53
|
+
const GbBankAccounts_js_1 = require("./resources/V2/Core/Vault/GbBankAccounts.js");
|
|
32
54
|
const InboundTransfers_js_1 = require("./resources/TestHelpers/Treasury/InboundTransfers.js");
|
|
33
55
|
const InboundTransfers_js_2 = require("./resources/Treasury/InboundTransfers.js");
|
|
56
|
+
const InboundTransfers_js_3 = require("./resources/V2/MoneyManagement/InboundTransfers.js");
|
|
57
|
+
const Institutions_js_1 = require("./resources/FinancialConnections/Institutions.js");
|
|
58
|
+
const Intents_js_1 = require("./resources/V2/Billing/Intents.js");
|
|
59
|
+
const LicenseFeeSubscriptions_js_1 = require("./resources/V2/Billing/LicenseFeeSubscriptions.js");
|
|
60
|
+
const LicenseFees_js_1 = require("./resources/V2/Billing/LicenseFees.js");
|
|
61
|
+
const LicensedItems_js_1 = require("./resources/V2/Billing/LicensedItems.js");
|
|
34
62
|
const Locations_js_1 = require("./resources/Terminal/Locations.js");
|
|
35
63
|
const MeterEventAdjustments_js_1 = require("./resources/Billing/MeterEventAdjustments.js");
|
|
36
64
|
const MeterEventAdjustments_js_2 = require("./resources/V2/Billing/MeterEventAdjustments.js");
|
|
@@ -38,29 +66,55 @@ const MeterEventSession_js_1 = require("./resources/V2/Billing/MeterEventSession
|
|
|
38
66
|
const MeterEventStream_js_1 = require("./resources/V2/Billing/MeterEventStream.js");
|
|
39
67
|
const MeterEvents_js_1 = require("./resources/Billing/MeterEvents.js");
|
|
40
68
|
const MeterEvents_js_2 = require("./resources/V2/Billing/MeterEvents.js");
|
|
69
|
+
const MeterUsage_js_1 = require("./resources/Billing/Analytics/MeterUsage.js");
|
|
70
|
+
const MeteredItems_js_1 = require("./resources/V2/Billing/MeteredItems.js");
|
|
41
71
|
const Meters_js_1 = require("./resources/Billing/Meters.js");
|
|
72
|
+
const MoneyManagement_js_1 = require("./resources/V2/TestHelpers/MoneyManagement.js");
|
|
73
|
+
const OffSessionPayments_js_1 = require("./resources/V2/Payments/OffSessionPayments.js");
|
|
74
|
+
const OnboardingLinks_js_1 = require("./resources/Terminal/OnboardingLinks.js");
|
|
42
75
|
const Orders_js_1 = require("./resources/Climate/Orders.js");
|
|
76
|
+
const OutboundPaymentQuotes_js_1 = require("./resources/V2/MoneyManagement/OutboundPaymentQuotes.js");
|
|
43
77
|
const OutboundPayments_js_1 = require("./resources/TestHelpers/Treasury/OutboundPayments.js");
|
|
44
78
|
const OutboundPayments_js_2 = require("./resources/Treasury/OutboundPayments.js");
|
|
79
|
+
const OutboundPayments_js_3 = require("./resources/V2/MoneyManagement/OutboundPayments.js");
|
|
80
|
+
const OutboundSetupIntents_js_1 = require("./resources/V2/MoneyManagement/OutboundSetupIntents.js");
|
|
45
81
|
const OutboundTransfers_js_1 = require("./resources/TestHelpers/Treasury/OutboundTransfers.js");
|
|
46
82
|
const OutboundTransfers_js_2 = require("./resources/Treasury/OutboundTransfers.js");
|
|
83
|
+
const OutboundTransfers_js_3 = require("./resources/V2/MoneyManagement/OutboundTransfers.js");
|
|
84
|
+
const PayoutMethods_js_1 = require("./resources/V2/MoneyManagement/PayoutMethods.js");
|
|
85
|
+
const PayoutMethodsBankAccountSpec_js_1 = require("./resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js");
|
|
47
86
|
const PersonalizationDesigns_js_1 = require("./resources/Issuing/PersonalizationDesigns.js");
|
|
48
87
|
const PersonalizationDesigns_js_2 = require("./resources/TestHelpers/Issuing/PersonalizationDesigns.js");
|
|
49
88
|
const PhysicalBundles_js_1 = require("./resources/Issuing/PhysicalBundles.js");
|
|
89
|
+
const PricingPlanSubscriptions_js_1 = require("./resources/V2/Billing/PricingPlanSubscriptions.js");
|
|
90
|
+
const PricingPlans_js_1 = require("./resources/V2/Billing/PricingPlans.js");
|
|
50
91
|
const Products_js_1 = require("./resources/Climate/Products.js");
|
|
92
|
+
const Profiles_js_1 = require("./resources/V2/Billing/Profiles.js");
|
|
93
|
+
const Programs_js_1 = require("./resources/Issuing/Programs.js");
|
|
94
|
+
const RateCardSubscriptions_js_1 = require("./resources/V2/Billing/RateCardSubscriptions.js");
|
|
95
|
+
const RateCards_js_1 = require("./resources/V2/Billing/RateCards.js");
|
|
96
|
+
const ReaderCollectedData_js_1 = require("./resources/Terminal/ReaderCollectedData.js");
|
|
51
97
|
const Readers_js_1 = require("./resources/Terminal/Readers.js");
|
|
52
98
|
const Readers_js_2 = require("./resources/TestHelpers/Terminal/Readers.js");
|
|
53
99
|
const ReceivedCredits_js_1 = require("./resources/TestHelpers/Treasury/ReceivedCredits.js");
|
|
54
100
|
const ReceivedCredits_js_2 = require("./resources/Treasury/ReceivedCredits.js");
|
|
101
|
+
const ReceivedCredits_js_3 = require("./resources/V2/MoneyManagement/ReceivedCredits.js");
|
|
55
102
|
const ReceivedDebits_js_1 = require("./resources/TestHelpers/Treasury/ReceivedDebits.js");
|
|
56
103
|
const ReceivedDebits_js_2 = require("./resources/Treasury/ReceivedDebits.js");
|
|
104
|
+
const ReceivedDebits_js_3 = require("./resources/V2/MoneyManagement/ReceivedDebits.js");
|
|
105
|
+
const RecipientVerifications_js_1 = require("./resources/V2/MoneyManagement/RecipientVerifications.js");
|
|
106
|
+
const RedactionJobs_js_1 = require("./resources/Privacy/RedactionJobs.js");
|
|
57
107
|
const Refunds_js_1 = require("./resources/TestHelpers/Refunds.js");
|
|
58
108
|
const Registrations_js_1 = require("./resources/Tax/Registrations.js");
|
|
59
109
|
const ReportRuns_js_1 = require("./resources/Reporting/ReportRuns.js");
|
|
110
|
+
const ReportRuns_js_2 = require("./resources/V2/Reporting/ReportRuns.js");
|
|
60
111
|
const ReportTypes_js_1 = require("./resources/Reporting/ReportTypes.js");
|
|
112
|
+
const Reports_js_1 = require("./resources/V2/Reporting/Reports.js");
|
|
113
|
+
const RequestedSessions_js_1 = require("./resources/DelegatedCheckout/RequestedSessions.js");
|
|
61
114
|
const Requests_js_1 = require("./resources/Forwarding/Requests.js");
|
|
62
115
|
const ScheduledQueryRuns_js_1 = require("./resources/Sigma/ScheduledQueryRuns.js");
|
|
63
116
|
const Secrets_js_1 = require("./resources/Apps/Secrets.js");
|
|
117
|
+
const ServiceActions_js_1 = require("./resources/V2/Billing/ServiceActions.js");
|
|
64
118
|
const Sessions_js_1 = require("./resources/BillingPortal/Sessions.js");
|
|
65
119
|
const Sessions_js_2 = require("./resources/Checkout/Sessions.js");
|
|
66
120
|
const Sessions_js_3 = require("./resources/FinancialConnections/Sessions.js");
|
|
@@ -69,23 +123,28 @@ const Suppliers_js_1 = require("./resources/Climate/Suppliers.js");
|
|
|
69
123
|
const TestClocks_js_1 = require("./resources/TestHelpers/TestClocks.js");
|
|
70
124
|
const Tokens_js_1 = require("./resources/Issuing/Tokens.js");
|
|
71
125
|
const TransactionEntries_js_1 = require("./resources/Treasury/TransactionEntries.js");
|
|
126
|
+
const TransactionEntries_js_2 = require("./resources/V2/MoneyManagement/TransactionEntries.js");
|
|
72
127
|
const Transactions_js_1 = require("./resources/FinancialConnections/Transactions.js");
|
|
73
128
|
const Transactions_js_2 = require("./resources/Issuing/Transactions.js");
|
|
74
129
|
const Transactions_js_3 = require("./resources/Tax/Transactions.js");
|
|
75
130
|
const Transactions_js_4 = require("./resources/TestHelpers/Issuing/Transactions.js");
|
|
76
131
|
const Transactions_js_5 = require("./resources/Treasury/Transactions.js");
|
|
132
|
+
const Transactions_js_6 = require("./resources/V2/MoneyManagement/Transactions.js");
|
|
133
|
+
const UsBankAccounts_js_1 = require("./resources/V2/Core/Vault/UsBankAccounts.js");
|
|
77
134
|
const ValueListItems_js_1 = require("./resources/Radar/ValueListItems.js");
|
|
78
135
|
const ValueLists_js_1 = require("./resources/Radar/ValueLists.js");
|
|
79
136
|
const VerificationReports_js_1 = require("./resources/Identity/VerificationReports.js");
|
|
80
137
|
const VerificationSessions_js_1 = require("./resources/Identity/VerificationSessions.js");
|
|
81
|
-
var
|
|
82
|
-
Object.defineProperty(exports, "Account", { enumerable: true, get: function () { return
|
|
83
|
-
var
|
|
84
|
-
Object.defineProperty(exports, "AccountLinks", { enumerable: true, get: function () { return
|
|
138
|
+
var Accounts_js_3 = require("./resources/Accounts.js");
|
|
139
|
+
Object.defineProperty(exports, "Account", { enumerable: true, get: function () { return Accounts_js_3.Accounts; } });
|
|
140
|
+
var AccountLinks_js_2 = require("./resources/AccountLinks.js");
|
|
141
|
+
Object.defineProperty(exports, "AccountLinks", { enumerable: true, get: function () { return AccountLinks_js_2.AccountLinks; } });
|
|
142
|
+
var AccountNotices_js_1 = require("./resources/AccountNotices.js");
|
|
143
|
+
Object.defineProperty(exports, "AccountNotices", { enumerable: true, get: function () { return AccountNotices_js_1.AccountNotices; } });
|
|
85
144
|
var AccountSessions_js_1 = require("./resources/AccountSessions.js");
|
|
86
145
|
Object.defineProperty(exports, "AccountSessions", { enumerable: true, get: function () { return AccountSessions_js_1.AccountSessions; } });
|
|
87
|
-
var
|
|
88
|
-
Object.defineProperty(exports, "Accounts", { enumerable: true, get: function () { return
|
|
146
|
+
var Accounts_js_4 = require("./resources/Accounts.js");
|
|
147
|
+
Object.defineProperty(exports, "Accounts", { enumerable: true, get: function () { return Accounts_js_4.Accounts; } });
|
|
89
148
|
var ApplePayDomains_js_1 = require("./resources/ApplePayDomains.js");
|
|
90
149
|
Object.defineProperty(exports, "ApplePayDomains", { enumerable: true, get: function () { return ApplePayDomains_js_1.ApplePayDomains; } });
|
|
91
150
|
var ApplicationFees_js_1 = require("./resources/ApplicationFees.js");
|
|
@@ -118,10 +177,14 @@ var Events_js_2 = require("./resources/Events.js");
|
|
|
118
177
|
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return Events_js_2.Events; } });
|
|
119
178
|
var ExchangeRates_js_1 = require("./resources/ExchangeRates.js");
|
|
120
179
|
Object.defineProperty(exports, "ExchangeRates", { enumerable: true, get: function () { return ExchangeRates_js_1.ExchangeRates; } });
|
|
180
|
+
var ExternalAccounts_js_1 = require("./resources/ExternalAccounts.js");
|
|
181
|
+
Object.defineProperty(exports, "ExternalAccounts", { enumerable: true, get: function () { return ExternalAccounts_js_1.ExternalAccounts; } });
|
|
121
182
|
var FileLinks_js_1 = require("./resources/FileLinks.js");
|
|
122
183
|
Object.defineProperty(exports, "FileLinks", { enumerable: true, get: function () { return FileLinks_js_1.FileLinks; } });
|
|
123
184
|
var Files_js_1 = require("./resources/Files.js");
|
|
124
185
|
Object.defineProperty(exports, "Files", { enumerable: true, get: function () { return Files_js_1.Files; } });
|
|
186
|
+
var FxQuotes_js_1 = require("./resources/FxQuotes.js");
|
|
187
|
+
Object.defineProperty(exports, "FxQuotes", { enumerable: true, get: function () { return FxQuotes_js_1.FxQuotes; } });
|
|
125
188
|
var InvoiceItems_js_1 = require("./resources/InvoiceItems.js");
|
|
126
189
|
Object.defineProperty(exports, "InvoiceItems", { enumerable: true, get: function () { return InvoiceItems_js_1.InvoiceItems; } });
|
|
127
190
|
var InvoicePayments_js_1 = require("./resources/InvoicePayments.js");
|
|
@@ -132,8 +195,12 @@ var Invoices_js_1 = require("./resources/Invoices.js");
|
|
|
132
195
|
Object.defineProperty(exports, "Invoices", { enumerable: true, get: function () { return Invoices_js_1.Invoices; } });
|
|
133
196
|
var Mandates_js_1 = require("./resources/Mandates.js");
|
|
134
197
|
Object.defineProperty(exports, "Mandates", { enumerable: true, get: function () { return Mandates_js_1.Mandates; } });
|
|
198
|
+
var Margins_js_1 = require("./resources/Margins.js");
|
|
199
|
+
Object.defineProperty(exports, "Margins", { enumerable: true, get: function () { return Margins_js_1.Margins; } });
|
|
135
200
|
var OAuth_js_1 = require("./resources/OAuth.js");
|
|
136
201
|
Object.defineProperty(exports, "OAuth", { enumerable: true, get: function () { return OAuth_js_1.OAuth; } });
|
|
202
|
+
var Orders_js_2 = require("./resources/Orders.js");
|
|
203
|
+
Object.defineProperty(exports, "Orders", { enumerable: true, get: function () { return Orders_js_2.Orders; } });
|
|
137
204
|
var PaymentAttemptRecords_js_1 = require("./resources/PaymentAttemptRecords.js");
|
|
138
205
|
Object.defineProperty(exports, "PaymentAttemptRecords", { enumerable: true, get: function () { return PaymentAttemptRecords_js_1.PaymentAttemptRecords; } });
|
|
139
206
|
var PaymentIntents_js_1 = require("./resources/PaymentIntents.js");
|
|
@@ -201,11 +268,19 @@ exports.Billing = (0, ResourceNamespace_js_1.resourceNamespace)('billing', {
|
|
|
201
268
|
MeterEventAdjustments: MeterEventAdjustments_js_1.MeterEventAdjustments,
|
|
202
269
|
MeterEvents: MeterEvents_js_1.MeterEvents,
|
|
203
270
|
Meters: Meters_js_1.Meters,
|
|
271
|
+
Analytics: (0, ResourceNamespace_js_1.resourceNamespace)('analytics', {
|
|
272
|
+
MeterUsage: MeterUsage_js_1.MeterUsage,
|
|
273
|
+
}),
|
|
204
274
|
});
|
|
205
275
|
exports.BillingPortal = (0, ResourceNamespace_js_1.resourceNamespace)('billingPortal', {
|
|
206
276
|
Configurations: Configurations_js_1.Configurations,
|
|
207
277
|
Sessions: Sessions_js_1.Sessions,
|
|
208
278
|
});
|
|
279
|
+
exports.Capital = (0, ResourceNamespace_js_1.resourceNamespace)('capital', {
|
|
280
|
+
FinancingOffers: FinancingOffers_js_1.FinancingOffers,
|
|
281
|
+
FinancingSummary: FinancingSummary_js_1.FinancingSummary,
|
|
282
|
+
FinancingTransactions: FinancingTransactions_js_1.FinancingTransactions,
|
|
283
|
+
});
|
|
209
284
|
exports.Checkout = (0, ResourceNamespace_js_1.resourceNamespace)('checkout', {
|
|
210
285
|
Sessions: Sessions_js_2.Sessions,
|
|
211
286
|
});
|
|
@@ -214,12 +289,16 @@ exports.Climate = (0, ResourceNamespace_js_1.resourceNamespace)('climate', {
|
|
|
214
289
|
Products: Products_js_1.Products,
|
|
215
290
|
Suppliers: Suppliers_js_1.Suppliers,
|
|
216
291
|
});
|
|
292
|
+
exports.DelegatedCheckout = (0, ResourceNamespace_js_1.resourceNamespace)('delegatedCheckout', {
|
|
293
|
+
RequestedSessions: RequestedSessions_js_1.RequestedSessions,
|
|
294
|
+
});
|
|
217
295
|
exports.Entitlements = (0, ResourceNamespace_js_1.resourceNamespace)('entitlements', {
|
|
218
296
|
ActiveEntitlements: ActiveEntitlements_js_1.ActiveEntitlements,
|
|
219
297
|
Features: Features_js_1.Features,
|
|
220
298
|
});
|
|
221
299
|
exports.FinancialConnections = (0, ResourceNamespace_js_1.resourceNamespace)('financialConnections', {
|
|
222
300
|
Accounts: Accounts_js_1.Accounts,
|
|
301
|
+
Institutions: Institutions_js_1.Institutions,
|
|
223
302
|
Sessions: Sessions_js_3.Sessions,
|
|
224
303
|
Transactions: Transactions_js_1.Transactions,
|
|
225
304
|
});
|
|
@@ -227,6 +306,7 @@ exports.Forwarding = (0, ResourceNamespace_js_1.resourceNamespace)('forwarding',
|
|
|
227
306
|
Requests: Requests_js_1.Requests,
|
|
228
307
|
});
|
|
229
308
|
exports.Identity = (0, ResourceNamespace_js_1.resourceNamespace)('identity', {
|
|
309
|
+
BlocklistEntries: BlocklistEntries_js_1.BlocklistEntries,
|
|
230
310
|
VerificationReports: VerificationReports_js_1.VerificationReports,
|
|
231
311
|
VerificationSessions: VerificationSessions_js_1.VerificationSessions,
|
|
232
312
|
});
|
|
@@ -234,12 +314,19 @@ exports.Issuing = (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
|
|
|
234
314
|
Authorizations: Authorizations_js_1.Authorizations,
|
|
235
315
|
Cardholders: Cardholders_js_1.Cardholders,
|
|
236
316
|
Cards: Cards_js_1.Cards,
|
|
317
|
+
CreditUnderwritingRecords: CreditUnderwritingRecords_js_1.CreditUnderwritingRecords,
|
|
318
|
+
DisputeSettlementDetails: DisputeSettlementDetails_js_1.DisputeSettlementDetails,
|
|
237
319
|
Disputes: Disputes_js_1.Disputes,
|
|
320
|
+
FraudLiabilityDebits: FraudLiabilityDebits_js_1.FraudLiabilityDebits,
|
|
238
321
|
PersonalizationDesigns: PersonalizationDesigns_js_1.PersonalizationDesigns,
|
|
239
322
|
PhysicalBundles: PhysicalBundles_js_1.PhysicalBundles,
|
|
323
|
+
Programs: Programs_js_1.Programs,
|
|
240
324
|
Tokens: Tokens_js_1.Tokens,
|
|
241
325
|
Transactions: Transactions_js_2.Transactions,
|
|
242
326
|
});
|
|
327
|
+
exports.Privacy = (0, ResourceNamespace_js_1.resourceNamespace)('privacy', {
|
|
328
|
+
RedactionJobs: RedactionJobs_js_1.RedactionJobs,
|
|
329
|
+
});
|
|
243
330
|
exports.Radar = (0, ResourceNamespace_js_1.resourceNamespace)('radar', {
|
|
244
331
|
EarlyFraudWarnings: EarlyFraudWarnings_js_1.EarlyFraudWarnings,
|
|
245
332
|
ValueListItems: ValueListItems_js_1.ValueListItems,
|
|
@@ -253,7 +340,9 @@ exports.Sigma = (0, ResourceNamespace_js_1.resourceNamespace)('sigma', {
|
|
|
253
340
|
ScheduledQueryRuns: ScheduledQueryRuns_js_1.ScheduledQueryRuns,
|
|
254
341
|
});
|
|
255
342
|
exports.Tax = (0, ResourceNamespace_js_1.resourceNamespace)('tax', {
|
|
343
|
+
Associations: Associations_js_1.Associations,
|
|
256
344
|
Calculations: Calculations_js_1.Calculations,
|
|
345
|
+
Forms: Forms_js_1.Forms,
|
|
257
346
|
Registrations: Registrations_js_1.Registrations,
|
|
258
347
|
Settings: Settings_js_1.Settings,
|
|
259
348
|
Transactions: Transactions_js_3.Transactions,
|
|
@@ -262,6 +351,8 @@ exports.Terminal = (0, ResourceNamespace_js_1.resourceNamespace)('terminal', {
|
|
|
262
351
|
Configurations: Configurations_js_2.Configurations,
|
|
263
352
|
ConnectionTokens: ConnectionTokens_js_1.ConnectionTokens,
|
|
264
353
|
Locations: Locations_js_1.Locations,
|
|
354
|
+
OnboardingLinks: OnboardingLinks_js_1.OnboardingLinks,
|
|
355
|
+
ReaderCollectedData: ReaderCollectedData_js_1.ReaderCollectedData,
|
|
265
356
|
Readers: Readers_js_1.Readers,
|
|
266
357
|
});
|
|
267
358
|
exports.TestHelpers = (0, ResourceNamespace_js_1.resourceNamespace)('testHelpers', {
|
|
@@ -269,6 +360,9 @@ exports.TestHelpers = (0, ResourceNamespace_js_1.resourceNamespace)('testHelpers
|
|
|
269
360
|
Customers: Customers_js_1.Customers,
|
|
270
361
|
Refunds: Refunds_js_1.Refunds,
|
|
271
362
|
TestClocks: TestClocks_js_1.TestClocks,
|
|
363
|
+
Capital: (0, ResourceNamespace_js_1.resourceNamespace)('capital', {
|
|
364
|
+
FinancingOffers: FinancingOffers_js_2.FinancingOffers,
|
|
365
|
+
}),
|
|
272
366
|
Issuing: (0, ResourceNamespace_js_1.resourceNamespace)('issuing', {
|
|
273
367
|
Authorizations: Authorizations_js_2.Authorizations,
|
|
274
368
|
Cards: Cards_js_2.Cards,
|
|
@@ -300,13 +394,63 @@ exports.Treasury = (0, ResourceNamespace_js_1.resourceNamespace)('treasury', {
|
|
|
300
394
|
});
|
|
301
395
|
exports.V2 = (0, ResourceNamespace_js_1.resourceNamespace)('v2', {
|
|
302
396
|
Billing: (0, ResourceNamespace_js_1.resourceNamespace)('billing', {
|
|
397
|
+
BillSettings: BillSettings_js_1.BillSettings,
|
|
398
|
+
Cadences: Cadences_js_1.Cadences,
|
|
399
|
+
CollectionSettings: CollectionSettings_js_1.CollectionSettings,
|
|
400
|
+
CustomPricingUnits: CustomPricingUnits_js_1.CustomPricingUnits,
|
|
401
|
+
Intents: Intents_js_1.Intents,
|
|
402
|
+
LicenseFeeSubscriptions: LicenseFeeSubscriptions_js_1.LicenseFeeSubscriptions,
|
|
403
|
+
LicenseFees: LicenseFees_js_1.LicenseFees,
|
|
404
|
+
LicensedItems: LicensedItems_js_1.LicensedItems,
|
|
303
405
|
MeterEventAdjustments: MeterEventAdjustments_js_2.MeterEventAdjustments,
|
|
304
406
|
MeterEventSession: MeterEventSession_js_1.MeterEventSession,
|
|
305
407
|
MeterEventStream: MeterEventStream_js_1.MeterEventStream,
|
|
306
408
|
MeterEvents: MeterEvents_js_2.MeterEvents,
|
|
409
|
+
MeteredItems: MeteredItems_js_1.MeteredItems,
|
|
410
|
+
PricingPlanSubscriptions: PricingPlanSubscriptions_js_1.PricingPlanSubscriptions,
|
|
411
|
+
PricingPlans: PricingPlans_js_1.PricingPlans,
|
|
412
|
+
Profiles: Profiles_js_1.Profiles,
|
|
413
|
+
RateCardSubscriptions: RateCardSubscriptions_js_1.RateCardSubscriptions,
|
|
414
|
+
RateCards: RateCards_js_1.RateCards,
|
|
415
|
+
ServiceActions: ServiceActions_js_1.ServiceActions,
|
|
307
416
|
}),
|
|
308
417
|
Core: (0, ResourceNamespace_js_1.resourceNamespace)('core', {
|
|
418
|
+
AccountLinks: AccountLinks_js_1.AccountLinks,
|
|
419
|
+
Accounts: Accounts_js_2.Accounts,
|
|
420
|
+
ClaimableSandboxes: ClaimableSandboxes_js_1.ClaimableSandboxes,
|
|
309
421
|
EventDestinations: EventDestinations_js_1.EventDestinations,
|
|
310
422
|
Events: Events_js_1.Events,
|
|
423
|
+
Vault: (0, ResourceNamespace_js_1.resourceNamespace)('vault', {
|
|
424
|
+
GbBankAccounts: GbBankAccounts_js_1.GbBankAccounts,
|
|
425
|
+
UsBankAccounts: UsBankAccounts_js_1.UsBankAccounts,
|
|
426
|
+
}),
|
|
427
|
+
}),
|
|
428
|
+
MoneyManagement: (0, ResourceNamespace_js_1.resourceNamespace)('moneyManagement', {
|
|
429
|
+
Adjustments: Adjustments_js_1.Adjustments,
|
|
430
|
+
FinancialAccounts: FinancialAccounts_js_2.FinancialAccounts,
|
|
431
|
+
FinancialAddresses: FinancialAddresses_js_1.FinancialAddresses,
|
|
432
|
+
InboundTransfers: InboundTransfers_js_3.InboundTransfers,
|
|
433
|
+
OutboundPaymentQuotes: OutboundPaymentQuotes_js_1.OutboundPaymentQuotes,
|
|
434
|
+
OutboundPayments: OutboundPayments_js_3.OutboundPayments,
|
|
435
|
+
OutboundSetupIntents: OutboundSetupIntents_js_1.OutboundSetupIntents,
|
|
436
|
+
OutboundTransfers: OutboundTransfers_js_3.OutboundTransfers,
|
|
437
|
+
PayoutMethods: PayoutMethods_js_1.PayoutMethods,
|
|
438
|
+
PayoutMethodsBankAccountSpec: PayoutMethodsBankAccountSpec_js_1.PayoutMethodsBankAccountSpec,
|
|
439
|
+
ReceivedCredits: ReceivedCredits_js_3.ReceivedCredits,
|
|
440
|
+
ReceivedDebits: ReceivedDebits_js_3.ReceivedDebits,
|
|
441
|
+
RecipientVerifications: RecipientVerifications_js_1.RecipientVerifications,
|
|
442
|
+
TransactionEntries: TransactionEntries_js_2.TransactionEntries,
|
|
443
|
+
Transactions: Transactions_js_6.Transactions,
|
|
444
|
+
}),
|
|
445
|
+
Payment: (0, ResourceNamespace_js_1.resourceNamespace)('payment', {
|
|
446
|
+
OffSessionPayments: OffSessionPayments_js_1.OffSessionPayments,
|
|
447
|
+
}),
|
|
448
|
+
Reporting: (0, ResourceNamespace_js_1.resourceNamespace)('reporting', {
|
|
449
|
+
ReportRuns: ReportRuns_js_2.ReportRuns,
|
|
450
|
+
Reports: Reports_js_1.Reports,
|
|
451
|
+
}),
|
|
452
|
+
TestHelper: (0, ResourceNamespace_js_1.resourceNamespace)('testHelper', {
|
|
453
|
+
FinancialAddresses: FinancialAddresses_js_2.FinancialAddresses,
|
|
454
|
+
MoneyManagement: MoneyManagement_js_1.MoneyManagement,
|
|
311
455
|
}),
|
|
312
456
|
});
|
package/cjs/stripe.core.js
CHANGED
|
@@ -37,7 +37,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
37
37
|
];
|
|
38
38
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
39
39
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
40
|
-
Stripe.PACKAGE_VERSION = '19.
|
|
40
|
+
Stripe.PACKAGE_VERSION = '19.4.0-alpha.2';
|
|
41
41
|
Stripe.API_VERSION = apiVersion_js_1.ApiVersion;
|
|
42
42
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
43
43
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
package/esm/Error.js
CHANGED
|
@@ -24,6 +24,34 @@ export const generateV1Error = (rawStripeError) => {
|
|
|
24
24
|
export const generateV2Error = (rawStripeError) => {
|
|
25
25
|
switch (rawStripeError.type) {
|
|
26
26
|
// switchCases: The beginning of the section generated from our OpenAPI spec
|
|
27
|
+
case 'already_canceled':
|
|
28
|
+
return new AlreadyCanceledError(rawStripeError);
|
|
29
|
+
case 'already_exists':
|
|
30
|
+
return new AlreadyExistsError(rawStripeError);
|
|
31
|
+
case 'blocked_by_stripe':
|
|
32
|
+
return new BlockedByStripeError(rawStripeError);
|
|
33
|
+
case 'controlled_by_dashboard':
|
|
34
|
+
return new ControlledByDashboardError(rawStripeError);
|
|
35
|
+
case 'feature_not_enabled':
|
|
36
|
+
return new FeatureNotEnabledError(rawStripeError);
|
|
37
|
+
case 'financial_account_not_open':
|
|
38
|
+
return new FinancialAccountNotOpenError(rawStripeError);
|
|
39
|
+
case 'insufficient_funds':
|
|
40
|
+
return new InsufficientFundsError(rawStripeError);
|
|
41
|
+
case 'invalid_payment_method':
|
|
42
|
+
return new InvalidPaymentMethodError(rawStripeError);
|
|
43
|
+
case 'invalid_payout_method':
|
|
44
|
+
return new InvalidPayoutMethodError(rawStripeError);
|
|
45
|
+
case 'non_zero_balance':
|
|
46
|
+
return new NonZeroBalanceError(rawStripeError);
|
|
47
|
+
case 'not_cancelable':
|
|
48
|
+
return new NotCancelableError(rawStripeError);
|
|
49
|
+
case 'quota_exceeded':
|
|
50
|
+
return new QuotaExceededError(rawStripeError);
|
|
51
|
+
case 'rate_limit':
|
|
52
|
+
return new RateLimitError(rawStripeError);
|
|
53
|
+
case 'recipient_not_notifiable':
|
|
54
|
+
return new RecipientNotNotifiableError(rawStripeError);
|
|
27
55
|
case 'temporary_session_expired':
|
|
28
56
|
return new TemporarySessionExpiredError(rawStripeError);
|
|
29
57
|
// switchCases: The end of the section generated from our OpenAPI spec
|
|
@@ -177,6 +205,78 @@ export class StripeUnknownError extends StripeError {
|
|
|
177
205
|
}
|
|
178
206
|
}
|
|
179
207
|
// classDefinitions: The beginning of the section generated from our OpenAPI spec
|
|
208
|
+
export class AlreadyCanceledError extends StripeError {
|
|
209
|
+
constructor(rawStripeError = {}) {
|
|
210
|
+
super(rawStripeError, 'AlreadyCanceledError');
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
export class AlreadyExistsError extends StripeError {
|
|
214
|
+
constructor(rawStripeError = {}) {
|
|
215
|
+
super(rawStripeError, 'AlreadyExistsError');
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
export class BlockedByStripeError extends StripeError {
|
|
219
|
+
constructor(rawStripeError = {}) {
|
|
220
|
+
super(rawStripeError, 'BlockedByStripeError');
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
export class ControlledByDashboardError extends StripeError {
|
|
224
|
+
constructor(rawStripeError = {}) {
|
|
225
|
+
super(rawStripeError, 'ControlledByDashboardError');
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
export class FeatureNotEnabledError extends StripeError {
|
|
229
|
+
constructor(rawStripeError = {}) {
|
|
230
|
+
super(rawStripeError, 'FeatureNotEnabledError');
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
export class FinancialAccountNotOpenError extends StripeError {
|
|
234
|
+
constructor(rawStripeError = {}) {
|
|
235
|
+
super(rawStripeError, 'FinancialAccountNotOpenError');
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
export class InsufficientFundsError extends StripeError {
|
|
239
|
+
constructor(rawStripeError = {}) {
|
|
240
|
+
super(rawStripeError, 'InsufficientFundsError');
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
export class InvalidPaymentMethodError extends StripeError {
|
|
244
|
+
constructor(rawStripeError) {
|
|
245
|
+
super(rawStripeError, 'InvalidPaymentMethodError');
|
|
246
|
+
// @ts-ignore
|
|
247
|
+
this.invalid_param = this.raw.invalid_param;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
export class InvalidPayoutMethodError extends StripeError {
|
|
251
|
+
constructor(rawStripeError = {}) {
|
|
252
|
+
super(rawStripeError, 'InvalidPayoutMethodError');
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
export class NonZeroBalanceError extends StripeError {
|
|
256
|
+
constructor(rawStripeError = {}) {
|
|
257
|
+
super(rawStripeError, 'NonZeroBalanceError');
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
export class NotCancelableError extends StripeError {
|
|
261
|
+
constructor(rawStripeError = {}) {
|
|
262
|
+
super(rawStripeError, 'NotCancelableError');
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
export class QuotaExceededError extends StripeError {
|
|
266
|
+
constructor(rawStripeError = {}) {
|
|
267
|
+
super(rawStripeError, 'QuotaExceededError');
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
export class RateLimitError extends StripeError {
|
|
271
|
+
constructor(rawStripeError = {}) {
|
|
272
|
+
super(rawStripeError, 'RateLimitError');
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
export class RecipientNotNotifiableError extends StripeError {
|
|
276
|
+
constructor(rawStripeError = {}) {
|
|
277
|
+
super(rawStripeError, 'RecipientNotNotifiableError');
|
|
278
|
+
}
|
|
279
|
+
}
|
|
180
280
|
export class TemporarySessionExpiredError extends StripeError {
|
|
181
281
|
constructor(rawStripeError = {}) {
|
|
182
282
|
super(rawStripeError, 'TemporarySessionExpiredError');
|
package/esm/apiVersion.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const AccountNotices = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v1/account_notices/{account_notice}',
|
|
8
|
+
}),
|
|
9
|
+
update: stripeMethod({
|
|
10
|
+
method: 'POST',
|
|
11
|
+
fullPath: '/v1/account_notices/{account_notice}',
|
|
12
|
+
}),
|
|
13
|
+
list: stripeMethod({
|
|
14
|
+
method: 'GET',
|
|
15
|
+
fullPath: '/v1/account_notices',
|
|
16
|
+
methodType: 'list',
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const MeterUsage = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v1/billing/analytics/meter_usage',
|
|
8
|
+
}),
|
|
9
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const FinancingOffers = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v1/capital/financing_offers/{financing_offer}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v1/capital/financing_offers',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
markDelivered: stripeMethod({
|
|
15
|
+
method: 'POST',
|
|
16
|
+
fullPath: '/v1/capital/financing_offers/{financing_offer}/mark_delivered',
|
|
17
|
+
}),
|
|
18
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const FinancingSummary = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v1/capital/financing_summary',
|
|
8
|
+
}),
|
|
9
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const FinancingTransactions = StripeResource.extend({
|
|
5
|
+
retrieve: stripeMethod({
|
|
6
|
+
method: 'GET',
|
|
7
|
+
fullPath: '/v1/capital/financing_transactions/{financing_transaction}',
|
|
8
|
+
}),
|
|
9
|
+
list: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v1/capital/financing_transactions',
|
|
12
|
+
methodType: 'list',
|
|
13
|
+
}),
|
|
14
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const RequestedSessions = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({
|
|
6
|
+
method: 'POST',
|
|
7
|
+
fullPath: '/v1/delegated_checkout/requested_sessions',
|
|
8
|
+
}),
|
|
9
|
+
retrieve: stripeMethod({
|
|
10
|
+
method: 'GET',
|
|
11
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}',
|
|
12
|
+
}),
|
|
13
|
+
update: stripeMethod({
|
|
14
|
+
method: 'POST',
|
|
15
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}',
|
|
16
|
+
}),
|
|
17
|
+
confirm: stripeMethod({
|
|
18
|
+
method: 'POST',
|
|
19
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}/confirm',
|
|
20
|
+
}),
|
|
21
|
+
expire: stripeMethod({
|
|
22
|
+
method: 'POST',
|
|
23
|
+
fullPath: '/v1/delegated_checkout/requested_sessions/{requested_session}/expire',
|
|
24
|
+
}),
|
|
25
|
+
});
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../StripeResource.js';
|
|
3
|
+
const stripeMethod = StripeResource.method;
|
|
4
|
+
export const ExternalAccounts = StripeResource.extend({
|
|
5
|
+
create: stripeMethod({ method: 'POST', fullPath: '/v1/external_accounts' }),
|
|
6
|
+
retrieve: stripeMethod({
|
|
7
|
+
method: 'GET',
|
|
8
|
+
fullPath: '/v1/external_accounts/{id}',
|
|
9
|
+
}),
|
|
10
|
+
update: stripeMethod({
|
|
11
|
+
method: 'POST',
|
|
12
|
+
fullPath: '/v1/external_accounts/{id}',
|
|
13
|
+
}),
|
|
14
|
+
list: stripeMethod({
|
|
15
|
+
method: 'GET',
|
|
16
|
+
fullPath: '/v1/external_accounts',
|
|
17
|
+
methodType: 'list',
|
|
18
|
+
}),
|
|
19
|
+
del: stripeMethod({ method: 'DELETE', fullPath: '/v1/external_accounts/{id}' }),
|
|
20
|
+
});
|