stripe 18.5.0-beta.2 → 18.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +33 -1327
- package/OPENAPI_VERSION +1 -1
- package/README.md +5 -4
- package/VERSION +1 -1
- package/cjs/Error.js +1 -107
- package/cjs/apiVersion.js +3 -2
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/PaymentIntents.js +0 -13
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources.js +32 -126
- package/cjs/stripe.core.js +1 -1
- package/esm/Error.js +0 -93
- package/esm/apiVersion.js +2 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/PaymentIntents.js +0 -13
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources.js +5 -91
- package/esm/stripe.core.js +1 -1
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +45 -45
- package/types/AccountSessionsResource.d.ts +51 -252
- package/types/Accounts.d.ts +3 -214
- package/types/AccountsResource.d.ts +0 -544
- package/types/Balance.d.ts +2 -7
- 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 +1 -11
- package/types/Billing/Meters.d.ts +1 -1
- package/types/Billing/MetersResource.d.ts +1 -1
- package/types/BillingPortal/Configurations.d.ts +5 -0
- 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 +76 -171
- package/types/ChargesResource.d.ts +0 -1406
- package/types/Checkout/Sessions.d.ts +9 -313
- package/types/Checkout/SessionsResource.d.ts +10 -414
- package/types/ConfirmationTokens.d.ts +0 -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 +0 -5
- package/types/CreditNotesResource.d.ts +3 -8
- package/types/CustomerBalanceTransactions.d.ts +0 -2
- package/types/CustomerCashBalanceTransactions.d.ts +0 -2
- package/types/CustomerSessions.d.ts +0 -5
- package/types/CustomerSessionsResource.d.ts +1 -6
- package/types/Customers.d.ts +0 -2
- package/types/CustomersResource.d.ts +0 -8
- package/types/Discounts.d.ts +0 -10
- package/types/Disputes.d.ts +7 -31
- package/types/Errors.d.ts +2 -81
- package/types/EventTypes.d.ts +0 -664
- package/types/Events.d.ts +0 -97
- package/types/FileLinksResource.d.ts +1 -1
- package/types/Files.d.ts +1 -0
- package/types/FilesResource.d.ts +3 -1
- package/types/FinancialConnections/Accounts.d.ts +1 -36
- package/types/FinancialConnections/AccountsResource.d.ts +3 -40
- 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 +0 -5
- package/types/InvoicePaymentsResource.d.ts +1 -7
- package/types/Invoices.d.ts +6 -172
- package/types/InvoicesResource.d.ts +61 -1513
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/CardsResource.d.ts +10 -0
- 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 +0 -77
- package/types/PaymentIntents.d.ts +63 -762
- package/types/PaymentIntentsResource.d.ts +5567 -11125
- package/types/PaymentLinks.d.ts +0 -6
- package/types/PaymentLinksResource.d.ts +1 -13
- package/types/PaymentMethodConfigurations.d.ts +0 -180
- package/types/PaymentMethodConfigurationsResource.d.ts +0 -250
- package/types/PaymentMethods.d.ts +0 -125
- package/types/PaymentMethodsResource.d.ts +2 -167
- package/types/Payouts.d.ts +1 -1
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +0 -22
- package/types/PromotionCodes.d.ts +5 -7
- package/types/PromotionCodesResource.d.ts +0 -10
- package/types/Quotes.d.ts +1 -594
- package/types/QuotesResource.d.ts +281 -2626
- package/types/Refunds.d.ts +0 -14
- package/types/SetupAttempts.d.ts +4 -48
- package/types/SetupIntents.d.ts +5 -119
- package/types/SetupIntentsResource.d.ts +3 -730
- package/types/Sources.d.ts +0 -29
- package/types/SubscriptionItems.d.ts +0 -21
- package/types/SubscriptionItemsResource.d.ts +0 -109
- package/types/SubscriptionSchedules.d.ts +39 -197
- package/types/SubscriptionSchedulesResource.d.ts +83 -1199
- package/types/Subscriptions.d.ts +1 -135
- package/types/SubscriptionsResource.d.ts +97 -449
- package/types/TaxIds.d.ts +0 -10
- package/types/TaxIdsResource.d.ts +0 -10
- package/types/Terminal/Configurations.d.ts +19 -0
- package/types/Terminal/ConfigurationsResource.d.ts +44 -0
- package/types/Terminal/Readers.d.ts +0 -20
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
- package/types/TestHelpers/Terminal/ReadersResource.d.ts +28 -1
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- 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/EventTypes.d.ts +4 -964
- package/types/WebhookEndpointsResource.d.ts +2 -79
- package/types/index.d.ts +2 -147
- package/types/lib.d.ts +1 -11
- package/types/test/typescriptTest.ts +3 -3
- package/cjs/resources/AccountNotices.js +0 -21
- package/cjs/resources/BalanceSettings.js +0 -10
- package/cjs/resources/Billing/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/PaymentAttemptRecords.js +0 -17
- package/cjs/resources/PaymentRecords.js +0 -29
- 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/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 -25
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/BalanceSettings.js +0 -7
- package/esm/resources/Billing/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/PaymentAttemptRecords.js +0 -14
- package/esm/resources/PaymentRecords.js +0 -26
- 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/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 -22
- 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/BalanceSettings.d.ts +0 -91
- package/types/BalanceSettingsResource.d.ts +0 -110
- package/types/Billing/MeterUsage.d.ts +0 -32
- package/types/Billing/MeterUsageResource.d.ts +0 -685
- package/types/Billing/MeterUsageRows.d.ts +0 -49
- 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/PaymentAttemptRecords.d.ts +0 -2166
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -116
- package/types/PaymentRecords.d.ts +0 -2159
- package/types/PaymentRecordsResource.d.ts +0 -455
- 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 -1734
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -845
- 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/Core/AccountLinks.d.ts +0 -168
- package/types/V2/Core/AccountLinksResource.d.ts +0 -152
- package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3780
- package/types/V2/Core/Accounts.d.ts +0 -8813
- package/types/V2/Core/AccountsResource.d.ts +0 -10626
- package/types/V2/Core/Persons.d.ts +0 -1872
- 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 -580
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -326
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -314
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -289
- 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 -168
- 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/PayoutMethodsBankAccountSpecResource.d.ts +0 -41
- package/types/V2/MoneyManagement/PayoutMethodsBankAccountSpecs.d.ts +0 -87
- package/types/V2/MoneyManagement/PayoutMethodsResource.d.ts +0 -113
- package/types/V2/MoneyManagement/ReceivedCredits.d.ts +0 -262
- 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 -155
- package/types/V2/MoneyManagement/TransactionEntriesResource.d.ts +0 -82
- package/types/V2/MoneyManagement/Transactions.d.ts +0 -170
- package/types/V2/MoneyManagement/TransactionsResource.d.ts +0 -83
- package/types/V2/Payments/OffSessionPayments.d.ts +0 -179
- package/types/V2/Payments/OffSessionPaymentsResource.d.ts +0 -174
- package/types/V2/TestHelpers/FinancialAddressesResource.d.ts +0 -68
package/esm/Error.js
CHANGED
|
@@ -26,32 +26,6 @@ export const generateV2Error = (rawStripeError) => {
|
|
|
26
26
|
// switchCases: The beginning of the section generated from our OpenAPI spec
|
|
27
27
|
case 'temporary_session_expired':
|
|
28
28
|
return new TemporarySessionExpiredError(rawStripeError);
|
|
29
|
-
case 'non_zero_balance':
|
|
30
|
-
return new NonZeroBalanceError(rawStripeError);
|
|
31
|
-
case 'already_exists':
|
|
32
|
-
return new AlreadyExistsError(rawStripeError);
|
|
33
|
-
case 'feature_not_enabled':
|
|
34
|
-
return new FeatureNotEnabledError(rawStripeError);
|
|
35
|
-
case 'financial_account_not_open':
|
|
36
|
-
return new FinancialAccountNotOpenError(rawStripeError);
|
|
37
|
-
case 'blocked_by_stripe':
|
|
38
|
-
return new BlockedByStripeError(rawStripeError);
|
|
39
|
-
case 'already_canceled':
|
|
40
|
-
return new AlreadyCanceledError(rawStripeError);
|
|
41
|
-
case 'not_cancelable':
|
|
42
|
-
return new NotCancelableError(rawStripeError);
|
|
43
|
-
case 'insufficient_funds':
|
|
44
|
-
return new InsufficientFundsError(rawStripeError);
|
|
45
|
-
case 'quota_exceeded':
|
|
46
|
-
return new QuotaExceededError(rawStripeError);
|
|
47
|
-
case 'recipient_not_notifiable':
|
|
48
|
-
return new RecipientNotNotifiableError(rawStripeError);
|
|
49
|
-
case 'invalid_payout_method':
|
|
50
|
-
return new InvalidPayoutMethodError(rawStripeError);
|
|
51
|
-
case 'controlled_by_dashboard':
|
|
52
|
-
return new ControlledByDashboardError(rawStripeError);
|
|
53
|
-
case 'invalid_payment_method':
|
|
54
|
-
return new InvalidPaymentMethodError(rawStripeError);
|
|
55
29
|
// switchCases: The end of the section generated from our OpenAPI spec
|
|
56
30
|
}
|
|
57
31
|
// Special handling for requests with missing required fields in V2 APIs.
|
|
@@ -208,71 +182,4 @@ export class TemporarySessionExpiredError extends StripeError {
|
|
|
208
182
|
super(rawStripeError, 'TemporarySessionExpiredError');
|
|
209
183
|
}
|
|
210
184
|
}
|
|
211
|
-
export class NonZeroBalanceError extends StripeError {
|
|
212
|
-
constructor(rawStripeError = {}) {
|
|
213
|
-
super(rawStripeError, 'NonZeroBalanceError');
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
export class AlreadyExistsError extends StripeError {
|
|
217
|
-
constructor(rawStripeError = {}) {
|
|
218
|
-
super(rawStripeError, 'AlreadyExistsError');
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
export class FeatureNotEnabledError extends StripeError {
|
|
222
|
-
constructor(rawStripeError = {}) {
|
|
223
|
-
super(rawStripeError, 'FeatureNotEnabledError');
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
export class FinancialAccountNotOpenError extends StripeError {
|
|
227
|
-
constructor(rawStripeError = {}) {
|
|
228
|
-
super(rawStripeError, 'FinancialAccountNotOpenError');
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
export class BlockedByStripeError extends StripeError {
|
|
232
|
-
constructor(rawStripeError = {}) {
|
|
233
|
-
super(rawStripeError, 'BlockedByStripeError');
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
export class AlreadyCanceledError extends StripeError {
|
|
237
|
-
constructor(rawStripeError = {}) {
|
|
238
|
-
super(rawStripeError, 'AlreadyCanceledError');
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
export class NotCancelableError extends StripeError {
|
|
242
|
-
constructor(rawStripeError = {}) {
|
|
243
|
-
super(rawStripeError, 'NotCancelableError');
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
export class InsufficientFundsError extends StripeError {
|
|
247
|
-
constructor(rawStripeError = {}) {
|
|
248
|
-
super(rawStripeError, 'InsufficientFundsError');
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
export class QuotaExceededError extends StripeError {
|
|
252
|
-
constructor(rawStripeError = {}) {
|
|
253
|
-
super(rawStripeError, 'QuotaExceededError');
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
export class RecipientNotNotifiableError extends StripeError {
|
|
257
|
-
constructor(rawStripeError = {}) {
|
|
258
|
-
super(rawStripeError, 'RecipientNotNotifiableError');
|
|
259
|
-
}
|
|
260
|
-
}
|
|
261
|
-
export class InvalidPayoutMethodError extends StripeError {
|
|
262
|
-
constructor(rawStripeError = {}) {
|
|
263
|
-
super(rawStripeError, 'InvalidPayoutMethodError');
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
export class ControlledByDashboardError extends StripeError {
|
|
267
|
-
constructor(rawStripeError = {}) {
|
|
268
|
-
super(rawStripeError, 'ControlledByDashboardError');
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
export class InvalidPaymentMethodError extends StripeError {
|
|
272
|
-
constructor(rawStripeError) {
|
|
273
|
-
super(rawStripeError, 'InvalidPaymentMethodError');
|
|
274
|
-
// @ts-ignore
|
|
275
|
-
this.invalid_param = this.raw.invalid_param;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
185
|
// classDefinitions: The end of the section generated from our OpenAPI spec
|
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',
|
|
@@ -32,28 +32,15 @@ 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',
|
|
42
38
|
}),
|
|
43
|
-
listAmountDetailsLineItems: stripeMethod({
|
|
44
|
-
method: 'GET',
|
|
45
|
-
fullPath: '/v1/payment_intents/{intent}/amount_details_line_items',
|
|
46
|
-
methodType: 'list',
|
|
47
|
-
}),
|
|
48
39
|
search: stripeMethod({
|
|
49
40
|
method: 'GET',
|
|
50
41
|
fullPath: '/v1/payment_intents/search',
|
|
51
42
|
methodType: 'search',
|
|
52
43
|
}),
|
|
53
|
-
triggerAction: stripeMethod({
|
|
54
|
-
method: 'POST',
|
|
55
|
-
fullPath: '/v1/test/payment_intents/{intent}/trigger_action',
|
|
56
|
-
}),
|
|
57
44
|
verifyMicrodeposits: stripeMethod({
|
|
58
45
|
method: 'POST',
|
|
59
46
|
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',
|
package/esm/resources.js
CHANGED
|
@@ -1,18 +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
|
-
import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
|
|
11
6
|
import { Authorizations as IssuingAuthorizations } from './resources/Issuing/Authorizations.js';
|
|
7
|
+
import { Authorizations as TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
|
|
12
8
|
import { Calculations as TaxCalculations } from './resources/Tax/Calculations.js';
|
|
13
9
|
import { Cardholders as IssuingCardholders } from './resources/Issuing/Cardholders.js';
|
|
14
|
-
import { Cards as TestHelpersIssuingCards } from './resources/TestHelpers/Issuing/Cards.js';
|
|
15
10
|
import { Cards as IssuingCards } from './resources/Issuing/Cards.js';
|
|
11
|
+
import { Cards as TestHelpersIssuingCards } from './resources/TestHelpers/Issuing/Cards.js';
|
|
16
12
|
import { Configurations as BillingPortalConfigurations } from './resources/BillingPortal/Configurations.js';
|
|
17
13
|
import { Configurations as TerminalConfigurations } from './resources/Terminal/Configurations.js';
|
|
18
14
|
import { ConfirmationTokens as TestHelpersConfirmationTokens } from './resources/TestHelpers/ConfirmationTokens.js';
|
|
@@ -21,29 +17,16 @@ import { CreditBalanceSummary as BillingCreditBalanceSummary } from './resources
|
|
|
21
17
|
import { CreditBalanceTransactions as BillingCreditBalanceTransactions } from './resources/Billing/CreditBalanceTransactions.js';
|
|
22
18
|
import { CreditGrants as BillingCreditGrants } from './resources/Billing/CreditGrants.js';
|
|
23
19
|
import { CreditReversals as TreasuryCreditReversals } from './resources/Treasury/CreditReversals.js';
|
|
24
|
-
import { CreditUnderwritingRecords as IssuingCreditUnderwritingRecords } from './resources/Issuing/CreditUnderwritingRecords.js';
|
|
25
20
|
import { Customers as TestHelpersCustomers } from './resources/TestHelpers/Customers.js';
|
|
26
21
|
import { DebitReversals as TreasuryDebitReversals } from './resources/Treasury/DebitReversals.js';
|
|
27
|
-
import { DisputeSettlementDetails as IssuingDisputeSettlementDetails } from './resources/Issuing/DisputeSettlementDetails.js';
|
|
28
22
|
import { Disputes as IssuingDisputes } from './resources/Issuing/Disputes.js';
|
|
29
23
|
import { EarlyFraudWarnings as RadarEarlyFraudWarnings } from './resources/Radar/EarlyFraudWarnings.js';
|
|
30
24
|
import { EventDestinations as V2CoreEventDestinations } from './resources/V2/Core/EventDestinations.js';
|
|
31
25
|
import { Events as V2CoreEvents } from './resources/V2/Core/Events.js';
|
|
32
26
|
import { Features as EntitlementsFeatures } from './resources/Entitlements/Features.js';
|
|
33
27
|
import { FinancialAccounts as TreasuryFinancialAccounts } from './resources/Treasury/FinancialAccounts.js';
|
|
34
|
-
import { FinancialAccounts as V2MoneyManagementFinancialAccounts } from './resources/V2/MoneyManagement/FinancialAccounts.js';
|
|
35
|
-
import { FinancialAddresses as V2MoneyManagementFinancialAddresses } from './resources/V2/MoneyManagement/FinancialAddresses.js';
|
|
36
|
-
import { FinancialAddresses as V2TestHelpersFinancialAddresses } from './resources/V2/TestHelpers/FinancialAddresses.js';
|
|
37
|
-
import { FinancingOffers as CapitalFinancingOffers } from './resources/Capital/FinancingOffers.js';
|
|
38
|
-
import { FinancingSummary as CapitalFinancingSummary } from './resources/Capital/FinancingSummary.js';
|
|
39
|
-
import { FinancingTransactions as CapitalFinancingTransactions } from './resources/Capital/FinancingTransactions.js';
|
|
40
|
-
import { Forms as TaxForms } from './resources/Tax/Forms.js';
|
|
41
|
-
import { FraudLiabilityDebits as IssuingFraudLiabilityDebits } from './resources/Issuing/FraudLiabilityDebits.js';
|
|
42
|
-
import { GbBankAccounts as V2CoreVaultGbBankAccounts } from './resources/V2/Core/Vault/GbBankAccounts.js';
|
|
43
28
|
import { InboundTransfers as TestHelpersTreasuryInboundTransfers } from './resources/TestHelpers/Treasury/InboundTransfers.js';
|
|
44
29
|
import { InboundTransfers as TreasuryInboundTransfers } from './resources/Treasury/InboundTransfers.js';
|
|
45
|
-
import { InboundTransfers as V2MoneyManagementInboundTransfers } from './resources/V2/MoneyManagement/InboundTransfers.js';
|
|
46
|
-
import { Institutions as FinancialConnectionsInstitutions } from './resources/FinancialConnections/Institutions.js';
|
|
47
30
|
import { Locations as TerminalLocations } from './resources/Terminal/Locations.js';
|
|
48
31
|
import { MeterEventAdjustments as BillingMeterEventAdjustments } from './resources/Billing/MeterEventAdjustments.js';
|
|
49
32
|
import { MeterEventAdjustments as V2BillingMeterEventAdjustments } from './resources/V2/Billing/MeterEventAdjustments.js';
|
|
@@ -51,35 +34,22 @@ import { MeterEventSession as V2BillingMeterEventSession } from './resources/V2/
|
|
|
51
34
|
import { MeterEventStream as V2BillingMeterEventStream } from './resources/V2/Billing/MeterEventStream.js';
|
|
52
35
|
import { MeterEvents as BillingMeterEvents } from './resources/Billing/MeterEvents.js';
|
|
53
36
|
import { MeterEvents as V2BillingMeterEvents } from './resources/V2/Billing/MeterEvents.js';
|
|
54
|
-
import { MeterUsage as BillingMeterUsage } from './resources/Billing/MeterUsage.js';
|
|
55
37
|
import { Meters as BillingMeters } from './resources/Billing/Meters.js';
|
|
56
|
-
import { OffSessionPayments as V2PaymentsOffSessionPayments } from './resources/V2/Payments/OffSessionPayments.js';
|
|
57
|
-
import { OnboardingLinks as TerminalOnboardingLinks } from './resources/Terminal/OnboardingLinks.js';
|
|
58
38
|
import { Orders as ClimateOrders } from './resources/Climate/Orders.js';
|
|
59
|
-
import { OutboundPaymentQuotes as V2MoneyManagementOutboundPaymentQuotes } from './resources/V2/MoneyManagement/OutboundPaymentQuotes.js';
|
|
60
39
|
import { OutboundPayments as TestHelpersTreasuryOutboundPayments } from './resources/TestHelpers/Treasury/OutboundPayments.js';
|
|
61
40
|
import { OutboundPayments as TreasuryOutboundPayments } from './resources/Treasury/OutboundPayments.js';
|
|
62
|
-
import { OutboundPayments as V2MoneyManagementOutboundPayments } from './resources/V2/MoneyManagement/OutboundPayments.js';
|
|
63
|
-
import { OutboundSetupIntents as V2MoneyManagementOutboundSetupIntents } from './resources/V2/MoneyManagement/OutboundSetupIntents.js';
|
|
64
41
|
import { OutboundTransfers as TestHelpersTreasuryOutboundTransfers } from './resources/TestHelpers/Treasury/OutboundTransfers.js';
|
|
65
42
|
import { OutboundTransfers as TreasuryOutboundTransfers } from './resources/Treasury/OutboundTransfers.js';
|
|
66
|
-
import { OutboundTransfers as V2MoneyManagementOutboundTransfers } from './resources/V2/MoneyManagement/OutboundTransfers.js';
|
|
67
|
-
import { PayoutMethods as V2MoneyManagementPayoutMethods } from './resources/V2/MoneyManagement/PayoutMethods.js';
|
|
68
|
-
import { PayoutMethodsBankAccountSpec as V2MoneyManagementPayoutMethodsBankAccountSpec } from './resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js';
|
|
69
|
-
import { PersonalizationDesigns as TestHelpersIssuingPersonalizationDesigns } from './resources/TestHelpers/Issuing/PersonalizationDesigns.js';
|
|
70
43
|
import { PersonalizationDesigns as IssuingPersonalizationDesigns } from './resources/Issuing/PersonalizationDesigns.js';
|
|
44
|
+
import { PersonalizationDesigns as TestHelpersIssuingPersonalizationDesigns } from './resources/TestHelpers/Issuing/PersonalizationDesigns.js';
|
|
71
45
|
import { PhysicalBundles as IssuingPhysicalBundles } from './resources/Issuing/PhysicalBundles.js';
|
|
72
46
|
import { Products as ClimateProducts } from './resources/Climate/Products.js';
|
|
73
|
-
import { ReaderCollectedData as TerminalReaderCollectedData } from './resources/Terminal/ReaderCollectedData.js';
|
|
74
|
-
import { Readers as TestHelpersTerminalReaders } from './resources/TestHelpers/Terminal/Readers.js';
|
|
75
47
|
import { Readers as TerminalReaders } from './resources/Terminal/Readers.js';
|
|
48
|
+
import { Readers as TestHelpersTerminalReaders } from './resources/TestHelpers/Terminal/Readers.js';
|
|
76
49
|
import { ReceivedCredits as TestHelpersTreasuryReceivedCredits } from './resources/TestHelpers/Treasury/ReceivedCredits.js';
|
|
77
50
|
import { ReceivedCredits as TreasuryReceivedCredits } from './resources/Treasury/ReceivedCredits.js';
|
|
78
|
-
import { ReceivedCredits as V2MoneyManagementReceivedCredits } from './resources/V2/MoneyManagement/ReceivedCredits.js';
|
|
79
51
|
import { ReceivedDebits as TestHelpersTreasuryReceivedDebits } from './resources/TestHelpers/Treasury/ReceivedDebits.js';
|
|
80
52
|
import { ReceivedDebits as TreasuryReceivedDebits } from './resources/Treasury/ReceivedDebits.js';
|
|
81
|
-
import { ReceivedDebits as V2MoneyManagementReceivedDebits } from './resources/V2/MoneyManagement/ReceivedDebits.js';
|
|
82
|
-
import { RedactionJobs as PrivacyRedactionJobs } from './resources/Privacy/RedactionJobs.js';
|
|
83
53
|
import { Refunds as TestHelpersRefunds } from './resources/TestHelpers/Refunds.js';
|
|
84
54
|
import { Registrations as TaxRegistrations } from './resources/Tax/Registrations.js';
|
|
85
55
|
import { ReportRuns as ReportingReportRuns } from './resources/Reporting/ReportRuns.js';
|
|
@@ -95,27 +65,22 @@ import { Suppliers as ClimateSuppliers } from './resources/Climate/Suppliers.js'
|
|
|
95
65
|
import { TestClocks as TestHelpersTestClocks } from './resources/TestHelpers/TestClocks.js';
|
|
96
66
|
import { Tokens as IssuingTokens } from './resources/Issuing/Tokens.js';
|
|
97
67
|
import { TransactionEntries as TreasuryTransactionEntries } from './resources/Treasury/TransactionEntries.js';
|
|
98
|
-
import { TransactionEntries as V2MoneyManagementTransactionEntries } from './resources/V2/MoneyManagement/TransactionEntries.js';
|
|
99
|
-
import { Transactions as TestHelpersIssuingTransactions } from './resources/TestHelpers/Issuing/Transactions.js';
|
|
100
68
|
import { Transactions as FinancialConnectionsTransactions } from './resources/FinancialConnections/Transactions.js';
|
|
101
69
|
import { Transactions as IssuingTransactions } from './resources/Issuing/Transactions.js';
|
|
102
70
|
import { Transactions as TaxTransactions } from './resources/Tax/Transactions.js';
|
|
71
|
+
import { Transactions as TestHelpersIssuingTransactions } from './resources/TestHelpers/Issuing/Transactions.js';
|
|
103
72
|
import { Transactions as TreasuryTransactions } from './resources/Treasury/Transactions.js';
|
|
104
|
-
import { Transactions as V2MoneyManagementTransactions } from './resources/V2/MoneyManagement/Transactions.js';
|
|
105
|
-
import { UsBankAccounts as V2CoreVaultUsBankAccounts } from './resources/V2/Core/Vault/UsBankAccounts.js';
|
|
106
73
|
import { ValueListItems as RadarValueListItems } from './resources/Radar/ValueListItems.js';
|
|
107
74
|
import { ValueLists as RadarValueLists } from './resources/Radar/ValueLists.js';
|
|
108
75
|
import { VerificationReports as IdentityVerificationReports } from './resources/Identity/VerificationReports.js';
|
|
109
76
|
import { VerificationSessions as IdentityVerificationSessions } from './resources/Identity/VerificationSessions.js';
|
|
110
77
|
export { Accounts as Account } from './resources/Accounts.js';
|
|
111
78
|
export { AccountLinks } from './resources/AccountLinks.js';
|
|
112
|
-
export { AccountNotices } from './resources/AccountNotices.js';
|
|
113
79
|
export { AccountSessions } from './resources/AccountSessions.js';
|
|
114
80
|
export { Accounts } from './resources/Accounts.js';
|
|
115
81
|
export { ApplePayDomains } from './resources/ApplePayDomains.js';
|
|
116
82
|
export { ApplicationFees } from './resources/ApplicationFees.js';
|
|
117
83
|
export { Balance } from './resources/Balance.js';
|
|
118
|
-
export { BalanceSettings } from './resources/BalanceSettings.js';
|
|
119
84
|
export { BalanceTransactions } from './resources/BalanceTransactions.js';
|
|
120
85
|
export { Charges } from './resources/Charges.js';
|
|
121
86
|
export { ConfirmationTokens } from './resources/ConfirmationTokens.js';
|
|
@@ -128,25 +93,19 @@ export { Disputes } from './resources/Disputes.js';
|
|
|
128
93
|
export { EphemeralKeys } from './resources/EphemeralKeys.js';
|
|
129
94
|
export { Events } from './resources/Events.js';
|
|
130
95
|
export { ExchangeRates } from './resources/ExchangeRates.js';
|
|
131
|
-
export { ExternalAccounts } from './resources/ExternalAccounts.js';
|
|
132
96
|
export { FileLinks } from './resources/FileLinks.js';
|
|
133
97
|
export { Files } from './resources/Files.js';
|
|
134
|
-
export { FxQuotes } from './resources/FxQuotes.js';
|
|
135
98
|
export { InvoiceItems } from './resources/InvoiceItems.js';
|
|
136
99
|
export { InvoicePayments } from './resources/InvoicePayments.js';
|
|
137
100
|
export { InvoiceRenderingTemplates } from './resources/InvoiceRenderingTemplates.js';
|
|
138
101
|
export { Invoices } from './resources/Invoices.js';
|
|
139
102
|
export { Mandates } from './resources/Mandates.js';
|
|
140
|
-
export { Margins } from './resources/Margins.js';
|
|
141
103
|
export { OAuth } from './resources/OAuth.js';
|
|
142
|
-
export { Orders } from './resources/Orders.js';
|
|
143
|
-
export { PaymentAttemptRecords } from './resources/PaymentAttemptRecords.js';
|
|
144
104
|
export { PaymentIntents } from './resources/PaymentIntents.js';
|
|
145
105
|
export { PaymentLinks } from './resources/PaymentLinks.js';
|
|
146
106
|
export { PaymentMethodConfigurations } from './resources/PaymentMethodConfigurations.js';
|
|
147
107
|
export { PaymentMethodDomains } from './resources/PaymentMethodDomains.js';
|
|
148
108
|
export { PaymentMethods } from './resources/PaymentMethods.js';
|
|
149
|
-
export { PaymentRecords } from './resources/PaymentRecords.js';
|
|
150
109
|
export { Payouts } from './resources/Payouts.js';
|
|
151
110
|
export { Plans } from './resources/Plans.js';
|
|
152
111
|
export { Prices } from './resources/Prices.js';
|
|
@@ -177,18 +136,12 @@ export const Billing = resourceNamespace('billing', {
|
|
|
177
136
|
CreditGrants: BillingCreditGrants,
|
|
178
137
|
MeterEventAdjustments: BillingMeterEventAdjustments,
|
|
179
138
|
MeterEvents: BillingMeterEvents,
|
|
180
|
-
MeterUsage: BillingMeterUsage,
|
|
181
139
|
Meters: BillingMeters,
|
|
182
140
|
});
|
|
183
141
|
export const BillingPortal = resourceNamespace('billingPortal', {
|
|
184
142
|
Configurations: BillingPortalConfigurations,
|
|
185
143
|
Sessions: BillingPortalSessions,
|
|
186
144
|
});
|
|
187
|
-
export const Capital = resourceNamespace('capital', {
|
|
188
|
-
FinancingOffers: CapitalFinancingOffers,
|
|
189
|
-
FinancingSummary: CapitalFinancingSummary,
|
|
190
|
-
FinancingTransactions: CapitalFinancingTransactions,
|
|
191
|
-
});
|
|
192
145
|
export const Checkout = resourceNamespace('checkout', {
|
|
193
146
|
Sessions: CheckoutSessions,
|
|
194
147
|
});
|
|
@@ -203,7 +156,6 @@ export const Entitlements = resourceNamespace('entitlements', {
|
|
|
203
156
|
});
|
|
204
157
|
export const FinancialConnections = resourceNamespace('financialConnections', {
|
|
205
158
|
Accounts: FinancialConnectionsAccounts,
|
|
206
|
-
Institutions: FinancialConnectionsInstitutions,
|
|
207
159
|
Sessions: FinancialConnectionsSessions,
|
|
208
160
|
Transactions: FinancialConnectionsTransactions,
|
|
209
161
|
});
|
|
@@ -218,18 +170,12 @@ export const Issuing = resourceNamespace('issuing', {
|
|
|
218
170
|
Authorizations: IssuingAuthorizations,
|
|
219
171
|
Cardholders: IssuingCardholders,
|
|
220
172
|
Cards: IssuingCards,
|
|
221
|
-
CreditUnderwritingRecords: IssuingCreditUnderwritingRecords,
|
|
222
|
-
DisputeSettlementDetails: IssuingDisputeSettlementDetails,
|
|
223
173
|
Disputes: IssuingDisputes,
|
|
224
|
-
FraudLiabilityDebits: IssuingFraudLiabilityDebits,
|
|
225
174
|
PersonalizationDesigns: IssuingPersonalizationDesigns,
|
|
226
175
|
PhysicalBundles: IssuingPhysicalBundles,
|
|
227
176
|
Tokens: IssuingTokens,
|
|
228
177
|
Transactions: IssuingTransactions,
|
|
229
178
|
});
|
|
230
|
-
export const Privacy = resourceNamespace('privacy', {
|
|
231
|
-
RedactionJobs: PrivacyRedactionJobs,
|
|
232
|
-
});
|
|
233
179
|
export const Radar = resourceNamespace('radar', {
|
|
234
180
|
EarlyFraudWarnings: RadarEarlyFraudWarnings,
|
|
235
181
|
ValueListItems: RadarValueListItems,
|
|
@@ -243,9 +189,7 @@ export const Sigma = resourceNamespace('sigma', {
|
|
|
243
189
|
ScheduledQueryRuns: SigmaScheduledQueryRuns,
|
|
244
190
|
});
|
|
245
191
|
export const Tax = resourceNamespace('tax', {
|
|
246
|
-
Associations: TaxAssociations,
|
|
247
192
|
Calculations: TaxCalculations,
|
|
248
|
-
Forms: TaxForms,
|
|
249
193
|
Registrations: TaxRegistrations,
|
|
250
194
|
Settings: TaxSettings,
|
|
251
195
|
Transactions: TaxTransactions,
|
|
@@ -254,8 +198,6 @@ export const Terminal = resourceNamespace('terminal', {
|
|
|
254
198
|
Configurations: TerminalConfigurations,
|
|
255
199
|
ConnectionTokens: TerminalConnectionTokens,
|
|
256
200
|
Locations: TerminalLocations,
|
|
257
|
-
OnboardingLinks: TerminalOnboardingLinks,
|
|
258
|
-
ReaderCollectedData: TerminalReaderCollectedData,
|
|
259
201
|
Readers: TerminalReaders,
|
|
260
202
|
});
|
|
261
203
|
export const TestHelpers = resourceNamespace('testHelpers', {
|
|
@@ -300,35 +242,7 @@ export const V2 = resourceNamespace('v2', {
|
|
|
300
242
|
MeterEvents: V2BillingMeterEvents,
|
|
301
243
|
}),
|
|
302
244
|
Core: resourceNamespace('core', {
|
|
303
|
-
AccountLinks: V2CoreAccountLinks,
|
|
304
|
-
Accounts: V2CoreAccounts,
|
|
305
245
|
EventDestinations: V2CoreEventDestinations,
|
|
306
246
|
Events: V2CoreEvents,
|
|
307
|
-
Vault: resourceNamespace('vault', {
|
|
308
|
-
GbBankAccounts: V2CoreVaultGbBankAccounts,
|
|
309
|
-
UsBankAccounts: V2CoreVaultUsBankAccounts,
|
|
310
|
-
}),
|
|
311
|
-
}),
|
|
312
|
-
MoneyManagement: resourceNamespace('moneyManagement', {
|
|
313
|
-
Adjustments: V2MoneyManagementAdjustments,
|
|
314
|
-
FinancialAccounts: V2MoneyManagementFinancialAccounts,
|
|
315
|
-
FinancialAddresses: V2MoneyManagementFinancialAddresses,
|
|
316
|
-
InboundTransfers: V2MoneyManagementInboundTransfers,
|
|
317
|
-
OutboundPaymentQuotes: V2MoneyManagementOutboundPaymentQuotes,
|
|
318
|
-
OutboundPayments: V2MoneyManagementOutboundPayments,
|
|
319
|
-
OutboundSetupIntents: V2MoneyManagementOutboundSetupIntents,
|
|
320
|
-
OutboundTransfers: V2MoneyManagementOutboundTransfers,
|
|
321
|
-
PayoutMethods: V2MoneyManagementPayoutMethods,
|
|
322
|
-
PayoutMethodsBankAccountSpec: V2MoneyManagementPayoutMethodsBankAccountSpec,
|
|
323
|
-
ReceivedCredits: V2MoneyManagementReceivedCredits,
|
|
324
|
-
ReceivedDebits: V2MoneyManagementReceivedDebits,
|
|
325
|
-
TransactionEntries: V2MoneyManagementTransactionEntries,
|
|
326
|
-
Transactions: V2MoneyManagementTransactions,
|
|
327
|
-
}),
|
|
328
|
-
Payment: resourceNamespace('payment', {
|
|
329
|
-
OffSessionPayments: V2PaymentsOffSessionPayments,
|
|
330
|
-
}),
|
|
331
|
-
TestHelper: resourceNamespace('testHelper', {
|
|
332
|
-
FinancialAddresses: V2TestHelpersFinancialAddresses,
|
|
333
247
|
}),
|
|
334
248
|
});
|
package/esm/stripe.core.js
CHANGED
|
@@ -33,7 +33,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
33
33
|
];
|
|
34
34
|
const defaultRequestSenderFactory = (stripe) => new RequestSender(stripe, StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
35
35
|
export function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
36
|
-
Stripe.PACKAGE_VERSION = '18.5.0
|
|
36
|
+
Stripe.PACKAGE_VERSION = '18.5.0';
|
|
37
37
|
Stripe.API_VERSION = ApiVersion;
|
|
38
38
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
39
39
|
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 {
|
|
@@ -50,13 +50,9 @@ declare module 'stripe' {
|
|
|
50
50
|
|
|
51
51
|
account_onboarding: Components.AccountOnboarding;
|
|
52
52
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
capital_financing?: Components.CapitalFinancing | null;
|
|
56
|
-
|
|
57
|
-
capital_financing_application?: Components.CapitalFinancingApplication | null;
|
|
53
|
+
balance_report: Components.BalanceReport;
|
|
58
54
|
|
|
59
|
-
|
|
55
|
+
balances: Components.Balances;
|
|
60
56
|
|
|
61
57
|
disputes_list: Components.DisputesList;
|
|
62
58
|
|
|
@@ -80,6 +76,10 @@ declare module 'stripe' {
|
|
|
80
76
|
|
|
81
77
|
payments: Components.Payments;
|
|
82
78
|
|
|
79
|
+
payout_details: Components.PayoutDetails;
|
|
80
|
+
|
|
81
|
+
payout_reconciliation_report: Components.PayoutReconciliationReport;
|
|
82
|
+
|
|
83
83
|
payouts: Components.Payouts;
|
|
84
84
|
|
|
85
85
|
payouts_list: Components.PayoutsList;
|
|
@@ -136,6 +136,19 @@ declare module 'stripe' {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
+
interface BalanceReport {
|
|
140
|
+
/**
|
|
141
|
+
* Whether the embedded component is enabled.
|
|
142
|
+
*/
|
|
143
|
+
enabled: boolean;
|
|
144
|
+
|
|
145
|
+
features: BalanceReport.Features;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
namespace BalanceReport {
|
|
149
|
+
interface Features {}
|
|
150
|
+
}
|
|
151
|
+
|
|
139
152
|
interface Balances {
|
|
140
153
|
/**
|
|
141
154
|
* Whether the embedded component is enabled.
|
|
@@ -174,45 +187,6 @@ declare module 'stripe' {
|
|
|
174
187
|
}
|
|
175
188
|
}
|
|
176
189
|
|
|
177
|
-
interface CapitalFinancing {
|
|
178
|
-
/**
|
|
179
|
-
* Whether the embedded component is enabled.
|
|
180
|
-
*/
|
|
181
|
-
enabled: boolean;
|
|
182
|
-
|
|
183
|
-
features: CapitalFinancing.Features;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
namespace CapitalFinancing {
|
|
187
|
-
interface Features {}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
interface CapitalFinancingApplication {
|
|
191
|
-
/**
|
|
192
|
-
* Whether the embedded component is enabled.
|
|
193
|
-
*/
|
|
194
|
-
enabled: boolean;
|
|
195
|
-
|
|
196
|
-
features: CapitalFinancingApplication.Features;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
namespace CapitalFinancingApplication {
|
|
200
|
-
interface Features {}
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
interface CapitalFinancingPromotion {
|
|
204
|
-
/**
|
|
205
|
-
* Whether the embedded component is enabled.
|
|
206
|
-
*/
|
|
207
|
-
enabled: boolean;
|
|
208
|
-
|
|
209
|
-
features: CapitalFinancingPromotion.Features;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
namespace CapitalFinancingPromotion {
|
|
213
|
-
interface Features {}
|
|
214
|
-
}
|
|
215
|
-
|
|
216
190
|
interface DisputesList {
|
|
217
191
|
/**
|
|
218
192
|
* Whether the embedded component is enabled.
|
|
@@ -526,6 +500,32 @@ declare module 'stripe' {
|
|
|
526
500
|
}
|
|
527
501
|
}
|
|
528
502
|
|
|
503
|
+
interface PayoutDetails {
|
|
504
|
+
/**
|
|
505
|
+
* Whether the embedded component is enabled.
|
|
506
|
+
*/
|
|
507
|
+
enabled: boolean;
|
|
508
|
+
|
|
509
|
+
features: PayoutDetails.Features;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
namespace PayoutDetails {
|
|
513
|
+
interface Features {}
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
interface PayoutReconciliationReport {
|
|
517
|
+
/**
|
|
518
|
+
* Whether the embedded component is enabled.
|
|
519
|
+
*/
|
|
520
|
+
enabled: boolean;
|
|
521
|
+
|
|
522
|
+
features: PayoutReconciliationReport.Features;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
namespace PayoutReconciliationReport {
|
|
526
|
+
interface Features {}
|
|
527
|
+
}
|
|
528
|
+
|
|
529
529
|
interface Payouts {
|
|
530
530
|
/**
|
|
531
531
|
* Whether the embedded component is enabled.
|