stripe 18.2.0-beta.1 → 18.2.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 +179 -1211
- package/OPENAPI_VERSION +1 -1
- package/README.md +11 -12
- package/VERSION +1 -1
- package/cjs/Error.js +1 -91
- package/cjs/RequestSender.js +2 -2
- package/cjs/StripeResource.js +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/FinancialConnections/Accounts.js +0 -5
- package/cjs/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +4 -4
- package/cjs/resources/PaymentIntents.js +0 -13
- package/cjs/resources/Quotes.js +0 -32
- package/cjs/resources/SubscriptionSchedules.js +0 -4
- package/cjs/resources/Terminal/Readers.js +0 -8
- package/cjs/resources.js +18 -108
- package/cjs/stripe.core.js +1 -1
- package/cjs/utils.js +5 -0
- package/esm/Error.js +0 -79
- package/esm/RequestSender.js +2 -2
- package/esm/StripeResource.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/FinancialConnections/Accounts.js +0 -5
- package/esm/resources/{PaymentAttemptRecords.js → InvoicePayments.js} +3 -3
- package/esm/resources/PaymentIntents.js +0 -13
- package/esm/resources/Quotes.js +0 -32
- package/esm/resources/SubscriptionSchedules.js +0 -4
- package/esm/resources/Terminal/Readers.js +0 -8
- package/esm/resources.js +1 -84
- package/esm/stripe.core.js +1 -1
- package/esm/utils.js +5 -0
- package/package.json +1 -1
- package/types/AccountLinksResource.d.ts +1 -5
- package/types/AccountSessions.d.ts +52 -32
- package/types/AccountSessionsResource.d.ts +23 -246
- package/types/Accounts.d.ts +19 -223
- package/types/AccountsResource.d.ts +61 -581
- package/types/Balance.d.ts +83 -1
- package/types/BalanceResource.d.ts +1 -1
- package/types/BalanceTransactions.d.ts +10 -0
- package/types/BankAccounts.d.ts +3 -3
- package/types/Billing/Alerts.d.ts +1 -1
- package/types/Billing/AlertsResource.d.ts +2 -2
- 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/BillingPortal/Sessions.d.ts +1 -6
- package/types/BillingPortal/SessionsResource.d.ts +4 -12
- package/types/Capabilities.d.ts +1 -1
- package/types/Cards.d.ts +2 -7
- package/types/CashBalances.d.ts +0 -5
- package/types/Charges.d.ts +20 -166
- package/types/ChargesResource.d.ts +4 -1318
- package/types/Checkout/Sessions.d.ts +120 -418
- package/types/Checkout/SessionsResource.d.ts +118 -448
- package/types/ConfirmationTokens.d.ts +4 -129
- package/types/CountrySpecs.d.ts +1 -1
- 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 +11 -10
- package/types/CreditNotesResource.d.ts +7 -13
- package/types/CustomerBalanceTransactions.d.ts +0 -2
- package/types/CustomerCashBalanceTransactions.d.ts +0 -2
- package/types/CustomerSessions.d.ts +3 -8
- package/types/CustomerSessionsResource.d.ts +1 -6
- package/types/Customers.d.ts +0 -2
- package/types/CustomersResource.d.ts +7 -15
- package/types/Discounts.d.ts +0 -10
- package/types/Disputes.d.ts +1 -1
- package/types/DisputesResource.d.ts +1 -1
- package/types/Errors.d.ts +2 -69
- package/types/EventTypes.d.ts +17 -698
- package/types/Events.d.ts +4 -99
- package/types/Files.d.ts +1 -1
- package/types/FilesResource.d.ts +1 -1
- package/types/FinancialConnections/Accounts.d.ts +1 -31
- 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/VerificationReports.d.ts +17 -0
- package/types/Identity/VerificationSessions.d.ts +19 -7
- package/types/Identity/VerificationSessionsResource.d.ts +5 -12
- package/types/InvoiceItems.d.ts +1 -11
- package/types/InvoiceItemsResource.d.ts +6 -117
- package/types/InvoiceLineItems.d.ts +2 -46
- package/types/InvoicePayments.d.ts +9 -7
- package/types/InvoicePaymentsResource.d.ts +74 -0
- package/types/Invoices.d.ts +10 -142
- package/types/InvoicesResource.d.ts +66 -1469
- package/types/Issuing/AuthorizationsResource.d.ts +4 -4
- package/types/Issuing/CardholdersResource.d.ts +1 -2
- package/types/Issuing/CardsResource.d.ts +3 -0
- package/types/Issuing/DisputesResource.d.ts +2 -2
- package/types/Issuing/Transactions.d.ts +0 -5
- package/types/Issuing/TransactionsResource.d.ts +0 -5
- package/types/LineItems.d.ts +2 -51
- package/types/Mandates.d.ts +0 -77
- package/types/PaymentIntents.d.ts +145 -856
- package/types/PaymentIntentsResource.d.ts +4307 -8780
- package/types/PaymentLinks.d.ts +0 -6
- package/types/PaymentLinksResource.d.ts +0 -12
- package/types/PaymentMethodConfigurations.d.ts +70 -70
- package/types/PaymentMethodConfigurationsResource.d.ts +164 -164
- package/types/PaymentMethodDomainsResource.d.ts +1 -1
- package/types/PaymentMethods.d.ts +4 -129
- package/types/PaymentMethodsResource.d.ts +10 -175
- package/types/Payouts.d.ts +2 -7
- package/types/PayoutsResource.d.ts +2 -7
- package/types/Persons.d.ts +10 -10
- package/types/PlansResource.d.ts +1 -1
- package/types/Prices.d.ts +0 -22
- package/types/PricesResource.d.ts +2 -24
- package/types/Products.d.ts +0 -39
- package/types/ProductsResource.d.ts +1 -37
- package/types/PromotionCodes.d.ts +0 -5
- package/types/PromotionCodesResource.d.ts +1 -11
- package/types/Quotes.d.ts +7 -609
- package/types/QuotesResource.d.ts +224 -2578
- package/types/Radar/EarlyFraudWarningsResource.d.ts +1 -1
- package/types/Refunds.d.ts +6 -15
- package/types/Reviews.d.ts +1 -1
- package/types/SetupAttempts.d.ts +2 -50
- package/types/SetupIntents.d.ts +4 -122
- package/types/SetupIntentsResource.d.ts +6 -733
- package/types/Sources.d.ts +0 -29
- package/types/SourcesResource.d.ts +1 -1
- package/types/SubscriptionItems.d.ts +8 -17
- package/types/SubscriptionItemsResource.d.ts +28 -109
- package/types/SubscriptionSchedules.d.ts +47 -213
- package/types/SubscriptionSchedulesResource.d.ts +104 -1243
- package/types/Subscriptions.d.ts +16 -102
- package/types/SubscriptionsResource.d.ts +80 -407
- package/types/Tax/CalculationLineItems.d.ts +5 -0
- package/types/Tax/CalculationsResource.d.ts +5 -0
- package/types/Tax/RegistrationsResource.d.ts +1 -1
- package/types/TaxIds.d.ts +0 -10
- package/types/TaxIdsResource.d.ts +0 -10
- package/types/TaxRates.d.ts +2 -2
- package/types/Terminal/LocationsResource.d.ts +1 -1
- package/types/Terminal/Readers.d.ts +7 -89
- package/types/Terminal/ReadersResource.d.ts +6 -82
- package/types/TestHelpers/ConfirmationTokensResource.d.ts +0 -126
- package/types/TestHelpers/Treasury/ReceivedCreditsResource.d.ts +0 -26
- package/types/TestHelpers/Treasury/ReceivedDebitsResource.d.ts +0 -26
- package/types/Tokens.d.ts +3 -3
- package/types/TokensResource.d.ts +8 -8
- package/types/TransferReversals.d.ts +1 -1
- package/types/Transfers.d.ts +0 -5
- package/types/TransfersResource.d.ts +2 -7
- 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 +2 -28
- package/types/Treasury/ReceivedDebits.d.ts +0 -31
- package/types/V2/EventTypes.d.ts +1 -812
- package/types/WebhookEndpointsResource.d.ts +4 -83
- package/types/index.d.ts +5 -145
- 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/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/GiftCards/Cards.js +0 -23
- package/cjs/resources/GiftCards/Transactions.js +0 -33
- 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/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/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 -17
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +0 -21
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +0 -21
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -16
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +0 -25
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -29
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +0 -25
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -12
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +0 -17
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +0 -17
- package/cjs/resources/V2/MoneyManagement/Transactions.js +0 -17
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +0 -16
- package/esm/resources/AccountNotices.js +0 -18
- package/esm/resources/BalanceSettings.js +0 -7
- 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/GiftCards/Cards.js +0 -20
- package/esm/resources/GiftCards/Transactions.js +0 -30
- 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/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/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 -14
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +0 -18
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +0 -18
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +0 -13
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +0 -22
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +0 -26
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +0 -22
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +0 -9
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +0 -14
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +0 -14
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +0 -14
- package/esm/resources/V2/MoneyManagement/Transactions.js +0 -14
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +0 -13
- package/types/AccountNotices.d.ts +0 -113
- package/types/AccountNoticesResource.d.ts +0 -98
- package/types/BalanceSettings.d.ts +0 -89
- package/types/BalanceSettingsResource.d.ts +0 -108
- package/types/Billing/MeterErrorReports.d.ts +0 -106
- 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 -93
- package/types/FinancialConnections/InstitutionsResource.d.ts +0 -47
- package/types/FxQuotes.d.ts +0 -153
- package/types/FxQuotesResource.d.ts +0 -130
- package/types/GiftCards/Cards.d.ts +0 -118
- package/types/GiftCards/CardsResource.d.ts +0 -159
- package/types/GiftCards/Transactions.d.ts +0 -129
- package/types/GiftCards/TransactionsResource.d.ts +0 -201
- 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 -1199
- package/types/OrdersResource.d.ts +0 -3001
- package/types/PaymentAttemptRecords.d.ts +0 -2112
- package/types/PaymentAttemptRecordsResource.d.ts +0 -47
- package/types/PaymentIntentAmountDetailsLineItems.d.ts +0 -110
- package/types/PaymentRecords.d.ts +0 -2105
- package/types/PaymentRecordsResource.d.ts +0 -455
- package/types/Privacy/RedactionJobValidationErrors.d.ts +0 -30
- package/types/Privacy/RedactionJobs.d.ts +0 -65
- package/types/Privacy/RedactionJobsResource.d.ts +0 -218
- package/types/QuoteLines.d.ts +0 -634
- package/types/QuotePreviewInvoices.d.ts +0 -1697
- package/types/QuotePreviewSubscriptionSchedules.d.ts +0 -785
- package/types/Tax/Associations.d.ts +0 -126
- 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/ReaderCollectedData.d.ts +0 -51
- package/types/Terminal/ReaderCollectedDataResource.d.ts +0 -29
- package/types/V2/Core/AccountLinks.d.ts +0 -106
- package/types/V2/Core/AccountLinksResource.d.ts +0 -90
- package/types/V2/Core/Accounts/PersonsResource.d.ts +0 -3770
- package/types/V2/Core/Accounts.d.ts +0 -8169
- package/types/V2/Core/AccountsResource.d.ts +0 -10203
- package/types/V2/Core/Persons.d.ts +0 -1867
- 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 -546
- package/types/V2/MoneyManagement/FinancialAccountsResource.d.ts +0 -52
- package/types/V2/MoneyManagement/FinancialAddresses.d.ts +0 -314
- package/types/V2/MoneyManagement/FinancialAddressesResource.d.ts +0 -288
- 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 -207
- package/types/V2/MoneyManagement/PayoutMethods.d.ts +0 -151
- 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 -285
- package/types/V2/MoneyManagement/ReceivedCreditsResource.d.ts +0 -78
- package/types/V2/MoneyManagement/ReceivedDebits.d.ts +0 -224
- 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/TestHelpers/FinancialAddressesResource.d.ts +0 -66
package/cjs/stripe.core.js
CHANGED
|
@@ -36,7 +36,7 @@ const ALLOWED_CONFIG_PROPERTIES = [
|
|
|
36
36
|
];
|
|
37
37
|
const defaultRequestSenderFactory = (stripe) => new RequestSender_js_1.RequestSender(stripe, StripeResource_js_1.StripeResource.MAX_BUFFERED_REQUEST_METRICS);
|
|
38
38
|
function createStripe(platformFunctions, requestSender = defaultRequestSenderFactory) {
|
|
39
|
-
Stripe.PACKAGE_VERSION = '18.2.0
|
|
39
|
+
Stripe.PACKAGE_VERSION = '18.2.0';
|
|
40
40
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, (0, utils_js_1.determineProcessUserAgentProperties)());
|
|
41
41
|
Stripe.StripeResource = StripeResource_js_1.StripeResource;
|
|
42
42
|
Stripe.resources = resources;
|
package/cjs/utils.js
CHANGED
|
@@ -13,6 +13,7 @@ const OPTIONS_KEYS = [
|
|
|
13
13
|
'authenticator',
|
|
14
14
|
'stripeContext',
|
|
15
15
|
'additionalHeaders',
|
|
16
|
+
'streaming',
|
|
16
17
|
];
|
|
17
18
|
function isOptionsHash(o) {
|
|
18
19
|
return (o &&
|
|
@@ -107,6 +108,7 @@ function getOptionsFromArgs(args) {
|
|
|
107
108
|
host: null,
|
|
108
109
|
headers: {},
|
|
109
110
|
settings: {},
|
|
111
|
+
streaming: false,
|
|
110
112
|
};
|
|
111
113
|
if (args.length > 0) {
|
|
112
114
|
const arg = args[args.length - 1];
|
|
@@ -159,6 +161,9 @@ function getOptionsFromArgs(args) {
|
|
|
159
161
|
if (params.additionalHeaders) {
|
|
160
162
|
opts.headers = params.additionalHeaders;
|
|
161
163
|
}
|
|
164
|
+
if (params.streaming) {
|
|
165
|
+
opts.streaming = true;
|
|
166
|
+
}
|
|
162
167
|
}
|
|
163
168
|
}
|
|
164
169
|
return opts;
|
package/esm/Error.js
CHANGED
|
@@ -26,28 +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 'financial_account_not_open':
|
|
30
|
-
return new FinancialAccountNotOpenError(rawStripeError);
|
|
31
|
-
case 'blocked_by_stripe':
|
|
32
|
-
return new BlockedByStripeError(rawStripeError);
|
|
33
|
-
case 'already_canceled':
|
|
34
|
-
return new AlreadyCanceledError(rawStripeError);
|
|
35
|
-
case 'not_cancelable':
|
|
36
|
-
return new NotCancelableError(rawStripeError);
|
|
37
|
-
case 'insufficient_funds':
|
|
38
|
-
return new InsufficientFundsError(rawStripeError);
|
|
39
|
-
case 'quota_exceeded':
|
|
40
|
-
return new QuotaExceededError(rawStripeError);
|
|
41
|
-
case 'recipient_not_notifiable':
|
|
42
|
-
return new RecipientNotNotifiableError(rawStripeError);
|
|
43
|
-
case 'feature_not_enabled':
|
|
44
|
-
return new FeatureNotEnabledError(rawStripeError);
|
|
45
|
-
case 'invalid_payout_method':
|
|
46
|
-
return new InvalidPayoutMethodError(rawStripeError);
|
|
47
|
-
case 'controlled_by_dashboard':
|
|
48
|
-
return new ControlledByDashboardError(rawStripeError);
|
|
49
|
-
case 'invalid_payment_method':
|
|
50
|
-
return new InvalidPaymentMethodError(rawStripeError);
|
|
51
29
|
// switchCases: The end of the section generated from our OpenAPI spec
|
|
52
30
|
}
|
|
53
31
|
// Special handling for requests with missing required fields in V2 APIs.
|
|
@@ -204,61 +182,4 @@ export class TemporarySessionExpiredError extends StripeError {
|
|
|
204
182
|
super(rawStripeError, 'TemporarySessionExpiredError');
|
|
205
183
|
}
|
|
206
184
|
}
|
|
207
|
-
export class FinancialAccountNotOpenError extends StripeError {
|
|
208
|
-
constructor(rawStripeError = {}) {
|
|
209
|
-
super(rawStripeError, 'FinancialAccountNotOpenError');
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
export class BlockedByStripeError extends StripeError {
|
|
213
|
-
constructor(rawStripeError = {}) {
|
|
214
|
-
super(rawStripeError, 'BlockedByStripeError');
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
export class AlreadyCanceledError extends StripeError {
|
|
218
|
-
constructor(rawStripeError = {}) {
|
|
219
|
-
super(rawStripeError, 'AlreadyCanceledError');
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
export class NotCancelableError extends StripeError {
|
|
223
|
-
constructor(rawStripeError = {}) {
|
|
224
|
-
super(rawStripeError, 'NotCancelableError');
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
export class InsufficientFundsError extends StripeError {
|
|
228
|
-
constructor(rawStripeError = {}) {
|
|
229
|
-
super(rawStripeError, 'InsufficientFundsError');
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
export class QuotaExceededError extends StripeError {
|
|
233
|
-
constructor(rawStripeError = {}) {
|
|
234
|
-
super(rawStripeError, 'QuotaExceededError');
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
export class RecipientNotNotifiableError extends StripeError {
|
|
238
|
-
constructor(rawStripeError = {}) {
|
|
239
|
-
super(rawStripeError, 'RecipientNotNotifiableError');
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
export class FeatureNotEnabledError extends StripeError {
|
|
243
|
-
constructor(rawStripeError = {}) {
|
|
244
|
-
super(rawStripeError, 'FeatureNotEnabledError');
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
export class InvalidPayoutMethodError extends StripeError {
|
|
248
|
-
constructor(rawStripeError = {}) {
|
|
249
|
-
super(rawStripeError, 'InvalidPayoutMethodError');
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
export class ControlledByDashboardError extends StripeError {
|
|
253
|
-
constructor(rawStripeError = {}) {
|
|
254
|
-
super(rawStripeError, 'ControlledByDashboardError');
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
export class InvalidPaymentMethodError extends StripeError {
|
|
258
|
-
constructor(rawStripeError) {
|
|
259
|
-
super(rawStripeError, 'InvalidPaymentMethodError');
|
|
260
|
-
// @ts-ignore
|
|
261
|
-
this.invalid_param = this.raw.invalid_param;
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
185
|
// classDefinitions: The end of the section generated from our OpenAPI spec
|
package/esm/RequestSender.js
CHANGED
|
@@ -307,8 +307,8 @@ export class RequestSender {
|
|
|
307
307
|
queryData: {},
|
|
308
308
|
authenticator,
|
|
309
309
|
headers,
|
|
310
|
-
host:
|
|
311
|
-
streaming:
|
|
310
|
+
host: calculatedOptions.host,
|
|
311
|
+
streaming: !!calculatedOptions.streaming,
|
|
312
312
|
settings: {},
|
|
313
313
|
usage: ['raw_request'],
|
|
314
314
|
};
|
package/esm/StripeResource.js
CHANGED
|
@@ -104,7 +104,7 @@ StripeResource.prototype = {
|
|
|
104
104
|
const data = encode(Object.assign({}, dataFromArgs, overrideData));
|
|
105
105
|
const options = getOptionsFromArgs(args);
|
|
106
106
|
const host = options.host || spec.host;
|
|
107
|
-
const streaming = !!spec.streaming;
|
|
107
|
+
const streaming = !!spec.streaming || !!options.streaming;
|
|
108
108
|
// Validate that there are no more args.
|
|
109
109
|
if (args.filter((x) => x != null).length) {
|
|
110
110
|
throw new Error(`Stripe: Unknown arguments (${args}). Did you mean to pass an options object? See https://github.com/stripe/stripe-node/wiki/Passing-Options. (on API request to ${requestMethod} \`${path}\`)`);
|
package/esm/apiVersion.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
|
-
export const ApiVersion = '2025-
|
|
2
|
+
export const ApiVersion = '2025-05-28.basil';
|
|
@@ -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',
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec
|
|
2
2
|
import { StripeResource } from '../StripeResource.js';
|
|
3
3
|
const stripeMethod = StripeResource.method;
|
|
4
|
-
export const
|
|
4
|
+
export const InvoicePayments = StripeResource.extend({
|
|
5
5
|
retrieve: stripeMethod({
|
|
6
6
|
method: 'GET',
|
|
7
|
-
fullPath: '/v1/
|
|
7
|
+
fullPath: '/v1/invoice_payments/{invoice_payment}',
|
|
8
8
|
}),
|
|
9
9
|
list: stripeMethod({
|
|
10
10
|
method: 'GET',
|
|
11
|
-
fullPath: '/v1/
|
|
11
|
+
fullPath: '/v1/invoice_payments',
|
|
12
12
|
methodType: 'list',
|
|
13
13
|
}),
|
|
14
14
|
});
|
|
@@ -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',
|
|
@@ -28,14 +28,6 @@ export const Readers = StripeResource.extend({
|
|
|
28
28
|
method: 'POST',
|
|
29
29
|
fullPath: '/v1/terminal/readers/{reader}/collect_inputs',
|
|
30
30
|
}),
|
|
31
|
-
collectPaymentMethod: stripeMethod({
|
|
32
|
-
method: 'POST',
|
|
33
|
-
fullPath: '/v1/terminal/readers/{reader}/collect_payment_method',
|
|
34
|
-
}),
|
|
35
|
-
confirmPaymentIntent: stripeMethod({
|
|
36
|
-
method: 'POST',
|
|
37
|
-
fullPath: '/v1/terminal/readers/{reader}/confirm_payment_intent',
|
|
38
|
-
}),
|
|
39
31
|
processPaymentIntent: stripeMethod({
|
|
40
32
|
method: 'POST',
|
|
41
33
|
fullPath: '/v1/terminal/readers/{reader}/process_payment_intent',
|
package/esm/resources.js
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
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 TestHelpersIssuingAuthorizations } from './resources/TestHelpers/Issuing/Authorizations.js';
|
|
11
7
|
import { Authorizations as IssuingAuthorizations } from './resources/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
10
|
import { Cards as TestHelpersIssuingCards } from './resources/TestHelpers/Issuing/Cards.js';
|
|
15
|
-
import { Cards as GiftCardsCards } from './resources/GiftCards/Cards.js';
|
|
16
11
|
import { Cards as IssuingCards } from './resources/Issuing/Cards.js';
|
|
17
12
|
import { Configurations as BillingPortalConfigurations } from './resources/BillingPortal/Configurations.js';
|
|
18
13
|
import { Configurations as TerminalConfigurations } from './resources/Terminal/Configurations.js';
|
|
@@ -22,29 +17,16 @@ import { CreditBalanceSummary as BillingCreditBalanceSummary } from './resources
|
|
|
22
17
|
import { CreditBalanceTransactions as BillingCreditBalanceTransactions } from './resources/Billing/CreditBalanceTransactions.js';
|
|
23
18
|
import { CreditGrants as BillingCreditGrants } from './resources/Billing/CreditGrants.js';
|
|
24
19
|
import { CreditReversals as TreasuryCreditReversals } from './resources/Treasury/CreditReversals.js';
|
|
25
|
-
import { CreditUnderwritingRecords as IssuingCreditUnderwritingRecords } from './resources/Issuing/CreditUnderwritingRecords.js';
|
|
26
20
|
import { Customers as TestHelpersCustomers } from './resources/TestHelpers/Customers.js';
|
|
27
21
|
import { DebitReversals as TreasuryDebitReversals } from './resources/Treasury/DebitReversals.js';
|
|
28
|
-
import { DisputeSettlementDetails as IssuingDisputeSettlementDetails } from './resources/Issuing/DisputeSettlementDetails.js';
|
|
29
22
|
import { Disputes as IssuingDisputes } from './resources/Issuing/Disputes.js';
|
|
30
23
|
import { EarlyFraudWarnings as RadarEarlyFraudWarnings } from './resources/Radar/EarlyFraudWarnings.js';
|
|
31
24
|
import { EventDestinations as V2CoreEventDestinations } from './resources/V2/Core/EventDestinations.js';
|
|
32
25
|
import { Events as V2CoreEvents } from './resources/V2/Core/Events.js';
|
|
33
26
|
import { Features as EntitlementsFeatures } from './resources/Entitlements/Features.js';
|
|
34
27
|
import { FinancialAccounts as TreasuryFinancialAccounts } from './resources/Treasury/FinancialAccounts.js';
|
|
35
|
-
import { FinancialAccounts as V2MoneyManagementFinancialAccounts } from './resources/V2/MoneyManagement/FinancialAccounts.js';
|
|
36
|
-
import { FinancialAddresses as V2MoneyManagementFinancialAddresses } from './resources/V2/MoneyManagement/FinancialAddresses.js';
|
|
37
|
-
import { FinancialAddresses as V2TestHelpersFinancialAddresses } from './resources/V2/TestHelpers/FinancialAddresses.js';
|
|
38
|
-
import { FinancingOffers as CapitalFinancingOffers } from './resources/Capital/FinancingOffers.js';
|
|
39
|
-
import { FinancingSummary as CapitalFinancingSummary } from './resources/Capital/FinancingSummary.js';
|
|
40
|
-
import { FinancingTransactions as CapitalFinancingTransactions } from './resources/Capital/FinancingTransactions.js';
|
|
41
|
-
import { Forms as TaxForms } from './resources/Tax/Forms.js';
|
|
42
|
-
import { FraudLiabilityDebits as IssuingFraudLiabilityDebits } from './resources/Issuing/FraudLiabilityDebits.js';
|
|
43
|
-
import { GbBankAccounts as V2CoreVaultGbBankAccounts } from './resources/V2/Core/Vault/GbBankAccounts.js';
|
|
44
28
|
import { InboundTransfers as TestHelpersTreasuryInboundTransfers } from './resources/TestHelpers/Treasury/InboundTransfers.js';
|
|
45
29
|
import { InboundTransfers as TreasuryInboundTransfers } from './resources/Treasury/InboundTransfers.js';
|
|
46
|
-
import { InboundTransfers as V2MoneyManagementInboundTransfers } from './resources/V2/MoneyManagement/InboundTransfers.js';
|
|
47
|
-
import { Institutions as FinancialConnectionsInstitutions } from './resources/FinancialConnections/Institutions.js';
|
|
48
30
|
import { Locations as TerminalLocations } from './resources/Terminal/Locations.js';
|
|
49
31
|
import { MeterEventAdjustments as BillingMeterEventAdjustments } from './resources/Billing/MeterEventAdjustments.js';
|
|
50
32
|
import { MeterEventAdjustments as V2BillingMeterEventAdjustments } from './resources/V2/Billing/MeterEventAdjustments.js';
|
|
@@ -54,30 +36,20 @@ import { MeterEvents as BillingMeterEvents } from './resources/Billing/MeterEven
|
|
|
54
36
|
import { MeterEvents as V2BillingMeterEvents } from './resources/V2/Billing/MeterEvents.js';
|
|
55
37
|
import { Meters as BillingMeters } from './resources/Billing/Meters.js';
|
|
56
38
|
import { Orders as ClimateOrders } from './resources/Climate/Orders.js';
|
|
57
|
-
import { OutboundPaymentQuotes as V2MoneyManagementOutboundPaymentQuotes } from './resources/V2/MoneyManagement/OutboundPaymentQuotes.js';
|
|
58
39
|
import { OutboundPayments as TestHelpersTreasuryOutboundPayments } from './resources/TestHelpers/Treasury/OutboundPayments.js';
|
|
59
40
|
import { OutboundPayments as TreasuryOutboundPayments } from './resources/Treasury/OutboundPayments.js';
|
|
60
|
-
import { OutboundPayments as V2MoneyManagementOutboundPayments } from './resources/V2/MoneyManagement/OutboundPayments.js';
|
|
61
|
-
import { OutboundSetupIntents as V2MoneyManagementOutboundSetupIntents } from './resources/V2/MoneyManagement/OutboundSetupIntents.js';
|
|
62
41
|
import { OutboundTransfers as TestHelpersTreasuryOutboundTransfers } from './resources/TestHelpers/Treasury/OutboundTransfers.js';
|
|
63
42
|
import { OutboundTransfers as TreasuryOutboundTransfers } from './resources/Treasury/OutboundTransfers.js';
|
|
64
|
-
import { OutboundTransfers as V2MoneyManagementOutboundTransfers } from './resources/V2/MoneyManagement/OutboundTransfers.js';
|
|
65
|
-
import { PayoutMethods as V2MoneyManagementPayoutMethods } from './resources/V2/MoneyManagement/PayoutMethods.js';
|
|
66
|
-
import { PayoutMethodsBankAccountSpec as V2MoneyManagementPayoutMethodsBankAccountSpec } from './resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js';
|
|
67
43
|
import { PersonalizationDesigns as TestHelpersIssuingPersonalizationDesigns } from './resources/TestHelpers/Issuing/PersonalizationDesigns.js';
|
|
68
44
|
import { PersonalizationDesigns as IssuingPersonalizationDesigns } from './resources/Issuing/PersonalizationDesigns.js';
|
|
69
45
|
import { PhysicalBundles as IssuingPhysicalBundles } from './resources/Issuing/PhysicalBundles.js';
|
|
70
46
|
import { Products as ClimateProducts } from './resources/Climate/Products.js';
|
|
71
|
-
import { ReaderCollectedData as TerminalReaderCollectedData } from './resources/Terminal/ReaderCollectedData.js';
|
|
72
47
|
import { Readers as TestHelpersTerminalReaders } from './resources/TestHelpers/Terminal/Readers.js';
|
|
73
48
|
import { Readers as TerminalReaders } from './resources/Terminal/Readers.js';
|
|
74
49
|
import { ReceivedCredits as TestHelpersTreasuryReceivedCredits } from './resources/TestHelpers/Treasury/ReceivedCredits.js';
|
|
75
50
|
import { ReceivedCredits as TreasuryReceivedCredits } from './resources/Treasury/ReceivedCredits.js';
|
|
76
|
-
import { ReceivedCredits as V2MoneyManagementReceivedCredits } from './resources/V2/MoneyManagement/ReceivedCredits.js';
|
|
77
51
|
import { ReceivedDebits as TestHelpersTreasuryReceivedDebits } from './resources/TestHelpers/Treasury/ReceivedDebits.js';
|
|
78
52
|
import { ReceivedDebits as TreasuryReceivedDebits } from './resources/Treasury/ReceivedDebits.js';
|
|
79
|
-
import { ReceivedDebits as V2MoneyManagementReceivedDebits } from './resources/V2/MoneyManagement/ReceivedDebits.js';
|
|
80
|
-
import { RedactionJobs as PrivacyRedactionJobs } from './resources/Privacy/RedactionJobs.js';
|
|
81
53
|
import { Refunds as TestHelpersRefunds } from './resources/TestHelpers/Refunds.js';
|
|
82
54
|
import { Registrations as TaxRegistrations } from './resources/Tax/Registrations.js';
|
|
83
55
|
import { ReportRuns as ReportingReportRuns } from './resources/Reporting/ReportRuns.js';
|
|
@@ -93,28 +65,22 @@ import { Suppliers as ClimateSuppliers } from './resources/Climate/Suppliers.js'
|
|
|
93
65
|
import { TestClocks as TestHelpersTestClocks } from './resources/TestHelpers/TestClocks.js';
|
|
94
66
|
import { Tokens as IssuingTokens } from './resources/Issuing/Tokens.js';
|
|
95
67
|
import { TransactionEntries as TreasuryTransactionEntries } from './resources/Treasury/TransactionEntries.js';
|
|
96
|
-
import { TransactionEntries as V2MoneyManagementTransactionEntries } from './resources/V2/MoneyManagement/TransactionEntries.js';
|
|
97
68
|
import { Transactions as TestHelpersIssuingTransactions } from './resources/TestHelpers/Issuing/Transactions.js';
|
|
98
69
|
import { Transactions as FinancialConnectionsTransactions } from './resources/FinancialConnections/Transactions.js';
|
|
99
|
-
import { Transactions as GiftCardsTransactions } from './resources/GiftCards/Transactions.js';
|
|
100
70
|
import { Transactions as IssuingTransactions } from './resources/Issuing/Transactions.js';
|
|
101
71
|
import { Transactions as TaxTransactions } from './resources/Tax/Transactions.js';
|
|
102
72
|
import { Transactions as TreasuryTransactions } from './resources/Treasury/Transactions.js';
|
|
103
|
-
import { Transactions as V2MoneyManagementTransactions } from './resources/V2/MoneyManagement/Transactions.js';
|
|
104
|
-
import { UsBankAccounts as V2CoreVaultUsBankAccounts } from './resources/V2/Core/Vault/UsBankAccounts.js';
|
|
105
73
|
import { ValueListItems as RadarValueListItems } from './resources/Radar/ValueListItems.js';
|
|
106
74
|
import { ValueLists as RadarValueLists } from './resources/Radar/ValueLists.js';
|
|
107
75
|
import { VerificationReports as IdentityVerificationReports } from './resources/Identity/VerificationReports.js';
|
|
108
76
|
import { VerificationSessions as IdentityVerificationSessions } from './resources/Identity/VerificationSessions.js';
|
|
109
77
|
export { Accounts as Account } from './resources/Accounts.js';
|
|
110
78
|
export { AccountLinks } from './resources/AccountLinks.js';
|
|
111
|
-
export { AccountNotices } from './resources/AccountNotices.js';
|
|
112
79
|
export { AccountSessions } from './resources/AccountSessions.js';
|
|
113
80
|
export { Accounts } from './resources/Accounts.js';
|
|
114
81
|
export { ApplePayDomains } from './resources/ApplePayDomains.js';
|
|
115
82
|
export { ApplicationFees } from './resources/ApplicationFees.js';
|
|
116
83
|
export { Balance } from './resources/Balance.js';
|
|
117
|
-
export { BalanceSettings } from './resources/BalanceSettings.js';
|
|
118
84
|
export { BalanceTransactions } from './resources/BalanceTransactions.js';
|
|
119
85
|
export { Charges } from './resources/Charges.js';
|
|
120
86
|
export { ConfirmationTokens } from './resources/ConfirmationTokens.js';
|
|
@@ -127,24 +93,19 @@ export { Disputes } from './resources/Disputes.js';
|
|
|
127
93
|
export { EphemeralKeys } from './resources/EphemeralKeys.js';
|
|
128
94
|
export { Events } from './resources/Events.js';
|
|
129
95
|
export { ExchangeRates } from './resources/ExchangeRates.js';
|
|
130
|
-
export { ExternalAccounts } from './resources/ExternalAccounts.js';
|
|
131
96
|
export { FileLinks } from './resources/FileLinks.js';
|
|
132
97
|
export { Files } from './resources/Files.js';
|
|
133
|
-
export { FxQuotes } from './resources/FxQuotes.js';
|
|
134
98
|
export { InvoiceItems } from './resources/InvoiceItems.js';
|
|
99
|
+
export { InvoicePayments } from './resources/InvoicePayments.js';
|
|
135
100
|
export { InvoiceRenderingTemplates } from './resources/InvoiceRenderingTemplates.js';
|
|
136
101
|
export { Invoices } from './resources/Invoices.js';
|
|
137
102
|
export { Mandates } from './resources/Mandates.js';
|
|
138
|
-
export { Margins } from './resources/Margins.js';
|
|
139
103
|
export { OAuth } from './resources/OAuth.js';
|
|
140
|
-
export { Orders } from './resources/Orders.js';
|
|
141
|
-
export { PaymentAttemptRecords } from './resources/PaymentAttemptRecords.js';
|
|
142
104
|
export { PaymentIntents } from './resources/PaymentIntents.js';
|
|
143
105
|
export { PaymentLinks } from './resources/PaymentLinks.js';
|
|
144
106
|
export { PaymentMethodConfigurations } from './resources/PaymentMethodConfigurations.js';
|
|
145
107
|
export { PaymentMethodDomains } from './resources/PaymentMethodDomains.js';
|
|
146
108
|
export { PaymentMethods } from './resources/PaymentMethods.js';
|
|
147
|
-
export { PaymentRecords } from './resources/PaymentRecords.js';
|
|
148
109
|
export { Payouts } from './resources/Payouts.js';
|
|
149
110
|
export { Plans } from './resources/Plans.js';
|
|
150
111
|
export { Prices } from './resources/Prices.js';
|
|
@@ -181,11 +142,6 @@ export const BillingPortal = resourceNamespace('billingPortal', {
|
|
|
181
142
|
Configurations: BillingPortalConfigurations,
|
|
182
143
|
Sessions: BillingPortalSessions,
|
|
183
144
|
});
|
|
184
|
-
export const Capital = resourceNamespace('capital', {
|
|
185
|
-
FinancingOffers: CapitalFinancingOffers,
|
|
186
|
-
FinancingSummary: CapitalFinancingSummary,
|
|
187
|
-
FinancingTransactions: CapitalFinancingTransactions,
|
|
188
|
-
});
|
|
189
145
|
export const Checkout = resourceNamespace('checkout', {
|
|
190
146
|
Sessions: CheckoutSessions,
|
|
191
147
|
});
|
|
@@ -200,17 +156,12 @@ export const Entitlements = resourceNamespace('entitlements', {
|
|
|
200
156
|
});
|
|
201
157
|
export const FinancialConnections = resourceNamespace('financialConnections', {
|
|
202
158
|
Accounts: FinancialConnectionsAccounts,
|
|
203
|
-
Institutions: FinancialConnectionsInstitutions,
|
|
204
159
|
Sessions: FinancialConnectionsSessions,
|
|
205
160
|
Transactions: FinancialConnectionsTransactions,
|
|
206
161
|
});
|
|
207
162
|
export const Forwarding = resourceNamespace('forwarding', {
|
|
208
163
|
Requests: ForwardingRequests,
|
|
209
164
|
});
|
|
210
|
-
export const GiftCards = resourceNamespace('giftCards', {
|
|
211
|
-
Cards: GiftCardsCards,
|
|
212
|
-
Transactions: GiftCardsTransactions,
|
|
213
|
-
});
|
|
214
165
|
export const Identity = resourceNamespace('identity', {
|
|
215
166
|
VerificationReports: IdentityVerificationReports,
|
|
216
167
|
VerificationSessions: IdentityVerificationSessions,
|
|
@@ -219,18 +170,12 @@ export const Issuing = resourceNamespace('issuing', {
|
|
|
219
170
|
Authorizations: IssuingAuthorizations,
|
|
220
171
|
Cardholders: IssuingCardholders,
|
|
221
172
|
Cards: IssuingCards,
|
|
222
|
-
CreditUnderwritingRecords: IssuingCreditUnderwritingRecords,
|
|
223
|
-
DisputeSettlementDetails: IssuingDisputeSettlementDetails,
|
|
224
173
|
Disputes: IssuingDisputes,
|
|
225
|
-
FraudLiabilityDebits: IssuingFraudLiabilityDebits,
|
|
226
174
|
PersonalizationDesigns: IssuingPersonalizationDesigns,
|
|
227
175
|
PhysicalBundles: IssuingPhysicalBundles,
|
|
228
176
|
Tokens: IssuingTokens,
|
|
229
177
|
Transactions: IssuingTransactions,
|
|
230
178
|
});
|
|
231
|
-
export const Privacy = resourceNamespace('privacy', {
|
|
232
|
-
RedactionJobs: PrivacyRedactionJobs,
|
|
233
|
-
});
|
|
234
179
|
export const Radar = resourceNamespace('radar', {
|
|
235
180
|
EarlyFraudWarnings: RadarEarlyFraudWarnings,
|
|
236
181
|
ValueListItems: RadarValueListItems,
|
|
@@ -244,9 +189,7 @@ export const Sigma = resourceNamespace('sigma', {
|
|
|
244
189
|
ScheduledQueryRuns: SigmaScheduledQueryRuns,
|
|
245
190
|
});
|
|
246
191
|
export const Tax = resourceNamespace('tax', {
|
|
247
|
-
Associations: TaxAssociations,
|
|
248
192
|
Calculations: TaxCalculations,
|
|
249
|
-
Forms: TaxForms,
|
|
250
193
|
Registrations: TaxRegistrations,
|
|
251
194
|
Settings: TaxSettings,
|
|
252
195
|
Transactions: TaxTransactions,
|
|
@@ -255,7 +198,6 @@ export const Terminal = resourceNamespace('terminal', {
|
|
|
255
198
|
Configurations: TerminalConfigurations,
|
|
256
199
|
ConnectionTokens: TerminalConnectionTokens,
|
|
257
200
|
Locations: TerminalLocations,
|
|
258
|
-
ReaderCollectedData: TerminalReaderCollectedData,
|
|
259
201
|
Readers: TerminalReaders,
|
|
260
202
|
});
|
|
261
203
|
export const TestHelpers = resourceNamespace('testHelpers', {
|
|
@@ -300,32 +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
|
-
TestHelper: resourceNamespace('testHelper', {
|
|
329
|
-
FinancialAddresses: V2TestHelpersFinancialAddresses,
|
|
330
247
|
}),
|
|
331
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.2.0
|
|
36
|
+
Stripe.PACKAGE_VERSION = '18.2.0';
|
|
37
37
|
Stripe.USER_AGENT = Object.assign({ bindings_version: Stripe.PACKAGE_VERSION, lang: 'node', publisher: 'stripe', uname: null, typescript: false }, determineProcessUserAgentProperties());
|
|
38
38
|
Stripe.StripeResource = StripeResource;
|
|
39
39
|
Stripe.resources = resources;
|
package/esm/utils.js
CHANGED
|
@@ -10,6 +10,7 @@ const OPTIONS_KEYS = [
|
|
|
10
10
|
'authenticator',
|
|
11
11
|
'stripeContext',
|
|
12
12
|
'additionalHeaders',
|
|
13
|
+
'streaming',
|
|
13
14
|
];
|
|
14
15
|
export function isOptionsHash(o) {
|
|
15
16
|
return (o &&
|
|
@@ -100,6 +101,7 @@ export function getOptionsFromArgs(args) {
|
|
|
100
101
|
host: null,
|
|
101
102
|
headers: {},
|
|
102
103
|
settings: {},
|
|
104
|
+
streaming: false,
|
|
103
105
|
};
|
|
104
106
|
if (args.length > 0) {
|
|
105
107
|
const arg = args[args.length - 1];
|
|
@@ -152,6 +154,9 @@ export function getOptionsFromArgs(args) {
|
|
|
152
154
|
if (params.additionalHeaders) {
|
|
153
155
|
opts.headers = params.additionalHeaders;
|
|
154
156
|
}
|
|
157
|
+
if (params.streaming) {
|
|
158
|
+
opts.streaming = true;
|
|
159
|
+
}
|
|
155
160
|
}
|
|
156
161
|
}
|
|
157
162
|
return opts;
|
package/package.json
CHANGED
|
@@ -60,11 +60,7 @@ declare module 'stripe' {
|
|
|
60
60
|
type FutureRequirements = 'include' | 'omit';
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
type Type =
|
|
64
|
-
| 'account_onboarding'
|
|
65
|
-
| 'account_update'
|
|
66
|
-
| 'capital_financing_offer'
|
|
67
|
-
| 'capital_financing_reporting';
|
|
63
|
+
type Type = 'account_onboarding' | 'account_update';
|
|
68
64
|
}
|
|
69
65
|
|
|
70
66
|
class AccountLinksResource {
|