stripe 19.2.0-beta.1 → 19.2.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 +71 -1433
- package/OPENAPI_VERSION +1 -1
- package/README.md +0 -1
- package/VERSION +1 -1
- package/cjs/Error.js +1 -115
- package/cjs/RequestSender.js +1 -1
- 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/PaymentRecords.js +4 -0
- 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 +8 -106
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +0 -100
- package/esm/RequestSender.js +1 -1
- 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/PaymentRecords.js +4 -0
- 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 -93
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +0 -45
- package/types/AccountSessionsResource.d.ts +0 -264
- package/types/Accounts.d.ts +23 -212
- package/types/AccountsResource.d.ts +44 -544
- package/types/Billing/AlertTriggereds.d.ts +1 -1
- package/types/Billing/CreditBalanceSummary.d.ts +0 -5
- package/types/Billing/CreditBalanceSummaryResource.d.ts +3 -8
- package/types/Billing/CreditBalanceTransactionsResource.d.ts +4 -12
- package/types/Billing/CreditGrants.d.ts +0 -5
- package/types/Billing/CreditGrantsResource.d.ts +3 -13
- package/types/BillingPortal/Configurations.d.ts +1 -1
- package/types/BillingPortal/ConfigurationsResource.d.ts +10 -0
- package/types/BillingPortal/Sessions.d.ts +0 -5
- package/types/BillingPortal/SessionsResource.d.ts +4 -12
- package/types/Cards.d.ts +0 -5
- package/types/CashBalances.d.ts +0 -5
- package/types/Charges.d.ts +1 -172
- package/types/ChargesResource.d.ts +0 -1406
- package/types/Checkout/Sessions.d.ts +17 -369
- package/types/Checkout/SessionsResource.d.ts +23 -635
- package/types/ConfirmationTokens.d.ts +1 -125
- package/types/Coupons.d.ts +0 -33
- package/types/CouponsResource.d.ts +0 -21
- package/types/CreditNoteLineItems.d.ts +0 -17
- package/types/CreditNotes.d.ts +26 -5
- package/types/CreditNotesResource.d.ts +78 -5
- package/types/CustomerBalanceTransactions.d.ts +0 -2
- package/types/CustomerCashBalanceTransactions.d.ts +0 -2
- package/types/CustomerSessions.d.ts +120 -5
- package/types/CustomerSessionsResource.d.ts +121 -6
- package/types/Customers.d.ts +7 -2
- package/types/CustomersResource.d.ts +1 -8
- package/types/Discounts.d.ts +0 -10
- package/types/Disputes.d.ts +0 -40
- package/types/DisputesResource.d.ts +0 -11
- package/types/Errors.d.ts +0 -85
- package/types/EventTypes.d.ts +0 -630
- package/types/Events.d.ts +0 -95
- package/types/Files.d.ts +1 -0
- package/types/FilesResource.d.ts +2 -0
- package/types/FinancialConnections/Accounts.d.ts +1 -36
- package/types/FinancialConnections/AccountsResource.d.ts +4 -41
- package/types/FinancialConnections/Sessions.d.ts +1 -51
- package/types/FinancialConnections/SessionsResource.d.ts +1 -43
- package/types/Identity/VerificationSessions.d.ts +0 -5
- package/types/Identity/VerificationSessionsResource.d.ts +0 -7
- package/types/InvoiceItems.d.ts +0 -10
- package/types/InvoiceItemsResource.d.ts +6 -117
- package/types/InvoiceLineItems.d.ts +1 -45
- package/types/InvoicePayments.d.ts +1 -1
- package/types/Invoices.d.ts +5 -203
- package/types/InvoicesResource.d.ts +4 -1622
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/Transactions.d.ts +0 -5
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +0 -49
- package/types/Mandates.d.ts +1 -135
- package/types/MandatesResource.d.ts +0 -31
- package/types/PaymentAttemptRecords.d.ts +1 -137
- package/types/PaymentAttemptRecordsResource.d.ts +5 -0
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +17 -7
- package/types/PaymentIntents.d.ts +23 -782
- package/types/PaymentIntentsResource.d.ts +4783 -9501
- package/types/PaymentLinks.d.ts +34 -6
- package/types/PaymentLinksResource.d.ts +88 -12
- package/types/PaymentMethodConfigurations.d.ts +46 -190
- package/types/PaymentMethodConfigurationsResource.d.ts +100 -300
- package/types/PaymentMethods.d.ts +34 -130
- package/types/PaymentMethodsResource.d.ts +17 -168
- package/types/PaymentRecords.d.ts +1 -137
- package/types/PaymentRecordsResource.d.ts +89 -0
- package/types/PayoutsResource.d.ts +1 -1
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/PromotionCodes.d.ts +0 -5
- package/types/PromotionCodesResource.d.ts +0 -10
- package/types/Quotes.d.ts +1 -594
- package/types/QuotesResource.d.ts +290 -2635
- package/types/Refunds.d.ts +9 -14
- package/types/SetupAttempts.d.ts +2 -51
- package/types/SetupIntents.d.ts +59 -209
- package/types/SetupIntentsResource.d.ts +132 -952
- package/types/Sources.d.ts +0 -29
- package/types/SubscriptionItems.d.ts +0 -26
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +0 -205
- package/types/SubscriptionSchedulesResource.d.ts +4 -1232
- package/types/Subscriptions.d.ts +1 -262
- package/types/SubscriptionsResource.d.ts +8 -745
- package/types/Tax/Registrations.d.ts +9 -0
- package/types/Tax/RegistrationsResource.d.ts +12 -0
- package/types/TaxIds.d.ts +0 -10
- package/types/TaxIdsResource.d.ts +0 -10
- package/types/Terminal/Configurations.d.ts +19 -9
- package/types/Terminal/ConfigurationsResource.d.ts +44 -28
- package/types/Terminal/Readers.d.ts +14 -29
- package/types/Terminal/ReadersResource.d.ts +30 -30
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +1 -1
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/TokensResource.d.ts +22 -0
- package/types/Transfers.d.ts +0 -5
- package/types/TransfersResource.d.ts +0 -5
- package/types/Treasury/FinancialAccountFeatures.d.ts +0 -7
- package/types/Treasury/FinancialAccounts.d.ts +0 -5
- package/types/Treasury/FinancialAccountsResource.d.ts +0 -37
- package/types/Treasury/OutboundTransfers.d.ts +0 -26
- package/types/Treasury/OutboundTransfersResource.d.ts +0 -26
- package/types/Treasury/ReceivedCredits.d.ts +0 -26
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/V2/Core/EventTypes.d.ts +10 -1647
- package/types/V2/Core/EventsResource.d.ts +29 -3
- package/types/WebhookEndpointsResource.d.ts +2 -75
- package/types/apiVersion.d.ts +2 -1
- package/types/crypto/crypto.d.ts +1 -1
- package/types/index.d.ts +0 -153
- 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/Associations.js +0 -9
- package/cjs/resources/Tax/Forms.js +0 -20
- package/cjs/resources/Terminal/OnboardingLinks.js +0 -12
- 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/AccountLinks.js +0 -9
- package/cjs/resources/V2/Core/Accounts/Persons.js +0 -29
- package/cjs/resources/V2/Core/Accounts.js +0 -25
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +0 -28
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +0 -24
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +0 -17
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +0 -25
- 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/Payments/OffSessionPayments.js +0 -29
- 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/Associations.js +0 -6
- package/esm/resources/Tax/Forms.js +0 -17
- package/esm/resources/Terminal/OnboardingLinks.js +0 -9
- 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/AccountLinks.js +0 -6
- package/esm/resources/V2/Core/Accounts/Persons.js +0 -26
- package/esm/resources/V2/Core/Accounts.js +0 -22
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +0 -25
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +0 -21
- package/esm/resources/V2/MoneyManagement/Adjustments.js +0 -14
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +0 -22
- 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/Payments/OffSessionPayments.js +0 -26
- 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 -3139
- 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 -1770
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -908
- package/types/Tax/Associations.d.ts +0 -82
- package/types/Tax/AssociationsResource.d.ts +0 -29
- package/types/Tax/Forms.d.ts +0 -220
- package/types/Tax/FormsResource.d.ts +0 -107
- package/types/Terminal/OnboardingLinks.d.ts +0 -57
- package/types/Terminal/OnboardingLinksResource.d.ts +0 -62
- 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 -686
- package/types/V2/Billing/CadencesResource.d.ts +0 -487
- package/types/V2/Billing/CollectionSettingVersions.d.ts +0 -314
- package/types/V2/Billing/CollectionSettings/VersionsResource.d.ts +0 -62
- package/types/V2/Billing/CollectionSettings.d.ts +0 -337
- package/types/V2/Billing/CollectionSettingsResource.d.ts +0 -675
- package/types/V2/Billing/Profiles.d.ts +0 -70
- package/types/V2/Billing/ProfilesResource.d.ts +0 -150
- package/types/V2/Core/AccountLinks.d.ts +0 -168
- package/types/V2/Core/AccountLinksResource.d.ts +0 -152
- package/types/V2/Core/AccountPersons.d.ts +0 -615
- package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -1153
- package/types/V2/Core/Accounts.d.ts +0 -5919
- package/types/V2/Core/AccountsResource.d.ts +0 -4999
- package/types/V2/Core/Vault/GbBankAccounts.d.ts +0 -160
- package/types/V2/Core/Vault/GbBankAccountsResource.d.ts +0 -172
- package/types/V2/Core/Vault/UsBankAccounts.d.ts +0 -70
- package/types/V2/Core/Vault/UsBankAccountsResource.d.ts +0 -123
- 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 -147
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -178
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -112
- package/types/V2/MoneyManagement/InboundTransfers.d.ts +0 -206
- 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/Payments/OffSessionPayments.d.ts +0 -326
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -401
- 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/RequestSender.js
CHANGED
|
@@ -427,7 +427,7 @@ export class RequestSender {
|
|
|
427
427
|
contentType: apiMode == 'v2'
|
|
428
428
|
? 'application/json'
|
|
429
429
|
: 'application/x-www-form-urlencoded',
|
|
430
|
-
contentLength: requestData
|
|
430
|
+
contentLength: Buffer.byteLength(requestData, 'utf8'),
|
|
431
431
|
apiVersion: apiVersion,
|
|
432
432
|
clientUserAgent,
|
|
433
433
|
method,
|
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',
|
|
@@ -27,4 +27,8 @@ export const PaymentRecords = StripeResource.extend({
|
|
|
27
27
|
method: 'POST',
|
|
28
28
|
fullPath: '/v1/payment_records/{id}/report_payment_attempt_informational',
|
|
29
29
|
}),
|
|
30
|
+
reportRefund: stripeMethod({
|
|
31
|
+
method: 'POST',
|
|
32
|
+
fullPath: '/v1/payment_records/{id}/report_refund',
|
|
33
|
+
}),
|
|
30
34
|
});
|
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
|
@@ -1,21 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
2
|
import { resourceNamespace } from './ResourceNamespace.js';
|
|
3
|
-
import { AccountLinks as V2CoreAccountLinks } from './resources/V2/Core/AccountLinks.js';
|
|
4
3
|
import { Accounts as FinancialConnectionsAccounts } from './resources/FinancialConnections/Accounts.js';
|
|
5
|
-
import { Accounts as V2CoreAccounts } from './resources/V2/Core/Accounts.js';
|
|
6
4
|
import { ActiveEntitlements as EntitlementsActiveEntitlements } from './resources/Entitlements/ActiveEntitlements.js';
|
|
7
|
-
import { Adjustments as V2MoneyManagementAdjustments } from './resources/V2/MoneyManagement/Adjustments.js';
|
|
8
5
|
import { Alerts as BillingAlerts } from './resources/Billing/Alerts.js';
|
|
9
|
-
import { Associations as TaxAssociations } from './resources/Tax/Associations.js';
|
|
10
6
|
import { Authorizations as IssuingAuthorizations } from './resources/Issuing/Authorizations.js';
|
|
11
7
|
import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
|
|
12
|
-
import { BillSettings as V2BillingBillSettings } from './resources/V2/Billing/BillSettings.js';
|
|
13
|
-
import { Cadences as V2BillingCadences } from './resources/V2/Billing/Cadences.js';
|
|
14
8
|
import { Calculations as TaxCalculations } from './resources/Tax/Calculations.js';
|
|
15
9
|
import { Cardholders as IssuingCardholders } from './resources/Issuing/Cardholders.js';
|
|
16
10
|
import { Cards as IssuingCards } from './resources/Issuing/Cards.js';
|
|
17
11
|
import { Cards as TestHelpersIssuingCards } from './resources/TestHelpers/Issuing/Cards.js';
|
|
18
|
-
import { CollectionSettings as V2BillingCollectionSettings } from './resources/V2/Billing/CollectionSettings.js';
|
|
19
12
|
import { Configurations as BillingPortalConfigurations } from './resources/BillingPortal/Configurations.js';
|
|
20
13
|
import { Configurations as TerminalConfigurations } from './resources/Terminal/Configurations.js';
|
|
21
14
|
import { ConfirmationTokens as TestHelpersConfirmationTokens } from './resources/TestHelpers/ConfirmationTokens.js';
|
|
@@ -24,29 +17,16 @@ import { CreditBalanceSummary as BillingCreditBalanceSummary } from './resources
|
|
|
24
17
|
import { CreditBalanceTransactions as BillingCreditBalanceTransactions } from './resources/Billing/CreditBalanceTransactions.js';
|
|
25
18
|
import { CreditGrants as BillingCreditGrants } from './resources/Billing/CreditGrants.js';
|
|
26
19
|
import { CreditReversals as TreasuryCreditReversals } from './resources/Treasury/CreditReversals.js';
|
|
27
|
-
import { CreditUnderwritingRecords as IssuingCreditUnderwritingRecords } from './resources/Issuing/CreditUnderwritingRecords.js';
|
|
28
20
|
import { Customers as TestHelpersCustomers } from './resources/TestHelpers/Customers.js';
|
|
29
21
|
import { DebitReversals as TreasuryDebitReversals } from './resources/Treasury/DebitReversals.js';
|
|
30
|
-
import { DisputeSettlementDetails as IssuingDisputeSettlementDetails } from './resources/Issuing/DisputeSettlementDetails.js';
|
|
31
22
|
import { Disputes as IssuingDisputes } from './resources/Issuing/Disputes.js';
|
|
32
23
|
import { EarlyFraudWarnings as RadarEarlyFraudWarnings } from './resources/Radar/EarlyFraudWarnings.js';
|
|
33
24
|
import { EventDestinations as V2CoreEventDestinations } from './resources/V2/Core/EventDestinations.js';
|
|
34
25
|
import { Events as V2CoreEvents } from './resources/V2/Core/Events.js';
|
|
35
26
|
import { Features as EntitlementsFeatures } from './resources/Entitlements/Features.js';
|
|
36
27
|
import { FinancialAccounts as TreasuryFinancialAccounts } from './resources/Treasury/FinancialAccounts.js';
|
|
37
|
-
import { FinancialAccounts as V2MoneyManagementFinancialAccounts } from './resources/V2/MoneyManagement/FinancialAccounts.js';
|
|
38
|
-
import { FinancialAddresses as V2MoneyManagementFinancialAddresses } from './resources/V2/MoneyManagement/FinancialAddresses.js';
|
|
39
|
-
import { FinancialAddresses as V2TestHelpersFinancialAddresses } from './resources/V2/TestHelpers/FinancialAddresses.js';
|
|
40
|
-
import { FinancingOffers as CapitalFinancingOffers } from './resources/Capital/FinancingOffers.js';
|
|
41
|
-
import { FinancingSummary as CapitalFinancingSummary } from './resources/Capital/FinancingSummary.js';
|
|
42
|
-
import { FinancingTransactions as CapitalFinancingTransactions } from './resources/Capital/FinancingTransactions.js';
|
|
43
|
-
import { Forms as TaxForms } from './resources/Tax/Forms.js';
|
|
44
|
-
import { FraudLiabilityDebits as IssuingFraudLiabilityDebits } from './resources/Issuing/FraudLiabilityDebits.js';
|
|
45
|
-
import { GbBankAccounts as V2CoreVaultGbBankAccounts } from './resources/V2/Core/Vault/GbBankAccounts.js';
|
|
46
28
|
import { InboundTransfers as TestHelpersTreasuryInboundTransfers } from './resources/TestHelpers/Treasury/InboundTransfers.js';
|
|
47
29
|
import { InboundTransfers as TreasuryInboundTransfers } from './resources/Treasury/InboundTransfers.js';
|
|
48
|
-
import { InboundTransfers as V2MoneyManagementInboundTransfers } from './resources/V2/MoneyManagement/InboundTransfers.js';
|
|
49
|
-
import { Institutions as FinancialConnectionsInstitutions } from './resources/FinancialConnections/Institutions.js';
|
|
50
30
|
import { Locations as TerminalLocations } from './resources/Terminal/Locations.js';
|
|
51
31
|
import { MeterEventAdjustments as BillingMeterEventAdjustments } from './resources/Billing/MeterEventAdjustments.js';
|
|
52
32
|
import { MeterEventAdjustments as V2BillingMeterEventAdjustments } from './resources/V2/Billing/MeterEventAdjustments.js';
|
|
@@ -54,36 +34,22 @@ import { MeterEventSession as V2BillingMeterEventSession } from './resources/V2/
|
|
|
54
34
|
import { MeterEventStream as V2BillingMeterEventStream } from './resources/V2/Billing/MeterEventStream.js';
|
|
55
35
|
import { MeterEvents as BillingMeterEvents } from './resources/Billing/MeterEvents.js';
|
|
56
36
|
import { MeterEvents as V2BillingMeterEvents } from './resources/V2/Billing/MeterEvents.js';
|
|
57
|
-
import { MeterUsage as BillingAnalyticsMeterUsage } from './resources/Billing/Analytics/MeterUsage.js';
|
|
58
37
|
import { Meters as BillingMeters } from './resources/Billing/Meters.js';
|
|
59
|
-
import { OffSessionPayments as V2PaymentsOffSessionPayments } from './resources/V2/Payments/OffSessionPayments.js';
|
|
60
|
-
import { OnboardingLinks as TerminalOnboardingLinks } from './resources/Terminal/OnboardingLinks.js';
|
|
61
38
|
import { Orders as ClimateOrders } from './resources/Climate/Orders.js';
|
|
62
|
-
import { OutboundPaymentQuotes as V2MoneyManagementOutboundPaymentQuotes } from './resources/V2/MoneyManagement/OutboundPaymentQuotes.js';
|
|
63
39
|
import { OutboundPayments as TestHelpersTreasuryOutboundPayments } from './resources/TestHelpers/Treasury/OutboundPayments.js';
|
|
64
40
|
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
41
|
import { OutboundTransfers as TestHelpersTreasuryOutboundTransfers } from './resources/TestHelpers/Treasury/OutboundTransfers.js';
|
|
68
42
|
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
43
|
import { PersonalizationDesigns as IssuingPersonalizationDesigns } from './resources/Issuing/PersonalizationDesigns.js';
|
|
73
44
|
import { PersonalizationDesigns as TestHelpersIssuingPersonalizationDesigns } from './resources/TestHelpers/Issuing/PersonalizationDesigns.js';
|
|
74
45
|
import { PhysicalBundles as IssuingPhysicalBundles } from './resources/Issuing/PhysicalBundles.js';
|
|
75
46
|
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
47
|
import { Readers as TerminalReaders } from './resources/Terminal/Readers.js';
|
|
79
48
|
import { Readers as TestHelpersTerminalReaders } from './resources/TestHelpers/Terminal/Readers.js';
|
|
80
49
|
import { ReceivedCredits as TestHelpersTreasuryReceivedCredits } from './resources/TestHelpers/Treasury/ReceivedCredits.js';
|
|
81
50
|
import { ReceivedCredits as TreasuryReceivedCredits } from './resources/Treasury/ReceivedCredits.js';
|
|
82
|
-
import { ReceivedCredits as V2MoneyManagementReceivedCredits } from './resources/V2/MoneyManagement/ReceivedCredits.js';
|
|
83
51
|
import { ReceivedDebits as TestHelpersTreasuryReceivedDebits } from './resources/TestHelpers/Treasury/ReceivedDebits.js';
|
|
84
52
|
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
53
|
import { Refunds as TestHelpersRefunds } from './resources/TestHelpers/Refunds.js';
|
|
88
54
|
import { Registrations as TaxRegistrations } from './resources/Tax/Registrations.js';
|
|
89
55
|
import { ReportRuns as ReportingReportRuns } from './resources/Reporting/ReportRuns.js';
|
|
@@ -99,21 +65,17 @@ import { Suppliers as ClimateSuppliers } from './resources/Climate/Suppliers.js'
|
|
|
99
65
|
import { TestClocks as TestHelpersTestClocks } from './resources/TestHelpers/TestClocks.js';
|
|
100
66
|
import { Tokens as IssuingTokens } from './resources/Issuing/Tokens.js';
|
|
101
67
|
import { TransactionEntries as TreasuryTransactionEntries } from './resources/Treasury/TransactionEntries.js';
|
|
102
|
-
import { TransactionEntries as V2MoneyManagementTransactionEntries } from './resources/V2/MoneyManagement/TransactionEntries.js';
|
|
103
68
|
import { Transactions as FinancialConnectionsTransactions } from './resources/FinancialConnections/Transactions.js';
|
|
104
69
|
import { Transactions as IssuingTransactions } from './resources/Issuing/Transactions.js';
|
|
105
70
|
import { Transactions as TaxTransactions } from './resources/Tax/Transactions.js';
|
|
106
71
|
import { Transactions as TestHelpersIssuingTransactions } from './resources/TestHelpers/Issuing/Transactions.js';
|
|
107
72
|
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
73
|
import { ValueListItems as RadarValueListItems } from './resources/Radar/ValueListItems.js';
|
|
111
74
|
import { ValueLists as RadarValueLists } from './resources/Radar/ValueLists.js';
|
|
112
75
|
import { VerificationReports as IdentityVerificationReports } from './resources/Identity/VerificationReports.js';
|
|
113
76
|
import { VerificationSessions as IdentityVerificationSessions } from './resources/Identity/VerificationSessions.js';
|
|
114
77
|
export { Accounts as Account } from './resources/Accounts.js';
|
|
115
78
|
export { AccountLinks } from './resources/AccountLinks.js';
|
|
116
|
-
export { AccountNotices } from './resources/AccountNotices.js';
|
|
117
79
|
export { AccountSessions } from './resources/AccountSessions.js';
|
|
118
80
|
export { Accounts } from './resources/Accounts.js';
|
|
119
81
|
export { ApplePayDomains } from './resources/ApplePayDomains.js';
|
|
@@ -132,18 +94,14 @@ export { Disputes } from './resources/Disputes.js';
|
|
|
132
94
|
export { EphemeralKeys } from './resources/EphemeralKeys.js';
|
|
133
95
|
export { Events } from './resources/Events.js';
|
|
134
96
|
export { ExchangeRates } from './resources/ExchangeRates.js';
|
|
135
|
-
export { ExternalAccounts } from './resources/ExternalAccounts.js';
|
|
136
97
|
export { FileLinks } from './resources/FileLinks.js';
|
|
137
98
|
export { Files } from './resources/Files.js';
|
|
138
|
-
export { FxQuotes } from './resources/FxQuotes.js';
|
|
139
99
|
export { InvoiceItems } from './resources/InvoiceItems.js';
|
|
140
100
|
export { InvoicePayments } from './resources/InvoicePayments.js';
|
|
141
101
|
export { InvoiceRenderingTemplates } from './resources/InvoiceRenderingTemplates.js';
|
|
142
102
|
export { Invoices } from './resources/Invoices.js';
|
|
143
103
|
export { Mandates } from './resources/Mandates.js';
|
|
144
|
-
export { Margins } from './resources/Margins.js';
|
|
145
104
|
export { OAuth } from './resources/OAuth.js';
|
|
146
|
-
export { Orders } from './resources/Orders.js';
|
|
147
105
|
export { PaymentAttemptRecords } from './resources/PaymentAttemptRecords.js';
|
|
148
106
|
export { PaymentIntents } from './resources/PaymentIntents.js';
|
|
149
107
|
export { PaymentLinks } from './resources/PaymentLinks.js';
|
|
@@ -182,19 +140,11 @@ export const Billing = resourceNamespace('billing', {
|
|
|
182
140
|
MeterEventAdjustments: BillingMeterEventAdjustments,
|
|
183
141
|
MeterEvents: BillingMeterEvents,
|
|
184
142
|
Meters: BillingMeters,
|
|
185
|
-
Analytics: resourceNamespace('analytics', {
|
|
186
|
-
MeterUsage: BillingAnalyticsMeterUsage,
|
|
187
|
-
}),
|
|
188
143
|
});
|
|
189
144
|
export const BillingPortal = resourceNamespace('billingPortal', {
|
|
190
145
|
Configurations: BillingPortalConfigurations,
|
|
191
146
|
Sessions: BillingPortalSessions,
|
|
192
147
|
});
|
|
193
|
-
export const Capital = resourceNamespace('capital', {
|
|
194
|
-
FinancingOffers: CapitalFinancingOffers,
|
|
195
|
-
FinancingSummary: CapitalFinancingSummary,
|
|
196
|
-
FinancingTransactions: CapitalFinancingTransactions,
|
|
197
|
-
});
|
|
198
148
|
export const Checkout = resourceNamespace('checkout', {
|
|
199
149
|
Sessions: CheckoutSessions,
|
|
200
150
|
});
|
|
@@ -209,7 +159,6 @@ export const Entitlements = resourceNamespace('entitlements', {
|
|
|
209
159
|
});
|
|
210
160
|
export const FinancialConnections = resourceNamespace('financialConnections', {
|
|
211
161
|
Accounts: FinancialConnectionsAccounts,
|
|
212
|
-
Institutions: FinancialConnectionsInstitutions,
|
|
213
162
|
Sessions: FinancialConnectionsSessions,
|
|
214
163
|
Transactions: FinancialConnectionsTransactions,
|
|
215
164
|
});
|
|
@@ -224,18 +173,12 @@ export const Issuing = resourceNamespace('issuing', {
|
|
|
224
173
|
Authorizations: IssuingAuthorizations,
|
|
225
174
|
Cardholders: IssuingCardholders,
|
|
226
175
|
Cards: IssuingCards,
|
|
227
|
-
CreditUnderwritingRecords: IssuingCreditUnderwritingRecords,
|
|
228
|
-
DisputeSettlementDetails: IssuingDisputeSettlementDetails,
|
|
229
176
|
Disputes: IssuingDisputes,
|
|
230
|
-
FraudLiabilityDebits: IssuingFraudLiabilityDebits,
|
|
231
177
|
PersonalizationDesigns: IssuingPersonalizationDesigns,
|
|
232
178
|
PhysicalBundles: IssuingPhysicalBundles,
|
|
233
179
|
Tokens: IssuingTokens,
|
|
234
180
|
Transactions: IssuingTransactions,
|
|
235
181
|
});
|
|
236
|
-
export const Privacy = resourceNamespace('privacy', {
|
|
237
|
-
RedactionJobs: PrivacyRedactionJobs,
|
|
238
|
-
});
|
|
239
182
|
export const Radar = resourceNamespace('radar', {
|
|
240
183
|
EarlyFraudWarnings: RadarEarlyFraudWarnings,
|
|
241
184
|
ValueListItems: RadarValueListItems,
|
|
@@ -249,9 +192,7 @@ export const Sigma = resourceNamespace('sigma', {
|
|
|
249
192
|
ScheduledQueryRuns: SigmaScheduledQueryRuns,
|
|
250
193
|
});
|
|
251
194
|
export const Tax = resourceNamespace('tax', {
|
|
252
|
-
Associations: TaxAssociations,
|
|
253
195
|
Calculations: TaxCalculations,
|
|
254
|
-
Forms: TaxForms,
|
|
255
196
|
Registrations: TaxRegistrations,
|
|
256
197
|
Settings: TaxSettings,
|
|
257
198
|
Transactions: TaxTransactions,
|
|
@@ -260,8 +201,6 @@ export const Terminal = resourceNamespace('terminal', {
|
|
|
260
201
|
Configurations: TerminalConfigurations,
|
|
261
202
|
ConnectionTokens: TerminalConnectionTokens,
|
|
262
203
|
Locations: TerminalLocations,
|
|
263
|
-
OnboardingLinks: TerminalOnboardingLinks,
|
|
264
|
-
ReaderCollectedData: TerminalReaderCollectedData,
|
|
265
204
|
Readers: TerminalReaders,
|
|
266
205
|
});
|
|
267
206
|
export const TestHelpers = resourceNamespace('testHelpers', {
|
|
@@ -300,45 +239,13 @@ export const Treasury = resourceNamespace('treasury', {
|
|
|
300
239
|
});
|
|
301
240
|
export const V2 = resourceNamespace('v2', {
|
|
302
241
|
Billing: resourceNamespace('billing', {
|
|
303
|
-
BillSettings: V2BillingBillSettings,
|
|
304
|
-
Cadences: V2BillingCadences,
|
|
305
|
-
CollectionSettings: V2BillingCollectionSettings,
|
|
306
242
|
MeterEventAdjustments: V2BillingMeterEventAdjustments,
|
|
307
243
|
MeterEventSession: V2BillingMeterEventSession,
|
|
308
244
|
MeterEventStream: V2BillingMeterEventStream,
|
|
309
245
|
MeterEvents: V2BillingMeterEvents,
|
|
310
|
-
Profiles: V2BillingProfiles,
|
|
311
246
|
}),
|
|
312
247
|
Core: resourceNamespace('core', {
|
|
313
|
-
AccountLinks: V2CoreAccountLinks,
|
|
314
|
-
Accounts: V2CoreAccounts,
|
|
315
248
|
EventDestinations: V2CoreEventDestinations,
|
|
316
249
|
Events: V2CoreEvents,
|
|
317
|
-
Vault: resourceNamespace('vault', {
|
|
318
|
-
GbBankAccounts: V2CoreVaultGbBankAccounts,
|
|
319
|
-
UsBankAccounts: V2CoreVaultUsBankAccounts,
|
|
320
|
-
}),
|
|
321
|
-
}),
|
|
322
|
-
MoneyManagement: resourceNamespace('moneyManagement', {
|
|
323
|
-
Adjustments: V2MoneyManagementAdjustments,
|
|
324
|
-
FinancialAccounts: V2MoneyManagementFinancialAccounts,
|
|
325
|
-
FinancialAddresses: V2MoneyManagementFinancialAddresses,
|
|
326
|
-
InboundTransfers: V2MoneyManagementInboundTransfers,
|
|
327
|
-
OutboundPaymentQuotes: V2MoneyManagementOutboundPaymentQuotes,
|
|
328
|
-
OutboundPayments: V2MoneyManagementOutboundPayments,
|
|
329
|
-
OutboundSetupIntents: V2MoneyManagementOutboundSetupIntents,
|
|
330
|
-
OutboundTransfers: V2MoneyManagementOutboundTransfers,
|
|
331
|
-
PayoutMethods: V2MoneyManagementPayoutMethods,
|
|
332
|
-
PayoutMethodsBankAccountSpec: V2MoneyManagementPayoutMethodsBankAccountSpec,
|
|
333
|
-
ReceivedCredits: V2MoneyManagementReceivedCredits,
|
|
334
|
-
ReceivedDebits: V2MoneyManagementReceivedDebits,
|
|
335
|
-
TransactionEntries: V2MoneyManagementTransactionEntries,
|
|
336
|
-
Transactions: V2MoneyManagementTransactions,
|
|
337
|
-
}),
|
|
338
|
-
Payment: resourceNamespace('payment', {
|
|
339
|
-
OffSessionPayments: V2PaymentsOffSessionPayments,
|
|
340
|
-
}),
|
|
341
|
-
TestHelper: resourceNamespace('testHelper', {
|
|
342
|
-
FinancialAddresses: V2TestHelpersFinancialAddresses,
|
|
343
250
|
}),
|
|
344
251
|
});
|
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 = '19.2.
|
|
37
|
+
Stripe.PACKAGE_VERSION = '19.2.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
|
@@ -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 {
|
|
@@ -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.
|