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
|
@@ -81,10 +81,26 @@ export declare class SubscriptionResource extends StripeResource {
|
|
|
81
81
|
* Upgrade the billing_mode of an existing subscription.
|
|
82
82
|
*/
|
|
83
83
|
migrate(id: string, params: SubscriptionMigrateParams, options?: RequestOptions): Promise<Response<Subscription>>;
|
|
84
|
+
/**
|
|
85
|
+
* Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules.
|
|
86
|
+
*/
|
|
87
|
+
pause(id: string, params?: SubscriptionPauseParams, options?: RequestOptions): Promise<Response<Subscription>>;
|
|
84
88
|
/**
|
|
85
89
|
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. Resume is only available for subscriptions that use charge_automatically collection. If Stripe doesn't generate a resumption invoice, the subscription becomes active immediately. When a resumption invoice is generated, Stripe finalizes it immediately. If the invoice is paid or marked uncollectible, the subscription becomes active. If the invoice is manually voided, the subscription stays paused. If there is no payment attempt within 23 hours, Stripe voids the invoice and the subscription stays paused. Learn more about [resuming subscriptions](https://docs.stripe.com/docs/billing/subscriptions/pause#resume-subscriptions).
|
|
86
90
|
*/
|
|
87
91
|
resume(id: string, params?: SubscriptionResumeParams, options?: RequestOptions): Promise<Response<Subscription>>;
|
|
92
|
+
serializeBatchCancel(subscriptionExposedId: string, params?: Record<string, unknown>, options?: {
|
|
93
|
+
apiVersion?: string;
|
|
94
|
+
stripeContext?: string;
|
|
95
|
+
}): string;
|
|
96
|
+
serializeBatchUpdate(subscriptionExposedId: string, params?: Record<string, unknown>, options?: {
|
|
97
|
+
apiVersion?: string;
|
|
98
|
+
stripeContext?: string;
|
|
99
|
+
}): string;
|
|
100
|
+
serializeBatchMigrate(subscription: string, params?: Record<string, unknown>, options?: {
|
|
101
|
+
apiVersion?: string;
|
|
102
|
+
stripeContext?: string;
|
|
103
|
+
}): string;
|
|
88
104
|
}
|
|
89
105
|
export interface Subscription {
|
|
90
106
|
/**
|
|
@@ -193,6 +209,10 @@ export interface Subscription {
|
|
|
193
209
|
* List of subscription items, each with an attached price.
|
|
194
210
|
*/
|
|
195
211
|
items: ApiList<SubscriptionItem>;
|
|
212
|
+
/**
|
|
213
|
+
* Details of the most recent price migration that failed for the subscription.
|
|
214
|
+
*/
|
|
215
|
+
last_price_migration_error?: Subscription.LastPriceMigrationError | null;
|
|
196
216
|
/**
|
|
197
217
|
* The most recent invoice this subscription has generated over its lifecycle (for example, when it cycles or is updated).
|
|
198
218
|
*/
|
|
@@ -237,6 +257,10 @@ export interface Subscription {
|
|
|
237
257
|
* If specified, [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid.
|
|
238
258
|
*/
|
|
239
259
|
pending_update: Subscription.PendingUpdate | null;
|
|
260
|
+
/**
|
|
261
|
+
* Time period and invoice for a Subscription billed in advance.
|
|
262
|
+
*/
|
|
263
|
+
prebilling?: Subscription.Prebilling | null;
|
|
240
264
|
presentment_details?: Subscription.PresentmentDetails;
|
|
241
265
|
/**
|
|
242
266
|
* The schedule attached to the subscription
|
|
@@ -260,6 +284,10 @@ export interface Subscription {
|
|
|
260
284
|
* If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices.
|
|
261
285
|
*/
|
|
262
286
|
status: Subscription.Status;
|
|
287
|
+
/**
|
|
288
|
+
* Describes changes to the subscription's status.
|
|
289
|
+
*/
|
|
290
|
+
status_details?: Subscription.StatusDetails;
|
|
263
291
|
/**
|
|
264
292
|
* ID of the test clock this subscription belongs to.
|
|
265
293
|
*/
|
|
@@ -378,6 +406,20 @@ export declare namespace Subscription {
|
|
|
378
406
|
account_tax_ids: Array<string | TaxId | DeletedTaxId> | null;
|
|
379
407
|
issuer: InvoiceSettings.Issuer;
|
|
380
408
|
}
|
|
409
|
+
interface LastPriceMigrationError {
|
|
410
|
+
/**
|
|
411
|
+
* The time at which the price migration encountered an error.
|
|
412
|
+
*/
|
|
413
|
+
errored_at: number;
|
|
414
|
+
/**
|
|
415
|
+
* The involved price pairs in each failed transition.
|
|
416
|
+
*/
|
|
417
|
+
failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
|
|
418
|
+
/**
|
|
419
|
+
* The type of error encountered by the price migration.
|
|
420
|
+
*/
|
|
421
|
+
type: 'price_uniqueness_violation';
|
|
422
|
+
}
|
|
381
423
|
interface ManagedPayments {
|
|
382
424
|
/**
|
|
383
425
|
* Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session.
|
|
@@ -439,6 +481,10 @@ export declare namespace Subscription {
|
|
|
439
481
|
* 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.
|
|
440
482
|
*/
|
|
441
483
|
metadata: Metadata | null;
|
|
484
|
+
/**
|
|
485
|
+
* The number of iterations of prebilling to apply.
|
|
486
|
+
*/
|
|
487
|
+
prebilling_iterations?: number | null;
|
|
442
488
|
/**
|
|
443
489
|
* List of subscription items, each with an attached plan, that will be set if the update is applied.
|
|
444
490
|
*/
|
|
@@ -452,6 +498,24 @@ export declare namespace Subscription {
|
|
|
452
498
|
*/
|
|
453
499
|
trial_from_plan: boolean | null;
|
|
454
500
|
}
|
|
501
|
+
interface Prebilling {
|
|
502
|
+
/**
|
|
503
|
+
* ID of the prebilling invoice.
|
|
504
|
+
*/
|
|
505
|
+
invoice: string | Invoice;
|
|
506
|
+
/**
|
|
507
|
+
* The end of the last period for which the invoice pre-bills.
|
|
508
|
+
*/
|
|
509
|
+
period_end: number;
|
|
510
|
+
/**
|
|
511
|
+
* The start of the first period for which the invoice pre-bills.
|
|
512
|
+
*/
|
|
513
|
+
period_start: number;
|
|
514
|
+
/**
|
|
515
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
516
|
+
*/
|
|
517
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
518
|
+
}
|
|
455
519
|
interface PresentmentDetails {
|
|
456
520
|
/**
|
|
457
521
|
* Currency used for customer payments.
|
|
@@ -459,6 +523,12 @@ export declare namespace Subscription {
|
|
|
459
523
|
presentment_currency: string;
|
|
460
524
|
}
|
|
461
525
|
type Status = 'active' | 'canceled' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'paused' | 'trialing' | 'unpaid';
|
|
526
|
+
interface StatusDetails {
|
|
527
|
+
/**
|
|
528
|
+
* Indicates when and why the subscription transitioned to the paused status.
|
|
529
|
+
*/
|
|
530
|
+
paused: StatusDetails.Paused;
|
|
531
|
+
}
|
|
462
532
|
interface TransferData {
|
|
463
533
|
/**
|
|
464
534
|
* A non-negative decimal between 0 and 100, with at most two decimal places. This represents the percentage of the subscription invoice total that will be transferred to the destination account. By default, the entire amount is transferred to the destination.
|
|
@@ -567,6 +637,18 @@ export declare namespace Subscription {
|
|
|
567
637
|
type Type = 'account' | 'self';
|
|
568
638
|
}
|
|
569
639
|
}
|
|
640
|
+
namespace LastPriceMigrationError {
|
|
641
|
+
interface FailedTransition {
|
|
642
|
+
/**
|
|
643
|
+
* The original price to be migrated.
|
|
644
|
+
*/
|
|
645
|
+
source_price: string;
|
|
646
|
+
/**
|
|
647
|
+
* The intended resulting price of the migration.
|
|
648
|
+
*/
|
|
649
|
+
target_price: string;
|
|
650
|
+
}
|
|
651
|
+
}
|
|
570
652
|
namespace PauseCollection {
|
|
571
653
|
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
572
654
|
}
|
|
@@ -580,6 +662,10 @@ export declare namespace Subscription {
|
|
|
580
662
|
* This sub-hash contains details about the Bancontact payment method options to pass to invoices created by the subscription.
|
|
581
663
|
*/
|
|
582
664
|
bancontact: PaymentMethodOptions.Bancontact | null;
|
|
665
|
+
/**
|
|
666
|
+
* This sub-hash contains details about the Blik payment method options to pass to invoices created by the subscription.
|
|
667
|
+
*/
|
|
668
|
+
blik?: PaymentMethodOptions.Blik | null;
|
|
583
669
|
/**
|
|
584
670
|
* This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription.
|
|
585
671
|
*/
|
|
@@ -588,6 +674,10 @@ export declare namespace Subscription {
|
|
|
588
674
|
* This sub-hash contains details about the Bank transfer payment method options to pass to invoices created by the subscription.
|
|
589
675
|
*/
|
|
590
676
|
customer_balance: PaymentMethodOptions.CustomerBalance | null;
|
|
677
|
+
/**
|
|
678
|
+
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to invoices created by the subscription.
|
|
679
|
+
*/
|
|
680
|
+
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
|
|
591
681
|
/**
|
|
592
682
|
* This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription.
|
|
593
683
|
*/
|
|
@@ -613,7 +703,7 @@ export declare namespace Subscription {
|
|
|
613
703
|
*/
|
|
614
704
|
us_bank_account: PaymentMethodOptions.UsBankAccount | null;
|
|
615
705
|
}
|
|
616
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
706
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
617
707
|
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
618
708
|
namespace PaymentMethodOptions {
|
|
619
709
|
interface AcssDebit {
|
|
@@ -629,6 +719,9 @@ export declare namespace Subscription {
|
|
|
629
719
|
*/
|
|
630
720
|
preferred_language: Bancontact.PreferredLanguage;
|
|
631
721
|
}
|
|
722
|
+
interface Blik {
|
|
723
|
+
mandate_options?: Blik.MandateOptions;
|
|
724
|
+
}
|
|
632
725
|
interface Card {
|
|
633
726
|
mandate_options?: Card.MandateOptions;
|
|
634
727
|
/**
|
|
@@ -647,6 +740,8 @@ export declare namespace Subscription {
|
|
|
647
740
|
*/
|
|
648
741
|
funding_type: 'bank_transfer' | null;
|
|
649
742
|
}
|
|
743
|
+
interface IdBankTransfer {
|
|
744
|
+
}
|
|
650
745
|
interface Konbini {
|
|
651
746
|
}
|
|
652
747
|
interface Payto {
|
|
@@ -686,6 +781,14 @@ export declare namespace Subscription {
|
|
|
686
781
|
namespace Bancontact {
|
|
687
782
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
688
783
|
}
|
|
784
|
+
namespace Blik {
|
|
785
|
+
interface MandateOptions {
|
|
786
|
+
/**
|
|
787
|
+
* Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
788
|
+
*/
|
|
789
|
+
expires_after: number | null;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
689
792
|
namespace Card {
|
|
690
793
|
interface MandateOptions {
|
|
691
794
|
/**
|
|
@@ -813,9 +916,13 @@ export declare namespace Subscription {
|
|
|
813
916
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
814
917
|
*/
|
|
815
918
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
919
|
+
/**
|
|
920
|
+
* The institution to use to filter for possible accounts to link.
|
|
921
|
+
*/
|
|
922
|
+
institution?: string;
|
|
816
923
|
}
|
|
817
924
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
818
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
925
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
|
|
819
926
|
namespace Filters {
|
|
820
927
|
type AccountSubcategory = 'checking' | 'savings';
|
|
821
928
|
}
|
|
@@ -826,14 +933,49 @@ export declare namespace Subscription {
|
|
|
826
933
|
namespace PendingInvoiceItemInterval {
|
|
827
934
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
828
935
|
}
|
|
936
|
+
namespace Prebilling {
|
|
937
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
938
|
+
}
|
|
939
|
+
namespace StatusDetails {
|
|
940
|
+
interface Paused {
|
|
941
|
+
/**
|
|
942
|
+
* Information on the `type=subscription` pause.
|
|
943
|
+
*/
|
|
944
|
+
subscription: Paused.Subscription;
|
|
945
|
+
/**
|
|
946
|
+
* Unix timestamp in seconds of when the subscription status transitioned to `paused`.
|
|
947
|
+
*/
|
|
948
|
+
transitioned_at: number;
|
|
949
|
+
/**
|
|
950
|
+
* The type of pause.
|
|
951
|
+
*/
|
|
952
|
+
type: 'subscription';
|
|
953
|
+
}
|
|
954
|
+
namespace Paused {
|
|
955
|
+
interface Subscription {
|
|
956
|
+
/**
|
|
957
|
+
* The reason that the subscription was paused.
|
|
958
|
+
*/
|
|
959
|
+
type: Subscription.Type;
|
|
960
|
+
}
|
|
961
|
+
namespace Subscription {
|
|
962
|
+
type Type = 'pause_requested' | 'system' | 'trial_end_without_payment_method';
|
|
963
|
+
}
|
|
964
|
+
}
|
|
965
|
+
}
|
|
829
966
|
namespace TrialSettings {
|
|
830
967
|
interface EndBehavior {
|
|
968
|
+
/**
|
|
969
|
+
* Indicates how the subscription's billing cycle anchor is reset when a trial ends. If not set, the default is `now`.
|
|
970
|
+
*/
|
|
971
|
+
billing_cycle_anchor?: EndBehavior.BillingCycleAnchor | null;
|
|
831
972
|
/**
|
|
832
973
|
* Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
833
974
|
*/
|
|
834
975
|
missing_payment_method: EndBehavior.MissingPaymentMethod;
|
|
835
976
|
}
|
|
836
977
|
namespace EndBehavior {
|
|
978
|
+
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
837
979
|
type MissingPaymentMethod = 'cancel' | 'create_invoice' | 'pause';
|
|
838
980
|
}
|
|
839
981
|
}
|
|
@@ -959,6 +1101,10 @@ export interface SubscriptionCreateParams {
|
|
|
959
1101
|
* Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
|
|
960
1102
|
*/
|
|
961
1103
|
pending_invoice_item_interval?: Emptyable<SubscriptionCreateParams.PendingInvoiceItemInterval>;
|
|
1104
|
+
/**
|
|
1105
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1106
|
+
*/
|
|
1107
|
+
prebilling?: SubscriptionCreateParams.Prebilling;
|
|
962
1108
|
/**
|
|
963
1109
|
* Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
|
|
964
1110
|
*/
|
|
@@ -1096,6 +1242,10 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1096
1242
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1097
1243
|
*/
|
|
1098
1244
|
discount?: string;
|
|
1245
|
+
/**
|
|
1246
|
+
* Details to determine how long the discount should be applied for.
|
|
1247
|
+
*/
|
|
1248
|
+
discount_end?: Discount.DiscountEnd;
|
|
1099
1249
|
/**
|
|
1100
1250
|
* ID of the promotion code to create a new discount for.
|
|
1101
1251
|
*/
|
|
@@ -1116,6 +1266,10 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1116
1266
|
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
1117
1267
|
*/
|
|
1118
1268
|
billing_thresholds?: Emptyable<Item.BillingThresholds>;
|
|
1269
|
+
/**
|
|
1270
|
+
* The trial offer to apply to this subscription item.
|
|
1271
|
+
*/
|
|
1272
|
+
current_trial?: Item.CurrentTrial;
|
|
1119
1273
|
/**
|
|
1120
1274
|
* The coupons to redeem into discounts for the subscription item.
|
|
1121
1275
|
*/
|
|
@@ -1144,6 +1298,10 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1144
1298
|
* 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.
|
|
1145
1299
|
*/
|
|
1146
1300
|
tax_rates?: Emptyable<Array<string>>;
|
|
1301
|
+
/**
|
|
1302
|
+
* Define options to configure the trial on the subscription item.
|
|
1303
|
+
*/
|
|
1304
|
+
trial?: Item.Trial;
|
|
1147
1305
|
}
|
|
1148
1306
|
type PaymentBehavior = 'allow_incomplete' | 'default_incomplete' | 'error_if_incomplete' | 'pending_if_incomplete';
|
|
1149
1307
|
interface PaymentSettings {
|
|
@@ -1170,6 +1328,16 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1170
1328
|
*/
|
|
1171
1329
|
interval_count?: number;
|
|
1172
1330
|
}
|
|
1331
|
+
interface Prebilling {
|
|
1332
|
+
/**
|
|
1333
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
1334
|
+
*/
|
|
1335
|
+
iterations: number;
|
|
1336
|
+
/**
|
|
1337
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1338
|
+
*/
|
|
1339
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
1340
|
+
}
|
|
1173
1341
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1174
1342
|
interface TransferData {
|
|
1175
1343
|
/**
|
|
@@ -1197,6 +1365,10 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1197
1365
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1198
1366
|
*/
|
|
1199
1367
|
discount?: string;
|
|
1368
|
+
/**
|
|
1369
|
+
* Details to determine how long the discount should be applied for.
|
|
1370
|
+
*/
|
|
1371
|
+
discount_end?: Discount.DiscountEnd;
|
|
1200
1372
|
/**
|
|
1201
1373
|
* ID of the promotion code to create a new discount for.
|
|
1202
1374
|
*/
|
|
@@ -1234,6 +1406,38 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1234
1406
|
*/
|
|
1235
1407
|
unit_amount_decimal?: Decimal;
|
|
1236
1408
|
}
|
|
1409
|
+
namespace Discount {
|
|
1410
|
+
interface DiscountEnd {
|
|
1411
|
+
/**
|
|
1412
|
+
* Time span for the redeemed discount.
|
|
1413
|
+
*/
|
|
1414
|
+
duration?: DiscountEnd.Duration;
|
|
1415
|
+
/**
|
|
1416
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1417
|
+
*/
|
|
1418
|
+
timestamp?: number;
|
|
1419
|
+
/**
|
|
1420
|
+
* The type of calculation made to determine when the discount ends.
|
|
1421
|
+
*/
|
|
1422
|
+
type: DiscountEnd.Type;
|
|
1423
|
+
}
|
|
1424
|
+
namespace DiscountEnd {
|
|
1425
|
+
interface Duration {
|
|
1426
|
+
/**
|
|
1427
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1428
|
+
*/
|
|
1429
|
+
interval: Duration.Interval;
|
|
1430
|
+
/**
|
|
1431
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1432
|
+
*/
|
|
1433
|
+
interval_count: number;
|
|
1434
|
+
}
|
|
1435
|
+
type Type = 'duration' | 'timestamp';
|
|
1436
|
+
namespace Duration {
|
|
1437
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1438
|
+
}
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1237
1441
|
namespace Period {
|
|
1238
1442
|
interface End {
|
|
1239
1443
|
/**
|
|
@@ -1335,6 +1539,38 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1335
1539
|
}
|
|
1336
1540
|
}
|
|
1337
1541
|
}
|
|
1542
|
+
namespace Discount {
|
|
1543
|
+
interface DiscountEnd {
|
|
1544
|
+
/**
|
|
1545
|
+
* Time span for the redeemed discount.
|
|
1546
|
+
*/
|
|
1547
|
+
duration?: DiscountEnd.Duration;
|
|
1548
|
+
/**
|
|
1549
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1550
|
+
*/
|
|
1551
|
+
timestamp?: number;
|
|
1552
|
+
/**
|
|
1553
|
+
* The type of calculation made to determine when the discount ends.
|
|
1554
|
+
*/
|
|
1555
|
+
type: DiscountEnd.Type;
|
|
1556
|
+
}
|
|
1557
|
+
namespace DiscountEnd {
|
|
1558
|
+
interface Duration {
|
|
1559
|
+
/**
|
|
1560
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1561
|
+
*/
|
|
1562
|
+
interval: Duration.Interval;
|
|
1563
|
+
/**
|
|
1564
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1565
|
+
*/
|
|
1566
|
+
interval_count: number;
|
|
1567
|
+
}
|
|
1568
|
+
type Type = 'duration' | 'timestamp';
|
|
1569
|
+
namespace Duration {
|
|
1570
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1571
|
+
}
|
|
1572
|
+
}
|
|
1573
|
+
}
|
|
1338
1574
|
namespace InvoiceSettings {
|
|
1339
1575
|
interface Issuer {
|
|
1340
1576
|
/**
|
|
@@ -1357,6 +1593,16 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1357
1593
|
*/
|
|
1358
1594
|
usage_gte: number;
|
|
1359
1595
|
}
|
|
1596
|
+
interface CurrentTrial {
|
|
1597
|
+
/**
|
|
1598
|
+
* 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`.
|
|
1599
|
+
*/
|
|
1600
|
+
trial_end?: number;
|
|
1601
|
+
/**
|
|
1602
|
+
* The ID of the trial offer to apply to the subscription item.
|
|
1603
|
+
*/
|
|
1604
|
+
trial_offer: string;
|
|
1605
|
+
}
|
|
1360
1606
|
interface Discount {
|
|
1361
1607
|
/**
|
|
1362
1608
|
* ID of the coupon to create a new discount for.
|
|
@@ -1366,6 +1612,10 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1366
1612
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1367
1613
|
*/
|
|
1368
1614
|
discount?: string;
|
|
1615
|
+
/**
|
|
1616
|
+
* Details to determine how long the discount should be applied for.
|
|
1617
|
+
*/
|
|
1618
|
+
discount_end?: Discount.DiscountEnd;
|
|
1369
1619
|
/**
|
|
1370
1620
|
* ID of the promotion code to create a new discount for.
|
|
1371
1621
|
*/
|
|
@@ -1397,6 +1647,48 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1397
1647
|
*/
|
|
1398
1648
|
unit_amount_decimal?: Decimal;
|
|
1399
1649
|
}
|
|
1650
|
+
interface Trial {
|
|
1651
|
+
/**
|
|
1652
|
+
* 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.
|
|
1653
|
+
*/
|
|
1654
|
+
converts_to?: Array<string>;
|
|
1655
|
+
/**
|
|
1656
|
+
* Determines the type of trial for this item.
|
|
1657
|
+
*/
|
|
1658
|
+
type: Trial.Type;
|
|
1659
|
+
}
|
|
1660
|
+
namespace Discount {
|
|
1661
|
+
interface DiscountEnd {
|
|
1662
|
+
/**
|
|
1663
|
+
* Time span for the redeemed discount.
|
|
1664
|
+
*/
|
|
1665
|
+
duration?: DiscountEnd.Duration;
|
|
1666
|
+
/**
|
|
1667
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1668
|
+
*/
|
|
1669
|
+
timestamp?: number;
|
|
1670
|
+
/**
|
|
1671
|
+
* The type of calculation made to determine when the discount ends.
|
|
1672
|
+
*/
|
|
1673
|
+
type: DiscountEnd.Type;
|
|
1674
|
+
}
|
|
1675
|
+
namespace DiscountEnd {
|
|
1676
|
+
interface Duration {
|
|
1677
|
+
/**
|
|
1678
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1679
|
+
*/
|
|
1680
|
+
interval: Duration.Interval;
|
|
1681
|
+
/**
|
|
1682
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1683
|
+
*/
|
|
1684
|
+
interval_count: number;
|
|
1685
|
+
}
|
|
1686
|
+
type Type = 'duration' | 'timestamp';
|
|
1687
|
+
namespace Duration {
|
|
1688
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
}
|
|
1400
1692
|
namespace PriceData {
|
|
1401
1693
|
interface Recurring {
|
|
1402
1694
|
/**
|
|
@@ -1413,6 +1705,9 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1413
1705
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1414
1706
|
}
|
|
1415
1707
|
}
|
|
1708
|
+
namespace Trial {
|
|
1709
|
+
type Type = 'free' | 'paid';
|
|
1710
|
+
}
|
|
1416
1711
|
}
|
|
1417
1712
|
namespace PaymentSettings {
|
|
1418
1713
|
interface PaymentMethodOptions {
|
|
@@ -1424,6 +1719,10 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1424
1719
|
* This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
1425
1720
|
*/
|
|
1426
1721
|
bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
|
|
1722
|
+
/**
|
|
1723
|
+
* This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
1724
|
+
*/
|
|
1725
|
+
blik?: Emptyable<PaymentMethodOptions.Blik>;
|
|
1427
1726
|
/**
|
|
1428
1727
|
* This sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
1429
1728
|
*/
|
|
@@ -1432,6 +1731,10 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1432
1731
|
* This sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1433
1732
|
*/
|
|
1434
1733
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
1734
|
+
/**
|
|
1735
|
+
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1736
|
+
*/
|
|
1737
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
1435
1738
|
/**
|
|
1436
1739
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1437
1740
|
*/
|
|
@@ -1457,7 +1760,7 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1457
1760
|
*/
|
|
1458
1761
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
1459
1762
|
}
|
|
1460
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
1763
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
1461
1764
|
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
1462
1765
|
namespace PaymentMethodOptions {
|
|
1463
1766
|
interface AcssDebit {
|
|
@@ -1476,6 +1779,12 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1476
1779
|
*/
|
|
1477
1780
|
preferred_language?: Bancontact.PreferredLanguage;
|
|
1478
1781
|
}
|
|
1782
|
+
interface Blik {
|
|
1783
|
+
/**
|
|
1784
|
+
* Configuration options for setting up a mandate
|
|
1785
|
+
*/
|
|
1786
|
+
mandate_options?: Blik.MandateOptions;
|
|
1787
|
+
}
|
|
1479
1788
|
interface Card {
|
|
1480
1789
|
/**
|
|
1481
1790
|
* Configuration options for setting up an eMandate for cards issued in India.
|
|
@@ -1500,6 +1809,8 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1500
1809
|
*/
|
|
1501
1810
|
funding_type?: string;
|
|
1502
1811
|
}
|
|
1812
|
+
interface IdBankTransfer {
|
|
1813
|
+
}
|
|
1503
1814
|
interface Konbini {
|
|
1504
1815
|
}
|
|
1505
1816
|
interface Payto {
|
|
@@ -1551,6 +1862,14 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1551
1862
|
namespace Bancontact {
|
|
1552
1863
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
1553
1864
|
}
|
|
1865
|
+
namespace Blik {
|
|
1866
|
+
interface MandateOptions {
|
|
1867
|
+
/**
|
|
1868
|
+
* Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
1869
|
+
*/
|
|
1870
|
+
expires_after?: number;
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1554
1873
|
namespace Card {
|
|
1555
1874
|
interface MandateOptions {
|
|
1556
1875
|
/**
|
|
@@ -1676,9 +1995,13 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1676
1995
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1677
1996
|
*/
|
|
1678
1997
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1998
|
+
/**
|
|
1999
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
2000
|
+
*/
|
|
2001
|
+
institution?: string;
|
|
1679
2002
|
}
|
|
1680
2003
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
1681
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2004
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
|
|
1682
2005
|
namespace Filters {
|
|
1683
2006
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1684
2007
|
}
|
|
@@ -1689,14 +2012,22 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1689
2012
|
namespace PendingInvoiceItemInterval {
|
|
1690
2013
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1691
2014
|
}
|
|
2015
|
+
namespace Prebilling {
|
|
2016
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
2017
|
+
}
|
|
1692
2018
|
namespace TrialSettings {
|
|
1693
2019
|
interface EndBehavior {
|
|
2020
|
+
/**
|
|
2021
|
+
* Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`.
|
|
2022
|
+
*/
|
|
2023
|
+
billing_cycle_anchor?: EndBehavior.BillingCycleAnchor;
|
|
1694
2024
|
/**
|
|
1695
2025
|
* Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
1696
2026
|
*/
|
|
1697
2027
|
missing_payment_method: EndBehavior.MissingPaymentMethod;
|
|
1698
2028
|
}
|
|
1699
2029
|
namespace EndBehavior {
|
|
2030
|
+
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
1700
2031
|
type MissingPaymentMethod = 'cancel' | 'create_invoice' | 'pause';
|
|
1701
2032
|
}
|
|
1702
2033
|
}
|
|
@@ -1812,6 +2143,10 @@ export interface SubscriptionUpdateParams {
|
|
|
1812
2143
|
* Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
|
|
1813
2144
|
*/
|
|
1814
2145
|
pending_invoice_item_interval?: Emptyable<SubscriptionUpdateParams.PendingInvoiceItemInterval>;
|
|
2146
|
+
/**
|
|
2147
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
2148
|
+
*/
|
|
2149
|
+
prebilling?: SubscriptionUpdateParams.Prebilling;
|
|
1815
2150
|
/**
|
|
1816
2151
|
* Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
1817
2152
|
*/
|
|
@@ -1928,6 +2263,10 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
1928
2263
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1929
2264
|
*/
|
|
1930
2265
|
discount?: string;
|
|
2266
|
+
/**
|
|
2267
|
+
* Details to determine how long the discount should be applied for.
|
|
2268
|
+
*/
|
|
2269
|
+
discount_end?: Discount.DiscountEnd;
|
|
1931
2270
|
/**
|
|
1932
2271
|
* ID of the promotion code to create a new discount for.
|
|
1933
2272
|
*/
|
|
@@ -1952,6 +2291,10 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
1952
2291
|
* Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
|
1953
2292
|
*/
|
|
1954
2293
|
clear_usage?: boolean;
|
|
2294
|
+
/**
|
|
2295
|
+
* The trial offer to apply to this subscription item.
|
|
2296
|
+
*/
|
|
2297
|
+
current_trial?: Item.CurrentTrial;
|
|
1955
2298
|
/**
|
|
1956
2299
|
* A flag that, if set to `true`, will delete the specified item.
|
|
1957
2300
|
*/
|
|
@@ -2024,6 +2367,16 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2024
2367
|
*/
|
|
2025
2368
|
interval_count?: number;
|
|
2026
2369
|
}
|
|
2370
|
+
interface Prebilling {
|
|
2371
|
+
/**
|
|
2372
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
2373
|
+
*/
|
|
2374
|
+
iterations: number;
|
|
2375
|
+
/**
|
|
2376
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
2377
|
+
*/
|
|
2378
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
2379
|
+
}
|
|
2027
2380
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
2028
2381
|
interface TransferData {
|
|
2029
2382
|
/**
|
|
@@ -2051,6 +2404,10 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2051
2404
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2052
2405
|
*/
|
|
2053
2406
|
discount?: string;
|
|
2407
|
+
/**
|
|
2408
|
+
* Details to determine how long the discount should be applied for.
|
|
2409
|
+
*/
|
|
2410
|
+
discount_end?: Discount.DiscountEnd;
|
|
2054
2411
|
/**
|
|
2055
2412
|
* ID of the promotion code to create a new discount for.
|
|
2056
2413
|
*/
|
|
@@ -2088,6 +2445,38 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2088
2445
|
*/
|
|
2089
2446
|
unit_amount_decimal?: Decimal;
|
|
2090
2447
|
}
|
|
2448
|
+
namespace Discount {
|
|
2449
|
+
interface DiscountEnd {
|
|
2450
|
+
/**
|
|
2451
|
+
* Time span for the redeemed discount.
|
|
2452
|
+
*/
|
|
2453
|
+
duration?: DiscountEnd.Duration;
|
|
2454
|
+
/**
|
|
2455
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2456
|
+
*/
|
|
2457
|
+
timestamp?: number;
|
|
2458
|
+
/**
|
|
2459
|
+
* The type of calculation made to determine when the discount ends.
|
|
2460
|
+
*/
|
|
2461
|
+
type: DiscountEnd.Type;
|
|
2462
|
+
}
|
|
2463
|
+
namespace DiscountEnd {
|
|
2464
|
+
interface Duration {
|
|
2465
|
+
/**
|
|
2466
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2467
|
+
*/
|
|
2468
|
+
interval: Duration.Interval;
|
|
2469
|
+
/**
|
|
2470
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2471
|
+
*/
|
|
2472
|
+
interval_count: number;
|
|
2473
|
+
}
|
|
2474
|
+
type Type = 'duration' | 'timestamp';
|
|
2475
|
+
namespace Duration {
|
|
2476
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
}
|
|
2091
2480
|
namespace Period {
|
|
2092
2481
|
interface End {
|
|
2093
2482
|
/**
|
|
@@ -2180,6 +2569,38 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2180
2569
|
namespace CancellationDetails {
|
|
2181
2570
|
type Feedback = 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused';
|
|
2182
2571
|
}
|
|
2572
|
+
namespace Discount {
|
|
2573
|
+
interface DiscountEnd {
|
|
2574
|
+
/**
|
|
2575
|
+
* Time span for the redeemed discount.
|
|
2576
|
+
*/
|
|
2577
|
+
duration?: DiscountEnd.Duration;
|
|
2578
|
+
/**
|
|
2579
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2580
|
+
*/
|
|
2581
|
+
timestamp?: number;
|
|
2582
|
+
/**
|
|
2583
|
+
* The type of calculation made to determine when the discount ends.
|
|
2584
|
+
*/
|
|
2585
|
+
type: DiscountEnd.Type;
|
|
2586
|
+
}
|
|
2587
|
+
namespace DiscountEnd {
|
|
2588
|
+
interface Duration {
|
|
2589
|
+
/**
|
|
2590
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2591
|
+
*/
|
|
2592
|
+
interval: Duration.Interval;
|
|
2593
|
+
/**
|
|
2594
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2595
|
+
*/
|
|
2596
|
+
interval_count: number;
|
|
2597
|
+
}
|
|
2598
|
+
type Type = 'duration' | 'timestamp';
|
|
2599
|
+
namespace Duration {
|
|
2600
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2601
|
+
}
|
|
2602
|
+
}
|
|
2603
|
+
}
|
|
2183
2604
|
namespace InvoiceSettings {
|
|
2184
2605
|
interface Issuer {
|
|
2185
2606
|
/**
|
|
@@ -2202,6 +2623,16 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2202
2623
|
*/
|
|
2203
2624
|
usage_gte: number;
|
|
2204
2625
|
}
|
|
2626
|
+
interface CurrentTrial {
|
|
2627
|
+
/**
|
|
2628
|
+
* 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`.
|
|
2629
|
+
*/
|
|
2630
|
+
trial_end?: number;
|
|
2631
|
+
/**
|
|
2632
|
+
* The ID of the trial offer to apply to the subscription item.
|
|
2633
|
+
*/
|
|
2634
|
+
trial_offer: string;
|
|
2635
|
+
}
|
|
2205
2636
|
interface Discount {
|
|
2206
2637
|
/**
|
|
2207
2638
|
* ID of the coupon to create a new discount for.
|
|
@@ -2211,6 +2642,10 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2211
2642
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2212
2643
|
*/
|
|
2213
2644
|
discount?: string;
|
|
2645
|
+
/**
|
|
2646
|
+
* Details to determine how long the discount should be applied for.
|
|
2647
|
+
*/
|
|
2648
|
+
discount_end?: Discount.DiscountEnd;
|
|
2214
2649
|
/**
|
|
2215
2650
|
* ID of the promotion code to create a new discount for.
|
|
2216
2651
|
*/
|
|
@@ -2242,6 +2677,38 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2242
2677
|
*/
|
|
2243
2678
|
unit_amount_decimal?: Decimal;
|
|
2244
2679
|
}
|
|
2680
|
+
namespace Discount {
|
|
2681
|
+
interface DiscountEnd {
|
|
2682
|
+
/**
|
|
2683
|
+
* Time span for the redeemed discount.
|
|
2684
|
+
*/
|
|
2685
|
+
duration?: DiscountEnd.Duration;
|
|
2686
|
+
/**
|
|
2687
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2688
|
+
*/
|
|
2689
|
+
timestamp?: number;
|
|
2690
|
+
/**
|
|
2691
|
+
* The type of calculation made to determine when the discount ends.
|
|
2692
|
+
*/
|
|
2693
|
+
type: DiscountEnd.Type;
|
|
2694
|
+
}
|
|
2695
|
+
namespace DiscountEnd {
|
|
2696
|
+
interface Duration {
|
|
2697
|
+
/**
|
|
2698
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2699
|
+
*/
|
|
2700
|
+
interval: Duration.Interval;
|
|
2701
|
+
/**
|
|
2702
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2703
|
+
*/
|
|
2704
|
+
interval_count: number;
|
|
2705
|
+
}
|
|
2706
|
+
type Type = 'duration' | 'timestamp';
|
|
2707
|
+
namespace Duration {
|
|
2708
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2709
|
+
}
|
|
2710
|
+
}
|
|
2711
|
+
}
|
|
2245
2712
|
namespace PriceData {
|
|
2246
2713
|
interface Recurring {
|
|
2247
2714
|
/**
|
|
@@ -2272,6 +2739,10 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2272
2739
|
* This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
2273
2740
|
*/
|
|
2274
2741
|
bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
|
|
2742
|
+
/**
|
|
2743
|
+
* This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
2744
|
+
*/
|
|
2745
|
+
blik?: Emptyable<PaymentMethodOptions.Blik>;
|
|
2275
2746
|
/**
|
|
2276
2747
|
* This sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
2277
2748
|
*/
|
|
@@ -2280,6 +2751,10 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2280
2751
|
* This sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2281
2752
|
*/
|
|
2282
2753
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
2754
|
+
/**
|
|
2755
|
+
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2756
|
+
*/
|
|
2757
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
2283
2758
|
/**
|
|
2284
2759
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
2285
2760
|
*/
|
|
@@ -2305,7 +2780,7 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2305
2780
|
*/
|
|
2306
2781
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
2307
2782
|
}
|
|
2308
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
2783
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
2309
2784
|
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
2310
2785
|
namespace PaymentMethodOptions {
|
|
2311
2786
|
interface AcssDebit {
|
|
@@ -2324,6 +2799,12 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2324
2799
|
*/
|
|
2325
2800
|
preferred_language?: Bancontact.PreferredLanguage;
|
|
2326
2801
|
}
|
|
2802
|
+
interface Blik {
|
|
2803
|
+
/**
|
|
2804
|
+
* Configuration options for setting up a mandate
|
|
2805
|
+
*/
|
|
2806
|
+
mandate_options?: Blik.MandateOptions;
|
|
2807
|
+
}
|
|
2327
2808
|
interface Card {
|
|
2328
2809
|
/**
|
|
2329
2810
|
* Configuration options for setting up an eMandate for cards issued in India.
|
|
@@ -2348,6 +2829,8 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2348
2829
|
*/
|
|
2349
2830
|
funding_type?: string;
|
|
2350
2831
|
}
|
|
2832
|
+
interface IdBankTransfer {
|
|
2833
|
+
}
|
|
2351
2834
|
interface Konbini {
|
|
2352
2835
|
}
|
|
2353
2836
|
interface Payto {
|
|
@@ -2399,6 +2882,14 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2399
2882
|
namespace Bancontact {
|
|
2400
2883
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
2401
2884
|
}
|
|
2885
|
+
namespace Blik {
|
|
2886
|
+
interface MandateOptions {
|
|
2887
|
+
/**
|
|
2888
|
+
* Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
2889
|
+
*/
|
|
2890
|
+
expires_after?: number;
|
|
2891
|
+
}
|
|
2892
|
+
}
|
|
2402
2893
|
namespace Card {
|
|
2403
2894
|
interface MandateOptions {
|
|
2404
2895
|
/**
|
|
@@ -2524,9 +3015,13 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2524
3015
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2525
3016
|
*/
|
|
2526
3017
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3018
|
+
/**
|
|
3019
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
3020
|
+
*/
|
|
3021
|
+
institution?: string;
|
|
2527
3022
|
}
|
|
2528
3023
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
2529
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
3024
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
|
|
2530
3025
|
namespace Filters {
|
|
2531
3026
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2532
3027
|
}
|
|
@@ -2537,14 +3032,22 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2537
3032
|
namespace PendingInvoiceItemInterval {
|
|
2538
3033
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2539
3034
|
}
|
|
3035
|
+
namespace Prebilling {
|
|
3036
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
3037
|
+
}
|
|
2540
3038
|
namespace TrialSettings {
|
|
2541
3039
|
interface EndBehavior {
|
|
3040
|
+
/**
|
|
3041
|
+
* Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`.
|
|
3042
|
+
*/
|
|
3043
|
+
billing_cycle_anchor?: EndBehavior.BillingCycleAnchor;
|
|
2542
3044
|
/**
|
|
2543
3045
|
* Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
2544
3046
|
*/
|
|
2545
3047
|
missing_payment_method: EndBehavior.MissingPaymentMethod;
|
|
2546
3048
|
}
|
|
2547
3049
|
namespace EndBehavior {
|
|
3050
|
+
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
2548
3051
|
type MissingPaymentMethod = 'cancel' | 'create_invoice' | 'pause';
|
|
2549
3052
|
}
|
|
2550
3053
|
}
|
|
@@ -2677,6 +3180,57 @@ export declare namespace SubscriptionMigrateParams {
|
|
|
2677
3180
|
}
|
|
2678
3181
|
}
|
|
2679
3182
|
}
|
|
3183
|
+
export interface SubscriptionPauseParams {
|
|
3184
|
+
/**
|
|
3185
|
+
* Controls what to bill for when pausing the subscription.
|
|
3186
|
+
*/
|
|
3187
|
+
bill_for?: SubscriptionPauseParams.BillFor;
|
|
3188
|
+
/**
|
|
3189
|
+
* Specifies which fields in the response should be expanded.
|
|
3190
|
+
*/
|
|
3191
|
+
expand?: Array<string>;
|
|
3192
|
+
/**
|
|
3193
|
+
* Determines how to handle debits and credits when pausing. The default is `pending_invoice_item`.
|
|
3194
|
+
*/
|
|
3195
|
+
invoicing_behavior?: SubscriptionPauseParams.InvoicingBehavior;
|
|
3196
|
+
/**
|
|
3197
|
+
* The type of pause to apply. Defaults to `subscription`.
|
|
3198
|
+
*/
|
|
3199
|
+
type?: 'subscription';
|
|
3200
|
+
}
|
|
3201
|
+
export declare namespace SubscriptionPauseParams {
|
|
3202
|
+
interface BillFor {
|
|
3203
|
+
/**
|
|
3204
|
+
* Controls when to bill for metered usage in the current period. Defaults to `{ type: "now" }`.
|
|
3205
|
+
*/
|
|
3206
|
+
outstanding_usage_through?: BillFor.OutstandingUsageThrough;
|
|
3207
|
+
/**
|
|
3208
|
+
* Controls when to credit for unused time on licensed items. Defaults to `{ type: "now" }`.
|
|
3209
|
+
*/
|
|
3210
|
+
unused_time_from?: BillFor.UnusedTimeFrom;
|
|
3211
|
+
}
|
|
3212
|
+
type InvoicingBehavior = 'invoice' | 'pending_invoice_item';
|
|
3213
|
+
namespace BillFor {
|
|
3214
|
+
interface OutstandingUsageThrough {
|
|
3215
|
+
/**
|
|
3216
|
+
* When to bill metered usage in the current period.
|
|
3217
|
+
*/
|
|
3218
|
+
type: OutstandingUsageThrough.Type;
|
|
3219
|
+
}
|
|
3220
|
+
interface UnusedTimeFrom {
|
|
3221
|
+
/**
|
|
3222
|
+
* When to credit for unused time.
|
|
3223
|
+
*/
|
|
3224
|
+
type: UnusedTimeFrom.Type;
|
|
3225
|
+
}
|
|
3226
|
+
namespace OutstandingUsageThrough {
|
|
3227
|
+
type Type = 'none' | 'now';
|
|
3228
|
+
}
|
|
3229
|
+
namespace UnusedTimeFrom {
|
|
3230
|
+
type Type = 'item_current_period_start' | 'none' | 'now';
|
|
3231
|
+
}
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
2680
3234
|
export interface SubscriptionResumeParams {
|
|
2681
3235
|
/**
|
|
2682
3236
|
* The billing cycle anchor that applies when the subscription is resumed. Either `now` or `unchanged`. The default is `now`. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
|
@@ -2686,6 +3240,10 @@ export interface SubscriptionResumeParams {
|
|
|
2686
3240
|
* Specifies which fields in the response should be expanded.
|
|
2687
3241
|
*/
|
|
2688
3242
|
expand?: Array<string>;
|
|
3243
|
+
/**
|
|
3244
|
+
* Controls whether Stripe attempts payment on the resumption invoice in the resume request, and how payment on that invoice affects the subscription's status. The default is `resume_on_payment_attempt`.
|
|
3245
|
+
*/
|
|
3246
|
+
payment_behavior?: SubscriptionResumeParams.PaymentBehavior;
|
|
2689
3247
|
/**
|
|
2690
3248
|
* Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor` being `unchanged`. When the `billing_cycle_anchor` is set to `now` (default value), no prorations are generated. If no value is passed, the default is `create_prorations`.
|
|
2691
3249
|
*/
|
|
@@ -2697,6 +3255,7 @@ export interface SubscriptionResumeParams {
|
|
|
2697
3255
|
}
|
|
2698
3256
|
export declare namespace SubscriptionResumeParams {
|
|
2699
3257
|
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
3258
|
+
type PaymentBehavior = 'resume_on_payment_attempt' | 'resume_on_payment_success';
|
|
2700
3259
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
2701
3260
|
}
|
|
2702
3261
|
export interface SubscriptionSearchParams {
|
|
@@ -2717,3 +3276,9 @@ export interface SubscriptionSearchParams {
|
|
|
2717
3276
|
*/
|
|
2718
3277
|
page?: string;
|
|
2719
3278
|
}
|
|
3279
|
+
export interface SubscriptionSerializeBatchCancelParams {
|
|
3280
|
+
}
|
|
3281
|
+
export interface SubscriptionSerializeBatchMigrateParams {
|
|
3282
|
+
}
|
|
3283
|
+
export interface SubscriptionSerializeBatchUpdateParams {
|
|
3284
|
+
}
|