stripe 23.1.0 → 23.2.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1914 -4850
- package/README.md +42 -58
- package/VERSION +1 -1
- package/cjs/Error.d.ts +6 -0
- package/cjs/Error.js +17 -1
- package/cjs/Error.js.map +1 -1
- package/cjs/StripeEventNotificationHandler.js +54 -0
- package/cjs/StripeEventNotificationHandler.js.map +1 -1
- package/cjs/Types.d.ts +4 -2
- package/cjs/Types.js.map +1 -1
- package/cjs/apiVersion.d.ts +2 -2
- package/cjs/apiVersion.js +2 -2
- package/cjs/apiVersion.js.map +1 -1
- package/cjs/resources/AccountLinks.d.ts +1 -1
- package/cjs/resources/AccountNotices.d.ts +140 -0
- package/cjs/resources/AccountNotices.js +29 -0
- package/cjs/resources/AccountNotices.js.map +1 -0
- package/cjs/resources/AccountSessions.d.ts +226 -0
- package/cjs/resources/AccountSessions.js.map +1 -1
- package/cjs/resources/Accounts.d.ts +625 -3
- package/cjs/resources/Accounts.js +14 -0
- package/cjs/resources/Accounts.js.map +1 -1
- package/cjs/resources/Balance.d.ts +67 -0
- package/cjs/resources/BalanceSettings.d.ts +18 -0
- package/cjs/resources/BankAccounts.d.ts +2 -2
- package/cjs/resources/Billing/AlertTriggereds.d.ts +2 -1
- package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js +15 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js.map +1 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js +4 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
- package/cjs/resources/Billing/Analytics/index.d.ts +15 -0
- package/cjs/resources/Billing/Analytics/index.js +13 -0
- package/cjs/resources/Billing/Analytics/index.js.map +1 -0
- package/cjs/resources/Billing/index.d.ts +3 -0
- package/cjs/resources/Billing/index.js +2 -0
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/Capabilities.d.ts +2 -2
- package/cjs/resources/Capital/FinancingOffers.d.ts +194 -0
- package/cjs/resources/Capital/FinancingOffers.js +30 -0
- package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
- package/cjs/resources/Capital/FinancingSummary.d.ts +102 -0
- package/cjs/resources/Capital/FinancingSummary.js +15 -0
- package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
- package/cjs/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/cjs/resources/Capital/FinancingTransactions.js +24 -0
- package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
- package/cjs/resources/Capital/index.d.ts +25 -0
- package/cjs/resources/Capital/index.js +17 -0
- package/cjs/resources/Capital/index.js.map +1 -0
- package/cjs/resources/Cards.d.ts +17 -0
- package/cjs/resources/Charges.d.ts +3077 -70
- package/cjs/resources/Checkout/Sessions.d.ts +351 -4
- package/cjs/resources/ConfirmationTokens.d.ts +67 -1
- package/cjs/resources/Coupons.d.ts +53 -0
- package/cjs/resources/Coupons.js +13 -0
- package/cjs/resources/Coupons.js.map +1 -1
- package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
- package/cjs/resources/CreditNotes.d.ts +1 -1
- package/cjs/resources/CustomerSessions.d.ts +68 -0
- package/cjs/resources/Customers.d.ts +20 -1
- package/cjs/resources/Customers.js +14 -0
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/Disputes.d.ts +14 -0
- package/cjs/resources/Events.d.ts +614 -3
- package/cjs/resources/ExternalAccounts.d.ts +212 -1
- package/cjs/resources/ExternalAccounts.js +44 -0
- package/cjs/resources/ExternalAccounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/cjs/resources/FinancialConnections/Accounts.d.ts +69 -4
- package/cjs/resources/FinancialConnections/Accounts.js +8 -0
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +46 -1
- package/cjs/resources/FinancialConnections/Authorizations.js +11 -0
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/cjs/resources/FinancialConnections/Institutions.d.ts +99 -0
- package/cjs/resources/FinancialConnections/Institutions.js +23 -0
- package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
- package/cjs/resources/FinancialConnections/Sessions.d.ts +124 -9
- package/cjs/resources/FinancialConnections/index.d.ts +21 -9
- package/cjs/resources/FinancialConnections/index.js +4 -0
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/FxQuotes.d.ts +216 -0
- package/cjs/resources/FxQuotes.js +29 -0
- package/cjs/resources/FxQuotes.js.map +1 -0
- package/cjs/resources/InvoiceItems.d.ts +85 -0
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +40 -2
- package/cjs/resources/Invoices.d.ts +1257 -10
- package/cjs/resources/Invoices.js +41 -0
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +13 -0
- package/cjs/resources/Issuing/Cardholders.d.ts +19 -1
- package/cjs/resources/Issuing/Cards.d.ts +13 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/cjs/resources/Issuing/Disputes.d.ts +13 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/cjs/resources/Issuing/Settlements.d.ts +83 -0
- package/cjs/resources/Issuing/Settlements.js +4 -0
- package/cjs/resources/Issuing/Settlements.js.map +1 -0
- package/cjs/resources/Issuing/Transactions.d.ts +22 -0
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +47 -22
- package/cjs/resources/Issuing/index.js +6 -0
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +29 -2
- package/cjs/resources/Mandates.d.ts +36 -2
- package/cjs/resources/Mandates.js +8 -0
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/Margins.d.ts +115 -0
- package/cjs/resources/Margins.js +35 -0
- package/cjs/resources/Margins.js.map +1 -0
- package/cjs/resources/Orders.d.ts +4696 -0
- package/cjs/resources/Orders.js +457 -0
- package/cjs/resources/Orders.js.map +1 -0
- package/cjs/resources/PaymentAttemptRecords.d.ts +82 -0
- package/cjs/resources/PaymentIntents.d.ts +13832 -2816
- package/cjs/resources/PaymentIntents.js +27 -0
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +3 -3
- package/cjs/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/cjs/resources/PaymentMethods.d.ts +181 -3
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentPlans.d.ts +427 -0
- package/cjs/resources/PaymentPlans.js +35 -0
- package/cjs/resources/PaymentPlans.js.map +1 -0
- package/cjs/resources/PaymentRecords.d.ts +82 -0
- package/cjs/resources/Persons.d.ts +2 -2
- package/cjs/resources/Prices.d.ts +36 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/cjs/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/cjs/resources/Privacy/RedactionJobs.js +73 -0
- package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
- package/cjs/resources/Privacy/index.d.ts +22 -0
- package/cjs/resources/Privacy/index.js +13 -0
- package/cjs/resources/Privacy/index.js.map +1 -0
- package/cjs/resources/ProductCatalog/TrialOffers.d.ts +2 -2
- package/cjs/resources/PromotionCodes.d.ts +12 -0
- package/cjs/resources/PromotionCodes.js +27 -0
- package/cjs/resources/PromotionCodes.js.map +1 -1
- package/cjs/resources/QuoteLines.d.ts +507 -0
- package/cjs/resources/QuoteLines.js +4 -0
- package/cjs/resources/QuoteLines.js.map +1 -0
- package/cjs/resources/QuotePreviewInvoices.d.ts +1170 -0
- package/cjs/resources/QuotePreviewInvoices.js +4 -0
- package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/cjs/resources/Quotes.d.ts +2266 -57
- package/cjs/resources/Quotes.js +1184 -16
- package/cjs/resources/Quotes.js.map +1 -1
- package/cjs/resources/Radar/BillingEvaluations.d.ts +374 -0
- package/cjs/resources/Radar/BillingEvaluations.js +15 -0
- package/cjs/resources/Radar/BillingEvaluations.js.map +1 -0
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +1 -1
- package/cjs/resources/Radar/ValueListItems.d.ts +31 -1
- package/cjs/resources/Radar/index.d.ts +21 -16
- package/cjs/resources/Radar/index.js +2 -0
- package/cjs/resources/Radar/index.js.map +1 -1
- package/cjs/resources/Refunds.d.ts +11 -0
- package/cjs/resources/Reserve/Holds.d.ts +53 -1
- package/cjs/resources/Reserve/Holds.js +19 -0
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +41 -1
- package/cjs/resources/Reserve/Plans.js +19 -0
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +41 -1
- package/cjs/resources/Reserve/Releases.js +19 -0
- package/cjs/resources/Reserve/Releases.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +18 -6
- package/cjs/resources/Reserve/index.js +9 -0
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/SetupAttempts.d.ts +26 -1
- package/cjs/resources/SetupIntents.d.ts +394 -11
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +418 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/IssuedTokens.d.ts +330 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/index.d.ts +19 -0
- package/cjs/resources/SharedPayment/index.js +15 -0
- package/cjs/resources/SharedPayment/index.js.map +1 -0
- package/cjs/resources/Sources.d.ts +29 -1
- package/cjs/resources/SubscriptionItems.d.ts +114 -0
- package/cjs/resources/SubscriptionSchedules.d.ts +1157 -5
- package/cjs/resources/SubscriptionSchedules.js +6 -0
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +388 -6
- package/cjs/resources/Subscriptions.js +42 -0
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/Forms.d.ts +228 -0
- package/cjs/resources/Tax/Forms.js +32 -0
- package/cjs/resources/Tax/Forms.js.map +1 -0
- package/cjs/resources/Tax/Registrations.d.ts +25 -2
- package/cjs/resources/Tax/index.d.ts +24 -17
- package/cjs/resources/Tax/index.js +2 -0
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/Terminal/ReaderCollectedData.d.ts +50 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/cjs/resources/Terminal/Readers.d.ts +17 -1
- package/cjs/resources/Terminal/index.d.ts +5 -0
- package/cjs/resources/Terminal/index.js +2 -0
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +21 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.js +13 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.js.map +1 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
- package/cjs/resources/TestHelpers/index.d.ts +3 -0
- package/cjs/resources/TestHelpers/index.js +6 -4
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/Tokens.d.ts +15 -0
- package/cjs/resources/Transfers.d.ts +8 -0
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/cjs/resources/Treasury/OutboundPayments.d.ts +26 -0
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings.d.ts +281 -0
- package/cjs/resources/V2/Billing/BillSettings.js +41 -0
- package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/Cadences.d.ts +958 -0
- package/cjs/resources/V2/Billing/Cadences.js +198 -0
- package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/Profiles.d.ts +162 -0
- package/cjs/resources/V2/Billing/Profiles.js +35 -0
- package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
- package/cjs/resources/V2/Billing/index.d.ts +45 -6
- package/cjs/resources/V2/Billing/index.js +8 -0
- package/cjs/resources/V2/Billing/index.js.map +1 -1
- package/cjs/resources/V2/Core/AccountTokens.d.ts +28 -1
- package/cjs/resources/V2/Core/Accounts.d.ts +1465 -71
- package/cjs/resources/V2/Core/ApprovalRequests.d.ts +378 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js +39 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/cjs/resources/V2/Core/BatchJobs.d.ts +392 -0
- package/cjs/resources/V2/Core/BatchJobs.js +252 -0
- package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
- package/cjs/resources/V2/Core/Events.d.ts +1009 -5
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
- package/cjs/resources/V2/Core/index.d.ts +24 -9
- package/cjs/resources/V2/Core/index.js +4 -0
- package/cjs/resources/V2/Core/index.js.map +1 -1
- package/cjs/resources/V2/Data/QueryRuns.d.ts +299 -0
- package/cjs/resources/V2/Data/QueryRuns.js +51 -0
- package/cjs/resources/V2/Data/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/ReportRuns.d.ts +303 -0
- package/cjs/resources/V2/Data/ReportRuns.js +53 -0
- package/cjs/resources/V2/Data/ReportRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
- package/cjs/resources/V2/Data/Reports.d.ts +140 -0
- package/cjs/resources/V2/Data/Reports.js +25 -0
- package/cjs/resources/V2/Data/Reports.js.map +1 -0
- package/cjs/resources/V2/Data/Schemas.d.ts +161 -0
- package/cjs/resources/V2/Data/Schemas.js +23 -0
- package/cjs/resources/V2/Data/Schemas.js.map +1 -0
- package/cjs/resources/V2/Data/index.d.ts +34 -0
- package/cjs/resources/V2/Data/index.js +21 -0
- package/cjs/resources/V2/Data/index.js.map +1 -0
- package/cjs/resources/V2/EventMisc.d.ts +0 -0
- package/cjs/resources/V2/EventMisc.js +2 -0
- package/cjs/resources/V2/EventMisc.js.map +1 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/cjs/resources/V2/Extend/Workflows.d.ts +120 -0
- package/cjs/resources/V2/Extend/Workflows.js +30 -0
- package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +20 -0
- package/cjs/resources/V2/Extend/index.js +15 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -0
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +377 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js +23 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/cjs/resources/V2/Iam/index.d.ts +13 -0
- package/cjs/resources/V2/Iam/index.js +13 -0
- package/cjs/resources/V2/Iam/index.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +4 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +23 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +40 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/index.d.ts +63 -37
- package/cjs/resources/V2/MoneyManagement/index.js +6 -0
- package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
- package/cjs/resources/V2/Network/BusinessProfiles.d.ts +92 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/cjs/resources/V2/Network/index.d.ts +13 -0
- package/cjs/resources/V2/Network/index.js +13 -0
- package/cjs/resources/V2/Network/index.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountActivities.d.ts +432 -0
- package/cjs/resources/V2/Signals/AccountActivities.js +27 -0
- package/cjs/resources/V2/Signals/AccountActivities.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.js +59 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountSignals.d.ts +196 -0
- package/cjs/resources/V2/Signals/AccountSignals.js +66 -0
- package/cjs/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/cjs/resources/V2/Signals/index.d.ts +26 -0
- package/cjs/resources/V2/Signals/index.js +17 -0
- package/cjs/resources/V2/Signals/index.js.map +1 -0
- package/cjs/resources/V2/index.d.ts +18 -0
- package/cjs/resources/V2/index.js +16 -4
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/resources/WebhookEndpoints.d.ts +2 -2
- package/cjs/resources.d.ts +10 -0
- package/cjs/resources.js +126 -8
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.cjs.node.d.ts +6674 -138
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.core.d.ts +60 -26
- package/cjs/stripe.core.js +55 -36
- package/cjs/stripe.core.js.map +1 -1
- package/esm/Error.d.ts +6 -0
- package/esm/Error.js +14 -0
- package/esm/Error.js.map +1 -1
- package/esm/StripeEventNotificationHandler.js +54 -0
- package/esm/StripeEventNotificationHandler.js.map +1 -1
- package/esm/Types.d.ts +4 -2
- package/esm/Types.js.map +1 -1
- package/esm/apiVersion.d.ts +2 -2
- package/esm/apiVersion.js +2 -2
- package/esm/apiVersion.js.map +1 -1
- package/esm/resources/AccountLinks.d.ts +1 -1
- package/esm/resources/AccountNotices.d.ts +140 -0
- package/esm/resources/AccountNotices.js +25 -0
- package/esm/resources/AccountNotices.js.map +1 -0
- package/esm/resources/AccountSessions.d.ts +226 -0
- package/esm/resources/AccountSessions.js.map +1 -1
- package/esm/resources/Accounts.d.ts +625 -3
- package/esm/resources/Accounts.js +14 -0
- package/esm/resources/Accounts.js.map +1 -1
- package/esm/resources/Balance.d.ts +67 -0
- package/esm/resources/BalanceSettings.d.ts +18 -0
- package/esm/resources/BankAccounts.d.ts +2 -2
- package/esm/resources/Billing/AlertTriggereds.d.ts +2 -1
- package/esm/resources/Billing/Analytics/MeterUsage.d.ts +85 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js +11 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js.map +1 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +32 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.js +3 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
- package/esm/resources/Billing/Analytics/index.d.ts +15 -0
- package/esm/resources/Billing/Analytics/index.js +9 -0
- package/esm/resources/Billing/Analytics/index.js.map +1 -0
- package/esm/resources/Billing/index.d.ts +3 -0
- package/esm/resources/Billing/index.js +2 -0
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/Capabilities.d.ts +2 -2
- package/esm/resources/Capital/FinancingOffers.d.ts +194 -0
- package/esm/resources/Capital/FinancingOffers.js +26 -0
- package/esm/resources/Capital/FinancingOffers.js.map +1 -0
- package/esm/resources/Capital/FinancingSummary.d.ts +102 -0
- package/esm/resources/Capital/FinancingSummary.js +11 -0
- package/esm/resources/Capital/FinancingSummary.js.map +1 -0
- package/esm/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/esm/resources/Capital/FinancingTransactions.js +20 -0
- package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
- package/esm/resources/Capital/index.d.ts +25 -0
- package/esm/resources/Capital/index.js +13 -0
- package/esm/resources/Capital/index.js.map +1 -0
- package/esm/resources/Cards.d.ts +17 -0
- package/esm/resources/Charges.d.ts +3077 -70
- package/esm/resources/Checkout/Sessions.d.ts +351 -4
- package/esm/resources/ConfirmationTokens.d.ts +67 -1
- package/esm/resources/Coupons.d.ts +53 -0
- package/esm/resources/Coupons.js +13 -0
- package/esm/resources/Coupons.js.map +1 -1
- package/esm/resources/CreditNoteLineItems.d.ts +15 -1
- package/esm/resources/CreditNotes.d.ts +1 -1
- package/esm/resources/CustomerSessions.d.ts +68 -0
- package/esm/resources/Customers.d.ts +20 -1
- package/esm/resources/Customers.js +14 -0
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/Disputes.d.ts +14 -0
- package/esm/resources/Events.d.ts +614 -3
- package/esm/resources/ExternalAccounts.d.ts +212 -1
- package/esm/resources/ExternalAccounts.js +42 -1
- package/esm/resources/ExternalAccounts.js.map +1 -1
- package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/esm/resources/FinancialConnections/Accounts.d.ts +69 -4
- package/esm/resources/FinancialConnections/Accounts.js +8 -0
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +46 -1
- package/esm/resources/FinancialConnections/Authorizations.js +9 -1
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/esm/resources/FinancialConnections/Institutions.d.ts +99 -0
- package/esm/resources/FinancialConnections/Institutions.js +19 -0
- package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
- package/esm/resources/FinancialConnections/Sessions.d.ts +124 -9
- package/esm/resources/FinancialConnections/index.d.ts +21 -9
- package/esm/resources/FinancialConnections/index.js +4 -0
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/FxQuotes.d.ts +216 -0
- package/esm/resources/FxQuotes.js +25 -0
- package/esm/resources/FxQuotes.js.map +1 -0
- package/esm/resources/InvoiceItems.d.ts +85 -0
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +40 -2
- package/esm/resources/Invoices.d.ts +1257 -10
- package/esm/resources/Invoices.js +41 -0
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +13 -0
- package/esm/resources/Issuing/Cardholders.d.ts +19 -1
- package/esm/resources/Issuing/Cards.d.ts +13 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +638 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/esm/resources/Issuing/Disputes.d.ts +13 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/esm/resources/Issuing/Settlements.d.ts +83 -0
- package/esm/resources/Issuing/Settlements.js +3 -0
- package/esm/resources/Issuing/Settlements.js.map +1 -0
- package/esm/resources/Issuing/Transactions.d.ts +22 -0
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +47 -22
- package/esm/resources/Issuing/index.js +6 -0
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +29 -2
- package/esm/resources/Mandates.d.ts +36 -2
- package/esm/resources/Mandates.js +8 -0
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/Margins.d.ts +115 -0
- package/esm/resources/Margins.js +31 -0
- package/esm/resources/Margins.js.map +1 -0
- package/esm/resources/Orders.d.ts +4696 -0
- package/esm/resources/Orders.js +453 -0
- package/esm/resources/Orders.js.map +1 -0
- package/esm/resources/PaymentAttemptRecords.d.ts +82 -0
- package/esm/resources/PaymentIntents.d.ts +13832 -2816
- package/esm/resources/PaymentIntents.js +27 -0
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +3 -3
- package/esm/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/esm/resources/PaymentMethods.d.ts +181 -3
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentPlans.d.ts +427 -0
- package/esm/resources/PaymentPlans.js +31 -0
- package/esm/resources/PaymentPlans.js.map +1 -0
- package/esm/resources/PaymentRecords.d.ts +82 -0
- package/esm/resources/Persons.d.ts +2 -2
- package/esm/resources/Prices.d.ts +36 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/esm/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/esm/resources/Privacy/RedactionJobs.js +69 -0
- package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
- package/esm/resources/Privacy/index.d.ts +22 -0
- package/esm/resources/Privacy/index.js +9 -0
- package/esm/resources/Privacy/index.js.map +1 -0
- package/esm/resources/ProductCatalog/TrialOffers.d.ts +2 -2
- package/esm/resources/PromotionCodes.d.ts +12 -0
- package/esm/resources/PromotionCodes.js +27 -0
- package/esm/resources/PromotionCodes.js.map +1 -1
- package/esm/resources/QuoteLines.d.ts +507 -0
- package/esm/resources/QuoteLines.js +3 -0
- package/esm/resources/QuoteLines.js.map +1 -0
- package/esm/resources/QuotePreviewInvoices.d.ts +1170 -0
- package/esm/resources/QuotePreviewInvoices.js +3 -0
- package/esm/resources/QuotePreviewInvoices.js.map +1 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +924 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/esm/resources/Quotes.d.ts +2266 -57
- package/esm/resources/Quotes.js +1184 -16
- package/esm/resources/Quotes.js.map +1 -1
- package/esm/resources/Radar/BillingEvaluations.d.ts +374 -0
- package/esm/resources/Radar/BillingEvaluations.js +11 -0
- package/esm/resources/Radar/BillingEvaluations.js.map +1 -0
- package/esm/resources/Radar/PaymentEvaluations.d.ts +1 -1
- package/esm/resources/Radar/ValueListItems.d.ts +31 -1
- package/esm/resources/Radar/index.d.ts +21 -16
- package/esm/resources/Radar/index.js +2 -0
- package/esm/resources/Radar/index.js.map +1 -1
- package/esm/resources/Refunds.d.ts +11 -0
- package/esm/resources/Reserve/Holds.d.ts +53 -1
- package/esm/resources/Reserve/Holds.js +17 -1
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +41 -1
- package/esm/resources/Reserve/Plans.js +17 -1
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +41 -1
- package/esm/resources/Reserve/Releases.js +17 -1
- package/esm/resources/Reserve/Releases.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +18 -6
- package/esm/resources/Reserve/index.js +9 -0
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/SetupAttempts.d.ts +26 -1
- package/esm/resources/SetupIntents.d.ts +394 -11
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +418 -0
- package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
- package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/IssuedTokens.d.ts +330 -0
- package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
- package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/index.d.ts +19 -0
- package/esm/resources/SharedPayment/index.js +11 -0
- package/esm/resources/SharedPayment/index.js.map +1 -0
- package/esm/resources/Sources.d.ts +29 -1
- package/esm/resources/SubscriptionItems.d.ts +114 -0
- package/esm/resources/SubscriptionSchedules.d.ts +1157 -5
- package/esm/resources/SubscriptionSchedules.js +6 -0
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +388 -6
- package/esm/resources/Subscriptions.js +42 -0
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/Forms.d.ts +228 -0
- package/esm/resources/Tax/Forms.js +28 -0
- package/esm/resources/Tax/Forms.js.map +1 -0
- package/esm/resources/Tax/Registrations.d.ts +25 -2
- package/esm/resources/Tax/index.d.ts +24 -17
- package/esm/resources/Tax/index.js +2 -0
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/Terminal/ReaderCollectedData.d.ts +50 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
- package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/esm/resources/Terminal/Readers.d.ts +17 -1
- package/esm/resources/Terminal/index.d.ts +5 -0
- package/esm/resources/Terminal/index.js +2 -0
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +95 -1
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +68 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +17 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
- package/esm/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
- package/esm/resources/TestHelpers/SharedPayment/index.js +9 -0
- package/esm/resources/TestHelpers/SharedPayment/index.js.map +1 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
- package/esm/resources/TestHelpers/index.d.ts +3 -0
- package/esm/resources/TestHelpers/index.js +2 -0
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/Tokens.d.ts +15 -0
- package/esm/resources/Transfers.d.ts +8 -0
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/esm/resources/Treasury/OutboundPayments.d.ts +26 -0
- package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/esm/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings.d.ts +281 -0
- package/esm/resources/V2/Billing/BillSettings.js +37 -0
- package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
- package/esm/resources/V2/Billing/Cadences.d.ts +958 -0
- package/esm/resources/V2/Billing/Cadences.js +194 -0
- package/esm/resources/V2/Billing/Cadences.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +238 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
- package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/esm/resources/V2/Billing/Profiles.d.ts +162 -0
- package/esm/resources/V2/Billing/Profiles.js +31 -0
- package/esm/resources/V2/Billing/Profiles.js.map +1 -0
- package/esm/resources/V2/Billing/index.d.ts +45 -6
- package/esm/resources/V2/Billing/index.js +8 -0
- package/esm/resources/V2/Billing/index.js.map +1 -1
- package/esm/resources/V2/Core/AccountTokens.d.ts +28 -1
- package/esm/resources/V2/Core/Accounts.d.ts +1465 -71
- package/esm/resources/V2/Core/ApprovalRequests.d.ts +378 -0
- package/esm/resources/V2/Core/ApprovalRequests.js +35 -0
- package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/esm/resources/V2/Core/BatchJobs.d.ts +392 -0
- package/esm/resources/V2/Core/BatchJobs.js +248 -0
- package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
- package/esm/resources/V2/Core/Events.d.ts +1009 -5
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
- package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
- package/esm/resources/V2/Core/index.d.ts +24 -9
- package/esm/resources/V2/Core/index.js +4 -0
- package/esm/resources/V2/Core/index.js.map +1 -1
- package/esm/resources/V2/Data/QueryRuns.d.ts +299 -0
- package/esm/resources/V2/Data/QueryRuns.js +47 -0
- package/esm/resources/V2/Data/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/ReportRuns.d.ts +303 -0
- package/esm/resources/V2/Data/ReportRuns.js +49 -0
- package/esm/resources/V2/Data/ReportRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +152 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/esm/resources/V2/Data/Reporting/index.js +9 -0
- package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
- package/esm/resources/V2/Data/Reports.d.ts +140 -0
- package/esm/resources/V2/Data/Reports.js +21 -0
- package/esm/resources/V2/Data/Reports.js.map +1 -0
- package/esm/resources/V2/Data/Schemas.d.ts +161 -0
- package/esm/resources/V2/Data/Schemas.js +19 -0
- package/esm/resources/V2/Data/Schemas.js.map +1 -0
- package/esm/resources/V2/Data/index.d.ts +34 -0
- package/esm/resources/V2/Data/index.js +17 -0
- package/esm/resources/V2/Data/index.js.map +1 -0
- package/esm/resources/V2/EventMisc.d.ts +0 -0
- package/esm/resources/V2/EventMisc.js +2 -0
- package/esm/resources/V2/EventMisc.js.map +1 -0
- package/esm/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/esm/resources/V2/Extend/Workflows.d.ts +120 -0
- package/esm/resources/V2/Extend/Workflows.js +26 -0
- package/esm/resources/V2/Extend/Workflows.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +20 -0
- package/esm/resources/V2/Extend/index.js +11 -0
- package/esm/resources/V2/Extend/index.js.map +1 -0
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +377 -0
- package/esm/resources/V2/Iam/ActivityLogs.js +19 -0
- package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/esm/resources/V2/Iam/index.d.ts +13 -0
- package/esm/resources/V2/Iam/index.js +9 -0
- package/esm/resources/V2/Iam/index.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +6 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +102 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +15 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +3 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +4 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +356 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +19 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +79 -1
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +96 -2
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +418 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +36 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutIntents.d.ts +2 -2
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +66 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +6 -2
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +163 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +15 -1
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +7 -0
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/index.d.ts +63 -37
- package/esm/resources/V2/MoneyManagement/index.js +6 -0
- package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
- package/esm/resources/V2/Network/BusinessProfiles.d.ts +92 -0
- package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
- package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/esm/resources/V2/Network/index.d.ts +13 -0
- package/esm/resources/V2/Network/index.js +9 -0
- package/esm/resources/V2/Network/index.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/esm/resources/V2/Signals/AccountActivities.d.ts +432 -0
- package/esm/resources/V2/Signals/AccountActivities.js +23 -0
- package/esm/resources/V2/Signals/AccountActivities.js.map +1 -0
- package/esm/resources/V2/Signals/AccountEvaluations.d.ts +405 -0
- package/esm/resources/V2/Signals/AccountEvaluations.js +55 -0
- package/esm/resources/V2/Signals/AccountEvaluations.js.map +1 -0
- package/esm/resources/V2/Signals/AccountSignals.d.ts +196 -0
- package/esm/resources/V2/Signals/AccountSignals.js +62 -0
- package/esm/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/esm/resources/V2/Signals/index.d.ts +26 -0
- package/esm/resources/V2/Signals/index.js +13 -0
- package/esm/resources/V2/Signals/index.js.map +1 -0
- package/esm/resources/V2/index.d.ts +18 -0
- package/esm/resources/V2/index.js +12 -0
- package/esm/resources/V2/index.js.map +1 -1
- package/esm/resources/WebhookEndpoints.d.ts +2 -2
- package/esm/resources.d.ts +10 -0
- package/esm/resources.js +112 -0
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.d.ts +60 -26
- package/esm/stripe.core.js +21 -2
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +60 -26
- package/esm/stripe.esm.node.js +21 -2
- package/esm/stripe.esm.node.js.map +1 -1
- package/package.json +1 -1
|
@@ -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
|
*/
|
|
@@ -102,6 +115,10 @@ export interface SubscriptionSchedule {
|
|
|
102
115
|
* Configuration for the subscription schedule's phases.
|
|
103
116
|
*/
|
|
104
117
|
phases: Array<SubscriptionSchedule.Phase>;
|
|
118
|
+
/**
|
|
119
|
+
* Time period and invoice for a Subscription billed in advance.
|
|
120
|
+
*/
|
|
121
|
+
prebilling?: SubscriptionSchedule.Prebilling | null;
|
|
105
122
|
/**
|
|
106
123
|
* Time at which the subscription schedule was released. Measured in seconds since the Unix epoch.
|
|
107
124
|
*/
|
|
@@ -124,6 +141,7 @@ export interface SubscriptionSchedule {
|
|
|
124
141
|
test_clock: string | TestHelpers.TestClock | null;
|
|
125
142
|
}
|
|
126
143
|
export declare namespace SubscriptionSchedule {
|
|
144
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front' | OtherString;
|
|
127
145
|
interface BillingMode {
|
|
128
146
|
/**
|
|
129
147
|
* Configure behavior for flexible billing mode
|
|
@@ -185,6 +203,20 @@ export declare namespace SubscriptionSchedule {
|
|
|
185
203
|
transfer_data: DefaultSettings.TransferData | null;
|
|
186
204
|
}
|
|
187
205
|
type EndBehavior = 'cancel' | 'none' | 'release' | 'renew' | OtherString;
|
|
206
|
+
interface LastPriceMigrationError {
|
|
207
|
+
/**
|
|
208
|
+
* The time at which the price migration encountered an error.
|
|
209
|
+
*/
|
|
210
|
+
errored_at: number;
|
|
211
|
+
/**
|
|
212
|
+
* The involved price pairs in each failed transition.
|
|
213
|
+
*/
|
|
214
|
+
failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
|
|
215
|
+
/**
|
|
216
|
+
* The type of error encountered by the price migration.
|
|
217
|
+
*/
|
|
218
|
+
type: 'price_uniqueness_violation';
|
|
219
|
+
}
|
|
188
220
|
interface PauseSchedule {
|
|
189
221
|
/**
|
|
190
222
|
* A unique identifier for this pause schedule.
|
|
@@ -258,6 +290,10 @@ export declare namespace SubscriptionSchedule {
|
|
|
258
290
|
* 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.
|
|
259
291
|
*/
|
|
260
292
|
on_behalf_of: string | Account | null;
|
|
293
|
+
/**
|
|
294
|
+
* 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).
|
|
295
|
+
*/
|
|
296
|
+
pause_collection?: Phase.PauseCollection | null;
|
|
261
297
|
/**
|
|
262
298
|
* When transitioning phases, controls how prorations are handled (if any). Possible values are `create_prorations`, `none`, and `always_invoice`.
|
|
263
299
|
*/
|
|
@@ -274,10 +310,36 @@ export declare namespace SubscriptionSchedule {
|
|
|
274
310
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
275
311
|
*/
|
|
276
312
|
trial?: boolean;
|
|
313
|
+
/**
|
|
314
|
+
* Specify behavior of the trial when crossing schedule phase boundaries
|
|
315
|
+
*/
|
|
316
|
+
trial_continuation?: Phase.TrialContinuation | null;
|
|
277
317
|
/**
|
|
278
318
|
* When the trial ends within the phase.
|
|
279
319
|
*/
|
|
280
320
|
trial_end: number | null;
|
|
321
|
+
/**
|
|
322
|
+
* Settings related to any trials on the subscription during this phase.
|
|
323
|
+
*/
|
|
324
|
+
trial_settings?: Phase.TrialSettings | null;
|
|
325
|
+
}
|
|
326
|
+
interface Prebilling {
|
|
327
|
+
/**
|
|
328
|
+
* ID of the prebilling invoice.
|
|
329
|
+
*/
|
|
330
|
+
invoice: string | Invoice;
|
|
331
|
+
/**
|
|
332
|
+
* The end of the last period for which the invoice pre-bills.
|
|
333
|
+
*/
|
|
334
|
+
period_end: number;
|
|
335
|
+
/**
|
|
336
|
+
* The start of the first period for which the invoice pre-bills.
|
|
337
|
+
*/
|
|
338
|
+
period_start: number;
|
|
339
|
+
/**
|
|
340
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
341
|
+
*/
|
|
342
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
281
343
|
}
|
|
282
344
|
type Status = 'active' | 'canceled' | 'completed' | 'not_started' | 'released' | OtherString;
|
|
283
345
|
namespace BillingMode {
|
|
@@ -393,6 +455,18 @@ export declare namespace SubscriptionSchedule {
|
|
|
393
455
|
}
|
|
394
456
|
}
|
|
395
457
|
}
|
|
458
|
+
namespace LastPriceMigrationError {
|
|
459
|
+
interface FailedTransition {
|
|
460
|
+
/**
|
|
461
|
+
* The original price to be migrated.
|
|
462
|
+
*/
|
|
463
|
+
source_price: string;
|
|
464
|
+
/**
|
|
465
|
+
* The intended resulting price of the migration.
|
|
466
|
+
*/
|
|
467
|
+
target_price: string;
|
|
468
|
+
}
|
|
469
|
+
}
|
|
396
470
|
namespace PauseSchedule {
|
|
397
471
|
interface Pause {
|
|
398
472
|
/**
|
|
@@ -579,6 +653,10 @@ export declare namespace SubscriptionSchedule {
|
|
|
579
653
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
580
654
|
*/
|
|
581
655
|
discount: string | _Discount | null;
|
|
656
|
+
/**
|
|
657
|
+
* Details to determine how long the discount should be applied for.
|
|
658
|
+
*/
|
|
659
|
+
discount_end?: Discount.DiscountEnd | null;
|
|
582
660
|
/**
|
|
583
661
|
* ID of the promotion code to create a new discount for.
|
|
584
662
|
*/
|
|
@@ -639,6 +717,20 @@ export declare namespace SubscriptionSchedule {
|
|
|
639
717
|
* 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`.
|
|
640
718
|
*/
|
|
641
719
|
tax_rates?: Array<TaxRate> | null;
|
|
720
|
+
/**
|
|
721
|
+
* Options that configure the trial on the subscription item.
|
|
722
|
+
*/
|
|
723
|
+
trial?: Item.Trial | null;
|
|
724
|
+
/**
|
|
725
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
726
|
+
*/
|
|
727
|
+
trial_offer?: string | null;
|
|
728
|
+
}
|
|
729
|
+
interface PauseCollection {
|
|
730
|
+
/**
|
|
731
|
+
* The payment collection behavior for this subscription while paused.
|
|
732
|
+
*/
|
|
733
|
+
behavior: PauseCollection.Behavior;
|
|
642
734
|
}
|
|
643
735
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
644
736
|
interface TransferData {
|
|
@@ -651,6 +743,13 @@ export declare namespace SubscriptionSchedule {
|
|
|
651
743
|
*/
|
|
652
744
|
destination: string | Account;
|
|
653
745
|
}
|
|
746
|
+
type TrialContinuation = 'continue' | 'none' | OtherString;
|
|
747
|
+
interface TrialSettings {
|
|
748
|
+
/**
|
|
749
|
+
* Defines how the subscription should behave when a trial ends.
|
|
750
|
+
*/
|
|
751
|
+
end_behavior: TrialSettings.EndBehavior | null;
|
|
752
|
+
}
|
|
654
753
|
namespace AddInvoiceItem {
|
|
655
754
|
interface Discount {
|
|
656
755
|
/**
|
|
@@ -661,6 +760,10 @@ export declare namespace SubscriptionSchedule {
|
|
|
661
760
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
662
761
|
*/
|
|
663
762
|
discount: string | _Discount | null;
|
|
763
|
+
/**
|
|
764
|
+
* Details to determine how long the discount should be applied for.
|
|
765
|
+
*/
|
|
766
|
+
discount_end?: Discount.DiscountEnd | null;
|
|
664
767
|
/**
|
|
665
768
|
* ID of the promotion code to create a new discount for.
|
|
666
769
|
*/
|
|
@@ -670,6 +773,18 @@ export declare namespace SubscriptionSchedule {
|
|
|
670
773
|
end: Period.End;
|
|
671
774
|
start: Period.Start;
|
|
672
775
|
}
|
|
776
|
+
namespace Discount {
|
|
777
|
+
interface DiscountEnd {
|
|
778
|
+
/**
|
|
779
|
+
* The discount end timestamp.
|
|
780
|
+
*/
|
|
781
|
+
timestamp: number | null;
|
|
782
|
+
/**
|
|
783
|
+
* The discount end type.
|
|
784
|
+
*/
|
|
785
|
+
type: 'timestamp';
|
|
786
|
+
}
|
|
787
|
+
}
|
|
673
788
|
namespace Period {
|
|
674
789
|
interface End {
|
|
675
790
|
/**
|
|
@@ -714,6 +829,18 @@ export declare namespace SubscriptionSchedule {
|
|
|
714
829
|
type Type = 'account' | 'self' | OtherString;
|
|
715
830
|
}
|
|
716
831
|
}
|
|
832
|
+
namespace Discount {
|
|
833
|
+
interface DiscountEnd {
|
|
834
|
+
/**
|
|
835
|
+
* The discount end timestamp.
|
|
836
|
+
*/
|
|
837
|
+
timestamp: number | null;
|
|
838
|
+
/**
|
|
839
|
+
* The discount end type.
|
|
840
|
+
*/
|
|
841
|
+
type: 'timestamp';
|
|
842
|
+
}
|
|
843
|
+
}
|
|
717
844
|
namespace InvoiceSettings {
|
|
718
845
|
interface CustomField {
|
|
719
846
|
/**
|
|
@@ -755,15 +882,65 @@ export declare namespace SubscriptionSchedule {
|
|
|
755
882
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
756
883
|
*/
|
|
757
884
|
discount: string | _Discount | null;
|
|
885
|
+
/**
|
|
886
|
+
* Details to determine how long the discount should be applied for.
|
|
887
|
+
*/
|
|
888
|
+
discount_end?: Discount.DiscountEnd | null;
|
|
758
889
|
/**
|
|
759
890
|
* ID of the promotion code to create a new discount for.
|
|
760
891
|
*/
|
|
761
892
|
promotion_code: string | PromotionCode | null;
|
|
762
893
|
}
|
|
894
|
+
interface Trial {
|
|
895
|
+
/**
|
|
896
|
+
* List of price IDs which, if present on the subscription following a paid trial, constitute opting-in to the paid trial.
|
|
897
|
+
*/
|
|
898
|
+
converts_to?: Array<string> | null;
|
|
899
|
+
/**
|
|
900
|
+
* Determines the type of trial for this item.
|
|
901
|
+
*/
|
|
902
|
+
type: Trial.Type;
|
|
903
|
+
}
|
|
904
|
+
namespace Discount {
|
|
905
|
+
interface DiscountEnd {
|
|
906
|
+
/**
|
|
907
|
+
* The discount end timestamp.
|
|
908
|
+
*/
|
|
909
|
+
timestamp: number | null;
|
|
910
|
+
/**
|
|
911
|
+
* The discount end type.
|
|
912
|
+
*/
|
|
913
|
+
type: 'timestamp';
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
namespace Trial {
|
|
917
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
namespace PauseCollection {
|
|
921
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
922
|
+
}
|
|
923
|
+
namespace TrialSettings {
|
|
924
|
+
interface EndBehavior {
|
|
925
|
+
/**
|
|
926
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
927
|
+
*/
|
|
928
|
+
prorate_up_front: EndBehavior.ProrateUpFront | null;
|
|
929
|
+
}
|
|
930
|
+
namespace EndBehavior {
|
|
931
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
932
|
+
}
|
|
763
933
|
}
|
|
764
934
|
}
|
|
935
|
+
namespace Prebilling {
|
|
936
|
+
type UpdateBehavior = 'prebill' | 'reset' | OtherString;
|
|
937
|
+
}
|
|
765
938
|
}
|
|
766
939
|
export interface SubscriptionScheduleCreateParams {
|
|
940
|
+
/**
|
|
941
|
+
* 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.
|
|
942
|
+
*/
|
|
943
|
+
billing_behavior?: SubscriptionScheduleCreateParams.BillingBehavior;
|
|
767
944
|
/**
|
|
768
945
|
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
769
946
|
*/
|
|
@@ -804,12 +981,17 @@ export interface SubscriptionScheduleCreateParams {
|
|
|
804
981
|
* 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.
|
|
805
982
|
*/
|
|
806
983
|
phases?: Array<SubscriptionScheduleCreateParams.Phase>;
|
|
984
|
+
/**
|
|
985
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
986
|
+
*/
|
|
987
|
+
prebilling?: SubscriptionScheduleCreateParams.Prebilling;
|
|
807
988
|
/**
|
|
808
989
|
* 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.
|
|
809
990
|
*/
|
|
810
991
|
start_date?: number | 'now';
|
|
811
992
|
}
|
|
812
993
|
export declare namespace SubscriptionScheduleCreateParams {
|
|
994
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front' | OtherString;
|
|
813
995
|
interface BillingMode {
|
|
814
996
|
/**
|
|
815
997
|
* Configure behavior for flexible billing mode.
|
|
@@ -946,6 +1128,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
946
1128
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
947
1129
|
*/
|
|
948
1130
|
on_behalf_of?: string;
|
|
1131
|
+
/**
|
|
1132
|
+
* 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).
|
|
1133
|
+
*/
|
|
1134
|
+
pause_collection?: Phase.PauseCollection;
|
|
949
1135
|
/**
|
|
950
1136
|
* 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.
|
|
951
1137
|
*/
|
|
@@ -958,10 +1144,28 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
958
1144
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
959
1145
|
*/
|
|
960
1146
|
trial?: boolean;
|
|
1147
|
+
/**
|
|
1148
|
+
* Specify trial behavior when crossing phase boundaries
|
|
1149
|
+
*/
|
|
1150
|
+
trial_continuation?: Phase.TrialContinuation;
|
|
961
1151
|
/**
|
|
962
1152
|
* 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`
|
|
963
1153
|
*/
|
|
964
1154
|
trial_end?: number;
|
|
1155
|
+
/**
|
|
1156
|
+
* Settings related to subscription trials.
|
|
1157
|
+
*/
|
|
1158
|
+
trial_settings?: Phase.TrialSettings;
|
|
1159
|
+
}
|
|
1160
|
+
interface Prebilling {
|
|
1161
|
+
/**
|
|
1162
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
1163
|
+
*/
|
|
1164
|
+
iterations: number;
|
|
1165
|
+
/**
|
|
1166
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1167
|
+
*/
|
|
1168
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
965
1169
|
}
|
|
966
1170
|
namespace BillingMode {
|
|
967
1171
|
interface Flexible {
|
|
@@ -1268,6 +1472,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1268
1472
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1269
1473
|
*/
|
|
1270
1474
|
discount?: string;
|
|
1475
|
+
/**
|
|
1476
|
+
* Details to determine how long the discount should be applied for.
|
|
1477
|
+
*/
|
|
1478
|
+
discount_end?: Discount.DiscountEnd;
|
|
1271
1479
|
/**
|
|
1272
1480
|
* ID of the promotion code to create a new discount for.
|
|
1273
1481
|
*/
|
|
@@ -1342,6 +1550,20 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1342
1550
|
* 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.
|
|
1343
1551
|
*/
|
|
1344
1552
|
tax_rates?: Emptyable<Array<string>>;
|
|
1553
|
+
/**
|
|
1554
|
+
* Options that configure the trial on the subscription item.
|
|
1555
|
+
*/
|
|
1556
|
+
trial?: Item.Trial;
|
|
1557
|
+
/**
|
|
1558
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
1559
|
+
*/
|
|
1560
|
+
trial_offer?: string;
|
|
1561
|
+
}
|
|
1562
|
+
interface PauseCollection {
|
|
1563
|
+
/**
|
|
1564
|
+
* The payment collection behavior for this subscription while paused.
|
|
1565
|
+
*/
|
|
1566
|
+
behavior: PauseCollection.Behavior;
|
|
1345
1567
|
}
|
|
1346
1568
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
1347
1569
|
interface TransferData {
|
|
@@ -1354,6 +1576,13 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1354
1576
|
*/
|
|
1355
1577
|
destination: string;
|
|
1356
1578
|
}
|
|
1579
|
+
type TrialContinuation = 'continue' | 'none' | OtherString;
|
|
1580
|
+
interface TrialSettings {
|
|
1581
|
+
/**
|
|
1582
|
+
* Defines how the subscription should behave when a trial ends.
|
|
1583
|
+
*/
|
|
1584
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
1585
|
+
}
|
|
1357
1586
|
namespace AddInvoiceItem {
|
|
1358
1587
|
interface Discount {
|
|
1359
1588
|
/**
|
|
@@ -1364,6 +1593,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1364
1593
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1365
1594
|
*/
|
|
1366
1595
|
discount?: string;
|
|
1596
|
+
/**
|
|
1597
|
+
* Details to determine how long the discount should be applied for.
|
|
1598
|
+
*/
|
|
1599
|
+
discount_end?: Discount.DiscountEnd;
|
|
1367
1600
|
/**
|
|
1368
1601
|
* ID of the promotion code to create a new discount for.
|
|
1369
1602
|
*/
|
|
@@ -1401,6 +1634,38 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1401
1634
|
*/
|
|
1402
1635
|
unit_amount_decimal?: Decimal;
|
|
1403
1636
|
}
|
|
1637
|
+
namespace Discount {
|
|
1638
|
+
interface DiscountEnd {
|
|
1639
|
+
/**
|
|
1640
|
+
* Time span for the redeemed discount.
|
|
1641
|
+
*/
|
|
1642
|
+
duration?: DiscountEnd.Duration;
|
|
1643
|
+
/**
|
|
1644
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1645
|
+
*/
|
|
1646
|
+
timestamp?: number;
|
|
1647
|
+
/**
|
|
1648
|
+
* The type of calculation made to determine when the discount ends.
|
|
1649
|
+
*/
|
|
1650
|
+
type: DiscountEnd.Type;
|
|
1651
|
+
}
|
|
1652
|
+
namespace DiscountEnd {
|
|
1653
|
+
interface Duration {
|
|
1654
|
+
/**
|
|
1655
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1656
|
+
*/
|
|
1657
|
+
interval: Duration.Interval;
|
|
1658
|
+
/**
|
|
1659
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1660
|
+
*/
|
|
1661
|
+
interval_count: number;
|
|
1662
|
+
}
|
|
1663
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
1664
|
+
namespace Duration {
|
|
1665
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1404
1669
|
namespace Period {
|
|
1405
1670
|
interface End {
|
|
1406
1671
|
/**
|
|
@@ -1448,6 +1713,38 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1448
1713
|
type Type = 'account' | 'self' | OtherString;
|
|
1449
1714
|
}
|
|
1450
1715
|
}
|
|
1716
|
+
namespace Discount {
|
|
1717
|
+
interface DiscountEnd {
|
|
1718
|
+
/**
|
|
1719
|
+
* Time span for the redeemed discount.
|
|
1720
|
+
*/
|
|
1721
|
+
duration?: DiscountEnd.Duration;
|
|
1722
|
+
/**
|
|
1723
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1724
|
+
*/
|
|
1725
|
+
timestamp?: number;
|
|
1726
|
+
/**
|
|
1727
|
+
* The type of calculation made to determine when the discount ends.
|
|
1728
|
+
*/
|
|
1729
|
+
type: DiscountEnd.Type;
|
|
1730
|
+
}
|
|
1731
|
+
namespace DiscountEnd {
|
|
1732
|
+
interface Duration {
|
|
1733
|
+
/**
|
|
1734
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1735
|
+
*/
|
|
1736
|
+
interval: Duration.Interval;
|
|
1737
|
+
/**
|
|
1738
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1739
|
+
*/
|
|
1740
|
+
interval_count: number;
|
|
1741
|
+
}
|
|
1742
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
1743
|
+
namespace Duration {
|
|
1744
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
1745
|
+
}
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1451
1748
|
namespace Duration {
|
|
1452
1749
|
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
1453
1750
|
}
|
|
@@ -1492,6 +1789,10 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1492
1789
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1493
1790
|
*/
|
|
1494
1791
|
discount?: string;
|
|
1792
|
+
/**
|
|
1793
|
+
* Details to determine how long the discount should be applied for.
|
|
1794
|
+
*/
|
|
1795
|
+
discount_end?: Discount.DiscountEnd;
|
|
1495
1796
|
/**
|
|
1496
1797
|
* ID of the promotion code to create a new discount for.
|
|
1497
1798
|
*/
|
|
@@ -1523,6 +1824,48 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1523
1824
|
*/
|
|
1524
1825
|
unit_amount_decimal?: Decimal;
|
|
1525
1826
|
}
|
|
1827
|
+
interface Trial {
|
|
1828
|
+
/**
|
|
1829
|
+
* 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.
|
|
1830
|
+
*/
|
|
1831
|
+
converts_to?: Array<string>;
|
|
1832
|
+
/**
|
|
1833
|
+
* Determines the type of trial for this item.
|
|
1834
|
+
*/
|
|
1835
|
+
type: Trial.Type;
|
|
1836
|
+
}
|
|
1837
|
+
namespace Discount {
|
|
1838
|
+
interface DiscountEnd {
|
|
1839
|
+
/**
|
|
1840
|
+
* Time span for the redeemed discount.
|
|
1841
|
+
*/
|
|
1842
|
+
duration?: DiscountEnd.Duration;
|
|
1843
|
+
/**
|
|
1844
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1845
|
+
*/
|
|
1846
|
+
timestamp?: number;
|
|
1847
|
+
/**
|
|
1848
|
+
* The type of calculation made to determine when the discount ends.
|
|
1849
|
+
*/
|
|
1850
|
+
type: DiscountEnd.Type;
|
|
1851
|
+
}
|
|
1852
|
+
namespace DiscountEnd {
|
|
1853
|
+
interface Duration {
|
|
1854
|
+
/**
|
|
1855
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1856
|
+
*/
|
|
1857
|
+
interval: Duration.Interval;
|
|
1858
|
+
/**
|
|
1859
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1860
|
+
*/
|
|
1861
|
+
interval_count: number;
|
|
1862
|
+
}
|
|
1863
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
1864
|
+
namespace Duration {
|
|
1865
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
1866
|
+
}
|
|
1867
|
+
}
|
|
1868
|
+
}
|
|
1526
1869
|
namespace PriceData {
|
|
1527
1870
|
interface Recurring {
|
|
1528
1871
|
/**
|
|
@@ -1539,8 +1882,28 @@ export declare namespace SubscriptionScheduleCreateParams {
|
|
|
1539
1882
|
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
1540
1883
|
}
|
|
1541
1884
|
}
|
|
1885
|
+
namespace Trial {
|
|
1886
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
1887
|
+
}
|
|
1888
|
+
}
|
|
1889
|
+
namespace PauseCollection {
|
|
1890
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
1891
|
+
}
|
|
1892
|
+
namespace TrialSettings {
|
|
1893
|
+
interface EndBehavior {
|
|
1894
|
+
/**
|
|
1895
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
1896
|
+
*/
|
|
1897
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
1898
|
+
}
|
|
1899
|
+
namespace EndBehavior {
|
|
1900
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
1901
|
+
}
|
|
1542
1902
|
}
|
|
1543
1903
|
}
|
|
1904
|
+
namespace Prebilling {
|
|
1905
|
+
type UpdateBehavior = 'prebill' | 'reset' | OtherString;
|
|
1906
|
+
}
|
|
1544
1907
|
}
|
|
1545
1908
|
export interface SubscriptionScheduleRetrieveParams {
|
|
1546
1909
|
/**
|
|
@@ -1549,6 +1912,10 @@ export interface SubscriptionScheduleRetrieveParams {
|
|
|
1549
1912
|
expand?: Array<string>;
|
|
1550
1913
|
}
|
|
1551
1914
|
export interface SubscriptionScheduleUpdateParams {
|
|
1915
|
+
/**
|
|
1916
|
+
* 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.
|
|
1917
|
+
*/
|
|
1918
|
+
billing_behavior?: SubscriptionScheduleUpdateParams.BillingBehavior;
|
|
1552
1919
|
/**
|
|
1553
1920
|
* Object representing the subscription schedule's default settings.
|
|
1554
1921
|
*/
|
|
@@ -1573,12 +1940,17 @@ export interface SubscriptionScheduleUpdateParams {
|
|
|
1573
1940
|
* 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.
|
|
1574
1941
|
*/
|
|
1575
1942
|
phases?: Array<SubscriptionScheduleUpdateParams.Phase>;
|
|
1943
|
+
/**
|
|
1944
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1945
|
+
*/
|
|
1946
|
+
prebilling?: SubscriptionScheduleUpdateParams.Prebilling;
|
|
1576
1947
|
/**
|
|
1577
1948
|
* 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`.
|
|
1578
1949
|
*/
|
|
1579
1950
|
proration_behavior?: SubscriptionScheduleUpdateParams.ProrationBehavior;
|
|
1580
1951
|
}
|
|
1581
1952
|
export declare namespace SubscriptionScheduleUpdateParams {
|
|
1953
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front' | OtherString;
|
|
1582
1954
|
interface DefaultSettings {
|
|
1583
1955
|
/**
|
|
1584
1956
|
* 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).
|
|
@@ -1705,6 +2077,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1705
2077
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
1706
2078
|
*/
|
|
1707
2079
|
on_behalf_of?: string;
|
|
2080
|
+
/**
|
|
2081
|
+
* 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).
|
|
2082
|
+
*/
|
|
2083
|
+
pause_collection?: Phase.PauseCollection;
|
|
1708
2084
|
/**
|
|
1709
2085
|
* 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.
|
|
1710
2086
|
*/
|
|
@@ -1721,10 +2097,28 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
1721
2097
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
1722
2098
|
*/
|
|
1723
2099
|
trial?: boolean;
|
|
2100
|
+
/**
|
|
2101
|
+
* Specify trial behavior when crossing phase boundaries
|
|
2102
|
+
*/
|
|
2103
|
+
trial_continuation?: Phase.TrialContinuation;
|
|
1724
2104
|
/**
|
|
1725
2105
|
* 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.
|
|
1726
2106
|
*/
|
|
1727
2107
|
trial_end?: number | 'now';
|
|
2108
|
+
/**
|
|
2109
|
+
* Settings related to subscription trials.
|
|
2110
|
+
*/
|
|
2111
|
+
trial_settings?: Phase.TrialSettings;
|
|
2112
|
+
}
|
|
2113
|
+
interface Prebilling {
|
|
2114
|
+
/**
|
|
2115
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
2116
|
+
*/
|
|
2117
|
+
iterations: number;
|
|
2118
|
+
/**
|
|
2119
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
2120
|
+
*/
|
|
2121
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
1728
2122
|
}
|
|
1729
2123
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
1730
2124
|
namespace DefaultSettings {
|
|
@@ -2020,6 +2414,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2020
2414
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2021
2415
|
*/
|
|
2022
2416
|
discount?: string;
|
|
2417
|
+
/**
|
|
2418
|
+
* Details to determine how long the discount should be applied for.
|
|
2419
|
+
*/
|
|
2420
|
+
discount_end?: Discount.DiscountEnd;
|
|
2023
2421
|
/**
|
|
2024
2422
|
* ID of the promotion code to create a new discount for.
|
|
2025
2423
|
*/
|
|
@@ -2094,6 +2492,20 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2094
2492
|
* 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.
|
|
2095
2493
|
*/
|
|
2096
2494
|
tax_rates?: Emptyable<Array<string>>;
|
|
2495
|
+
/**
|
|
2496
|
+
* Options that configure the trial on the subscription item.
|
|
2497
|
+
*/
|
|
2498
|
+
trial?: Item.Trial;
|
|
2499
|
+
/**
|
|
2500
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
2501
|
+
*/
|
|
2502
|
+
trial_offer?: string;
|
|
2503
|
+
}
|
|
2504
|
+
interface PauseCollection {
|
|
2505
|
+
/**
|
|
2506
|
+
* The payment collection behavior for this subscription while paused.
|
|
2507
|
+
*/
|
|
2508
|
+
behavior: PauseCollection.Behavior;
|
|
2097
2509
|
}
|
|
2098
2510
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
2099
2511
|
interface TransferData {
|
|
@@ -2106,6 +2518,13 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2106
2518
|
*/
|
|
2107
2519
|
destination: string;
|
|
2108
2520
|
}
|
|
2521
|
+
type TrialContinuation = 'continue' | 'none' | OtherString;
|
|
2522
|
+
interface TrialSettings {
|
|
2523
|
+
/**
|
|
2524
|
+
* Defines how the subscription should behave when a trial ends.
|
|
2525
|
+
*/
|
|
2526
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
2527
|
+
}
|
|
2109
2528
|
namespace AddInvoiceItem {
|
|
2110
2529
|
interface Discount {
|
|
2111
2530
|
/**
|
|
@@ -2116,6 +2535,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2116
2535
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2117
2536
|
*/
|
|
2118
2537
|
discount?: string;
|
|
2538
|
+
/**
|
|
2539
|
+
* Details to determine how long the discount should be applied for.
|
|
2540
|
+
*/
|
|
2541
|
+
discount_end?: Discount.DiscountEnd;
|
|
2119
2542
|
/**
|
|
2120
2543
|
* ID of the promotion code to create a new discount for.
|
|
2121
2544
|
*/
|
|
@@ -2153,6 +2576,38 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2153
2576
|
*/
|
|
2154
2577
|
unit_amount_decimal?: Decimal;
|
|
2155
2578
|
}
|
|
2579
|
+
namespace Discount {
|
|
2580
|
+
interface DiscountEnd {
|
|
2581
|
+
/**
|
|
2582
|
+
* Time span for the redeemed discount.
|
|
2583
|
+
*/
|
|
2584
|
+
duration?: DiscountEnd.Duration;
|
|
2585
|
+
/**
|
|
2586
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2587
|
+
*/
|
|
2588
|
+
timestamp?: number;
|
|
2589
|
+
/**
|
|
2590
|
+
* The type of calculation made to determine when the discount ends.
|
|
2591
|
+
*/
|
|
2592
|
+
type: DiscountEnd.Type;
|
|
2593
|
+
}
|
|
2594
|
+
namespace DiscountEnd {
|
|
2595
|
+
interface Duration {
|
|
2596
|
+
/**
|
|
2597
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2598
|
+
*/
|
|
2599
|
+
interval: Duration.Interval;
|
|
2600
|
+
/**
|
|
2601
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2602
|
+
*/
|
|
2603
|
+
interval_count: number;
|
|
2604
|
+
}
|
|
2605
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
2606
|
+
namespace Duration {
|
|
2607
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2608
|
+
}
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2156
2611
|
namespace Period {
|
|
2157
2612
|
interface End {
|
|
2158
2613
|
/**
|
|
@@ -2200,6 +2655,38 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2200
2655
|
type Type = 'account' | 'self' | OtherString;
|
|
2201
2656
|
}
|
|
2202
2657
|
}
|
|
2658
|
+
namespace Discount {
|
|
2659
|
+
interface DiscountEnd {
|
|
2660
|
+
/**
|
|
2661
|
+
* Time span for the redeemed discount.
|
|
2662
|
+
*/
|
|
2663
|
+
duration?: DiscountEnd.Duration;
|
|
2664
|
+
/**
|
|
2665
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2666
|
+
*/
|
|
2667
|
+
timestamp?: number;
|
|
2668
|
+
/**
|
|
2669
|
+
* The type of calculation made to determine when the discount ends.
|
|
2670
|
+
*/
|
|
2671
|
+
type: DiscountEnd.Type;
|
|
2672
|
+
}
|
|
2673
|
+
namespace DiscountEnd {
|
|
2674
|
+
interface Duration {
|
|
2675
|
+
/**
|
|
2676
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2677
|
+
*/
|
|
2678
|
+
interval: Duration.Interval;
|
|
2679
|
+
/**
|
|
2680
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2681
|
+
*/
|
|
2682
|
+
interval_count: number;
|
|
2683
|
+
}
|
|
2684
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
2685
|
+
namespace Duration {
|
|
2686
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2687
|
+
}
|
|
2688
|
+
}
|
|
2689
|
+
}
|
|
2203
2690
|
namespace Duration {
|
|
2204
2691
|
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2205
2692
|
}
|
|
@@ -2244,6 +2731,10 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2244
2731
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2245
2732
|
*/
|
|
2246
2733
|
discount?: string;
|
|
2734
|
+
/**
|
|
2735
|
+
* Details to determine how long the discount should be applied for.
|
|
2736
|
+
*/
|
|
2737
|
+
discount_end?: Discount.DiscountEnd;
|
|
2247
2738
|
/**
|
|
2248
2739
|
* ID of the promotion code to create a new discount for.
|
|
2249
2740
|
*/
|
|
@@ -2275,14 +2766,56 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2275
2766
|
*/
|
|
2276
2767
|
unit_amount_decimal?: Decimal;
|
|
2277
2768
|
}
|
|
2278
|
-
|
|
2279
|
-
|
|
2769
|
+
interface Trial {
|
|
2770
|
+
/**
|
|
2771
|
+
* 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.
|
|
2772
|
+
*/
|
|
2773
|
+
converts_to?: Array<string>;
|
|
2774
|
+
/**
|
|
2775
|
+
* Determines the type of trial for this item.
|
|
2776
|
+
*/
|
|
2777
|
+
type: Trial.Type;
|
|
2778
|
+
}
|
|
2779
|
+
namespace Discount {
|
|
2780
|
+
interface DiscountEnd {
|
|
2280
2781
|
/**
|
|
2281
|
-
*
|
|
2782
|
+
* Time span for the redeemed discount.
|
|
2282
2783
|
*/
|
|
2283
|
-
|
|
2784
|
+
duration?: DiscountEnd.Duration;
|
|
2284
2785
|
/**
|
|
2285
|
-
*
|
|
2786
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2787
|
+
*/
|
|
2788
|
+
timestamp?: number;
|
|
2789
|
+
/**
|
|
2790
|
+
* The type of calculation made to determine when the discount ends.
|
|
2791
|
+
*/
|
|
2792
|
+
type: DiscountEnd.Type;
|
|
2793
|
+
}
|
|
2794
|
+
namespace DiscountEnd {
|
|
2795
|
+
interface Duration {
|
|
2796
|
+
/**
|
|
2797
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2798
|
+
*/
|
|
2799
|
+
interval: Duration.Interval;
|
|
2800
|
+
/**
|
|
2801
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2802
|
+
*/
|
|
2803
|
+
interval_count: number;
|
|
2804
|
+
}
|
|
2805
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
2806
|
+
namespace Duration {
|
|
2807
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2808
|
+
}
|
|
2809
|
+
}
|
|
2810
|
+
}
|
|
2811
|
+
namespace PriceData {
|
|
2812
|
+
interface Recurring {
|
|
2813
|
+
/**
|
|
2814
|
+
* Specifies billing frequency. Either `day`, `week`, `month` or `year`.
|
|
2815
|
+
*/
|
|
2816
|
+
interval: Recurring.Interval;
|
|
2817
|
+
/**
|
|
2818
|
+
* The number of intervals between subscription billings. For example, `interval=month` and `interval_count=3` bills every 3 months. Maximum of three years interval allowed (3 years, 36 months, or 156 weeks).
|
|
2286
2819
|
*/
|
|
2287
2820
|
interval_count?: number;
|
|
2288
2821
|
}
|
|
@@ -2291,8 +2824,28 @@ export declare namespace SubscriptionScheduleUpdateParams {
|
|
|
2291
2824
|
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2292
2825
|
}
|
|
2293
2826
|
}
|
|
2827
|
+
namespace Trial {
|
|
2828
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
2829
|
+
}
|
|
2830
|
+
}
|
|
2831
|
+
namespace PauseCollection {
|
|
2832
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
2833
|
+
}
|
|
2834
|
+
namespace TrialSettings {
|
|
2835
|
+
interface EndBehavior {
|
|
2836
|
+
/**
|
|
2837
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
2838
|
+
*/
|
|
2839
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
2840
|
+
}
|
|
2841
|
+
namespace EndBehavior {
|
|
2842
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
2843
|
+
}
|
|
2294
2844
|
}
|
|
2295
2845
|
}
|
|
2846
|
+
namespace Prebilling {
|
|
2847
|
+
type UpdateBehavior = 'prebill' | 'reset' | OtherString;
|
|
2848
|
+
}
|
|
2296
2849
|
}
|
|
2297
2850
|
export interface SubscriptionScheduleListParams extends PaginationParams {
|
|
2298
2851
|
/**
|
|
@@ -2328,6 +2881,605 @@ export interface SubscriptionScheduleListParams extends PaginationParams {
|
|
|
2328
2881
|
*/
|
|
2329
2882
|
scheduled?: boolean;
|
|
2330
2883
|
}
|
|
2884
|
+
export interface SubscriptionScheduleAmendParams {
|
|
2885
|
+
/**
|
|
2886
|
+
* Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
2887
|
+
*/
|
|
2888
|
+
amendments?: Array<SubscriptionScheduleAmendParams.Amendment>;
|
|
2889
|
+
/**
|
|
2890
|
+
* Specifies which fields in the response should be expanded.
|
|
2891
|
+
*/
|
|
2892
|
+
expand?: Array<string>;
|
|
2893
|
+
/**
|
|
2894
|
+
* Provide any time periods to bill in advance.
|
|
2895
|
+
*/
|
|
2896
|
+
prebilling?: Emptyable<Array<SubscriptionScheduleAmendParams.Prebilling>>;
|
|
2897
|
+
/**
|
|
2898
|
+
* In cases where the amendment changes the currently active phase,
|
|
2899
|
+
* specifies if and how to prorate at the time of the request.
|
|
2900
|
+
*/
|
|
2901
|
+
proration_behavior?: SubscriptionScheduleAmendParams.ProrationBehavior;
|
|
2902
|
+
/**
|
|
2903
|
+
* Changes to apply to the subscription schedule.
|
|
2904
|
+
*/
|
|
2905
|
+
schedule_settings?: SubscriptionScheduleAmendParams.ScheduleSettings;
|
|
2906
|
+
}
|
|
2907
|
+
export declare namespace SubscriptionScheduleAmendParams {
|
|
2908
|
+
interface Amendment {
|
|
2909
|
+
/**
|
|
2910
|
+
* 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.
|
|
2911
|
+
*/
|
|
2912
|
+
amendment_end?: Amendment.AmendmentEnd;
|
|
2913
|
+
/**
|
|
2914
|
+
* Details to identify the earliest timestamp where the proposed change should take effect.
|
|
2915
|
+
*/
|
|
2916
|
+
amendment_start: Amendment.AmendmentStart;
|
|
2917
|
+
/**
|
|
2918
|
+
* 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.
|
|
2919
|
+
*/
|
|
2920
|
+
billing_cycle_anchor?: Amendment.BillingCycleAnchor;
|
|
2921
|
+
/**
|
|
2922
|
+
* Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
2923
|
+
*/
|
|
2924
|
+
discount_actions?: Array<Amendment.DiscountAction>;
|
|
2925
|
+
/**
|
|
2926
|
+
* Changes to the subscription items during the amendment time span.
|
|
2927
|
+
*/
|
|
2928
|
+
item_actions?: Array<Amendment.ItemAction>;
|
|
2929
|
+
/**
|
|
2930
|
+
* Instructions for how to modify phase metadata
|
|
2931
|
+
*/
|
|
2932
|
+
metadata_actions?: Array<Amendment.MetadataAction>;
|
|
2933
|
+
/**
|
|
2934
|
+
* 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`.
|
|
2935
|
+
*/
|
|
2936
|
+
proration_behavior?: Amendment.ProrationBehavior;
|
|
2937
|
+
/**
|
|
2938
|
+
* Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
2939
|
+
*/
|
|
2940
|
+
set_pause_collection?: Amendment.SetPauseCollection;
|
|
2941
|
+
/**
|
|
2942
|
+
* Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
2943
|
+
*/
|
|
2944
|
+
set_schedule_end?: Amendment.SetScheduleEnd;
|
|
2945
|
+
/**
|
|
2946
|
+
* Settings related to subscription trials.
|
|
2947
|
+
*/
|
|
2948
|
+
trial_settings?: Amendment.TrialSettings;
|
|
2949
|
+
}
|
|
2950
|
+
interface Prebilling {
|
|
2951
|
+
/**
|
|
2952
|
+
* The beginning of the prebilled time period. The default value is `now`.
|
|
2953
|
+
*/
|
|
2954
|
+
bill_from?: Prebilling.BillFrom;
|
|
2955
|
+
/**
|
|
2956
|
+
* The end of the prebilled time period.
|
|
2957
|
+
*/
|
|
2958
|
+
bill_until?: Prebilling.BillUntil;
|
|
2959
|
+
/**
|
|
2960
|
+
* When the prebilling invoice should be created. The default value is `now`.
|
|
2961
|
+
*/
|
|
2962
|
+
invoice_at?: 'now';
|
|
2963
|
+
/**
|
|
2964
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
2965
|
+
*/
|
|
2966
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
2967
|
+
}
|
|
2968
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
2969
|
+
interface ScheduleSettings {
|
|
2970
|
+
/**
|
|
2971
|
+
* Behavior of the subscription schedule and underlying subscription when it ends.
|
|
2972
|
+
*/
|
|
2973
|
+
end_behavior?: ScheduleSettings.EndBehavior;
|
|
2974
|
+
}
|
|
2975
|
+
namespace Amendment {
|
|
2976
|
+
interface AmendmentEnd {
|
|
2977
|
+
/**
|
|
2978
|
+
* Use the `end` time of a given discount.
|
|
2979
|
+
*/
|
|
2980
|
+
discount_end?: AmendmentEnd.DiscountEnd;
|
|
2981
|
+
/**
|
|
2982
|
+
* Time span for the amendment starting from the `amendment_start`.
|
|
2983
|
+
*/
|
|
2984
|
+
duration?: AmendmentEnd.Duration;
|
|
2985
|
+
/**
|
|
2986
|
+
* A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
2987
|
+
*/
|
|
2988
|
+
timestamp?: number;
|
|
2989
|
+
/**
|
|
2990
|
+
* Select one of three ways to pass the `amendment_end`.
|
|
2991
|
+
*/
|
|
2992
|
+
type: AmendmentEnd.Type;
|
|
2993
|
+
}
|
|
2994
|
+
interface AmendmentStart {
|
|
2995
|
+
/**
|
|
2996
|
+
* Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
2997
|
+
*/
|
|
2998
|
+
amendment_end?: AmendmentStart.AmendmentEnd;
|
|
2999
|
+
/**
|
|
3000
|
+
* Use the `end` time of a given discount.
|
|
3001
|
+
*/
|
|
3002
|
+
discount_end?: AmendmentStart.DiscountEnd;
|
|
3003
|
+
/**
|
|
3004
|
+
* A precise Unix timestamp for the amendment to start.
|
|
3005
|
+
*/
|
|
3006
|
+
timestamp?: number;
|
|
3007
|
+
/**
|
|
3008
|
+
* Select one of three ways to pass the `amendment_start`.
|
|
3009
|
+
*/
|
|
3010
|
+
type: AmendmentStart.Type;
|
|
3011
|
+
}
|
|
3012
|
+
type BillingCycleAnchor = 'amendment_start' | 'automatic' | OtherString;
|
|
3013
|
+
interface DiscountAction {
|
|
3014
|
+
/**
|
|
3015
|
+
* Details of the discount to add.
|
|
3016
|
+
*/
|
|
3017
|
+
add?: DiscountAction.Add;
|
|
3018
|
+
/**
|
|
3019
|
+
* Details of the discount to remove.
|
|
3020
|
+
*/
|
|
3021
|
+
remove?: DiscountAction.Remove;
|
|
3022
|
+
/**
|
|
3023
|
+
* Details of the discount to replace the existing discounts with.
|
|
3024
|
+
*/
|
|
3025
|
+
set?: DiscountAction.Set;
|
|
3026
|
+
/**
|
|
3027
|
+
* Determines the type of discount action.
|
|
3028
|
+
*/
|
|
3029
|
+
type: DiscountAction.Type;
|
|
3030
|
+
}
|
|
3031
|
+
interface ItemAction {
|
|
3032
|
+
/**
|
|
3033
|
+
* 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.
|
|
3034
|
+
*/
|
|
3035
|
+
add?: ItemAction.Add;
|
|
3036
|
+
/**
|
|
3037
|
+
* Details of the subscription item to remove.
|
|
3038
|
+
*/
|
|
3039
|
+
remove?: ItemAction.Remove;
|
|
3040
|
+
/**
|
|
3041
|
+
* 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.
|
|
3042
|
+
*/
|
|
3043
|
+
set?: ItemAction.Set;
|
|
3044
|
+
/**
|
|
3045
|
+
* Determines the type of item action.
|
|
3046
|
+
*/
|
|
3047
|
+
type: ItemAction.Type;
|
|
3048
|
+
}
|
|
3049
|
+
interface MetadataAction {
|
|
3050
|
+
/**
|
|
3051
|
+
* Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
3052
|
+
*/
|
|
3053
|
+
add?: {
|
|
3054
|
+
[key: string]: string;
|
|
3055
|
+
};
|
|
3056
|
+
/**
|
|
3057
|
+
* Keys to remove from schedule phase metadata.
|
|
3058
|
+
*/
|
|
3059
|
+
remove?: Array<string>;
|
|
3060
|
+
/**
|
|
3061
|
+
* Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
3062
|
+
*/
|
|
3063
|
+
set?: Emptyable<{
|
|
3064
|
+
[key: string]: string;
|
|
3065
|
+
}>;
|
|
3066
|
+
/**
|
|
3067
|
+
* Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
3068
|
+
*/
|
|
3069
|
+
type: MetadataAction.Type;
|
|
3070
|
+
}
|
|
3071
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
3072
|
+
interface SetPauseCollection {
|
|
3073
|
+
/**
|
|
3074
|
+
* Details of the pause_collection behavior to apply to the amendment.
|
|
3075
|
+
*/
|
|
3076
|
+
set?: SetPauseCollection.Set;
|
|
3077
|
+
/**
|
|
3078
|
+
* Determines the type of the pause_collection amendment.
|
|
3079
|
+
*/
|
|
3080
|
+
type: SetPauseCollection.Type;
|
|
3081
|
+
}
|
|
3082
|
+
type SetScheduleEnd = 'amendment_end' | 'amendment_start' | OtherString;
|
|
3083
|
+
interface TrialSettings {
|
|
3084
|
+
/**
|
|
3085
|
+
* Defines how the subscription should behave when a trial ends.
|
|
3086
|
+
*/
|
|
3087
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
3088
|
+
}
|
|
3089
|
+
namespace AmendmentEnd {
|
|
3090
|
+
interface DiscountEnd {
|
|
3091
|
+
/**
|
|
3092
|
+
* The ID of a specific discount.
|
|
3093
|
+
*/
|
|
3094
|
+
discount: string;
|
|
3095
|
+
}
|
|
3096
|
+
interface Duration {
|
|
3097
|
+
/**
|
|
3098
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3099
|
+
*/
|
|
3100
|
+
interval: Duration.Interval;
|
|
3101
|
+
/**
|
|
3102
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3103
|
+
*/
|
|
3104
|
+
interval_count: number;
|
|
3105
|
+
}
|
|
3106
|
+
type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
|
|
3107
|
+
namespace Duration {
|
|
3108
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3109
|
+
}
|
|
3110
|
+
}
|
|
3111
|
+
namespace AmendmentStart {
|
|
3112
|
+
interface AmendmentEnd {
|
|
3113
|
+
/**
|
|
3114
|
+
* 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.
|
|
3115
|
+
*/
|
|
3116
|
+
index: number;
|
|
3117
|
+
}
|
|
3118
|
+
interface DiscountEnd {
|
|
3119
|
+
/**
|
|
3120
|
+
* The ID of a specific discount.
|
|
3121
|
+
*/
|
|
3122
|
+
discount: string;
|
|
3123
|
+
}
|
|
3124
|
+
type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
|
|
3125
|
+
}
|
|
3126
|
+
namespace DiscountAction {
|
|
3127
|
+
interface Add {
|
|
3128
|
+
/**
|
|
3129
|
+
* The coupon code to redeem.
|
|
3130
|
+
*/
|
|
3131
|
+
coupon?: string;
|
|
3132
|
+
/**
|
|
3133
|
+
* An ID of an existing discount for a coupon that was already redeemed.
|
|
3134
|
+
*/
|
|
3135
|
+
discount?: string;
|
|
3136
|
+
/**
|
|
3137
|
+
* Details to determine how long the discount should be applied for.
|
|
3138
|
+
*/
|
|
3139
|
+
discount_end?: Add.DiscountEnd;
|
|
3140
|
+
/**
|
|
3141
|
+
* 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.
|
|
3142
|
+
*/
|
|
3143
|
+
index?: number;
|
|
3144
|
+
/**
|
|
3145
|
+
* The promotion code to redeem.
|
|
3146
|
+
*/
|
|
3147
|
+
promotion_code?: string;
|
|
3148
|
+
}
|
|
3149
|
+
interface Remove {
|
|
3150
|
+
/**
|
|
3151
|
+
* The coupon code to remove from the `discounts` array.
|
|
3152
|
+
*/
|
|
3153
|
+
coupon?: string;
|
|
3154
|
+
/**
|
|
3155
|
+
* The ID of a discount to remove from the `discounts` array.
|
|
3156
|
+
*/
|
|
3157
|
+
discount?: string;
|
|
3158
|
+
/**
|
|
3159
|
+
* The ID of a promotion code to remove from the `discounts` array.
|
|
3160
|
+
*/
|
|
3161
|
+
promotion_code?: string;
|
|
3162
|
+
}
|
|
3163
|
+
interface Set {
|
|
3164
|
+
/**
|
|
3165
|
+
* The coupon code to replace the `discounts` array with.
|
|
3166
|
+
*/
|
|
3167
|
+
coupon?: string;
|
|
3168
|
+
/**
|
|
3169
|
+
* An ID of an existing discount to replace the `discounts` array with.
|
|
3170
|
+
*/
|
|
3171
|
+
discount?: string;
|
|
3172
|
+
/**
|
|
3173
|
+
* An ID of an existing promotion code to replace the `discounts` array with.
|
|
3174
|
+
*/
|
|
3175
|
+
promotion_code?: string;
|
|
3176
|
+
}
|
|
3177
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
3178
|
+
namespace Add {
|
|
3179
|
+
interface DiscountEnd {
|
|
3180
|
+
/**
|
|
3181
|
+
* The type of calculation made to determine when the discount ends.
|
|
3182
|
+
*/
|
|
3183
|
+
type: 'amendment_end';
|
|
3184
|
+
}
|
|
3185
|
+
}
|
|
3186
|
+
}
|
|
3187
|
+
namespace ItemAction {
|
|
3188
|
+
interface Add {
|
|
3189
|
+
/**
|
|
3190
|
+
* The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
3191
|
+
*/
|
|
3192
|
+
discounts?: Array<Add.Discount>;
|
|
3193
|
+
/**
|
|
3194
|
+
* 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`.
|
|
3195
|
+
*/
|
|
3196
|
+
metadata?: MetadataParam;
|
|
3197
|
+
/**
|
|
3198
|
+
* The ID of the price object.
|
|
3199
|
+
*/
|
|
3200
|
+
price: string;
|
|
3201
|
+
/**
|
|
3202
|
+
* Quantity for this item.
|
|
3203
|
+
*/
|
|
3204
|
+
quantity?: number;
|
|
3205
|
+
/**
|
|
3206
|
+
* 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`.
|
|
3207
|
+
*/
|
|
3208
|
+
tax_rates?: Array<string>;
|
|
3209
|
+
/**
|
|
3210
|
+
* Options that configure the trial on the subscription item.
|
|
3211
|
+
*/
|
|
3212
|
+
trial?: Add.Trial;
|
|
3213
|
+
/**
|
|
3214
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
3215
|
+
*/
|
|
3216
|
+
trial_offer?: string;
|
|
3217
|
+
}
|
|
3218
|
+
interface Remove {
|
|
3219
|
+
/**
|
|
3220
|
+
* ID of a price to remove.
|
|
3221
|
+
*/
|
|
3222
|
+
price: string;
|
|
3223
|
+
}
|
|
3224
|
+
interface Set {
|
|
3225
|
+
/**
|
|
3226
|
+
* 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`.
|
|
3227
|
+
*/
|
|
3228
|
+
discounts?: Array<Set.Discount>;
|
|
3229
|
+
/**
|
|
3230
|
+
* 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`.
|
|
3231
|
+
*/
|
|
3232
|
+
metadata?: MetadataParam;
|
|
3233
|
+
/**
|
|
3234
|
+
* The ID of the price object.
|
|
3235
|
+
*/
|
|
3236
|
+
price: string;
|
|
3237
|
+
/**
|
|
3238
|
+
* 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`.
|
|
3239
|
+
*/
|
|
3240
|
+
quantity?: number;
|
|
3241
|
+
/**
|
|
3242
|
+
* 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`.
|
|
3243
|
+
*/
|
|
3244
|
+
tax_rates?: Array<string>;
|
|
3245
|
+
/**
|
|
3246
|
+
* 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`.
|
|
3247
|
+
*/
|
|
3248
|
+
trial?: Set.Trial;
|
|
3249
|
+
/**
|
|
3250
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
3251
|
+
*/
|
|
3252
|
+
trial_offer?: string;
|
|
3253
|
+
}
|
|
3254
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
3255
|
+
namespace Add {
|
|
3256
|
+
interface Discount {
|
|
3257
|
+
/**
|
|
3258
|
+
* ID of the coupon to create a new discount for.
|
|
3259
|
+
*/
|
|
3260
|
+
coupon?: string;
|
|
3261
|
+
/**
|
|
3262
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3263
|
+
*/
|
|
3264
|
+
discount?: string;
|
|
3265
|
+
/**
|
|
3266
|
+
* Details to determine how long the discount should be applied for.
|
|
3267
|
+
*/
|
|
3268
|
+
discount_end?: Discount.DiscountEnd;
|
|
3269
|
+
/**
|
|
3270
|
+
* ID of the promotion code to create a new discount for.
|
|
3271
|
+
*/
|
|
3272
|
+
promotion_code?: string;
|
|
3273
|
+
}
|
|
3274
|
+
interface Trial {
|
|
3275
|
+
/**
|
|
3276
|
+
* 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.
|
|
3277
|
+
*/
|
|
3278
|
+
converts_to?: Array<string>;
|
|
3279
|
+
/**
|
|
3280
|
+
* Determines the type of trial for this item.
|
|
3281
|
+
*/
|
|
3282
|
+
type: Trial.Type;
|
|
3283
|
+
}
|
|
3284
|
+
namespace Discount {
|
|
3285
|
+
interface DiscountEnd {
|
|
3286
|
+
/**
|
|
3287
|
+
* Time span for the redeemed discount.
|
|
3288
|
+
*/
|
|
3289
|
+
duration?: DiscountEnd.Duration;
|
|
3290
|
+
/**
|
|
3291
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3292
|
+
*/
|
|
3293
|
+
timestamp?: number;
|
|
3294
|
+
/**
|
|
3295
|
+
* The type of calculation made to determine when the discount ends.
|
|
3296
|
+
*/
|
|
3297
|
+
type: DiscountEnd.Type;
|
|
3298
|
+
}
|
|
3299
|
+
namespace DiscountEnd {
|
|
3300
|
+
interface Duration {
|
|
3301
|
+
/**
|
|
3302
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3303
|
+
*/
|
|
3304
|
+
interval: Duration.Interval;
|
|
3305
|
+
/**
|
|
3306
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3307
|
+
*/
|
|
3308
|
+
interval_count: number;
|
|
3309
|
+
}
|
|
3310
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
3311
|
+
namespace Duration {
|
|
3312
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3313
|
+
}
|
|
3314
|
+
}
|
|
3315
|
+
}
|
|
3316
|
+
namespace Trial {
|
|
3317
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3320
|
+
namespace Set {
|
|
3321
|
+
interface Discount {
|
|
3322
|
+
/**
|
|
3323
|
+
* ID of the coupon to create a new discount for.
|
|
3324
|
+
*/
|
|
3325
|
+
coupon?: string;
|
|
3326
|
+
/**
|
|
3327
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3328
|
+
*/
|
|
3329
|
+
discount?: string;
|
|
3330
|
+
/**
|
|
3331
|
+
* Details to determine how long the discount should be applied for.
|
|
3332
|
+
*/
|
|
3333
|
+
discount_end?: Discount.DiscountEnd;
|
|
3334
|
+
/**
|
|
3335
|
+
* ID of the promotion code to create a new discount for.
|
|
3336
|
+
*/
|
|
3337
|
+
promotion_code?: string;
|
|
3338
|
+
}
|
|
3339
|
+
interface Trial {
|
|
3340
|
+
/**
|
|
3341
|
+
* 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.
|
|
3342
|
+
*/
|
|
3343
|
+
converts_to?: Array<string>;
|
|
3344
|
+
/**
|
|
3345
|
+
* Determines the type of trial for this item.
|
|
3346
|
+
*/
|
|
3347
|
+
type: Trial.Type;
|
|
3348
|
+
}
|
|
3349
|
+
namespace Discount {
|
|
3350
|
+
interface DiscountEnd {
|
|
3351
|
+
/**
|
|
3352
|
+
* Time span for the redeemed discount.
|
|
3353
|
+
*/
|
|
3354
|
+
duration?: DiscountEnd.Duration;
|
|
3355
|
+
/**
|
|
3356
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3357
|
+
*/
|
|
3358
|
+
timestamp?: number;
|
|
3359
|
+
/**
|
|
3360
|
+
* The type of calculation made to determine when the discount ends.
|
|
3361
|
+
*/
|
|
3362
|
+
type: DiscountEnd.Type;
|
|
3363
|
+
}
|
|
3364
|
+
namespace DiscountEnd {
|
|
3365
|
+
interface Duration {
|
|
3366
|
+
/**
|
|
3367
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3368
|
+
*/
|
|
3369
|
+
interval: Duration.Interval;
|
|
3370
|
+
/**
|
|
3371
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3372
|
+
*/
|
|
3373
|
+
interval_count: number;
|
|
3374
|
+
}
|
|
3375
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
3376
|
+
namespace Duration {
|
|
3377
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3378
|
+
}
|
|
3379
|
+
}
|
|
3380
|
+
}
|
|
3381
|
+
namespace Trial {
|
|
3382
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
3383
|
+
}
|
|
3384
|
+
}
|
|
3385
|
+
}
|
|
3386
|
+
namespace MetadataAction {
|
|
3387
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
3388
|
+
}
|
|
3389
|
+
namespace SetPauseCollection {
|
|
3390
|
+
interface Set {
|
|
3391
|
+
/**
|
|
3392
|
+
* The payment collection behavior for this subscription while paused.
|
|
3393
|
+
*/
|
|
3394
|
+
behavior: Set.Behavior;
|
|
3395
|
+
}
|
|
3396
|
+
type Type = 'remove' | 'set' | OtherString;
|
|
3397
|
+
namespace Set {
|
|
3398
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
3399
|
+
}
|
|
3400
|
+
}
|
|
3401
|
+
namespace TrialSettings {
|
|
3402
|
+
interface EndBehavior {
|
|
3403
|
+
/**
|
|
3404
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
3405
|
+
*/
|
|
3406
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
3407
|
+
}
|
|
3408
|
+
namespace EndBehavior {
|
|
3409
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
3410
|
+
}
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3413
|
+
namespace Prebilling {
|
|
3414
|
+
interface BillFrom {
|
|
3415
|
+
/**
|
|
3416
|
+
* Start the prebilled period when a specified amendment begins.
|
|
3417
|
+
*/
|
|
3418
|
+
amendment_start?: BillFrom.AmendmentStart;
|
|
3419
|
+
/**
|
|
3420
|
+
* Start the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
3421
|
+
*/
|
|
3422
|
+
timestamp?: number;
|
|
3423
|
+
/**
|
|
3424
|
+
* Select one of several ways to pass the `bill_from` value.
|
|
3425
|
+
*/
|
|
3426
|
+
type: BillFrom.Type;
|
|
3427
|
+
}
|
|
3428
|
+
interface BillUntil {
|
|
3429
|
+
/**
|
|
3430
|
+
* End the prebilled period when a specified amendment ends.
|
|
3431
|
+
*/
|
|
3432
|
+
amendment_end?: BillUntil.AmendmentEnd;
|
|
3433
|
+
/**
|
|
3434
|
+
* Time span for prebilling, starting from `bill_from`.
|
|
3435
|
+
*/
|
|
3436
|
+
duration?: BillUntil.Duration;
|
|
3437
|
+
/**
|
|
3438
|
+
* End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
3439
|
+
*/
|
|
3440
|
+
timestamp?: number;
|
|
3441
|
+
/**
|
|
3442
|
+
* Select one of several ways to pass the `bill_until` value.
|
|
3443
|
+
*/
|
|
3444
|
+
type: BillUntil.Type;
|
|
3445
|
+
}
|
|
3446
|
+
type UpdateBehavior = 'prebill' | 'reset' | OtherString;
|
|
3447
|
+
namespace BillFrom {
|
|
3448
|
+
interface AmendmentStart {
|
|
3449
|
+
/**
|
|
3450
|
+
* 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.
|
|
3451
|
+
*/
|
|
3452
|
+
index: number;
|
|
3453
|
+
}
|
|
3454
|
+
type Type = 'amendment_start' | 'now' | 'timestamp' | OtherString;
|
|
3455
|
+
}
|
|
3456
|
+
namespace BillUntil {
|
|
3457
|
+
interface AmendmentEnd {
|
|
3458
|
+
/**
|
|
3459
|
+
* 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.
|
|
3460
|
+
*/
|
|
3461
|
+
index: number;
|
|
3462
|
+
}
|
|
3463
|
+
interface Duration {
|
|
3464
|
+
/**
|
|
3465
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3466
|
+
*/
|
|
3467
|
+
interval: Duration.Interval;
|
|
3468
|
+
/**
|
|
3469
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3470
|
+
*/
|
|
3471
|
+
interval_count: number;
|
|
3472
|
+
}
|
|
3473
|
+
type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp' | OtherString;
|
|
3474
|
+
namespace Duration {
|
|
3475
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3476
|
+
}
|
|
3477
|
+
}
|
|
3478
|
+
}
|
|
3479
|
+
namespace ScheduleSettings {
|
|
3480
|
+
type EndBehavior = 'cancel' | 'release' | OtherString;
|
|
3481
|
+
}
|
|
3482
|
+
}
|
|
2331
3483
|
export interface SubscriptionScheduleCancelParams {
|
|
2332
3484
|
/**
|
|
2333
3485
|
* Specifies which fields in the response should be expanded.
|