stripe 23.1.0 → 23.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1914 -4850
- package/README.md +42 -58
- package/VERSION +1 -1
- package/cjs/Error.d.ts +6 -0
- package/cjs/Error.js +17 -1
- package/cjs/Error.js.map +1 -1
- package/cjs/StripeEventNotificationHandler.js +54 -0
- package/cjs/StripeEventNotificationHandler.js.map +1 -1
- package/cjs/Types.d.ts +4 -2
- package/cjs/Types.js.map +1 -1
- package/cjs/apiVersion.d.ts +2 -2
- package/cjs/apiVersion.js +2 -2
- package/cjs/apiVersion.js.map +1 -1
- package/cjs/resources/AccountLinks.d.ts +1 -1
- package/cjs/resources/AccountNotices.d.ts +140 -0
- package/cjs/resources/AccountNotices.js +29 -0
- package/cjs/resources/AccountNotices.js.map +1 -0
- package/cjs/resources/AccountSessions.d.ts +226 -0
- package/cjs/resources/AccountSessions.js.map +1 -1
- package/cjs/resources/Accounts.d.ts +625 -3
- package/cjs/resources/Accounts.js +14 -0
- package/cjs/resources/Accounts.js.map +1 -1
- package/cjs/resources/Balance.d.ts +67 -0
- package/cjs/resources/BalanceSettings.d.ts +18 -0
- package/cjs/resources/BankAccounts.d.ts +2 -2
- package/cjs/resources/Billing/AlertTriggereds.d.ts +2 -1
- package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js +15 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js.map +1 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js +4 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
- package/cjs/resources/Billing/Analytics/index.d.ts +15 -0
- package/cjs/resources/Billing/Analytics/index.js +13 -0
- package/cjs/resources/Billing/Analytics/index.js.map +1 -0
- package/cjs/resources/Billing/index.d.ts +3 -0
- package/cjs/resources/Billing/index.js +2 -0
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/Capabilities.d.ts +2 -2
- package/cjs/resources/Capital/FinancingOffers.d.ts +194 -0
- package/cjs/resources/Capital/FinancingOffers.js +30 -0
- package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
- package/cjs/resources/Capital/FinancingSummary.d.ts +102 -0
- package/cjs/resources/Capital/FinancingSummary.js +15 -0
- package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
- package/cjs/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/cjs/resources/Capital/FinancingTransactions.js +24 -0
- package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
- package/cjs/resources/Capital/index.d.ts +25 -0
- package/cjs/resources/Capital/index.js +17 -0
- package/cjs/resources/Capital/index.js.map +1 -0
- package/cjs/resources/Cards.d.ts +17 -0
- package/cjs/resources/Charges.d.ts +3077 -70
- package/cjs/resources/Checkout/Sessions.d.ts +351 -4
- package/cjs/resources/ConfirmationTokens.d.ts +67 -1
- package/cjs/resources/Coupons.d.ts +53 -0
- package/cjs/resources/Coupons.js +13 -0
- package/cjs/resources/Coupons.js.map +1 -1
- package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
- package/cjs/resources/CreditNotes.d.ts +1 -1
- package/cjs/resources/CustomerSessions.d.ts +68 -0
- package/cjs/resources/Customers.d.ts +20 -1
- package/cjs/resources/Customers.js +14 -0
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/Disputes.d.ts +14 -0
- package/cjs/resources/Events.d.ts +614 -3
- package/cjs/resources/ExternalAccounts.d.ts +212 -1
- package/cjs/resources/ExternalAccounts.js +44 -0
- package/cjs/resources/ExternalAccounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/cjs/resources/FinancialConnections/Accounts.d.ts +69 -4
- package/cjs/resources/FinancialConnections/Accounts.js +8 -0
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +46 -1
- package/cjs/resources/FinancialConnections/Authorizations.js +11 -0
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/cjs/resources/FinancialConnections/Institutions.d.ts +99 -0
- package/cjs/resources/FinancialConnections/Institutions.js +23 -0
- package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
- package/cjs/resources/FinancialConnections/Sessions.d.ts +124 -9
- package/cjs/resources/FinancialConnections/index.d.ts +21 -9
- package/cjs/resources/FinancialConnections/index.js +4 -0
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/FxQuotes.d.ts +216 -0
- package/cjs/resources/FxQuotes.js +29 -0
- package/cjs/resources/FxQuotes.js.map +1 -0
- package/cjs/resources/InvoiceItems.d.ts +85 -0
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +40 -2
- package/cjs/resources/Invoices.d.ts +1257 -10
- package/cjs/resources/Invoices.js +41 -0
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +13 -0
- package/cjs/resources/Issuing/Cardholders.d.ts +19 -1
- package/cjs/resources/Issuing/Cards.d.ts +13 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/cjs/resources/Issuing/Disputes.d.ts +13 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/cjs/resources/Issuing/Settlements.d.ts +83 -0
- package/cjs/resources/Issuing/Settlements.js +4 -0
- package/cjs/resources/Issuing/Settlements.js.map +1 -0
- package/cjs/resources/Issuing/Transactions.d.ts +22 -0
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +47 -22
- package/cjs/resources/Issuing/index.js +6 -0
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +29 -2
- package/cjs/resources/Mandates.d.ts +36 -2
- package/cjs/resources/Mandates.js +8 -0
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/Margins.d.ts +115 -0
- package/cjs/resources/Margins.js +35 -0
- package/cjs/resources/Margins.js.map +1 -0
- package/cjs/resources/Orders.d.ts +4696 -0
- package/cjs/resources/Orders.js +457 -0
- package/cjs/resources/Orders.js.map +1 -0
- package/cjs/resources/PaymentAttemptRecords.d.ts +82 -0
- package/cjs/resources/PaymentIntents.d.ts +13832 -2816
- package/cjs/resources/PaymentIntents.js +27 -0
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +3 -3
- package/cjs/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/cjs/resources/PaymentMethods.d.ts +181 -3
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentPlans.d.ts +427 -0
- package/cjs/resources/PaymentPlans.js +35 -0
- package/cjs/resources/PaymentPlans.js.map +1 -0
- package/cjs/resources/PaymentRecords.d.ts +82 -0
- package/cjs/resources/Persons.d.ts +2 -2
- package/cjs/resources/Prices.d.ts +36 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/cjs/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/cjs/resources/Privacy/RedactionJobs.js +73 -0
- package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
- package/cjs/resources/Privacy/index.d.ts +22 -0
- package/cjs/resources/Privacy/index.js +13 -0
- package/cjs/resources/Privacy/index.js.map +1 -0
- package/cjs/resources/ProductCatalog/TrialOffers.d.ts +2 -2
- package/cjs/resources/PromotionCodes.d.ts +12 -0
- package/cjs/resources/PromotionCodes.js +27 -0
- package/cjs/resources/PromotionCodes.js.map +1 -1
- package/cjs/resources/QuoteLines.d.ts +507 -0
- package/cjs/resources/QuoteLines.js +4 -0
- package/cjs/resources/QuoteLines.js.map +1 -0
- package/cjs/resources/QuotePreviewInvoices.d.ts +1170 -0
- package/cjs/resources/QuotePreviewInvoices.js +4 -0
- package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/cjs/resources/Quotes.d.ts +2266 -57
- package/cjs/resources/Quotes.js +1184 -16
- package/cjs/resources/Quotes.js.map +1 -1
- package/cjs/resources/Radar/BillingEvaluations.d.ts +374 -0
- package/cjs/resources/Radar/BillingEvaluations.js +15 -0
- package/cjs/resources/Radar/BillingEvaluations.js.map +1 -0
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +1 -1
- package/cjs/resources/Radar/ValueListItems.d.ts +31 -1
- package/cjs/resources/Radar/index.d.ts +21 -16
- package/cjs/resources/Radar/index.js +2 -0
- package/cjs/resources/Radar/index.js.map +1 -1
- package/cjs/resources/Refunds.d.ts +11 -0
- package/cjs/resources/Reserve/Holds.d.ts +53 -1
- package/cjs/resources/Reserve/Holds.js +19 -0
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +41 -1
- package/cjs/resources/Reserve/Plans.js +19 -0
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +41 -1
- package/cjs/resources/Reserve/Releases.js +19 -0
- package/cjs/resources/Reserve/Releases.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +18 -6
- package/cjs/resources/Reserve/index.js +9 -0
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/SetupAttempts.d.ts +26 -1
- package/cjs/resources/SetupIntents.d.ts +394 -11
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +418 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/IssuedTokens.d.ts +330 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/index.d.ts +19 -0
- package/cjs/resources/SharedPayment/index.js +15 -0
- package/cjs/resources/SharedPayment/index.js.map +1 -0
- package/cjs/resources/Sources.d.ts +29 -1
- package/cjs/resources/SubscriptionItems.d.ts +114 -0
- package/cjs/resources/SubscriptionSchedules.d.ts +1157 -5
- package/cjs/resources/SubscriptionSchedules.js +6 -0
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +388 -6
- package/cjs/resources/Subscriptions.js +42 -0
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/Forms.d.ts +228 -0
- package/cjs/resources/Tax/Forms.js +32 -0
- package/cjs/resources/Tax/Forms.js.map +1 -0
- package/cjs/resources/Tax/Registrations.d.ts +25 -2
- package/cjs/resources/Tax/index.d.ts +24 -17
- package/cjs/resources/Tax/index.js +2 -0
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/Terminal/ReaderCollectedData.d.ts +50 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/cjs/resources/Terminal/Readers.d.ts +17 -1
- package/cjs/resources/Terminal/index.d.ts +5 -0
- package/cjs/resources/Terminal/index.js +2 -0
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +21 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.js +13 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.js.map +1 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
- package/cjs/resources/TestHelpers/index.d.ts +3 -0
- package/cjs/resources/TestHelpers/index.js +6 -4
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/Tokens.d.ts +15 -0
- package/cjs/resources/Transfers.d.ts +8 -0
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/cjs/resources/Treasury/OutboundPayments.d.ts +26 -0
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings.d.ts +281 -0
- package/cjs/resources/V2/Billing/BillSettings.js +41 -0
- package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/Cadences.d.ts +958 -0
- package/cjs/resources/V2/Billing/Cadences.js +198 -0
- package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/Profiles.d.ts +162 -0
- package/cjs/resources/V2/Billing/Profiles.js +35 -0
- package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
- package/cjs/resources/V2/Billing/index.d.ts +45 -6
- package/cjs/resources/V2/Billing/index.js +8 -0
- package/cjs/resources/V2/Billing/index.js.map +1 -1
- package/cjs/resources/V2/Core/AccountTokens.d.ts +28 -1
- package/cjs/resources/V2/Core/Accounts.d.ts +1465 -71
- package/cjs/resources/V2/Core/ApprovalRequests.d.ts +378 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js +39 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/cjs/resources/V2/Core/BatchJobs.d.ts +392 -0
- package/cjs/resources/V2/Core/BatchJobs.js +252 -0
- package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
- package/cjs/resources/V2/Core/Events.d.ts +1009 -5
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
- package/cjs/resources/V2/Core/index.d.ts +24 -9
- package/cjs/resources/V2/Core/index.js +4 -0
- package/cjs/resources/V2/Core/index.js.map +1 -1
- package/cjs/resources/V2/Data/QueryRuns.d.ts +299 -0
- package/cjs/resources/V2/Data/QueryRuns.js +51 -0
- package/cjs/resources/V2/Data/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/ReportRuns.d.ts +303 -0
- package/cjs/resources/V2/Data/ReportRuns.js +53 -0
- package/cjs/resources/V2/Data/ReportRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
- package/cjs/resources/V2/Data/Reports.d.ts +140 -0
- package/cjs/resources/V2/Data/Reports.js +25 -0
- package/cjs/resources/V2/Data/Reports.js.map +1 -0
- package/cjs/resources/V2/Data/Schemas.d.ts +161 -0
- package/cjs/resources/V2/Data/Schemas.js +23 -0
- package/cjs/resources/V2/Data/Schemas.js.map +1 -0
- package/cjs/resources/V2/Data/index.d.ts +34 -0
- package/cjs/resources/V2/Data/index.js +21 -0
- package/cjs/resources/V2/Data/index.js.map +1 -0
- package/cjs/resources/V2/EventMisc.d.ts +0 -0
- package/cjs/resources/V2/EventMisc.js +2 -0
- package/cjs/resources/V2/EventMisc.js.map +1 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/cjs/resources/V2/Extend/Workflows.d.ts +120 -0
- package/cjs/resources/V2/Extend/Workflows.js +30 -0
- package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +20 -0
- package/cjs/resources/V2/Extend/index.js +15 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -0
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +377 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js +23 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/cjs/resources/V2/Iam/index.d.ts +13 -0
- package/cjs/resources/V2/Iam/index.js +13 -0
- package/cjs/resources/V2/Iam/index.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +4 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +23 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +40 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/index.d.ts +63 -37
- package/cjs/resources/V2/MoneyManagement/index.js +6 -0
- package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
- package/cjs/resources/V2/Network/BusinessProfiles.d.ts +92 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/cjs/resources/V2/Network/index.d.ts +13 -0
- package/cjs/resources/V2/Network/index.js +13 -0
- package/cjs/resources/V2/Network/index.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountActivities.d.ts +432 -0
- package/cjs/resources/V2/Signals/AccountActivities.js +27 -0
- package/cjs/resources/V2/Signals/AccountActivities.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.js +59 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountSignals.d.ts +196 -0
- package/cjs/resources/V2/Signals/AccountSignals.js +66 -0
- package/cjs/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/cjs/resources/V2/Signals/index.d.ts +26 -0
- package/cjs/resources/V2/Signals/index.js +17 -0
- package/cjs/resources/V2/Signals/index.js.map +1 -0
- package/cjs/resources/V2/index.d.ts +18 -0
- package/cjs/resources/V2/index.js +16 -4
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/resources/WebhookEndpoints.d.ts +2 -2
- package/cjs/resources.d.ts +10 -0
- package/cjs/resources.js +126 -8
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.cjs.node.d.ts +6674 -138
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.core.d.ts +60 -26
- package/cjs/stripe.core.js +55 -36
- package/cjs/stripe.core.js.map +1 -1
- package/esm/Error.d.ts +6 -0
- package/esm/Error.js +14 -0
- package/esm/Error.js.map +1 -1
- package/esm/StripeEventNotificationHandler.js +54 -0
- package/esm/StripeEventNotificationHandler.js.map +1 -1
- package/esm/Types.d.ts +4 -2
- package/esm/Types.js.map +1 -1
- package/esm/apiVersion.d.ts +2 -2
- package/esm/apiVersion.js +2 -2
- package/esm/apiVersion.js.map +1 -1
- package/esm/resources/AccountLinks.d.ts +1 -1
- package/esm/resources/AccountNotices.d.ts +140 -0
- package/esm/resources/AccountNotices.js +25 -0
- package/esm/resources/AccountNotices.js.map +1 -0
- package/esm/resources/AccountSessions.d.ts +226 -0
- package/esm/resources/AccountSessions.js.map +1 -1
- package/esm/resources/Accounts.d.ts +625 -3
- package/esm/resources/Accounts.js +14 -0
- package/esm/resources/Accounts.js.map +1 -1
- package/esm/resources/Balance.d.ts +67 -0
- package/esm/resources/BalanceSettings.d.ts +18 -0
- package/esm/resources/BankAccounts.d.ts +2 -2
- package/esm/resources/Billing/AlertTriggereds.d.ts +2 -1
- package/esm/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js +11 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js.map +1 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.js +3 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
- package/esm/resources/Billing/Analytics/index.d.ts +15 -0
- package/esm/resources/Billing/Analytics/index.js +9 -0
- package/esm/resources/Billing/Analytics/index.js.map +1 -0
- package/esm/resources/Billing/index.d.ts +3 -0
- package/esm/resources/Billing/index.js +2 -0
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/Capabilities.d.ts +2 -2
- package/esm/resources/Capital/FinancingOffers.d.ts +194 -0
- package/esm/resources/Capital/FinancingOffers.js +26 -0
- package/esm/resources/Capital/FinancingOffers.js.map +1 -0
- package/esm/resources/Capital/FinancingSummary.d.ts +102 -0
- package/esm/resources/Capital/FinancingSummary.js +11 -0
- package/esm/resources/Capital/FinancingSummary.js.map +1 -0
- package/esm/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/esm/resources/Capital/FinancingTransactions.js +20 -0
- package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
- package/esm/resources/Capital/index.d.ts +25 -0
- package/esm/resources/Capital/index.js +13 -0
- package/esm/resources/Capital/index.js.map +1 -0
- package/esm/resources/Cards.d.ts +17 -0
- package/esm/resources/Charges.d.ts +3077 -70
- package/esm/resources/Checkout/Sessions.d.ts +351 -4
- package/esm/resources/ConfirmationTokens.d.ts +67 -1
- package/esm/resources/Coupons.d.ts +53 -0
- package/esm/resources/Coupons.js +13 -0
- package/esm/resources/Coupons.js.map +1 -1
- package/esm/resources/CreditNoteLineItems.d.ts +15 -1
- package/esm/resources/CreditNotes.d.ts +1 -1
- package/esm/resources/CustomerSessions.d.ts +68 -0
- package/esm/resources/Customers.d.ts +20 -1
- package/esm/resources/Customers.js +14 -0
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/Disputes.d.ts +14 -0
- package/esm/resources/Events.d.ts +614 -3
- package/esm/resources/ExternalAccounts.d.ts +212 -1
- package/esm/resources/ExternalAccounts.js +42 -1
- package/esm/resources/ExternalAccounts.js.map +1 -1
- package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/esm/resources/FinancialConnections/Accounts.d.ts +69 -4
- package/esm/resources/FinancialConnections/Accounts.js +8 -0
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +46 -1
- package/esm/resources/FinancialConnections/Authorizations.js +9 -1
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/esm/resources/FinancialConnections/Institutions.d.ts +99 -0
- package/esm/resources/FinancialConnections/Institutions.js +19 -0
- package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
- package/esm/resources/FinancialConnections/Sessions.d.ts +124 -9
- package/esm/resources/FinancialConnections/index.d.ts +21 -9
- package/esm/resources/FinancialConnections/index.js +4 -0
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/FxQuotes.d.ts +216 -0
- package/esm/resources/FxQuotes.js +25 -0
- package/esm/resources/FxQuotes.js.map +1 -0
- package/esm/resources/InvoiceItems.d.ts +85 -0
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +40 -2
- package/esm/resources/Invoices.d.ts +1257 -10
- package/esm/resources/Invoices.js +41 -0
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +13 -0
- package/esm/resources/Issuing/Cardholders.d.ts +19 -1
- package/esm/resources/Issuing/Cards.d.ts +13 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/esm/resources/Issuing/Disputes.d.ts +13 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/esm/resources/Issuing/Settlements.d.ts +83 -0
- package/esm/resources/Issuing/Settlements.js +3 -0
- package/esm/resources/Issuing/Settlements.js.map +1 -0
- package/esm/resources/Issuing/Transactions.d.ts +22 -0
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +47 -22
- package/esm/resources/Issuing/index.js +6 -0
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +29 -2
- package/esm/resources/Mandates.d.ts +36 -2
- package/esm/resources/Mandates.js +8 -0
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/Margins.d.ts +115 -0
- package/esm/resources/Margins.js +31 -0
- package/esm/resources/Margins.js.map +1 -0
- package/esm/resources/Orders.d.ts +4696 -0
- package/esm/resources/Orders.js +453 -0
- package/esm/resources/Orders.js.map +1 -0
- package/esm/resources/PaymentAttemptRecords.d.ts +82 -0
- package/esm/resources/PaymentIntents.d.ts +13832 -2816
- package/esm/resources/PaymentIntents.js +27 -0
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +3 -3
- package/esm/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/esm/resources/PaymentMethods.d.ts +181 -3
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentPlans.d.ts +427 -0
- package/esm/resources/PaymentPlans.js +31 -0
- package/esm/resources/PaymentPlans.js.map +1 -0
- package/esm/resources/PaymentRecords.d.ts +82 -0
- package/esm/resources/Persons.d.ts +2 -2
- package/esm/resources/Prices.d.ts +36 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/esm/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/esm/resources/Privacy/RedactionJobs.js +69 -0
- package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
- package/esm/resources/Privacy/index.d.ts +22 -0
- package/esm/resources/Privacy/index.js +9 -0
- package/esm/resources/Privacy/index.js.map +1 -0
- package/esm/resources/ProductCatalog/TrialOffers.d.ts +2 -2
- package/esm/resources/PromotionCodes.d.ts +12 -0
- package/esm/resources/PromotionCodes.js +27 -0
- package/esm/resources/PromotionCodes.js.map +1 -1
- package/esm/resources/QuoteLines.d.ts +507 -0
- package/esm/resources/QuoteLines.js +3 -0
- package/esm/resources/QuoteLines.js.map +1 -0
- package/esm/resources/QuotePreviewInvoices.d.ts +1170 -0
- package/esm/resources/QuotePreviewInvoices.js +3 -0
- package/esm/resources/QuotePreviewInvoices.js.map +1 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/esm/resources/Quotes.d.ts +2266 -57
- package/esm/resources/Quotes.js +1184 -16
- package/esm/resources/Quotes.js.map +1 -1
- package/esm/resources/Radar/BillingEvaluations.d.ts +374 -0
- package/esm/resources/Radar/BillingEvaluations.js +11 -0
- package/esm/resources/Radar/BillingEvaluations.js.map +1 -0
- package/esm/resources/Radar/PaymentEvaluations.d.ts +1 -1
- package/esm/resources/Radar/ValueListItems.d.ts +31 -1
- package/esm/resources/Radar/index.d.ts +21 -16
- package/esm/resources/Radar/index.js +2 -0
- package/esm/resources/Radar/index.js.map +1 -1
- package/esm/resources/Refunds.d.ts +11 -0
- package/esm/resources/Reserve/Holds.d.ts +53 -1
- package/esm/resources/Reserve/Holds.js +17 -1
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +41 -1
- package/esm/resources/Reserve/Plans.js +17 -1
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +41 -1
- package/esm/resources/Reserve/Releases.js +17 -1
- package/esm/resources/Reserve/Releases.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +18 -6
- package/esm/resources/Reserve/index.js +9 -0
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/SetupAttempts.d.ts +26 -1
- package/esm/resources/SetupIntents.d.ts +394 -11
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +418 -0
- package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
- package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/IssuedTokens.d.ts +330 -0
- package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
- package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/index.d.ts +19 -0
- package/esm/resources/SharedPayment/index.js +11 -0
- package/esm/resources/SharedPayment/index.js.map +1 -0
- package/esm/resources/Sources.d.ts +29 -1
- package/esm/resources/SubscriptionItems.d.ts +114 -0
- package/esm/resources/SubscriptionSchedules.d.ts +1157 -5
- package/esm/resources/SubscriptionSchedules.js +6 -0
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +388 -6
- package/esm/resources/Subscriptions.js +42 -0
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/Forms.d.ts +228 -0
- package/esm/resources/Tax/Forms.js +28 -0
- package/esm/resources/Tax/Forms.js.map +1 -0
- package/esm/resources/Tax/Registrations.d.ts +25 -2
- package/esm/resources/Tax/index.d.ts +24 -17
- package/esm/resources/Tax/index.js +2 -0
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/Terminal/ReaderCollectedData.d.ts +50 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
- package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/esm/resources/Terminal/Readers.d.ts +17 -1
- package/esm/resources/Terminal/index.d.ts +5 -0
- package/esm/resources/Terminal/index.js +2 -0
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +17 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
- package/esm/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
- package/esm/resources/TestHelpers/SharedPayment/index.js +9 -0
- package/esm/resources/TestHelpers/SharedPayment/index.js.map +1 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
- package/esm/resources/TestHelpers/index.d.ts +3 -0
- package/esm/resources/TestHelpers/index.js +2 -0
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/Tokens.d.ts +15 -0
- package/esm/resources/Transfers.d.ts +8 -0
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/esm/resources/Treasury/OutboundPayments.d.ts +26 -0
- package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/esm/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings.d.ts +281 -0
- package/esm/resources/V2/Billing/BillSettings.js +37 -0
- package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
- package/esm/resources/V2/Billing/Cadences.d.ts +958 -0
- package/esm/resources/V2/Billing/Cadences.js +194 -0
- package/esm/resources/V2/Billing/Cadences.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
- package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/esm/resources/V2/Billing/Profiles.d.ts +162 -0
- package/esm/resources/V2/Billing/Profiles.js +31 -0
- package/esm/resources/V2/Billing/Profiles.js.map +1 -0
- package/esm/resources/V2/Billing/index.d.ts +45 -6
- package/esm/resources/V2/Billing/index.js +8 -0
- package/esm/resources/V2/Billing/index.js.map +1 -1
- package/esm/resources/V2/Core/AccountTokens.d.ts +28 -1
- package/esm/resources/V2/Core/Accounts.d.ts +1465 -71
- package/esm/resources/V2/Core/ApprovalRequests.d.ts +378 -0
- package/esm/resources/V2/Core/ApprovalRequests.js +35 -0
- package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/esm/resources/V2/Core/BatchJobs.d.ts +392 -0
- package/esm/resources/V2/Core/BatchJobs.js +248 -0
- package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
- package/esm/resources/V2/Core/Events.d.ts +1009 -5
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
- package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
- package/esm/resources/V2/Core/index.d.ts +24 -9
- package/esm/resources/V2/Core/index.js +4 -0
- package/esm/resources/V2/Core/index.js.map +1 -1
- package/esm/resources/V2/Data/QueryRuns.d.ts +299 -0
- package/esm/resources/V2/Data/QueryRuns.js +47 -0
- package/esm/resources/V2/Data/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/ReportRuns.d.ts +303 -0
- package/esm/resources/V2/Data/ReportRuns.js +49 -0
- package/esm/resources/V2/Data/ReportRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/esm/resources/V2/Data/Reporting/index.js +9 -0
- package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
- package/esm/resources/V2/Data/Reports.d.ts +140 -0
- package/esm/resources/V2/Data/Reports.js +21 -0
- package/esm/resources/V2/Data/Reports.js.map +1 -0
- package/esm/resources/V2/Data/Schemas.d.ts +161 -0
- package/esm/resources/V2/Data/Schemas.js +19 -0
- package/esm/resources/V2/Data/Schemas.js.map +1 -0
- package/esm/resources/V2/Data/index.d.ts +34 -0
- package/esm/resources/V2/Data/index.js +17 -0
- package/esm/resources/V2/Data/index.js.map +1 -0
- package/esm/resources/V2/EventMisc.d.ts +0 -0
- package/esm/resources/V2/EventMisc.js +2 -0
- package/esm/resources/V2/EventMisc.js.map +1 -0
- package/esm/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/esm/resources/V2/Extend/Workflows.d.ts +120 -0
- package/esm/resources/V2/Extend/Workflows.js +26 -0
- package/esm/resources/V2/Extend/Workflows.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +20 -0
- package/esm/resources/V2/Extend/index.js +11 -0
- package/esm/resources/V2/Extend/index.js.map +1 -0
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +377 -0
- package/esm/resources/V2/Iam/ActivityLogs.js +19 -0
- package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/esm/resources/V2/Iam/index.d.ts +13 -0
- package/esm/resources/V2/Iam/index.js +9 -0
- package/esm/resources/V2/Iam/index.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +3 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +19 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +36 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/index.d.ts +63 -37
- package/esm/resources/V2/MoneyManagement/index.js +6 -0
- package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
- package/esm/resources/V2/Network/BusinessProfiles.d.ts +92 -0
- package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
- package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/esm/resources/V2/Network/index.d.ts +13 -0
- package/esm/resources/V2/Network/index.js +9 -0
- package/esm/resources/V2/Network/index.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/esm/resources/V2/Signals/AccountActivities.d.ts +432 -0
- package/esm/resources/V2/Signals/AccountActivities.js +23 -0
- package/esm/resources/V2/Signals/AccountActivities.js.map +1 -0
- package/esm/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
- package/esm/resources/V2/Signals/AccountEvaluations.js +55 -0
- package/esm/resources/V2/Signals/AccountEvaluations.js.map +1 -0
- package/esm/resources/V2/Signals/AccountSignals.d.ts +196 -0
- package/esm/resources/V2/Signals/AccountSignals.js +62 -0
- package/esm/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/esm/resources/V2/Signals/index.d.ts +26 -0
- package/esm/resources/V2/Signals/index.js +13 -0
- package/esm/resources/V2/Signals/index.js.map +1 -0
- package/esm/resources/V2/index.d.ts +18 -0
- package/esm/resources/V2/index.js +12 -0
- package/esm/resources/V2/index.js.map +1 -1
- package/esm/resources/WebhookEndpoints.d.ts +2 -2
- package/esm/resources.d.ts +10 -0
- package/esm/resources.js +112 -0
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.d.ts +60 -26
- package/esm/stripe.core.js +21 -2
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +60 -26
- package/esm/stripe.esm.node.js +21 -2
- package/esm/stripe.esm.node.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.QueryRunResource = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../../StripeResource.js");
|
|
6
|
+
class QueryRunResource extends StripeResource_js_1.StripeResource {
|
|
7
|
+
/**
|
|
8
|
+
* Submits a SQL query for execution against a dataset and returns a `QueryRun` object
|
|
9
|
+
* to track progress and retrieve results.
|
|
10
|
+
*/
|
|
11
|
+
create(params, options) {
|
|
12
|
+
return this._makeRequest('POST', '/v2/data/query_runs', params, options, {
|
|
13
|
+
responseSchema: {
|
|
14
|
+
kind: 'object',
|
|
15
|
+
fields: {
|
|
16
|
+
result: {
|
|
17
|
+
kind: 'object',
|
|
18
|
+
fields: {
|
|
19
|
+
col_count: { kind: 'int64_string' },
|
|
20
|
+
file: { kind: 'object', fields: { size: { kind: 'int64_string' } } },
|
|
21
|
+
row_count: { kind: 'int64_string' },
|
|
22
|
+
},
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Retrieves the status and results of a previously created `QueryRun`. Returns a `404` error
|
|
30
|
+
* if the `QueryRun` doesn't exist or its retention period has ended.
|
|
31
|
+
*/
|
|
32
|
+
retrieve(id, params, options) {
|
|
33
|
+
return this._makeRequest('GET', `/v2/data/query_runs/${encodeURIComponent(id)}`, params, options, {
|
|
34
|
+
responseSchema: {
|
|
35
|
+
kind: 'object',
|
|
36
|
+
fields: {
|
|
37
|
+
result: {
|
|
38
|
+
kind: 'object',
|
|
39
|
+
fields: {
|
|
40
|
+
col_count: { kind: 'int64_string' },
|
|
41
|
+
file: { kind: 'object', fields: { size: { kind: 'int64_string' } } },
|
|
42
|
+
row_count: { kind: 'int64_string' },
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.QueryRunResource = QueryRunResource;
|
|
51
|
+
//# sourceMappingURL=QueryRuns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryRuns.js","sourceRoot":"","sources":["../../../../src/resources/V2/Data/QueryRuns.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,kEAA0D;AAI1D,MAAa,gBAAiB,SAAQ,kCAAc;IAClD;;;OAGG;IACH,MAAM,CACJ,MAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,qBAAqB,EAAE,MAAM,EAAE,OAAO,EAAE;YACvE,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE;4BACN,SAAS,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC;4BACjC,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAC,IAAI,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC,EAAC,EAAC;4BAC9D,SAAS,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC;yBAClC;qBACF;iBACF;aACF;SACF,CAAQ,CAAC;IACZ,CAAC;IACD;;;OAGG;IACH,QAAQ,CACN,EAAU,EACV,MAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,uBAAuB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC/C,MAAM,EACN,OAAO,EACP;YACE,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE;4BACN,SAAS,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC;4BACjC,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAC,IAAI,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC,EAAC,EAAC;4BAC9D,SAAS,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC;yBAClC;qBACF;iBACF;aACF;SACF,CACK,CAAC;IACX,CAAC;CACF;AAxDD,4CAwDC"}
|
|
@@ -0,0 +1,303 @@
|
|
|
1
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
2
|
+
import { OtherString } from '../../../shared.js';
|
|
3
|
+
import { RequestOptions, Response } from '../../../lib.js';
|
|
4
|
+
export declare class ReportRunResource extends StripeResource {
|
|
5
|
+
/**
|
|
6
|
+
* Initiates the generation of a `ReportRun` based on the specified `Report` and
|
|
7
|
+
* caller-provided parameters. Returns a `ReportRun` object which can be used to track
|
|
8
|
+
* the progress and retrieve the results of the report.
|
|
9
|
+
*/
|
|
10
|
+
create(params: V2.Data.ReportRunCreateParams, options?: RequestOptions): Promise<Response<ReportRun>>;
|
|
11
|
+
/**
|
|
12
|
+
* Fetches the current state and details of a previously created `ReportRun`. If the
|
|
13
|
+
* `ReportRun` has succeeded, the endpoint provides details for how to retrieve the results.
|
|
14
|
+
* Returns a `404` error if the `ReportRun` doesn't exist or its retention period has ended.
|
|
15
|
+
*/
|
|
16
|
+
retrieve(id: string, params?: V2.Data.ReportRunRetrieveParams, options?: RequestOptions): Promise<Response<ReportRun>>;
|
|
17
|
+
}
|
|
18
|
+
export interface ReportRun {
|
|
19
|
+
/**
|
|
20
|
+
* The unique identifier of the `ReportRun`.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
25
|
+
*/
|
|
26
|
+
object: 'v2.data.report_run';
|
|
27
|
+
/**
|
|
28
|
+
* Time at which the `ReportRun` was created.
|
|
29
|
+
*/
|
|
30
|
+
created: string;
|
|
31
|
+
/**
|
|
32
|
+
* The file format of the result.
|
|
33
|
+
*/
|
|
34
|
+
format: ReportRun.Format;
|
|
35
|
+
/**
|
|
36
|
+
* Whether the `ReportRun` was executed in live mode.
|
|
37
|
+
*/
|
|
38
|
+
livemode: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* The human-readable name of the `Report` which was run.
|
|
41
|
+
*/
|
|
42
|
+
name: string;
|
|
43
|
+
/**
|
|
44
|
+
* The parameters used to customize the generation of the report.
|
|
45
|
+
*/
|
|
46
|
+
parameters: ReportRun.Parameters;
|
|
47
|
+
/**
|
|
48
|
+
* Time at which the data used by this report was last refreshed.
|
|
49
|
+
*/
|
|
50
|
+
refreshed_at?: string;
|
|
51
|
+
/**
|
|
52
|
+
* The unique identifier of the `Report` which was run.
|
|
53
|
+
*/
|
|
54
|
+
report: string;
|
|
55
|
+
/**
|
|
56
|
+
* The result of the `ReportRun`, populated when it has completed.
|
|
57
|
+
*/
|
|
58
|
+
result?: ReportRun.Result;
|
|
59
|
+
/**
|
|
60
|
+
* Settings applied to the generated result file.
|
|
61
|
+
*/
|
|
62
|
+
result_options?: ReportRun.ResultOptions;
|
|
63
|
+
/**
|
|
64
|
+
* The fully-resolved SQL that was executed, or an explanatory message when the SQL cannot be
|
|
65
|
+
* exposed. Only present when requested via `include[0]=sql`.
|
|
66
|
+
*/
|
|
67
|
+
sql?: string;
|
|
68
|
+
/**
|
|
69
|
+
* The current status of the `ReportRun`.
|
|
70
|
+
*/
|
|
71
|
+
status: ReportRun.Status;
|
|
72
|
+
/**
|
|
73
|
+
* Additional details about the current state of the `ReportRun`.
|
|
74
|
+
*/
|
|
75
|
+
status_details?: ReportRun.StatusDetails;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace ReportRun {
|
|
78
|
+
type Format = 'csv' | OtherString;
|
|
79
|
+
type Parameters = {
|
|
80
|
+
[key: string]: unknown;
|
|
81
|
+
};
|
|
82
|
+
interface Result {
|
|
83
|
+
/**
|
|
84
|
+
* The total number of columns in the result.
|
|
85
|
+
*/
|
|
86
|
+
col_count?: bigint;
|
|
87
|
+
/**
|
|
88
|
+
* File result with a download URL. This is the default result type.
|
|
89
|
+
*/
|
|
90
|
+
file?: Result.File;
|
|
91
|
+
/**
|
|
92
|
+
* Inline result with data returned directly. Only present when requested via
|
|
93
|
+
* `include[0]=result.inline`.
|
|
94
|
+
*/
|
|
95
|
+
inline?: Result.Inline;
|
|
96
|
+
/**
|
|
97
|
+
* The total number of data rows in the result, excluding any header row.
|
|
98
|
+
*/
|
|
99
|
+
row_count?: bigint;
|
|
100
|
+
}
|
|
101
|
+
interface ResultOptions {
|
|
102
|
+
/**
|
|
103
|
+
* The compression applied to the generated result file. Defaults to `none`. This applies
|
|
104
|
+
* only to downloadable file results.
|
|
105
|
+
*/
|
|
106
|
+
compression?: ResultOptions.Compression;
|
|
107
|
+
}
|
|
108
|
+
type Status = 'canceled' | 'failed' | 'running' | 'succeeded' | OtherString;
|
|
109
|
+
interface StatusDetails {
|
|
110
|
+
/**
|
|
111
|
+
* Time at which the run was canceled. Populated when the run is in the `canceled` state.
|
|
112
|
+
*/
|
|
113
|
+
canceled_at?: string;
|
|
114
|
+
/**
|
|
115
|
+
* Error code categorizing the reason the run failed.
|
|
116
|
+
*/
|
|
117
|
+
code?: StatusDetails.Code;
|
|
118
|
+
/**
|
|
119
|
+
* Error message with additional details about the failure.
|
|
120
|
+
*/
|
|
121
|
+
message?: string;
|
|
122
|
+
/**
|
|
123
|
+
* Errors found in the submitted SQL. Populated when the failure was caused by invalid SQL.
|
|
124
|
+
*/
|
|
125
|
+
query_errors: Array<StatusDetails.QueryError>;
|
|
126
|
+
}
|
|
127
|
+
namespace Result {
|
|
128
|
+
interface File {
|
|
129
|
+
/**
|
|
130
|
+
* The schema of the result data.
|
|
131
|
+
*/
|
|
132
|
+
columns: Array<File.Column>;
|
|
133
|
+
/**
|
|
134
|
+
* The content type of the file.
|
|
135
|
+
*/
|
|
136
|
+
content_type: File.ContentType;
|
|
137
|
+
/**
|
|
138
|
+
* A pre-signed URL that allows secure, time-limited access to download the file.
|
|
139
|
+
*/
|
|
140
|
+
download_url: File.DownloadUrl;
|
|
141
|
+
/**
|
|
142
|
+
* The total size of the file in bytes.
|
|
143
|
+
*/
|
|
144
|
+
size: bigint;
|
|
145
|
+
}
|
|
146
|
+
interface Inline {
|
|
147
|
+
/**
|
|
148
|
+
* The schema of the result data.
|
|
149
|
+
*/
|
|
150
|
+
columns: Array<Inline.Column>;
|
|
151
|
+
/**
|
|
152
|
+
* Token for the next page of rows.
|
|
153
|
+
*/
|
|
154
|
+
next_page_url?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Token for the previous page of rows.
|
|
157
|
+
*/
|
|
158
|
+
previous_page_url?: string;
|
|
159
|
+
/**
|
|
160
|
+
* The result rows, each represented as a map of column name to value.
|
|
161
|
+
*/
|
|
162
|
+
rows: Array<Inline.Row>;
|
|
163
|
+
}
|
|
164
|
+
namespace File {
|
|
165
|
+
interface Column {
|
|
166
|
+
/**
|
|
167
|
+
* The name of the column.
|
|
168
|
+
*/
|
|
169
|
+
name: string;
|
|
170
|
+
/**
|
|
171
|
+
* The data type of the column.
|
|
172
|
+
*/
|
|
173
|
+
type: Column.Type;
|
|
174
|
+
}
|
|
175
|
+
type ContentType = 'csv' | OtherString;
|
|
176
|
+
interface DownloadUrl {
|
|
177
|
+
/**
|
|
178
|
+
* The time that the URL expires.
|
|
179
|
+
*/
|
|
180
|
+
expires_at?: string;
|
|
181
|
+
/**
|
|
182
|
+
* The URL that can be used for accessing the file.
|
|
183
|
+
*/
|
|
184
|
+
url: string;
|
|
185
|
+
}
|
|
186
|
+
namespace Column {
|
|
187
|
+
type Type = 'bigint' | 'boolean' | 'date' | 'datetime' | 'decimal' | 'double' | 'integer' | 'timestamp' | 'varchar' | OtherString;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
namespace Inline {
|
|
191
|
+
interface Column {
|
|
192
|
+
/**
|
|
193
|
+
* The name of the column.
|
|
194
|
+
*/
|
|
195
|
+
name: string;
|
|
196
|
+
/**
|
|
197
|
+
* The data type of the column.
|
|
198
|
+
*/
|
|
199
|
+
type: Column.Type;
|
|
200
|
+
}
|
|
201
|
+
interface Row {
|
|
202
|
+
/**
|
|
203
|
+
* The column data in this row, keyed by column name.
|
|
204
|
+
*/
|
|
205
|
+
data: Row.Data;
|
|
206
|
+
}
|
|
207
|
+
namespace Column {
|
|
208
|
+
type Type = 'bigint' | 'boolean' | 'date' | 'datetime' | 'decimal' | 'double' | 'integer' | 'timestamp' | 'varchar' | OtherString;
|
|
209
|
+
}
|
|
210
|
+
namespace Row {
|
|
211
|
+
type Data = {
|
|
212
|
+
[key: string]: unknown;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
namespace ResultOptions {
|
|
218
|
+
type Compression = 'none' | 'zip' | OtherString;
|
|
219
|
+
}
|
|
220
|
+
namespace StatusDetails {
|
|
221
|
+
type Code = 'execution_failed' | 'file_size_above_limit' | 'internal_error' | 'query_run_invalid_sql' | 'resource_limit_exceeded' | OtherString;
|
|
222
|
+
interface QueryError {
|
|
223
|
+
/**
|
|
224
|
+
* A human-readable description of the error.
|
|
225
|
+
*/
|
|
226
|
+
message: string;
|
|
227
|
+
/**
|
|
228
|
+
* A short identifier categorizing the type of error.
|
|
229
|
+
*/
|
|
230
|
+
type: string;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
export declare namespace V2 {
|
|
235
|
+
namespace Data {
|
|
236
|
+
interface ReportRunCreateParams {
|
|
237
|
+
/**
|
|
238
|
+
* The file format for the result.
|
|
239
|
+
*/
|
|
240
|
+
format: ReportRunCreateParams.Format;
|
|
241
|
+
/**
|
|
242
|
+
* A map of parameter names to values, specifying how the report should be customized.
|
|
243
|
+
* The accepted parameters depend on the specific `Report` being run.
|
|
244
|
+
*/
|
|
245
|
+
parameters: ReportRunCreateParams.Parameters;
|
|
246
|
+
/**
|
|
247
|
+
* A reference to the `Report` to run, by ID or name.
|
|
248
|
+
*/
|
|
249
|
+
report: ReportRunCreateParams.Report;
|
|
250
|
+
/**
|
|
251
|
+
* Optional settings that customize the generated result file.
|
|
252
|
+
*/
|
|
253
|
+
result_options?: ReportRunCreateParams.ResultOptions;
|
|
254
|
+
}
|
|
255
|
+
namespace ReportRunCreateParams {
|
|
256
|
+
type Format = 'csv' | OtherString;
|
|
257
|
+
type Parameters = {
|
|
258
|
+
[key: string]: unknown;
|
|
259
|
+
};
|
|
260
|
+
interface Report {
|
|
261
|
+
/**
|
|
262
|
+
* The unique identifier of the `Report`.
|
|
263
|
+
*/
|
|
264
|
+
id?: string;
|
|
265
|
+
/**
|
|
266
|
+
* The human-readable name of the `Report`.
|
|
267
|
+
*/
|
|
268
|
+
name?: string;
|
|
269
|
+
}
|
|
270
|
+
interface ResultOptions {
|
|
271
|
+
/**
|
|
272
|
+
* The compression applied to the generated result file. Defaults to `none`. This applies
|
|
273
|
+
* only to downloadable file results.
|
|
274
|
+
*/
|
|
275
|
+
compression?: ResultOptions.Compression;
|
|
276
|
+
}
|
|
277
|
+
namespace ResultOptions {
|
|
278
|
+
type Compression = 'none' | 'zip' | OtherString;
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
export declare namespace V2 {
|
|
284
|
+
namespace Data {
|
|
285
|
+
interface ReportRunRetrieveParams {
|
|
286
|
+
/**
|
|
287
|
+
* Any optional includes (see https://docs.stripe.com/api-includable-response-values).
|
|
288
|
+
*/
|
|
289
|
+
include?: Array<ReportRunRetrieveParams.Include>;
|
|
290
|
+
/**
|
|
291
|
+
* The maximum number of inline `ReportRun` result rows to return. Defaults to 100. Maximum is 1000.
|
|
292
|
+
*/
|
|
293
|
+
limit?: number;
|
|
294
|
+
/**
|
|
295
|
+
* The page token for paginating the inline `ReportRun` result rows.
|
|
296
|
+
*/
|
|
297
|
+
page?: string;
|
|
298
|
+
}
|
|
299
|
+
namespace ReportRunRetrieveParams {
|
|
300
|
+
type Include = 'result.inline' | 'sql' | OtherString;
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.ReportRunResource = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../../StripeResource.js");
|
|
6
|
+
class ReportRunResource extends StripeResource_js_1.StripeResource {
|
|
7
|
+
/**
|
|
8
|
+
* Initiates the generation of a `ReportRun` based on the specified `Report` and
|
|
9
|
+
* caller-provided parameters. Returns a `ReportRun` object which can be used to track
|
|
10
|
+
* the progress and retrieve the results of the report.
|
|
11
|
+
*/
|
|
12
|
+
create(params, options) {
|
|
13
|
+
return this._makeRequest('POST', '/v2/data/report_runs', params, options, {
|
|
14
|
+
responseSchema: {
|
|
15
|
+
kind: 'object',
|
|
16
|
+
fields: {
|
|
17
|
+
result: {
|
|
18
|
+
kind: 'object',
|
|
19
|
+
fields: {
|
|
20
|
+
col_count: { kind: 'int64_string' },
|
|
21
|
+
file: { kind: 'object', fields: { size: { kind: 'int64_string' } } },
|
|
22
|
+
row_count: { kind: 'int64_string' },
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Fetches the current state and details of a previously created `ReportRun`. If the
|
|
31
|
+
* `ReportRun` has succeeded, the endpoint provides details for how to retrieve the results.
|
|
32
|
+
* Returns a `404` error if the `ReportRun` doesn't exist or its retention period has ended.
|
|
33
|
+
*/
|
|
34
|
+
retrieve(id, params, options) {
|
|
35
|
+
return this._makeRequest('GET', `/v2/data/report_runs/${encodeURIComponent(id)}`, params, options, {
|
|
36
|
+
responseSchema: {
|
|
37
|
+
kind: 'object',
|
|
38
|
+
fields: {
|
|
39
|
+
result: {
|
|
40
|
+
kind: 'object',
|
|
41
|
+
fields: {
|
|
42
|
+
col_count: { kind: 'int64_string' },
|
|
43
|
+
file: { kind: 'object', fields: { size: { kind: 'int64_string' } } },
|
|
44
|
+
row_count: { kind: 'int64_string' },
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
exports.ReportRunResource = ReportRunResource;
|
|
53
|
+
//# sourceMappingURL=ReportRuns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReportRuns.js","sourceRoot":"","sources":["../../../../src/resources/V2/Data/ReportRuns.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,kEAA0D;AAI1D,MAAa,iBAAkB,SAAQ,kCAAc;IACnD;;;;OAIG;IACH,MAAM,CACJ,MAAqC,EACrC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CAAC,MAAM,EAAE,sBAAsB,EAAE,MAAM,EAAE,OAAO,EAAE;YACxE,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE;4BACN,SAAS,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC;4BACjC,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAC,IAAI,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC,EAAC,EAAC;4BAC9D,SAAS,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC;yBAClC;qBACF;iBACF;aACF;SACF,CAAQ,CAAC;IACZ,CAAC;IACD;;;;OAIG;IACH,QAAQ,CACN,EAAU,EACV,MAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,wBAAwB,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAChD,MAAM,EACN,OAAO,EACP;YACE,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE;4BACN,SAAS,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC;4BACjC,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAC,IAAI,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC,EAAC,EAAC;4BAC9D,SAAS,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC;yBAClC;qBACF;iBACF;aACF;SACF,CACK,CAAC;IACX,CAAC;CACF;AA1DD,8CA0DC"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { StripeResource } from '../../../../StripeResource.js';
|
|
2
|
+
import { OtherString } from '../../../../shared.js';
|
|
3
|
+
import { RequestOptions, Response } from '../../../../lib.js';
|
|
4
|
+
export declare class QueryRunResource extends StripeResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a query run to execute ad-hoc SQL and returns a `QueryRun` object to track progress and retrieve results.
|
|
7
|
+
*/
|
|
8
|
+
create(params: V2.Data.Reporting.QueryRunCreateParams, options?: RequestOptions): Promise<Response<QueryRun>>;
|
|
9
|
+
/**
|
|
10
|
+
* Fetches the current state and details of a previously created `QueryRun`. If the `QueryRun`
|
|
11
|
+
* has succeeded, the endpoint will provide details for how to retrieve the results.
|
|
12
|
+
*/
|
|
13
|
+
retrieve(id: string, params?: V2.Data.Reporting.QueryRunRetrieveParams, options?: RequestOptions): Promise<Response<QueryRun>>;
|
|
14
|
+
}
|
|
15
|
+
export interface QueryRun {
|
|
16
|
+
/**
|
|
17
|
+
* The unique identifier of the `QueryRun` object.
|
|
18
|
+
*/
|
|
19
|
+
id: string;
|
|
20
|
+
/**
|
|
21
|
+
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
22
|
+
*/
|
|
23
|
+
object: 'v2.data.reporting.query_run';
|
|
24
|
+
/**
|
|
25
|
+
* Time at which the object was created.
|
|
26
|
+
*/
|
|
27
|
+
created: string;
|
|
28
|
+
/**
|
|
29
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
30
|
+
*/
|
|
31
|
+
livemode: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Details how to retrieve the results of a successfully completed `QueryRun`.
|
|
34
|
+
*/
|
|
35
|
+
result?: QueryRun.Result;
|
|
36
|
+
/**
|
|
37
|
+
* The options specified for customizing the output of the `QueryRun`.
|
|
38
|
+
*/
|
|
39
|
+
result_options?: QueryRun.ResultOptions;
|
|
40
|
+
/**
|
|
41
|
+
* The SQL that was executed.
|
|
42
|
+
*/
|
|
43
|
+
sql: string;
|
|
44
|
+
/**
|
|
45
|
+
* The current status of the `QueryRun`.
|
|
46
|
+
*/
|
|
47
|
+
status: QueryRun.Status;
|
|
48
|
+
/**
|
|
49
|
+
* Additional details about the current state of the `QueryRun`. Populated when the `QueryRun`
|
|
50
|
+
* is in the `failed` state, providing more information about why the query failed.
|
|
51
|
+
*/
|
|
52
|
+
status_details: {
|
|
53
|
+
[key: string]: QueryRun.StatusDetails;
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
export declare namespace QueryRun {
|
|
57
|
+
interface Result {
|
|
58
|
+
/**
|
|
59
|
+
* Contains metadata about the file produced by the `ReportRun` or `QueryRun`, including
|
|
60
|
+
* its content type, size, and a URL to download its contents.
|
|
61
|
+
*/
|
|
62
|
+
file?: Result.File;
|
|
63
|
+
/**
|
|
64
|
+
* The type of the `ReportRun` or `QueryRun` result.
|
|
65
|
+
*/
|
|
66
|
+
type: Result.Type;
|
|
67
|
+
}
|
|
68
|
+
interface ResultOptions {
|
|
69
|
+
/**
|
|
70
|
+
* If set, the generated results file will be compressed into a ZIP folder.
|
|
71
|
+
* This is useful for reducing file size and download time for large results.
|
|
72
|
+
*/
|
|
73
|
+
compress_file?: boolean;
|
|
74
|
+
}
|
|
75
|
+
type Status = 'failed' | 'running' | 'succeeded';
|
|
76
|
+
interface StatusDetails {
|
|
77
|
+
/**
|
|
78
|
+
* Error code categorizing the reason the `QueryRun` failed.
|
|
79
|
+
*/
|
|
80
|
+
error_code?: StatusDetails.ErrorCode;
|
|
81
|
+
/**
|
|
82
|
+
* Error message with additional details about the failure.
|
|
83
|
+
*/
|
|
84
|
+
error_message?: string;
|
|
85
|
+
}
|
|
86
|
+
namespace Result {
|
|
87
|
+
interface File {
|
|
88
|
+
/**
|
|
89
|
+
* The content type of the file.
|
|
90
|
+
*/
|
|
91
|
+
content_type: File.ContentType;
|
|
92
|
+
/**
|
|
93
|
+
* A pre-signed URL that allows secure, time-limited access to download the file.
|
|
94
|
+
*/
|
|
95
|
+
download_url: File.DownloadUrl;
|
|
96
|
+
/**
|
|
97
|
+
* The total size of the file in bytes.
|
|
98
|
+
*/
|
|
99
|
+
size: bigint;
|
|
100
|
+
}
|
|
101
|
+
type Type = 'file' | OtherString;
|
|
102
|
+
namespace File {
|
|
103
|
+
type ContentType = 'csv' | 'zip' | OtherString;
|
|
104
|
+
interface DownloadUrl {
|
|
105
|
+
/**
|
|
106
|
+
* The time that the URL expires.
|
|
107
|
+
*/
|
|
108
|
+
expires_at?: string;
|
|
109
|
+
/**
|
|
110
|
+
* The URL that can be used for accessing the file.
|
|
111
|
+
*/
|
|
112
|
+
url: string;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
namespace StatusDetails {
|
|
117
|
+
type ErrorCode = 'file_size_above_limit' | 'internal_error' | OtherString;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export declare namespace V2 {
|
|
121
|
+
namespace Data {
|
|
122
|
+
namespace Reporting {
|
|
123
|
+
interface QueryRunCreateParams {
|
|
124
|
+
/**
|
|
125
|
+
* The SQL to execute.
|
|
126
|
+
*/
|
|
127
|
+
sql: string;
|
|
128
|
+
/**
|
|
129
|
+
* Optional settings to customize the results of the `QueryRun`.
|
|
130
|
+
*/
|
|
131
|
+
result_options?: QueryRunCreateParams.ResultOptions;
|
|
132
|
+
}
|
|
133
|
+
namespace QueryRunCreateParams {
|
|
134
|
+
interface ResultOptions {
|
|
135
|
+
/**
|
|
136
|
+
* If set, the generated results file will be compressed into a ZIP folder.
|
|
137
|
+
* This is useful for reducing file size and download time for large results.
|
|
138
|
+
*/
|
|
139
|
+
compress_file?: boolean;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
export declare namespace V2 {
|
|
146
|
+
namespace Data {
|
|
147
|
+
namespace Reporting {
|
|
148
|
+
interface QueryRunRetrieveParams {
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.QueryRunResource = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../../../StripeResource.js");
|
|
6
|
+
class QueryRunResource extends StripeResource_js_1.StripeResource {
|
|
7
|
+
/**
|
|
8
|
+
* Creates a query run to execute ad-hoc SQL and returns a `QueryRun` object to track progress and retrieve results.
|
|
9
|
+
*/
|
|
10
|
+
create(params, options) {
|
|
11
|
+
return this._makeRequest('POST', '/v2/data/reporting/query_runs', params, options, {
|
|
12
|
+
responseSchema: {
|
|
13
|
+
kind: 'object',
|
|
14
|
+
fields: {
|
|
15
|
+
result: {
|
|
16
|
+
kind: 'object',
|
|
17
|
+
fields: {
|
|
18
|
+
file: { kind: 'object', fields: { size: { kind: 'int64_string' } } },
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Fetches the current state and details of a previously created `QueryRun`. If the `QueryRun`
|
|
27
|
+
* has succeeded, the endpoint will provide details for how to retrieve the results.
|
|
28
|
+
*/
|
|
29
|
+
retrieve(id, params, options) {
|
|
30
|
+
return this._makeRequest('GET', `/v2/data/reporting/query_runs/${encodeURIComponent(id)}`, params, options, {
|
|
31
|
+
responseSchema: {
|
|
32
|
+
kind: 'object',
|
|
33
|
+
fields: {
|
|
34
|
+
result: {
|
|
35
|
+
kind: 'object',
|
|
36
|
+
fields: {
|
|
37
|
+
file: { kind: 'object', fields: { size: { kind: 'int64_string' } } },
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.QueryRunResource = QueryRunResource;
|
|
46
|
+
//# sourceMappingURL=QueryRuns.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"QueryRuns.js","sourceRoot":"","sources":["../../../../../src/resources/V2/Data/Reporting/QueryRuns.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,qEAA6D;AAI7D,MAAa,gBAAiB,SAAQ,kCAAc;IAClD;;OAEG;IACH,MAAM,CACJ,MAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,+BAA+B,EAC/B,MAAM,EACN,OAAO,EACP;YACE,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE;4BACN,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAC,IAAI,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC,EAAC,EAAC;yBAC/D;qBACF;iBACF;aACF;SACF,CACK,CAAC;IACX,CAAC;IACD;;;OAGG;IACH,QAAQ,CACN,EAAU,EACV,MAAiD,EACjD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,iCAAiC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EACzD,MAAM,EACN,OAAO,EACP;YACE,cAAc,EAAE;gBACd,IAAI,EAAE,QAAQ;gBACd,MAAM,EAAE;oBACN,MAAM,EAAE;wBACN,IAAI,EAAE,QAAQ;wBACd,MAAM,EAAE;4BACN,IAAI,EAAE,EAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAC,IAAI,EAAE,EAAC,IAAI,EAAE,cAAc,EAAC,EAAC,EAAC;yBAC/D;qBACF;iBACF;aACF;SACF,CACK,CAAC;IACX,CAAC;CACF;AAzDD,4CAyDC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Stripe } from '../../../../stripe.core.js';
|
|
2
|
+
import { V2 as V2Namespace0, QueryRun, QueryRunResource } from './QueryRuns.js';
|
|
3
|
+
export { QueryRun } from './QueryRuns.js';
|
|
4
|
+
export declare class Reporting {
|
|
5
|
+
private readonly stripe;
|
|
6
|
+
queryRuns: QueryRunResource;
|
|
7
|
+
constructor(stripe: Stripe);
|
|
8
|
+
}
|
|
9
|
+
export declare namespace Reporting {
|
|
10
|
+
export import QueryRunCreateParams = V2Namespace0.Data.Reporting.QueryRunCreateParams;
|
|
11
|
+
export import QueryRunRetrieveParams = V2Namespace0.Data.Reporting.QueryRunRetrieveParams;
|
|
12
|
+
export { QueryRun, QueryRunResource };
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Reporting = void 0;
|
|
5
|
+
const QueryRuns_js_1 = require("./QueryRuns.js");
|
|
6
|
+
class Reporting {
|
|
7
|
+
constructor(stripe) {
|
|
8
|
+
this.stripe = stripe;
|
|
9
|
+
this.queryRuns = new QueryRuns_js_1.QueryRunResource(stripe);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.Reporting = Reporting;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/resources/V2/Data/Reporting/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,iDAA8E;AAI9E,MAAa,SAAS;IAGpB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,SAAS,GAAG,IAAI,+BAAgB,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;CACF;AAND,8BAMC"}
|