stripe 22.3.0 → 22.4.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 +1798 -54
- package/README.md +42 -58
- 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/StripeEventNotificationHandler.d.ts +19 -0
- package/cjs/StripeEventNotificationHandler.js +150 -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 +194 -0
- package/cjs/resources/Capital/FinancingOffers.js +30 -0
- package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
- package/cjs/resources/Capital/FinancingSummary.d.ts +101 -0
- package/cjs/resources/Capital/FinancingSummary.js +15 -0
- package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
- package/cjs/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/cjs/resources/Capital/FinancingTransactions.js +24 -0
- package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
- package/cjs/resources/Capital/index.d.ts +25 -0
- package/cjs/resources/Capital/index.js +17 -0
- package/cjs/resources/Capital/index.js.map +1 -0
- package/cjs/resources/Cards.d.ts +17 -0
- package/cjs/resources/Charges.d.ts +3077 -70
- package/cjs/resources/Checkout/Sessions.d.ts +403 -4
- package/cjs/resources/ConfirmationTokens.d.ts +67 -1
- package/cjs/resources/Coupons.d.ts +53 -0
- package/cjs/resources/Coupons.js +13 -0
- package/cjs/resources/Coupons.js.map +1 -1
- package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
- package/cjs/resources/CreditNotes.d.ts +1 -1
- package/cjs/resources/CustomerSessions.d.ts +68 -0
- package/cjs/resources/Customers.d.ts +20 -1
- package/cjs/resources/Customers.js +14 -0
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/Disputes.d.ts +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 +69 -4
- package/cjs/resources/FinancialConnections/Accounts.js +8 -0
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +99 -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 +99 -0
- package/cjs/resources/FinancialConnections/Institutions.js +23 -0
- package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
- package/cjs/resources/FinancialConnections/Sessions.d.ts +156 -7
- package/cjs/resources/FinancialConnections/Sessions.js.map +1 -1
- 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 +1388 -15
- package/cjs/resources/Invoices.js +41 -0
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +13 -0
- package/cjs/resources/Issuing/Cardholders.d.ts +15 -1
- package/cjs/resources/Issuing/Cards.d.ts +13 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/cjs/resources/Issuing/Disputes.d.ts +13 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/cjs/resources/Issuing/Settlements.d.ts +83 -0
- package/cjs/resources/Issuing/Settlements.js +4 -0
- package/cjs/resources/Issuing/Settlements.js.map +1 -0
- package/cjs/resources/Issuing/Transactions.d.ts +22 -0
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +47 -22
- package/cjs/resources/Issuing/index.js +6 -0
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +29 -2
- package/cjs/resources/Mandates.d.ts +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 +13283 -2352
- 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 +164 -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 +35 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/cjs/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/cjs/resources/Privacy/RedactionJobs.js +73 -0
- package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
- package/cjs/resources/Privacy/index.d.ts +22 -0
- package/cjs/resources/Privacy/index.js +13 -0
- package/cjs/resources/Privacy/index.js.map +1 -0
- package/cjs/resources/ProductCatalog/TrialOffers.d.ts +125 -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 +738 -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/Radar/ValueListItems.d.ts +30 -0
- 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 +17 -6
- package/cjs/resources/Reserve/index.js +9 -0
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/SetupAttempts.d.ts +26 -1
- package/cjs/resources/SetupIntents.d.ts +343 -11
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +1105 -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 +306 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/index.d.ts +19 -0
- package/cjs/resources/SharedPayment/index.js +15 -0
- package/cjs/resources/SharedPayment/index.js.map +1 -0
- package/cjs/resources/Sources.d.ts +29 -1
- package/cjs/resources/SubscriptionItems.d.ts +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 +228 -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 +50 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/cjs/resources/Terminal/Readers.d.ts +17 -1
- package/cjs/resources/Terminal/index.d.ts +5 -0
- package/cjs/resources/Terminal/index.js +2 -0
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +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/Tokens.d.ts +15 -0
- package/cjs/resources/Transfers.d.ts +8 -0
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/cjs/resources/Treasury/OutboundPayments.d.ts +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 +71 -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 +280 -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 +947 -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 +236 -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 +775 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/Profiles.d.ts +162 -0
- package/cjs/resources/V2/Billing/Profiles.js +35 -0
- package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
- package/cjs/resources/V2/Billing/index.d.ts +45 -6
- package/cjs/resources/V2/Billing/index.js +8 -0
- package/cjs/resources/V2/Billing/index.js.map +1 -1
- package/cjs/resources/V2/Core/AccountLinks.d.ts +4 -4
- package/cjs/resources/V2/Core/AccountTokens.d.ts +10 -0
- package/cjs/resources/V2/Core/Accounts.d.ts +1565 -75
- package/cjs/resources/V2/Core/BatchJobs.d.ts +360 -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 +1151 -4
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +279 -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 +249 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +63 -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 +150 -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 +162 -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 +119 -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 +210 -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 +131 -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 +240 -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 +211 -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 +250 -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 +208 -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 +394 -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 +296 -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 +336 -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 +239 -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 +92 -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 +157 -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 +161 -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 +192 -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 +92 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/cjs/resources/V2/Network/index.d.ts +13 -0
- package/cjs/resources/V2/Network/index.js +13 -0
- package/cjs/resources/V2/Network/index.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/cjs/resources/V2/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.cjs.node.d.ts +6536 -109
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.core.d.ts +91 -26
- package/cjs/stripe.core.js +55 -32
- 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/StripeEventNotificationHandler.d.ts +19 -0
- package/esm/StripeEventNotificationHandler.js +146 -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 +194 -0
- package/esm/resources/Capital/FinancingOffers.js +26 -0
- package/esm/resources/Capital/FinancingOffers.js.map +1 -0
- package/esm/resources/Capital/FinancingSummary.d.ts +101 -0
- package/esm/resources/Capital/FinancingSummary.js +11 -0
- package/esm/resources/Capital/FinancingSummary.js.map +1 -0
- package/esm/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/esm/resources/Capital/FinancingTransactions.js +20 -0
- package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
- package/esm/resources/Capital/index.d.ts +25 -0
- package/esm/resources/Capital/index.js +13 -0
- package/esm/resources/Capital/index.js.map +1 -0
- package/esm/resources/Cards.d.ts +17 -0
- package/esm/resources/Charges.d.ts +3077 -70
- package/esm/resources/Checkout/Sessions.d.ts +403 -4
- package/esm/resources/ConfirmationTokens.d.ts +67 -1
- package/esm/resources/Coupons.d.ts +53 -0
- package/esm/resources/Coupons.js +13 -0
- package/esm/resources/Coupons.js.map +1 -1
- package/esm/resources/CreditNoteLineItems.d.ts +15 -1
- package/esm/resources/CreditNotes.d.ts +1 -1
- package/esm/resources/CustomerSessions.d.ts +68 -0
- package/esm/resources/Customers.d.ts +20 -1
- package/esm/resources/Customers.js +14 -0
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/Disputes.d.ts +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 +69 -4
- package/esm/resources/FinancialConnections/Accounts.js +8 -0
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +99 -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 +99 -0
- package/esm/resources/FinancialConnections/Institutions.js +19 -0
- package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
- package/esm/resources/FinancialConnections/Sessions.d.ts +156 -7
- package/esm/resources/FinancialConnections/Sessions.js.map +1 -1
- 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 +1388 -15
- package/esm/resources/Invoices.js +41 -0
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +13 -0
- package/esm/resources/Issuing/Cardholders.d.ts +15 -1
- package/esm/resources/Issuing/Cards.d.ts +13 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/esm/resources/Issuing/Disputes.d.ts +13 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/esm/resources/Issuing/Settlements.d.ts +83 -0
- package/esm/resources/Issuing/Settlements.js +3 -0
- package/esm/resources/Issuing/Settlements.js.map +1 -0
- package/esm/resources/Issuing/Transactions.d.ts +22 -0
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +47 -22
- package/esm/resources/Issuing/index.js +6 -0
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +29 -2
- package/esm/resources/Mandates.d.ts +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 +13283 -2352
- 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 +164 -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 +35 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/esm/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/esm/resources/Privacy/RedactionJobs.js +69 -0
- package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
- package/esm/resources/Privacy/index.d.ts +22 -0
- package/esm/resources/Privacy/index.js +9 -0
- package/esm/resources/Privacy/index.js.map +1 -0
- package/esm/resources/ProductCatalog/TrialOffers.d.ts +125 -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 +738 -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/Radar/ValueListItems.d.ts +30 -0
- 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 +17 -6
- package/esm/resources/Reserve/index.js +9 -0
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/SetupAttempts.d.ts +26 -1
- package/esm/resources/SetupIntents.d.ts +343 -11
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +1105 -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 +306 -0
- package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
- package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/index.d.ts +19 -0
- package/esm/resources/SharedPayment/index.js +11 -0
- package/esm/resources/SharedPayment/index.js.map +1 -0
- package/esm/resources/Sources.d.ts +29 -1
- package/esm/resources/SubscriptionItems.d.ts +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 +228 -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 +50 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
- package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/esm/resources/Terminal/Readers.d.ts +17 -1
- package/esm/resources/Terminal/index.d.ts +5 -0
- package/esm/resources/Terminal/index.js +2 -0
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +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/Tokens.d.ts +15 -0
- package/esm/resources/Transfers.d.ts +8 -0
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/esm/resources/Treasury/OutboundPayments.d.ts +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 +71 -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 +280 -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 +947 -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 +236 -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 +775 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
- package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/esm/resources/V2/Billing/Profiles.d.ts +162 -0
- package/esm/resources/V2/Billing/Profiles.js +31 -0
- package/esm/resources/V2/Billing/Profiles.js.map +1 -0
- package/esm/resources/V2/Billing/index.d.ts +45 -6
- package/esm/resources/V2/Billing/index.js +8 -0
- package/esm/resources/V2/Billing/index.js.map +1 -1
- package/esm/resources/V2/Core/AccountLinks.d.ts +4 -4
- package/esm/resources/V2/Core/AccountTokens.d.ts +10 -0
- package/esm/resources/V2/Core/Accounts.d.ts +1565 -75
- package/esm/resources/V2/Core/BatchJobs.d.ts +360 -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 +1151 -4
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +279 -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 +249 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +59 -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 +150 -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 +162 -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 +119 -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 +210 -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 +131 -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 +240 -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 +211 -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 +250 -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 +208 -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 +394 -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 +296 -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 +336 -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 +239 -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 +92 -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 +157 -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 +161 -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 +192 -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 +92 -0
- package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
- package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/esm/resources/V2/Network/index.d.ts +13 -0
- package/esm/resources/V2/Network/index.js +9 -0
- package/esm/resources/V2/Network/index.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/esm/resources/V2/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 +91 -26
- package/esm/stripe.core.js +25 -2
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +93 -27
- package/esm/stripe.esm.node.js +25 -2
- package/esm/stripe.esm.node.js.map +1 -1
- package/package.json +1 -1
|
@@ -11,6 +11,7 @@ import { Price, DeletedPrice } from './Prices.js';
|
|
|
11
11
|
import { Coupon } from './Coupons.js';
|
|
12
12
|
import { PromotionCode } from './PromotionCodes.js';
|
|
13
13
|
import { Plan, DeletedPlan } from './Plans.js';
|
|
14
|
+
import { Invoice } from './Invoices.js';
|
|
14
15
|
import * as TestHelpers from './TestHelpers/index.js';
|
|
15
16
|
import { Emptyable, MetadataParam, Decimal, PaginationParams, RangeQueryParam, Metadata } from '../shared.js';
|
|
16
17
|
import { RequestOptions, ApiListPromise, Response } from '../lib.js';
|
|
@@ -31,6 +32,10 @@ export declare class SubscriptionScheduleResource extends StripeResource {
|
|
|
31
32
|
* Updates an existing subscription schedule.
|
|
32
33
|
*/
|
|
33
34
|
update(id: string, params?: SubscriptionScheduleUpdateParams, options?: RequestOptions): Promise<Response<SubscriptionSchedule>>;
|
|
35
|
+
/**
|
|
36
|
+
* Amends an existing subscription schedule.
|
|
37
|
+
*/
|
|
38
|
+
amend(id: string, params?: SubscriptionScheduleAmendParams, options?: RequestOptions): Promise<Response<SubscriptionSchedule>>;
|
|
34
39
|
/**
|
|
35
40
|
* Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is not_started or active.
|
|
36
41
|
*/
|
|
@@ -53,6 +58,10 @@ export interface SubscriptionSchedule {
|
|
|
53
58
|
* ID of the Connect Application that created the schedule.
|
|
54
59
|
*/
|
|
55
60
|
application: string | Application | DeletedApplication | null;
|
|
61
|
+
/**
|
|
62
|
+
* Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
|
63
|
+
*/
|
|
64
|
+
billing_behavior?: SubscriptionSchedule.BillingBehavior;
|
|
56
65
|
/**
|
|
57
66
|
* The billing mode of the subscription.
|
|
58
67
|
*/
|
|
@@ -86,6 +95,10 @@ export interface SubscriptionSchedule {
|
|
|
86
95
|
* Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
|
87
96
|
*/
|
|
88
97
|
end_behavior: SubscriptionSchedule.EndBehavior;
|
|
98
|
+
/**
|
|
99
|
+
* Details of the most recent price migration that failed for the subscription schedule.
|
|
100
|
+
*/
|
|
101
|
+
last_price_migration_error?: SubscriptionSchedule.LastPriceMigrationError | null;
|
|
89
102
|
/**
|
|
90
103
|
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
91
104
|
*/
|
|
@@ -98,6 +111,10 @@ export interface SubscriptionSchedule {
|
|
|
98
111
|
* Configuration for the subscription schedule's phases.
|
|
99
112
|
*/
|
|
100
113
|
phases: Array<SubscriptionSchedule.Phase>;
|
|
114
|
+
/**
|
|
115
|
+
* Time period and invoice for a Subscription billed in advance.
|
|
116
|
+
*/
|
|
117
|
+
prebilling?: SubscriptionSchedule.Prebilling | null;
|
|
101
118
|
/**
|
|
102
119
|
* Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
|
103
120
|
*/
|
|
@@ -120,6 +137,7 @@ export interface SubscriptionSchedule {
|
|
|
120
137
|
test_clock: string | TestHelpers.TestClock | null;
|
|
121
138
|
}
|
|
122
139
|
export declare namespace SubscriptionSchedule {
|
|
140
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
123
141
|
interface BillingMode {
|
|
124
142
|
/**
|
|
125
143
|
* Configure behavior for flexible billing mode
|
|
@@ -181,6 +199,20 @@ export declare namespace SubscriptionSchedule {
|
|
|
181
199
|
transfer_data: DefaultSettings.TransferData | null;
|
|
182
200
|
}
|
|
183
201
|
type EndBehavior = 'cancel' | 'none' | 'release' | 'renew';
|
|
202
|
+
interface LastPriceMigrationError {
|
|
203
|
+
/**
|
|
204
|
+
* The time at which the price migration encountered an error.
|
|
205
|
+
*/
|
|
206
|
+
errored_at: number;
|
|
207
|
+
/**
|
|
208
|
+
* The involved price pairs in each failed transition.
|
|
209
|
+
*/
|
|
210
|
+
failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
|
|
211
|
+
/**
|
|
212
|
+
* The type of error encountered by the price migration.
|
|
213
|
+
*/
|
|
214
|
+
type: 'price_uniqueness_violation';
|
|
215
|
+
}
|
|
184
216
|
interface Phase {
|
|
185
217
|
/**
|
|
186
218
|
* A list of prices and quantities that will generate invoice items appended to the next invoice for this phase.
|
|
@@ -243,6 +275,10 @@ export declare namespace SubscriptionSchedule {
|
|
|
243
275
|
* The account (if any) the charge was made on behalf of for charges associated with the schedule's subscription. See the Connect documentation for details.
|
|
244
276
|
*/
|
|
245
277
|
on_behalf_of: string | Account | null;
|
|
278
|
+
/**
|
|
279
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
280
|
+
*/
|
|
281
|
+
pause_collection?: Phase.PauseCollection | null;
|
|
246
282
|
/**
|
|
247
283
|
* When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
|
|
248
284
|
*/
|
|
@@ -255,10 +291,36 @@ export declare namespace SubscriptionSchedule {
|
|
|
255
291
|
* The account (if any) the associated subscription's payments will be attributed to for tax reporting, and where funds from each payment will be transferred to for each of the subscription's invoices.
|
|
256
292
|
*/
|
|
257
293
|
transfer_data: Phase.TransferData | null;
|
|
294
|
+
/**
|
|
295
|
+
* Specify behavior of the trial when crossing schedule phase boundaries
|
|
296
|
+
*/
|
|
297
|
+
trial_continuation?: Phase.TrialContinuation | null;
|
|
258
298
|
/**
|
|
259
299
|
* When the trial ends within the phase.
|
|
260
300
|
*/
|
|
261
301
|
trial_end: number | null;
|
|
302
|
+
/**
|
|
303
|
+
* Settings related to any trials on the subscription during this phase.
|
|
304
|
+
*/
|
|
305
|
+
trial_settings?: Phase.TrialSettings | null;
|
|
306
|
+
}
|
|
307
|
+
interface Prebilling {
|
|
308
|
+
/**
|
|
309
|
+
* ID of the prebilling invoice.
|
|
310
|
+
*/
|
|
311
|
+
invoice: string | Invoice;
|
|
312
|
+
/**
|
|
313
|
+
* The end of the last period for which the invoice pre-bills.
|
|
314
|
+
*/
|
|
315
|
+
period_end: number;
|
|
316
|
+
/**
|
|
317
|
+
* The start of the first period for which the invoice pre-bills.
|
|
318
|
+
*/
|
|
319
|
+
period_start: number;
|
|
320
|
+
/**
|
|
321
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
322
|
+
*/
|
|
323
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
262
324
|
}
|
|
263
325
|
type Status = 'active' | 'canceled' | 'completed' | 'not_started' | 'released';
|
|
264
326
|
namespace BillingMode {
|
|
@@ -352,6 +414,18 @@ export declare namespace SubscriptionSchedule {
|
|
|
352
414
|
}
|
|
353
415
|
}
|
|
354
416
|
}
|
|
417
|
+
namespace LastPriceMigrationError {
|
|
418
|
+
interface FailedTransition {
|
|
419
|
+
/**
|
|
420
|
+
* The original price to be migrated.
|
|
421
|
+
*/
|
|
422
|
+
source_price: string;
|
|
423
|
+
/**
|
|
424
|
+
* The intended resulting price of the migration.
|
|
425
|
+
*/
|
|
426
|
+
target_price: string;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
355
429
|
namespace Phase {
|
|
356
430
|
interface AddInvoiceItem {
|
|
357
431
|
/**
|
|
@@ -415,6 +489,10 @@ export declare namespace SubscriptionSchedule {
|
|
|
415
489
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
416
490
|
*/
|
|
417
491
|
discount: string | _Discount | null;
|
|
492
|
+
/**
|
|
493
|
+
* Details to determine how long the discount should be applied for.
|
|
494
|
+
*/
|
|
495
|
+
discount_end?: Discount.DiscountEnd | null;
|
|
418
496
|
/**
|
|
419
497
|
* ID of the promotion code to create a new discount for.
|
|
420
498
|
*/
|
|
@@ -463,6 +541,20 @@ export declare namespace SubscriptionSchedule {
|
|
|
463
541
|
* The tax rates which apply to this `phase_item`. When set, the `default_tax_rates` on the phase do not apply to this `phase_item`.
|
|
464
542
|
*/
|
|
465
543
|
tax_rates?: Array<TaxRate> | null;
|
|
544
|
+
/**
|
|
545
|
+
* Options that configure the trial on the subscription item.
|
|
546
|
+
*/
|
|
547
|
+
trial?: Item.Trial | null;
|
|
548
|
+
/**
|
|
549
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
550
|
+
*/
|
|
551
|
+
trial_offer?: string | null;
|
|
552
|
+
}
|
|
553
|
+
interface PauseCollection {
|
|
554
|
+
/**
|
|
555
|
+
* The payment collection behavior for this subscription while paused.
|
|
556
|
+
*/
|
|
557
|
+
behavior: PauseCollection.Behavior;
|
|
466
558
|
}
|
|
467
559
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
468
560
|
interface TransferData {
|
|
@@ -475,6 +567,13 @@ export declare namespace SubscriptionSchedule {
|
|
|
475
567
|
*/
|
|
476
568
|
destination: string | Account;
|
|
477
569
|
}
|
|
570
|
+
type TrialContinuation = 'continue' | 'none';
|
|
571
|
+
interface TrialSettings {
|
|
572
|
+
/**
|
|
573
|
+
* Defines how the subscription should behave when a trial ends.
|
|
574
|
+
*/
|
|
575
|
+
end_behavior: TrialSettings.EndBehavior | null;
|
|
576
|
+
}
|
|
478
577
|
namespace AddInvoiceItem {
|
|
479
578
|
interface Discount {
|
|
480
579
|
/**
|
|
@@ -485,6 +584,10 @@ export declare namespace SubscriptionSchedule {
|
|
|
485
584
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
486
585
|
*/
|
|
487
586
|
discount: string | _Discount | null;
|
|
587
|
+
/**
|
|
588
|
+
* Details to determine how long the discount should be applied for.
|
|
589
|
+
*/
|
|
590
|
+
discount_end?: Discount.DiscountEnd | null;
|
|
488
591
|
/**
|
|
489
592
|
* ID of the promotion code to create a new discount for.
|
|
490
593
|
*/
|
|
@@ -494,6 +597,18 @@ export declare namespace SubscriptionSchedule {
|
|
|
494
597
|
end: Period.End;
|
|
495
598
|
start: Period.Start;
|
|
496
599
|
}
|
|
600
|
+
namespace Discount {
|
|
601
|
+
interface DiscountEnd {
|
|
602
|
+
/**
|
|
603
|
+
* The discount end timestamp.
|
|
604
|
+
*/
|
|
605
|
+
timestamp: number | null;
|
|
606
|
+
/**
|
|
607
|
+
* The discount end type.
|
|
608
|
+
*/
|
|
609
|
+
type: 'timestamp';
|
|
610
|
+
}
|
|
611
|
+
}
|
|
497
612
|
namespace Period {
|
|
498
613
|
interface End {
|
|
499
614
|
/**
|
|
@@ -538,6 +653,18 @@ export declare namespace SubscriptionSchedule {
|
|
|
538
653
|
type Type = 'account' | 'self';
|
|
539
654
|
}
|
|
540
655
|
}
|
|
656
|
+
namespace Discount {
|
|
657
|
+
interface DiscountEnd {
|
|
658
|
+
/**
|
|
659
|
+
* The discount end timestamp.
|
|
660
|
+
*/
|
|
661
|
+
timestamp: number | null;
|
|
662
|
+
/**
|
|
663
|
+
* The discount end type.
|
|
664
|
+
*/
|
|
665
|
+
type: 'timestamp';
|
|
666
|
+
}
|
|
667
|
+
}
|
|
541
668
|
namespace InvoiceSettings {
|
|
542
669
|
interface Issuer {
|
|
543
670
|
/**
|
|
@@ -569,15 +696,65 @@ export declare namespace SubscriptionSchedule {
|
|
|
569
696
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
570
697
|
*/
|
|
571
698
|
discount: string | _Discount | null;
|
|
699
|
+
/**
|
|
700
|
+
* Details to determine how long the discount should be applied for.
|
|
701
|
+
*/
|
|
702
|
+
discount_end?: Discount.DiscountEnd | null;
|
|
572
703
|
/**
|
|
573
704
|
* ID of the promotion code to create a new discount for.
|
|
574
705
|
*/
|
|
575
706
|
promotion_code: string | PromotionCode | null;
|
|
576
707
|
}
|
|
708
|
+
interface Trial {
|
|
709
|
+
/**
|
|
710
|
+
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
|
711
|
+
*/
|
|
712
|
+
converts_to?: Array<string> | null;
|
|
713
|
+
/**
|
|
714
|
+
* Determines the type of trial for this item.
|
|
715
|
+
*/
|
|
716
|
+
type: Trial.Type;
|
|
717
|
+
}
|
|
718
|
+
namespace Discount {
|
|
719
|
+
interface DiscountEnd {
|
|
720
|
+
/**
|
|
721
|
+
* The discount end timestamp.
|
|
722
|
+
*/
|
|
723
|
+
timestamp: number | null;
|
|
724
|
+
/**
|
|
725
|
+
* The discount end type.
|
|
726
|
+
*/
|
|
727
|
+
type: 'timestamp';
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
namespace Trial {
|
|
731
|
+
type Type = 'free' | 'paid';
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
namespace PauseCollection {
|
|
735
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
736
|
+
}
|
|
737
|
+
namespace TrialSettings {
|
|
738
|
+
interface EndBehavior {
|
|
739
|
+
/**
|
|
740
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
741
|
+
*/
|
|
742
|
+
prorate_up_front: EndBehavior.ProrateUpFront | null;
|
|
743
|
+
}
|
|
744
|
+
namespace EndBehavior {
|
|
745
|
+
type ProrateUpFront = 'defer' | 'include';
|
|
746
|
+
}
|
|
577
747
|
}
|
|
578
748
|
}
|
|
749
|
+
namespace Prebilling {
|
|
750
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
751
|
+
}
|
|
579
752
|
}
|
|
580
753
|
export interface SubscriptionScheduleCreateParams {
|
|
754
|
+
/**
|
|
755
|
+
* Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
|
756
|
+
*/
|
|
757
|
+
billing_behavior?: SubscriptionScheduleCreateParams.BillingBehavior;
|
|
581
758
|
/**
|
|
582
759
|
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
583
760
|
*/
|
|
@@ -614,12 +791,17 @@ export interface SubscriptionScheduleCreateParams {
|
|
|
614
791
|
* List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
|
|
615
792
|
*/
|
|
616
793
|
phases?: Array<SubscriptionScheduleCreateParams.Phase>;
|
|
794
|
+
/**
|
|
795
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
796
|
+
*/
|
|
797
|
+
prebilling?: SubscriptionScheduleCreateParams.Prebilling;
|
|
617
798
|
/**
|
|
618
799
|
* When the subscription schedule starts. We recommend using `now` so that it starts the subscription immediately. You can also use a Unix timestamp to backdate the subscription so that it starts on a past date, or set a future date for the subscription to start on.
|
|
619
800
|
*/
|
|
620
801
|
start_date?: number | 'now';
|
|
621
802
|
}
|
|
622
803
|
export declare namespace SubscriptionScheduleCreateParams {
|
|
804
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
623
805
|
interface BillingMode {
|
|
624
806
|
/**
|
|
625
807
|
* Configure behavior for flexible billing mode.
|
|
@@ -742,6 +924,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
742
924
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
743
925
|
*/
|
|
744
926
|
on_behalf_of?: string;
|
|
927
|
+
/**
|
|
928
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
929
|
+
*/
|
|
930
|
+
pause_collection?: Phase.PauseCollection;
|
|
745
931
|
/**
|
|
746
932
|
* Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
|
747
933
|
*/
|
|
@@ -754,10 +940,28 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
754
940
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
755
941
|
*/
|
|
756
942
|
trial?: boolean;
|
|
943
|
+
/**
|
|
944
|
+
* Specify trial behavior when crossing phase boundaries
|
|
945
|
+
*/
|
|
946
|
+
trial_continuation?: Phase.TrialContinuation;
|
|
757
947
|
/**
|
|
758
948
|
* Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
|
|
759
949
|
*/
|
|
760
950
|
trial_end?: number;
|
|
951
|
+
/**
|
|
952
|
+
* Settings related to subscription trials.
|
|
953
|
+
*/
|
|
954
|
+
trial_settings?: Phase.TrialSettings;
|
|
955
|
+
}
|
|
956
|
+
interface Prebilling {
|
|
957
|
+
/**
|
|
958
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
959
|
+
*/
|
|
960
|
+
iterations: number;
|
|
961
|
+
/**
|
|
962
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
963
|
+
*/
|
|
964
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
761
965
|
}
|
|
762
966
|
namespace BillingMode {
|
|
763
967
|
interface Flexible {
|
|
@@ -915,6 +1119,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
915
1119
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
916
1120
|
*/
|
|
917
1121
|
discount?: string;
|
|
1122
|
+
/**
|
|
1123
|
+
* Details to determine how long the discount should be applied for.
|
|
1124
|
+
*/
|
|
1125
|
+
discount_end?: Discount.DiscountEnd;
|
|
918
1126
|
/**
|
|
919
1127
|
* ID of the promotion code to create a new discount for.
|
|
920
1128
|
*/
|
|
@@ -977,6 +1185,20 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
977
1185
|
* 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.
|
|
978
1186
|
*/
|
|
979
1187
|
tax_rates?: Emptyable<Array<string>>;
|
|
1188
|
+
/**
|
|
1189
|
+
* Options that configure the trial on the subscription item.
|
|
1190
|
+
*/
|
|
1191
|
+
trial?: Item.Trial;
|
|
1192
|
+
/**
|
|
1193
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
1194
|
+
*/
|
|
1195
|
+
trial_offer?: string;
|
|
1196
|
+
}
|
|
1197
|
+
interface PauseCollection {
|
|
1198
|
+
/**
|
|
1199
|
+
* The payment collection behavior for this subscription while paused.
|
|
1200
|
+
*/
|
|
1201
|
+
behavior: PauseCollection.Behavior;
|
|
980
1202
|
}
|
|
981
1203
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
982
1204
|
interface TransferData {
|
|
@@ -989,6 +1211,13 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
989
1211
|
*/
|
|
990
1212
|
destination: string;
|
|
991
1213
|
}
|
|
1214
|
+
type TrialContinuation = 'continue' | 'none';
|
|
1215
|
+
interface TrialSettings {
|
|
1216
|
+
/**
|
|
1217
|
+
* Defines how the subscription should behave when a trial ends.
|
|
1218
|
+
*/
|
|
1219
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
1220
|
+
}
|
|
992
1221
|
namespace AddInvoiceItem {
|
|
993
1222
|
interface Discount {
|
|
994
1223
|
/**
|
|
@@ -999,6 +1228,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
999
1228
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1000
1229
|
*/
|
|
1001
1230
|
discount?: string;
|
|
1231
|
+
/**
|
|
1232
|
+
* Details to determine how long the discount should be applied for.
|
|
1233
|
+
*/
|
|
1234
|
+
discount_end?: Discount.DiscountEnd;
|
|
1002
1235
|
/**
|
|
1003
1236
|
* ID of the promotion code to create a new discount for.
|
|
1004
1237
|
*/
|
|
@@ -1036,6 +1269,38 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1036
1269
|
*/
|
|
1037
1270
|
unit_amount_decimal?: Decimal;
|
|
1038
1271
|
}
|
|
1272
|
+
namespace Discount {
|
|
1273
|
+
interface DiscountEnd {
|
|
1274
|
+
/**
|
|
1275
|
+
* Time span for the redeemed discount.
|
|
1276
|
+
*/
|
|
1277
|
+
duration?: DiscountEnd.Duration;
|
|
1278
|
+
/**
|
|
1279
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1280
|
+
*/
|
|
1281
|
+
timestamp?: number;
|
|
1282
|
+
/**
|
|
1283
|
+
* The type of calculation made to determine when the discount ends.
|
|
1284
|
+
*/
|
|
1285
|
+
type: DiscountEnd.Type;
|
|
1286
|
+
}
|
|
1287
|
+
namespace DiscountEnd {
|
|
1288
|
+
interface Duration {
|
|
1289
|
+
/**
|
|
1290
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1291
|
+
*/
|
|
1292
|
+
interval: Duration.Interval;
|
|
1293
|
+
/**
|
|
1294
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1295
|
+
*/
|
|
1296
|
+
interval_count: number;
|
|
1297
|
+
}
|
|
1298
|
+
type Type = 'duration' | 'timestamp';
|
|
1299
|
+
namespace Duration {
|
|
1300
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1301
|
+
}
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1039
1304
|
namespace Period {
|
|
1040
1305
|
interface End {
|
|
1041
1306
|
/**
|
|
@@ -1083,6 +1348,38 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1083
1348
|
type Type = 'account' | 'self';
|
|
1084
1349
|
}
|
|
1085
1350
|
}
|
|
1351
|
+
namespace Discount {
|
|
1352
|
+
interface DiscountEnd {
|
|
1353
|
+
/**
|
|
1354
|
+
* Time span for the redeemed discount.
|
|
1355
|
+
*/
|
|
1356
|
+
duration?: DiscountEnd.Duration;
|
|
1357
|
+
/**
|
|
1358
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1359
|
+
*/
|
|
1360
|
+
timestamp?: number;
|
|
1361
|
+
/**
|
|
1362
|
+
* The type of calculation made to determine when the discount ends.
|
|
1363
|
+
*/
|
|
1364
|
+
type: DiscountEnd.Type;
|
|
1365
|
+
}
|
|
1366
|
+
namespace DiscountEnd {
|
|
1367
|
+
interface Duration {
|
|
1368
|
+
/**
|
|
1369
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1370
|
+
*/
|
|
1371
|
+
interval: Duration.Interval;
|
|
1372
|
+
/**
|
|
1373
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1374
|
+
*/
|
|
1375
|
+
interval_count: number;
|
|
1376
|
+
}
|
|
1377
|
+
type Type = 'duration' | 'timestamp';
|
|
1378
|
+
namespace Duration {
|
|
1379
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1086
1383
|
namespace Duration {
|
|
1087
1384
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1088
1385
|
}
|
|
@@ -1117,6 +1414,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1117
1414
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1118
1415
|
*/
|
|
1119
1416
|
discount?: string;
|
|
1417
|
+
/**
|
|
1418
|
+
* Details to determine how long the discount should be applied for.
|
|
1419
|
+
*/
|
|
1420
|
+
discount_end?: Discount.DiscountEnd;
|
|
1120
1421
|
/**
|
|
1121
1422
|
* ID of the promotion code to create a new discount for.
|
|
1122
1423
|
*/
|
|
@@ -1148,6 +1449,48 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1148
1449
|
*/
|
|
1149
1450
|
unit_amount_decimal?: Decimal;
|
|
1150
1451
|
}
|
|
1452
|
+
interface Trial {
|
|
1453
|
+
/**
|
|
1454
|
+
* 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.
|
|
1455
|
+
*/
|
|
1456
|
+
converts_to?: Array<string>;
|
|
1457
|
+
/**
|
|
1458
|
+
* Determines the type of trial for this item.
|
|
1459
|
+
*/
|
|
1460
|
+
type: Trial.Type;
|
|
1461
|
+
}
|
|
1462
|
+
namespace Discount {
|
|
1463
|
+
interface DiscountEnd {
|
|
1464
|
+
/**
|
|
1465
|
+
* Time span for the redeemed discount.
|
|
1466
|
+
*/
|
|
1467
|
+
duration?: DiscountEnd.Duration;
|
|
1468
|
+
/**
|
|
1469
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1470
|
+
*/
|
|
1471
|
+
timestamp?: number;
|
|
1472
|
+
/**
|
|
1473
|
+
* The type of calculation made to determine when the discount ends.
|
|
1474
|
+
*/
|
|
1475
|
+
type: DiscountEnd.Type;
|
|
1476
|
+
}
|
|
1477
|
+
namespace DiscountEnd {
|
|
1478
|
+
interface Duration {
|
|
1479
|
+
/**
|
|
1480
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1481
|
+
*/
|
|
1482
|
+
interval: Duration.Interval;
|
|
1483
|
+
/**
|
|
1484
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1485
|
+
*/
|
|
1486
|
+
interval_count: number;
|
|
1487
|
+
}
|
|
1488
|
+
type Type = 'duration' | 'timestamp';
|
|
1489
|
+
namespace Duration {
|
|
1490
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1151
1494
|
namespace PriceData {
|
|
1152
1495
|
interface Recurring {
|
|
1153
1496
|
/**
|
|
@@ -1164,8 +1507,28 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1164
1507
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1165
1508
|
}
|
|
1166
1509
|
}
|
|
1510
|
+
namespace Trial {
|
|
1511
|
+
type Type = 'free' | 'paid';
|
|
1512
|
+
}
|
|
1513
|
+
}
|
|
1514
|
+
namespace PauseCollection {
|
|
1515
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
1516
|
+
}
|
|
1517
|
+
namespace TrialSettings {
|
|
1518
|
+
interface EndBehavior {
|
|
1519
|
+
/**
|
|
1520
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
1521
|
+
*/
|
|
1522
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
1523
|
+
}
|
|
1524
|
+
namespace EndBehavior {
|
|
1525
|
+
type ProrateUpFront = 'defer' | 'include';
|
|
1526
|
+
}
|
|
1167
1527
|
}
|
|
1168
1528
|
}
|
|
1529
|
+
namespace Prebilling {
|
|
1530
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
1531
|
+
}
|
|
1169
1532
|
}
|
|
1170
1533
|
export interface SubscriptionScheduleRetrieveParams {
|
|
1171
1534
|
/**
|
|
@@ -1174,6 +1537,10 @@ export interface SubscriptionScheduleRetrieveParams {
|
|
|
1174
1537
|
expand?: Array<string>;
|
|
1175
1538
|
}
|
|
1176
1539
|
export interface SubscriptionScheduleUpdateParams {
|
|
1540
|
+
/**
|
|
1541
|
+
* Configures when the subscription schedule generates prorations for phase transitions. Possible values are `prorate_on_next_phase` or `prorate_up_front` with the default being `prorate_on_next_phase`. `prorate_on_next_phase` will apply phase changes and generate prorations at transition time. `prorate_up_front` will bill for all phases within the current billing cycle up front.
|
|
1542
|
+
*/
|
|
1543
|
+
billing_behavior?: SubscriptionScheduleUpdateParams.BillingBehavior;
|
|
1177
1544
|
/**
|
|
1178
1545
|
* Object representing the subscription schedule's default settings.
|
|
1179
1546
|
*/
|
|
@@ -1194,12 +1561,17 @@ export interface SubscriptionScheduleUpdateParams {
|
|
|
1194
1561
|
* List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase. Note that past phases can be omitted.
|
|
1195
1562
|
*/
|
|
1196
1563
|
phases?: Array<SubscriptionScheduleUpdateParams.Phase>;
|
|
1564
|
+
/**
|
|
1565
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1566
|
+
*/
|
|
1567
|
+
prebilling?: SubscriptionScheduleUpdateParams.Prebilling;
|
|
1197
1568
|
/**
|
|
1198
1569
|
* If the update changes the billing configuration (item price, quantity, etc.) of the current phase, indicates how prorations from this change should be handled. The default value is `create_prorations`.
|
|
1199
1570
|
*/
|
|
1200
1571
|
proration_behavior?: SubscriptionScheduleUpdateParams.ProrationBehavior;
|
|
1201
1572
|
}
|
|
1202
1573
|
export declare namespace SubscriptionScheduleUpdateParams {
|
|
1574
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
1203
1575
|
interface DefaultSettings {
|
|
1204
1576
|
/**
|
|
1205
1577
|
* 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 application owner's Stripe account. The request must be made by a platform account on a connected account in order to set an application fee percentage. For more information, see the application fees [documentation](https://stripe.com/docs/connect/subscriptions#collecting-fees-on-subscriptions).
|
|
@@ -1312,6 +1684,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1312
1684
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
1313
1685
|
*/
|
|
1314
1686
|
on_behalf_of?: string;
|
|
1687
|
+
/**
|
|
1688
|
+
* If specified, payment collection for this subscription will be paused. Note that the subscription status will be unchanged and will not be updated to `paused`. Learn more about [pausing collection](https://docs.stripe.com/billing/subscriptions/pause-payment).
|
|
1689
|
+
*/
|
|
1690
|
+
pause_collection?: Phase.PauseCollection;
|
|
1315
1691
|
/**
|
|
1316
1692
|
* Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
|
1317
1693
|
*/
|
|
@@ -1328,10 +1704,28 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1328
1704
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
1329
1705
|
*/
|
|
1330
1706
|
trial?: boolean;
|
|
1707
|
+
/**
|
|
1708
|
+
* Specify trial behavior when crossing phase boundaries
|
|
1709
|
+
*/
|
|
1710
|
+
trial_continuation?: Phase.TrialContinuation;
|
|
1331
1711
|
/**
|
|
1332
1712
|
* Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
|
|
1333
1713
|
*/
|
|
1334
1714
|
trial_end?: number | 'now';
|
|
1715
|
+
/**
|
|
1716
|
+
* Settings related to subscription trials.
|
|
1717
|
+
*/
|
|
1718
|
+
trial_settings?: Phase.TrialSettings;
|
|
1719
|
+
}
|
|
1720
|
+
interface Prebilling {
|
|
1721
|
+
/**
|
|
1722
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
1723
|
+
*/
|
|
1724
|
+
iterations: number;
|
|
1725
|
+
/**
|
|
1726
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1727
|
+
*/
|
|
1728
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
1335
1729
|
}
|
|
1336
1730
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1337
1731
|
namespace DefaultSettings {
|
|
@@ -1478,6 +1872,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1478
1872
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1479
1873
|
*/
|
|
1480
1874
|
discount?: string;
|
|
1875
|
+
/**
|
|
1876
|
+
* Details to determine how long the discount should be applied for.
|
|
1877
|
+
*/
|
|
1878
|
+
discount_end?: Discount.DiscountEnd;
|
|
1481
1879
|
/**
|
|
1482
1880
|
* ID of the promotion code to create a new discount for.
|
|
1483
1881
|
*/
|
|
@@ -1540,6 +1938,20 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1540
1938
|
* 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.
|
|
1541
1939
|
*/
|
|
1542
1940
|
tax_rates?: Emptyable<Array<string>>;
|
|
1941
|
+
/**
|
|
1942
|
+
* Options that configure the trial on the subscription item.
|
|
1943
|
+
*/
|
|
1944
|
+
trial?: Item.Trial;
|
|
1945
|
+
/**
|
|
1946
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
1947
|
+
*/
|
|
1948
|
+
trial_offer?: string;
|
|
1949
|
+
}
|
|
1950
|
+
interface PauseCollection {
|
|
1951
|
+
/**
|
|
1952
|
+
* The payment collection behavior for this subscription while paused.
|
|
1953
|
+
*/
|
|
1954
|
+
behavior: PauseCollection.Behavior;
|
|
1543
1955
|
}
|
|
1544
1956
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1545
1957
|
interface TransferData {
|
|
@@ -1552,6 +1964,13 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1552
1964
|
*/
|
|
1553
1965
|
destination: string;
|
|
1554
1966
|
}
|
|
1967
|
+
type TrialContinuation = 'continue' | 'none';
|
|
1968
|
+
interface TrialSettings {
|
|
1969
|
+
/**
|
|
1970
|
+
* Defines how the subscription should behave when a trial ends.
|
|
1971
|
+
*/
|
|
1972
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
1973
|
+
}
|
|
1555
1974
|
namespace AddInvoiceItem {
|
|
1556
1975
|
interface Discount {
|
|
1557
1976
|
/**
|
|
@@ -1562,6 +1981,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1562
1981
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1563
1982
|
*/
|
|
1564
1983
|
discount?: string;
|
|
1984
|
+
/**
|
|
1985
|
+
* Details to determine how long the discount should be applied for.
|
|
1986
|
+
*/
|
|
1987
|
+
discount_end?: Discount.DiscountEnd;
|
|
1565
1988
|
/**
|
|
1566
1989
|
* ID of the promotion code to create a new discount for.
|
|
1567
1990
|
*/
|
|
@@ -1599,6 +2022,38 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1599
2022
|
*/
|
|
1600
2023
|
unit_amount_decimal?: Decimal;
|
|
1601
2024
|
}
|
|
2025
|
+
namespace Discount {
|
|
2026
|
+
interface DiscountEnd {
|
|
2027
|
+
/**
|
|
2028
|
+
* Time span for the redeemed discount.
|
|
2029
|
+
*/
|
|
2030
|
+
duration?: DiscountEnd.Duration;
|
|
2031
|
+
/**
|
|
2032
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2033
|
+
*/
|
|
2034
|
+
timestamp?: number;
|
|
2035
|
+
/**
|
|
2036
|
+
* The type of calculation made to determine when the discount ends.
|
|
2037
|
+
*/
|
|
2038
|
+
type: DiscountEnd.Type;
|
|
2039
|
+
}
|
|
2040
|
+
namespace DiscountEnd {
|
|
2041
|
+
interface Duration {
|
|
2042
|
+
/**
|
|
2043
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2044
|
+
*/
|
|
2045
|
+
interval: Duration.Interval;
|
|
2046
|
+
/**
|
|
2047
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2048
|
+
*/
|
|
2049
|
+
interval_count: number;
|
|
2050
|
+
}
|
|
2051
|
+
type Type = 'duration' | 'timestamp';
|
|
2052
|
+
namespace Duration {
|
|
2053
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2054
|
+
}
|
|
2055
|
+
}
|
|
2056
|
+
}
|
|
1602
2057
|
namespace Period {
|
|
1603
2058
|
interface End {
|
|
1604
2059
|
/**
|
|
@@ -1646,6 +2101,38 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1646
2101
|
type Type = 'account' | 'self';
|
|
1647
2102
|
}
|
|
1648
2103
|
}
|
|
2104
|
+
namespace Discount {
|
|
2105
|
+
interface DiscountEnd {
|
|
2106
|
+
/**
|
|
2107
|
+
* Time span for the redeemed discount.
|
|
2108
|
+
*/
|
|
2109
|
+
duration?: DiscountEnd.Duration;
|
|
2110
|
+
/**
|
|
2111
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2112
|
+
*/
|
|
2113
|
+
timestamp?: number;
|
|
2114
|
+
/**
|
|
2115
|
+
* The type of calculation made to determine when the discount ends.
|
|
2116
|
+
*/
|
|
2117
|
+
type: DiscountEnd.Type;
|
|
2118
|
+
}
|
|
2119
|
+
namespace DiscountEnd {
|
|
2120
|
+
interface Duration {
|
|
2121
|
+
/**
|
|
2122
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2123
|
+
*/
|
|
2124
|
+
interval: Duration.Interval;
|
|
2125
|
+
/**
|
|
2126
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2127
|
+
*/
|
|
2128
|
+
interval_count: number;
|
|
2129
|
+
}
|
|
2130
|
+
type Type = 'duration' | 'timestamp';
|
|
2131
|
+
namespace Duration {
|
|
2132
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
}
|
|
1649
2136
|
namespace Duration {
|
|
1650
2137
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1651
2138
|
}
|
|
@@ -1680,6 +2167,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1680
2167
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1681
2168
|
*/
|
|
1682
2169
|
discount?: string;
|
|
2170
|
+
/**
|
|
2171
|
+
* Details to determine how long the discount should be applied for.
|
|
2172
|
+
*/
|
|
2173
|
+
discount_end?: Discount.DiscountEnd;
|
|
1683
2174
|
/**
|
|
1684
2175
|
* ID of the promotion code to create a new discount for.
|
|
1685
2176
|
*/
|
|
@@ -1711,6 +2202,48 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1711
2202
|
*/
|
|
1712
2203
|
unit_amount_decimal?: Decimal;
|
|
1713
2204
|
}
|
|
2205
|
+
interface Trial {
|
|
2206
|
+
/**
|
|
2207
|
+
* 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.
|
|
2208
|
+
*/
|
|
2209
|
+
converts_to?: Array<string>;
|
|
2210
|
+
/**
|
|
2211
|
+
* Determines the type of trial for this item.
|
|
2212
|
+
*/
|
|
2213
|
+
type: Trial.Type;
|
|
2214
|
+
}
|
|
2215
|
+
namespace Discount {
|
|
2216
|
+
interface DiscountEnd {
|
|
2217
|
+
/**
|
|
2218
|
+
* Time span for the redeemed discount.
|
|
2219
|
+
*/
|
|
2220
|
+
duration?: DiscountEnd.Duration;
|
|
2221
|
+
/**
|
|
2222
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2223
|
+
*/
|
|
2224
|
+
timestamp?: number;
|
|
2225
|
+
/**
|
|
2226
|
+
* The type of calculation made to determine when the discount ends.
|
|
2227
|
+
*/
|
|
2228
|
+
type: DiscountEnd.Type;
|
|
2229
|
+
}
|
|
2230
|
+
namespace DiscountEnd {
|
|
2231
|
+
interface Duration {
|
|
2232
|
+
/**
|
|
2233
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2234
|
+
*/
|
|
2235
|
+
interval: Duration.Interval;
|
|
2236
|
+
/**
|
|
2237
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2238
|
+
*/
|
|
2239
|
+
interval_count: number;
|
|
2240
|
+
}
|
|
2241
|
+
type Type = 'duration' | 'timestamp';
|
|
2242
|
+
namespace Duration {
|
|
2243
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
1714
2247
|
namespace PriceData {
|
|
1715
2248
|
interface Recurring {
|
|
1716
2249
|
/**
|
|
@@ -1727,8 +2260,28 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1727
2260
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1728
2261
|
}
|
|
1729
2262
|
}
|
|
2263
|
+
namespace Trial {
|
|
2264
|
+
type Type = 'free' | 'paid';
|
|
2265
|
+
}
|
|
2266
|
+
}
|
|
2267
|
+
namespace PauseCollection {
|
|
2268
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
2269
|
+
}
|
|
2270
|
+
namespace TrialSettings {
|
|
2271
|
+
interface EndBehavior {
|
|
2272
|
+
/**
|
|
2273
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
2274
|
+
*/
|
|
2275
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
2276
|
+
}
|
|
2277
|
+
namespace EndBehavior {
|
|
2278
|
+
type ProrateUpFront = 'defer' | 'include';
|
|
2279
|
+
}
|
|
1730
2280
|
}
|
|
1731
2281
|
}
|
|
2282
|
+
namespace Prebilling {
|
|
2283
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
2284
|
+
}
|
|
1732
2285
|
}
|
|
1733
2286
|
export interface SubscriptionScheduleListParams extends PaginationParams {
|
|
1734
2287
|
/**
|
|
@@ -1764,6 +2317,605 @@ export interface SubscriptionScheduleListParams extends PaginationParams {
|
|
|
1764
2317
|
*/
|
|
1765
2318
|
scheduled?: boolean;
|
|
1766
2319
|
}
|
|
2320
|
+
export interface SubscriptionScheduleAmendParams {
|
|
2321
|
+
/**
|
|
2322
|
+
* Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
2323
|
+
*/
|
|
2324
|
+
amendments?: Array<SubscriptionScheduleAmendParams.Amendment>;
|
|
2325
|
+
/**
|
|
2326
|
+
* Specifies which fields in the response should be expanded.
|
|
2327
|
+
*/
|
|
2328
|
+
expand?: Array<string>;
|
|
2329
|
+
/**
|
|
2330
|
+
* Provide any time periods to bill in advance.
|
|
2331
|
+
*/
|
|
2332
|
+
prebilling?: Emptyable<Array<SubscriptionScheduleAmendParams.Prebilling>>;
|
|
2333
|
+
/**
|
|
2334
|
+
* In cases where the amendment changes the currently active phase,
|
|
2335
|
+
* specifies if and how to prorate at the time of the request.
|
|
2336
|
+
*/
|
|
2337
|
+
proration_behavior?: SubscriptionScheduleAmendParams.ProrationBehavior;
|
|
2338
|
+
/**
|
|
2339
|
+
* Changes to apply to the subscription schedule.
|
|
2340
|
+
*/
|
|
2341
|
+
schedule_settings?: SubscriptionScheduleAmendParams.ScheduleSettings;
|
|
2342
|
+
}
|
|
2343
|
+
export declare namespace SubscriptionScheduleAmendParams {
|
|
2344
|
+
interface Amendment {
|
|
2345
|
+
/**
|
|
2346
|
+
* Details to identify the end of the time range modified by the proposed change. If not supplied, the amendment is considered a point-in-time operation that only affects the exact timestamp at `amendment_start`, and a restricted set of attributes is supported on the amendment.
|
|
2347
|
+
*/
|
|
2348
|
+
amendment_end?: Amendment.AmendmentEnd;
|
|
2349
|
+
/**
|
|
2350
|
+
* Details to identify the earliest timestamp where the proposed change should take effect.
|
|
2351
|
+
*/
|
|
2352
|
+
amendment_start: Amendment.AmendmentStart;
|
|
2353
|
+
/**
|
|
2354
|
+
* For point-in-time amendments (having no `amendment_end`), this attribute lets you set or remove whether the subscription's billing cycle anchor is reset at the `amendment_start` timestamp.For time-span based amendments (having both `amendment_start` and `amendment_end`), the only value valid is `automatic`, which removes any previously configured billing cycle anchor resets scheduled to occur during the window of time spanned by the amendment.
|
|
2355
|
+
*/
|
|
2356
|
+
billing_cycle_anchor?: Amendment.BillingCycleAnchor;
|
|
2357
|
+
/**
|
|
2358
|
+
* Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
2359
|
+
*/
|
|
2360
|
+
discount_actions?: Array<Amendment.DiscountAction>;
|
|
2361
|
+
/**
|
|
2362
|
+
* Changes to the subscription items during the amendment time span.
|
|
2363
|
+
*/
|
|
2364
|
+
item_actions?: Array<Amendment.ItemAction>;
|
|
2365
|
+
/**
|
|
2366
|
+
* Instructions for how to modify phase metadata
|
|
2367
|
+
*/
|
|
2368
|
+
metadata_actions?: Array<Amendment.MetadataAction>;
|
|
2369
|
+
/**
|
|
2370
|
+
* Changes to how Stripe handles prorations during the amendment time span. Affects if and how prorations are created when a future phase starts. In cases where the amendment changes the currently active phase, it is used to determine whether or how to prorate now, at the time of the request. Also supported as a point-in-time operation when `amendment_end` is `null`.
|
|
2371
|
+
*/
|
|
2372
|
+
proration_behavior?: Amendment.ProrationBehavior;
|
|
2373
|
+
/**
|
|
2374
|
+
* Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
2375
|
+
*/
|
|
2376
|
+
set_pause_collection?: Amendment.SetPauseCollection;
|
|
2377
|
+
/**
|
|
2378
|
+
* Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
2379
|
+
*/
|
|
2380
|
+
set_schedule_end?: Amendment.SetScheduleEnd;
|
|
2381
|
+
/**
|
|
2382
|
+
* Settings related to subscription trials.
|
|
2383
|
+
*/
|
|
2384
|
+
trial_settings?: Amendment.TrialSettings;
|
|
2385
|
+
}
|
|
2386
|
+
interface Prebilling {
|
|
2387
|
+
/**
|
|
2388
|
+
* The beginning of the prebilled time period. The default value is `now`.
|
|
2389
|
+
*/
|
|
2390
|
+
bill_from?: Prebilling.BillFrom;
|
|
2391
|
+
/**
|
|
2392
|
+
* The end of the prebilled time period.
|
|
2393
|
+
*/
|
|
2394
|
+
bill_until?: Prebilling.BillUntil;
|
|
2395
|
+
/**
|
|
2396
|
+
* When the prebilling invoice should be created. The default value is `now`.
|
|
2397
|
+
*/
|
|
2398
|
+
invoice_at?: 'now';
|
|
2399
|
+
/**
|
|
2400
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
2401
|
+
*/
|
|
2402
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
2403
|
+
}
|
|
2404
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
2405
|
+
interface ScheduleSettings {
|
|
2406
|
+
/**
|
|
2407
|
+
* Behavior of the subscription schedule and underlying subscription when it ends.
|
|
2408
|
+
*/
|
|
2409
|
+
end_behavior?: ScheduleSettings.EndBehavior;
|
|
2410
|
+
}
|
|
2411
|
+
namespace Amendment {
|
|
2412
|
+
interface AmendmentEnd {
|
|
2413
|
+
/**
|
|
2414
|
+
* Use the `end` time of a given discount.
|
|
2415
|
+
*/
|
|
2416
|
+
discount_end?: AmendmentEnd.DiscountEnd;
|
|
2417
|
+
/**
|
|
2418
|
+
* Time span for the amendment starting from the `amendment_start`.
|
|
2419
|
+
*/
|
|
2420
|
+
duration?: AmendmentEnd.Duration;
|
|
2421
|
+
/**
|
|
2422
|
+
* A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
2423
|
+
*/
|
|
2424
|
+
timestamp?: number;
|
|
2425
|
+
/**
|
|
2426
|
+
* Select one of three ways to pass the `amendment_end`.
|
|
2427
|
+
*/
|
|
2428
|
+
type: AmendmentEnd.Type;
|
|
2429
|
+
}
|
|
2430
|
+
interface AmendmentStart {
|
|
2431
|
+
/**
|
|
2432
|
+
* Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
2433
|
+
*/
|
|
2434
|
+
amendment_end?: AmendmentStart.AmendmentEnd;
|
|
2435
|
+
/**
|
|
2436
|
+
* Use the `end` time of a given discount.
|
|
2437
|
+
*/
|
|
2438
|
+
discount_end?: AmendmentStart.DiscountEnd;
|
|
2439
|
+
/**
|
|
2440
|
+
* A precise Unix timestamp for the amendment to start.
|
|
2441
|
+
*/
|
|
2442
|
+
timestamp?: number;
|
|
2443
|
+
/**
|
|
2444
|
+
* Select one of three ways to pass the `amendment_start`.
|
|
2445
|
+
*/
|
|
2446
|
+
type: AmendmentStart.Type;
|
|
2447
|
+
}
|
|
2448
|
+
type BillingCycleAnchor = 'amendment_start' | 'automatic';
|
|
2449
|
+
interface DiscountAction {
|
|
2450
|
+
/**
|
|
2451
|
+
* Details of the discount to add.
|
|
2452
|
+
*/
|
|
2453
|
+
add?: DiscountAction.Add;
|
|
2454
|
+
/**
|
|
2455
|
+
* Details of the discount to remove.
|
|
2456
|
+
*/
|
|
2457
|
+
remove?: DiscountAction.Remove;
|
|
2458
|
+
/**
|
|
2459
|
+
* Details of the discount to replace the existing discounts with.
|
|
2460
|
+
*/
|
|
2461
|
+
set?: DiscountAction.Set;
|
|
2462
|
+
/**
|
|
2463
|
+
* Determines the type of discount action.
|
|
2464
|
+
*/
|
|
2465
|
+
type: DiscountAction.Type;
|
|
2466
|
+
}
|
|
2467
|
+
interface ItemAction {
|
|
2468
|
+
/**
|
|
2469
|
+
* Details of the subscription item to add. If an item with the same `price` exists, it will be replaced by this new item. Otherwise, it adds the new item.
|
|
2470
|
+
*/
|
|
2471
|
+
add?: ItemAction.Add;
|
|
2472
|
+
/**
|
|
2473
|
+
* Details of the subscription item to remove.
|
|
2474
|
+
*/
|
|
2475
|
+
remove?: ItemAction.Remove;
|
|
2476
|
+
/**
|
|
2477
|
+
* Details of the subscription item to replace the existing items with. If an item with the `set[price]` already exists, the `items` array is not cleared. Instead, all of the other `set` properties that are passed in this request will replace the existing values for the configuration item.
|
|
2478
|
+
*/
|
|
2479
|
+
set?: ItemAction.Set;
|
|
2480
|
+
/**
|
|
2481
|
+
* Determines the type of item action.
|
|
2482
|
+
*/
|
|
2483
|
+
type: ItemAction.Type;
|
|
2484
|
+
}
|
|
2485
|
+
interface MetadataAction {
|
|
2486
|
+
/**
|
|
2487
|
+
* Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
2488
|
+
*/
|
|
2489
|
+
add?: {
|
|
2490
|
+
[key: string]: string;
|
|
2491
|
+
};
|
|
2492
|
+
/**
|
|
2493
|
+
* Keys to remove from schedule phase metadata.
|
|
2494
|
+
*/
|
|
2495
|
+
remove?: Array<string>;
|
|
2496
|
+
/**
|
|
2497
|
+
* Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
2498
|
+
*/
|
|
2499
|
+
set?: Emptyable<{
|
|
2500
|
+
[key: string]: string;
|
|
2501
|
+
}>;
|
|
2502
|
+
/**
|
|
2503
|
+
* Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
2504
|
+
*/
|
|
2505
|
+
type: MetadataAction.Type;
|
|
2506
|
+
}
|
|
2507
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
2508
|
+
interface SetPauseCollection {
|
|
2509
|
+
/**
|
|
2510
|
+
* Details of the pause_collection behavior to apply to the amendment.
|
|
2511
|
+
*/
|
|
2512
|
+
set?: SetPauseCollection.Set;
|
|
2513
|
+
/**
|
|
2514
|
+
* Determines the type of the pause_collection amendment.
|
|
2515
|
+
*/
|
|
2516
|
+
type: SetPauseCollection.Type;
|
|
2517
|
+
}
|
|
2518
|
+
type SetScheduleEnd = 'amendment_end' | 'amendment_start';
|
|
2519
|
+
interface TrialSettings {
|
|
2520
|
+
/**
|
|
2521
|
+
* Defines how the subscription should behave when a trial ends.
|
|
2522
|
+
*/
|
|
2523
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
2524
|
+
}
|
|
2525
|
+
namespace AmendmentEnd {
|
|
2526
|
+
interface DiscountEnd {
|
|
2527
|
+
/**
|
|
2528
|
+
* The ID of a specific discount.
|
|
2529
|
+
*/
|
|
2530
|
+
discount: string;
|
|
2531
|
+
}
|
|
2532
|
+
interface Duration {
|
|
2533
|
+
/**
|
|
2534
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2535
|
+
*/
|
|
2536
|
+
interval: Duration.Interval;
|
|
2537
|
+
/**
|
|
2538
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2539
|
+
*/
|
|
2540
|
+
interval_count: number;
|
|
2541
|
+
}
|
|
2542
|
+
type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
|
|
2543
|
+
namespace Duration {
|
|
2544
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2545
|
+
}
|
|
2546
|
+
}
|
|
2547
|
+
namespace AmendmentStart {
|
|
2548
|
+
interface AmendmentEnd {
|
|
2549
|
+
/**
|
|
2550
|
+
* The position of the previous amendment in the `amendments` array after which this amendment should begin. Indexes start from 0 and must be less than the index of the current amendment in the array.
|
|
2551
|
+
*/
|
|
2552
|
+
index: number;
|
|
2553
|
+
}
|
|
2554
|
+
interface DiscountEnd {
|
|
2555
|
+
/**
|
|
2556
|
+
* The ID of a specific discount.
|
|
2557
|
+
*/
|
|
2558
|
+
discount: string;
|
|
2559
|
+
}
|
|
2560
|
+
type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
|
|
2561
|
+
}
|
|
2562
|
+
namespace DiscountAction {
|
|
2563
|
+
interface Add {
|
|
2564
|
+
/**
|
|
2565
|
+
* The coupon code to redeem.
|
|
2566
|
+
*/
|
|
2567
|
+
coupon?: string;
|
|
2568
|
+
/**
|
|
2569
|
+
* An ID of an existing discount for a coupon that was already redeemed.
|
|
2570
|
+
*/
|
|
2571
|
+
discount?: string;
|
|
2572
|
+
/**
|
|
2573
|
+
* Details to determine how long the discount should be applied for.
|
|
2574
|
+
*/
|
|
2575
|
+
discount_end?: Add.DiscountEnd;
|
|
2576
|
+
/**
|
|
2577
|
+
* The index, starting at 0, at which to position the new discount. When not supplied, Stripe defaults to appending the discount to the end of the `discounts` array.
|
|
2578
|
+
*/
|
|
2579
|
+
index?: number;
|
|
2580
|
+
/**
|
|
2581
|
+
* The promotion code to redeem.
|
|
2582
|
+
*/
|
|
2583
|
+
promotion_code?: string;
|
|
2584
|
+
}
|
|
2585
|
+
interface Remove {
|
|
2586
|
+
/**
|
|
2587
|
+
* The coupon code to remove from the `discounts` array.
|
|
2588
|
+
*/
|
|
2589
|
+
coupon?: string;
|
|
2590
|
+
/**
|
|
2591
|
+
* The ID of a discount to remove from the `discounts` array.
|
|
2592
|
+
*/
|
|
2593
|
+
discount?: string;
|
|
2594
|
+
/**
|
|
2595
|
+
* The ID of a promotion code to remove from the `discounts` array.
|
|
2596
|
+
*/
|
|
2597
|
+
promotion_code?: string;
|
|
2598
|
+
}
|
|
2599
|
+
interface Set {
|
|
2600
|
+
/**
|
|
2601
|
+
* The coupon code to replace the `discounts` array with.
|
|
2602
|
+
*/
|
|
2603
|
+
coupon?: string;
|
|
2604
|
+
/**
|
|
2605
|
+
* An ID of an existing discount to replace the `discounts` array with.
|
|
2606
|
+
*/
|
|
2607
|
+
discount?: string;
|
|
2608
|
+
/**
|
|
2609
|
+
* An ID of an existing promotion code to replace the `discounts` array with.
|
|
2610
|
+
*/
|
|
2611
|
+
promotion_code?: string;
|
|
2612
|
+
}
|
|
2613
|
+
type Type = 'add' | 'remove' | 'set';
|
|
2614
|
+
namespace Add {
|
|
2615
|
+
interface DiscountEnd {
|
|
2616
|
+
/**
|
|
2617
|
+
* The type of calculation made to determine when the discount ends.
|
|
2618
|
+
*/
|
|
2619
|
+
type: 'amendment_end';
|
|
2620
|
+
}
|
|
2621
|
+
}
|
|
2622
|
+
}
|
|
2623
|
+
namespace ItemAction {
|
|
2624
|
+
interface Add {
|
|
2625
|
+
/**
|
|
2626
|
+
* The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
2627
|
+
*/
|
|
2628
|
+
discounts?: Array<Add.Discount>;
|
|
2629
|
+
/**
|
|
2630
|
+
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2631
|
+
*/
|
|
2632
|
+
metadata?: MetadataParam;
|
|
2633
|
+
/**
|
|
2634
|
+
* The ID of the price object.
|
|
2635
|
+
*/
|
|
2636
|
+
price: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* Quantity for this item.
|
|
2639
|
+
*/
|
|
2640
|
+
quantity?: number;
|
|
2641
|
+
/**
|
|
2642
|
+
* The tax rates that apply to this subscription item. When set, the `default_tax_rates` on the subscription do not apply to this `subscription_item`.
|
|
2643
|
+
*/
|
|
2644
|
+
tax_rates?: Array<string>;
|
|
2645
|
+
/**
|
|
2646
|
+
* Options that configure the trial on the subscription item.
|
|
2647
|
+
*/
|
|
2648
|
+
trial?: Add.Trial;
|
|
2649
|
+
/**
|
|
2650
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
2651
|
+
*/
|
|
2652
|
+
trial_offer?: string;
|
|
2653
|
+
}
|
|
2654
|
+
interface Remove {
|
|
2655
|
+
/**
|
|
2656
|
+
* ID of a price to remove.
|
|
2657
|
+
*/
|
|
2658
|
+
price: string;
|
|
2659
|
+
}
|
|
2660
|
+
interface Set {
|
|
2661
|
+
/**
|
|
2662
|
+
* If an item with the `price` already exists, passing this will override the `discounts` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `discounts`.
|
|
2663
|
+
*/
|
|
2664
|
+
discounts?: Array<Set.Discount>;
|
|
2665
|
+
/**
|
|
2666
|
+
* If an item with the `price` already exists, passing this will override the `metadata` on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `metadata`.
|
|
2667
|
+
*/
|
|
2668
|
+
metadata?: MetadataParam;
|
|
2669
|
+
/**
|
|
2670
|
+
* The ID of the price object.
|
|
2671
|
+
*/
|
|
2672
|
+
price: string;
|
|
2673
|
+
/**
|
|
2674
|
+
* If an item with the `price` already exists, passing this will override the quantity on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `quantity`.
|
|
2675
|
+
*/
|
|
2676
|
+
quantity?: number;
|
|
2677
|
+
/**
|
|
2678
|
+
* If an item with the `price` already exists, passing this will override the `tax_rates` array on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `tax_rates`.
|
|
2679
|
+
*/
|
|
2680
|
+
tax_rates?: Array<string>;
|
|
2681
|
+
/**
|
|
2682
|
+
* If an item with the `price` already exists, passing this will override the `trial` configuration on the subscription item that matches that price. Otherwise, the `items` array is cleared and a single new item is added with the supplied `trial`.
|
|
2683
|
+
*/
|
|
2684
|
+
trial?: Set.Trial;
|
|
2685
|
+
/**
|
|
2686
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
2687
|
+
*/
|
|
2688
|
+
trial_offer?: string;
|
|
2689
|
+
}
|
|
2690
|
+
type Type = 'add' | 'remove' | 'set';
|
|
2691
|
+
namespace Add {
|
|
2692
|
+
interface Discount {
|
|
2693
|
+
/**
|
|
2694
|
+
* ID of the coupon to create a new discount for.
|
|
2695
|
+
*/
|
|
2696
|
+
coupon?: string;
|
|
2697
|
+
/**
|
|
2698
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2699
|
+
*/
|
|
2700
|
+
discount?: string;
|
|
2701
|
+
/**
|
|
2702
|
+
* Details to determine how long the discount should be applied for.
|
|
2703
|
+
*/
|
|
2704
|
+
discount_end?: Discount.DiscountEnd;
|
|
2705
|
+
/**
|
|
2706
|
+
* ID of the promotion code to create a new discount for.
|
|
2707
|
+
*/
|
|
2708
|
+
promotion_code?: string;
|
|
2709
|
+
}
|
|
2710
|
+
interface Trial {
|
|
2711
|
+
/**
|
|
2712
|
+
* 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.
|
|
2713
|
+
*/
|
|
2714
|
+
converts_to?: Array<string>;
|
|
2715
|
+
/**
|
|
2716
|
+
* Determines the type of trial for this item.
|
|
2717
|
+
*/
|
|
2718
|
+
type: Trial.Type;
|
|
2719
|
+
}
|
|
2720
|
+
namespace Discount {
|
|
2721
|
+
interface DiscountEnd {
|
|
2722
|
+
/**
|
|
2723
|
+
* Time span for the redeemed discount.
|
|
2724
|
+
*/
|
|
2725
|
+
duration?: DiscountEnd.Duration;
|
|
2726
|
+
/**
|
|
2727
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2728
|
+
*/
|
|
2729
|
+
timestamp?: number;
|
|
2730
|
+
/**
|
|
2731
|
+
* The type of calculation made to determine when the discount ends.
|
|
2732
|
+
*/
|
|
2733
|
+
type: DiscountEnd.Type;
|
|
2734
|
+
}
|
|
2735
|
+
namespace DiscountEnd {
|
|
2736
|
+
interface Duration {
|
|
2737
|
+
/**
|
|
2738
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2739
|
+
*/
|
|
2740
|
+
interval: Duration.Interval;
|
|
2741
|
+
/**
|
|
2742
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2743
|
+
*/
|
|
2744
|
+
interval_count: number;
|
|
2745
|
+
}
|
|
2746
|
+
type Type = 'duration' | 'timestamp';
|
|
2747
|
+
namespace Duration {
|
|
2748
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2749
|
+
}
|
|
2750
|
+
}
|
|
2751
|
+
}
|
|
2752
|
+
namespace Trial {
|
|
2753
|
+
type Type = 'free' | 'paid';
|
|
2754
|
+
}
|
|
2755
|
+
}
|
|
2756
|
+
namespace Set {
|
|
2757
|
+
interface Discount {
|
|
2758
|
+
/**
|
|
2759
|
+
* ID of the coupon to create a new discount for.
|
|
2760
|
+
*/
|
|
2761
|
+
coupon?: string;
|
|
2762
|
+
/**
|
|
2763
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2764
|
+
*/
|
|
2765
|
+
discount?: string;
|
|
2766
|
+
/**
|
|
2767
|
+
* Details to determine how long the discount should be applied for.
|
|
2768
|
+
*/
|
|
2769
|
+
discount_end?: Discount.DiscountEnd;
|
|
2770
|
+
/**
|
|
2771
|
+
* ID of the promotion code to create a new discount for.
|
|
2772
|
+
*/
|
|
2773
|
+
promotion_code?: string;
|
|
2774
|
+
}
|
|
2775
|
+
interface Trial {
|
|
2776
|
+
/**
|
|
2777
|
+
* 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.
|
|
2778
|
+
*/
|
|
2779
|
+
converts_to?: Array<string>;
|
|
2780
|
+
/**
|
|
2781
|
+
* Determines the type of trial for this item.
|
|
2782
|
+
*/
|
|
2783
|
+
type: Trial.Type;
|
|
2784
|
+
}
|
|
2785
|
+
namespace Discount {
|
|
2786
|
+
interface DiscountEnd {
|
|
2787
|
+
/**
|
|
2788
|
+
* Time span for the redeemed discount.
|
|
2789
|
+
*/
|
|
2790
|
+
duration?: DiscountEnd.Duration;
|
|
2791
|
+
/**
|
|
2792
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2793
|
+
*/
|
|
2794
|
+
timestamp?: number;
|
|
2795
|
+
/**
|
|
2796
|
+
* The type of calculation made to determine when the discount ends.
|
|
2797
|
+
*/
|
|
2798
|
+
type: DiscountEnd.Type;
|
|
2799
|
+
}
|
|
2800
|
+
namespace DiscountEnd {
|
|
2801
|
+
interface Duration {
|
|
2802
|
+
/**
|
|
2803
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2804
|
+
*/
|
|
2805
|
+
interval: Duration.Interval;
|
|
2806
|
+
/**
|
|
2807
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2808
|
+
*/
|
|
2809
|
+
interval_count: number;
|
|
2810
|
+
}
|
|
2811
|
+
type Type = 'duration' | 'timestamp';
|
|
2812
|
+
namespace Duration {
|
|
2813
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2814
|
+
}
|
|
2815
|
+
}
|
|
2816
|
+
}
|
|
2817
|
+
namespace Trial {
|
|
2818
|
+
type Type = 'free' | 'paid';
|
|
2819
|
+
}
|
|
2820
|
+
}
|
|
2821
|
+
}
|
|
2822
|
+
namespace MetadataAction {
|
|
2823
|
+
type Type = 'add' | 'remove' | 'set';
|
|
2824
|
+
}
|
|
2825
|
+
namespace SetPauseCollection {
|
|
2826
|
+
interface Set {
|
|
2827
|
+
/**
|
|
2828
|
+
* The payment collection behavior for this subscription while paused.
|
|
2829
|
+
*/
|
|
2830
|
+
behavior: Set.Behavior;
|
|
2831
|
+
}
|
|
2832
|
+
type Type = 'remove' | 'set';
|
|
2833
|
+
namespace Set {
|
|
2834
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
2835
|
+
}
|
|
2836
|
+
}
|
|
2837
|
+
namespace TrialSettings {
|
|
2838
|
+
interface EndBehavior {
|
|
2839
|
+
/**
|
|
2840
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
2841
|
+
*/
|
|
2842
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
2843
|
+
}
|
|
2844
|
+
namespace EndBehavior {
|
|
2845
|
+
type ProrateUpFront = 'defer' | 'include';
|
|
2846
|
+
}
|
|
2847
|
+
}
|
|
2848
|
+
}
|
|
2849
|
+
namespace Prebilling {
|
|
2850
|
+
interface BillFrom {
|
|
2851
|
+
/**
|
|
2852
|
+
* Start the prebilled period when a specified amendment begins.
|
|
2853
|
+
*/
|
|
2854
|
+
amendment_start?: BillFrom.AmendmentStart;
|
|
2855
|
+
/**
|
|
2856
|
+
* Start the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
2857
|
+
*/
|
|
2858
|
+
timestamp?: number;
|
|
2859
|
+
/**
|
|
2860
|
+
* Select one of several ways to pass the `bill_from` value.
|
|
2861
|
+
*/
|
|
2862
|
+
type: BillFrom.Type;
|
|
2863
|
+
}
|
|
2864
|
+
interface BillUntil {
|
|
2865
|
+
/**
|
|
2866
|
+
* End the prebilled period when a specified amendment ends.
|
|
2867
|
+
*/
|
|
2868
|
+
amendment_end?: BillUntil.AmendmentEnd;
|
|
2869
|
+
/**
|
|
2870
|
+
* Time span for prebilling, starting from `bill_from`.
|
|
2871
|
+
*/
|
|
2872
|
+
duration?: BillUntil.Duration;
|
|
2873
|
+
/**
|
|
2874
|
+
* End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
2875
|
+
*/
|
|
2876
|
+
timestamp?: number;
|
|
2877
|
+
/**
|
|
2878
|
+
* Select one of several ways to pass the `bill_until` value.
|
|
2879
|
+
*/
|
|
2880
|
+
type: BillUntil.Type;
|
|
2881
|
+
}
|
|
2882
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
2883
|
+
namespace BillFrom {
|
|
2884
|
+
interface AmendmentStart {
|
|
2885
|
+
/**
|
|
2886
|
+
* The position of the amendment in the `amendments` array with which prebilling should begin. Indexes start from 0 and must be less than the total number of supplied amendments.
|
|
2887
|
+
*/
|
|
2888
|
+
index: number;
|
|
2889
|
+
}
|
|
2890
|
+
type Type = 'amendment_start' | 'now' | 'timestamp';
|
|
2891
|
+
}
|
|
2892
|
+
namespace BillUntil {
|
|
2893
|
+
interface AmendmentEnd {
|
|
2894
|
+
/**
|
|
2895
|
+
* The position of the amendment in the `amendments` array at which prebilling should end. Indexes start from 0 and must be less than the total number of supplied amendments.
|
|
2896
|
+
*/
|
|
2897
|
+
index: number;
|
|
2898
|
+
}
|
|
2899
|
+
interface Duration {
|
|
2900
|
+
/**
|
|
2901
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2902
|
+
*/
|
|
2903
|
+
interval: Duration.Interval;
|
|
2904
|
+
/**
|
|
2905
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2906
|
+
*/
|
|
2907
|
+
interval_count: number;
|
|
2908
|
+
}
|
|
2909
|
+
type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp';
|
|
2910
|
+
namespace Duration {
|
|
2911
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2912
|
+
}
|
|
2913
|
+
}
|
|
2914
|
+
}
|
|
2915
|
+
namespace ScheduleSettings {
|
|
2916
|
+
type EndBehavior = 'cancel' | 'release';
|
|
2917
|
+
}
|
|
2918
|
+
}
|
|
1767
2919
|
export interface SubscriptionScheduleCancelParams {
|
|
1768
2920
|
/**
|
|
1769
2921
|
* Specifies which fields in the response should be expanded.
|