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,330 @@
|
|
|
1
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
2
|
+
import { OtherString } from '../../shared.js';
|
|
3
|
+
import { RequestOptions, Response } from '../../lib.js';
|
|
4
|
+
export declare class IssuedTokenResource extends StripeResource {
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves an existing SharedPaymentIssuedToken object
|
|
7
|
+
*/
|
|
8
|
+
retrieve(id: string, params?: SharedPayment.IssuedTokenRetrieveParams, options?: RequestOptions): Promise<Response<IssuedToken>>;
|
|
9
|
+
/**
|
|
10
|
+
* Creates a new SharedPaymentIssuedToken object
|
|
11
|
+
*/
|
|
12
|
+
create(params: SharedPayment.IssuedTokenCreateParams, options?: RequestOptions): Promise<Response<IssuedToken>>;
|
|
13
|
+
/**
|
|
14
|
+
* Revokes a SharedPaymentIssuedToken
|
|
15
|
+
*/
|
|
16
|
+
revoke(id: string, params?: SharedPayment.IssuedTokenRevokeParams, options?: RequestOptions): Promise<Response<IssuedToken>>;
|
|
17
|
+
}
|
|
18
|
+
export interface IssuedToken {
|
|
19
|
+
/**
|
|
20
|
+
* Unique identifier for the object.
|
|
21
|
+
*/
|
|
22
|
+
id: string;
|
|
23
|
+
/**
|
|
24
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
25
|
+
*/
|
|
26
|
+
object: 'shared_payment.issued_token';
|
|
27
|
+
/**
|
|
28
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
29
|
+
*/
|
|
30
|
+
created: number;
|
|
31
|
+
/**
|
|
32
|
+
* Time at which this SharedPaymentIssuedToken was deactivated.
|
|
33
|
+
*/
|
|
34
|
+
deactivated_at: number | null;
|
|
35
|
+
/**
|
|
36
|
+
* The reason why the SharedPaymentIssuedToken has been deactivated.
|
|
37
|
+
*/
|
|
38
|
+
deactivated_reason: IssuedToken.DeactivatedReason | null;
|
|
39
|
+
/**
|
|
40
|
+
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
41
|
+
*/
|
|
42
|
+
livemode: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* If present, describes the action required to make this `SharedPaymentIssuedToken` usable for payments. Present when the token is in `requires_action` state.
|
|
45
|
+
*/
|
|
46
|
+
next_action: IssuedToken.NextAction | null;
|
|
47
|
+
/**
|
|
48
|
+
* ID of an existing PaymentMethod.
|
|
49
|
+
*/
|
|
50
|
+
payment_method: string;
|
|
51
|
+
/**
|
|
52
|
+
* If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
|
53
|
+
*/
|
|
54
|
+
return_url?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Risk details of the SharedPaymentIssuedToken.
|
|
57
|
+
*/
|
|
58
|
+
risk_details?: IssuedToken.RiskDetails | null;
|
|
59
|
+
/**
|
|
60
|
+
* Seller details of the SharedPaymentIssuedToken, including network_id and external_id.
|
|
61
|
+
*/
|
|
62
|
+
seller_details: IssuedToken.SellerDetails | null;
|
|
63
|
+
/**
|
|
64
|
+
* Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a customer later.
|
|
65
|
+
*/
|
|
66
|
+
setup_future_usage: 'on_session' | null;
|
|
67
|
+
/**
|
|
68
|
+
* Metadata about the SharedPaymentIssuedToken.
|
|
69
|
+
*/
|
|
70
|
+
shared_metadata: {
|
|
71
|
+
[key: string]: string;
|
|
72
|
+
} | null;
|
|
73
|
+
/**
|
|
74
|
+
* Status of this SharedPaymentIssuedToken, one of `active`, `requires_action`, or `deactivated`.
|
|
75
|
+
*/
|
|
76
|
+
status: IssuedToken.Status | null;
|
|
77
|
+
/**
|
|
78
|
+
* Usage details of the SharedPaymentIssuedToken
|
|
79
|
+
*/
|
|
80
|
+
usage_details: IssuedToken.UsageDetails | null;
|
|
81
|
+
/**
|
|
82
|
+
* Usage limits of the SharedPaymentIssuedToken.
|
|
83
|
+
*/
|
|
84
|
+
usage_limits: IssuedToken.UsageLimits | null;
|
|
85
|
+
/**
|
|
86
|
+
* Set to true when using Stripe.js, iOS, or Android client-side SDKs to handle next actions.
|
|
87
|
+
*/
|
|
88
|
+
use_stripe_sdk: boolean | null;
|
|
89
|
+
}
|
|
90
|
+
export declare namespace IssuedToken {
|
|
91
|
+
type DeactivatedReason = 'consumed' | 'expired' | 'resolved' | 'revoked' | OtherString;
|
|
92
|
+
interface NextAction {
|
|
93
|
+
/**
|
|
94
|
+
* Contains details for handling the next action by redirecting the customer. Present when `next_action.type` is `redirect_to_url`.
|
|
95
|
+
*/
|
|
96
|
+
redirect_to_url: NextAction.RedirectToUrl | null;
|
|
97
|
+
/**
|
|
98
|
+
* Specifies the type of next action required. Determines which child attribute contains action details.
|
|
99
|
+
*/
|
|
100
|
+
type: NextAction.Type;
|
|
101
|
+
/**
|
|
102
|
+
* Contains details for handling the next action using Stripe.js, iOS, or Android SDKs. Present when `next_action.type` is `use_stripe_sdk`.
|
|
103
|
+
*/
|
|
104
|
+
use_stripe_sdk: NextAction.UseStripeSdk | null;
|
|
105
|
+
}
|
|
106
|
+
interface RiskDetails {
|
|
107
|
+
/**
|
|
108
|
+
* Risk insights for this token, including scores and recommended actions for each risk type.
|
|
109
|
+
*/
|
|
110
|
+
insights: RiskDetails.Insights;
|
|
111
|
+
}
|
|
112
|
+
interface SellerDetails {
|
|
113
|
+
/**
|
|
114
|
+
* A unique id within a network that identifies a logical seller. This should usually be the merchant id on the seller platform.
|
|
115
|
+
*/
|
|
116
|
+
external_id: string;
|
|
117
|
+
/**
|
|
118
|
+
* The unique and logical string that identifies the seller platform that this SharedToken is being created for.
|
|
119
|
+
*/
|
|
120
|
+
network_business_profile: string;
|
|
121
|
+
}
|
|
122
|
+
type Status = 'active' | 'deactivated' | 'requires_action' | OtherString;
|
|
123
|
+
interface UsageDetails {
|
|
124
|
+
/**
|
|
125
|
+
* The total amount captured using this SharedPaymentToken.
|
|
126
|
+
*/
|
|
127
|
+
amount_captured: UsageDetails.AmountCaptured | null;
|
|
128
|
+
}
|
|
129
|
+
interface UsageLimits {
|
|
130
|
+
/**
|
|
131
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
132
|
+
*/
|
|
133
|
+
currency: string;
|
|
134
|
+
/**
|
|
135
|
+
* Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
|
|
136
|
+
*/
|
|
137
|
+
expires_at: number | null;
|
|
138
|
+
/**
|
|
139
|
+
* Max amount that can be captured using this SharedPaymentToken.
|
|
140
|
+
*/
|
|
141
|
+
max_amount: number;
|
|
142
|
+
}
|
|
143
|
+
namespace NextAction {
|
|
144
|
+
interface RedirectToUrl {
|
|
145
|
+
/**
|
|
146
|
+
* If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
|
147
|
+
*/
|
|
148
|
+
return_url: string;
|
|
149
|
+
/**
|
|
150
|
+
* The URL you must redirect your customer to in order to authenticate the payment.
|
|
151
|
+
*/
|
|
152
|
+
url: string;
|
|
153
|
+
}
|
|
154
|
+
type Type = 'redirect_to_url' | 'use_stripe_sdk' | OtherString;
|
|
155
|
+
interface UseStripeSdk {
|
|
156
|
+
/**
|
|
157
|
+
* A base64-encoded string used by Stripe.js and the iOS and Android client SDKs to handle the next action. Its content is subject to change.
|
|
158
|
+
*/
|
|
159
|
+
value: string;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
namespace RiskDetails {
|
|
163
|
+
interface Insights {
|
|
164
|
+
/**
|
|
165
|
+
* Bot risk insight.
|
|
166
|
+
*/
|
|
167
|
+
bot?: Insights.Bot | null;
|
|
168
|
+
/**
|
|
169
|
+
* Card issuer decline risk insight.
|
|
170
|
+
*/
|
|
171
|
+
card_issuer_decline?: Insights.CardIssuerDecline | null;
|
|
172
|
+
/**
|
|
173
|
+
* Card testing risk insight.
|
|
174
|
+
*/
|
|
175
|
+
card_testing?: Insights.CardTesting | null;
|
|
176
|
+
/**
|
|
177
|
+
* Fraudulent dispute risk insight.
|
|
178
|
+
*/
|
|
179
|
+
fraudulent_dispute: Insights.FraudulentDispute | null;
|
|
180
|
+
/**
|
|
181
|
+
* Stolen card risk insight.
|
|
182
|
+
*/
|
|
183
|
+
stolen_card?: Insights.StolenCard | null;
|
|
184
|
+
}
|
|
185
|
+
namespace Insights {
|
|
186
|
+
interface Bot {
|
|
187
|
+
/**
|
|
188
|
+
* Recommended action for this insight.
|
|
189
|
+
*/
|
|
190
|
+
recommended_action: string;
|
|
191
|
+
/**
|
|
192
|
+
* Risk score for this insight.
|
|
193
|
+
*/
|
|
194
|
+
score: number;
|
|
195
|
+
}
|
|
196
|
+
interface CardIssuerDecline {
|
|
197
|
+
/**
|
|
198
|
+
* Recommended action for this insight.
|
|
199
|
+
*/
|
|
200
|
+
recommended_action: string;
|
|
201
|
+
/**
|
|
202
|
+
* Risk score for this insight.
|
|
203
|
+
*/
|
|
204
|
+
score: number;
|
|
205
|
+
}
|
|
206
|
+
interface CardTesting {
|
|
207
|
+
/**
|
|
208
|
+
* Recommended action for this insight.
|
|
209
|
+
*/
|
|
210
|
+
recommended_action: string;
|
|
211
|
+
/**
|
|
212
|
+
* Risk score for this insight.
|
|
213
|
+
*/
|
|
214
|
+
score: number;
|
|
215
|
+
}
|
|
216
|
+
interface FraudulentDispute {
|
|
217
|
+
/**
|
|
218
|
+
* Recommended action for this insight.
|
|
219
|
+
*/
|
|
220
|
+
recommended_action: string;
|
|
221
|
+
/**
|
|
222
|
+
* Risk score for this insight.
|
|
223
|
+
*/
|
|
224
|
+
score: number;
|
|
225
|
+
}
|
|
226
|
+
interface StolenCard {
|
|
227
|
+
/**
|
|
228
|
+
* Recommended action for this insight.
|
|
229
|
+
*/
|
|
230
|
+
recommended_action: string;
|
|
231
|
+
/**
|
|
232
|
+
* Risk score for this insight.
|
|
233
|
+
*/
|
|
234
|
+
score: number;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
namespace UsageDetails {
|
|
239
|
+
interface AmountCaptured {
|
|
240
|
+
/**
|
|
241
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
242
|
+
*/
|
|
243
|
+
currency: string;
|
|
244
|
+
/**
|
|
245
|
+
* Integer value of the amount in the smallest currency unit.
|
|
246
|
+
*/
|
|
247
|
+
value: number;
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
export declare namespace SharedPayment {
|
|
252
|
+
interface IssuedTokenCreateParams {
|
|
253
|
+
/**
|
|
254
|
+
* The PaymentMethod that is going to be shared by the SharedPaymentIssuedToken.
|
|
255
|
+
*/
|
|
256
|
+
payment_method: string;
|
|
257
|
+
/**
|
|
258
|
+
* Seller details of the SharedPaymentIssuedToken, including network_id and external_id.
|
|
259
|
+
*/
|
|
260
|
+
seller_details: IssuedTokenCreateParams.SellerDetails;
|
|
261
|
+
/**
|
|
262
|
+
* Limits on how this SharedPaymentToken can be used.
|
|
263
|
+
*/
|
|
264
|
+
usage_limits: IssuedTokenCreateParams.UsageLimits;
|
|
265
|
+
/**
|
|
266
|
+
* Specifies which fields in the response should be expanded.
|
|
267
|
+
*/
|
|
268
|
+
expand?: Array<string>;
|
|
269
|
+
/**
|
|
270
|
+
* If the customer does not exit their browser while authenticating, they will be redirected to this specified URL after completion.
|
|
271
|
+
*/
|
|
272
|
+
return_url?: string;
|
|
273
|
+
/**
|
|
274
|
+
* Indicates that you intend to save the PaymentMethod of this SharedPaymentToken to a customer later.
|
|
275
|
+
*/
|
|
276
|
+
setup_future_usage?: 'on_session';
|
|
277
|
+
/**
|
|
278
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to the SharedPaymentIssuedToken. The values here are visible by default with the party that you share this SharedPaymentIssuedToken with.
|
|
279
|
+
*/
|
|
280
|
+
shared_metadata?: {
|
|
281
|
+
[key: string]: string;
|
|
282
|
+
};
|
|
283
|
+
/**
|
|
284
|
+
* Set to true when using Stripe.js, iOS, or Android client-side SDKs to handle next actions.
|
|
285
|
+
*/
|
|
286
|
+
use_stripe_sdk?: boolean;
|
|
287
|
+
}
|
|
288
|
+
namespace IssuedTokenCreateParams {
|
|
289
|
+
interface SellerDetails {
|
|
290
|
+
/**
|
|
291
|
+
* A unique id within a network that identifies a logical seller, usually this would be the unique merchant id.
|
|
292
|
+
*/
|
|
293
|
+
external_id?: string;
|
|
294
|
+
/**
|
|
295
|
+
* A string that identifies the network that this SharedToken is being created for.
|
|
296
|
+
*/
|
|
297
|
+
network_business_profile?: string;
|
|
298
|
+
}
|
|
299
|
+
interface UsageLimits {
|
|
300
|
+
/**
|
|
301
|
+
* Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
|
|
302
|
+
*/
|
|
303
|
+
currency: string;
|
|
304
|
+
/**
|
|
305
|
+
* Time at which this SharedPaymentToken expires and can no longer be used to confirm a PaymentIntent.
|
|
306
|
+
*/
|
|
307
|
+
expires_at?: number;
|
|
308
|
+
/**
|
|
309
|
+
* Max amount that can be captured using this SharedPaymentToken
|
|
310
|
+
*/
|
|
311
|
+
max_amount: number;
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
export declare namespace SharedPayment {
|
|
316
|
+
interface IssuedTokenRetrieveParams {
|
|
317
|
+
/**
|
|
318
|
+
* Specifies which fields in the response should be expanded.
|
|
319
|
+
*/
|
|
320
|
+
expand?: Array<string>;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
export declare namespace SharedPayment {
|
|
324
|
+
interface IssuedTokenRevokeParams {
|
|
325
|
+
/**
|
|
326
|
+
* Specifies which fields in the response should be expanded.
|
|
327
|
+
*/
|
|
328
|
+
expand?: Array<string>;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.IssuedTokenResource = void 0;
|
|
5
|
+
const StripeResource_js_1 = require("../../StripeResource.js");
|
|
6
|
+
class IssuedTokenResource extends StripeResource_js_1.StripeResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves an existing SharedPaymentIssuedToken object
|
|
9
|
+
*/
|
|
10
|
+
retrieve(id, params, options) {
|
|
11
|
+
return this._makeRequest('GET', `/v1/shared_payment/issued_tokens/${encodeURIComponent(id)}`, params, options);
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Creates a new SharedPaymentIssuedToken object
|
|
15
|
+
*/
|
|
16
|
+
create(params, options) {
|
|
17
|
+
return this._makeRequest('POST', '/v1/shared_payment/issued_tokens', params, options);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Revokes a SharedPaymentIssuedToken
|
|
21
|
+
*/
|
|
22
|
+
revoke(id, params, options) {
|
|
23
|
+
return this._makeRequest('POST', `/v1/shared_payment/issued_tokens/${encodeURIComponent(id)}/revoke`, params, options);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
exports.IssuedTokenResource = IssuedTokenResource;
|
|
27
|
+
//# sourceMappingURL=IssuedTokens.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IssuedTokens.js","sourceRoot":"","sources":["../../../src/resources/SharedPayment/IssuedTokens.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAEvC,+DAAuD;AAIvD,MAAa,mBAAoB,SAAQ,kCAAc;IACrD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAAgD,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,oCAAoC,kBAAkB,CAAC,EAAE,CAAC,EAAE,EAC5D,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,kCAAkC,EAClC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,MAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,oCAAoC,kBAAkB,CAAC,EAAE,CAAC,SAAS,EACnE,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF;AA7CD,kDA6CC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Stripe } from '../../stripe.core.js';
|
|
2
|
+
import { SharedPayment as SharedPaymentNamespace0, GrantedToken, GrantedTokenResource } from './GrantedTokens.js';
|
|
3
|
+
import { SharedPayment as SharedPaymentNamespace1, IssuedToken, IssuedTokenResource } from './IssuedTokens.js';
|
|
4
|
+
export { GrantedToken } from './GrantedTokens.js';
|
|
5
|
+
export { IssuedToken } from './IssuedTokens.js';
|
|
6
|
+
export declare class SharedPayment {
|
|
7
|
+
private readonly stripe;
|
|
8
|
+
grantedTokens: GrantedTokenResource;
|
|
9
|
+
issuedTokens: IssuedTokenResource;
|
|
10
|
+
constructor(stripe: Stripe);
|
|
11
|
+
}
|
|
12
|
+
export declare namespace SharedPayment {
|
|
13
|
+
export import GrantedTokenRetrieveParams = SharedPaymentNamespace0.GrantedTokenRetrieveParams;
|
|
14
|
+
export { GrantedToken, GrantedTokenResource };
|
|
15
|
+
export import IssuedTokenRetrieveParams = SharedPaymentNamespace1.IssuedTokenRetrieveParams;
|
|
16
|
+
export import IssuedTokenCreateParams = SharedPaymentNamespace1.IssuedTokenCreateParams;
|
|
17
|
+
export import IssuedTokenRevokeParams = SharedPaymentNamespace1.IssuedTokenRevokeParams;
|
|
18
|
+
export { IssuedToken, IssuedTokenResource };
|
|
19
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.SharedPayment = void 0;
|
|
5
|
+
const GrantedTokens_js_1 = require("./GrantedTokens.js");
|
|
6
|
+
const IssuedTokens_js_1 = require("./IssuedTokens.js");
|
|
7
|
+
class SharedPayment {
|
|
8
|
+
constructor(stripe) {
|
|
9
|
+
this.stripe = stripe;
|
|
10
|
+
this.grantedTokens = new GrantedTokens_js_1.GrantedTokenResource(stripe);
|
|
11
|
+
this.issuedTokens = new IssuedTokens_js_1.IssuedTokenResource(stripe);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.SharedPayment = SharedPayment;
|
|
15
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/SharedPayment/index.ts"],"names":[],"mappings":";AAAA,uCAAuC;;;AAGvC,yDAI4B;AAC5B,uDAI2B;AAK3B,MAAa,aAAa;IAIxB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,aAAa,GAAG,IAAI,uCAAoB,CAAC,MAAM,CAAC,CAAC;QACtD,IAAI,CAAC,YAAY,GAAG,IAAI,qCAAmB,CAAC,MAAM,CAAC,CAAC;IACtD,CAAC;CACF;AARD,sCAQC"}
|
|
@@ -90,7 +90,12 @@ export interface Source {
|
|
|
90
90
|
*/
|
|
91
91
|
owner: Source.Owner | null;
|
|
92
92
|
p24?: Source.P24;
|
|
93
|
+
paypal?: Source.Paypal;
|
|
93
94
|
receiver?: Source.Receiver;
|
|
95
|
+
/**
|
|
96
|
+
* Redaction status of this source. If not null, this source is associated to a redaction job.
|
|
97
|
+
*/
|
|
98
|
+
redaction?: Source.Redaction | null;
|
|
94
99
|
redirect?: Source.Redirect;
|
|
95
100
|
sepa_credit_transfer?: Source.SepaCreditTransfer;
|
|
96
101
|
sepa_debit?: Source.SepaDebit;
|
|
@@ -169,6 +174,7 @@ export declare namespace Source {
|
|
|
169
174
|
address_line1_check?: string | null;
|
|
170
175
|
address_zip_check?: string | null;
|
|
171
176
|
brand?: string | null;
|
|
177
|
+
brand_product?: string | null;
|
|
172
178
|
country?: string | null;
|
|
173
179
|
cvc_check?: string | null;
|
|
174
180
|
description?: string;
|
|
@@ -190,6 +196,7 @@ export declare namespace Source {
|
|
|
190
196
|
authorization_code?: string | null;
|
|
191
197
|
authorization_response_code?: string;
|
|
192
198
|
brand?: string | null;
|
|
199
|
+
brand_product?: string | null;
|
|
193
200
|
country?: string | null;
|
|
194
201
|
cvm_type?: string;
|
|
195
202
|
data_type?: string | null;
|
|
@@ -315,6 +322,17 @@ export declare namespace Source {
|
|
|
315
322
|
interface P24 {
|
|
316
323
|
reference?: string | null;
|
|
317
324
|
}
|
|
325
|
+
interface Paypal {
|
|
326
|
+
billing_agreement?: string | null;
|
|
327
|
+
fingerprint?: string | null;
|
|
328
|
+
payer_id?: string | null;
|
|
329
|
+
reference_id?: string;
|
|
330
|
+
reference_transaction_amount?: string;
|
|
331
|
+
reference_transaction_charged?: boolean;
|
|
332
|
+
statement_descriptor?: string | null;
|
|
333
|
+
transaction_id?: string;
|
|
334
|
+
verified_email?: string | null;
|
|
335
|
+
}
|
|
318
336
|
interface Receiver {
|
|
319
337
|
/**
|
|
320
338
|
* The address of the receiver source. This is the value that should be communicated to the customer to send their funds to.
|
|
@@ -341,6 +359,12 @@ export declare namespace Source {
|
|
|
341
359
|
*/
|
|
342
360
|
refund_attributes_status: string;
|
|
343
361
|
}
|
|
362
|
+
interface Redaction {
|
|
363
|
+
/**
|
|
364
|
+
* Indicates whether this object and its related objects have been redacted or not.
|
|
365
|
+
*/
|
|
366
|
+
status: Redaction.Status;
|
|
367
|
+
}
|
|
344
368
|
interface Redirect {
|
|
345
369
|
/**
|
|
346
370
|
* The failure reason for the redirect, either `user_abort` (the customer aborted or dropped out of the redirect flow), `declined` (the authentication failed or the transaction was declined), or `processing_error` (the redirect failed due to a technical error). Present only if the redirect status is `failed`.
|
|
@@ -414,6 +438,7 @@ export declare namespace Source {
|
|
|
414
438
|
address_zip_check?: string | null;
|
|
415
439
|
authenticated?: boolean | null;
|
|
416
440
|
brand?: string | null;
|
|
441
|
+
brand_product?: string | null;
|
|
417
442
|
card?: string | null;
|
|
418
443
|
country?: string | null;
|
|
419
444
|
customer?: string | null;
|
|
@@ -431,12 +456,15 @@ export declare namespace Source {
|
|
|
431
456
|
three_d_secure?: string;
|
|
432
457
|
tokenization_method?: string | null;
|
|
433
458
|
}
|
|
434
|
-
type Type = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'alipay' | 'au_becs_debit' | 'bancontact' | 'card' | 'card_present' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'three_d_secure' | 'wechat' | OtherString;
|
|
459
|
+
type Type = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'alipay' | 'au_becs_debit' | 'bancontact' | 'card' | 'card_present' | 'eps' | 'giropay' | 'ideal' | 'klarna' | 'multibanco' | 'p24' | 'paypal' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'three_d_secure' | 'wechat' | OtherString;
|
|
435
460
|
interface Wechat {
|
|
436
461
|
prepay_id?: string;
|
|
437
462
|
qr_code_url?: string | null;
|
|
438
463
|
statement_descriptor?: string;
|
|
439
464
|
}
|
|
465
|
+
namespace Redaction {
|
|
466
|
+
type Status = 'processing' | 'redacted' | 'validated' | OtherString;
|
|
467
|
+
}
|
|
440
468
|
namespace SourceOrder {
|
|
441
469
|
interface Item {
|
|
442
470
|
/**
|
|
@@ -104,6 +104,10 @@ export interface SubscriptionItem {
|
|
|
104
104
|
* The tax rates which apply to this `subscription_item`. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
|
|
105
105
|
*/
|
|
106
106
|
tax_rates: Array<TaxRate> | null;
|
|
107
|
+
/**
|
|
108
|
+
* Options that configure the trial on the subscription item.
|
|
109
|
+
*/
|
|
110
|
+
trial?: SubscriptionItem.Trial | null;
|
|
107
111
|
}
|
|
108
112
|
export interface DeletedSubscriptionItem {
|
|
109
113
|
/**
|
|
@@ -140,6 +144,19 @@ export declare namespace SubscriptionItem {
|
|
|
140
144
|
*/
|
|
141
145
|
trial_offer: string;
|
|
142
146
|
}
|
|
147
|
+
interface Trial {
|
|
148
|
+
/**
|
|
149
|
+
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
|
150
|
+
*/
|
|
151
|
+
converts_to?: Array<string> | null;
|
|
152
|
+
/**
|
|
153
|
+
* Determines the type of trial for this item.
|
|
154
|
+
*/
|
|
155
|
+
type: Trial.Type;
|
|
156
|
+
}
|
|
157
|
+
namespace Trial {
|
|
158
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
159
|
+
}
|
|
143
160
|
}
|
|
144
161
|
export interface SubscriptionItemCreateParams {
|
|
145
162
|
/**
|
|
@@ -198,6 +215,10 @@ export interface SubscriptionItemCreateParams {
|
|
|
198
215
|
* A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
199
216
|
*/
|
|
200
217
|
tax_rates?: Emptyable<Array<string>>;
|
|
218
|
+
/**
|
|
219
|
+
* Options that configure the trial on the subscription item.
|
|
220
|
+
*/
|
|
221
|
+
trial?: SubscriptionItemCreateParams.Trial;
|
|
201
222
|
}
|
|
202
223
|
export declare namespace SubscriptionItemCreateParams {
|
|
203
224
|
interface BillingThresholds {
|
|
@@ -207,6 +228,10 @@ export declare namespace SubscriptionItemCreateParams {
|
|
|
207
228
|
usage_gte: number;
|
|
208
229
|
}
|
|
209
230
|
interface CurrentTrial {
|
|
231
|
+
/**
|
|
232
|
+
* Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
233
|
+
*/
|
|
234
|
+
trial_end?: number;
|
|
210
235
|
/**
|
|
211
236
|
* The ID of the trial offer to apply to the subscription item.
|
|
212
237
|
*/
|
|
@@ -221,6 +246,10 @@ export declare namespace SubscriptionItemCreateParams {
|
|
|
221
246
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
222
247
|
*/
|
|
223
248
|
discount?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Details to determine how long the discount should be applied for.
|
|
251
|
+
*/
|
|
252
|
+
discount_end?: Discount.DiscountEnd;
|
|
224
253
|
/**
|
|
225
254
|
* ID of the promotion code to create a new discount for.
|
|
226
255
|
*/
|
|
@@ -254,6 +283,48 @@ export declare namespace SubscriptionItemCreateParams {
|
|
|
254
283
|
unit_amount_decimal?: Decimal;
|
|
255
284
|
}
|
|
256
285
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
286
|
+
interface Trial {
|
|
287
|
+
/**
|
|
288
|
+
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial. Currently only supports at most 1 price ID.
|
|
289
|
+
*/
|
|
290
|
+
converts_to?: Array<string>;
|
|
291
|
+
/**
|
|
292
|
+
* Determines the type of trial for this item.
|
|
293
|
+
*/
|
|
294
|
+
type: Trial.Type;
|
|
295
|
+
}
|
|
296
|
+
namespace Discount {
|
|
297
|
+
interface DiscountEnd {
|
|
298
|
+
/**
|
|
299
|
+
* Time span for the redeemed discount.
|
|
300
|
+
*/
|
|
301
|
+
duration?: DiscountEnd.Duration;
|
|
302
|
+
/**
|
|
303
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
304
|
+
*/
|
|
305
|
+
timestamp?: number;
|
|
306
|
+
/**
|
|
307
|
+
* The type of calculation made to determine when the discount ends.
|
|
308
|
+
*/
|
|
309
|
+
type: DiscountEnd.Type;
|
|
310
|
+
}
|
|
311
|
+
namespace DiscountEnd {
|
|
312
|
+
interface Duration {
|
|
313
|
+
/**
|
|
314
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
315
|
+
*/
|
|
316
|
+
interval: Duration.Interval;
|
|
317
|
+
/**
|
|
318
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
319
|
+
*/
|
|
320
|
+
interval_count: number;
|
|
321
|
+
}
|
|
322
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
323
|
+
namespace Duration {
|
|
324
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
257
328
|
namespace PriceData {
|
|
258
329
|
interface Recurring {
|
|
259
330
|
/**
|
|
@@ -270,6 +341,9 @@ export declare namespace SubscriptionItemCreateParams {
|
|
|
270
341
|
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
271
342
|
}
|
|
272
343
|
}
|
|
344
|
+
namespace Trial {
|
|
345
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
346
|
+
}
|
|
273
347
|
}
|
|
274
348
|
export interface SubscriptionItemRetrieveParams {
|
|
275
349
|
/**
|
|
@@ -343,6 +417,10 @@ export declare namespace SubscriptionItemUpdateParams {
|
|
|
343
417
|
usage_gte: number;
|
|
344
418
|
}
|
|
345
419
|
interface CurrentTrial {
|
|
420
|
+
/**
|
|
421
|
+
* Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
422
|
+
*/
|
|
423
|
+
trial_end?: number;
|
|
346
424
|
/**
|
|
347
425
|
* The ID of the trial offer to apply to the subscription item.
|
|
348
426
|
*/
|
|
@@ -357,6 +435,10 @@ export declare namespace SubscriptionItemUpdateParams {
|
|
|
357
435
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
358
436
|
*/
|
|
359
437
|
discount?: string;
|
|
438
|
+
/**
|
|
439
|
+
* Details to determine how long the discount should be applied for.
|
|
440
|
+
*/
|
|
441
|
+
discount_end?: Discount.DiscountEnd;
|
|
360
442
|
/**
|
|
361
443
|
* ID of the promotion code to create a new discount for.
|
|
362
444
|
*/
|
|
@@ -390,6 +472,38 @@ export declare namespace SubscriptionItemUpdateParams {
|
|
|
390
472
|
unit_amount_decimal?: Decimal;
|
|
391
473
|
}
|
|
392
474
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
475
|
+
namespace Discount {
|
|
476
|
+
interface DiscountEnd {
|
|
477
|
+
/**
|
|
478
|
+
* Time span for the redeemed discount.
|
|
479
|
+
*/
|
|
480
|
+
duration?: DiscountEnd.Duration;
|
|
481
|
+
/**
|
|
482
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
483
|
+
*/
|
|
484
|
+
timestamp?: number;
|
|
485
|
+
/**
|
|
486
|
+
* The type of calculation made to determine when the discount ends.
|
|
487
|
+
*/
|
|
488
|
+
type: DiscountEnd.Type;
|
|
489
|
+
}
|
|
490
|
+
namespace DiscountEnd {
|
|
491
|
+
interface Duration {
|
|
492
|
+
/**
|
|
493
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
494
|
+
*/
|
|
495
|
+
interval: Duration.Interval;
|
|
496
|
+
/**
|
|
497
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
498
|
+
*/
|
|
499
|
+
interval_count: number;
|
|
500
|
+
}
|
|
501
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
502
|
+
namespace Duration {
|
|
503
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
393
507
|
namespace PriceData {
|
|
394
508
|
interface Recurring {
|
|
395
509
|
/**
|