stripe 20.1.0-beta.1 → 20.1.1
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 +49 -1499
- package/OPENAPI_VERSION +1 -1
- package/README.md +0 -1
- package/VERSION +1 -1
- package/cjs/Error.js +1 -115
- package/cjs/apiVersion.js +3 -2
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/Mandates.js +0 -5
- package/cjs/resources/PaymentIntents.js +0 -8
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Subscriptions.js +0 -4
- package/cjs/resources.js +2 -88
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +0 -100
- package/esm/apiVersion.js +2 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/Mandates.js +0 -5
- package/esm/resources/PaymentIntents.js +0 -8
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Subscriptions.js +0 -4
- package/esm/resources.js +0 -81
- package/esm/stripe.core.js +1 -1
- package/package.json +3 -3
- package/types/AccountLinks.d.ts +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +2 -47
- package/types/AccountSessionsResource.d.ts +0 -264
- package/types/Accounts.d.ts +25 -249
- package/types/AccountsResource.d.ts +114 -620
- package/types/ApplicationFeesResource.d.ts +2 -2
- package/types/Apps/Secrets.d.ts +1 -1
- package/types/Balance.d.ts +2 -2
- package/types/BalanceSettings.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +1 -1
- package/types/BankAccounts.d.ts +10 -12
- package/types/Billing/AlertTriggereds.d.ts +1 -1
- package/types/Billing/Alerts.d.ts +1 -1
- package/types/Billing/CreditBalanceSummary.d.ts +1 -1
- package/types/Billing/CreditBalanceSummaryResource.d.ts +2 -2
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +2 -2
- package/types/Billing/CreditGrants.d.ts +3 -3
- package/types/Billing/CreditGrantsResource.d.ts +3 -3
- package/types/Billing/MeterEvents.d.ts +1 -1
- package/types/Billing/MeterEventsResource.d.ts +1 -1
- package/types/BillingPortal/Configurations.d.ts +10 -3
- package/types/BillingPortal/ConfigurationsResource.d.ts +20 -6
- package/types/BillingPortal/Sessions.d.ts +7 -7
- package/types/BillingPortal/SessionsResource.d.ts +7 -7
- package/types/Capabilities.d.ts +16 -18
- package/types/Cards.d.ts +2 -7
- package/types/CashBalances.d.ts +3 -3
- package/types/Charges.d.ts +59 -179
- package/types/ChargesResource.d.ts +88 -3868
- package/types/Checkout/Sessions.d.ts +20 -297
- package/types/Checkout/SessionsResource.d.ts +59 -417
- package/types/Climate/Orders.d.ts +1 -1
- package/types/Climate/OrdersResource.d.ts +2 -2
- package/types/ConfirmationTokens.d.ts +8 -109
- package/types/Coupons.d.ts +3 -38
- package/types/CouponsResource.d.ts +2 -25
- package/types/CreditNoteLineItems.d.ts +3 -17
- package/types/CreditNotes.d.ts +8 -5
- package/types/CreditNotesResource.d.ts +5 -5
- package/types/CustomerBalanceTransactions.d.ts +9 -6
- package/types/CustomerCashBalanceTransactions.d.ts +13 -10
- package/types/CustomerSessions.d.ts +1 -42
- package/types/CustomerSessionsResource.d.ts +0 -41
- package/types/Customers.d.ts +8 -5
- package/types/CustomersResource.d.ts +21 -23
- package/types/Discounts.d.ts +6 -6
- package/types/Disputes.d.ts +3 -43
- package/types/DisputesResource.d.ts +1 -12
- package/types/Entitlements/ActiveEntitlements.d.ts +1 -1
- package/types/Errors.d.ts +0 -85
- package/types/EventTypes.d.ts +0 -630
- package/types/Events.d.ts +1 -97
- package/types/ExchangeRates.d.ts +2 -2
- package/types/FeeRefunds.d.ts +2 -2
- package/types/FileLinks.d.ts +1 -1
- package/types/FileLinksResource.d.ts +2 -2
- package/types/Files.d.ts +4 -4
- package/types/FilesResource.d.ts +3 -3
- package/types/FinancialConnections/Accounts.d.ts +4 -37
- package/types/FinancialConnections/AccountsResource.d.ts +6 -38
- package/types/FinancialConnections/Sessions.d.ts +3 -51
- package/types/FinancialConnections/SessionsResource.d.ts +4 -41
- package/types/Forwarding/Requests.d.ts +1 -1
- package/types/Forwarding/RequestsResource.d.ts +1 -1
- package/types/FundingInstructions.d.ts +2 -2
- package/types/Identity/VerificationReports.d.ts +8 -8
- package/types/Identity/VerificationSessions.d.ts +11 -11
- package/types/Identity/VerificationSessionsResource.d.ts +18 -12
- package/types/InvoiceItems.d.ts +8 -13
- package/types/InvoiceItemsResource.d.ts +16 -114
- package/types/InvoiceLineItems.d.ts +10 -46
- package/types/InvoicePayments.d.ts +1 -1
- package/types/InvoiceRenderingTemplates.d.ts +1 -1
- package/types/Invoices.d.ts +60 -204
- package/types/InvoicesResource.d.ts +132 -1651
- package/types/Issuing/Authorizations.d.ts +20 -20
- package/types/Issuing/AuthorizationsResource.d.ts +4 -4
- package/types/Issuing/Cardholders.d.ts +13 -13
- package/types/Issuing/CardholdersResource.d.ts +21 -22
- package/types/Issuing/Cards.d.ts +10 -10
- package/types/Issuing/CardsResource.d.ts +13 -13
- package/types/Issuing/Disputes.d.ts +7 -7
- package/types/Issuing/DisputesResource.d.ts +5 -5
- package/types/Issuing/PersonalizationDesigns.d.ts +1 -1
- package/types/Issuing/PersonalizationDesignsResource.d.ts +2 -2
- package/types/Issuing/Tokens.d.ts +1 -1
- package/types/Issuing/Transactions.d.ts +12 -17
- package/types/Issuing/TransactionsResource.d.ts +1 -6
- package/types/LineItems.d.ts +4 -48
- package/types/LoginLinks.d.ts +1 -1
- package/types/Mandates.d.ts +1 -69
- package/types/MandatesResource.d.ts +0 -31
- package/types/PaymentAttemptRecords.d.ts +119 -135
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +3 -3
- package/types/PaymentIntents.d.ts +48 -705
- package/types/PaymentIntentsResource.d.ts +6867 -19451
- package/types/PaymentLinks.d.ts +7 -12
- package/types/PaymentLinksResource.d.ts +28 -38
- package/types/PaymentMethodConfigurations.d.ts +4 -184
- package/types/PaymentMethodConfigurationsResource.d.ts +76 -326
- package/types/PaymentMethodDomains.d.ts +1 -1
- package/types/PaymentMethods.d.ts +10 -116
- package/types/PaymentMethodsResource.d.ts +7 -116
- package/types/PaymentRecords.d.ts +126 -135
- package/types/PaymentRecordsResource.d.ts +7 -7
- package/types/Payouts.d.ts +7 -7
- package/types/PayoutsResource.d.ts +3 -3
- package/types/Persons.d.ts +21 -23
- package/types/Plans.d.ts +5 -5
- package/types/PlansResource.d.ts +6 -6
- package/types/Prices.d.ts +6 -28
- package/types/PricesResource.d.ts +10 -32
- package/types/Products.d.ts +10 -10
- package/types/ProductsResource.d.ts +14 -14
- package/types/PromotionCodes.d.ts +5 -5
- package/types/PromotionCodesResource.d.ts +5 -5
- package/types/Quotes.d.ts +14 -602
- package/types/QuotesResource.d.ts +298 -2628
- package/types/Radar/EarlyFraudWarnings.d.ts +1 -1
- package/types/Radar/ValueListItems.d.ts +1 -1
- package/types/Radar/ValueLists.d.ts +2 -2
- package/types/Radar/ValueListsResource.d.ts +2 -2
- package/types/Refunds.d.ts +3 -17
- package/types/RefundsResource.d.ts +3 -3
- package/types/Reporting/ReportRuns.d.ts +3 -3
- package/types/Reporting/ReportRunsResource.d.ts +2 -2
- package/types/Reporting/ReportTypes.d.ts +3 -3
- package/types/Reviews.d.ts +1 -1
- package/types/SetupAttempts.d.ts +22 -60
- package/types/SetupIntents.d.ts +22 -157
- package/types/SetupIntentsResource.d.ts +50 -673
- package/types/ShippingRates.d.ts +3 -3
- package/types/ShippingRatesResource.d.ts +3 -3
- package/types/Sigma/ScheduledQueryRuns.d.ts +1 -1
- package/types/SourceMandateNotifications.d.ts +3 -3
- package/types/Sources.d.ts +5 -34
- package/types/SourcesResource.d.ts +2 -2
- package/types/SubscriptionItems.d.ts +7 -33
- package/types/SubscriptionItemsResource.d.ts +22 -131
- package/types/SubscriptionSchedules.d.ts +9 -209
- package/types/SubscriptionSchedulesResource.d.ts +39 -1257
- package/types/Subscriptions.d.ts +41 -251
- package/types/SubscriptionsResource.d.ts +94 -734
- package/types/Tax/Associations.d.ts +3 -3
- package/types/Tax/AssociationsResource.d.ts +1 -1
- package/types/Tax/CalculationLineItems.d.ts +7 -7
- package/types/Tax/Calculations.d.ts +12 -12
- package/types/Tax/CalculationsResource.d.ts +7 -7
- package/types/Tax/Registrations.d.ts +3 -3
- package/types/Tax/Settings.d.ts +1 -1
- package/types/Tax/SettingsResource.d.ts +1 -1
- package/types/Tax/TransactionLineItems.d.ts +5 -5
- package/types/Tax/Transactions.d.ts +9 -9
- package/types/Tax/TransactionsResource.d.ts +10 -10
- package/types/TaxIds.d.ts +6 -6
- package/types/TaxIdsResource.d.ts +4 -4
- package/types/TaxRates.d.ts +1 -1
- package/types/TaxRatesResource.d.ts +2 -2
- package/types/Terminal/Configurations.d.ts +0 -9
- package/types/Terminal/ConfigurationsResource.d.ts +0 -28
- package/types/Terminal/ConnectionTokens.d.ts +1 -1
- package/types/Terminal/Locations.d.ts +2 -2
- package/types/Terminal/LocationsResource.d.ts +3 -3
- package/types/Terminal/Readers.d.ts +10 -30
- package/types/Terminal/ReadersResource.d.ts +7 -7
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +5 -107
- package/types/TestHelpers/CustomersResource.d.ts +2 -2
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +10 -10
- package/types/TestHelpers/Issuing/TransactionsResource.d.ts +5 -5
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +1 -27
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +1 -27
- package/types/Tokens.d.ts +4 -4
- package/types/TokensResource.d.ts +17 -17
- package/types/Topups.d.ts +3 -3
- package/types/TopupsResource.d.ts +3 -3
- package/types/TransferReversals.d.ts +4 -4
- package/types/Transfers.d.ts +5 -10
- package/types/TransfersResource.d.ts +6 -11
- package/types/Treasury/CreditReversals.d.ts +3 -3
- package/types/Treasury/CreditReversalsResource.d.ts +1 -1
- package/types/Treasury/DebitReversals.d.ts +3 -3
- package/types/Treasury/DebitReversalsResource.d.ts +1 -1
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +1 -6
- package/types/Treasury/FinancialAccountsResource.d.ts +2 -39
- package/types/Treasury/InboundTransfers.d.ts +4 -4
- package/types/Treasury/InboundTransfersResource.d.ts +2 -2
- package/types/Treasury/OutboundPayments.d.ts +5 -5
- package/types/Treasury/OutboundPaymentsResource.d.ts +4 -4
- package/types/Treasury/OutboundTransfers.d.ts +4 -30
- package/types/Treasury/OutboundTransfersResource.d.ts +3 -29
- package/types/Treasury/ReceivedCredits.d.ts +9 -35
- package/types/Treasury/ReceivedDebits.d.ts +6 -37
- package/types/Treasury/TransactionEntries.d.ts +11 -11
- package/types/Treasury/Transactions.d.ts +11 -11
- package/types/V2/Core/AccountLinks.d.ts +13 -21
- package/types/V2/Core/AccountLinksResource.d.ts +8 -16
- package/types/V2/Core/AccountPersons.d.ts +55 -10
- package/types/V2/Core/AccountTokensResource.d.ts +129 -24
- package/types/V2/Core/Accounts/PersonTokensResource.d.ts +48 -3
- package/types/V2/Core/Accounts/PersonsResource.d.ts +101 -11
- package/types/V2/Core/Accounts.d.ts +256 -1349
- package/types/V2/Core/AccountsResource.d.ts +282 -567
- package/types/V2/Core/EventTypes.d.ts +10 -1542
- package/types/WebhookEndpoints.d.ts +1 -1
- package/types/WebhookEndpointsResource.d.ts +5 -79
- package/types/apiVersion.d.ts +2 -1
- package/types/index.d.ts +0 -134
- package/types/lib.d.ts +0 -10
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/Billing/Analytics/MeterUsage.js +0 -12
- package/cjs/resources/Capital/FinancingOffers.js +0 -21
- package/cjs/resources/Capital/FinancingSummary.js +0 -12
- package/cjs/resources/Capital/FinancingTransactions.js +0 -17
- package/cjs/resources/ExternalAccounts.js +0 -23
- package/cjs/resources/FinancialConnections/Institutions.js +0 -17
- package/cjs/resources/FxQuotes.js +0 -15
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +0 -33
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +0 -17
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +0 -17
- package/cjs/resources/Margins.js +0 -22
- package/cjs/resources/Orders.js +0 -24
- package/cjs/resources/Privacy/RedactionJobs.js +0 -42
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/ReaderCollectedData.js +0 -12
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +0 -17
- package/cjs/resources/V2/Billing/BillSettings.js +0 -27
- package/cjs/resources/V2/Billing/Cadences.js +0 -23
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +0 -17
- package/cjs/resources/V2/Billing/CollectionSettings.js +0 -30
- package/cjs/resources/V2/Billing/Profiles.js +0 -19
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -33
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -37
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -29
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
- package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/Billing/Analytics/MeterUsage.js +0 -9
- package/esm/resources/Capital/FinancingOffers.js +0 -18
- package/esm/resources/Capital/FinancingSummary.js +0 -9
- package/esm/resources/Capital/FinancingTransactions.js +0 -14
- package/esm/resources/ExternalAccounts.js +0 -20
- package/esm/resources/FinancialConnections/Institutions.js +0 -14
- package/esm/resources/FxQuotes.js +0 -12
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +0 -30
- package/esm/resources/Issuing/DisputeSettlementDetails.js +0 -14
- package/esm/resources/Issuing/FraudLiabilityDebits.js +0 -14
- package/esm/resources/Margins.js +0 -19
- package/esm/resources/Orders.js +0 -21
- package/esm/resources/Privacy/RedactionJobs.js +0 -39
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/ReaderCollectedData.js +0 -9
- package/esm/resources/V2/Billing/BillSettings/Versions.js +0 -14
- package/esm/resources/V2/Billing/BillSettings.js +0 -24
- package/esm/resources/V2/Billing/Cadences.js +0 -20
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +0 -14
- package/esm/resources/V2/Billing/CollectionSettings.js +0 -27
- package/esm/resources/V2/Billing/Profiles.js +0 -16
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -30
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -34
- package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -26
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
- package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/Billing/Analytics/MeterUsage.d.ts +0 -31
- package/types/Billing/Analytics/MeterUsageResource.d.ts +0 -689
- package/types/Billing/Analytics/MeterUsageRows.d.ts +0 -51
- package/types/Capital/FinancingOffers.d.ts +0 -188
- package/types/Capital/FinancingOffersResource.d.ts +0 -97
- package/types/Capital/FinancingSummary.d.ts +0 -106
- package/types/Capital/FinancingSummaryResource.d.ts +0 -27
- package/types/Capital/FinancingTransactions.d.ts +0 -135
- package/types/Capital/FinancingTransactionsResource.d.ts +0 -68
- package/types/ExternalAccountsResource.d.ts +0 -304
- package/types/FinancialConnections/AccountInferredBalances.d.ts +0 -38
- package/types/FinancialConnections/Institutions.d.ts +0 -98
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/FxQuotes.d.ts +0 -155
- package/types/FxQuotesResource.d.ts +0 -130
- package/types/Issuing/CreditUnderwritingRecords.d.ts +0 -451
- package/types/Issuing/CreditUnderwritingRecordsResource.d.ts +0 -1032
- package/types/Issuing/DisputeSettlementDetails.d.ts +0 -85
- package/types/Issuing/DisputeSettlementDetailsResource.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebits.d.ts +0 -52
- package/types/Issuing/FraudLiabilityDebitsResource.d.ts +0 -52
- package/types/Issuing/Settlements.d.ts +0 -113
- package/types/Margins.d.ts +0 -56
- package/types/MarginsResource.d.ts +0 -114
- package/types/Orders.d.ts +0 -1163
- package/types/OrdersResource.d.ts +0 -5505
- package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -60
- package/types/Privacy/RedactionJobs.d.ts +0 -111
- package/types/Privacy/RedactionJobsResource.d.ts +0 -230
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1771
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -908
- package/types/Tax/Forms.d.ts +0 -220
- package/types/Tax/FormsResource.d.ts +0 -107
- package/types/Terminal/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
- package/types/V2/Billing/BillSettingVersions.d.ts +0 -97
- package/types/V2/Billing/BillSettings/VersionsResource.d.ts +0 -58
- package/types/V2/Billing/BillSettings.d.ts +0 -120
- package/types/V2/Billing/BillSettingsResource.d.ts +0 -241
- package/types/V2/Billing/Cadences.d.ts +0 -690
- package/types/V2/Billing/CadencesResource.d.ts +0 -487
- package/types/V2/Billing/CollectionSettingVersions.d.ts +0 -318
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +0 -62
- package/types/V2/Billing/CollectionSettings.d.ts +0 -341
- package/types/V2/Billing/CollectionSettingsResource.d.ts +0 -683
- package/types/V2/Billing/Profiles.d.ts +0 -70
- package/types/V2/Billing/ProfilesResource.d.ts +0 -150
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -194
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -116
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -198
- package/types/V2/FinancialAddressCreditSimulations.d.ts +0 -27
- package/types/V2/FinancialAddressGeneratedMicrodeposits.d.ts +0 -32
- package/types/V2/MoneyManagement/Adjustments.d.ts +0 -110
- package/types/V2/MoneyManagement/AdjustmentsResource.d.ts +0 -83
- package/types/V2/MoneyManagement/FinancialAccounts.d.ts +0 -148
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -172
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -175
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -109
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -212
- package/types/V2/MoneyManagement/InboundTransfersResource.d.ts +0 -144
- package/types/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +0 -170
- package/types/V2/MoneyManagement/OutboundPaymentQuotesResource.d.ts +0 -115
- package/types/V2/MoneyManagement/OutboundPayments.d.ts +0 -278
- package/types/V2/MoneyManagement/OutboundPaymentsResource.d.ts +0 -242
- package/types/V2/MoneyManagement/OutboundSetupIntents.d.ts +0 -97
- package/types/V2/MoneyManagement/OutboundSetupIntentsResource.d.ts +0 -296
- package/types/V2/MoneyManagement/OutboundTransfers.d.ts +0 -251
- package/types/V2/MoneyManagement/OutboundTransfersResource.d.ts +0 -208
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -160
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +0 -93
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -302
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -176
- package/types/V2/MoneyManagement/ReceivedDebitsResource.d.ts +0 -48
- package/types/V2/MoneyManagement/TransactionEntries.d.ts +0 -162
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
- package/types/V2/MoneyManagement/Transactions.d.ts +0 -177
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -68
package/esm/Error.js
CHANGED
|
@@ -24,34 +24,6 @@ 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);
|
|
55
27
|
case 'temporary_session_expired':
|
|
56
28
|
return new TemporarySessionExpiredError(rawStripeError);
|
|
57
29
|
// switchCases: The end of the section generated from our OpenAPI spec
|
|
@@ -205,78 +177,6 @@ export class StripeUnknownError extends StripeError {
|
|
|
205
177
|
}
|
|
206
178
|
}
|
|
207
179
|
// 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
|
-
}
|
|
280
180
|
export class TemporarySessionExpiredError extends StripeError {
|
|
281
181
|
constructor(rawStripeError = {}) {
|
|
282
182
|
super(rawStripeError, 'TemporarySessionExpiredError');
|
package/esm/apiVersion.js
CHANGED
|
@@ -15,11 +15,6 @@ export const Accounts = StripeResource.extend({
|
|
|
15
15
|
method: 'POST',
|
|
16
16
|
fullPath: '/v1/financial_connections/accounts/{account}/disconnect',
|
|
17
17
|
}),
|
|
18
|
-
listInferredBalances: stripeMethod({
|
|
19
|
-
method: 'GET',
|
|
20
|
-
fullPath: '/v1/financial_connections/accounts/{account}/inferred_balances',
|
|
21
|
-
methodType: 'list',
|
|
22
|
-
}),
|
|
23
18
|
listOwners: stripeMethod({
|
|
24
19
|
method: 'GET',
|
|
25
20
|
fullPath: '/v1/financial_connections/accounts/{account}/owners',
|
|
@@ -3,9 +3,4 @@ import { StripeResource } from '../StripeResource.js';
|
|
|
3
3
|
const stripeMethod = StripeResource.method;
|
|
4
4
|
export const Mandates = StripeResource.extend({
|
|
5
5
|
retrieve: stripeMethod({ method: 'GET', fullPath: '/v1/mandates/{mandate}' }),
|
|
6
|
-
list: stripeMethod({
|
|
7
|
-
method: 'GET',
|
|
8
|
-
fullPath: '/v1/mandates',
|
|
9
|
-
methodType: 'list',
|
|
10
|
-
}),
|
|
11
6
|
});
|
|
@@ -32,10 +32,6 @@ export const PaymentIntents = StripeResource.extend({
|
|
|
32
32
|
method: 'POST',
|
|
33
33
|
fullPath: '/v1/payment_intents/{intent}/confirm',
|
|
34
34
|
}),
|
|
35
|
-
decrementAuthorization: stripeMethod({
|
|
36
|
-
method: 'POST',
|
|
37
|
-
fullPath: '/v1/payment_intents/{intent}/decrement_authorization',
|
|
38
|
-
}),
|
|
39
35
|
incrementAuthorization: stripeMethod({
|
|
40
36
|
method: 'POST',
|
|
41
37
|
fullPath: '/v1/payment_intents/{intent}/increment_authorization',
|
|
@@ -50,10 +46,6 @@ export const PaymentIntents = StripeResource.extend({
|
|
|
50
46
|
fullPath: '/v1/payment_intents/search',
|
|
51
47
|
methodType: 'search',
|
|
52
48
|
}),
|
|
53
|
-
triggerAction: stripeMethod({
|
|
54
|
-
method: 'POST',
|
|
55
|
-
fullPath: '/v1/test/payment_intents/{intent}/trigger_action',
|
|
56
|
-
}),
|
|
57
49
|
verifyMicrodeposits: stripeMethod({
|
|
58
50
|
method: 'POST',
|
|
59
51
|
fullPath: '/v1/payment_intents/{intent}/verify_microdeposits',
|
package/esm/resources/Quotes.js
CHANGED
|
@@ -16,11 +16,6 @@ export const Quotes = StripeResource.extend({
|
|
|
16
16
|
method: 'POST',
|
|
17
17
|
fullPath: '/v1/quotes/{quote}/finalize',
|
|
18
18
|
}),
|
|
19
|
-
listPreviewInvoiceLines: stripeMethod({
|
|
20
|
-
method: 'GET',
|
|
21
|
-
fullPath: '/v1/quotes/{quote}/preview_invoices/{preview_invoice}/lines',
|
|
22
|
-
methodType: 'list',
|
|
23
|
-
}),
|
|
24
19
|
listComputedUpfrontLineItems: stripeMethod({
|
|
25
20
|
method: 'GET',
|
|
26
21
|
fullPath: '/v1/quotes/{quote}/computed_upfront_line_items',
|
|
@@ -31,37 +26,10 @@ export const Quotes = StripeResource.extend({
|
|
|
31
26
|
fullPath: '/v1/quotes/{quote}/line_items',
|
|
32
27
|
methodType: 'list',
|
|
33
28
|
}),
|
|
34
|
-
listLines: stripeMethod({
|
|
35
|
-
method: 'GET',
|
|
36
|
-
fullPath: '/v1/quotes/{quote}/lines',
|
|
37
|
-
methodType: 'list',
|
|
38
|
-
}),
|
|
39
|
-
listPreviewInvoices: stripeMethod({
|
|
40
|
-
method: 'GET',
|
|
41
|
-
fullPath: '/v1/quotes/{quote}/preview_invoices',
|
|
42
|
-
methodType: 'list',
|
|
43
|
-
}),
|
|
44
|
-
listPreviewSubscriptionSchedules: stripeMethod({
|
|
45
|
-
method: 'GET',
|
|
46
|
-
fullPath: '/v1/quotes/{quote}/preview_subscription_schedules',
|
|
47
|
-
methodType: 'list',
|
|
48
|
-
}),
|
|
49
|
-
markDraft: stripeMethod({
|
|
50
|
-
method: 'POST',
|
|
51
|
-
fullPath: '/v1/quotes/{quote}/mark_draft',
|
|
52
|
-
}),
|
|
53
|
-
markStale: stripeMethod({
|
|
54
|
-
method: 'POST',
|
|
55
|
-
fullPath: '/v1/quotes/{quote}/mark_stale',
|
|
56
|
-
}),
|
|
57
29
|
pdf: stripeMethod({
|
|
58
30
|
method: 'GET',
|
|
59
31
|
fullPath: '/v1/quotes/{quote}/pdf',
|
|
60
32
|
host: 'files.stripe.com',
|
|
61
33
|
streaming: true,
|
|
62
34
|
}),
|
|
63
|
-
reestimate: stripeMethod({
|
|
64
|
-
method: 'POST',
|
|
65
|
-
fullPath: '/v1/quotes/{quote}/reestimate',
|
|
66
|
-
}),
|
|
67
35
|
});
|
|
@@ -19,10 +19,6 @@ export const SubscriptionSchedules = StripeResource.extend({
|
|
|
19
19
|
fullPath: '/v1/subscription_schedules',
|
|
20
20
|
methodType: 'list',
|
|
21
21
|
}),
|
|
22
|
-
amend: stripeMethod({
|
|
23
|
-
method: 'POST',
|
|
24
|
-
fullPath: '/v1/subscription_schedules/{schedule}/amend',
|
|
25
|
-
}),
|
|
26
22
|
cancel: stripeMethod({
|
|
27
23
|
method: 'POST',
|
|
28
24
|
fullPath: '/v1/subscription_schedules/{schedule}/cancel',
|
|
@@ -16,10 +16,6 @@ export const Subscriptions = StripeResource.extend({
|
|
|
16
16
|
fullPath: '/v1/subscriptions',
|
|
17
17
|
methodType: 'list',
|
|
18
18
|
}),
|
|
19
|
-
attachCadence: stripeMethod({
|
|
20
|
-
method: 'POST',
|
|
21
|
-
fullPath: '/v1/subscriptions/{subscription}/attach_cadence',
|
|
22
|
-
}),
|
|
23
19
|
cancel: stripeMethod({
|
|
24
20
|
method: 'DELETE',
|
|
25
21
|
fullPath: '/v1/subscriptions/{subscription_exposed_id}',
|
package/esm/resources.js
CHANGED
|
@@ -5,18 +5,14 @@ import { AccountTokens as V2CoreAccountTokens } from './resources/V2/Core/Accoun
|
|
|
5
5
|
import { Accounts as FinancialConnectionsAccounts } from './resources/FinancialConnections/Accounts.js';
|
|
6
6
|
import { Accounts as V2CoreAccounts } from './resources/V2/Core/Accounts.js';
|
|
7
7
|
import { ActiveEntitlements as EntitlementsActiveEntitlements } from './resources/Entitlements/ActiveEntitlements.js';
|
|
8
|
-
import { Adjustments as V2MoneyManagementAdjustments } from './resources/V2/MoneyManagement/Adjustments.js';
|
|
9
8
|
import { Alerts as BillingAlerts } from './resources/Billing/Alerts.js';
|
|
10
9
|
import { Associations as TaxAssociations } from './resources/Tax/Associations.js';
|
|
11
10
|
import { Authorizations as IssuingAuthorizations } from './resources/Issuing/Authorizations.js';
|
|
12
11
|
import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
|
|
13
|
-
import { BillSettings as V2BillingBillSettings } from './resources/V2/Billing/BillSettings.js';
|
|
14
|
-
import { Cadences as V2BillingCadences } from './resources/V2/Billing/Cadences.js';
|
|
15
12
|
import { Calculations as TaxCalculations } from './resources/Tax/Calculations.js';
|
|
16
13
|
import { Cardholders as IssuingCardholders } from './resources/Issuing/Cardholders.js';
|
|
17
14
|
import { Cards as IssuingCards } from './resources/Issuing/Cards.js';
|
|
18
15
|
import { Cards as TestHelpersIssuingCards } from './resources/TestHelpers/Issuing/Cards.js';
|
|
19
|
-
import { CollectionSettings as V2BillingCollectionSettings } from './resources/V2/Billing/CollectionSettings.js';
|
|
20
16
|
import { Configurations as BillingPortalConfigurations } from './resources/BillingPortal/Configurations.js';
|
|
21
17
|
import { Configurations as TerminalConfigurations } from './resources/Terminal/Configurations.js';
|
|
22
18
|
import { ConfirmationTokens as TestHelpersConfirmationTokens } from './resources/TestHelpers/ConfirmationTokens.js';
|
|
@@ -25,29 +21,16 @@ import { CreditBalanceSummary as BillingCreditBalanceSummary } from './resources
|
|
|
25
21
|
import { CreditBalanceTransactions as BillingCreditBalanceTransactions } from './resources/Billing/CreditBalanceTransactions.js';
|
|
26
22
|
import { CreditGrants as BillingCreditGrants } from './resources/Billing/CreditGrants.js';
|
|
27
23
|
import { CreditReversals as TreasuryCreditReversals } from './resources/Treasury/CreditReversals.js';
|
|
28
|
-
import { CreditUnderwritingRecords as IssuingCreditUnderwritingRecords } from './resources/Issuing/CreditUnderwritingRecords.js';
|
|
29
24
|
import { Customers as TestHelpersCustomers } from './resources/TestHelpers/Customers.js';
|
|
30
25
|
import { DebitReversals as TreasuryDebitReversals } from './resources/Treasury/DebitReversals.js';
|
|
31
|
-
import { DisputeSettlementDetails as IssuingDisputeSettlementDetails } from './resources/Issuing/DisputeSettlementDetails.js';
|
|
32
26
|
import { Disputes as IssuingDisputes } from './resources/Issuing/Disputes.js';
|
|
33
27
|
import { EarlyFraudWarnings as RadarEarlyFraudWarnings } from './resources/Radar/EarlyFraudWarnings.js';
|
|
34
28
|
import { EventDestinations as V2CoreEventDestinations } from './resources/V2/Core/EventDestinations.js';
|
|
35
29
|
import { Events as V2CoreEvents } from './resources/V2/Core/Events.js';
|
|
36
30
|
import { Features as EntitlementsFeatures } from './resources/Entitlements/Features.js';
|
|
37
31
|
import { FinancialAccounts as TreasuryFinancialAccounts } from './resources/Treasury/FinancialAccounts.js';
|
|
38
|
-
import { FinancialAccounts as V2MoneyManagementFinancialAccounts } from './resources/V2/MoneyManagement/FinancialAccounts.js';
|
|
39
|
-
import { FinancialAddresses as V2MoneyManagementFinancialAddresses } from './resources/V2/MoneyManagement/FinancialAddresses.js';
|
|
40
|
-
import { FinancialAddresses as V2TestHelpersFinancialAddresses } from './resources/V2/TestHelpers/FinancialAddresses.js';
|
|
41
|
-
import { FinancingOffers as CapitalFinancingOffers } from './resources/Capital/FinancingOffers.js';
|
|
42
|
-
import { FinancingSummary as CapitalFinancingSummary } from './resources/Capital/FinancingSummary.js';
|
|
43
|
-
import { FinancingTransactions as CapitalFinancingTransactions } from './resources/Capital/FinancingTransactions.js';
|
|
44
|
-
import { Forms as TaxForms } from './resources/Tax/Forms.js';
|
|
45
|
-
import { FraudLiabilityDebits as IssuingFraudLiabilityDebits } from './resources/Issuing/FraudLiabilityDebits.js';
|
|
46
|
-
import { GbBankAccounts as V2CoreVaultGbBankAccounts } from './resources/V2/Core/Vault/GbBankAccounts.js';
|
|
47
32
|
import { InboundTransfers as TestHelpersTreasuryInboundTransfers } from './resources/TestHelpers/Treasury/InboundTransfers.js';
|
|
48
33
|
import { InboundTransfers as TreasuryInboundTransfers } from './resources/Treasury/InboundTransfers.js';
|
|
49
|
-
import { InboundTransfers as V2MoneyManagementInboundTransfers } from './resources/V2/MoneyManagement/InboundTransfers.js';
|
|
50
|
-
import { Institutions as FinancialConnectionsInstitutions } from './resources/FinancialConnections/Institutions.js';
|
|
51
34
|
import { Locations as TerminalLocations } from './resources/Terminal/Locations.js';
|
|
52
35
|
import { MeterEventAdjustments as BillingMeterEventAdjustments } from './resources/Billing/MeterEventAdjustments.js';
|
|
53
36
|
import { MeterEventAdjustments as V2BillingMeterEventAdjustments } from './resources/V2/Billing/MeterEventAdjustments.js';
|
|
@@ -55,35 +38,23 @@ import { MeterEventSession as V2BillingMeterEventSession } from './resources/V2/
|
|
|
55
38
|
import { MeterEventStream as V2BillingMeterEventStream } from './resources/V2/Billing/MeterEventStream.js';
|
|
56
39
|
import { MeterEvents as BillingMeterEvents } from './resources/Billing/MeterEvents.js';
|
|
57
40
|
import { MeterEvents as V2BillingMeterEvents } from './resources/V2/Billing/MeterEvents.js';
|
|
58
|
-
import { MeterUsage as BillingAnalyticsMeterUsage } from './resources/Billing/Analytics/MeterUsage.js';
|
|
59
41
|
import { Meters as BillingMeters } from './resources/Billing/Meters.js';
|
|
60
42
|
import { OnboardingLinks as TerminalOnboardingLinks } from './resources/Terminal/OnboardingLinks.js';
|
|
61
43
|
import { Orders as ClimateOrders } from './resources/Climate/Orders.js';
|
|
62
|
-
import { OutboundPaymentQuotes as V2MoneyManagementOutboundPaymentQuotes } from './resources/V2/MoneyManagement/OutboundPaymentQuotes.js';
|
|
63
44
|
import { OutboundPayments as TestHelpersTreasuryOutboundPayments } from './resources/TestHelpers/Treasury/OutboundPayments.js';
|
|
64
45
|
import { OutboundPayments as TreasuryOutboundPayments } from './resources/Treasury/OutboundPayments.js';
|
|
65
|
-
import { OutboundPayments as V2MoneyManagementOutboundPayments } from './resources/V2/MoneyManagement/OutboundPayments.js';
|
|
66
|
-
import { OutboundSetupIntents as V2MoneyManagementOutboundSetupIntents } from './resources/V2/MoneyManagement/OutboundSetupIntents.js';
|
|
67
46
|
import { OutboundTransfers as TestHelpersTreasuryOutboundTransfers } from './resources/TestHelpers/Treasury/OutboundTransfers.js';
|
|
68
47
|
import { OutboundTransfers as TreasuryOutboundTransfers } from './resources/Treasury/OutboundTransfers.js';
|
|
69
|
-
import { OutboundTransfers as V2MoneyManagementOutboundTransfers } from './resources/V2/MoneyManagement/OutboundTransfers.js';
|
|
70
|
-
import { PayoutMethods as V2MoneyManagementPayoutMethods } from './resources/V2/MoneyManagement/PayoutMethods.js';
|
|
71
|
-
import { PayoutMethodsBankAccountSpec as V2MoneyManagementPayoutMethodsBankAccountSpec } from './resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js';
|
|
72
48
|
import { PersonalizationDesigns as IssuingPersonalizationDesigns } from './resources/Issuing/PersonalizationDesigns.js';
|
|
73
49
|
import { PersonalizationDesigns as TestHelpersIssuingPersonalizationDesigns } from './resources/TestHelpers/Issuing/PersonalizationDesigns.js';
|
|
74
50
|
import { PhysicalBundles as IssuingPhysicalBundles } from './resources/Issuing/PhysicalBundles.js';
|
|
75
51
|
import { Products as ClimateProducts } from './resources/Climate/Products.js';
|
|
76
|
-
import { Profiles as V2BillingProfiles } from './resources/V2/Billing/Profiles.js';
|
|
77
|
-
import { ReaderCollectedData as TerminalReaderCollectedData } from './resources/Terminal/ReaderCollectedData.js';
|
|
78
52
|
import { Readers as TerminalReaders } from './resources/Terminal/Readers.js';
|
|
79
53
|
import { Readers as TestHelpersTerminalReaders } from './resources/TestHelpers/Terminal/Readers.js';
|
|
80
54
|
import { ReceivedCredits as TestHelpersTreasuryReceivedCredits } from './resources/TestHelpers/Treasury/ReceivedCredits.js';
|
|
81
55
|
import { ReceivedCredits as TreasuryReceivedCredits } from './resources/Treasury/ReceivedCredits.js';
|
|
82
|
-
import { ReceivedCredits as V2MoneyManagementReceivedCredits } from './resources/V2/MoneyManagement/ReceivedCredits.js';
|
|
83
56
|
import { ReceivedDebits as TestHelpersTreasuryReceivedDebits } from './resources/TestHelpers/Treasury/ReceivedDebits.js';
|
|
84
57
|
import { ReceivedDebits as TreasuryReceivedDebits } from './resources/Treasury/ReceivedDebits.js';
|
|
85
|
-
import { ReceivedDebits as V2MoneyManagementReceivedDebits } from './resources/V2/MoneyManagement/ReceivedDebits.js';
|
|
86
|
-
import { RedactionJobs as PrivacyRedactionJobs } from './resources/Privacy/RedactionJobs.js';
|
|
87
58
|
import { Refunds as TestHelpersRefunds } from './resources/TestHelpers/Refunds.js';
|
|
88
59
|
import { Registrations as TaxRegistrations } from './resources/Tax/Registrations.js';
|
|
89
60
|
import { ReportRuns as ReportingReportRuns } from './resources/Reporting/ReportRuns.js';
|
|
@@ -99,21 +70,17 @@ import { Suppliers as ClimateSuppliers } from './resources/Climate/Suppliers.js'
|
|
|
99
70
|
import { TestClocks as TestHelpersTestClocks } from './resources/TestHelpers/TestClocks.js';
|
|
100
71
|
import { Tokens as IssuingTokens } from './resources/Issuing/Tokens.js';
|
|
101
72
|
import { TransactionEntries as TreasuryTransactionEntries } from './resources/Treasury/TransactionEntries.js';
|
|
102
|
-
import { TransactionEntries as V2MoneyManagementTransactionEntries } from './resources/V2/MoneyManagement/TransactionEntries.js';
|
|
103
73
|
import { Transactions as FinancialConnectionsTransactions } from './resources/FinancialConnections/Transactions.js';
|
|
104
74
|
import { Transactions as IssuingTransactions } from './resources/Issuing/Transactions.js';
|
|
105
75
|
import { Transactions as TaxTransactions } from './resources/Tax/Transactions.js';
|
|
106
76
|
import { Transactions as TestHelpersIssuingTransactions } from './resources/TestHelpers/Issuing/Transactions.js';
|
|
107
77
|
import { Transactions as TreasuryTransactions } from './resources/Treasury/Transactions.js';
|
|
108
|
-
import { Transactions as V2MoneyManagementTransactions } from './resources/V2/MoneyManagement/Transactions.js';
|
|
109
|
-
import { UsBankAccounts as V2CoreVaultUsBankAccounts } from './resources/V2/Core/Vault/UsBankAccounts.js';
|
|
110
78
|
import { ValueListItems as RadarValueListItems } from './resources/Radar/ValueListItems.js';
|
|
111
79
|
import { ValueLists as RadarValueLists } from './resources/Radar/ValueLists.js';
|
|
112
80
|
import { VerificationReports as IdentityVerificationReports } from './resources/Identity/VerificationReports.js';
|
|
113
81
|
import { VerificationSessions as IdentityVerificationSessions } from './resources/Identity/VerificationSessions.js';
|
|
114
82
|
export { Accounts as Account } from './resources/Accounts.js';
|
|
115
83
|
export { AccountLinks } from './resources/AccountLinks.js';
|
|
116
|
-
export { AccountNotices } from './resources/AccountNotices.js';
|
|
117
84
|
export { AccountSessions } from './resources/AccountSessions.js';
|
|
118
85
|
export { Accounts } from './resources/Accounts.js';
|
|
119
86
|
export { ApplePayDomains } from './resources/ApplePayDomains.js';
|
|
@@ -132,18 +99,14 @@ export { Disputes } from './resources/Disputes.js';
|
|
|
132
99
|
export { EphemeralKeys } from './resources/EphemeralKeys.js';
|
|
133
100
|
export { Events } from './resources/Events.js';
|
|
134
101
|
export { ExchangeRates } from './resources/ExchangeRates.js';
|
|
135
|
-
export { ExternalAccounts } from './resources/ExternalAccounts.js';
|
|
136
102
|
export { FileLinks } from './resources/FileLinks.js';
|
|
137
103
|
export { Files } from './resources/Files.js';
|
|
138
|
-
export { FxQuotes } from './resources/FxQuotes.js';
|
|
139
104
|
export { InvoiceItems } from './resources/InvoiceItems.js';
|
|
140
105
|
export { InvoicePayments } from './resources/InvoicePayments.js';
|
|
141
106
|
export { InvoiceRenderingTemplates } from './resources/InvoiceRenderingTemplates.js';
|
|
142
107
|
export { Invoices } from './resources/Invoices.js';
|
|
143
108
|
export { Mandates } from './resources/Mandates.js';
|
|
144
|
-
export { Margins } from './resources/Margins.js';
|
|
145
109
|
export { OAuth } from './resources/OAuth.js';
|
|
146
|
-
export { Orders } from './resources/Orders.js';
|
|
147
110
|
export { PaymentAttemptRecords } from './resources/PaymentAttemptRecords.js';
|
|
148
111
|
export { PaymentIntents } from './resources/PaymentIntents.js';
|
|
149
112
|
export { PaymentLinks } from './resources/PaymentLinks.js';
|
|
@@ -182,19 +145,11 @@ export const Billing = resourceNamespace('billing', {
|
|
|
182
145
|
MeterEventAdjustments: BillingMeterEventAdjustments,
|
|
183
146
|
MeterEvents: BillingMeterEvents,
|
|
184
147
|
Meters: BillingMeters,
|
|
185
|
-
Analytics: resourceNamespace('analytics', {
|
|
186
|
-
MeterUsage: BillingAnalyticsMeterUsage,
|
|
187
|
-
}),
|
|
188
148
|
});
|
|
189
149
|
export const BillingPortal = resourceNamespace('billingPortal', {
|
|
190
150
|
Configurations: BillingPortalConfigurations,
|
|
191
151
|
Sessions: BillingPortalSessions,
|
|
192
152
|
});
|
|
193
|
-
export const Capital = resourceNamespace('capital', {
|
|
194
|
-
FinancingOffers: CapitalFinancingOffers,
|
|
195
|
-
FinancingSummary: CapitalFinancingSummary,
|
|
196
|
-
FinancingTransactions: CapitalFinancingTransactions,
|
|
197
|
-
});
|
|
198
153
|
export const Checkout = resourceNamespace('checkout', {
|
|
199
154
|
Sessions: CheckoutSessions,
|
|
200
155
|
});
|
|
@@ -209,7 +164,6 @@ export const Entitlements = resourceNamespace('entitlements', {
|
|
|
209
164
|
});
|
|
210
165
|
export const FinancialConnections = resourceNamespace('financialConnections', {
|
|
211
166
|
Accounts: FinancialConnectionsAccounts,
|
|
212
|
-
Institutions: FinancialConnectionsInstitutions,
|
|
213
167
|
Sessions: FinancialConnectionsSessions,
|
|
214
168
|
Transactions: FinancialConnectionsTransactions,
|
|
215
169
|
});
|
|
@@ -224,18 +178,12 @@ export const Issuing = resourceNamespace('issuing', {
|
|
|
224
178
|
Authorizations: IssuingAuthorizations,
|
|
225
179
|
Cardholders: IssuingCardholders,
|
|
226
180
|
Cards: IssuingCards,
|
|
227
|
-
CreditUnderwritingRecords: IssuingCreditUnderwritingRecords,
|
|
228
|
-
DisputeSettlementDetails: IssuingDisputeSettlementDetails,
|
|
229
181
|
Disputes: IssuingDisputes,
|
|
230
|
-
FraudLiabilityDebits: IssuingFraudLiabilityDebits,
|
|
231
182
|
PersonalizationDesigns: IssuingPersonalizationDesigns,
|
|
232
183
|
PhysicalBundles: IssuingPhysicalBundles,
|
|
233
184
|
Tokens: IssuingTokens,
|
|
234
185
|
Transactions: IssuingTransactions,
|
|
235
186
|
});
|
|
236
|
-
export const Privacy = resourceNamespace('privacy', {
|
|
237
|
-
RedactionJobs: PrivacyRedactionJobs,
|
|
238
|
-
});
|
|
239
187
|
export const Radar = resourceNamespace('radar', {
|
|
240
188
|
EarlyFraudWarnings: RadarEarlyFraudWarnings,
|
|
241
189
|
ValueListItems: RadarValueListItems,
|
|
@@ -251,7 +199,6 @@ export const Sigma = resourceNamespace('sigma', {
|
|
|
251
199
|
export const Tax = resourceNamespace('tax', {
|
|
252
200
|
Associations: TaxAssociations,
|
|
253
201
|
Calculations: TaxCalculations,
|
|
254
|
-
Forms: TaxForms,
|
|
255
202
|
Registrations: TaxRegistrations,
|
|
256
203
|
Settings: TaxSettings,
|
|
257
204
|
Transactions: TaxTransactions,
|
|
@@ -261,7 +208,6 @@ export const Terminal = resourceNamespace('terminal', {
|
|
|
261
208
|
ConnectionTokens: TerminalConnectionTokens,
|
|
262
209
|
Locations: TerminalLocations,
|
|
263
210
|
OnboardingLinks: TerminalOnboardingLinks,
|
|
264
|
-
ReaderCollectedData: TerminalReaderCollectedData,
|
|
265
211
|
Readers: TerminalReaders,
|
|
266
212
|
});
|
|
267
213
|
export const TestHelpers = resourceNamespace('testHelpers', {
|
|
@@ -300,14 +246,10 @@ export const Treasury = resourceNamespace('treasury', {
|
|
|
300
246
|
});
|
|
301
247
|
export const V2 = resourceNamespace('v2', {
|
|
302
248
|
Billing: resourceNamespace('billing', {
|
|
303
|
-
BillSettings: V2BillingBillSettings,
|
|
304
|
-
Cadences: V2BillingCadences,
|
|
305
|
-
CollectionSettings: V2BillingCollectionSettings,
|
|
306
249
|
MeterEventAdjustments: V2BillingMeterEventAdjustments,
|
|
307
250
|
MeterEventSession: V2BillingMeterEventSession,
|
|
308
251
|
MeterEventStream: V2BillingMeterEventStream,
|
|
309
252
|
MeterEvents: V2BillingMeterEvents,
|
|
310
|
-
Profiles: V2BillingProfiles,
|
|
311
253
|
}),
|
|
312
254
|
Core: resourceNamespace('core', {
|
|
313
255
|
AccountLinks: V2CoreAccountLinks,
|
|
@@ -315,28 +257,5 @@ export const V2 = resourceNamespace('v2', {
|
|
|
315
257
|
Accounts: V2CoreAccounts,
|
|
316
258
|
EventDestinations: V2CoreEventDestinations,
|
|
317
259
|
Events: V2CoreEvents,
|
|
318
|
-
Vault: resourceNamespace('vault', {
|
|
319
|
-
GbBankAccounts: V2CoreVaultGbBankAccounts,
|
|
320
|
-
UsBankAccounts: V2CoreVaultUsBankAccounts,
|
|
321
|
-
}),
|
|
322
|
-
}),
|
|
323
|
-
MoneyManagement: resourceNamespace('moneyManagement', {
|
|
324
|
-
Adjustments: V2MoneyManagementAdjustments,
|
|
325
|
-
FinancialAccounts: V2MoneyManagementFinancialAccounts,
|
|
326
|
-
FinancialAddresses: V2MoneyManagementFinancialAddresses,
|
|
327
|
-
InboundTransfers: V2MoneyManagementInboundTransfers,
|
|
328
|
-
OutboundPaymentQuotes: V2MoneyManagementOutboundPaymentQuotes,
|
|
329
|
-
OutboundPayments: V2MoneyManagementOutboundPayments,
|
|
330
|
-
OutboundSetupIntents: V2MoneyManagementOutboundSetupIntents,
|
|
331
|
-
OutboundTransfers: V2MoneyManagementOutboundTransfers,
|
|
332
|
-
PayoutMethods: V2MoneyManagementPayoutMethods,
|
|
333
|
-
PayoutMethodsBankAccountSpec: V2MoneyManagementPayoutMethodsBankAccountSpec,
|
|
334
|
-
ReceivedCredits: V2MoneyManagementReceivedCredits,
|
|
335
|
-
ReceivedDebits: V2MoneyManagementReceivedDebits,
|
|
336
|
-
TransactionEntries: V2MoneyManagementTransactionEntries,
|
|
337
|
-
Transactions: V2MoneyManagementTransactions,
|
|
338
|
-
}),
|
|
339
|
-
TestHelper: resourceNamespace('testHelper', {
|
|
340
|
-
FinancialAddresses: V2TestHelpersFinancialAddresses,
|
|
341
260
|
}),
|
|
342
261
|
});
|
package/esm/stripe.core.js
CHANGED
|
@@ -34,7 +34,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
34
34
|
];
|
|
35
35
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
36
36
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
37
|
-
Stripe.PACKAGE_VERSION = '20.1.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '20.1.1';
|
|
38
38
|
Stripe.API_VERSION = ApiVersion;
|
|
39
39
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
40
40
|
Stripe.StripeResource = StripeResource;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "stripe",
|
|
3
|
-
"version": "20.1.
|
|
3
|
+
"version": "20.1.1",
|
|
4
4
|
"description": "Stripe API wrapper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stripe",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"nanoid": "^3.2.0"
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
|
-
"qs": "^6.
|
|
59
|
+
"qs": "^6.14.1"
|
|
60
60
|
},
|
|
61
61
|
"peerDependencies": {
|
|
62
62
|
"@types/node": ">=16"
|
|
@@ -98,4 +98,4 @@
|
|
|
98
98
|
"require": "./cjs/stripe.cjs.node.js"
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
|
-
}
|
|
101
|
+
}
|
package/types/AccountLinks.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare module 'stripe' {
|
|
|
6
6
|
* Account Links are the means by which a Connect platform grants a connected account permission to access
|
|
7
7
|
* Stripe-hosted applications, such as Connect Onboarding.
|
|
8
8
|
*
|
|
9
|
-
* Related guide: [Connect Onboarding](https://stripe.com/
|
|
9
|
+
* Related guide: [Connect Onboarding](https://docs.stripe.com/connect/custom/hosted-onboarding)
|
|
10
10
|
*/
|
|
11
11
|
interface AccountLink {
|
|
12
12
|
/**
|
|
@@ -62,11 +62,7 @@ declare module 'stripe' {
|
|
|
62
62
|
type FutureRequirements = 'include' | 'omit';
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
type Type =
|
|
66
|
-
| 'account_onboarding'
|
|
67
|
-
| 'account_update'
|
|
68
|
-
| 'capital_financing_offer'
|
|
69
|
-
| 'capital_financing_reporting';
|
|
65
|
+
type Type = 'account_onboarding' | 'account_update';
|
|
70
66
|
}
|
|
71
67
|
|
|
72
68
|
class AccountLinksResource {
|
|
@@ -9,7 +9,7 @@ declare module 'stripe' {
|
|
|
9
9
|
* to your user. Do not save AccountSessions to your database as they expire relatively
|
|
10
10
|
* quickly, and cannot be used more than once.
|
|
11
11
|
*
|
|
12
|
-
* Related guide: [Connect embedded components](https://stripe.com/
|
|
12
|
+
* Related guide: [Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components)
|
|
13
13
|
*/
|
|
14
14
|
interface AccountSession {
|
|
15
15
|
/**
|
|
@@ -27,7 +27,7 @@ declare module 'stripe' {
|
|
|
27
27
|
*
|
|
28
28
|
* The client secret can be used to provide access to `account` from your frontend. It should not be stored, logged, or exposed to anyone other than the connected account. Make sure that you have TLS enabled on any page that includes the client secret.
|
|
29
29
|
*
|
|
30
|
-
* Refer to our docs to [setup Connect embedded components](https://stripe.com/
|
|
30
|
+
* Refer to our docs to [setup Connect embedded components](https://docs.stripe.com/connect/get-started-connect-embedded-components) and learn about how `client_secret` should be handled.
|
|
31
31
|
*/
|
|
32
32
|
client_secret: string;
|
|
33
33
|
|
|
@@ -52,12 +52,6 @@ declare module 'stripe' {
|
|
|
52
52
|
|
|
53
53
|
balances: Components.Balances;
|
|
54
54
|
|
|
55
|
-
capital_financing?: Components.CapitalFinancing | null;
|
|
56
|
-
|
|
57
|
-
capital_financing_application?: Components.CapitalFinancingApplication | null;
|
|
58
|
-
|
|
59
|
-
capital_financing_promotion?: Components.CapitalFinancingPromotion | null;
|
|
60
|
-
|
|
61
55
|
disputes_list: Components.DisputesList;
|
|
62
56
|
|
|
63
57
|
documents: Components.Documents;
|
|
@@ -176,45 +170,6 @@ declare module 'stripe' {
|
|
|
176
170
|
}
|
|
177
171
|
}
|
|
178
172
|
|
|
179
|
-
interface CapitalFinancing {
|
|
180
|
-
/**
|
|
181
|
-
* Whether the embedded component is enabled.
|
|
182
|
-
*/
|
|
183
|
-
enabled: boolean;
|
|
184
|
-
|
|
185
|
-
features: CapitalFinancing.Features;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
namespace CapitalFinancing {
|
|
189
|
-
interface Features {}
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
interface CapitalFinancingApplication {
|
|
193
|
-
/**
|
|
194
|
-
* Whether the embedded component is enabled.
|
|
195
|
-
*/
|
|
196
|
-
enabled: boolean;
|
|
197
|
-
|
|
198
|
-
features: CapitalFinancingApplication.Features;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
namespace CapitalFinancingApplication {
|
|
202
|
-
interface Features {}
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
interface CapitalFinancingPromotion {
|
|
206
|
-
/**
|
|
207
|
-
* Whether the embedded component is enabled.
|
|
208
|
-
*/
|
|
209
|
-
enabled: boolean;
|
|
210
|
-
|
|
211
|
-
features: CapitalFinancingPromotion.Features;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
namespace CapitalFinancingPromotion {
|
|
215
|
-
interface Features {}
|
|
216
|
-
}
|
|
217
|
-
|
|
218
173
|
interface DisputesList {
|
|
219
174
|
/**
|
|
220
175
|
* Whether the embedded component is enabled.
|