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
|
@@ -4,10 +4,12 @@ import { Discount, DeletedDiscount } from './Discounts.js';
|
|
|
4
4
|
import { TaxId, DeletedTaxId } from './TaxIds.js';
|
|
5
5
|
import { Application, DeletedApplication } from './Applications.js';
|
|
6
6
|
import { Customer, DeletedCustomer } from './Customers.js';
|
|
7
|
+
import { Margin } from './Margins.js';
|
|
7
8
|
import { PaymentMethod } from './PaymentMethods.js';
|
|
8
9
|
import { CustomerSource } from './CustomerSources.js';
|
|
9
10
|
import { TaxRate } from './TaxRates.js';
|
|
10
11
|
import { Account } from './Accounts.js';
|
|
12
|
+
import { PaymentPlan } from './PaymentPlans.js';
|
|
11
13
|
import { InvoicePayment } from './InvoicePayments.js';
|
|
12
14
|
import { PaymentIntent } from './PaymentIntents.js';
|
|
13
15
|
import { SetupIntent } from './SetupIntents.js';
|
|
@@ -68,6 +70,10 @@ export declare class InvoiceResource extends StripeResource {
|
|
|
68
70
|
* See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more.
|
|
69
71
|
*/
|
|
70
72
|
attachPayment(id: string, params?: InvoiceAttachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
|
|
73
|
+
/**
|
|
74
|
+
* Detaches a payment from the invoice, removing it from the list of payments
|
|
75
|
+
*/
|
|
76
|
+
detachPayment(id: string, params?: InvoiceDetachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
|
|
71
77
|
/**
|
|
72
78
|
* Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method.
|
|
73
79
|
*/
|
|
@@ -169,6 +175,10 @@ export interface Invoice {
|
|
|
169
175
|
* This is the sum of all the shipping amounts.
|
|
170
176
|
*/
|
|
171
177
|
amount_shipping: number;
|
|
178
|
+
/**
|
|
179
|
+
* List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
|
|
180
|
+
*/
|
|
181
|
+
amounts_due?: Array<Invoice.AmountsDue> | null;
|
|
172
182
|
/**
|
|
173
183
|
* ID of the Connect Application that created the invoice.
|
|
174
184
|
*/
|
|
@@ -258,6 +268,10 @@ export interface Invoice {
|
|
|
258
268
|
* The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.
|
|
259
269
|
*/
|
|
260
270
|
customer_tax_ids?: Array<Invoice.CustomerTaxId> | null;
|
|
271
|
+
/**
|
|
272
|
+
* The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
|
|
273
|
+
*/
|
|
274
|
+
default_margins?: Array<string | Margin> | null;
|
|
261
275
|
/**
|
|
262
276
|
* ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
|
263
277
|
*/
|
|
@@ -347,6 +361,10 @@ export interface Invoice {
|
|
|
347
361
|
* The parent that generated this invoice
|
|
348
362
|
*/
|
|
349
363
|
parent: Invoice.Parent | null;
|
|
364
|
+
/**
|
|
365
|
+
* The ID of the payment plan associated with this invoice, if any. Use `expand[]=payment_plan` to include the full payment plan object.
|
|
366
|
+
*/
|
|
367
|
+
payment_plan?: string | PaymentPlan;
|
|
350
368
|
payment_settings: Invoice.PaymentSettings;
|
|
351
369
|
/**
|
|
352
370
|
* Payments for this invoice. Use [invoice payment](https://docs.stripe.com/api/invoice-payment) to get more details.
|
|
@@ -423,6 +441,10 @@ export interface Invoice {
|
|
|
423
441
|
* The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
|
|
424
442
|
*/
|
|
425
443
|
total_excluding_tax: number | null;
|
|
444
|
+
/**
|
|
445
|
+
* The aggregate amounts calculated per margin across all line items.
|
|
446
|
+
*/
|
|
447
|
+
total_margin_amounts?: Array<Invoice.TotalMarginAmount> | null;
|
|
426
448
|
/**
|
|
427
449
|
* Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
|
|
428
450
|
*/
|
|
@@ -451,6 +473,40 @@ export interface DeletedInvoice {
|
|
|
451
473
|
deleted: true;
|
|
452
474
|
}
|
|
453
475
|
export declare namespace Invoice {
|
|
476
|
+
interface AmountsDue {
|
|
477
|
+
/**
|
|
478
|
+
* Incremental amount due for this payment in cents (or local equivalent).
|
|
479
|
+
*/
|
|
480
|
+
amount: number;
|
|
481
|
+
/**
|
|
482
|
+
* The amount in cents (or local equivalent) that was paid for this payment.
|
|
483
|
+
*/
|
|
484
|
+
amount_paid: number;
|
|
485
|
+
/**
|
|
486
|
+
* The difference between the payment's amount and amount_paid, in cents (or local equivalent).
|
|
487
|
+
*/
|
|
488
|
+
amount_remaining: number;
|
|
489
|
+
/**
|
|
490
|
+
* Number of days from when invoice is finalized until the payment is due.
|
|
491
|
+
*/
|
|
492
|
+
days_until_due: number | null;
|
|
493
|
+
/**
|
|
494
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
495
|
+
*/
|
|
496
|
+
description: string | null;
|
|
497
|
+
/**
|
|
498
|
+
* Date on which a payment plan's payment is due.
|
|
499
|
+
*/
|
|
500
|
+
due_date: number | null;
|
|
501
|
+
/**
|
|
502
|
+
* Timestamp when the payment was paid.
|
|
503
|
+
*/
|
|
504
|
+
paid_at: number | null;
|
|
505
|
+
/**
|
|
506
|
+
* The status of the payment, one of `open`, `paid`, or `past_due`
|
|
507
|
+
*/
|
|
508
|
+
status: AmountsDue.Status;
|
|
509
|
+
}
|
|
454
510
|
interface AutomaticTax {
|
|
455
511
|
/**
|
|
456
512
|
* If Stripe disabled automatic tax, this enum describes why.
|
|
@@ -771,6 +827,16 @@ export declare namespace Invoice {
|
|
|
771
827
|
*/
|
|
772
828
|
discount: string | Discount | DeletedDiscount;
|
|
773
829
|
}
|
|
830
|
+
interface TotalMarginAmount {
|
|
831
|
+
/**
|
|
832
|
+
* The amount, in cents (or local equivalent), of the reduction in line item amount.
|
|
833
|
+
*/
|
|
834
|
+
amount: number;
|
|
835
|
+
/**
|
|
836
|
+
* The margin that was applied to get this margin amount.
|
|
837
|
+
*/
|
|
838
|
+
margin: string | Margin;
|
|
839
|
+
}
|
|
774
840
|
interface TotalPretaxCreditAmount {
|
|
775
841
|
/**
|
|
776
842
|
* The amount, in cents (or local equivalent), of the pretax credit amount.
|
|
@@ -784,6 +850,10 @@ export declare namespace Invoice {
|
|
|
784
850
|
* The discount that was applied to get this pretax credit amount.
|
|
785
851
|
*/
|
|
786
852
|
discount?: string | Discount | DeletedDiscount;
|
|
853
|
+
/**
|
|
854
|
+
* The margin that was applied to get this pretax credit amount.
|
|
855
|
+
*/
|
|
856
|
+
margin?: string | Margin;
|
|
787
857
|
/**
|
|
788
858
|
* Type of the pretax credit amount referenced.
|
|
789
859
|
*/
|
|
@@ -815,6 +885,9 @@ export declare namespace Invoice {
|
|
|
815
885
|
*/
|
|
816
886
|
type: 'tax_rate_details';
|
|
817
887
|
}
|
|
888
|
+
namespace AmountsDue {
|
|
889
|
+
type Status = 'open' | 'paid' | 'past_due' | OtherString;
|
|
890
|
+
}
|
|
818
891
|
namespace AutomaticTax {
|
|
819
892
|
type DisabledReason = 'finalization_requires_location_inputs' | 'finalization_system_error' | OtherString;
|
|
820
893
|
interface Liability {
|
|
@@ -839,7 +912,7 @@ export declare namespace Invoice {
|
|
|
839
912
|
type Type = 'account' | 'self' | OtherString;
|
|
840
913
|
}
|
|
841
914
|
namespace LastFinalizationError {
|
|
842
|
-
type Code = 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'account_token_required_for_v2_account' | 'acss_debit_session_incomplete' | 'action_blocked' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'anomalous_money_movement_request' | 'api_key_expired' | 'application_fees_not_allowed' | 'approval_required' | 'authentication_failure' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capability_not_active' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'dispute_evidence_page_limit_exceeded' | 'email_invalid' | 'expired_card' | 'expired_payment_method' | 'failed_tax_calculation' | 'financial_account_balance_does_not_support_currency' | 'financial_account_capability_not_enabled' | 'financial_account_capability_restricted' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_consent_locale_invalid' | 'financial_connections_consent_locale_unsupported' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_postal_code' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_canceled_subscription_fields' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_evaluation_on_api_version_not_supported' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_processing_error' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_restricted' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'request_blocked' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sepa_unsupported_account' | 'service_period_coupon_with_metered_tiered_item_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'siret_invalid' | 'sku_inactive' | 'smart_disputes_not_available' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | 'subscription_update_trial_after_billing_cycle_anchor' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'three_d_secure_authentication_not_supported' | 'three_d_secure_authentication_upstream_error' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid' | OtherString;
|
|
915
|
+
type Code = 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'account_token_required_for_v2_account' | 'acss_debit_session_incomplete' | 'action_blocked' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'anomalous_money_movement_request' | 'api_key_expired' | 'application_fees_not_allowed' | 'approval_required' | 'authentication_failure' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capability_not_active' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'dispute_evidence_page_limit_exceeded' | 'email_invalid' | 'expired_card' | 'expired_payment_method' | 'failed_tax_calculation' | 'financial_account_balance_does_not_support_currency' | 'financial_account_capability_not_enabled' | 'financial_account_capability_restricted' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_consent_locale_invalid' | 'financial_connections_consent_locale_unsupported' | 'financial_connections_institution_unavailable' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_postal_code' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_canceled_subscription_fields' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_evaluation_on_api_version_not_supported' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_processing_error' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_restricted' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'request_blocked' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sensitive_data_access_expired' | 'sepa_unsupported_account' | 'service_period_coupon_with_metered_tiered_item_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'siret_invalid' | 'sku_inactive' | 'smart_disputes_not_available' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | 'subscription_update_trial_after_billing_cycle_anchor' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_collected_data_invalid' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'three_d_secure_authentication_not_supported' | 'three_d_secure_authentication_upstream_error' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid' | 'v2_account_disconnection_unsupported' | 'v2_account_missing_configuration' | OtherString;
|
|
843
916
|
type Type = 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | OtherString;
|
|
844
917
|
}
|
|
845
918
|
namespace Parent {
|
|
@@ -855,6 +928,10 @@ export declare namespace Invoice {
|
|
|
855
928
|
* *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
|
|
856
929
|
*/
|
|
857
930
|
metadata: Metadata | null;
|
|
931
|
+
/**
|
|
932
|
+
* 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).
|
|
933
|
+
*/
|
|
934
|
+
pause_collection?: SubscriptionDetails.PauseCollection | null;
|
|
858
935
|
/**
|
|
859
936
|
* The subscription that generated this invoice
|
|
860
937
|
*/
|
|
@@ -865,6 +942,21 @@ export declare namespace Invoice {
|
|
|
865
942
|
subscription_proration_date?: number;
|
|
866
943
|
}
|
|
867
944
|
type Type = 'quote_details' | 'subscription_details' | OtherString;
|
|
945
|
+
namespace SubscriptionDetails {
|
|
946
|
+
interface PauseCollection {
|
|
947
|
+
/**
|
|
948
|
+
* The payment collection behavior for this subscription while paused.
|
|
949
|
+
*/
|
|
950
|
+
behavior: PauseCollection.Behavior | null;
|
|
951
|
+
/**
|
|
952
|
+
* The time after which the subscription will resume collecting payments.
|
|
953
|
+
*/
|
|
954
|
+
resumes_at: number | null;
|
|
955
|
+
}
|
|
956
|
+
namespace PauseCollection {
|
|
957
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
868
960
|
}
|
|
869
961
|
namespace PaymentSettings {
|
|
870
962
|
interface PaymentMethodOptions {
|
|
@@ -892,6 +984,10 @@ export declare namespace Invoice {
|
|
|
892
984
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
893
985
|
*/
|
|
894
986
|
customer_balance: PaymentMethodOptions.CustomerBalance | null;
|
|
987
|
+
/**
|
|
988
|
+
* If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
989
|
+
*/
|
|
990
|
+
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
|
|
895
991
|
/**
|
|
896
992
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
897
993
|
*/
|
|
@@ -917,7 +1013,7 @@ export declare namespace Invoice {
|
|
|
917
1013
|
*/
|
|
918
1014
|
us_bank_account: PaymentMethodOptions.UsBankAccount | null;
|
|
919
1015
|
}
|
|
920
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
1016
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
921
1017
|
namespace PaymentMethodOptions {
|
|
922
1018
|
interface AcssDebit {
|
|
923
1019
|
mandate_options?: AcssDebit.MandateOptions;
|
|
@@ -955,6 +1051,8 @@ export declare namespace Invoice {
|
|
|
955
1051
|
*/
|
|
956
1052
|
funding_type: 'bank_transfer' | null;
|
|
957
1053
|
}
|
|
1054
|
+
interface IdBankTransfer {
|
|
1055
|
+
}
|
|
958
1056
|
interface Konbini {
|
|
959
1057
|
}
|
|
960
1058
|
interface Payto {
|
|
@@ -1115,9 +1213,13 @@ export declare namespace Invoice {
|
|
|
1115
1213
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1116
1214
|
*/
|
|
1117
1215
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1216
|
+
/**
|
|
1217
|
+
* The institution to use to filter for possible accounts to link.
|
|
1218
|
+
*/
|
|
1219
|
+
institution?: string;
|
|
1118
1220
|
}
|
|
1119
1221
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
|
|
1120
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
1222
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
|
|
1121
1223
|
namespace Filters {
|
|
1122
1224
|
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
1123
1225
|
}
|
|
@@ -1185,7 +1287,7 @@ export declare namespace Invoice {
|
|
|
1185
1287
|
}
|
|
1186
1288
|
}
|
|
1187
1289
|
namespace TotalPretaxCreditAmount {
|
|
1188
|
-
type Type = 'credit_balance_transaction' | 'discount' | OtherString;
|
|
1290
|
+
type Type = 'credit_balance_transaction' | 'discount' | 'margin' | OtherString;
|
|
1189
1291
|
}
|
|
1190
1292
|
namespace TotalTax {
|
|
1191
1293
|
type TaxBehavior = 'exclusive' | 'inclusive' | OtherString;
|
|
@@ -1193,7 +1295,7 @@ export declare namespace Invoice {
|
|
|
1193
1295
|
/**
|
|
1194
1296
|
* ID of the tax rate
|
|
1195
1297
|
*/
|
|
1196
|
-
tax_rate: string;
|
|
1298
|
+
tax_rate: string | TaxRate;
|
|
1197
1299
|
}
|
|
1198
1300
|
type TaxabilityReason = 'customer_exempt' | 'not_available' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated' | OtherString;
|
|
1199
1301
|
}
|
|
@@ -1203,6 +1305,10 @@ export interface InvoiceCreateParams {
|
|
|
1203
1305
|
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
1204
1306
|
*/
|
|
1205
1307
|
account_tax_ids?: Emptyable<Array<string>>;
|
|
1308
|
+
/**
|
|
1309
|
+
* List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
1310
|
+
*/
|
|
1311
|
+
amounts_due?: Emptyable<Array<InvoiceCreateParams.AmountsDue>>;
|
|
1206
1312
|
/**
|
|
1207
1313
|
* A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
|
|
1208
1314
|
*/
|
|
@@ -1243,6 +1349,10 @@ export interface InvoiceCreateParams {
|
|
|
1243
1349
|
* The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
|
|
1244
1350
|
*/
|
|
1245
1351
|
days_until_due?: number;
|
|
1352
|
+
/**
|
|
1353
|
+
* The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
1354
|
+
*/
|
|
1355
|
+
default_margins?: Array<string>;
|
|
1246
1356
|
/**
|
|
1247
1357
|
* ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
|
1248
1358
|
*/
|
|
@@ -1333,6 +1443,24 @@ export interface InvoiceCreateParams {
|
|
|
1333
1443
|
transfer_data?: InvoiceCreateParams.TransferData;
|
|
1334
1444
|
}
|
|
1335
1445
|
export declare namespace InvoiceCreateParams {
|
|
1446
|
+
interface AmountsDue {
|
|
1447
|
+
/**
|
|
1448
|
+
* The amount in cents (or local equivalent).
|
|
1449
|
+
*/
|
|
1450
|
+
amount: number;
|
|
1451
|
+
/**
|
|
1452
|
+
* Number of days from when invoice is finalized until the payment is due.
|
|
1453
|
+
*/
|
|
1454
|
+
days_until_due?: number;
|
|
1455
|
+
/**
|
|
1456
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
1457
|
+
*/
|
|
1458
|
+
description: string;
|
|
1459
|
+
/**
|
|
1460
|
+
* Date on which a payment plan's payment is due.
|
|
1461
|
+
*/
|
|
1462
|
+
due_date?: number;
|
|
1463
|
+
}
|
|
1336
1464
|
interface AutomaticTax {
|
|
1337
1465
|
/**
|
|
1338
1466
|
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
|
|
@@ -1363,6 +1491,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1363
1491
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1364
1492
|
*/
|
|
1365
1493
|
discount?: string;
|
|
1494
|
+
/**
|
|
1495
|
+
* Details to determine how long the discount should be applied for.
|
|
1496
|
+
*/
|
|
1497
|
+
discount_end?: Discount.DiscountEnd;
|
|
1366
1498
|
/**
|
|
1367
1499
|
* ID of the promotion code to create a new discount for.
|
|
1368
1500
|
*/
|
|
@@ -1470,6 +1602,38 @@ export declare namespace InvoiceCreateParams {
|
|
|
1470
1602
|
type Type = 'account' | 'self' | OtherString;
|
|
1471
1603
|
}
|
|
1472
1604
|
}
|
|
1605
|
+
namespace Discount {
|
|
1606
|
+
interface DiscountEnd {
|
|
1607
|
+
/**
|
|
1608
|
+
* Time span for the redeemed discount.
|
|
1609
|
+
*/
|
|
1610
|
+
duration?: DiscountEnd.Duration;
|
|
1611
|
+
/**
|
|
1612
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1613
|
+
*/
|
|
1614
|
+
timestamp?: number;
|
|
1615
|
+
/**
|
|
1616
|
+
* The type of calculation made to determine when the discount ends.
|
|
1617
|
+
*/
|
|
1618
|
+
type: DiscountEnd.Type;
|
|
1619
|
+
}
|
|
1620
|
+
namespace DiscountEnd {
|
|
1621
|
+
interface Duration {
|
|
1622
|
+
/**
|
|
1623
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1624
|
+
*/
|
|
1625
|
+
interval: Duration.Interval;
|
|
1626
|
+
/**
|
|
1627
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1628
|
+
*/
|
|
1629
|
+
interval_count: number;
|
|
1630
|
+
}
|
|
1631
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
1632
|
+
namespace Duration {
|
|
1633
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
1634
|
+
}
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1473
1637
|
namespace Issuer {
|
|
1474
1638
|
type Type = 'account' | 'self' | OtherString;
|
|
1475
1639
|
}
|
|
@@ -1499,6 +1663,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1499
1663
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1500
1664
|
*/
|
|
1501
1665
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
1666
|
+
/**
|
|
1667
|
+
* If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1668
|
+
*/
|
|
1669
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
1502
1670
|
/**
|
|
1503
1671
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1504
1672
|
*/
|
|
@@ -1524,7 +1692,7 @@ export declare namespace InvoiceCreateParams {
|
|
|
1524
1692
|
*/
|
|
1525
1693
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
1526
1694
|
}
|
|
1527
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
1695
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
1528
1696
|
namespace PaymentMethodOptions {
|
|
1529
1697
|
interface AcssDebit {
|
|
1530
1698
|
/**
|
|
@@ -1576,6 +1744,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
1576
1744
|
*/
|
|
1577
1745
|
funding_type?: string;
|
|
1578
1746
|
}
|
|
1747
|
+
interface IdBankTransfer {
|
|
1748
|
+
}
|
|
1579
1749
|
interface Konbini {
|
|
1580
1750
|
}
|
|
1581
1751
|
interface Payto {
|
|
@@ -1771,9 +1941,13 @@ export declare namespace InvoiceCreateParams {
|
|
|
1771
1941
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1772
1942
|
*/
|
|
1773
1943
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1944
|
+
/**
|
|
1945
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
1946
|
+
*/
|
|
1947
|
+
institution?: string;
|
|
1774
1948
|
}
|
|
1775
1949
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
|
|
1776
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
1950
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
|
|
1777
1951
|
namespace Filters {
|
|
1778
1952
|
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
1779
1953
|
}
|
|
@@ -1911,6 +2085,10 @@ export interface InvoiceUpdateParams {
|
|
|
1911
2085
|
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
1912
2086
|
*/
|
|
1913
2087
|
account_tax_ids?: Emptyable<Array<string>>;
|
|
2088
|
+
/**
|
|
2089
|
+
* List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
2090
|
+
*/
|
|
2091
|
+
amounts_due?: Emptyable<Array<InvoiceUpdateParams.AmountsDue>>;
|
|
1914
2092
|
/**
|
|
1915
2093
|
* A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
|
|
1916
2094
|
*/
|
|
@@ -1939,6 +2117,10 @@ export interface InvoiceUpdateParams {
|
|
|
1939
2117
|
* The number of days from which the invoice is created until it is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
|
|
1940
2118
|
*/
|
|
1941
2119
|
days_until_due?: number;
|
|
2120
|
+
/**
|
|
2121
|
+
* The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
2122
|
+
*/
|
|
2123
|
+
default_margins?: Emptyable<Array<string>>;
|
|
1942
2124
|
/**
|
|
1943
2125
|
* ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
|
1944
2126
|
*/
|
|
@@ -2017,6 +2199,24 @@ export interface InvoiceUpdateParams {
|
|
|
2017
2199
|
transfer_data?: Emptyable<InvoiceUpdateParams.TransferData>;
|
|
2018
2200
|
}
|
|
2019
2201
|
export declare namespace InvoiceUpdateParams {
|
|
2202
|
+
interface AmountsDue {
|
|
2203
|
+
/**
|
|
2204
|
+
* The amount in cents (or local equivalent).
|
|
2205
|
+
*/
|
|
2206
|
+
amount: number;
|
|
2207
|
+
/**
|
|
2208
|
+
* Number of days from when invoice is finalized until the payment is due.
|
|
2209
|
+
*/
|
|
2210
|
+
days_until_due?: number;
|
|
2211
|
+
/**
|
|
2212
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
2213
|
+
*/
|
|
2214
|
+
description: string;
|
|
2215
|
+
/**
|
|
2216
|
+
* Date on which a payment plan's payment is due.
|
|
2217
|
+
*/
|
|
2218
|
+
due_date?: number;
|
|
2219
|
+
}
|
|
2020
2220
|
interface AutomaticTax {
|
|
2021
2221
|
/**
|
|
2022
2222
|
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
|
|
@@ -2047,6 +2247,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2047
2247
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2048
2248
|
*/
|
|
2049
2249
|
discount?: string;
|
|
2250
|
+
/**
|
|
2251
|
+
* Details to determine how long the discount should be applied for.
|
|
2252
|
+
*/
|
|
2253
|
+
discount_end?: Discount.DiscountEnd;
|
|
2050
2254
|
/**
|
|
2051
2255
|
* ID of the promotion code to create a new discount for.
|
|
2052
2256
|
*/
|
|
@@ -2143,6 +2347,38 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2143
2347
|
type Type = 'account' | 'self' | OtherString;
|
|
2144
2348
|
}
|
|
2145
2349
|
}
|
|
2350
|
+
namespace Discount {
|
|
2351
|
+
interface DiscountEnd {
|
|
2352
|
+
/**
|
|
2353
|
+
* Time span for the redeemed discount.
|
|
2354
|
+
*/
|
|
2355
|
+
duration?: DiscountEnd.Duration;
|
|
2356
|
+
/**
|
|
2357
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2358
|
+
*/
|
|
2359
|
+
timestamp?: number;
|
|
2360
|
+
/**
|
|
2361
|
+
* The type of calculation made to determine when the discount ends.
|
|
2362
|
+
*/
|
|
2363
|
+
type: DiscountEnd.Type;
|
|
2364
|
+
}
|
|
2365
|
+
namespace DiscountEnd {
|
|
2366
|
+
interface Duration {
|
|
2367
|
+
/**
|
|
2368
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2369
|
+
*/
|
|
2370
|
+
interval: Duration.Interval;
|
|
2371
|
+
/**
|
|
2372
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2373
|
+
*/
|
|
2374
|
+
interval_count: number;
|
|
2375
|
+
}
|
|
2376
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
2377
|
+
namespace Duration {
|
|
2378
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2146
2382
|
namespace Issuer {
|
|
2147
2383
|
type Type = 'account' | 'self' | OtherString;
|
|
2148
2384
|
}
|
|
@@ -2172,6 +2408,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2172
2408
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2173
2409
|
*/
|
|
2174
2410
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
2411
|
+
/**
|
|
2412
|
+
* If paying by `id_bank_transfer`, this sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2413
|
+
*/
|
|
2414
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
2175
2415
|
/**
|
|
2176
2416
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
2177
2417
|
*/
|
|
@@ -2197,7 +2437,7 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2197
2437
|
*/
|
|
2198
2438
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
2199
2439
|
}
|
|
2200
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
2440
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
2201
2441
|
namespace PaymentMethodOptions {
|
|
2202
2442
|
interface AcssDebit {
|
|
2203
2443
|
/**
|
|
@@ -2249,6 +2489,8 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2249
2489
|
*/
|
|
2250
2490
|
funding_type?: string;
|
|
2251
2491
|
}
|
|
2492
|
+
interface IdBankTransfer {
|
|
2493
|
+
}
|
|
2252
2494
|
interface Konbini {
|
|
2253
2495
|
}
|
|
2254
2496
|
interface Payto {
|
|
@@ -2444,9 +2686,13 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2444
2686
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2445
2687
|
*/
|
|
2446
2688
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2689
|
+
/**
|
|
2690
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
2691
|
+
*/
|
|
2692
|
+
institution?: string;
|
|
2447
2693
|
}
|
|
2448
2694
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
|
|
2449
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
2695
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
|
|
2450
2696
|
namespace Filters {
|
|
2451
2697
|
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
2452
2698
|
}
|
|
@@ -2648,6 +2894,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2648
2894
|
* ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
|
|
2649
2895
|
*/
|
|
2650
2896
|
invoice_item?: string;
|
|
2897
|
+
/**
|
|
2898
|
+
* The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
|
2899
|
+
*/
|
|
2900
|
+
margins?: Emptyable<Array<string>>;
|
|
2651
2901
|
/**
|
|
2652
2902
|
* 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`.
|
|
2653
2903
|
*/
|
|
@@ -2691,6 +2941,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2691
2941
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2692
2942
|
*/
|
|
2693
2943
|
discount?: string;
|
|
2944
|
+
/**
|
|
2945
|
+
* Details to determine how long the discount should be applied for.
|
|
2946
|
+
*/
|
|
2947
|
+
discount_end?: Discount.DiscountEnd;
|
|
2694
2948
|
/**
|
|
2695
2949
|
* ID of the promotion code to create a new discount for.
|
|
2696
2950
|
*/
|
|
@@ -2758,6 +3012,38 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2758
3012
|
*/
|
|
2759
3013
|
taxable_amount: number;
|
|
2760
3014
|
}
|
|
3015
|
+
namespace Discount {
|
|
3016
|
+
interface DiscountEnd {
|
|
3017
|
+
/**
|
|
3018
|
+
* Time span for the redeemed discount.
|
|
3019
|
+
*/
|
|
3020
|
+
duration?: DiscountEnd.Duration;
|
|
3021
|
+
/**
|
|
3022
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3023
|
+
*/
|
|
3024
|
+
timestamp?: number;
|
|
3025
|
+
/**
|
|
3026
|
+
* The type of calculation made to determine when the discount ends.
|
|
3027
|
+
*/
|
|
3028
|
+
type: DiscountEnd.Type;
|
|
3029
|
+
}
|
|
3030
|
+
namespace DiscountEnd {
|
|
3031
|
+
interface Duration {
|
|
3032
|
+
/**
|
|
3033
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3034
|
+
*/
|
|
3035
|
+
interval: Duration.Interval;
|
|
3036
|
+
/**
|
|
3037
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3038
|
+
*/
|
|
3039
|
+
interval_count: number;
|
|
3040
|
+
}
|
|
3041
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
3042
|
+
namespace Duration {
|
|
3043
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3044
|
+
}
|
|
3045
|
+
}
|
|
3046
|
+
}
|
|
2761
3047
|
namespace PriceData {
|
|
2762
3048
|
interface ProductData {
|
|
2763
3049
|
/**
|
|
@@ -2851,6 +3137,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2851
3137
|
}
|
|
2852
3138
|
}
|
|
2853
3139
|
export interface InvoiceAttachPaymentParams {
|
|
3140
|
+
/**
|
|
3141
|
+
* The portion of the `amount` on the PaymentIntent or out of band payment to apply to this invoice. It defaults to the entire amount.
|
|
3142
|
+
*/
|
|
3143
|
+
amount_requested?: number;
|
|
2854
3144
|
/**
|
|
2855
3145
|
* Specifies which fields in the response should be expanded.
|
|
2856
3146
|
*/
|
|
@@ -2863,6 +3153,38 @@ export interface InvoiceAttachPaymentParams {
|
|
|
2863
3153
|
* The ID of the PaymentRecord to attach to the invoice.
|
|
2864
3154
|
*/
|
|
2865
3155
|
payment_record?: string;
|
|
3156
|
+
/**
|
|
3157
|
+
* The PaymentRecord data for attaching an out of band payment to the invoice.
|
|
3158
|
+
*/
|
|
3159
|
+
payment_record_data?: InvoiceAttachPaymentParams.PaymentRecordData;
|
|
3160
|
+
}
|
|
3161
|
+
export declare namespace InvoiceAttachPaymentParams {
|
|
3162
|
+
interface PaymentRecordData {
|
|
3163
|
+
/**
|
|
3164
|
+
* The amount that was paid out of band.
|
|
3165
|
+
*/
|
|
3166
|
+
amount: number;
|
|
3167
|
+
/**
|
|
3168
|
+
* The currency that was paid out of band.
|
|
3169
|
+
*/
|
|
3170
|
+
currency: string;
|
|
3171
|
+
/**
|
|
3172
|
+
* 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`.
|
|
3173
|
+
*/
|
|
3174
|
+
metadata?: Emptyable<MetadataParam>;
|
|
3175
|
+
/**
|
|
3176
|
+
* The type of money movement for this out of band payment record.
|
|
3177
|
+
*/
|
|
3178
|
+
money_movement_type: string;
|
|
3179
|
+
/**
|
|
3180
|
+
* The timestamp when this out of band payment was paid.
|
|
3181
|
+
*/
|
|
3182
|
+
paid_at?: number;
|
|
3183
|
+
/**
|
|
3184
|
+
* The reference for this out of band payment record.
|
|
3185
|
+
*/
|
|
3186
|
+
payment_reference?: string;
|
|
3187
|
+
}
|
|
2866
3188
|
}
|
|
2867
3189
|
export interface InvoiceCreatePreviewParams {
|
|
2868
3190
|
/**
|
|
@@ -2968,6 +3290,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
2968
3290
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2969
3291
|
*/
|
|
2970
3292
|
discount?: string;
|
|
3293
|
+
/**
|
|
3294
|
+
* Details to determine how long the discount should be applied for.
|
|
3295
|
+
*/
|
|
3296
|
+
discount_end?: Discount.DiscountEnd;
|
|
2971
3297
|
/**
|
|
2972
3298
|
* ID of the promotion code to create a new discount for.
|
|
2973
3299
|
*/
|
|
@@ -3055,6 +3381,14 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3055
3381
|
}
|
|
3056
3382
|
type PreviewMode = 'next' | 'recurring' | OtherString;
|
|
3057
3383
|
interface ScheduleDetails {
|
|
3384
|
+
/**
|
|
3385
|
+
* Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
3386
|
+
*/
|
|
3387
|
+
amendments?: Array<ScheduleDetails.Amendment>;
|
|
3388
|
+
/**
|
|
3389
|
+
* 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.
|
|
3390
|
+
*/
|
|
3391
|
+
billing_behavior?: ScheduleDetails.BillingBehavior;
|
|
3058
3392
|
/**
|
|
3059
3393
|
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
3060
3394
|
*/
|
|
@@ -3071,6 +3405,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3071
3405
|
* 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.
|
|
3072
3406
|
*/
|
|
3073
3407
|
phases?: Array<ScheduleDetails.Phase>;
|
|
3408
|
+
/**
|
|
3409
|
+
* Provide any time periods to bill in advance.
|
|
3410
|
+
*/
|
|
3411
|
+
prebilling?: Emptyable<Array<ScheduleDetails.Prebilling>>;
|
|
3074
3412
|
/**
|
|
3075
3413
|
* In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
|
|
3076
3414
|
*/
|
|
@@ -3121,6 +3459,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3121
3459
|
* `pending_invoice_item` never has a preview available because pausing wouldn't generate an invoice, and paused subscriptions don't generate invoices either.
|
|
3122
3460
|
*/
|
|
3123
3461
|
pause?: SubscriptionDetails.Pause;
|
|
3462
|
+
/**
|
|
3463
|
+
* The pre-billing to apply to the subscription as a preview.
|
|
3464
|
+
*/
|
|
3465
|
+
prebilling?: SubscriptionDetails.Prebilling;
|
|
3124
3466
|
/**
|
|
3125
3467
|
* Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
3126
3468
|
*/
|
|
@@ -3193,6 +3535,38 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3193
3535
|
type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_acn' | 'au_arn' | 'au_wpn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'bw_vat' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'ci_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'cz_dic' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'fr_siren' | 'fr_siret' | 'fr_spi' | 'gb_vat' | 'ge_vat' | 'gh_tin' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'ic_nif' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_kt' | 'is_vat' | 'it_cf' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'lk_vat' | 'ma_vat' | 'md_cf' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mu_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'mz_nuit' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_bn' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'pt_nif' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sm_coe' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tt_bir' | 'tt_vat' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin' | OtherString;
|
|
3194
3536
|
}
|
|
3195
3537
|
}
|
|
3538
|
+
namespace Discount {
|
|
3539
|
+
interface DiscountEnd {
|
|
3540
|
+
/**
|
|
3541
|
+
* Time span for the redeemed discount.
|
|
3542
|
+
*/
|
|
3543
|
+
duration?: DiscountEnd.Duration;
|
|
3544
|
+
/**
|
|
3545
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3546
|
+
*/
|
|
3547
|
+
timestamp?: number;
|
|
3548
|
+
/**
|
|
3549
|
+
* The type of calculation made to determine when the discount ends.
|
|
3550
|
+
*/
|
|
3551
|
+
type: DiscountEnd.Type;
|
|
3552
|
+
}
|
|
3553
|
+
namespace DiscountEnd {
|
|
3554
|
+
interface Duration {
|
|
3555
|
+
/**
|
|
3556
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3557
|
+
*/
|
|
3558
|
+
interval: Duration.Interval;
|
|
3559
|
+
/**
|
|
3560
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3561
|
+
*/
|
|
3562
|
+
interval_count: number;
|
|
3563
|
+
}
|
|
3564
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
3565
|
+
namespace Duration {
|
|
3566
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3567
|
+
}
|
|
3568
|
+
}
|
|
3569
|
+
}
|
|
3196
3570
|
namespace InvoiceItem {
|
|
3197
3571
|
interface Discount {
|
|
3198
3572
|
/**
|
|
@@ -3203,6 +3577,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3203
3577
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3204
3578
|
*/
|
|
3205
3579
|
discount?: string;
|
|
3580
|
+
/**
|
|
3581
|
+
* Details to determine how long the discount should be applied for.
|
|
3582
|
+
*/
|
|
3583
|
+
discount_end?: Discount.DiscountEnd;
|
|
3206
3584
|
/**
|
|
3207
3585
|
* ID of the promotion code to create a new discount for.
|
|
3208
3586
|
*/
|
|
@@ -3241,6 +3619,38 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3241
3619
|
unit_amount_decimal?: Decimal;
|
|
3242
3620
|
}
|
|
3243
3621
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
|
|
3622
|
+
namespace Discount {
|
|
3623
|
+
interface DiscountEnd {
|
|
3624
|
+
/**
|
|
3625
|
+
* Time span for the redeemed discount.
|
|
3626
|
+
*/
|
|
3627
|
+
duration?: DiscountEnd.Duration;
|
|
3628
|
+
/**
|
|
3629
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3630
|
+
*/
|
|
3631
|
+
timestamp?: number;
|
|
3632
|
+
/**
|
|
3633
|
+
* The type of calculation made to determine when the discount ends.
|
|
3634
|
+
*/
|
|
3635
|
+
type: DiscountEnd.Type;
|
|
3636
|
+
}
|
|
3637
|
+
namespace DiscountEnd {
|
|
3638
|
+
interface Duration {
|
|
3639
|
+
/**
|
|
3640
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3641
|
+
*/
|
|
3642
|
+
interval: Duration.Interval;
|
|
3643
|
+
/**
|
|
3644
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3645
|
+
*/
|
|
3646
|
+
interval_count: number;
|
|
3647
|
+
}
|
|
3648
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
3649
|
+
namespace Duration {
|
|
3650
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3244
3654
|
namespace PriceData {
|
|
3245
3655
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
|
|
3246
3656
|
}
|
|
@@ -3249,6 +3659,49 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3249
3659
|
type Type = 'account' | 'self' | OtherString;
|
|
3250
3660
|
}
|
|
3251
3661
|
namespace ScheduleDetails {
|
|
3662
|
+
interface Amendment {
|
|
3663
|
+
/**
|
|
3664
|
+
* 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.
|
|
3665
|
+
*/
|
|
3666
|
+
amendment_end?: Amendment.AmendmentEnd;
|
|
3667
|
+
/**
|
|
3668
|
+
* Details to identify the earliest timestamp where the proposed change should take effect.
|
|
3669
|
+
*/
|
|
3670
|
+
amendment_start: Amendment.AmendmentStart;
|
|
3671
|
+
/**
|
|
3672
|
+
* 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.
|
|
3673
|
+
*/
|
|
3674
|
+
billing_cycle_anchor?: Amendment.BillingCycleAnchor;
|
|
3675
|
+
/**
|
|
3676
|
+
* Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
3677
|
+
*/
|
|
3678
|
+
discount_actions?: Array<Amendment.DiscountAction>;
|
|
3679
|
+
/**
|
|
3680
|
+
* Changes to the subscription items during the amendment time span.
|
|
3681
|
+
*/
|
|
3682
|
+
item_actions?: Array<Amendment.ItemAction>;
|
|
3683
|
+
/**
|
|
3684
|
+
* Instructions for how to modify phase metadata
|
|
3685
|
+
*/
|
|
3686
|
+
metadata_actions?: Array<Amendment.MetadataAction>;
|
|
3687
|
+
/**
|
|
3688
|
+
* 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`.
|
|
3689
|
+
*/
|
|
3690
|
+
proration_behavior?: Amendment.ProrationBehavior;
|
|
3691
|
+
/**
|
|
3692
|
+
* Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
3693
|
+
*/
|
|
3694
|
+
set_pause_collection?: Amendment.SetPauseCollection;
|
|
3695
|
+
/**
|
|
3696
|
+
* Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
3697
|
+
*/
|
|
3698
|
+
set_schedule_end?: Amendment.SetScheduleEnd;
|
|
3699
|
+
/**
|
|
3700
|
+
* Settings related to subscription trials.
|
|
3701
|
+
*/
|
|
3702
|
+
trial_settings?: Amendment.TrialSettings;
|
|
3703
|
+
}
|
|
3704
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front' | OtherString;
|
|
3252
3705
|
interface BillingMode {
|
|
3253
3706
|
/**
|
|
3254
3707
|
* Configure behavior for flexible billing mode.
|
|
@@ -3344,7 +3797,11 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3344
3797
|
*/
|
|
3345
3798
|
on_behalf_of?: string;
|
|
3346
3799
|
/**
|
|
3347
|
-
*
|
|
3800
|
+
* 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).
|
|
3801
|
+
*/
|
|
3802
|
+
pause_collection?: Phase.PauseCollection;
|
|
3803
|
+
/**
|
|
3804
|
+
* 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.
|
|
3348
3805
|
*/
|
|
3349
3806
|
proration_behavior?: Phase.ProrationBehavior;
|
|
3350
3807
|
/**
|
|
@@ -3359,12 +3816,468 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3359
3816
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
3360
3817
|
*/
|
|
3361
3818
|
trial?: boolean;
|
|
3819
|
+
/**
|
|
3820
|
+
* Specify trial behavior when crossing phase boundaries
|
|
3821
|
+
*/
|
|
3822
|
+
trial_continuation?: Phase.TrialContinuation;
|
|
3362
3823
|
/**
|
|
3363
3824
|
* Sets the phase to trialing from the start date to this date. Must be within the phase. When previewing an update, if combined with `trial=true`, it must match the phase end date.
|
|
3364
3825
|
*/
|
|
3365
3826
|
trial_end?: number | 'now';
|
|
3827
|
+
/**
|
|
3828
|
+
* Settings related to subscription trials.
|
|
3829
|
+
*/
|
|
3830
|
+
trial_settings?: Phase.TrialSettings;
|
|
3831
|
+
}
|
|
3832
|
+
interface Prebilling {
|
|
3833
|
+
/**
|
|
3834
|
+
* The end of the prebilled time period.
|
|
3835
|
+
*/
|
|
3836
|
+
bill_until?: Prebilling.BillUntil;
|
|
3837
|
+
/**
|
|
3838
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
3839
|
+
*/
|
|
3840
|
+
iterations?: number;
|
|
3366
3841
|
}
|
|
3367
3842
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
3843
|
+
namespace Amendment {
|
|
3844
|
+
interface AmendmentEnd {
|
|
3845
|
+
/**
|
|
3846
|
+
* Use the `end` time of a given discount.
|
|
3847
|
+
*/
|
|
3848
|
+
discount_end?: AmendmentEnd.DiscountEnd;
|
|
3849
|
+
/**
|
|
3850
|
+
* Time span for the amendment starting from the `amendment_start`.
|
|
3851
|
+
*/
|
|
3852
|
+
duration?: AmendmentEnd.Duration;
|
|
3853
|
+
/**
|
|
3854
|
+
* A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
3855
|
+
*/
|
|
3856
|
+
timestamp?: number;
|
|
3857
|
+
/**
|
|
3858
|
+
* Select one of three ways to pass the `amendment_end`.
|
|
3859
|
+
*/
|
|
3860
|
+
type: AmendmentEnd.Type;
|
|
3861
|
+
}
|
|
3862
|
+
interface AmendmentStart {
|
|
3863
|
+
/**
|
|
3864
|
+
* Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
3865
|
+
*/
|
|
3866
|
+
amendment_end?: AmendmentStart.AmendmentEnd;
|
|
3867
|
+
/**
|
|
3868
|
+
* Use the `end` time of a given discount.
|
|
3869
|
+
*/
|
|
3870
|
+
discount_end?: AmendmentStart.DiscountEnd;
|
|
3871
|
+
/**
|
|
3872
|
+
* A precise Unix timestamp for the amendment to start.
|
|
3873
|
+
*/
|
|
3874
|
+
timestamp?: number;
|
|
3875
|
+
/**
|
|
3876
|
+
* Select one of three ways to pass the `amendment_start`.
|
|
3877
|
+
*/
|
|
3878
|
+
type: AmendmentStart.Type;
|
|
3879
|
+
}
|
|
3880
|
+
type BillingCycleAnchor = 'amendment_start' | 'automatic' | OtherString;
|
|
3881
|
+
interface DiscountAction {
|
|
3882
|
+
/**
|
|
3883
|
+
* Details of the discount to add.
|
|
3884
|
+
*/
|
|
3885
|
+
add?: DiscountAction.Add;
|
|
3886
|
+
/**
|
|
3887
|
+
* Details of the discount to remove.
|
|
3888
|
+
*/
|
|
3889
|
+
remove?: DiscountAction.Remove;
|
|
3890
|
+
/**
|
|
3891
|
+
* Details of the discount to replace the existing discounts with.
|
|
3892
|
+
*/
|
|
3893
|
+
set?: DiscountAction.Set;
|
|
3894
|
+
/**
|
|
3895
|
+
* Determines the type of discount action.
|
|
3896
|
+
*/
|
|
3897
|
+
type: DiscountAction.Type;
|
|
3898
|
+
}
|
|
3899
|
+
interface ItemAction {
|
|
3900
|
+
/**
|
|
3901
|
+
* 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.
|
|
3902
|
+
*/
|
|
3903
|
+
add?: ItemAction.Add;
|
|
3904
|
+
/**
|
|
3905
|
+
* Details of the subscription item to remove.
|
|
3906
|
+
*/
|
|
3907
|
+
remove?: ItemAction.Remove;
|
|
3908
|
+
/**
|
|
3909
|
+
* 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.
|
|
3910
|
+
*/
|
|
3911
|
+
set?: ItemAction.Set;
|
|
3912
|
+
/**
|
|
3913
|
+
* Determines the type of item action.
|
|
3914
|
+
*/
|
|
3915
|
+
type: ItemAction.Type;
|
|
3916
|
+
}
|
|
3917
|
+
interface MetadataAction {
|
|
3918
|
+
/**
|
|
3919
|
+
* Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
3920
|
+
*/
|
|
3921
|
+
add?: {
|
|
3922
|
+
[key: string]: string;
|
|
3923
|
+
};
|
|
3924
|
+
/**
|
|
3925
|
+
* Keys to remove from schedule phase metadata.
|
|
3926
|
+
*/
|
|
3927
|
+
remove?: Array<string>;
|
|
3928
|
+
/**
|
|
3929
|
+
* Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
3930
|
+
*/
|
|
3931
|
+
set?: Emptyable<{
|
|
3932
|
+
[key: string]: string;
|
|
3933
|
+
}>;
|
|
3934
|
+
/**
|
|
3935
|
+
* Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
3936
|
+
*/
|
|
3937
|
+
type: MetadataAction.Type;
|
|
3938
|
+
}
|
|
3939
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
3940
|
+
interface SetPauseCollection {
|
|
3941
|
+
/**
|
|
3942
|
+
* Details of the pause_collection behavior to apply to the amendment.
|
|
3943
|
+
*/
|
|
3944
|
+
set?: SetPauseCollection.Set;
|
|
3945
|
+
/**
|
|
3946
|
+
* Determines the type of the pause_collection amendment.
|
|
3947
|
+
*/
|
|
3948
|
+
type: SetPauseCollection.Type;
|
|
3949
|
+
}
|
|
3950
|
+
type SetScheduleEnd = 'amendment_end' | 'amendment_start' | OtherString;
|
|
3951
|
+
interface TrialSettings {
|
|
3952
|
+
/**
|
|
3953
|
+
* Defines how the subscription should behave when a trial ends.
|
|
3954
|
+
*/
|
|
3955
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
3956
|
+
}
|
|
3957
|
+
namespace AmendmentEnd {
|
|
3958
|
+
interface DiscountEnd {
|
|
3959
|
+
/**
|
|
3960
|
+
* The ID of a specific discount.
|
|
3961
|
+
*/
|
|
3962
|
+
discount: string;
|
|
3963
|
+
}
|
|
3964
|
+
interface Duration {
|
|
3965
|
+
/**
|
|
3966
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3967
|
+
*/
|
|
3968
|
+
interval: Duration.Interval;
|
|
3969
|
+
/**
|
|
3970
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3971
|
+
*/
|
|
3972
|
+
interval_count: number;
|
|
3973
|
+
}
|
|
3974
|
+
type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
|
|
3975
|
+
namespace Duration {
|
|
3976
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3977
|
+
}
|
|
3978
|
+
}
|
|
3979
|
+
namespace AmendmentStart {
|
|
3980
|
+
interface AmendmentEnd {
|
|
3981
|
+
/**
|
|
3982
|
+
* 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.
|
|
3983
|
+
*/
|
|
3984
|
+
index: number;
|
|
3985
|
+
}
|
|
3986
|
+
interface DiscountEnd {
|
|
3987
|
+
/**
|
|
3988
|
+
* The ID of a specific discount.
|
|
3989
|
+
*/
|
|
3990
|
+
discount: string;
|
|
3991
|
+
}
|
|
3992
|
+
type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
|
|
3993
|
+
}
|
|
3994
|
+
namespace DiscountAction {
|
|
3995
|
+
interface Add {
|
|
3996
|
+
/**
|
|
3997
|
+
* The coupon code to redeem.
|
|
3998
|
+
*/
|
|
3999
|
+
coupon?: string;
|
|
4000
|
+
/**
|
|
4001
|
+
* An ID of an existing discount for a coupon that was already redeemed.
|
|
4002
|
+
*/
|
|
4003
|
+
discount?: string;
|
|
4004
|
+
/**
|
|
4005
|
+
* Details to determine how long the discount should be applied for.
|
|
4006
|
+
*/
|
|
4007
|
+
discount_end?: Add.DiscountEnd;
|
|
4008
|
+
/**
|
|
4009
|
+
* 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.
|
|
4010
|
+
*/
|
|
4011
|
+
index?: number;
|
|
4012
|
+
/**
|
|
4013
|
+
* The promotion code to redeem.
|
|
4014
|
+
*/
|
|
4015
|
+
promotion_code?: string;
|
|
4016
|
+
}
|
|
4017
|
+
interface Remove {
|
|
4018
|
+
/**
|
|
4019
|
+
* The coupon code to remove from the `discounts` array.
|
|
4020
|
+
*/
|
|
4021
|
+
coupon?: string;
|
|
4022
|
+
/**
|
|
4023
|
+
* The ID of a discount to remove from the `discounts` array.
|
|
4024
|
+
*/
|
|
4025
|
+
discount?: string;
|
|
4026
|
+
/**
|
|
4027
|
+
* The ID of a promotion code to remove from the `discounts` array.
|
|
4028
|
+
*/
|
|
4029
|
+
promotion_code?: string;
|
|
4030
|
+
}
|
|
4031
|
+
interface Set {
|
|
4032
|
+
/**
|
|
4033
|
+
* The coupon code to replace the `discounts` array with.
|
|
4034
|
+
*/
|
|
4035
|
+
coupon?: string;
|
|
4036
|
+
/**
|
|
4037
|
+
* An ID of an existing discount to replace the `discounts` array with.
|
|
4038
|
+
*/
|
|
4039
|
+
discount?: string;
|
|
4040
|
+
/**
|
|
4041
|
+
* An ID of an existing promotion code to replace the `discounts` array with.
|
|
4042
|
+
*/
|
|
4043
|
+
promotion_code?: string;
|
|
4044
|
+
}
|
|
4045
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
4046
|
+
namespace Add {
|
|
4047
|
+
interface DiscountEnd {
|
|
4048
|
+
/**
|
|
4049
|
+
* The type of calculation made to determine when the discount ends.
|
|
4050
|
+
*/
|
|
4051
|
+
type: 'amendment_end';
|
|
4052
|
+
}
|
|
4053
|
+
}
|
|
4054
|
+
}
|
|
4055
|
+
namespace ItemAction {
|
|
4056
|
+
interface Add {
|
|
4057
|
+
/**
|
|
4058
|
+
* The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
4059
|
+
*/
|
|
4060
|
+
discounts?: Array<Add.Discount>;
|
|
4061
|
+
/**
|
|
4062
|
+
* 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`.
|
|
4063
|
+
*/
|
|
4064
|
+
metadata?: MetadataParam;
|
|
4065
|
+
/**
|
|
4066
|
+
* The ID of the price object.
|
|
4067
|
+
*/
|
|
4068
|
+
price: string;
|
|
4069
|
+
/**
|
|
4070
|
+
* Quantity for this item.
|
|
4071
|
+
*/
|
|
4072
|
+
quantity?: number;
|
|
4073
|
+
/**
|
|
4074
|
+
* 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`.
|
|
4075
|
+
*/
|
|
4076
|
+
tax_rates?: Array<string>;
|
|
4077
|
+
/**
|
|
4078
|
+
* Options that configure the trial on the subscription item.
|
|
4079
|
+
*/
|
|
4080
|
+
trial?: Add.Trial;
|
|
4081
|
+
/**
|
|
4082
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
4083
|
+
*/
|
|
4084
|
+
trial_offer?: string;
|
|
4085
|
+
}
|
|
4086
|
+
interface Remove {
|
|
4087
|
+
/**
|
|
4088
|
+
* ID of a price to remove.
|
|
4089
|
+
*/
|
|
4090
|
+
price: string;
|
|
4091
|
+
}
|
|
4092
|
+
interface Set {
|
|
4093
|
+
/**
|
|
4094
|
+
* 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`.
|
|
4095
|
+
*/
|
|
4096
|
+
discounts?: Array<Set.Discount>;
|
|
4097
|
+
/**
|
|
4098
|
+
* 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`.
|
|
4099
|
+
*/
|
|
4100
|
+
metadata?: MetadataParam;
|
|
4101
|
+
/**
|
|
4102
|
+
* The ID of the price object.
|
|
4103
|
+
*/
|
|
4104
|
+
price: string;
|
|
4105
|
+
/**
|
|
4106
|
+
* 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`.
|
|
4107
|
+
*/
|
|
4108
|
+
quantity?: number;
|
|
4109
|
+
/**
|
|
4110
|
+
* 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`.
|
|
4111
|
+
*/
|
|
4112
|
+
tax_rates?: Array<string>;
|
|
4113
|
+
/**
|
|
4114
|
+
* 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`.
|
|
4115
|
+
*/
|
|
4116
|
+
trial?: Set.Trial;
|
|
4117
|
+
/**
|
|
4118
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
4119
|
+
*/
|
|
4120
|
+
trial_offer?: string;
|
|
4121
|
+
}
|
|
4122
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
4123
|
+
namespace Add {
|
|
4124
|
+
interface Discount {
|
|
4125
|
+
/**
|
|
4126
|
+
* ID of the coupon to create a new discount for.
|
|
4127
|
+
*/
|
|
4128
|
+
coupon?: string;
|
|
4129
|
+
/**
|
|
4130
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4131
|
+
*/
|
|
4132
|
+
discount?: string;
|
|
4133
|
+
/**
|
|
4134
|
+
* Details to determine how long the discount should be applied for.
|
|
4135
|
+
*/
|
|
4136
|
+
discount_end?: Discount.DiscountEnd;
|
|
4137
|
+
/**
|
|
4138
|
+
* ID of the promotion code to create a new discount for.
|
|
4139
|
+
*/
|
|
4140
|
+
promotion_code?: string;
|
|
4141
|
+
}
|
|
4142
|
+
interface Trial {
|
|
4143
|
+
/**
|
|
4144
|
+
* 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.
|
|
4145
|
+
*/
|
|
4146
|
+
converts_to?: Array<string>;
|
|
4147
|
+
/**
|
|
4148
|
+
* Determines the type of trial for this item.
|
|
4149
|
+
*/
|
|
4150
|
+
type: Trial.Type;
|
|
4151
|
+
}
|
|
4152
|
+
namespace Discount {
|
|
4153
|
+
interface DiscountEnd {
|
|
4154
|
+
/**
|
|
4155
|
+
* Time span for the redeemed discount.
|
|
4156
|
+
*/
|
|
4157
|
+
duration?: DiscountEnd.Duration;
|
|
4158
|
+
/**
|
|
4159
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4160
|
+
*/
|
|
4161
|
+
timestamp?: number;
|
|
4162
|
+
/**
|
|
4163
|
+
* The type of calculation made to determine when the discount ends.
|
|
4164
|
+
*/
|
|
4165
|
+
type: DiscountEnd.Type;
|
|
4166
|
+
}
|
|
4167
|
+
namespace DiscountEnd {
|
|
4168
|
+
interface Duration {
|
|
4169
|
+
/**
|
|
4170
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4171
|
+
*/
|
|
4172
|
+
interval: Duration.Interval;
|
|
4173
|
+
/**
|
|
4174
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4175
|
+
*/
|
|
4176
|
+
interval_count: number;
|
|
4177
|
+
}
|
|
4178
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4179
|
+
namespace Duration {
|
|
4180
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4181
|
+
}
|
|
4182
|
+
}
|
|
4183
|
+
}
|
|
4184
|
+
namespace Trial {
|
|
4185
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
4186
|
+
}
|
|
4187
|
+
}
|
|
4188
|
+
namespace Set {
|
|
4189
|
+
interface Discount {
|
|
4190
|
+
/**
|
|
4191
|
+
* ID of the coupon to create a new discount for.
|
|
4192
|
+
*/
|
|
4193
|
+
coupon?: string;
|
|
4194
|
+
/**
|
|
4195
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4196
|
+
*/
|
|
4197
|
+
discount?: string;
|
|
4198
|
+
/**
|
|
4199
|
+
* Details to determine how long the discount should be applied for.
|
|
4200
|
+
*/
|
|
4201
|
+
discount_end?: Discount.DiscountEnd;
|
|
4202
|
+
/**
|
|
4203
|
+
* ID of the promotion code to create a new discount for.
|
|
4204
|
+
*/
|
|
4205
|
+
promotion_code?: string;
|
|
4206
|
+
}
|
|
4207
|
+
interface Trial {
|
|
4208
|
+
/**
|
|
4209
|
+
* 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.
|
|
4210
|
+
*/
|
|
4211
|
+
converts_to?: Array<string>;
|
|
4212
|
+
/**
|
|
4213
|
+
* Determines the type of trial for this item.
|
|
4214
|
+
*/
|
|
4215
|
+
type: Trial.Type;
|
|
4216
|
+
}
|
|
4217
|
+
namespace Discount {
|
|
4218
|
+
interface DiscountEnd {
|
|
4219
|
+
/**
|
|
4220
|
+
* Time span for the redeemed discount.
|
|
4221
|
+
*/
|
|
4222
|
+
duration?: DiscountEnd.Duration;
|
|
4223
|
+
/**
|
|
4224
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4225
|
+
*/
|
|
4226
|
+
timestamp?: number;
|
|
4227
|
+
/**
|
|
4228
|
+
* The type of calculation made to determine when the discount ends.
|
|
4229
|
+
*/
|
|
4230
|
+
type: DiscountEnd.Type;
|
|
4231
|
+
}
|
|
4232
|
+
namespace DiscountEnd {
|
|
4233
|
+
interface Duration {
|
|
4234
|
+
/**
|
|
4235
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4236
|
+
*/
|
|
4237
|
+
interval: Duration.Interval;
|
|
4238
|
+
/**
|
|
4239
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4240
|
+
*/
|
|
4241
|
+
interval_count: number;
|
|
4242
|
+
}
|
|
4243
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4244
|
+
namespace Duration {
|
|
4245
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4246
|
+
}
|
|
4247
|
+
}
|
|
4248
|
+
}
|
|
4249
|
+
namespace Trial {
|
|
4250
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
4251
|
+
}
|
|
4252
|
+
}
|
|
4253
|
+
}
|
|
4254
|
+
namespace MetadataAction {
|
|
4255
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
4256
|
+
}
|
|
4257
|
+
namespace SetPauseCollection {
|
|
4258
|
+
interface Set {
|
|
4259
|
+
/**
|
|
4260
|
+
* The payment collection behavior for this subscription while paused.
|
|
4261
|
+
*/
|
|
4262
|
+
behavior: Set.Behavior;
|
|
4263
|
+
}
|
|
4264
|
+
type Type = 'remove' | 'set' | OtherString;
|
|
4265
|
+
namespace Set {
|
|
4266
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
4267
|
+
}
|
|
4268
|
+
}
|
|
4269
|
+
namespace TrialSettings {
|
|
4270
|
+
interface EndBehavior {
|
|
4271
|
+
/**
|
|
4272
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
4273
|
+
*/
|
|
4274
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
4275
|
+
}
|
|
4276
|
+
namespace EndBehavior {
|
|
4277
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
4278
|
+
}
|
|
4279
|
+
}
|
|
4280
|
+
}
|
|
3368
4281
|
namespace BillingMode {
|
|
3369
4282
|
interface Flexible {
|
|
3370
4283
|
/**
|
|
@@ -3579,6 +4492,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3579
4492
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3580
4493
|
*/
|
|
3581
4494
|
discount?: string;
|
|
4495
|
+
/**
|
|
4496
|
+
* Details to determine how long the discount should be applied for.
|
|
4497
|
+
*/
|
|
4498
|
+
discount_end?: Discount.DiscountEnd;
|
|
3582
4499
|
/**
|
|
3583
4500
|
* ID of the promotion code to create a new discount for.
|
|
3584
4501
|
*/
|
|
@@ -3641,6 +4558,20 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3641
4558
|
* 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.
|
|
3642
4559
|
*/
|
|
3643
4560
|
tax_rates?: Emptyable<Array<string>>;
|
|
4561
|
+
/**
|
|
4562
|
+
* Options that configure the trial on the subscription item.
|
|
4563
|
+
*/
|
|
4564
|
+
trial?: Item.Trial;
|
|
4565
|
+
/**
|
|
4566
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
4567
|
+
*/
|
|
4568
|
+
trial_offer?: string;
|
|
4569
|
+
}
|
|
4570
|
+
interface PauseCollection {
|
|
4571
|
+
/**
|
|
4572
|
+
* The payment collection behavior for this subscription while paused.
|
|
4573
|
+
*/
|
|
4574
|
+
behavior: PauseCollection.Behavior;
|
|
3644
4575
|
}
|
|
3645
4576
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
3646
4577
|
interface TransferData {
|
|
@@ -3653,6 +4584,13 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3653
4584
|
*/
|
|
3654
4585
|
destination: string;
|
|
3655
4586
|
}
|
|
4587
|
+
type TrialContinuation = 'continue' | 'none' | OtherString;
|
|
4588
|
+
interface TrialSettings {
|
|
4589
|
+
/**
|
|
4590
|
+
* Defines how the subscription should behave when a trial ends.
|
|
4591
|
+
*/
|
|
4592
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
4593
|
+
}
|
|
3656
4594
|
namespace AddInvoiceItem {
|
|
3657
4595
|
interface Discount {
|
|
3658
4596
|
/**
|
|
@@ -3663,6 +4601,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3663
4601
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3664
4602
|
*/
|
|
3665
4603
|
discount?: string;
|
|
4604
|
+
/**
|
|
4605
|
+
* Details to determine how long the discount should be applied for.
|
|
4606
|
+
*/
|
|
4607
|
+
discount_end?: Discount.DiscountEnd;
|
|
3666
4608
|
/**
|
|
3667
4609
|
* ID of the promotion code to create a new discount for.
|
|
3668
4610
|
*/
|
|
@@ -3700,6 +4642,38 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3700
4642
|
*/
|
|
3701
4643
|
unit_amount_decimal?: Decimal;
|
|
3702
4644
|
}
|
|
4645
|
+
namespace Discount {
|
|
4646
|
+
interface DiscountEnd {
|
|
4647
|
+
/**
|
|
4648
|
+
* Time span for the redeemed discount.
|
|
4649
|
+
*/
|
|
4650
|
+
duration?: DiscountEnd.Duration;
|
|
4651
|
+
/**
|
|
4652
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4653
|
+
*/
|
|
4654
|
+
timestamp?: number;
|
|
4655
|
+
/**
|
|
4656
|
+
* The type of calculation made to determine when the discount ends.
|
|
4657
|
+
*/
|
|
4658
|
+
type: DiscountEnd.Type;
|
|
4659
|
+
}
|
|
4660
|
+
namespace DiscountEnd {
|
|
4661
|
+
interface Duration {
|
|
4662
|
+
/**
|
|
4663
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4664
|
+
*/
|
|
4665
|
+
interval: Duration.Interval;
|
|
4666
|
+
/**
|
|
4667
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4668
|
+
*/
|
|
4669
|
+
interval_count: number;
|
|
4670
|
+
}
|
|
4671
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4672
|
+
namespace Duration {
|
|
4673
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4674
|
+
}
|
|
4675
|
+
}
|
|
4676
|
+
}
|
|
3703
4677
|
namespace Period {
|
|
3704
4678
|
interface End {
|
|
3705
4679
|
/**
|
|
@@ -3747,6 +4721,38 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3747
4721
|
type Type = 'account' | 'self' | OtherString;
|
|
3748
4722
|
}
|
|
3749
4723
|
}
|
|
4724
|
+
namespace Discount {
|
|
4725
|
+
interface DiscountEnd {
|
|
4726
|
+
/**
|
|
4727
|
+
* Time span for the redeemed discount.
|
|
4728
|
+
*/
|
|
4729
|
+
duration?: DiscountEnd.Duration;
|
|
4730
|
+
/**
|
|
4731
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4732
|
+
*/
|
|
4733
|
+
timestamp?: number;
|
|
4734
|
+
/**
|
|
4735
|
+
* The type of calculation made to determine when the discount ends.
|
|
4736
|
+
*/
|
|
4737
|
+
type: DiscountEnd.Type;
|
|
4738
|
+
}
|
|
4739
|
+
namespace DiscountEnd {
|
|
4740
|
+
interface Duration {
|
|
4741
|
+
/**
|
|
4742
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4743
|
+
*/
|
|
4744
|
+
interval: Duration.Interval;
|
|
4745
|
+
/**
|
|
4746
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4747
|
+
*/
|
|
4748
|
+
interval_count: number;
|
|
4749
|
+
}
|
|
4750
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4751
|
+
namespace Duration {
|
|
4752
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4753
|
+
}
|
|
4754
|
+
}
|
|
4755
|
+
}
|
|
3750
4756
|
namespace Duration {
|
|
3751
4757
|
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3752
4758
|
}
|
|
@@ -3781,6 +4787,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3781
4787
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3782
4788
|
*/
|
|
3783
4789
|
discount?: string;
|
|
4790
|
+
/**
|
|
4791
|
+
* Details to determine how long the discount should be applied for.
|
|
4792
|
+
*/
|
|
4793
|
+
discount_end?: Discount.DiscountEnd;
|
|
3784
4794
|
/**
|
|
3785
4795
|
* ID of the promotion code to create a new discount for.
|
|
3786
4796
|
*/
|
|
@@ -3812,6 +4822,48 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3812
4822
|
*/
|
|
3813
4823
|
unit_amount_decimal?: Decimal;
|
|
3814
4824
|
}
|
|
4825
|
+
interface Trial {
|
|
4826
|
+
/**
|
|
4827
|
+
* 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.
|
|
4828
|
+
*/
|
|
4829
|
+
converts_to?: Array<string>;
|
|
4830
|
+
/**
|
|
4831
|
+
* Determines the type of trial for this item.
|
|
4832
|
+
*/
|
|
4833
|
+
type: Trial.Type;
|
|
4834
|
+
}
|
|
4835
|
+
namespace Discount {
|
|
4836
|
+
interface DiscountEnd {
|
|
4837
|
+
/**
|
|
4838
|
+
* Time span for the redeemed discount.
|
|
4839
|
+
*/
|
|
4840
|
+
duration?: DiscountEnd.Duration;
|
|
4841
|
+
/**
|
|
4842
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4843
|
+
*/
|
|
4844
|
+
timestamp?: number;
|
|
4845
|
+
/**
|
|
4846
|
+
* The type of calculation made to determine when the discount ends.
|
|
4847
|
+
*/
|
|
4848
|
+
type: DiscountEnd.Type;
|
|
4849
|
+
}
|
|
4850
|
+
namespace DiscountEnd {
|
|
4851
|
+
interface Duration {
|
|
4852
|
+
/**
|
|
4853
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4854
|
+
*/
|
|
4855
|
+
interval: Duration.Interval;
|
|
4856
|
+
/**
|
|
4857
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4858
|
+
*/
|
|
4859
|
+
interval_count: number;
|
|
4860
|
+
}
|
|
4861
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4862
|
+
namespace Duration {
|
|
4863
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4864
|
+
}
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
3815
4867
|
namespace PriceData {
|
|
3816
4868
|
interface Recurring {
|
|
3817
4869
|
/**
|
|
@@ -3828,6 +4880,65 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3828
4880
|
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3829
4881
|
}
|
|
3830
4882
|
}
|
|
4883
|
+
namespace Trial {
|
|
4884
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
4885
|
+
}
|
|
4886
|
+
}
|
|
4887
|
+
namespace PauseCollection {
|
|
4888
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
4889
|
+
}
|
|
4890
|
+
namespace TrialSettings {
|
|
4891
|
+
interface EndBehavior {
|
|
4892
|
+
/**
|
|
4893
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
4894
|
+
*/
|
|
4895
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
4896
|
+
}
|
|
4897
|
+
namespace EndBehavior {
|
|
4898
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
4899
|
+
}
|
|
4900
|
+
}
|
|
4901
|
+
}
|
|
4902
|
+
namespace Prebilling {
|
|
4903
|
+
interface BillUntil {
|
|
4904
|
+
/**
|
|
4905
|
+
* End the prebilled period when a specified amendment ends.
|
|
4906
|
+
*/
|
|
4907
|
+
amendment_end?: BillUntil.AmendmentEnd;
|
|
4908
|
+
/**
|
|
4909
|
+
* Time span for prebilling, starting from `bill_from`.
|
|
4910
|
+
*/
|
|
4911
|
+
duration?: BillUntil.Duration;
|
|
4912
|
+
/**
|
|
4913
|
+
* End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
4914
|
+
*/
|
|
4915
|
+
timestamp?: number;
|
|
4916
|
+
/**
|
|
4917
|
+
* Select one of several ways to pass the `bill_until` value.
|
|
4918
|
+
*/
|
|
4919
|
+
type: BillUntil.Type;
|
|
4920
|
+
}
|
|
4921
|
+
namespace BillUntil {
|
|
4922
|
+
interface AmendmentEnd {
|
|
4923
|
+
/**
|
|
4924
|
+
* 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.
|
|
4925
|
+
*/
|
|
4926
|
+
index: number;
|
|
4927
|
+
}
|
|
4928
|
+
interface Duration {
|
|
4929
|
+
/**
|
|
4930
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4931
|
+
*/
|
|
4932
|
+
interval: Duration.Interval;
|
|
4933
|
+
/**
|
|
4934
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4935
|
+
*/
|
|
4936
|
+
interval_count: number;
|
|
4937
|
+
}
|
|
4938
|
+
type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp' | OtherString;
|
|
4939
|
+
namespace Duration {
|
|
4940
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4941
|
+
}
|
|
3831
4942
|
}
|
|
3832
4943
|
}
|
|
3833
4944
|
}
|
|
@@ -3931,6 +5042,12 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3931
5042
|
*/
|
|
3932
5043
|
type?: Pause.Type;
|
|
3933
5044
|
}
|
|
5045
|
+
interface Prebilling {
|
|
5046
|
+
/**
|
|
5047
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
5048
|
+
*/
|
|
5049
|
+
iterations: number;
|
|
5050
|
+
}
|
|
3934
5051
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
3935
5052
|
namespace BillingCycleAnchor {
|
|
3936
5053
|
type Type = 'now' | 'timestamp' | 'unchanged' | OtherString;
|
|
@@ -3997,6 +5114,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3997
5114
|
usage_gte: number;
|
|
3998
5115
|
}
|
|
3999
5116
|
interface CurrentTrial {
|
|
5117
|
+
/**
|
|
5118
|
+
* Unix timestamp representing the end of the trial offer period. Required when the trial offer has `duration.type=timestamp`. Cannot be specified when `duration.type=relative`.
|
|
5119
|
+
*/
|
|
5120
|
+
trial_end?: number;
|
|
4000
5121
|
/**
|
|
4001
5122
|
* The ID of the trial offer to apply to the subscription item.
|
|
4002
5123
|
*/
|
|
@@ -4011,6 +5132,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4011
5132
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4012
5133
|
*/
|
|
4013
5134
|
discount?: string;
|
|
5135
|
+
/**
|
|
5136
|
+
* Details to determine how long the discount should be applied for.
|
|
5137
|
+
*/
|
|
5138
|
+
discount_end?: Discount.DiscountEnd;
|
|
4014
5139
|
/**
|
|
4015
5140
|
* ID of the promotion code to create a new discount for.
|
|
4016
5141
|
*/
|
|
@@ -4042,6 +5167,38 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4042
5167
|
*/
|
|
4043
5168
|
unit_amount_decimal?: Decimal;
|
|
4044
5169
|
}
|
|
5170
|
+
namespace Discount {
|
|
5171
|
+
interface DiscountEnd {
|
|
5172
|
+
/**
|
|
5173
|
+
* Time span for the redeemed discount.
|
|
5174
|
+
*/
|
|
5175
|
+
duration?: DiscountEnd.Duration;
|
|
5176
|
+
/**
|
|
5177
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5178
|
+
*/
|
|
5179
|
+
timestamp?: number;
|
|
5180
|
+
/**
|
|
5181
|
+
* The type of calculation made to determine when the discount ends.
|
|
5182
|
+
*/
|
|
5183
|
+
type: DiscountEnd.Type;
|
|
5184
|
+
}
|
|
5185
|
+
namespace DiscountEnd {
|
|
5186
|
+
interface Duration {
|
|
5187
|
+
/**
|
|
5188
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5189
|
+
*/
|
|
5190
|
+
interval: Duration.Interval;
|
|
5191
|
+
/**
|
|
5192
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5193
|
+
*/
|
|
5194
|
+
interval_count: number;
|
|
5195
|
+
}
|
|
5196
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
5197
|
+
namespace Duration {
|
|
5198
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5199
|
+
}
|
|
5200
|
+
}
|
|
5201
|
+
}
|
|
4045
5202
|
namespace PriceData {
|
|
4046
5203
|
interface Recurring {
|
|
4047
5204
|
/**
|
|
@@ -4095,6 +5252,16 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4095
5252
|
}
|
|
4096
5253
|
}
|
|
4097
5254
|
}
|
|
5255
|
+
export interface InvoiceDetachPaymentParams {
|
|
5256
|
+
/**
|
|
5257
|
+
* Specifies which fields in the response should be expanded.
|
|
5258
|
+
*/
|
|
5259
|
+
expand?: Array<string>;
|
|
5260
|
+
/**
|
|
5261
|
+
* The ID of the PaymentIntent to detach from the invoice.
|
|
5262
|
+
*/
|
|
5263
|
+
payment_intent?: string;
|
|
5264
|
+
}
|
|
4098
5265
|
export interface InvoiceFinalizeInvoiceParams {
|
|
4099
5266
|
/**
|
|
4100
5267
|
* Controls whether Stripe performs [automatic collection](https://docs.stripe.com/invoicing/integration/automatic-advancement-collection) of the invoice. If `false`, the invoice's state doesn't automatically advance without an explicit action.
|
|
@@ -4242,6 +5409,10 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
4242
5409
|
* ID of an existing line item on the invoice.
|
|
4243
5410
|
*/
|
|
4244
5411
|
id: string;
|
|
5412
|
+
/**
|
|
5413
|
+
* The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
|
5414
|
+
*/
|
|
5415
|
+
margins?: Emptyable<Array<string>>;
|
|
4245
5416
|
/**
|
|
4246
5417
|
* 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`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
4247
5418
|
*/
|
|
@@ -4285,6 +5456,10 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
4285
5456
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4286
5457
|
*/
|
|
4287
5458
|
discount?: string;
|
|
5459
|
+
/**
|
|
5460
|
+
* Details to determine how long the discount should be applied for.
|
|
5461
|
+
*/
|
|
5462
|
+
discount_end?: Discount.DiscountEnd;
|
|
4288
5463
|
/**
|
|
4289
5464
|
* ID of the promotion code to create a new discount for.
|
|
4290
5465
|
*/
|
|
@@ -4352,6 +5527,38 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
4352
5527
|
*/
|
|
4353
5528
|
taxable_amount: number;
|
|
4354
5529
|
}
|
|
5530
|
+
namespace Discount {
|
|
5531
|
+
interface DiscountEnd {
|
|
5532
|
+
/**
|
|
5533
|
+
* Time span for the redeemed discount.
|
|
5534
|
+
*/
|
|
5535
|
+
duration?: DiscountEnd.Duration;
|
|
5536
|
+
/**
|
|
5537
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5538
|
+
*/
|
|
5539
|
+
timestamp?: number;
|
|
5540
|
+
/**
|
|
5541
|
+
* The type of calculation made to determine when the discount ends.
|
|
5542
|
+
*/
|
|
5543
|
+
type: DiscountEnd.Type;
|
|
5544
|
+
}
|
|
5545
|
+
namespace DiscountEnd {
|
|
5546
|
+
interface Duration {
|
|
5547
|
+
/**
|
|
5548
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5549
|
+
*/
|
|
5550
|
+
interval: Duration.Interval;
|
|
5551
|
+
/**
|
|
5552
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5553
|
+
*/
|
|
5554
|
+
interval_count: number;
|
|
5555
|
+
}
|
|
5556
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
5557
|
+
namespace Duration {
|
|
5558
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5559
|
+
}
|
|
5560
|
+
}
|
|
5561
|
+
}
|
|
4355
5562
|
namespace PriceData {
|
|
4356
5563
|
interface ProductData {
|
|
4357
5564
|
/**
|
|
@@ -4465,6 +5672,10 @@ export interface InvoiceUpdateLineItemParams {
|
|
|
4465
5672
|
* Specifies which fields in the response should be expanded.
|
|
4466
5673
|
*/
|
|
4467
5674
|
expand?: Array<string>;
|
|
5675
|
+
/**
|
|
5676
|
+
* The IDs of the margins to apply to the line item. When set, the `default_margins` on the invoice do not apply to this line item.
|
|
5677
|
+
*/
|
|
5678
|
+
margins?: Emptyable<Array<string>>;
|
|
4468
5679
|
/**
|
|
4469
5680
|
* 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`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](https://docs.stripe.com/api/invoices/line_item) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
4470
5681
|
*/
|
|
@@ -4508,6 +5719,10 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
4508
5719
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4509
5720
|
*/
|
|
4510
5721
|
discount?: string;
|
|
5722
|
+
/**
|
|
5723
|
+
* Details to determine how long the discount should be applied for.
|
|
5724
|
+
*/
|
|
5725
|
+
discount_end?: Discount.DiscountEnd;
|
|
4511
5726
|
/**
|
|
4512
5727
|
* ID of the promotion code to create a new discount for.
|
|
4513
5728
|
*/
|
|
@@ -4575,6 +5790,38 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
4575
5790
|
*/
|
|
4576
5791
|
taxable_amount: number;
|
|
4577
5792
|
}
|
|
5793
|
+
namespace Discount {
|
|
5794
|
+
interface DiscountEnd {
|
|
5795
|
+
/**
|
|
5796
|
+
* Time span for the redeemed discount.
|
|
5797
|
+
*/
|
|
5798
|
+
duration?: DiscountEnd.Duration;
|
|
5799
|
+
/**
|
|
5800
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5801
|
+
*/
|
|
5802
|
+
timestamp?: number;
|
|
5803
|
+
/**
|
|
5804
|
+
* The type of calculation made to determine when the discount ends.
|
|
5805
|
+
*/
|
|
5806
|
+
type: DiscountEnd.Type;
|
|
5807
|
+
}
|
|
5808
|
+
namespace DiscountEnd {
|
|
5809
|
+
interface Duration {
|
|
5810
|
+
/**
|
|
5811
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5812
|
+
*/
|
|
5813
|
+
interval: Duration.Interval;
|
|
5814
|
+
/**
|
|
5815
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5816
|
+
*/
|
|
5817
|
+
interval_count: number;
|
|
5818
|
+
}
|
|
5819
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
5820
|
+
namespace Duration {
|
|
5821
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5822
|
+
}
|
|
5823
|
+
}
|
|
5824
|
+
}
|
|
4578
5825
|
namespace PriceData {
|
|
4579
5826
|
interface ProductData {
|
|
4580
5827
|
/**
|