stripe 22.4.0 → 22.5.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 +1829 -62
- 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 +102 -0
- package/cjs/resources/Capital/FinancingSummary.js +15 -0
- package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
- package/cjs/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/cjs/resources/Capital/FinancingTransactions.js +24 -0
- package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
- package/cjs/resources/Capital/index.d.ts +25 -0
- package/cjs/resources/Capital/index.js +17 -0
- package/cjs/resources/Capital/index.js.map +1 -0
- package/cjs/resources/Cards.d.ts +17 -0
- package/cjs/resources/Charges.d.ts +3077 -70
- package/cjs/resources/Checkout/Sessions.d.ts +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 +548 -3
- package/cjs/resources/ExternalAccounts.d.ts +212 -1
- package/cjs/resources/ExternalAccounts.js +44 -0
- package/cjs/resources/ExternalAccounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/cjs/resources/FinancialConnections/Accounts.d.ts +69 -4
- package/cjs/resources/FinancialConnections/Accounts.js +8 -0
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +46 -1
- package/cjs/resources/FinancialConnections/Authorizations.js +11 -0
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/cjs/resources/FinancialConnections/Institutions.d.ts +99 -0
- package/cjs/resources/FinancialConnections/Institutions.js +23 -0
- package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
- package/cjs/resources/FinancialConnections/Sessions.d.ts +124 -9
- package/cjs/resources/FinancialConnections/index.d.ts +21 -9
- package/cjs/resources/FinancialConnections/index.js +4 -0
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/FxQuotes.d.ts +212 -0
- package/cjs/resources/FxQuotes.js +29 -0
- package/cjs/resources/FxQuotes.js.map +1 -0
- package/cjs/resources/InvoiceItems.d.ts +86 -1
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +40 -2
- package/cjs/resources/Invoices.d.ts +1393 -20
- package/cjs/resources/Invoices.js +41 -0
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +13 -0
- package/cjs/resources/Issuing/Cardholders.d.ts +19 -1
- package/cjs/resources/Issuing/Cards.d.ts +13 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/cjs/resources/Issuing/Disputes.d.ts +13 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/cjs/resources/Issuing/Settlements.d.ts +83 -0
- package/cjs/resources/Issuing/Settlements.js +4 -0
- package/cjs/resources/Issuing/Settlements.js.map +1 -0
- package/cjs/resources/Issuing/Transactions.d.ts +22 -0
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +47 -22
- package/cjs/resources/Issuing/index.js +6 -0
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +29 -2
- package/cjs/resources/Mandates.d.ts +33 -2
- package/cjs/resources/Mandates.js +8 -0
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/Margins.d.ts +115 -0
- package/cjs/resources/Margins.js +35 -0
- package/cjs/resources/Margins.js.map +1 -0
- package/cjs/resources/Orders.d.ts +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 +13292 -2361
- package/cjs/resources/PaymentIntents.js +27 -0
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +20 -4
- 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 +53 -1
- package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/cjs/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/cjs/resources/Privacy/RedactionJobs.js +73 -0
- package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
- package/cjs/resources/Privacy/index.d.ts +22 -0
- package/cjs/resources/Privacy/index.js +13 -0
- package/cjs/resources/Privacy/index.js.map +1 -0
- package/cjs/resources/ProductCatalog/TrialOffers.d.ts +158 -0
- package/cjs/resources/ProductCatalog/TrialOffers.js +29 -0
- package/cjs/resources/ProductCatalog/TrialOffers.js.map +1 -0
- package/cjs/resources/ProductCatalog/index.d.ts +14 -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 +786 -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 +31 -1
- package/cjs/resources/Refunds.d.ts +11 -0
- package/cjs/resources/Reserve/Holds.d.ts +53 -1
- package/cjs/resources/Reserve/Holds.js +19 -0
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +16 -0
- package/cjs/resources/Reserve/Plans.js +11 -0
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +41 -1
- package/cjs/resources/Reserve/Releases.js +19 -0
- package/cjs/resources/Reserve/Releases.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +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 +418 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/IssuedTokens.d.ts +330 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/index.d.ts +19 -0
- package/cjs/resources/SharedPayment/index.js +15 -0
- package/cjs/resources/SharedPayment/index.js.map +1 -0
- package/cjs/resources/Sources.d.ts +29 -1
- package/cjs/resources/SubscriptionItems.d.ts +144 -1
- 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 +112 -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 +16 -1
- 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 +72 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings.d.ts +281 -0
- package/cjs/resources/V2/Billing/BillSettings.js +41 -0
- package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/Cadences.d.ts +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 +237 -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 +776 -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 +280 -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 +252 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +65 -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 +151 -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 +163 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/cjs/resources/V2/Extend/Workflows.d.ts +120 -0
- package/cjs/resources/V2/Extend/Workflows.js +30 -0
- package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +20 -0
- package/cjs/resources/V2/Extend/index.js +15 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -0
- package/cjs/resources/V2/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 +218 -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 +251 -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 +209 -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 +297 -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 +240 -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 +296 -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 +159 -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 +162 -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 +193 -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 +45 -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 +6440 -143
- 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 +102 -0
- package/esm/resources/Capital/FinancingSummary.js +11 -0
- package/esm/resources/Capital/FinancingSummary.js.map +1 -0
- package/esm/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/esm/resources/Capital/FinancingTransactions.js +20 -0
- package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
- package/esm/resources/Capital/index.d.ts +25 -0
- package/esm/resources/Capital/index.js +13 -0
- package/esm/resources/Capital/index.js.map +1 -0
- package/esm/resources/Cards.d.ts +17 -0
- package/esm/resources/Charges.d.ts +3077 -70
- package/esm/resources/Checkout/Sessions.d.ts +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 +548 -3
- package/esm/resources/ExternalAccounts.d.ts +212 -1
- package/esm/resources/ExternalAccounts.js +42 -1
- package/esm/resources/ExternalAccounts.js.map +1 -1
- package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/esm/resources/FinancialConnections/Accounts.d.ts +69 -4
- package/esm/resources/FinancialConnections/Accounts.js +8 -0
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +46 -1
- package/esm/resources/FinancialConnections/Authorizations.js +9 -1
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/esm/resources/FinancialConnections/Institutions.d.ts +99 -0
- package/esm/resources/FinancialConnections/Institutions.js +19 -0
- package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
- package/esm/resources/FinancialConnections/Sessions.d.ts +124 -9
- package/esm/resources/FinancialConnections/index.d.ts +21 -9
- package/esm/resources/FinancialConnections/index.js +4 -0
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/FxQuotes.d.ts +212 -0
- package/esm/resources/FxQuotes.js +25 -0
- package/esm/resources/FxQuotes.js.map +1 -0
- package/esm/resources/InvoiceItems.d.ts +86 -1
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +40 -2
- package/esm/resources/Invoices.d.ts +1393 -20
- package/esm/resources/Invoices.js +41 -0
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +13 -0
- package/esm/resources/Issuing/Cardholders.d.ts +19 -1
- package/esm/resources/Issuing/Cards.d.ts +13 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/esm/resources/Issuing/Disputes.d.ts +13 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/esm/resources/Issuing/Settlements.d.ts +83 -0
- package/esm/resources/Issuing/Settlements.js +3 -0
- package/esm/resources/Issuing/Settlements.js.map +1 -0
- package/esm/resources/Issuing/Transactions.d.ts +22 -0
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +47 -22
- package/esm/resources/Issuing/index.js +6 -0
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +29 -2
- package/esm/resources/Mandates.d.ts +33 -2
- package/esm/resources/Mandates.js +8 -0
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/Margins.d.ts +115 -0
- package/esm/resources/Margins.js +31 -0
- package/esm/resources/Margins.js.map +1 -0
- package/esm/resources/Orders.d.ts +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 +13292 -2361
- package/esm/resources/PaymentIntents.js +27 -0
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +20 -4
- 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 +53 -1
- package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/esm/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/esm/resources/Privacy/RedactionJobs.js +69 -0
- package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
- package/esm/resources/Privacy/index.d.ts +22 -0
- package/esm/resources/Privacy/index.js +9 -0
- package/esm/resources/Privacy/index.js.map +1 -0
- package/esm/resources/ProductCatalog/TrialOffers.d.ts +158 -0
- package/esm/resources/ProductCatalog/TrialOffers.js +25 -0
- package/esm/resources/ProductCatalog/TrialOffers.js.map +1 -0
- package/esm/resources/ProductCatalog/index.d.ts +14 -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 +786 -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 +31 -1
- package/esm/resources/Refunds.d.ts +11 -0
- package/esm/resources/Reserve/Holds.d.ts +53 -1
- package/esm/resources/Reserve/Holds.js +17 -1
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +16 -0
- package/esm/resources/Reserve/Plans.js +9 -1
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +41 -1
- package/esm/resources/Reserve/Releases.js +17 -1
- package/esm/resources/Reserve/Releases.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +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 +418 -0
- package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
- package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/IssuedTokens.d.ts +330 -0
- package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
- package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/index.d.ts +19 -0
- package/esm/resources/SharedPayment/index.js +11 -0
- package/esm/resources/SharedPayment/index.js.map +1 -0
- package/esm/resources/Sources.d.ts +29 -1
- package/esm/resources/SubscriptionItems.d.ts +144 -1
- 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 +112 -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 +16 -1
- 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 +72 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings.d.ts +281 -0
- package/esm/resources/V2/Billing/BillSettings.js +37 -0
- package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
- package/esm/resources/V2/Billing/Cadences.d.ts +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 +237 -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 +776 -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 +280 -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 +252 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +61 -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 +151 -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 +163 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/esm/resources/V2/Extend/Workflows.d.ts +120 -0
- package/esm/resources/V2/Extend/Workflows.js +26 -0
- package/esm/resources/V2/Extend/Workflows.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +20 -0
- package/esm/resources/V2/Extend/index.js +11 -0
- package/esm/resources/V2/Extend/index.js.map +1 -0
- package/esm/resources/V2/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 +218 -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 +251 -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 +209 -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 +297 -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 +240 -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 +296 -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 +159 -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 +162 -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 +193 -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 +45 -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, OtherString, 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' | OtherString;
|
|
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
|
*/
|
|
@@ -259,10 +295,36 @@ export declare namespace SubscriptionSchedule {
|
|
|
259
295
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
260
296
|
*/
|
|
261
297
|
trial?: boolean;
|
|
298
|
+
/**
|
|
299
|
+
* Specify behavior of the trial when crossing schedule phase boundaries
|
|
300
|
+
*/
|
|
301
|
+
trial_continuation?: Phase.TrialContinuation | null;
|
|
262
302
|
/**
|
|
263
303
|
* When the trial ends within the phase.
|
|
264
304
|
*/
|
|
265
305
|
trial_end: number | null;
|
|
306
|
+
/**
|
|
307
|
+
* Settings related to any trials on the subscription during this phase.
|
|
308
|
+
*/
|
|
309
|
+
trial_settings?: Phase.TrialSettings | null;
|
|
310
|
+
}
|
|
311
|
+
interface Prebilling {
|
|
312
|
+
/**
|
|
313
|
+
* ID of the prebilling invoice.
|
|
314
|
+
*/
|
|
315
|
+
invoice: string | Invoice;
|
|
316
|
+
/**
|
|
317
|
+
* The end of the last period for which the invoice pre-bills.
|
|
318
|
+
*/
|
|
319
|
+
period_end: number;
|
|
320
|
+
/**
|
|
321
|
+
* The start of the first period for which the invoice pre-bills.
|
|
322
|
+
*/
|
|
323
|
+
period_start: number;
|
|
324
|
+
/**
|
|
325
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
326
|
+
*/
|
|
327
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
266
328
|
}
|
|
267
329
|
type Status = 'active' | 'canceled' | 'completed' | 'not_started' | 'released';
|
|
268
330
|
namespace BillingMode {
|
|
@@ -378,6 +440,18 @@ export declare namespace SubscriptionSchedule {
|
|
|
378
440
|
}
|
|
379
441
|
}
|
|
380
442
|
}
|
|
443
|
+
namespace LastPriceMigrationError {
|
|
444
|
+
interface FailedTransition {
|
|
445
|
+
/**
|
|
446
|
+
* The original price to be migrated.
|
|
447
|
+
*/
|
|
448
|
+
source_price: string;
|
|
449
|
+
/**
|
|
450
|
+
* The intended resulting price of the migration.
|
|
451
|
+
*/
|
|
452
|
+
target_price: string;
|
|
453
|
+
}
|
|
454
|
+
}
|
|
381
455
|
namespace Phase {
|
|
382
456
|
interface AddInvoiceItem {
|
|
383
457
|
/**
|
|
@@ -441,6 +515,10 @@ export declare namespace SubscriptionSchedule {
|
|
|
441
515
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
442
516
|
*/
|
|
443
517
|
discount: string | _Discount | null;
|
|
518
|
+
/**
|
|
519
|
+
* Details to determine how long the discount should be applied for.
|
|
520
|
+
*/
|
|
521
|
+
discount_end?: Discount.DiscountEnd | null;
|
|
444
522
|
/**
|
|
445
523
|
* ID of the promotion code to create a new discount for.
|
|
446
524
|
*/
|
|
@@ -501,6 +579,20 @@ export declare namespace SubscriptionSchedule {
|
|
|
501
579
|
* 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`.
|
|
502
580
|
*/
|
|
503
581
|
tax_rates?: Array<TaxRate> | null;
|
|
582
|
+
/**
|
|
583
|
+
* Options that configure the trial on the subscription item.
|
|
584
|
+
*/
|
|
585
|
+
trial?: Item.Trial | null;
|
|
586
|
+
/**
|
|
587
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
588
|
+
*/
|
|
589
|
+
trial_offer?: string | null;
|
|
590
|
+
}
|
|
591
|
+
interface PauseCollection {
|
|
592
|
+
/**
|
|
593
|
+
* The payment collection behavior for this subscription while paused.
|
|
594
|
+
*/
|
|
595
|
+
behavior: PauseCollection.Behavior;
|
|
504
596
|
}
|
|
505
597
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
506
598
|
interface TransferData {
|
|
@@ -513,6 +605,13 @@ export declare namespace SubscriptionSchedule {
|
|
|
513
605
|
*/
|
|
514
606
|
destination: string | Account;
|
|
515
607
|
}
|
|
608
|
+
type TrialContinuation = 'continue' | 'none' | OtherString;
|
|
609
|
+
interface TrialSettings {
|
|
610
|
+
/**
|
|
611
|
+
* Defines how the subscription should behave when a trial ends.
|
|
612
|
+
*/
|
|
613
|
+
end_behavior: TrialSettings.EndBehavior | null;
|
|
614
|
+
}
|
|
516
615
|
namespace AddInvoiceItem {
|
|
517
616
|
interface Discount {
|
|
518
617
|
/**
|
|
@@ -523,6 +622,10 @@ export declare namespace SubscriptionSchedule {
|
|
|
523
622
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
524
623
|
*/
|
|
525
624
|
discount: string | _Discount | null;
|
|
625
|
+
/**
|
|
626
|
+
* Details to determine how long the discount should be applied for.
|
|
627
|
+
*/
|
|
628
|
+
discount_end?: Discount.DiscountEnd | null;
|
|
526
629
|
/**
|
|
527
630
|
* ID of the promotion code to create a new discount for.
|
|
528
631
|
*/
|
|
@@ -532,6 +635,18 @@ export declare namespace SubscriptionSchedule {
|
|
|
532
635
|
end: Period.End;
|
|
533
636
|
start: Period.Start;
|
|
534
637
|
}
|
|
638
|
+
namespace Discount {
|
|
639
|
+
interface DiscountEnd {
|
|
640
|
+
/**
|
|
641
|
+
* The discount end timestamp.
|
|
642
|
+
*/
|
|
643
|
+
timestamp: number | null;
|
|
644
|
+
/**
|
|
645
|
+
* The discount end type.
|
|
646
|
+
*/
|
|
647
|
+
type: 'timestamp';
|
|
648
|
+
}
|
|
649
|
+
}
|
|
535
650
|
namespace Period {
|
|
536
651
|
interface End {
|
|
537
652
|
/**
|
|
@@ -576,6 +691,18 @@ export declare namespace SubscriptionSchedule {
|
|
|
576
691
|
type Type = 'account' | 'self' | OtherString;
|
|
577
692
|
}
|
|
578
693
|
}
|
|
694
|
+
namespace Discount {
|
|
695
|
+
interface DiscountEnd {
|
|
696
|
+
/**
|
|
697
|
+
* The discount end timestamp.
|
|
698
|
+
*/
|
|
699
|
+
timestamp: number | null;
|
|
700
|
+
/**
|
|
701
|
+
* The discount end type.
|
|
702
|
+
*/
|
|
703
|
+
type: 'timestamp';
|
|
704
|
+
}
|
|
705
|
+
}
|
|
579
706
|
namespace InvoiceSettings {
|
|
580
707
|
interface CustomField {
|
|
581
708
|
/**
|
|
@@ -617,15 +744,65 @@ export declare namespace SubscriptionSchedule {
|
|
|
617
744
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
618
745
|
*/
|
|
619
746
|
discount: string | _Discount | null;
|
|
747
|
+
/**
|
|
748
|
+
* Details to determine how long the discount should be applied for.
|
|
749
|
+
*/
|
|
750
|
+
discount_end?: Discount.DiscountEnd | null;
|
|
620
751
|
/**
|
|
621
752
|
* ID of the promotion code to create a new discount for.
|
|
622
753
|
*/
|
|
623
754
|
promotion_code: string | PromotionCode | null;
|
|
624
755
|
}
|
|
756
|
+
interface Trial {
|
|
757
|
+
/**
|
|
758
|
+
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
|
759
|
+
*/
|
|
760
|
+
converts_to?: Array<string> | null;
|
|
761
|
+
/**
|
|
762
|
+
* Determines the type of trial for this item.
|
|
763
|
+
*/
|
|
764
|
+
type: Trial.Type;
|
|
765
|
+
}
|
|
766
|
+
namespace Discount {
|
|
767
|
+
interface DiscountEnd {
|
|
768
|
+
/**
|
|
769
|
+
* The discount end timestamp.
|
|
770
|
+
*/
|
|
771
|
+
timestamp: number | null;
|
|
772
|
+
/**
|
|
773
|
+
* The discount end type.
|
|
774
|
+
*/
|
|
775
|
+
type: 'timestamp';
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
namespace Trial {
|
|
779
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
namespace PauseCollection {
|
|
783
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
784
|
+
}
|
|
785
|
+
namespace TrialSettings {
|
|
786
|
+
interface EndBehavior {
|
|
787
|
+
/**
|
|
788
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
789
|
+
*/
|
|
790
|
+
prorate_up_front: EndBehavior.ProrateUpFront | null;
|
|
791
|
+
}
|
|
792
|
+
namespace EndBehavior {
|
|
793
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
794
|
+
}
|
|
625
795
|
}
|
|
626
796
|
}
|
|
797
|
+
namespace Prebilling {
|
|
798
|
+
type UpdateBehavior = 'prebill' | 'reset' | OtherString;
|
|
799
|
+
}
|
|
627
800
|
}
|
|
628
801
|
export interface SubscriptionScheduleCreateParams {
|
|
802
|
+
/**
|
|
803
|
+
* 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.
|
|
804
|
+
*/
|
|
805
|
+
billing_behavior?: SubscriptionScheduleCreateParams.BillingBehavior;
|
|
629
806
|
/**
|
|
630
807
|
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
631
808
|
*/
|
|
@@ -662,12 +839,17 @@ export interface SubscriptionScheduleCreateParams {
|
|
|
662
839
|
* 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.
|
|
663
840
|
*/
|
|
664
841
|
phases?: Array<SubscriptionScheduleCreateParams.Phase>;
|
|
842
|
+
/**
|
|
843
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
844
|
+
*/
|
|
845
|
+
prebilling?: SubscriptionScheduleCreateParams.Prebilling;
|
|
665
846
|
/**
|
|
666
847
|
* When the subscription schedule starts. We recommend using `now` so that it starts the subscription immediately, and to avoid unexpected behavior due to request delays or clock skew resulting in a slightly backdated or postdated start. 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.
|
|
667
848
|
*/
|
|
668
849
|
start_date?: number | 'now';
|
|
669
850
|
}
|
|
670
851
|
export declare namespace SubscriptionScheduleCreateParams {
|
|
852
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
671
853
|
interface BillingMode {
|
|
672
854
|
/**
|
|
673
855
|
* Configure behavior for flexible billing mode.
|
|
@@ -790,6 +972,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
790
972
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
791
973
|
*/
|
|
792
974
|
on_behalf_of?: string;
|
|
975
|
+
/**
|
|
976
|
+
* 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).
|
|
977
|
+
*/
|
|
978
|
+
pause_collection?: Phase.PauseCollection;
|
|
793
979
|
/**
|
|
794
980
|
* 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.
|
|
795
981
|
*/
|
|
@@ -802,10 +988,28 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
802
988
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
803
989
|
*/
|
|
804
990
|
trial?: boolean;
|
|
991
|
+
/**
|
|
992
|
+
* Specify trial behavior when crossing phase boundaries
|
|
993
|
+
*/
|
|
994
|
+
trial_continuation?: Phase.TrialContinuation;
|
|
805
995
|
/**
|
|
806
996
|
* 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`
|
|
807
997
|
*/
|
|
808
998
|
trial_end?: number;
|
|
999
|
+
/**
|
|
1000
|
+
* Settings related to subscription trials.
|
|
1001
|
+
*/
|
|
1002
|
+
trial_settings?: Phase.TrialSettings;
|
|
1003
|
+
}
|
|
1004
|
+
interface Prebilling {
|
|
1005
|
+
/**
|
|
1006
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
1007
|
+
*/
|
|
1008
|
+
iterations: number;
|
|
1009
|
+
/**
|
|
1010
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1011
|
+
*/
|
|
1012
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
809
1013
|
}
|
|
810
1014
|
namespace BillingMode {
|
|
811
1015
|
interface Flexible {
|
|
@@ -976,6 +1180,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
976
1180
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
977
1181
|
*/
|
|
978
1182
|
discount?: string;
|
|
1183
|
+
/**
|
|
1184
|
+
* Details to determine how long the discount should be applied for.
|
|
1185
|
+
*/
|
|
1186
|
+
discount_end?: Discount.DiscountEnd;
|
|
979
1187
|
/**
|
|
980
1188
|
* ID of the promotion code to create a new discount for.
|
|
981
1189
|
*/
|
|
@@ -1050,6 +1258,20 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1050
1258
|
* 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.
|
|
1051
1259
|
*/
|
|
1052
1260
|
tax_rates?: Emptyable<Array<string>>;
|
|
1261
|
+
/**
|
|
1262
|
+
* Options that configure the trial on the subscription item.
|
|
1263
|
+
*/
|
|
1264
|
+
trial?: Item.Trial;
|
|
1265
|
+
/**
|
|
1266
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
1267
|
+
*/
|
|
1268
|
+
trial_offer?: string;
|
|
1269
|
+
}
|
|
1270
|
+
interface PauseCollection {
|
|
1271
|
+
/**
|
|
1272
|
+
* The payment collection behavior for this subscription while paused.
|
|
1273
|
+
*/
|
|
1274
|
+
behavior: PauseCollection.Behavior;
|
|
1053
1275
|
}
|
|
1054
1276
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
1055
1277
|
interface TransferData {
|
|
@@ -1062,6 +1284,13 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1062
1284
|
*/
|
|
1063
1285
|
destination: string;
|
|
1064
1286
|
}
|
|
1287
|
+
type TrialContinuation = 'continue' | 'none' | OtherString;
|
|
1288
|
+
interface TrialSettings {
|
|
1289
|
+
/**
|
|
1290
|
+
* Defines how the subscription should behave when a trial ends.
|
|
1291
|
+
*/
|
|
1292
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
1293
|
+
}
|
|
1065
1294
|
namespace AddInvoiceItem {
|
|
1066
1295
|
interface Discount {
|
|
1067
1296
|
/**
|
|
@@ -1072,6 +1301,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1072
1301
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1073
1302
|
*/
|
|
1074
1303
|
discount?: string;
|
|
1304
|
+
/**
|
|
1305
|
+
* Details to determine how long the discount should be applied for.
|
|
1306
|
+
*/
|
|
1307
|
+
discount_end?: Discount.DiscountEnd;
|
|
1075
1308
|
/**
|
|
1076
1309
|
* ID of the promotion code to create a new discount for.
|
|
1077
1310
|
*/
|
|
@@ -1109,6 +1342,38 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1109
1342
|
*/
|
|
1110
1343
|
unit_amount_decimal?: Decimal;
|
|
1111
1344
|
}
|
|
1345
|
+
namespace Discount {
|
|
1346
|
+
interface DiscountEnd {
|
|
1347
|
+
/**
|
|
1348
|
+
* Time span for the redeemed discount.
|
|
1349
|
+
*/
|
|
1350
|
+
duration?: DiscountEnd.Duration;
|
|
1351
|
+
/**
|
|
1352
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1353
|
+
*/
|
|
1354
|
+
timestamp?: number;
|
|
1355
|
+
/**
|
|
1356
|
+
* The type of calculation made to determine when the discount ends.
|
|
1357
|
+
*/
|
|
1358
|
+
type: DiscountEnd.Type;
|
|
1359
|
+
}
|
|
1360
|
+
namespace DiscountEnd {
|
|
1361
|
+
interface Duration {
|
|
1362
|
+
/**
|
|
1363
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1364
|
+
*/
|
|
1365
|
+
interval: Duration.Interval;
|
|
1366
|
+
/**
|
|
1367
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1368
|
+
*/
|
|
1369
|
+
interval_count: number;
|
|
1370
|
+
}
|
|
1371
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
1372
|
+
namespace Duration {
|
|
1373
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
}
|
|
1112
1377
|
namespace Period {
|
|
1113
1378
|
interface End {
|
|
1114
1379
|
/**
|
|
@@ -1156,6 +1421,38 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1156
1421
|
type Type = 'account' | 'self' | OtherString;
|
|
1157
1422
|
}
|
|
1158
1423
|
}
|
|
1424
|
+
namespace Discount {
|
|
1425
|
+
interface DiscountEnd {
|
|
1426
|
+
/**
|
|
1427
|
+
* Time span for the redeemed discount.
|
|
1428
|
+
*/
|
|
1429
|
+
duration?: DiscountEnd.Duration;
|
|
1430
|
+
/**
|
|
1431
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1432
|
+
*/
|
|
1433
|
+
timestamp?: number;
|
|
1434
|
+
/**
|
|
1435
|
+
* The type of calculation made to determine when the discount ends.
|
|
1436
|
+
*/
|
|
1437
|
+
type: DiscountEnd.Type;
|
|
1438
|
+
}
|
|
1439
|
+
namespace DiscountEnd {
|
|
1440
|
+
interface Duration {
|
|
1441
|
+
/**
|
|
1442
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1443
|
+
*/
|
|
1444
|
+
interval: Duration.Interval;
|
|
1445
|
+
/**
|
|
1446
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1447
|
+
*/
|
|
1448
|
+
interval_count: number;
|
|
1449
|
+
}
|
|
1450
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
1451
|
+
namespace Duration {
|
|
1452
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
}
|
|
1159
1456
|
namespace Duration {
|
|
1160
1457
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1161
1458
|
}
|
|
@@ -1200,6 +1497,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1200
1497
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1201
1498
|
*/
|
|
1202
1499
|
discount?: string;
|
|
1500
|
+
/**
|
|
1501
|
+
* Details to determine how long the discount should be applied for.
|
|
1502
|
+
*/
|
|
1503
|
+
discount_end?: Discount.DiscountEnd;
|
|
1203
1504
|
/**
|
|
1204
1505
|
* ID of the promotion code to create a new discount for.
|
|
1205
1506
|
*/
|
|
@@ -1231,6 +1532,48 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1231
1532
|
*/
|
|
1232
1533
|
unit_amount_decimal?: Decimal;
|
|
1233
1534
|
}
|
|
1535
|
+
interface Trial {
|
|
1536
|
+
/**
|
|
1537
|
+
* 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.
|
|
1538
|
+
*/
|
|
1539
|
+
converts_to?: Array<string>;
|
|
1540
|
+
/**
|
|
1541
|
+
* Determines the type of trial for this item.
|
|
1542
|
+
*/
|
|
1543
|
+
type: Trial.Type;
|
|
1544
|
+
}
|
|
1545
|
+
namespace Discount {
|
|
1546
|
+
interface DiscountEnd {
|
|
1547
|
+
/**
|
|
1548
|
+
* Time span for the redeemed discount.
|
|
1549
|
+
*/
|
|
1550
|
+
duration?: DiscountEnd.Duration;
|
|
1551
|
+
/**
|
|
1552
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1553
|
+
*/
|
|
1554
|
+
timestamp?: number;
|
|
1555
|
+
/**
|
|
1556
|
+
* The type of calculation made to determine when the discount ends.
|
|
1557
|
+
*/
|
|
1558
|
+
type: DiscountEnd.Type;
|
|
1559
|
+
}
|
|
1560
|
+
namespace DiscountEnd {
|
|
1561
|
+
interface Duration {
|
|
1562
|
+
/**
|
|
1563
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1564
|
+
*/
|
|
1565
|
+
interval: Duration.Interval;
|
|
1566
|
+
/**
|
|
1567
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1568
|
+
*/
|
|
1569
|
+
interval_count: number;
|
|
1570
|
+
}
|
|
1571
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
1572
|
+
namespace Duration {
|
|
1573
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
1574
|
+
}
|
|
1575
|
+
}
|
|
1576
|
+
}
|
|
1234
1577
|
namespace PriceData {
|
|
1235
1578
|
interface Recurring {
|
|
1236
1579
|
/**
|
|
@@ -1247,8 +1590,28 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1247
1590
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1248
1591
|
}
|
|
1249
1592
|
}
|
|
1593
|
+
namespace Trial {
|
|
1594
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
1595
|
+
}
|
|
1596
|
+
}
|
|
1597
|
+
namespace PauseCollection {
|
|
1598
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
1599
|
+
}
|
|
1600
|
+
namespace TrialSettings {
|
|
1601
|
+
interface EndBehavior {
|
|
1602
|
+
/**
|
|
1603
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
1604
|
+
*/
|
|
1605
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
1606
|
+
}
|
|
1607
|
+
namespace EndBehavior {
|
|
1608
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
1609
|
+
}
|
|
1250
1610
|
}
|
|
1251
1611
|
}
|
|
1612
|
+
namespace Prebilling {
|
|
1613
|
+
type UpdateBehavior = 'prebill' | 'reset' | OtherString;
|
|
1614
|
+
}
|
|
1252
1615
|
}
|
|
1253
1616
|
export interface SubscriptionScheduleRetrieveParams {
|
|
1254
1617
|
/**
|
|
@@ -1257,6 +1620,10 @@ export interface SubscriptionScheduleRetrieveParams {
|
|
|
1257
1620
|
expand?: Array<string>;
|
|
1258
1621
|
}
|
|
1259
1622
|
export interface SubscriptionScheduleUpdateParams {
|
|
1623
|
+
/**
|
|
1624
|
+
* 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.
|
|
1625
|
+
*/
|
|
1626
|
+
billing_behavior?: SubscriptionScheduleUpdateParams.BillingBehavior;
|
|
1260
1627
|
/**
|
|
1261
1628
|
* Object representing the subscription schedule's default settings.
|
|
1262
1629
|
*/
|
|
@@ -1277,12 +1644,17 @@ export interface SubscriptionScheduleUpdateParams {
|
|
|
1277
1644
|
* 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.
|
|
1278
1645
|
*/
|
|
1279
1646
|
phases?: Array<SubscriptionScheduleUpdateParams.Phase>;
|
|
1647
|
+
/**
|
|
1648
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1649
|
+
*/
|
|
1650
|
+
prebilling?: SubscriptionScheduleUpdateParams.Prebilling;
|
|
1280
1651
|
/**
|
|
1281
1652
|
* 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`.
|
|
1282
1653
|
*/
|
|
1283
1654
|
proration_behavior?: SubscriptionScheduleUpdateParams.ProrationBehavior;
|
|
1284
1655
|
}
|
|
1285
1656
|
export declare namespace SubscriptionScheduleUpdateParams {
|
|
1657
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
1286
1658
|
interface DefaultSettings {
|
|
1287
1659
|
/**
|
|
1288
1660
|
* 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).
|
|
@@ -1395,6 +1767,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1395
1767
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
1396
1768
|
*/
|
|
1397
1769
|
on_behalf_of?: string;
|
|
1770
|
+
/**
|
|
1771
|
+
* 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).
|
|
1772
|
+
*/
|
|
1773
|
+
pause_collection?: Phase.PauseCollection;
|
|
1398
1774
|
/**
|
|
1399
1775
|
* 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.
|
|
1400
1776
|
*/
|
|
@@ -1411,10 +1787,28 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1411
1787
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
1412
1788
|
*/
|
|
1413
1789
|
trial?: boolean;
|
|
1790
|
+
/**
|
|
1791
|
+
* Specify trial behavior when crossing phase boundaries
|
|
1792
|
+
*/
|
|
1793
|
+
trial_continuation?: Phase.TrialContinuation;
|
|
1414
1794
|
/**
|
|
1415
1795
|
* Sets the phase to trialing from the start date to this date. Must be within the phase. When combined with `trial=true`, it must match the phase end date.
|
|
1416
1796
|
*/
|
|
1417
1797
|
trial_end?: number | 'now';
|
|
1798
|
+
/**
|
|
1799
|
+
* Settings related to subscription trials.
|
|
1800
|
+
*/
|
|
1801
|
+
trial_settings?: Phase.TrialSettings;
|
|
1802
|
+
}
|
|
1803
|
+
interface Prebilling {
|
|
1804
|
+
/**
|
|
1805
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
1806
|
+
*/
|
|
1807
|
+
iterations: number;
|
|
1808
|
+
/**
|
|
1809
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1810
|
+
*/
|
|
1811
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
1418
1812
|
}
|
|
1419
1813
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
1420
1814
|
namespace DefaultSettings {
|
|
@@ -1574,6 +1968,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1574
1968
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1575
1969
|
*/
|
|
1576
1970
|
discount?: string;
|
|
1971
|
+
/**
|
|
1972
|
+
* Details to determine how long the discount should be applied for.
|
|
1973
|
+
*/
|
|
1974
|
+
discount_end?: Discount.DiscountEnd;
|
|
1577
1975
|
/**
|
|
1578
1976
|
* ID of the promotion code to create a new discount for.
|
|
1579
1977
|
*/
|
|
@@ -1648,6 +2046,20 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1648
2046
|
* 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.
|
|
1649
2047
|
*/
|
|
1650
2048
|
tax_rates?: Emptyable<Array<string>>;
|
|
2049
|
+
/**
|
|
2050
|
+
* Options that configure the trial on the subscription item.
|
|
2051
|
+
*/
|
|
2052
|
+
trial?: Item.Trial;
|
|
2053
|
+
/**
|
|
2054
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
2055
|
+
*/
|
|
2056
|
+
trial_offer?: string;
|
|
2057
|
+
}
|
|
2058
|
+
interface PauseCollection {
|
|
2059
|
+
/**
|
|
2060
|
+
* The payment collection behavior for this subscription while paused.
|
|
2061
|
+
*/
|
|
2062
|
+
behavior: PauseCollection.Behavior;
|
|
1651
2063
|
}
|
|
1652
2064
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
1653
2065
|
interface TransferData {
|
|
@@ -1660,6 +2072,13 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1660
2072
|
*/
|
|
1661
2073
|
destination: string;
|
|
1662
2074
|
}
|
|
2075
|
+
type TrialContinuation = 'continue' | 'none' | OtherString;
|
|
2076
|
+
interface TrialSettings {
|
|
2077
|
+
/**
|
|
2078
|
+
* Defines how the subscription should behave when a trial ends.
|
|
2079
|
+
*/
|
|
2080
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
2081
|
+
}
|
|
1663
2082
|
namespace AddInvoiceItem {
|
|
1664
2083
|
interface Discount {
|
|
1665
2084
|
/**
|
|
@@ -1670,6 +2089,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1670
2089
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1671
2090
|
*/
|
|
1672
2091
|
discount?: string;
|
|
2092
|
+
/**
|
|
2093
|
+
* Details to determine how long the discount should be applied for.
|
|
2094
|
+
*/
|
|
2095
|
+
discount_end?: Discount.DiscountEnd;
|
|
1673
2096
|
/**
|
|
1674
2097
|
* ID of the promotion code to create a new discount for.
|
|
1675
2098
|
*/
|
|
@@ -1707,6 +2130,38 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1707
2130
|
*/
|
|
1708
2131
|
unit_amount_decimal?: Decimal;
|
|
1709
2132
|
}
|
|
2133
|
+
namespace Discount {
|
|
2134
|
+
interface DiscountEnd {
|
|
2135
|
+
/**
|
|
2136
|
+
* Time span for the redeemed discount.
|
|
2137
|
+
*/
|
|
2138
|
+
duration?: DiscountEnd.Duration;
|
|
2139
|
+
/**
|
|
2140
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2141
|
+
*/
|
|
2142
|
+
timestamp?: number;
|
|
2143
|
+
/**
|
|
2144
|
+
* The type of calculation made to determine when the discount ends.
|
|
2145
|
+
*/
|
|
2146
|
+
type: DiscountEnd.Type;
|
|
2147
|
+
}
|
|
2148
|
+
namespace DiscountEnd {
|
|
2149
|
+
interface Duration {
|
|
2150
|
+
/**
|
|
2151
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2152
|
+
*/
|
|
2153
|
+
interval: Duration.Interval;
|
|
2154
|
+
/**
|
|
2155
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2156
|
+
*/
|
|
2157
|
+
interval_count: number;
|
|
2158
|
+
}
|
|
2159
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
2160
|
+
namespace Duration {
|
|
2161
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
}
|
|
1710
2165
|
namespace Period {
|
|
1711
2166
|
interface End {
|
|
1712
2167
|
/**
|
|
@@ -1754,6 +2209,38 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1754
2209
|
type Type = 'account' | 'self' | OtherString;
|
|
1755
2210
|
}
|
|
1756
2211
|
}
|
|
2212
|
+
namespace Discount {
|
|
2213
|
+
interface DiscountEnd {
|
|
2214
|
+
/**
|
|
2215
|
+
* Time span for the redeemed discount.
|
|
2216
|
+
*/
|
|
2217
|
+
duration?: DiscountEnd.Duration;
|
|
2218
|
+
/**
|
|
2219
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2220
|
+
*/
|
|
2221
|
+
timestamp?: number;
|
|
2222
|
+
/**
|
|
2223
|
+
* The type of calculation made to determine when the discount ends.
|
|
2224
|
+
*/
|
|
2225
|
+
type: DiscountEnd.Type;
|
|
2226
|
+
}
|
|
2227
|
+
namespace DiscountEnd {
|
|
2228
|
+
interface Duration {
|
|
2229
|
+
/**
|
|
2230
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2231
|
+
*/
|
|
2232
|
+
interval: Duration.Interval;
|
|
2233
|
+
/**
|
|
2234
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2235
|
+
*/
|
|
2236
|
+
interval_count: number;
|
|
2237
|
+
}
|
|
2238
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
2239
|
+
namespace Duration {
|
|
2240
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2241
|
+
}
|
|
2242
|
+
}
|
|
2243
|
+
}
|
|
1757
2244
|
namespace Duration {
|
|
1758
2245
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1759
2246
|
}
|
|
@@ -1798,6 +2285,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1798
2285
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1799
2286
|
*/
|
|
1800
2287
|
discount?: string;
|
|
2288
|
+
/**
|
|
2289
|
+
* Details to determine how long the discount should be applied for.
|
|
2290
|
+
*/
|
|
2291
|
+
discount_end?: Discount.DiscountEnd;
|
|
1801
2292
|
/**
|
|
1802
2293
|
* ID of the promotion code to create a new discount for.
|
|
1803
2294
|
*/
|
|
@@ -1829,6 +2320,48 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1829
2320
|
*/
|
|
1830
2321
|
unit_amount_decimal?: Decimal;
|
|
1831
2322
|
}
|
|
2323
|
+
interface Trial {
|
|
2324
|
+
/**
|
|
2325
|
+
* 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.
|
|
2326
|
+
*/
|
|
2327
|
+
converts_to?: Array<string>;
|
|
2328
|
+
/**
|
|
2329
|
+
* Determines the type of trial for this item.
|
|
2330
|
+
*/
|
|
2331
|
+
type: Trial.Type;
|
|
2332
|
+
}
|
|
2333
|
+
namespace Discount {
|
|
2334
|
+
interface DiscountEnd {
|
|
2335
|
+
/**
|
|
2336
|
+
* Time span for the redeemed discount.
|
|
2337
|
+
*/
|
|
2338
|
+
duration?: DiscountEnd.Duration;
|
|
2339
|
+
/**
|
|
2340
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2341
|
+
*/
|
|
2342
|
+
timestamp?: number;
|
|
2343
|
+
/**
|
|
2344
|
+
* The type of calculation made to determine when the discount ends.
|
|
2345
|
+
*/
|
|
2346
|
+
type: DiscountEnd.Type;
|
|
2347
|
+
}
|
|
2348
|
+
namespace DiscountEnd {
|
|
2349
|
+
interface Duration {
|
|
2350
|
+
/**
|
|
2351
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2352
|
+
*/
|
|
2353
|
+
interval: Duration.Interval;
|
|
2354
|
+
/**
|
|
2355
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2356
|
+
*/
|
|
2357
|
+
interval_count: number;
|
|
2358
|
+
}
|
|
2359
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
2360
|
+
namespace Duration {
|
|
2361
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2362
|
+
}
|
|
2363
|
+
}
|
|
2364
|
+
}
|
|
1832
2365
|
namespace PriceData {
|
|
1833
2366
|
interface Recurring {
|
|
1834
2367
|
/**
|
|
@@ -1845,8 +2378,28 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1845
2378
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1846
2379
|
}
|
|
1847
2380
|
}
|
|
2381
|
+
namespace Trial {
|
|
2382
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
2383
|
+
}
|
|
2384
|
+
}
|
|
2385
|
+
namespace PauseCollection {
|
|
2386
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
2387
|
+
}
|
|
2388
|
+
namespace TrialSettings {
|
|
2389
|
+
interface EndBehavior {
|
|
2390
|
+
/**
|
|
2391
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
2392
|
+
*/
|
|
2393
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
2394
|
+
}
|
|
2395
|
+
namespace EndBehavior {
|
|
2396
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
2397
|
+
}
|
|
1848
2398
|
}
|
|
1849
2399
|
}
|
|
2400
|
+
namespace Prebilling {
|
|
2401
|
+
type UpdateBehavior = 'prebill' | 'reset' | OtherString;
|
|
2402
|
+
}
|
|
1850
2403
|
}
|
|
1851
2404
|
export interface SubscriptionScheduleListParams extends PaginationParams {
|
|
1852
2405
|
/**
|
|
@@ -1882,6 +2435,605 @@ export interface SubscriptionScheduleListParams extends PaginationParams {
|
|
|
1882
2435
|
*/
|
|
1883
2436
|
scheduled?: boolean;
|
|
1884
2437
|
}
|
|
2438
|
+
export interface SubscriptionScheduleAmendParams {
|
|
2439
|
+
/**
|
|
2440
|
+
* Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
2441
|
+
*/
|
|
2442
|
+
amendments?: Array<SubscriptionScheduleAmendParams.Amendment>;
|
|
2443
|
+
/**
|
|
2444
|
+
* Specifies which fields in the response should be expanded.
|
|
2445
|
+
*/
|
|
2446
|
+
expand?: Array<string>;
|
|
2447
|
+
/**
|
|
2448
|
+
* Provide any time periods to bill in advance.
|
|
2449
|
+
*/
|
|
2450
|
+
prebilling?: Emptyable<Array<SubscriptionScheduleAmendParams.Prebilling>>;
|
|
2451
|
+
/**
|
|
2452
|
+
* In cases where the amendment changes the currently active phase,
|
|
2453
|
+
* specifies if and how to prorate at the time of the request.
|
|
2454
|
+
*/
|
|
2455
|
+
proration_behavior?: SubscriptionScheduleAmendParams.ProrationBehavior;
|
|
2456
|
+
/**
|
|
2457
|
+
* Changes to apply to the subscription schedule.
|
|
2458
|
+
*/
|
|
2459
|
+
schedule_settings?: SubscriptionScheduleAmendParams.ScheduleSettings;
|
|
2460
|
+
}
|
|
2461
|
+
export declare namespace SubscriptionScheduleAmendParams {
|
|
2462
|
+
interface Amendment {
|
|
2463
|
+
/**
|
|
2464
|
+
* 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.
|
|
2465
|
+
*/
|
|
2466
|
+
amendment_end?: Amendment.AmendmentEnd;
|
|
2467
|
+
/**
|
|
2468
|
+
* Details to identify the earliest timestamp where the proposed change should take effect.
|
|
2469
|
+
*/
|
|
2470
|
+
amendment_start: Amendment.AmendmentStart;
|
|
2471
|
+
/**
|
|
2472
|
+
* 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.
|
|
2473
|
+
*/
|
|
2474
|
+
billing_cycle_anchor?: Amendment.BillingCycleAnchor;
|
|
2475
|
+
/**
|
|
2476
|
+
* Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
2477
|
+
*/
|
|
2478
|
+
discount_actions?: Array<Amendment.DiscountAction>;
|
|
2479
|
+
/**
|
|
2480
|
+
* Changes to the subscription items during the amendment time span.
|
|
2481
|
+
*/
|
|
2482
|
+
item_actions?: Array<Amendment.ItemAction>;
|
|
2483
|
+
/**
|
|
2484
|
+
* Instructions for how to modify phase metadata
|
|
2485
|
+
*/
|
|
2486
|
+
metadata_actions?: Array<Amendment.MetadataAction>;
|
|
2487
|
+
/**
|
|
2488
|
+
* 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`.
|
|
2489
|
+
*/
|
|
2490
|
+
proration_behavior?: Amendment.ProrationBehavior;
|
|
2491
|
+
/**
|
|
2492
|
+
* Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
2493
|
+
*/
|
|
2494
|
+
set_pause_collection?: Amendment.SetPauseCollection;
|
|
2495
|
+
/**
|
|
2496
|
+
* Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
2497
|
+
*/
|
|
2498
|
+
set_schedule_end?: Amendment.SetScheduleEnd;
|
|
2499
|
+
/**
|
|
2500
|
+
* Settings related to subscription trials.
|
|
2501
|
+
*/
|
|
2502
|
+
trial_settings?: Amendment.TrialSettings;
|
|
2503
|
+
}
|
|
2504
|
+
interface Prebilling {
|
|
2505
|
+
/**
|
|
2506
|
+
* The beginning of the prebilled time period. The default value is `now`.
|
|
2507
|
+
*/
|
|
2508
|
+
bill_from?: Prebilling.BillFrom;
|
|
2509
|
+
/**
|
|
2510
|
+
* The end of the prebilled time period.
|
|
2511
|
+
*/
|
|
2512
|
+
bill_until?: Prebilling.BillUntil;
|
|
2513
|
+
/**
|
|
2514
|
+
* When the prebilling invoice should be created. The default value is `now`.
|
|
2515
|
+
*/
|
|
2516
|
+
invoice_at?: 'now';
|
|
2517
|
+
/**
|
|
2518
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
2519
|
+
*/
|
|
2520
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
2521
|
+
}
|
|
2522
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
2523
|
+
interface ScheduleSettings {
|
|
2524
|
+
/**
|
|
2525
|
+
* Behavior of the subscription schedule and underlying subscription when it ends.
|
|
2526
|
+
*/
|
|
2527
|
+
end_behavior?: ScheduleSettings.EndBehavior;
|
|
2528
|
+
}
|
|
2529
|
+
namespace Amendment {
|
|
2530
|
+
interface AmendmentEnd {
|
|
2531
|
+
/**
|
|
2532
|
+
* Use the `end` time of a given discount.
|
|
2533
|
+
*/
|
|
2534
|
+
discount_end?: AmendmentEnd.DiscountEnd;
|
|
2535
|
+
/**
|
|
2536
|
+
* Time span for the amendment starting from the `amendment_start`.
|
|
2537
|
+
*/
|
|
2538
|
+
duration?: AmendmentEnd.Duration;
|
|
2539
|
+
/**
|
|
2540
|
+
* A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
2541
|
+
*/
|
|
2542
|
+
timestamp?: number;
|
|
2543
|
+
/**
|
|
2544
|
+
* Select one of three ways to pass the `amendment_end`.
|
|
2545
|
+
*/
|
|
2546
|
+
type: AmendmentEnd.Type;
|
|
2547
|
+
}
|
|
2548
|
+
interface AmendmentStart {
|
|
2549
|
+
/**
|
|
2550
|
+
* Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
2551
|
+
*/
|
|
2552
|
+
amendment_end?: AmendmentStart.AmendmentEnd;
|
|
2553
|
+
/**
|
|
2554
|
+
* Use the `end` time of a given discount.
|
|
2555
|
+
*/
|
|
2556
|
+
discount_end?: AmendmentStart.DiscountEnd;
|
|
2557
|
+
/**
|
|
2558
|
+
* A precise Unix timestamp for the amendment to start.
|
|
2559
|
+
*/
|
|
2560
|
+
timestamp?: number;
|
|
2561
|
+
/**
|
|
2562
|
+
* Select one of three ways to pass the `amendment_start`.
|
|
2563
|
+
*/
|
|
2564
|
+
type: AmendmentStart.Type;
|
|
2565
|
+
}
|
|
2566
|
+
type BillingCycleAnchor = 'amendment_start' | 'automatic' | OtherString;
|
|
2567
|
+
interface DiscountAction {
|
|
2568
|
+
/**
|
|
2569
|
+
* Details of the discount to add.
|
|
2570
|
+
*/
|
|
2571
|
+
add?: DiscountAction.Add;
|
|
2572
|
+
/**
|
|
2573
|
+
* Details of the discount to remove.
|
|
2574
|
+
*/
|
|
2575
|
+
remove?: DiscountAction.Remove;
|
|
2576
|
+
/**
|
|
2577
|
+
* Details of the discount to replace the existing discounts with.
|
|
2578
|
+
*/
|
|
2579
|
+
set?: DiscountAction.Set;
|
|
2580
|
+
/**
|
|
2581
|
+
* Determines the type of discount action.
|
|
2582
|
+
*/
|
|
2583
|
+
type: DiscountAction.Type;
|
|
2584
|
+
}
|
|
2585
|
+
interface ItemAction {
|
|
2586
|
+
/**
|
|
2587
|
+
* 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.
|
|
2588
|
+
*/
|
|
2589
|
+
add?: ItemAction.Add;
|
|
2590
|
+
/**
|
|
2591
|
+
* Details of the subscription item to remove.
|
|
2592
|
+
*/
|
|
2593
|
+
remove?: ItemAction.Remove;
|
|
2594
|
+
/**
|
|
2595
|
+
* 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.
|
|
2596
|
+
*/
|
|
2597
|
+
set?: ItemAction.Set;
|
|
2598
|
+
/**
|
|
2599
|
+
* Determines the type of item action.
|
|
2600
|
+
*/
|
|
2601
|
+
type: ItemAction.Type;
|
|
2602
|
+
}
|
|
2603
|
+
interface MetadataAction {
|
|
2604
|
+
/**
|
|
2605
|
+
* Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
2606
|
+
*/
|
|
2607
|
+
add?: {
|
|
2608
|
+
[key: string]: string;
|
|
2609
|
+
};
|
|
2610
|
+
/**
|
|
2611
|
+
* Keys to remove from schedule phase metadata.
|
|
2612
|
+
*/
|
|
2613
|
+
remove?: Array<string>;
|
|
2614
|
+
/**
|
|
2615
|
+
* Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
2616
|
+
*/
|
|
2617
|
+
set?: Emptyable<{
|
|
2618
|
+
[key: string]: string;
|
|
2619
|
+
}>;
|
|
2620
|
+
/**
|
|
2621
|
+
* Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
2622
|
+
*/
|
|
2623
|
+
type: MetadataAction.Type;
|
|
2624
|
+
}
|
|
2625
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
2626
|
+
interface SetPauseCollection {
|
|
2627
|
+
/**
|
|
2628
|
+
* Details of the pause_collection behavior to apply to the amendment.
|
|
2629
|
+
*/
|
|
2630
|
+
set?: SetPauseCollection.Set;
|
|
2631
|
+
/**
|
|
2632
|
+
* Determines the type of the pause_collection amendment.
|
|
2633
|
+
*/
|
|
2634
|
+
type: SetPauseCollection.Type;
|
|
2635
|
+
}
|
|
2636
|
+
type SetScheduleEnd = 'amendment_end' | 'amendment_start' | OtherString;
|
|
2637
|
+
interface TrialSettings {
|
|
2638
|
+
/**
|
|
2639
|
+
* Defines how the subscription should behave when a trial ends.
|
|
2640
|
+
*/
|
|
2641
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
2642
|
+
}
|
|
2643
|
+
namespace AmendmentEnd {
|
|
2644
|
+
interface DiscountEnd {
|
|
2645
|
+
/**
|
|
2646
|
+
* The ID of a specific discount.
|
|
2647
|
+
*/
|
|
2648
|
+
discount: string;
|
|
2649
|
+
}
|
|
2650
|
+
interface Duration {
|
|
2651
|
+
/**
|
|
2652
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2653
|
+
*/
|
|
2654
|
+
interval: Duration.Interval;
|
|
2655
|
+
/**
|
|
2656
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2657
|
+
*/
|
|
2658
|
+
interval_count: number;
|
|
2659
|
+
}
|
|
2660
|
+
type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
|
|
2661
|
+
namespace Duration {
|
|
2662
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2663
|
+
}
|
|
2664
|
+
}
|
|
2665
|
+
namespace AmendmentStart {
|
|
2666
|
+
interface AmendmentEnd {
|
|
2667
|
+
/**
|
|
2668
|
+
* 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.
|
|
2669
|
+
*/
|
|
2670
|
+
index: number;
|
|
2671
|
+
}
|
|
2672
|
+
interface DiscountEnd {
|
|
2673
|
+
/**
|
|
2674
|
+
* The ID of a specific discount.
|
|
2675
|
+
*/
|
|
2676
|
+
discount: string;
|
|
2677
|
+
}
|
|
2678
|
+
type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
|
|
2679
|
+
}
|
|
2680
|
+
namespace DiscountAction {
|
|
2681
|
+
interface Add {
|
|
2682
|
+
/**
|
|
2683
|
+
* The coupon code to redeem.
|
|
2684
|
+
*/
|
|
2685
|
+
coupon?: string;
|
|
2686
|
+
/**
|
|
2687
|
+
* An ID of an existing discount for a coupon that was already redeemed.
|
|
2688
|
+
*/
|
|
2689
|
+
discount?: string;
|
|
2690
|
+
/**
|
|
2691
|
+
* Details to determine how long the discount should be applied for.
|
|
2692
|
+
*/
|
|
2693
|
+
discount_end?: Add.DiscountEnd;
|
|
2694
|
+
/**
|
|
2695
|
+
* 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.
|
|
2696
|
+
*/
|
|
2697
|
+
index?: number;
|
|
2698
|
+
/**
|
|
2699
|
+
* The promotion code to redeem.
|
|
2700
|
+
*/
|
|
2701
|
+
promotion_code?: string;
|
|
2702
|
+
}
|
|
2703
|
+
interface Remove {
|
|
2704
|
+
/**
|
|
2705
|
+
* The coupon code to remove from the `discounts` array.
|
|
2706
|
+
*/
|
|
2707
|
+
coupon?: string;
|
|
2708
|
+
/**
|
|
2709
|
+
* The ID of a discount to remove from the `discounts` array.
|
|
2710
|
+
*/
|
|
2711
|
+
discount?: string;
|
|
2712
|
+
/**
|
|
2713
|
+
* The ID of a promotion code to remove from the `discounts` array.
|
|
2714
|
+
*/
|
|
2715
|
+
promotion_code?: string;
|
|
2716
|
+
}
|
|
2717
|
+
interface Set {
|
|
2718
|
+
/**
|
|
2719
|
+
* The coupon code to replace the `discounts` array with.
|
|
2720
|
+
*/
|
|
2721
|
+
coupon?: string;
|
|
2722
|
+
/**
|
|
2723
|
+
* An ID of an existing discount to replace the `discounts` array with.
|
|
2724
|
+
*/
|
|
2725
|
+
discount?: string;
|
|
2726
|
+
/**
|
|
2727
|
+
* An ID of an existing promotion code to replace the `discounts` array with.
|
|
2728
|
+
*/
|
|
2729
|
+
promotion_code?: string;
|
|
2730
|
+
}
|
|
2731
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
2732
|
+
namespace Add {
|
|
2733
|
+
interface DiscountEnd {
|
|
2734
|
+
/**
|
|
2735
|
+
* The type of calculation made to determine when the discount ends.
|
|
2736
|
+
*/
|
|
2737
|
+
type: 'amendment_end';
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2740
|
+
}
|
|
2741
|
+
namespace ItemAction {
|
|
2742
|
+
interface Add {
|
|
2743
|
+
/**
|
|
2744
|
+
* The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
2745
|
+
*/
|
|
2746
|
+
discounts?: Array<Add.Discount>;
|
|
2747
|
+
/**
|
|
2748
|
+
* 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`.
|
|
2749
|
+
*/
|
|
2750
|
+
metadata?: MetadataParam;
|
|
2751
|
+
/**
|
|
2752
|
+
* The ID of the price object.
|
|
2753
|
+
*/
|
|
2754
|
+
price: string;
|
|
2755
|
+
/**
|
|
2756
|
+
* Quantity for this item.
|
|
2757
|
+
*/
|
|
2758
|
+
quantity?: number;
|
|
2759
|
+
/**
|
|
2760
|
+
* 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`.
|
|
2761
|
+
*/
|
|
2762
|
+
tax_rates?: Array<string>;
|
|
2763
|
+
/**
|
|
2764
|
+
* Options that configure the trial on the subscription item.
|
|
2765
|
+
*/
|
|
2766
|
+
trial?: Add.Trial;
|
|
2767
|
+
/**
|
|
2768
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
2769
|
+
*/
|
|
2770
|
+
trial_offer?: string;
|
|
2771
|
+
}
|
|
2772
|
+
interface Remove {
|
|
2773
|
+
/**
|
|
2774
|
+
* ID of a price to remove.
|
|
2775
|
+
*/
|
|
2776
|
+
price: string;
|
|
2777
|
+
}
|
|
2778
|
+
interface Set {
|
|
2779
|
+
/**
|
|
2780
|
+
* 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`.
|
|
2781
|
+
*/
|
|
2782
|
+
discounts?: Array<Set.Discount>;
|
|
2783
|
+
/**
|
|
2784
|
+
* 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`.
|
|
2785
|
+
*/
|
|
2786
|
+
metadata?: MetadataParam;
|
|
2787
|
+
/**
|
|
2788
|
+
* The ID of the price object.
|
|
2789
|
+
*/
|
|
2790
|
+
price: string;
|
|
2791
|
+
/**
|
|
2792
|
+
* 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`.
|
|
2793
|
+
*/
|
|
2794
|
+
quantity?: number;
|
|
2795
|
+
/**
|
|
2796
|
+
* 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`.
|
|
2797
|
+
*/
|
|
2798
|
+
tax_rates?: Array<string>;
|
|
2799
|
+
/**
|
|
2800
|
+
* 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`.
|
|
2801
|
+
*/
|
|
2802
|
+
trial?: Set.Trial;
|
|
2803
|
+
/**
|
|
2804
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
2805
|
+
*/
|
|
2806
|
+
trial_offer?: string;
|
|
2807
|
+
}
|
|
2808
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
2809
|
+
namespace Add {
|
|
2810
|
+
interface Discount {
|
|
2811
|
+
/**
|
|
2812
|
+
* ID of the coupon to create a new discount for.
|
|
2813
|
+
*/
|
|
2814
|
+
coupon?: string;
|
|
2815
|
+
/**
|
|
2816
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2817
|
+
*/
|
|
2818
|
+
discount?: string;
|
|
2819
|
+
/**
|
|
2820
|
+
* Details to determine how long the discount should be applied for.
|
|
2821
|
+
*/
|
|
2822
|
+
discount_end?: Discount.DiscountEnd;
|
|
2823
|
+
/**
|
|
2824
|
+
* ID of the promotion code to create a new discount for.
|
|
2825
|
+
*/
|
|
2826
|
+
promotion_code?: string;
|
|
2827
|
+
}
|
|
2828
|
+
interface Trial {
|
|
2829
|
+
/**
|
|
2830
|
+
* 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.
|
|
2831
|
+
*/
|
|
2832
|
+
converts_to?: Array<string>;
|
|
2833
|
+
/**
|
|
2834
|
+
* Determines the type of trial for this item.
|
|
2835
|
+
*/
|
|
2836
|
+
type: Trial.Type;
|
|
2837
|
+
}
|
|
2838
|
+
namespace Discount {
|
|
2839
|
+
interface DiscountEnd {
|
|
2840
|
+
/**
|
|
2841
|
+
* Time span for the redeemed discount.
|
|
2842
|
+
*/
|
|
2843
|
+
duration?: DiscountEnd.Duration;
|
|
2844
|
+
/**
|
|
2845
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2846
|
+
*/
|
|
2847
|
+
timestamp?: number;
|
|
2848
|
+
/**
|
|
2849
|
+
* The type of calculation made to determine when the discount ends.
|
|
2850
|
+
*/
|
|
2851
|
+
type: DiscountEnd.Type;
|
|
2852
|
+
}
|
|
2853
|
+
namespace DiscountEnd {
|
|
2854
|
+
interface Duration {
|
|
2855
|
+
/**
|
|
2856
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2857
|
+
*/
|
|
2858
|
+
interval: Duration.Interval;
|
|
2859
|
+
/**
|
|
2860
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2861
|
+
*/
|
|
2862
|
+
interval_count: number;
|
|
2863
|
+
}
|
|
2864
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
2865
|
+
namespace Duration {
|
|
2866
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
}
|
|
2870
|
+
namespace Trial {
|
|
2871
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
2872
|
+
}
|
|
2873
|
+
}
|
|
2874
|
+
namespace Set {
|
|
2875
|
+
interface Discount {
|
|
2876
|
+
/**
|
|
2877
|
+
* ID of the coupon to create a new discount for.
|
|
2878
|
+
*/
|
|
2879
|
+
coupon?: string;
|
|
2880
|
+
/**
|
|
2881
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2882
|
+
*/
|
|
2883
|
+
discount?: string;
|
|
2884
|
+
/**
|
|
2885
|
+
* Details to determine how long the discount should be applied for.
|
|
2886
|
+
*/
|
|
2887
|
+
discount_end?: Discount.DiscountEnd;
|
|
2888
|
+
/**
|
|
2889
|
+
* ID of the promotion code to create a new discount for.
|
|
2890
|
+
*/
|
|
2891
|
+
promotion_code?: string;
|
|
2892
|
+
}
|
|
2893
|
+
interface Trial {
|
|
2894
|
+
/**
|
|
2895
|
+
* 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.
|
|
2896
|
+
*/
|
|
2897
|
+
converts_to?: Array<string>;
|
|
2898
|
+
/**
|
|
2899
|
+
* Determines the type of trial for this item.
|
|
2900
|
+
*/
|
|
2901
|
+
type: Trial.Type;
|
|
2902
|
+
}
|
|
2903
|
+
namespace Discount {
|
|
2904
|
+
interface DiscountEnd {
|
|
2905
|
+
/**
|
|
2906
|
+
* Time span for the redeemed discount.
|
|
2907
|
+
*/
|
|
2908
|
+
duration?: DiscountEnd.Duration;
|
|
2909
|
+
/**
|
|
2910
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2911
|
+
*/
|
|
2912
|
+
timestamp?: number;
|
|
2913
|
+
/**
|
|
2914
|
+
* The type of calculation made to determine when the discount ends.
|
|
2915
|
+
*/
|
|
2916
|
+
type: DiscountEnd.Type;
|
|
2917
|
+
}
|
|
2918
|
+
namespace DiscountEnd {
|
|
2919
|
+
interface Duration {
|
|
2920
|
+
/**
|
|
2921
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2922
|
+
*/
|
|
2923
|
+
interval: Duration.Interval;
|
|
2924
|
+
/**
|
|
2925
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2926
|
+
*/
|
|
2927
|
+
interval_count: number;
|
|
2928
|
+
}
|
|
2929
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
2930
|
+
namespace Duration {
|
|
2931
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2932
|
+
}
|
|
2933
|
+
}
|
|
2934
|
+
}
|
|
2935
|
+
namespace Trial {
|
|
2936
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
2937
|
+
}
|
|
2938
|
+
}
|
|
2939
|
+
}
|
|
2940
|
+
namespace MetadataAction {
|
|
2941
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
2942
|
+
}
|
|
2943
|
+
namespace SetPauseCollection {
|
|
2944
|
+
interface Set {
|
|
2945
|
+
/**
|
|
2946
|
+
* The payment collection behavior for this subscription while paused.
|
|
2947
|
+
*/
|
|
2948
|
+
behavior: Set.Behavior;
|
|
2949
|
+
}
|
|
2950
|
+
type Type = 'remove' | 'set' | OtherString;
|
|
2951
|
+
namespace Set {
|
|
2952
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
2953
|
+
}
|
|
2954
|
+
}
|
|
2955
|
+
namespace TrialSettings {
|
|
2956
|
+
interface EndBehavior {
|
|
2957
|
+
/**
|
|
2958
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
2959
|
+
*/
|
|
2960
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
2961
|
+
}
|
|
2962
|
+
namespace EndBehavior {
|
|
2963
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
namespace Prebilling {
|
|
2968
|
+
interface BillFrom {
|
|
2969
|
+
/**
|
|
2970
|
+
* Start the prebilled period when a specified amendment begins.
|
|
2971
|
+
*/
|
|
2972
|
+
amendment_start?: BillFrom.AmendmentStart;
|
|
2973
|
+
/**
|
|
2974
|
+
* Start the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
2975
|
+
*/
|
|
2976
|
+
timestamp?: number;
|
|
2977
|
+
/**
|
|
2978
|
+
* Select one of several ways to pass the `bill_from` value.
|
|
2979
|
+
*/
|
|
2980
|
+
type: BillFrom.Type;
|
|
2981
|
+
}
|
|
2982
|
+
interface BillUntil {
|
|
2983
|
+
/**
|
|
2984
|
+
* End the prebilled period when a specified amendment ends.
|
|
2985
|
+
*/
|
|
2986
|
+
amendment_end?: BillUntil.AmendmentEnd;
|
|
2987
|
+
/**
|
|
2988
|
+
* Time span for prebilling, starting from `bill_from`.
|
|
2989
|
+
*/
|
|
2990
|
+
duration?: BillUntil.Duration;
|
|
2991
|
+
/**
|
|
2992
|
+
* End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
2993
|
+
*/
|
|
2994
|
+
timestamp?: number;
|
|
2995
|
+
/**
|
|
2996
|
+
* Select one of several ways to pass the `bill_until` value.
|
|
2997
|
+
*/
|
|
2998
|
+
type: BillUntil.Type;
|
|
2999
|
+
}
|
|
3000
|
+
type UpdateBehavior = 'prebill' | 'reset' | OtherString;
|
|
3001
|
+
namespace BillFrom {
|
|
3002
|
+
interface AmendmentStart {
|
|
3003
|
+
/**
|
|
3004
|
+
* 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.
|
|
3005
|
+
*/
|
|
3006
|
+
index: number;
|
|
3007
|
+
}
|
|
3008
|
+
type Type = 'amendment_start' | 'now' | 'timestamp' | OtherString;
|
|
3009
|
+
}
|
|
3010
|
+
namespace BillUntil {
|
|
3011
|
+
interface AmendmentEnd {
|
|
3012
|
+
/**
|
|
3013
|
+
* 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.
|
|
3014
|
+
*/
|
|
3015
|
+
index: number;
|
|
3016
|
+
}
|
|
3017
|
+
interface Duration {
|
|
3018
|
+
/**
|
|
3019
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3020
|
+
*/
|
|
3021
|
+
interval: Duration.Interval;
|
|
3022
|
+
/**
|
|
3023
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3024
|
+
*/
|
|
3025
|
+
interval_count: number;
|
|
3026
|
+
}
|
|
3027
|
+
type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp' | OtherString;
|
|
3028
|
+
namespace Duration {
|
|
3029
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3030
|
+
}
|
|
3031
|
+
}
|
|
3032
|
+
}
|
|
3033
|
+
namespace ScheduleSettings {
|
|
3034
|
+
type EndBehavior = 'cancel' | 'release' | OtherString;
|
|
3035
|
+
}
|
|
3036
|
+
}
|
|
1885
3037
|
export interface SubscriptionScheduleCancelParams {
|
|
1886
3038
|
/**
|
|
1887
3039
|
* Specifies which fields in the response should be expanded.
|