stripe 22.2.0 → 22.3.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 +1753 -76
- package/README.md +57 -65
- package/VERSION +1 -1
- package/cjs/Error.d.ts +50 -0
- package/cjs/Error.js +125 -1
- package/cjs/Error.js.map +1 -1
- package/cjs/RequestSender.d.ts +0 -1
- package/cjs/RequestSender.js +0 -8
- package/cjs/RequestSender.js.map +1 -1
- package/cjs/StripeEventNotificationHandler.d.ts +19 -0
- package/cjs/StripeEventNotificationHandler.js +148 -0
- package/cjs/StripeEventNotificationHandler.js.map +1 -0
- package/cjs/Types.d.ts +4 -2
- package/cjs/Types.js.map +1 -1
- package/cjs/apiVersion.d.ts +1 -2
- package/cjs/apiVersion.js +2 -3
- 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 +262 -0
- package/cjs/resources/AccountSessions.js.map +1 -1
- package/cjs/resources/Accounts.d.ts +827 -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/BankAccounts.d.ts +2 -2
- package/cjs/resources/Billing/AlertTriggereds.d.ts +2 -1
- package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +84 -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 +191 -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 +98 -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 +143 -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 +4 -0
- package/cjs/resources/Charges.d.ts +3064 -70
- package/cjs/resources/Checkout/Sessions.d.ts +390 -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 +7 -1
- package/cjs/resources/Customers.js +14 -0
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/Disputes.d.ts +29 -0
- package/cjs/resources/Events.d.ts +547 -2
- 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 +74 -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 +87 -0
- package/cjs/resources/FinancialConnections/Authorizations.js +15 -0
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -0
- package/cjs/resources/FinancialConnections/Institutions.d.ts +101 -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 +155 -7
- package/cjs/resources/FinancialConnections/index.d.ts +21 -6
- package/cjs/resources/FinancialConnections/index.js +4 -0
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/FxQuotes.d.ts +212 -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 +1337 -19
- package/cjs/resources/Invoices.js +41 -0
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Cardholders.d.ts +2 -1
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +640 -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 +95 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -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 +85 -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 +9 -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 +33 -1
- 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 +4693 -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 +13239 -2321
- package/cjs/resources/PaymentIntents.js +27 -0
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +19 -3
- package/cjs/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/cjs/resources/PaymentMethods.d.ts +151 -3
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentRecords.d.ts +82 -0
- package/cjs/resources/Persons.d.ts +2 -2
- package/cjs/resources/Plans.d.ts +16 -0
- package/cjs/resources/Prices.d.ts +52 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +37 -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 +229 -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 +127 -0
- package/cjs/resources/ProductCatalog/TrialOffers.js +15 -0
- package/cjs/resources/ProductCatalog/TrialOffers.js.map +1 -0
- package/cjs/resources/ProductCatalog/index.d.ts +12 -0
- package/cjs/resources/ProductCatalog/index.js +13 -0
- package/cjs/resources/ProductCatalog/index.js.map +1 -0
- package/cjs/resources/Products.d.ts +42 -0
- 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 +1120 -0
- package/cjs/resources/QuotePreviewInvoices.js +4 -0
- package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +737 -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/PaymentEvaluations.d.ts +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 +16 -0
- package/cjs/resources/Reserve/Plans.js +11 -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 +14 -3
- package/cjs/resources/Reserve/index.js +10 -2
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/SetupAttempts.d.ts +26 -1
- package/cjs/resources/SetupIntents.d.ts +330 -11
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +1095 -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 +308 -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 +16 -1
- package/cjs/resources/SubscriptionItems.d.ts +143 -0
- package/cjs/resources/SubscriptionSchedules.d.ts +1152 -0
- package/cjs/resources/SubscriptionSchedules.js +6 -0
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +571 -6
- package/cjs/resources/Subscriptions.js +145 -0
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/CalculationLineItems.d.ts +6 -2
- package/cjs/resources/Tax/Calculations.d.ts +7 -3
- package/cjs/resources/Tax/Forms.d.ts +230 -0
- package/cjs/resources/Tax/Forms.js +32 -0
- package/cjs/resources/Tax/Forms.js.map +1 -0
- package/cjs/resources/Tax/Locations.d.ts +108 -0
- package/cjs/resources/Tax/Locations.js +33 -0
- package/cjs/resources/Tax/Locations.js.map +1 -0
- package/cjs/resources/Tax/Registrations.d.ts +138 -2
- package/cjs/resources/Tax/Transactions.d.ts +2 -2
- package/cjs/resources/Tax/index.d.ts +27 -13
- package/cjs/resources/Tax/index.js +4 -0
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/TaxCodes.d.ts +15 -0
- package/cjs/resources/Terminal/Configurations.d.ts +27 -0
- package/cjs/resources/Terminal/ReaderCollectedData.d.ts +52 -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 +78 -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/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 +8 -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 +75 -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 +284 -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 +951 -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 +240 -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 +166 -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/AccountLinks.d.ts +4 -4
- package/cjs/resources/V2/Core/AccountTokens.d.ts +10 -0
- package/cjs/resources/V2/Core/Accounts.d.ts +1177 -167
- package/cjs/resources/V2/Core/BatchJobs.d.ts +373 -0
- package/cjs/resources/V2/Core/BatchJobs.js +225 -0
- package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
- package/cjs/resources/V2/Core/Events.d.ts +1123 -4
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +285 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +54 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +254 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +62 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/index.d.ts +28 -0
- package/cjs/resources/V2/Core/Vault/index.js +15 -0
- package/cjs/resources/V2/Core/Vault/index.js.map +1 -0
- package/cjs/resources/V2/Core/index.d.ts +19 -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/Reporting/QueryRuns.d.ts +156 -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/index.d.ts +10 -0
- package/cjs/resources/V2/Data/index.js +13 -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 +166 -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 +123 -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/FinancialAddressCreditSimulations.d.ts +14 -0
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js +4 -0
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +4 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +214 -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 +135 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +23 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +244 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +44 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +215 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +31 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +254 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +30 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +212 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +22 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +388 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +41 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +300 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +49 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +330 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +39 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +243 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +44 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +96 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +17 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +295 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +23 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +161 -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/TransactionEntries.d.ts +165 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +23 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +196 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +23 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/index.d.ts +104 -0
- package/cjs/resources/V2/MoneyManagement/index.js +39 -0
- package/cjs/resources/V2/MoneyManagement/index.js.map +1 -0
- package/cjs/resources/V2/Network/BusinessProfiles.d.ts +96 -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 +147 -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/TestHelpers/FinancialAddresses.d.ts +44 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +23 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
- package/cjs/resources/V2/TestHelpers/index.d.ts +8 -0
- package/cjs/resources/V2/TestHelpers/index.js +13 -0
- package/cjs/resources/V2/TestHelpers/index.js.map +1 -0
- package/cjs/resources/V2/index.d.ts +27 -0
- package/cjs/resources/V2/index.js +14 -0
- 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 +146 -10
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.core.d.ts +61 -24
- package/cjs/stripe.core.js +55 -31
- package/cjs/stripe.core.js.map +1 -1
- package/esm/Error.d.ts +50 -0
- package/esm/Error.js +109 -0
- package/esm/Error.js.map +1 -1
- package/esm/RequestSender.d.ts +0 -1
- package/esm/RequestSender.js +0 -8
- package/esm/RequestSender.js.map +1 -1
- package/esm/StripeEventNotificationHandler.d.ts +19 -0
- package/esm/StripeEventNotificationHandler.js +144 -0
- package/esm/StripeEventNotificationHandler.js.map +1 -0
- package/esm/Types.d.ts +4 -2
- package/esm/Types.js.map +1 -1
- package/esm/apiVersion.d.ts +1 -2
- package/esm/apiVersion.js +1 -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 +262 -0
- package/esm/resources/AccountSessions.js.map +1 -1
- package/esm/resources/Accounts.d.ts +827 -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/BankAccounts.d.ts +2 -2
- package/esm/resources/Billing/AlertTriggereds.d.ts +2 -1
- package/esm/resources/Billing/Analytics/MeterUsage.d.ts +84 -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 +191 -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 +98 -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 +143 -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 +4 -0
- package/esm/resources/Charges.d.ts +3064 -70
- package/esm/resources/Checkout/Sessions.d.ts +390 -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 +7 -1
- package/esm/resources/Customers.js +14 -0
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/Disputes.d.ts +29 -0
- package/esm/resources/Events.d.ts +547 -2
- 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 +74 -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 +87 -0
- package/esm/resources/FinancialConnections/Authorizations.js +11 -0
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -0
- package/esm/resources/FinancialConnections/Institutions.d.ts +101 -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 +155 -7
- package/esm/resources/FinancialConnections/index.d.ts +21 -6
- package/esm/resources/FinancialConnections/index.js +4 -0
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/FxQuotes.d.ts +212 -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 +1337 -19
- package/esm/resources/Invoices.js +41 -0
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Cardholders.d.ts +2 -1
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +640 -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 +95 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -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 +85 -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 +9 -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 +33 -1
- 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 +4693 -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 +13239 -2321
- package/esm/resources/PaymentIntents.js +27 -0
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +19 -3
- package/esm/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/esm/resources/PaymentMethods.d.ts +151 -3
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentRecords.d.ts +82 -0
- package/esm/resources/Persons.d.ts +2 -2
- package/esm/resources/Plans.d.ts +16 -0
- package/esm/resources/Prices.d.ts +52 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +37 -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 +229 -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 +127 -0
- package/esm/resources/ProductCatalog/TrialOffers.js +11 -0
- package/esm/resources/ProductCatalog/TrialOffers.js.map +1 -0
- package/esm/resources/ProductCatalog/index.d.ts +12 -0
- package/esm/resources/ProductCatalog/index.js +9 -0
- package/esm/resources/ProductCatalog/index.js.map +1 -0
- package/esm/resources/Products.d.ts +42 -0
- 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 +1120 -0
- package/esm/resources/QuotePreviewInvoices.js +3 -0
- package/esm/resources/QuotePreviewInvoices.js.map +1 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +737 -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/PaymentEvaluations.d.ts +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 +16 -0
- package/esm/resources/Reserve/Plans.js +9 -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 +14 -3
- package/esm/resources/Reserve/index.js +10 -2
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/SetupAttempts.d.ts +26 -1
- package/esm/resources/SetupIntents.d.ts +330 -11
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +1095 -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 +308 -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 +16 -1
- package/esm/resources/SubscriptionItems.d.ts +143 -0
- package/esm/resources/SubscriptionSchedules.d.ts +1152 -0
- package/esm/resources/SubscriptionSchedules.js +6 -0
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +571 -6
- package/esm/resources/Subscriptions.js +145 -0
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/CalculationLineItems.d.ts +6 -2
- package/esm/resources/Tax/Calculations.d.ts +7 -3
- package/esm/resources/Tax/Forms.d.ts +230 -0
- package/esm/resources/Tax/Forms.js +28 -0
- package/esm/resources/Tax/Forms.js.map +1 -0
- package/esm/resources/Tax/Locations.d.ts +108 -0
- package/esm/resources/Tax/Locations.js +29 -0
- package/esm/resources/Tax/Locations.js.map +1 -0
- package/esm/resources/Tax/Registrations.d.ts +138 -2
- package/esm/resources/Tax/Transactions.d.ts +2 -2
- package/esm/resources/Tax/index.d.ts +27 -13
- package/esm/resources/Tax/index.js +4 -0
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/TaxCodes.d.ts +15 -0
- package/esm/resources/Terminal/Configurations.d.ts +27 -0
- package/esm/resources/Terminal/ReaderCollectedData.d.ts +52 -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 +78 -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/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 +8 -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 +75 -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 +284 -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 +951 -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 +240 -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 +166 -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/AccountLinks.d.ts +4 -4
- package/esm/resources/V2/Core/AccountTokens.d.ts +10 -0
- package/esm/resources/V2/Core/Accounts.d.ts +1177 -167
- package/esm/resources/V2/Core/BatchJobs.d.ts +373 -0
- package/esm/resources/V2/Core/BatchJobs.js +221 -0
- package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
- package/esm/resources/V2/Core/Events.d.ts +1123 -4
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +285 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +50 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +254 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +58 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
- package/esm/resources/V2/Core/Vault/index.d.ts +28 -0
- package/esm/resources/V2/Core/Vault/index.js +11 -0
- package/esm/resources/V2/Core/Vault/index.js.map +1 -0
- package/esm/resources/V2/Core/index.d.ts +19 -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/Reporting/QueryRuns.d.ts +156 -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/index.d.ts +10 -0
- package/esm/resources/V2/Data/index.js +9 -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 +166 -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 +123 -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/FinancialAddressCreditSimulations.d.ts +14 -0
- package/esm/resources/V2/FinancialAddressCreditSimulations.js +3 -0
- package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +3 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +214 -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 +135 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +19 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +244 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +40 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +215 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +27 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +254 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +26 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +212 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +388 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +37 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +300 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +45 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +330 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +35 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +243 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +40 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +96 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +13 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +295 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +19 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +161 -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/TransactionEntries.d.ts +165 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +19 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/Transactions.d.ts +196 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +19 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/index.d.ts +104 -0
- package/esm/resources/V2/MoneyManagement/index.js +35 -0
- package/esm/resources/V2/MoneyManagement/index.js.map +1 -0
- package/esm/resources/V2/Network/BusinessProfiles.d.ts +96 -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 +147 -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/TestHelpers/FinancialAddresses.d.ts +44 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +19 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
- package/esm/resources/V2/TestHelpers/index.d.ts +8 -0
- package/esm/resources/V2/TestHelpers/index.js +9 -0
- package/esm/resources/V2/TestHelpers/index.js.map +1 -0
- package/esm/resources/V2/index.d.ts +27 -0
- package/esm/resources/V2/index.js +14 -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 +131 -0
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.d.ts +61 -24
- package/esm/stripe.core.js +25 -1
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +62 -24
- package/esm/stripe.esm.node.js +25 -1
- package/esm/stripe.esm.node.js.map +1 -1
- package/package.json +1 -1
|
@@ -78,6 +78,10 @@ export interface Price {
|
|
|
78
78
|
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
|
|
79
79
|
*/
|
|
80
80
|
metadata: Metadata;
|
|
81
|
+
/**
|
|
82
|
+
* Subscriptions using this price will be migrated to use the new referenced price.
|
|
83
|
+
*/
|
|
84
|
+
migrate_to?: Price.MigrateTo | null;
|
|
81
85
|
/**
|
|
82
86
|
* A brief description of the price, hidden from customers.
|
|
83
87
|
*/
|
|
@@ -171,6 +175,20 @@ export declare namespace Price {
|
|
|
171
175
|
*/
|
|
172
176
|
preset: number | null;
|
|
173
177
|
}
|
|
178
|
+
interface MigrateTo {
|
|
179
|
+
/**
|
|
180
|
+
* The behavior controlling at what point in the subscription lifecycle to migrate the price
|
|
181
|
+
*/
|
|
182
|
+
behavior: 'at_cycle_end';
|
|
183
|
+
/**
|
|
184
|
+
* The unix timestamp after at which subscriptions will start to migrate to the new price.
|
|
185
|
+
*/
|
|
186
|
+
effective_after: number;
|
|
187
|
+
/**
|
|
188
|
+
* The id of the price being migrated to
|
|
189
|
+
*/
|
|
190
|
+
price: string;
|
|
191
|
+
}
|
|
174
192
|
interface Recurring {
|
|
175
193
|
/**
|
|
176
194
|
* The frequency at which a subscription is billed. One of `day`, `week`, `month` or `year`.
|
|
@@ -424,6 +442,10 @@ export declare namespace PriceCreateParams {
|
|
|
424
442
|
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
425
443
|
*/
|
|
426
444
|
tax_code?: string;
|
|
445
|
+
/**
|
|
446
|
+
* Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location.
|
|
447
|
+
*/
|
|
448
|
+
tax_details?: ProductData.TaxDetails;
|
|
427
449
|
/**
|
|
428
450
|
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
429
451
|
*/
|
|
@@ -528,6 +550,18 @@ export declare namespace PriceCreateParams {
|
|
|
528
550
|
up_to: 'inf' | number;
|
|
529
551
|
}
|
|
530
552
|
}
|
|
553
|
+
namespace ProductData {
|
|
554
|
+
interface TaxDetails {
|
|
555
|
+
/**
|
|
556
|
+
* A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
557
|
+
*/
|
|
558
|
+
performance_location?: string;
|
|
559
|
+
/**
|
|
560
|
+
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
561
|
+
*/
|
|
562
|
+
tax_code?: Emptyable<string>;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
531
565
|
namespace Recurring {
|
|
532
566
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
533
567
|
type UsageType = 'licensed' | 'metered';
|
|
@@ -565,6 +599,10 @@ export interface PriceUpdateParams {
|
|
|
565
599
|
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
566
600
|
*/
|
|
567
601
|
metadata?: Emptyable<MetadataParam>;
|
|
602
|
+
/**
|
|
603
|
+
* If specified, subscriptions using this price will be updated to use the new referenced price.
|
|
604
|
+
*/
|
|
605
|
+
migrate_to?: Emptyable<PriceUpdateParams.MigrateTo>;
|
|
568
606
|
/**
|
|
569
607
|
* A brief description of the price, hidden from customers.
|
|
570
608
|
*/
|
|
@@ -601,6 +639,20 @@ export declare namespace PriceUpdateParams {
|
|
|
601
639
|
*/
|
|
602
640
|
unit_amount_decimal?: Decimal;
|
|
603
641
|
}
|
|
642
|
+
interface MigrateTo {
|
|
643
|
+
/**
|
|
644
|
+
* The behavior controlling the point in the subscription lifecycle after which to migrate the price. Currently must be `at_cycle_end`.
|
|
645
|
+
*/
|
|
646
|
+
behavior: 'at_cycle_end';
|
|
647
|
+
/**
|
|
648
|
+
* The time after which subscriptions should start using the new price.
|
|
649
|
+
*/
|
|
650
|
+
effective_after?: number;
|
|
651
|
+
/**
|
|
652
|
+
* The ID of the price object.
|
|
653
|
+
*/
|
|
654
|
+
price: string;
|
|
655
|
+
}
|
|
604
656
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
605
657
|
namespace CurrencyOptions {
|
|
606
658
|
interface CustomUnitAmount {
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
export interface RedactionJobValidationError {
|
|
2
|
+
/**
|
|
3
|
+
* Unique identifier for the object.
|
|
4
|
+
*/
|
|
5
|
+
id: string;
|
|
6
|
+
/**
|
|
7
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
8
|
+
*/
|
|
9
|
+
object: 'privacy.redaction_job_validation_error';
|
|
10
|
+
/**
|
|
11
|
+
* A code indicating the reason for the error.
|
|
12
|
+
*/
|
|
13
|
+
code: Privacy.RedactionJobValidationError.Code;
|
|
14
|
+
/**
|
|
15
|
+
* If the error is related to a specific object, this field includes the object's identifier and object type.
|
|
16
|
+
*/
|
|
17
|
+
erroring_object: Privacy.RedactionJobValidationError.ErroringObject | null;
|
|
18
|
+
/**
|
|
19
|
+
* A human-readable message providing more details about the error.
|
|
20
|
+
*/
|
|
21
|
+
message: string;
|
|
22
|
+
}
|
|
23
|
+
export declare namespace Privacy {
|
|
24
|
+
namespace RedactionJobValidationError {
|
|
25
|
+
type Code = 'invalid_cascading_source' | 'invalid_file_purpose' | 'invalid_state' | 'locked_by_other_job' | 'too_many_objects';
|
|
26
|
+
interface ErroringObject {
|
|
27
|
+
/**
|
|
28
|
+
* Unique identifier for the object.
|
|
29
|
+
*/
|
|
30
|
+
id: string;
|
|
31
|
+
/**
|
|
32
|
+
* Erroring object type
|
|
33
|
+
*/
|
|
34
|
+
object_type: string;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RedactionJobValidationErrors.js","sourceRoot":"","sources":["../../../src/resources/Privacy/RedactionJobValidationErrors.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
2
|
+
import { RedactionJobValidationError } from './RedactionJobValidationErrors.js';
|
|
3
|
+
import { PaginationParams } from '../../shared.js';
|
|
4
|
+
import { RequestOptions, ApiListPromise, Response, ApiList } from '../../lib.js';
|
|
5
|
+
export declare class RedactionJobResource extends StripeResource {
|
|
6
|
+
/**
|
|
7
|
+
* Returns a list of redaction jobs.
|
|
8
|
+
*/
|
|
9
|
+
list(params?: Privacy.RedactionJobListParams, options?: RequestOptions): ApiListPromise<RedactionJob>;
|
|
10
|
+
/**
|
|
11
|
+
* Creates a redaction job. When a job is created, it will start to validate.
|
|
12
|
+
*/
|
|
13
|
+
create(params: Privacy.RedactionJobCreateParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
|
|
14
|
+
/**
|
|
15
|
+
* Retrieves the details of a previously created redaction job.
|
|
16
|
+
*/
|
|
17
|
+
retrieve(id: string, params?: Privacy.RedactionJobRetrieveParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
|
|
18
|
+
/**
|
|
19
|
+
* Updates the properties of a redaction job without running or canceling the job.
|
|
20
|
+
*
|
|
21
|
+
* If the job to update is in a failed status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.
|
|
22
|
+
*/
|
|
23
|
+
update(id: string, params?: Privacy.RedactionJobUpdateParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
|
|
24
|
+
/**
|
|
25
|
+
* You can cancel a redaction job when it's in one of these statuses: ready, failed.
|
|
26
|
+
*
|
|
27
|
+
* Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
|
|
28
|
+
*/
|
|
29
|
+
cancel(id: string, params?: Privacy.RedactionJobCancelParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
|
|
30
|
+
/**
|
|
31
|
+
* Run a redaction job in a ready status.
|
|
32
|
+
*
|
|
33
|
+
* When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
|
|
34
|
+
*
|
|
35
|
+
* The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
|
|
36
|
+
*/
|
|
37
|
+
run(id: string, params?: Privacy.RedactionJobRunParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
|
|
38
|
+
/**
|
|
39
|
+
* Validate a redaction job when it is in a failed status.
|
|
40
|
+
*
|
|
41
|
+
* When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
|
|
42
|
+
*
|
|
43
|
+
* The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
|
|
44
|
+
*/
|
|
45
|
+
validate(id: string, params?: Privacy.RedactionJobValidateParams, options?: RequestOptions): Promise<Response<RedactionJob>>;
|
|
46
|
+
/**
|
|
47
|
+
* Returns a list of validation errors for the specified redaction job.
|
|
48
|
+
*/
|
|
49
|
+
listValidationErrors(id: string, params?: Privacy.RedactionJobListValidationErrorsParams, options?: RequestOptions): ApiListPromise<RedactionJobValidationError>;
|
|
50
|
+
}
|
|
51
|
+
export interface RedactionJob {
|
|
52
|
+
/**
|
|
53
|
+
* Unique identifier for the object.
|
|
54
|
+
*/
|
|
55
|
+
id: string;
|
|
56
|
+
/**
|
|
57
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
58
|
+
*/
|
|
59
|
+
object: 'privacy.redaction_job';
|
|
60
|
+
/**
|
|
61
|
+
* Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
62
|
+
*/
|
|
63
|
+
created: number;
|
|
64
|
+
/**
|
|
65
|
+
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
66
|
+
*/
|
|
67
|
+
livemode: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* The objects to redact in this job.
|
|
70
|
+
*/
|
|
71
|
+
objects?: Privacy.RedactionJob.Objects | null;
|
|
72
|
+
/**
|
|
73
|
+
* The status of the job.
|
|
74
|
+
*/
|
|
75
|
+
status: Privacy.RedactionJob.Status;
|
|
76
|
+
/**
|
|
77
|
+
* Validation behavior determines how a job validates objects for redaction eligibility. Default is `error`.
|
|
78
|
+
*/
|
|
79
|
+
validation_behavior: Privacy.RedactionJob.ValidationBehavior | null;
|
|
80
|
+
/**
|
|
81
|
+
* The first 10 validation errors for the current validation attempt. Use the validation errors list endpoint to paginate through the full list.
|
|
82
|
+
*/
|
|
83
|
+
validation_errors?: ApiList<RedactionJobValidationError>;
|
|
84
|
+
}
|
|
85
|
+
export declare namespace Privacy {
|
|
86
|
+
namespace RedactionJob {
|
|
87
|
+
interface Objects {
|
|
88
|
+
/**
|
|
89
|
+
* Charge object identifiers usually starting with `ch_`
|
|
90
|
+
*/
|
|
91
|
+
charges: Array<string> | null;
|
|
92
|
+
/**
|
|
93
|
+
* CheckoutSession object identifiers starting with `cs_`
|
|
94
|
+
*/
|
|
95
|
+
checkout_sessions: Array<string> | null;
|
|
96
|
+
/**
|
|
97
|
+
* Customer object identifiers starting with `cus_`
|
|
98
|
+
*/
|
|
99
|
+
customers: Array<string> | null;
|
|
100
|
+
/**
|
|
101
|
+
* Identity VerificationSessions object identifiers starting with `vs_`
|
|
102
|
+
*/
|
|
103
|
+
identity_verification_sessions: Array<string> | null;
|
|
104
|
+
/**
|
|
105
|
+
* Invoice object identifiers starting with `in_`
|
|
106
|
+
*/
|
|
107
|
+
invoices: Array<string> | null;
|
|
108
|
+
/**
|
|
109
|
+
* Issuing Cardholder object identifiers starting with `ich_`
|
|
110
|
+
*/
|
|
111
|
+
issuing_cardholders: Array<string> | null;
|
|
112
|
+
/**
|
|
113
|
+
* PaymentIntent object identifiers starting with `pi_`
|
|
114
|
+
*/
|
|
115
|
+
payment_intents: Array<string> | null;
|
|
116
|
+
/**
|
|
117
|
+
* Fraud ValueListItem object identifiers starting with `rsli_`
|
|
118
|
+
*/
|
|
119
|
+
radar_value_list_items: Array<string> | null;
|
|
120
|
+
/**
|
|
121
|
+
* SetupIntent object identifiers starting with `seti_`
|
|
122
|
+
*/
|
|
123
|
+
setup_intents: Array<string> | null;
|
|
124
|
+
}
|
|
125
|
+
type Status = 'canceled' | 'canceling' | 'created' | 'failed' | 'ready' | 'redacting' | 'succeeded' | 'validating';
|
|
126
|
+
type ValidationBehavior = 'error' | 'fix';
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
export declare namespace Privacy {
|
|
130
|
+
interface RedactionJobCreateParams {
|
|
131
|
+
/**
|
|
132
|
+
* The objects to redact. These root objects and their related ones will be validated for redaction.
|
|
133
|
+
*/
|
|
134
|
+
objects: RedactionJobCreateParams.Objects;
|
|
135
|
+
/**
|
|
136
|
+
* Specifies which fields in the response should be expanded.
|
|
137
|
+
*/
|
|
138
|
+
expand?: Array<string>;
|
|
139
|
+
/**
|
|
140
|
+
* Determines the validation behavior of the job. Default is `error`.
|
|
141
|
+
*/
|
|
142
|
+
validation_behavior?: RedactionJobCreateParams.ValidationBehavior;
|
|
143
|
+
}
|
|
144
|
+
namespace RedactionJobCreateParams {
|
|
145
|
+
interface Objects {
|
|
146
|
+
charges?: Array<string>;
|
|
147
|
+
checkout_sessions?: Array<string>;
|
|
148
|
+
customers?: Array<string>;
|
|
149
|
+
identity_verification_sessions?: Array<string>;
|
|
150
|
+
invoices?: Array<string>;
|
|
151
|
+
issuing_cardholders?: Array<string>;
|
|
152
|
+
issuing_cards?: Array<string>;
|
|
153
|
+
payment_intents?: Array<string>;
|
|
154
|
+
radar_value_list_items?: Array<string>;
|
|
155
|
+
setup_intents?: Array<string>;
|
|
156
|
+
}
|
|
157
|
+
type ValidationBehavior = 'error' | 'fix';
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
export declare namespace Privacy {
|
|
161
|
+
interface RedactionJobRetrieveParams {
|
|
162
|
+
/**
|
|
163
|
+
* Specifies which fields in the response should be expanded.
|
|
164
|
+
*/
|
|
165
|
+
expand?: Array<string>;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
export declare namespace Privacy {
|
|
169
|
+
interface RedactionJobUpdateParams {
|
|
170
|
+
/**
|
|
171
|
+
* Specifies which fields in the response should be expanded.
|
|
172
|
+
*/
|
|
173
|
+
expand?: Array<string>;
|
|
174
|
+
/**
|
|
175
|
+
* Determines the validation behavior of the job. Default is `error`.
|
|
176
|
+
*/
|
|
177
|
+
validation_behavior?: RedactionJobUpdateParams.ValidationBehavior;
|
|
178
|
+
}
|
|
179
|
+
namespace RedactionJobUpdateParams {
|
|
180
|
+
type ValidationBehavior = 'error' | 'fix';
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
export declare namespace Privacy {
|
|
184
|
+
interface RedactionJobListParams extends PaginationParams {
|
|
185
|
+
/**
|
|
186
|
+
* Specifies which fields in the response should be expanded.
|
|
187
|
+
*/
|
|
188
|
+
expand?: Array<string>;
|
|
189
|
+
/**
|
|
190
|
+
* If provided, only RedactionJob objects with the given status will be returned.
|
|
191
|
+
*/
|
|
192
|
+
status?: RedactionJobListParams.Status;
|
|
193
|
+
}
|
|
194
|
+
namespace RedactionJobListParams {
|
|
195
|
+
type Status = 'canceled' | 'canceling' | 'created' | 'failed' | 'ready' | 'redacting' | 'succeeded' | 'validating';
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
export declare namespace Privacy {
|
|
199
|
+
interface RedactionJobCancelParams {
|
|
200
|
+
/**
|
|
201
|
+
* Specifies which fields in the response should be expanded.
|
|
202
|
+
*/
|
|
203
|
+
expand?: Array<string>;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
export declare namespace Privacy {
|
|
207
|
+
interface RedactionJobListValidationErrorsParams extends PaginationParams {
|
|
208
|
+
/**
|
|
209
|
+
* Specifies which fields in the response should be expanded.
|
|
210
|
+
*/
|
|
211
|
+
expand?: Array<string>;
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
export declare namespace Privacy {
|
|
215
|
+
interface RedactionJobRunParams {
|
|
216
|
+
/**
|
|
217
|
+
* Specifies which fields in the response should be expanded.
|
|
218
|
+
*/
|
|
219
|
+
expand?: Array<string>;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
export declare namespace Privacy {
|
|
223
|
+
interface RedactionJobValidateParams {
|
|
224
|
+
/**
|
|
225
|
+
* Specifies which fields in the response should be expanded.
|
|
226
|
+
*/
|
|
227
|
+
expand?: Array<string>;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
export class RedactionJobResource extends StripeResource {
|
|
4
|
+
/**
|
|
5
|
+
* Returns a list of redaction jobs.
|
|
6
|
+
*/
|
|
7
|
+
list(params, options) {
|
|
8
|
+
return this._makeRequest('GET', '/v1/privacy/redaction_jobs', params, options, {
|
|
9
|
+
methodType: 'list',
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Creates a redaction job. When a job is created, it will start to validate.
|
|
14
|
+
*/
|
|
15
|
+
create(params, options) {
|
|
16
|
+
return this._makeRequest('POST', '/v1/privacy/redaction_jobs', params, options);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves the details of a previously created redaction job.
|
|
20
|
+
*/
|
|
21
|
+
retrieve(id, params, options) {
|
|
22
|
+
return this._makeRequest('GET', `/v1/privacy/redaction_jobs/${id}`, params, options);
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Updates the properties of a redaction job without running or canceling the job.
|
|
26
|
+
*
|
|
27
|
+
* If the job to update is in a failed status, it will not automatically start to validate. Once you applied all of the changes, use the validate API to start validation again.
|
|
28
|
+
*/
|
|
29
|
+
update(id, params, options) {
|
|
30
|
+
return this._makeRequest('POST', `/v1/privacy/redaction_jobs/${id}`, params, options);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* You can cancel a redaction job when it's in one of these statuses: ready, failed.
|
|
34
|
+
*
|
|
35
|
+
* Canceling the redaction job will abandon its attempt to redact the configured objects. A canceled job cannot be used again.
|
|
36
|
+
*/
|
|
37
|
+
cancel(id, params, options) {
|
|
38
|
+
return this._makeRequest('POST', `/v1/privacy/redaction_jobs/${id}/cancel`, params, options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Run a redaction job in a ready status.
|
|
42
|
+
*
|
|
43
|
+
* When you run a job, the configured objects will be redacted asynchronously. This action is irreversible and cannot be canceled once started.
|
|
44
|
+
*
|
|
45
|
+
* The status of the job will move to redacting. Once all of the objects are redacted, the status will become succeeded. If the job's validation_behavior is set to fix, the automatic fixes will be applied to objects at this step.
|
|
46
|
+
*/
|
|
47
|
+
run(id, params, options) {
|
|
48
|
+
return this._makeRequest('POST', `/v1/privacy/redaction_jobs/${id}/run`, params, options);
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Validate a redaction job when it is in a failed status.
|
|
52
|
+
*
|
|
53
|
+
* When a job is created, it automatically begins to validate on the configured objects' eligibility for redaction. Use this to validate the job again after its validation errors are resolved or the job's validation_behavior is changed.
|
|
54
|
+
*
|
|
55
|
+
* The status of the job will move to validating. Once all of the objects are validated, the status of the job will become ready. If there are any validation errors preventing the job from running, the status will become failed.
|
|
56
|
+
*/
|
|
57
|
+
validate(id, params, options) {
|
|
58
|
+
return this._makeRequest('POST', `/v1/privacy/redaction_jobs/${id}/validate`, params, options);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Returns a list of validation errors for the specified redaction job.
|
|
62
|
+
*/
|
|
63
|
+
listValidationErrors(id, params, options) {
|
|
64
|
+
return this._makeRequest('GET', `/v1/privacy/redaction_jobs/${id}/validation_errors`, params, options, {
|
|
65
|
+
methodType: 'list',
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
//# sourceMappingURL=RedactionJobs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RedactionJobs.js","sourceRoot":"","sources":["../../../src/resources/Privacy/RedactionJobs.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAKvD,MAAM,OAAO,oBAAqB,SAAQ,cAAc;IACtD;;OAEG;IACH,IAAI,CACF,MAAuC,EACvC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,4BAA4B,EAC5B,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;IACD;;OAEG;IACH,MAAM,CACJ,MAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,4BAA4B,EAC5B,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,QAAQ,CACN,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,8BAA8B,EAAE,EAAE,EAClC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;OAIG;IACH,MAAM,CACJ,EAAU,EACV,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,8BAA8B,EAAE,EAAE,EAClC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;OAIG;IACH,MAAM,CACJ,EAAU,EACV,MAAyC,EACzC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,8BAA8B,EAAE,SAAS,EACzC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;;;OAMG;IACH,GAAG,CACD,EAAU,EACV,MAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,8BAA8B,EAAE,MAAM,EACtC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;;;;;OAMG;IACH,QAAQ,CACN,EAAU,EACV,MAA2C,EAC3C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,8BAA8B,EAAE,WAAW,EAC3C,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;IACD;;OAEG;IACH,oBAAoB,CAClB,EAAU,EACV,MAAuD,EACvD,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,KAAK,EACL,8BAA8B,EAAE,oBAAoB,EACpD,MAAM,EACN,OAAO,EACP;YACE,UAAU,EAAE,MAAM;SACnB,CACK,CAAC;IACX,CAAC;CACF"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Stripe } from '../../stripe.core.js';
|
|
2
|
+
import { Privacy as PrivacyNamespace0, RedactionJob, RedactionJobResource } from './RedactionJobs.js';
|
|
3
|
+
import { RedactionJobValidationError } from './RedactionJobValidationErrors.js';
|
|
4
|
+
export { RedactionJob } from './RedactionJobs.js';
|
|
5
|
+
export { RedactionJobValidationError } from './RedactionJobValidationErrors.js';
|
|
6
|
+
export declare class Privacy {
|
|
7
|
+
private readonly stripe;
|
|
8
|
+
redactionJobs: RedactionJobResource;
|
|
9
|
+
constructor(stripe: Stripe);
|
|
10
|
+
}
|
|
11
|
+
export declare namespace Privacy {
|
|
12
|
+
export import RedactionJobListParams = PrivacyNamespace0.RedactionJobListParams;
|
|
13
|
+
export import RedactionJobCreateParams = PrivacyNamespace0.RedactionJobCreateParams;
|
|
14
|
+
export import RedactionJobRetrieveParams = PrivacyNamespace0.RedactionJobRetrieveParams;
|
|
15
|
+
export import RedactionJobUpdateParams = PrivacyNamespace0.RedactionJobUpdateParams;
|
|
16
|
+
export import RedactionJobCancelParams = PrivacyNamespace0.RedactionJobCancelParams;
|
|
17
|
+
export import RedactionJobRunParams = PrivacyNamespace0.RedactionJobRunParams;
|
|
18
|
+
export import RedactionJobValidateParams = PrivacyNamespace0.RedactionJobValidateParams;
|
|
19
|
+
export import RedactionJobListValidationErrorsParams = PrivacyNamespace0.RedactionJobListValidationErrorsParams;
|
|
20
|
+
export { RedactionJob };
|
|
21
|
+
export { RedactionJobValidationError };
|
|
22
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { RedactionJobResource, } from './RedactionJobs.js';
|
|
3
|
+
export class Privacy {
|
|
4
|
+
constructor(stripe) {
|
|
5
|
+
this.stripe = stripe;
|
|
6
|
+
this.redactionJobs = new RedactionJobResource(stripe);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/Privacy/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAGL,oBAAoB,GACrB,MAAM,oBAAoB,CAAC;AAM5B,MAAM,OAAO,OAAO;IAGlB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,aAAa,GAAG,IAAI,oBAAoB,CAAC,MAAM,CAAC,CAAC;IACxD,CAAC;CACF"}
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
2
|
+
import { Price } from './../Prices.js';
|
|
3
|
+
import { RequestOptions, Response } from '../../lib.js';
|
|
4
|
+
export declare class TrialOfferResource extends StripeResource {
|
|
5
|
+
/**
|
|
6
|
+
* Creates a trial offer.
|
|
7
|
+
*/
|
|
8
|
+
create(params: ProductCatalog.TrialOfferCreateParams, options?: RequestOptions): Promise<Response<TrialOffer>>;
|
|
9
|
+
}
|
|
10
|
+
export interface TrialOffer {
|
|
11
|
+
/**
|
|
12
|
+
* Unique identifier for the object.
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* String representing the object's type. Objects of the same type share the same value.
|
|
17
|
+
*/
|
|
18
|
+
object: 'product_catalog.trial_offer';
|
|
19
|
+
duration: ProductCatalog.TrialOffer.Duration;
|
|
20
|
+
end_behavior: ProductCatalog.TrialOffer.EndBehavior;
|
|
21
|
+
/**
|
|
22
|
+
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
23
|
+
*/
|
|
24
|
+
livemode: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* A brief, user-friendly name for the trial offer-for identification purposes.
|
|
27
|
+
*/
|
|
28
|
+
name: string | null;
|
|
29
|
+
/**
|
|
30
|
+
* The price during the trial offer.
|
|
31
|
+
*/
|
|
32
|
+
price: string | Price;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace ProductCatalog {
|
|
35
|
+
namespace TrialOffer {
|
|
36
|
+
interface Duration {
|
|
37
|
+
relative?: Duration.Relative;
|
|
38
|
+
/**
|
|
39
|
+
* The type of trial offer duration.
|
|
40
|
+
*/
|
|
41
|
+
type: Duration.Type;
|
|
42
|
+
}
|
|
43
|
+
interface EndBehavior {
|
|
44
|
+
transition: EndBehavior.Transition;
|
|
45
|
+
/**
|
|
46
|
+
* The type of behavior when the trial offer ends.
|
|
47
|
+
*/
|
|
48
|
+
type: 'transition';
|
|
49
|
+
}
|
|
50
|
+
namespace Duration {
|
|
51
|
+
interface Relative {
|
|
52
|
+
/**
|
|
53
|
+
* The number of iterations of the price's interval for this trial offer.
|
|
54
|
+
*/
|
|
55
|
+
iterations: number;
|
|
56
|
+
}
|
|
57
|
+
type Type = 'relative' | 'timestamp';
|
|
58
|
+
}
|
|
59
|
+
namespace EndBehavior {
|
|
60
|
+
interface Transition {
|
|
61
|
+
/**
|
|
62
|
+
* The new price to use at the end of the trial offer period.
|
|
63
|
+
*/
|
|
64
|
+
price: string | Price;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export declare namespace ProductCatalog {
|
|
70
|
+
interface TrialOfferCreateParams {
|
|
71
|
+
/**
|
|
72
|
+
* Duration of one service period of the trial.
|
|
73
|
+
*/
|
|
74
|
+
duration: TrialOfferCreateParams.Duration;
|
|
75
|
+
/**
|
|
76
|
+
* Define behavior that occurs at the end of the trial.
|
|
77
|
+
*/
|
|
78
|
+
end_behavior: TrialOfferCreateParams.EndBehavior;
|
|
79
|
+
/**
|
|
80
|
+
* Price configuration during the trial period (amount, billing scheme, etc).
|
|
81
|
+
*/
|
|
82
|
+
price: string;
|
|
83
|
+
/**
|
|
84
|
+
* Specifies which fields in the response should be expanded.
|
|
85
|
+
*/
|
|
86
|
+
expand?: Array<string>;
|
|
87
|
+
/**
|
|
88
|
+
* A brief, user-friendly name for the trial offer-for identification purposes.
|
|
89
|
+
*/
|
|
90
|
+
name?: string;
|
|
91
|
+
}
|
|
92
|
+
namespace TrialOfferCreateParams {
|
|
93
|
+
interface Duration {
|
|
94
|
+
/**
|
|
95
|
+
* The relative duration of the trial period computed as the number of recurring price intervals.
|
|
96
|
+
*/
|
|
97
|
+
relative?: Duration.Relative;
|
|
98
|
+
/**
|
|
99
|
+
* Specifies how the trial offer duration is determined.
|
|
100
|
+
*/
|
|
101
|
+
type: Duration.Type;
|
|
102
|
+
}
|
|
103
|
+
interface EndBehavior {
|
|
104
|
+
/**
|
|
105
|
+
* The transition to apply when the trial offer ends.
|
|
106
|
+
*/
|
|
107
|
+
transition: EndBehavior.Transition;
|
|
108
|
+
}
|
|
109
|
+
namespace Duration {
|
|
110
|
+
interface Relative {
|
|
111
|
+
/**
|
|
112
|
+
* The number of recurring price's interval to apply for the trial period.
|
|
113
|
+
*/
|
|
114
|
+
iterations: number;
|
|
115
|
+
}
|
|
116
|
+
type Type = 'relative' | 'timestamp';
|
|
117
|
+
}
|
|
118
|
+
namespace EndBehavior {
|
|
119
|
+
interface Transition {
|
|
120
|
+
/**
|
|
121
|
+
* The price to transition the recurring item to when the trial offer ends.
|
|
122
|
+
*/
|
|
123
|
+
price: string;
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { StripeResource } from '../../StripeResource.js';
|
|
3
|
+
export class TrialOfferResource extends StripeResource {
|
|
4
|
+
/**
|
|
5
|
+
* Creates a trial offer.
|
|
6
|
+
*/
|
|
7
|
+
create(params, options) {
|
|
8
|
+
return this._makeRequest('POST', '/v1/product_catalog/trial_offers', params, options);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=TrialOffers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TrialOffers.js","sourceRoot":"","sources":["../../../src/resources/ProductCatalog/TrialOffers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAEvC,OAAO,EAAC,cAAc,EAAC,MAAM,yBAAyB,CAAC;AAIvD,MAAM,OAAO,kBAAmB,SAAQ,cAAc;IACpD;;OAEG;IACH,MAAM,CACJ,MAA6C,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,YAAY,CACtB,MAAM,EACN,kCAAkC,EAClC,MAAM,EACN,OAAO,CACD,CAAC;IACX,CAAC;CACF"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Stripe } from '../../stripe.core.js';
|
|
2
|
+
import { ProductCatalog as ProductCatalogNamespace0, TrialOffer, TrialOfferResource } from './TrialOffers.js';
|
|
3
|
+
export { TrialOffer } from './TrialOffers.js';
|
|
4
|
+
export declare class ProductCatalog {
|
|
5
|
+
private readonly stripe;
|
|
6
|
+
trialOffers: TrialOfferResource;
|
|
7
|
+
constructor(stripe: Stripe);
|
|
8
|
+
}
|
|
9
|
+
export declare namespace ProductCatalog {
|
|
10
|
+
export import TrialOfferCreateParams = ProductCatalogNamespace0.TrialOfferCreateParams;
|
|
11
|
+
export { TrialOffer };
|
|
12
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec
|
|
2
|
+
import { TrialOfferResource, } from './TrialOffers.js';
|
|
3
|
+
export class ProductCatalog {
|
|
4
|
+
constructor(stripe) {
|
|
5
|
+
this.stripe = stripe;
|
|
6
|
+
this.trialOffers = new TrialOfferResource(stripe);
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/ProductCatalog/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AAGvC,OAAO,EAGL,kBAAkB,GACnB,MAAM,kBAAkB,CAAC;AAI1B,MAAM,OAAO,cAAc;IAGzB,YAA6B,MAAc;QAAd,WAAM,GAAN,MAAM,CAAQ;QACzC,IAAI,CAAC,WAAW,GAAG,IAAI,kBAAkB,CAAC,MAAM,CAAC,CAAC;IACpD,CAAC;CACF"}
|