stripe 22.2.0 → 22.3.0-alpha.2
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 +2754 -12
- package/OPENAPI_VERSION +1 -1
- package/README.md +57 -65
- package/VERSION +1 -1
- package/cjs/Error.d.ts +53 -0
- package/cjs/Error.js +134 -1
- package/cjs/Error.js.map +1 -1
- package/cjs/RequestSender.d.ts +1 -1
- package/cjs/RequestSender.js +2 -2
- package/cjs/RequestSender.js.map +1 -1
- package/cjs/StripeEventNotificationHandler.d.ts +19 -0
- package/cjs/StripeEventNotificationHandler.js +471 -0
- package/cjs/StripeEventNotificationHandler.js.map +1 -0
- package/cjs/Types.d.ts +4 -2
- package/cjs/apiVersion.d.ts +1 -2
- package/cjs/apiVersion.js +2 -3
- package/cjs/apiVersion.js.map +1 -1
- package/cjs/resources/AccountLinks.d.ts +5 -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 +463 -0
- package/cjs/resources/AccountSessions.js.map +1 -1
- package/cjs/resources/AccountSignals.d.ts +110 -0
- package/cjs/resources/AccountSignals.js +4 -0
- package/cjs/resources/AccountSignals.js.map +1 -0
- package/cjs/resources/Accounts.d.ts +1020 -6
- package/cjs/resources/Accounts.js +47 -0
- package/cjs/resources/Accounts.js.map +1 -1
- package/cjs/resources/ApplicationFees.d.ts +28 -1
- package/cjs/resources/Balance.d.ts +134 -0
- package/cjs/resources/BalanceSettings.d.ts +18 -0
- package/cjs/resources/BalanceTransactions.d.ts +1 -1
- package/cjs/resources/BalanceTransfers.d.ts +160 -0
- package/cjs/resources/BalanceTransfers.js +15 -0
- package/cjs/resources/BalanceTransfers.js.map +1 -0
- package/cjs/resources/BankAccounts.d.ts +2 -2
- package/cjs/resources/Billing/AlertRecovereds.d.ts +40 -0
- package/cjs/resources/Billing/AlertRecovereds.js +4 -0
- package/cjs/resources/Billing/AlertRecovereds.js.map +1 -0
- package/cjs/resources/Billing/AlertTriggereds.d.ts +57 -1
- package/cjs/resources/Billing/Alerts.d.ts +408 -5
- package/cjs/resources/Billing/Alerts.js +321 -5
- package/cjs/resources/Billing/Alerts.js.map +1 -1
- package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +88 -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 +38 -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/CreditBalanceSummary.d.ts +126 -2
- package/cjs/resources/Billing/CreditBalanceSummary.js +39 -1
- package/cjs/resources/Billing/CreditBalanceSummary.js.map +1 -1
- package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +97 -3
- package/cjs/resources/Billing/CreditBalanceTransactions.js +100 -1
- package/cjs/resources/Billing/CreditBalanceTransactions.js.map +1 -1
- package/cjs/resources/Billing/CreditGrants.d.ts +85 -3
- package/cjs/resources/Billing/CreditGrants.js +134 -5
- package/cjs/resources/Billing/CreditGrants.js.map +1 -1
- package/cjs/resources/Billing/MeterEventSummaries.d.ts +6 -0
- package/cjs/resources/Billing/Meters.d.ts +31 -0
- package/cjs/resources/Billing/index.d.ts +6 -0
- package/cjs/resources/Billing/index.js +2 -0
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/Capabilities.d.ts +25 -2
- package/cjs/resources/Capital/FinancingOffers.d.ts +191 -0
- package/cjs/resources/Capital/FinancingOffers.js +30 -0
- package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
- package/cjs/resources/Capital/FinancingSummary.d.ts +98 -0
- package/cjs/resources/Capital/FinancingSummary.js +15 -0
- package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
- package/cjs/resources/Capital/FinancingTransactions.d.ts +143 -0
- package/cjs/resources/Capital/FinancingTransactions.js +24 -0
- package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
- package/cjs/resources/Capital/index.d.ts +25 -0
- package/cjs/resources/Capital/index.js +17 -0
- package/cjs/resources/Capital/index.js.map +1 -0
- package/cjs/resources/Cards.d.ts +15 -0
- package/cjs/resources/Charges.d.ts +3515 -70
- package/cjs/resources/Charges.js.map +1 -1
- package/cjs/resources/Checkout/Sessions.d.ts +792 -9
- package/cjs/resources/Checkout/Sessions.js +88 -0
- package/cjs/resources/Checkout/Sessions.js.map +1 -1
- package/cjs/resources/Checkout/index.d.ts +1 -0
- package/cjs/resources/ConfirmationTokens.d.ts +130 -1
- package/cjs/resources/ConfirmationTokens.js.map +1 -1
- package/cjs/resources/Coupons.d.ts +128 -2
- package/cjs/resources/Coupons.js +41 -0
- package/cjs/resources/Coupons.js.map +1 -1
- package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
- package/cjs/resources/CreditNotes.d.ts +7 -1
- package/cjs/resources/CreditNotes.js +13 -0
- package/cjs/resources/CreditNotes.js.map +1 -1
- package/cjs/resources/CustomerSessions.d.ts +74 -0
- package/cjs/resources/CustomerSessions.js +13 -0
- package/cjs/resources/CustomerSessions.js.map +1 -1
- package/cjs/resources/Customers.d.ts +85 -1
- package/cjs/resources/Customers.js +195 -0
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/DelegatedCheckout/OrderEvents.d.ts +130 -0
- package/cjs/resources/DelegatedCheckout/OrderEvents.js +4 -0
- package/cjs/resources/DelegatedCheckout/OrderEvents.js.map +1 -0
- package/cjs/resources/DelegatedCheckout/Orders.d.ts +161 -0
- package/cjs/resources/DelegatedCheckout/Orders.js +15 -0
- package/cjs/resources/DelegatedCheckout/Orders.js.map +1 -0
- package/cjs/resources/DelegatedCheckout/RequestedSessions.d.ts +1418 -0
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js +47 -0
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js.map +1 -0
- package/cjs/resources/DelegatedCheckout/index.d.ts +25 -0
- package/cjs/resources/DelegatedCheckout/index.js +15 -0
- package/cjs/resources/DelegatedCheckout/index.js.map +1 -0
- package/cjs/resources/Discounts.d.ts +19 -0
- package/cjs/resources/Disputes.d.ts +43 -0
- package/cjs/resources/Disputes.js +14 -0
- package/cjs/resources/Disputes.js.map +1 -1
- package/cjs/resources/Events.d.ts +573 -2
- package/cjs/resources/ExternalAccounts.d.ts +212 -1
- package/cjs/resources/ExternalAccounts.js +44 -0
- package/cjs/resources/ExternalAccounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/cjs/resources/FinancialConnections/Accounts.d.ts +74 -4
- package/cjs/resources/FinancialConnections/Accounts.js +8 -0
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +87 -0
- package/cjs/resources/FinancialConnections/Authorizations.js +15 -0
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -0
- package/cjs/resources/FinancialConnections/Institutions.d.ts +101 -0
- package/cjs/resources/FinancialConnections/Institutions.js +23 -0
- package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
- package/cjs/resources/FinancialConnections/Sessions.d.ts +155 -7
- package/cjs/resources/FinancialConnections/index.d.ts +21 -6
- package/cjs/resources/FinancialConnections/index.js +4 -0
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/FrMealVouchersOnboardings.d.ts +173 -0
- package/cjs/resources/FrMealVouchersOnboardings.js +42 -0
- package/cjs/resources/FrMealVouchersOnboardings.js.map +1 -0
- package/cjs/resources/FxQuotes.d.ts +212 -0
- package/cjs/resources/FxQuotes.js +29 -0
- package/cjs/resources/FxQuotes.js.map +1 -0
- package/cjs/resources/Identity/BlocklistEntries.d.ts +157 -0
- package/cjs/resources/Identity/BlocklistEntries.js +54 -0
- package/cjs/resources/Identity/BlocklistEntries.js.map +1 -0
- package/cjs/resources/Identity/VerificationReports.d.ts +33 -2
- package/cjs/resources/Identity/VerificationReports.js.map +1 -1
- package/cjs/resources/Identity/VerificationSessions.d.ts +11 -3
- package/cjs/resources/Identity/index.d.ts +18 -10
- package/cjs/resources/Identity/index.js +2 -0
- package/cjs/resources/Identity/index.js.map +1 -1
- package/cjs/resources/InvoiceItems.d.ts +203 -2
- package/cjs/resources/InvoiceItems.js +41 -0
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +174 -4
- package/cjs/resources/InvoiceRenderingTemplates.d.ts +12 -0
- package/cjs/resources/InvoiceRenderingTemplates.js +28 -0
- package/cjs/resources/InvoiceRenderingTemplates.js.map +1 -1
- package/cjs/resources/Invoices.d.ts +2063 -20
- package/cjs/resources/Invoices.js +221 -0
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +290 -0
- package/cjs/resources/Issuing/Cardholders.d.ts +5 -4
- package/cjs/resources/Issuing/Cards.d.ts +36 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +640 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +95 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/cjs/resources/Issuing/Disputes.d.ts +190 -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/Programs.d.ts +95 -0
- package/cjs/resources/Issuing/Programs.js +35 -0
- package/cjs/resources/Issuing/Programs.js.map +1 -0
- package/cjs/resources/Issuing/Settlements.d.ts +85 -0
- package/cjs/resources/Issuing/Settlements.js +4 -0
- package/cjs/resources/Issuing/Settlements.js.map +1 -0
- package/cjs/resources/Issuing/Tokens.d.ts +22 -0
- package/cjs/resources/Issuing/Transactions.d.ts +157 -0
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +55 -22
- package/cjs/resources/Issuing/index.js +8 -0
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +29 -2
- package/cjs/resources/Mandates.d.ts +33 -1
- package/cjs/resources/Mandates.js +8 -0
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/Margins.d.ts +115 -0
- package/cjs/resources/Margins.js +35 -0
- package/cjs/resources/Margins.js.map +1 -0
- package/cjs/resources/Orchestration/PaymentAttempts.d.ts +34 -0
- package/cjs/resources/Orchestration/PaymentAttempts.js +15 -0
- package/cjs/resources/Orchestration/PaymentAttempts.js.map +1 -0
- package/cjs/resources/Orchestration/index.d.ts +12 -0
- package/cjs/resources/Orchestration/index.js +13 -0
- package/cjs/resources/Orchestration/index.js.map +1 -0
- package/cjs/resources/Orders.d.ts +4761 -0
- package/cjs/resources/Orders.js +457 -0
- package/cjs/resources/Orders.js.map +1 -0
- package/cjs/resources/PaymentAttemptRecords.d.ts +453 -1
- package/cjs/resources/PaymentAttemptRecords.js +42 -0
- package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
- package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +17 -0
- package/cjs/resources/PaymentIntents.d.ts +16660 -3570
- package/cjs/resources/PaymentIntents.js +40 -0
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +74 -12
- package/cjs/resources/PaymentLocationCapabilities.d.ts +122 -0
- package/cjs/resources/PaymentLocationCapabilities.js +29 -0
- package/cjs/resources/PaymentLocationCapabilities.js.map +1 -0
- package/cjs/resources/PaymentLocations.d.ts +178 -0
- package/cjs/resources/PaymentLocations.js +41 -0
- package/cjs/resources/PaymentLocations.js.map +1 -0
- package/cjs/resources/PaymentMethodBalances.d.ts +46 -0
- package/cjs/resources/PaymentMethodBalances.js +4 -0
- package/cjs/resources/PaymentMethodBalances.js.map +1 -0
- package/cjs/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/cjs/resources/PaymentMethods.d.ts +262 -3
- package/cjs/resources/PaymentMethods.js +20 -0
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentRecords.d.ts +351 -21
- package/cjs/resources/PaymentRecords.js.map +1 -1
- package/cjs/resources/Persons.d.ts +25 -2
- package/cjs/resources/Plans.d.ts +16 -0
- package/cjs/resources/Prices.d.ts +76 -0
- package/cjs/resources/Prices.js +27 -0
- package/cjs/resources/Prices.js.map +1 -1
- package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +37 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/cjs/resources/Privacy/RedactionJobs.d.ts +229 -0
- package/cjs/resources/Privacy/RedactionJobs.js +73 -0
- package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
- package/cjs/resources/Privacy/index.d.ts +22 -0
- package/cjs/resources/Privacy/index.js +13 -0
- package/cjs/resources/Privacy/index.js.map +1 -0
- package/cjs/resources/ProductCatalog/TrialOffers.d.ts +127 -0
- package/cjs/resources/ProductCatalog/TrialOffers.js +15 -0
- package/cjs/resources/ProductCatalog/TrialOffers.js.map +1 -0
- package/cjs/resources/ProductCatalog/index.d.ts +12 -0
- package/cjs/resources/ProductCatalog/index.js +13 -0
- package/cjs/resources/ProductCatalog/index.js.map +1 -0
- package/cjs/resources/Products.d.ts +171 -0
- package/cjs/resources/Products.js +69 -0
- package/cjs/resources/Products.js.map +1 -1
- package/cjs/resources/Profiles.d.ts +26 -0
- package/cjs/resources/Profiles.js +4 -0
- package/cjs/resources/Profiles.js.map +1 -0
- package/cjs/resources/PromotionCodes.d.ts +12 -0
- package/cjs/resources/PromotionCodes.js +27 -0
- package/cjs/resources/PromotionCodes.js.map +1 -1
- package/cjs/resources/QuoteLines.d.ts +684 -0
- package/cjs/resources/QuoteLines.js +4 -0
- package/cjs/resources/QuoteLines.js.map +1 -0
- package/cjs/resources/QuotePreviewInvoices.d.ts +1173 -0
- package/cjs/resources/QuotePreviewInvoices.js +4 -0
- package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +901 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/cjs/resources/Quotes.d.ts +3548 -254
- package/cjs/resources/Quotes.js +1184 -16
- package/cjs/resources/Quotes.js.map +1 -1
- package/cjs/resources/Radar/AccountEvaluations.d.ts +270 -0
- package/cjs/resources/Radar/AccountEvaluations.js +27 -0
- package/cjs/resources/Radar/AccountEvaluations.js.map +1 -0
- package/cjs/resources/Radar/CustomerEvaluations.d.ts +214 -0
- package/cjs/resources/Radar/CustomerEvaluations.js +21 -0
- package/cjs/resources/Radar/CustomerEvaluations.js.map +1 -0
- package/cjs/resources/Radar/IssuingAuthorizationEvaluations.d.ts +435 -0
- package/cjs/resources/Radar/IssuingAuthorizationEvaluations.js +15 -0
- package/cjs/resources/Radar/IssuingAuthorizationEvaluations.js.map +1 -0
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +63 -1
- package/cjs/resources/Radar/ValueListItems.d.ts +8 -0
- package/cjs/resources/Radar/ValueListItems.js +13 -0
- package/cjs/resources/Radar/ValueListItems.js.map +1 -1
- package/cjs/resources/Radar/index.d.ts +34 -16
- package/cjs/resources/Radar/index.js +6 -0
- package/cjs/resources/Radar/index.js.map +1 -1
- package/cjs/resources/Refunds.d.ts +23 -0
- package/cjs/resources/Refunds.js +27 -0
- package/cjs/resources/Refunds.js.map +1 -1
- package/cjs/resources/Reserve/Holds.d.ts +53 -1
- package/cjs/resources/Reserve/Holds.js +19 -0
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +16 -0
- package/cjs/resources/Reserve/Plans.js +11 -0
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +41 -1
- package/cjs/resources/Reserve/Releases.js +19 -0
- package/cjs/resources/Reserve/Releases.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +14 -3
- package/cjs/resources/Reserve/index.js +10 -2
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/RiskSignals.d.ts +10 -0
- package/cjs/resources/RiskSignals.js +4 -0
- package/cjs/resources/RiskSignals.js.map +1 -0
- package/cjs/resources/SetupAttempts.d.ts +26 -1
- package/cjs/resources/SetupIntents.d.ts +561 -11
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +1137 -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 +322 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/index.d.ts +19 -0
- package/cjs/resources/SharedPayment/index.js +15 -0
- package/cjs/resources/SharedPayment/index.js.map +1 -0
- package/cjs/resources/Sources.d.ts +16 -1
- package/cjs/resources/SubscriptionItems.d.ts +265 -0
- package/cjs/resources/SubscriptionItems.js +41 -0
- package/cjs/resources/SubscriptionItems.js.map +1 -1
- package/cjs/resources/SubscriptionSchedules.d.ts +1949 -19
- package/cjs/resources/SubscriptionSchedules.js +61 -0
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +965 -12
- package/cjs/resources/Subscriptions.js +289 -0
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/CalculationLineItems.d.ts +6 -2
- package/cjs/resources/Tax/Calculations.d.ts +7 -3
- package/cjs/resources/Tax/Forms.d.ts +230 -0
- package/cjs/resources/Tax/Forms.js +32 -0
- package/cjs/resources/Tax/Forms.js.map +1 -0
- package/cjs/resources/Tax/Locations.d.ts +108 -0
- package/cjs/resources/Tax/Locations.js +33 -0
- package/cjs/resources/Tax/Locations.js.map +1 -0
- package/cjs/resources/Tax/Registrations.d.ts +171 -2
- package/cjs/resources/Tax/Registrations.js +27 -0
- package/cjs/resources/Tax/Registrations.js.map +1 -1
- package/cjs/resources/Tax/Settings.d.ts +8 -0
- package/cjs/resources/Tax/Settings.js +13 -0
- package/cjs/resources/Tax/Settings.js.map +1 -1
- package/cjs/resources/Tax/Transactions.d.ts +10 -2
- package/cjs/resources/Tax/Transactions.js +13 -0
- package/cjs/resources/Tax/Transactions.js.map +1 -1
- package/cjs/resources/Tax/index.d.ts +27 -13
- package/cjs/resources/Tax/index.js +4 -0
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/TaxCodes.d.ts +15 -0
- package/cjs/resources/TaxIds.d.ts +6 -0
- package/cjs/resources/TaxIds.js +13 -0
- package/cjs/resources/TaxIds.js.map +1 -1
- package/cjs/resources/TaxRates.d.ts +12 -0
- package/cjs/resources/TaxRates.js +27 -0
- package/cjs/resources/TaxRates.js.map +1 -1
- package/cjs/resources/Terminal/Configurations.d.ts +27 -0
- package/cjs/resources/Terminal/ReaderCollectedData.d.ts +52 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/cjs/resources/Terminal/Readers.d.ts +17 -1
- package/cjs/resources/Terminal/index.d.ts +5 -0
- package/cjs/resources/Terminal/index.js +2 -0
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.d.ts +81 -0
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.js.map +1 -0
- package/cjs/resources/TestHelpers/Capital/index.d.ts +8 -0
- package/cjs/resources/TestHelpers/Capital/index.js +13 -0
- package/cjs/resources/TestHelpers/Capital/index.js.map +1 -0
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +88 -1
- package/cjs/resources/TestHelpers/Issuing/Authorizations.d.ts +8 -0
- package/cjs/resources/TestHelpers/Issuing/Disputes.d.ts +104 -0
- package/cjs/resources/TestHelpers/Issuing/Disputes.js +33 -0
- package/cjs/resources/TestHelpers/Issuing/Disputes.js.map +1 -0
- package/cjs/resources/TestHelpers/Issuing/Transactions.d.ts +16 -0
- package/cjs/resources/TestHelpers/Issuing/index.d.ts +2 -0
- package/cjs/resources/TestHelpers/Issuing/index.js +2 -0
- package/cjs/resources/TestHelpers/Issuing/index.js.map +1 -1
- package/cjs/resources/TestHelpers/PaymentIntents.d.ts +36 -0
- package/cjs/resources/TestHelpers/PaymentIntents.js +15 -0
- package/cjs/resources/TestHelpers/PaymentIntents.js.map +1 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +75 -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 +14 -6
- package/cjs/resources/TestHelpers/index.js +12 -6
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/Tokens.d.ts +61 -0
- package/cjs/resources/Transfers.d.ts +12 -0
- package/cjs/resources/Transfers.js.map +1 -1
- package/cjs/resources/TransitBalances.d.ts +25 -0
- package/cjs/resources/TransitBalances.js +4 -0
- package/cjs/resources/TransitBalances.js.map +1 -0
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/cjs/resources/Treasury/OutboundPayments.d.ts +8 -0
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +75 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings.d.ts +284 -0
- package/cjs/resources/V2/Billing/BillSettings.js +41 -0
- package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/CadenceSpendModifiers.d.ts +88 -0
- package/cjs/resources/V2/Billing/CadenceSpendModifiers.js +4 -0
- package/cjs/resources/V2/Billing/CadenceSpendModifiers.js.map +1 -0
- package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.d.ts +37 -0
- package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.js +23 -0
- package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.js.map +1 -0
- package/cjs/resources/V2/Billing/Cadences.d.ts +1015 -0
- package/cjs/resources/V2/Billing/Cadences.js +264 -0
- package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +240 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/ContractLicensePricingQuantityChanges.d.ts +45 -0
- package/cjs/resources/V2/Billing/ContractLicensePricingQuantityChanges.js +4 -0
- package/cjs/resources/V2/Billing/ContractLicensePricingQuantityChanges.js.map +1 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.d.ts +23 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.js +17 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.js.map +1 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing.d.ts +8 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing.js +15 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing.js.map +1 -0
- package/cjs/resources/V2/Billing/Contracts.d.ts +2028 -0
- package/cjs/resources/V2/Billing/Contracts.js +376 -0
- package/cjs/resources/V2/Billing/Contracts.js.map +1 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.d.ts +125 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +35 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js.map +1 -0
- package/cjs/resources/V2/Billing/IntentActions.d.ts +607 -0
- package/cjs/resources/V2/Billing/IntentActions.js +4 -0
- package/cjs/resources/V2/Billing/IntentActions.js.map +1 -0
- package/cjs/resources/V2/Billing/Intents/Actions.d.ts +33 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +70 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js.map +1 -0
- package/cjs/resources/V2/Billing/Intents.d.ts +1257 -0
- package/cjs/resources/V2/Billing/Intents.js +87 -0
- package/cjs/resources/V2/Billing/Intents.js.map +1 -0
- package/cjs/resources/V2/Billing/LicenseFeeVersions.d.ts +82 -0
- package/cjs/resources/V2/Billing/LicenseFeeVersions.js +4 -0
- package/cjs/resources/V2/Billing/LicenseFeeVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +64 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/LicenseFees.d.ts +364 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +148 -0
- package/cjs/resources/V2/Billing/LicenseFees.js.map +1 -0
- package/cjs/resources/V2/Billing/LicensedItems.d.ts +174 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +35 -0
- package/cjs/resources/V2/Billing/LicensedItems.js.map +1 -0
- package/cjs/resources/V2/Billing/MeteredItems.d.ts +222 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +35 -0
- package/cjs/resources/V2/Billing/MeteredItems.js.map +1 -0
- package/cjs/resources/V2/Billing/OneTimeItems.d.ts +174 -0
- package/cjs/resources/V2/Billing/OneTimeItems.js +35 -0
- package/cjs/resources/V2/Billing/OneTimeItems.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlanComponents.d.ts +84 -0
- package/cjs/resources/V2/Billing/PricingPlanComponents.js +4 -0
- package/cjs/resources/V2/Billing/PricingPlanComponents.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.d.ts +624 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +296 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlanVersions.d.ts +30 -0
- package/cjs/resources/V2/Billing/PricingPlanVersions.js +4 -0
- package/cjs/resources/V2/Billing/PricingPlanVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.d.ts +142 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +41 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +23 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlans.d.ts +173 -0
- package/cjs/resources/V2/Billing/PricingPlans.js +43 -0
- package/cjs/resources/V2/Billing/PricingPlans.js.map +1 -0
- package/cjs/resources/V2/Billing/Profiles.d.ts +166 -0
- package/cjs/resources/V2/Billing/Profiles.js +35 -0
- package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.d.ts +45 -0
- package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js +4 -0
- package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardRates.d.ts +115 -0
- package/cjs/resources/V2/Billing/RateCardRates.js +4 -0
- package/cjs/resources/V2/Billing/RateCardRates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.d.ts +219 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +41 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardVersions.d.ts +22 -0
- package/cjs/resources/V2/Billing/RateCardVersions.js +4 -0
- package/cjs/resources/V2/Billing/RateCardVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.d.ts +79 -0
- package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js +35 -0
- package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.d.ts +145 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js +110 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js +23 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards.d.ts +340 -0
- package/cjs/resources/V2/Billing/RateCards.js +76 -0
- package/cjs/resources/V2/Billing/RateCards.js.map +1 -0
- package/cjs/resources/V2/Billing/ServiceActions.d.ts +514 -0
- package/cjs/resources/V2/Billing/ServiceActions.js +162 -0
- package/cjs/resources/V2/Billing/ServiceActions.js.map +1 -0
- package/cjs/resources/V2/Billing/index.d.ts +174 -6
- package/cjs/resources/V2/Billing/index.js +32 -0
- package/cjs/resources/V2/Billing/index.js.map +1 -1
- package/cjs/resources/V2/Core/AccountEvaluations.d.ts +160 -0
- package/cjs/resources/V2/Core/AccountEvaluations.js +15 -0
- package/cjs/resources/V2/Core/AccountEvaluations.js.map +1 -0
- package/cjs/resources/V2/Core/AccountLinks.d.ts +158 -6
- package/cjs/resources/V2/Core/AccountPersons.d.ts +1 -1
- package/cjs/resources/V2/Core/AccountTokens.d.ts +220 -2
- package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
- package/cjs/resources/V2/Core/Accounts/Persons.d.ts +2 -2
- package/cjs/resources/V2/Core/Accounts.d.ts +5570 -67
- package/cjs/resources/V2/Core/ApprovalRequests.d.ts +334 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js +46 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/cjs/resources/V2/Core/BatchJobs.d.ts +373 -0
- package/cjs/resources/V2/Core/BatchJobs.js +225 -0
- package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.d.ts +229 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +31 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js.map +1 -0
- package/cjs/resources/V2/Core/ConnectionSessions.d.ts +90 -0
- package/cjs/resources/V2/Core/ConnectionSessions.js +21 -0
- package/cjs/resources/V2/Core/ConnectionSessions.js.map +1 -0
- package/cjs/resources/V2/Core/Events.d.ts +7601 -232
- package/cjs/resources/V2/Core/FeeBatches.d.ts +172 -0
- package/cjs/resources/V2/Core/FeeBatches.js +23 -0
- package/cjs/resources/V2/Core/FeeBatches.js.map +1 -0
- package/cjs/resources/V2/Core/FeeEntries.d.ts +178 -0
- package/cjs/resources/V2/Core/FeeEntries.js +23 -0
- package/cjs/resources/V2/Core/FeeEntries.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +285 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +54 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +254 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +62 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/index.d.ts +28 -0
- package/cjs/resources/V2/Core/Vault/index.js +15 -0
- package/cjs/resources/V2/Core/Vault/index.js.map +1 -0
- package/cjs/resources/V2/Core/index.d.ts +63 -14
- package/cjs/resources/V2/Core/index.js +16 -0
- package/cjs/resources/V2/Core/index.js.map +1 -1
- package/cjs/resources/V2/Data/Analytics/MetricQuery.d.ts +73 -0
- package/cjs/resources/V2/Data/Analytics/MetricQuery.js +36 -0
- package/cjs/resources/V2/Data/Analytics/MetricQuery.js.map +1 -0
- package/cjs/resources/V2/Data/Analytics/MetricQueryResults.d.ts +82 -0
- package/cjs/resources/V2/Data/Analytics/MetricQueryResults.js +4 -0
- package/cjs/resources/V2/Data/Analytics/MetricQueryResults.js.map +1 -0
- package/cjs/resources/V2/Data/Analytics/index.d.ts +12 -0
- package/cjs/resources/V2/Data/Analytics/index.js +13 -0
- package/cjs/resources/V2/Data/Analytics/index.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +177 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
- package/cjs/resources/V2/Data/index.d.ts +13 -0
- package/cjs/resources/V2/Data/index.js +15 -0
- package/cjs/resources/V2/Data/index.js.map +1 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/cjs/resources/V2/Extend/Workflows.d.ts +123 -0
- package/cjs/resources/V2/Extend/Workflows.js +30 -0
- package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +20 -0
- package/cjs/resources/V2/Extend/index.js +15 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -0
- package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +14 -0
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js +4 -0
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +4 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +214 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js +23 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/cjs/resources/V2/Iam/ApiKeys.d.ts +280 -0
- package/cjs/resources/V2/Iam/ApiKeys.js +47 -0
- package/cjs/resources/V2/Iam/ApiKeys.js.map +1 -0
- package/cjs/resources/V2/Iam/index.d.ts +23 -0
- package/cjs/resources/V2/Iam/index.js +15 -0
- package/cjs/resources/V2/Iam/index.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +139 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +23 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.d.ts +135 -0
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js +31 -0
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/DebitDisputes.d.ts +171 -0
- package/cjs/resources/V2/MoneyManagement/DebitDisputes.js +29 -0
- package/cjs/resources/V2/MoneyManagement/DebitDisputes.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountStatements.d.ts +103 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountStatements.js +4 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountStatements.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts/Statements.d.ts +44 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts/Statements.js +53 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts/Statements.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +417 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +50 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +308 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +31 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +254 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +30 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +222 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +22 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +524 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +41 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +321 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +49 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +342 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +39 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +270 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +44 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +96 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +17 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +458 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +23 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +251 -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 +120 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +27 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +249 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +23 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +280 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +23 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/index.d.ts +128 -0
- package/cjs/resources/V2/MoneyManagement/index.js +45 -0
- package/cjs/resources/V2/MoneyManagement/index.js.map +1 -0
- package/cjs/resources/V2/Network/BusinessProfiles.d.ts +96 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/cjs/resources/V2/Network/index.d.ts +13 -0
- package/cjs/resources/V2/Network/index.js +13 -0
- package/cjs/resources/V2/Network/index.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.d.ts +827 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js +53 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js.map +1 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.d.ts +77 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.js +4 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.js.map +1 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.d.ts +85 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js +35 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js.map +1 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.d.ts +213 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.js +53 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.js.map +1 -0
- package/cjs/resources/V2/Payments/index.d.ts +31 -0
- package/cjs/resources/V2/Payments/index.js +15 -0
- package/cjs/resources/V2/Payments/index.js.map +1 -0
- package/cjs/resources/V2/Reporting/ReportRuns.d.ts +194 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js +50 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js.map +1 -0
- package/cjs/resources/V2/Reporting/Reports.d.ts +110 -0
- package/cjs/resources/V2/Reporting/Reports.js +17 -0
- package/cjs/resources/V2/Reporting/Reports.js.map +1 -0
- package/cjs/resources/V2/Reporting/index.d.ts +18 -0
- package/cjs/resources/V2/Reporting/index.js +15 -0
- package/cjs/resources/V2/Reporting/index.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountSignals.d.ts +176 -0
- package/cjs/resources/V2/Signals/AccountSignals.js +58 -0
- package/cjs/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/cjs/resources/V2/Signals/index.d.ts +13 -0
- package/cjs/resources/V2/Signals/index.js +13 -0
- package/cjs/resources/V2/Signals/index.js.map +1 -0
- package/cjs/resources/V2/Tax/ManualRules.d.ts +335 -0
- package/cjs/resources/V2/Tax/ManualRules.js +193 -0
- package/cjs/resources/V2/Tax/ManualRules.js.map +1 -0
- package/cjs/resources/V2/Tax/index.d.ts +16 -0
- package/cjs/resources/V2/Tax/index.js +13 -0
- package/cjs/resources/V2/Tax/index.js.map +1 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +44 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +23 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.d.ts +31 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +15 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js.map +1 -0
- package/cjs/resources/V2/TestHelpers/index.d.ts +10 -0
- package/cjs/resources/V2/TestHelpers/index.js +15 -0
- package/cjs/resources/V2/TestHelpers/index.js.map +1 -0
- package/cjs/resources/V2/index.d.ts +39 -0
- package/cjs/resources/V2/index.js +22 -0
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/resources/WebhookEndpoints.d.ts +2 -2
- package/cjs/resources.d.ts +16 -0
- package/cjs/resources.js +256 -14
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.core.d.ts +115 -50
- package/cjs/stripe.core.js +67 -31
- package/cjs/stripe.core.js.map +1 -1
- package/cjs/utils.d.ts +1 -1
- package/cjs/utils.js +13 -2
- package/cjs/utils.js.map +1 -1
- package/esm/Error.d.ts +53 -0
- package/esm/Error.js +117 -0
- package/esm/Error.js.map +1 -1
- package/esm/RequestSender.d.ts +1 -1
- package/esm/RequestSender.js +2 -2
- package/esm/RequestSender.js.map +1 -1
- package/esm/StripeEventNotificationHandler.d.ts +19 -0
- package/esm/StripeEventNotificationHandler.js +467 -0
- package/esm/StripeEventNotificationHandler.js.map +1 -0
- package/esm/Types.d.ts +4 -2
- package/esm/apiVersion.d.ts +1 -2
- package/esm/apiVersion.js +1 -2
- package/esm/apiVersion.js.map +1 -1
- package/esm/resources/AccountLinks.d.ts +5 -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 +463 -0
- package/esm/resources/AccountSessions.js.map +1 -1
- package/esm/resources/AccountSignals.d.ts +110 -0
- package/esm/resources/AccountSignals.js +3 -0
- package/esm/resources/AccountSignals.js.map +1 -0
- package/esm/resources/Accounts.d.ts +1020 -6
- package/esm/resources/Accounts.js +47 -0
- package/esm/resources/Accounts.js.map +1 -1
- package/esm/resources/ApplicationFees.d.ts +28 -1
- package/esm/resources/Balance.d.ts +134 -0
- package/esm/resources/BalanceSettings.d.ts +18 -0
- package/esm/resources/BalanceTransactions.d.ts +1 -1
- package/esm/resources/BalanceTransfers.d.ts +160 -0
- package/esm/resources/BalanceTransfers.js +11 -0
- package/esm/resources/BalanceTransfers.js.map +1 -0
- package/esm/resources/BankAccounts.d.ts +2 -2
- package/esm/resources/Billing/AlertRecovereds.d.ts +40 -0
- package/esm/resources/Billing/AlertRecovereds.js +3 -0
- package/esm/resources/Billing/AlertRecovereds.js.map +1 -0
- package/esm/resources/Billing/AlertTriggereds.d.ts +57 -1
- package/esm/resources/Billing/Alerts.d.ts +408 -5
- package/esm/resources/Billing/Alerts.js +321 -5
- package/esm/resources/Billing/Alerts.js.map +1 -1
- package/esm/resources/Billing/Analytics/MeterUsage.d.ts +88 -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 +38 -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/CreditBalanceSummary.d.ts +126 -2
- package/esm/resources/Billing/CreditBalanceSummary.js +39 -1
- package/esm/resources/Billing/CreditBalanceSummary.js.map +1 -1
- package/esm/resources/Billing/CreditBalanceTransactions.d.ts +97 -3
- package/esm/resources/Billing/CreditBalanceTransactions.js +100 -1
- package/esm/resources/Billing/CreditBalanceTransactions.js.map +1 -1
- package/esm/resources/Billing/CreditGrants.d.ts +85 -3
- package/esm/resources/Billing/CreditGrants.js +134 -5
- package/esm/resources/Billing/CreditGrants.js.map +1 -1
- package/esm/resources/Billing/MeterEventSummaries.d.ts +6 -0
- package/esm/resources/Billing/Meters.d.ts +31 -0
- package/esm/resources/Billing/index.d.ts +6 -0
- package/esm/resources/Billing/index.js +2 -0
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/Capabilities.d.ts +25 -2
- package/esm/resources/Capital/FinancingOffers.d.ts +191 -0
- package/esm/resources/Capital/FinancingOffers.js +26 -0
- package/esm/resources/Capital/FinancingOffers.js.map +1 -0
- package/esm/resources/Capital/FinancingSummary.d.ts +98 -0
- package/esm/resources/Capital/FinancingSummary.js +11 -0
- package/esm/resources/Capital/FinancingSummary.js.map +1 -0
- package/esm/resources/Capital/FinancingTransactions.d.ts +143 -0
- package/esm/resources/Capital/FinancingTransactions.js +20 -0
- package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
- package/esm/resources/Capital/index.d.ts +25 -0
- package/esm/resources/Capital/index.js +13 -0
- package/esm/resources/Capital/index.js.map +1 -0
- package/esm/resources/Cards.d.ts +15 -0
- package/esm/resources/Charges.d.ts +3515 -70
- package/esm/resources/Charges.js.map +1 -1
- package/esm/resources/Checkout/Sessions.d.ts +792 -9
- package/esm/resources/Checkout/Sessions.js +88 -0
- package/esm/resources/Checkout/Sessions.js.map +1 -1
- package/esm/resources/Checkout/index.d.ts +1 -0
- package/esm/resources/ConfirmationTokens.d.ts +130 -1
- package/esm/resources/ConfirmationTokens.js.map +1 -1
- package/esm/resources/Coupons.d.ts +128 -2
- package/esm/resources/Coupons.js +41 -0
- package/esm/resources/Coupons.js.map +1 -1
- package/esm/resources/CreditNoteLineItems.d.ts +15 -1
- package/esm/resources/CreditNotes.d.ts +7 -1
- package/esm/resources/CreditNotes.js +13 -0
- package/esm/resources/CreditNotes.js.map +1 -1
- package/esm/resources/CustomerSessions.d.ts +74 -0
- package/esm/resources/CustomerSessions.js +13 -0
- package/esm/resources/CustomerSessions.js.map +1 -1
- package/esm/resources/Customers.d.ts +85 -1
- package/esm/resources/Customers.js +195 -0
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/DelegatedCheckout/OrderEvents.d.ts +130 -0
- package/esm/resources/DelegatedCheckout/OrderEvents.js +3 -0
- package/esm/resources/DelegatedCheckout/OrderEvents.js.map +1 -0
- package/esm/resources/DelegatedCheckout/Orders.d.ts +161 -0
- package/esm/resources/DelegatedCheckout/Orders.js +11 -0
- package/esm/resources/DelegatedCheckout/Orders.js.map +1 -0
- package/esm/resources/DelegatedCheckout/RequestedSessions.d.ts +1418 -0
- package/esm/resources/DelegatedCheckout/RequestedSessions.js +43 -0
- package/esm/resources/DelegatedCheckout/RequestedSessions.js.map +1 -0
- package/esm/resources/DelegatedCheckout/index.d.ts +25 -0
- package/esm/resources/DelegatedCheckout/index.js +11 -0
- package/esm/resources/DelegatedCheckout/index.js.map +1 -0
- package/esm/resources/Discounts.d.ts +19 -0
- package/esm/resources/Disputes.d.ts +43 -0
- package/esm/resources/Disputes.js +14 -0
- package/esm/resources/Disputes.js.map +1 -1
- package/esm/resources/Events.d.ts +573 -2
- package/esm/resources/ExternalAccounts.d.ts +212 -1
- package/esm/resources/ExternalAccounts.js +42 -1
- package/esm/resources/ExternalAccounts.js.map +1 -1
- package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/esm/resources/FinancialConnections/Accounts.d.ts +74 -4
- package/esm/resources/FinancialConnections/Accounts.js +8 -0
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +87 -0
- package/esm/resources/FinancialConnections/Authorizations.js +11 -0
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -0
- package/esm/resources/FinancialConnections/Institutions.d.ts +101 -0
- package/esm/resources/FinancialConnections/Institutions.js +19 -0
- package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
- package/esm/resources/FinancialConnections/Sessions.d.ts +155 -7
- package/esm/resources/FinancialConnections/index.d.ts +21 -6
- package/esm/resources/FinancialConnections/index.js +4 -0
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/FrMealVouchersOnboardings.d.ts +173 -0
- package/esm/resources/FrMealVouchersOnboardings.js +38 -0
- package/esm/resources/FrMealVouchersOnboardings.js.map +1 -0
- package/esm/resources/FxQuotes.d.ts +212 -0
- package/esm/resources/FxQuotes.js +25 -0
- package/esm/resources/FxQuotes.js.map +1 -0
- package/esm/resources/Identity/BlocklistEntries.d.ts +157 -0
- package/esm/resources/Identity/BlocklistEntries.js +50 -0
- package/esm/resources/Identity/BlocklistEntries.js.map +1 -0
- package/esm/resources/Identity/VerificationReports.d.ts +33 -2
- package/esm/resources/Identity/VerificationReports.js.map +1 -1
- package/esm/resources/Identity/VerificationSessions.d.ts +11 -3
- package/esm/resources/Identity/index.d.ts +18 -10
- package/esm/resources/Identity/index.js +2 -0
- package/esm/resources/Identity/index.js.map +1 -1
- package/esm/resources/InvoiceItems.d.ts +203 -2
- package/esm/resources/InvoiceItems.js +41 -0
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +174 -4
- package/esm/resources/InvoiceRenderingTemplates.d.ts +12 -0
- package/esm/resources/InvoiceRenderingTemplates.js +28 -0
- package/esm/resources/InvoiceRenderingTemplates.js.map +1 -1
- package/esm/resources/Invoices.d.ts +2063 -20
- package/esm/resources/Invoices.js +221 -0
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +290 -0
- package/esm/resources/Issuing/Cardholders.d.ts +5 -4
- package/esm/resources/Issuing/Cards.d.ts +36 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +640 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +95 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/esm/resources/Issuing/Disputes.d.ts +190 -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/Programs.d.ts +95 -0
- package/esm/resources/Issuing/Programs.js +31 -0
- package/esm/resources/Issuing/Programs.js.map +1 -0
- package/esm/resources/Issuing/Settlements.d.ts +85 -0
- package/esm/resources/Issuing/Settlements.js +3 -0
- package/esm/resources/Issuing/Settlements.js.map +1 -0
- package/esm/resources/Issuing/Tokens.d.ts +22 -0
- package/esm/resources/Issuing/Transactions.d.ts +157 -0
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +55 -22
- package/esm/resources/Issuing/index.js +8 -0
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +29 -2
- package/esm/resources/Mandates.d.ts +33 -1
- package/esm/resources/Mandates.js +8 -0
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/Margins.d.ts +115 -0
- package/esm/resources/Margins.js +31 -0
- package/esm/resources/Margins.js.map +1 -0
- package/esm/resources/Orchestration/PaymentAttempts.d.ts +34 -0
- package/esm/resources/Orchestration/PaymentAttempts.js +11 -0
- package/esm/resources/Orchestration/PaymentAttempts.js.map +1 -0
- package/esm/resources/Orchestration/index.d.ts +12 -0
- package/esm/resources/Orchestration/index.js +9 -0
- package/esm/resources/Orchestration/index.js.map +1 -0
- package/esm/resources/Orders.d.ts +4761 -0
- package/esm/resources/Orders.js +453 -0
- package/esm/resources/Orders.js.map +1 -0
- package/esm/resources/PaymentAttemptRecords.d.ts +453 -1
- package/esm/resources/PaymentAttemptRecords.js +42 -0
- package/esm/resources/PaymentAttemptRecords.js.map +1 -1
- package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +17 -0
- package/esm/resources/PaymentIntents.d.ts +16660 -3570
- package/esm/resources/PaymentIntents.js +40 -0
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +74 -12
- package/esm/resources/PaymentLocationCapabilities.d.ts +122 -0
- package/esm/resources/PaymentLocationCapabilities.js +25 -0
- package/esm/resources/PaymentLocationCapabilities.js.map +1 -0
- package/esm/resources/PaymentLocations.d.ts +178 -0
- package/esm/resources/PaymentLocations.js +37 -0
- package/esm/resources/PaymentLocations.js.map +1 -0
- package/esm/resources/PaymentMethodBalances.d.ts +46 -0
- package/esm/resources/PaymentMethodBalances.js +3 -0
- package/esm/resources/PaymentMethodBalances.js.map +1 -0
- package/esm/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/esm/resources/PaymentMethods.d.ts +262 -3
- package/esm/resources/PaymentMethods.js +20 -0
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentRecords.d.ts +351 -21
- package/esm/resources/PaymentRecords.js.map +1 -1
- package/esm/resources/Persons.d.ts +25 -2
- package/esm/resources/Plans.d.ts +16 -0
- package/esm/resources/Prices.d.ts +76 -0
- package/esm/resources/Prices.js +27 -0
- package/esm/resources/Prices.js.map +1 -1
- package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +37 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/esm/resources/Privacy/RedactionJobs.d.ts +229 -0
- package/esm/resources/Privacy/RedactionJobs.js +69 -0
- package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
- package/esm/resources/Privacy/index.d.ts +22 -0
- package/esm/resources/Privacy/index.js +9 -0
- package/esm/resources/Privacy/index.js.map +1 -0
- package/esm/resources/ProductCatalog/TrialOffers.d.ts +127 -0
- package/esm/resources/ProductCatalog/TrialOffers.js +11 -0
- package/esm/resources/ProductCatalog/TrialOffers.js.map +1 -0
- package/esm/resources/ProductCatalog/index.d.ts +12 -0
- package/esm/resources/ProductCatalog/index.js +9 -0
- package/esm/resources/ProductCatalog/index.js.map +1 -0
- package/esm/resources/Products.d.ts +171 -0
- package/esm/resources/Products.js +69 -0
- package/esm/resources/Products.js.map +1 -1
- package/esm/resources/Profiles.d.ts +26 -0
- package/esm/resources/Profiles.js +3 -0
- package/esm/resources/Profiles.js.map +1 -0
- package/esm/resources/PromotionCodes.d.ts +12 -0
- package/esm/resources/PromotionCodes.js +27 -0
- package/esm/resources/PromotionCodes.js.map +1 -1
- package/esm/resources/QuoteLines.d.ts +684 -0
- package/esm/resources/QuoteLines.js +3 -0
- package/esm/resources/QuoteLines.js.map +1 -0
- package/esm/resources/QuotePreviewInvoices.d.ts +1173 -0
- package/esm/resources/QuotePreviewInvoices.js +3 -0
- package/esm/resources/QuotePreviewInvoices.js.map +1 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +901 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/esm/resources/Quotes.d.ts +3548 -254
- package/esm/resources/Quotes.js +1184 -16
- package/esm/resources/Quotes.js.map +1 -1
- package/esm/resources/Radar/AccountEvaluations.d.ts +270 -0
- package/esm/resources/Radar/AccountEvaluations.js +23 -0
- package/esm/resources/Radar/AccountEvaluations.js.map +1 -0
- package/esm/resources/Radar/CustomerEvaluations.d.ts +214 -0
- package/esm/resources/Radar/CustomerEvaluations.js +17 -0
- package/esm/resources/Radar/CustomerEvaluations.js.map +1 -0
- package/esm/resources/Radar/IssuingAuthorizationEvaluations.d.ts +435 -0
- package/esm/resources/Radar/IssuingAuthorizationEvaluations.js +11 -0
- package/esm/resources/Radar/IssuingAuthorizationEvaluations.js.map +1 -0
- package/esm/resources/Radar/PaymentEvaluations.d.ts +63 -1
- package/esm/resources/Radar/ValueListItems.d.ts +8 -0
- package/esm/resources/Radar/ValueListItems.js +13 -0
- package/esm/resources/Radar/ValueListItems.js.map +1 -1
- package/esm/resources/Radar/index.d.ts +34 -16
- package/esm/resources/Radar/index.js +6 -0
- package/esm/resources/Radar/index.js.map +1 -1
- package/esm/resources/Refunds.d.ts +23 -0
- package/esm/resources/Refunds.js +27 -0
- package/esm/resources/Refunds.js.map +1 -1
- package/esm/resources/Reserve/Holds.d.ts +53 -1
- package/esm/resources/Reserve/Holds.js +17 -1
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +16 -0
- package/esm/resources/Reserve/Plans.js +9 -1
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +41 -1
- package/esm/resources/Reserve/Releases.js +17 -1
- package/esm/resources/Reserve/Releases.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +14 -3
- package/esm/resources/Reserve/index.js +10 -2
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/RiskSignals.d.ts +10 -0
- package/esm/resources/RiskSignals.js +3 -0
- package/esm/resources/RiskSignals.js.map +1 -0
- package/esm/resources/SetupAttempts.d.ts +26 -1
- package/esm/resources/SetupIntents.d.ts +561 -11
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +1137 -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 +322 -0
- package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
- package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/index.d.ts +19 -0
- package/esm/resources/SharedPayment/index.js +11 -0
- package/esm/resources/SharedPayment/index.js.map +1 -0
- package/esm/resources/Sources.d.ts +16 -1
- package/esm/resources/SubscriptionItems.d.ts +265 -0
- package/esm/resources/SubscriptionItems.js +41 -0
- package/esm/resources/SubscriptionItems.js.map +1 -1
- package/esm/resources/SubscriptionSchedules.d.ts +1949 -19
- package/esm/resources/SubscriptionSchedules.js +61 -0
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +965 -12
- package/esm/resources/Subscriptions.js +289 -0
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/CalculationLineItems.d.ts +6 -2
- package/esm/resources/Tax/Calculations.d.ts +7 -3
- package/esm/resources/Tax/Forms.d.ts +230 -0
- package/esm/resources/Tax/Forms.js +28 -0
- package/esm/resources/Tax/Forms.js.map +1 -0
- package/esm/resources/Tax/Locations.d.ts +108 -0
- package/esm/resources/Tax/Locations.js +29 -0
- package/esm/resources/Tax/Locations.js.map +1 -0
- package/esm/resources/Tax/Registrations.d.ts +171 -2
- package/esm/resources/Tax/Registrations.js +27 -0
- package/esm/resources/Tax/Registrations.js.map +1 -1
- package/esm/resources/Tax/Settings.d.ts +8 -0
- package/esm/resources/Tax/Settings.js +13 -0
- package/esm/resources/Tax/Settings.js.map +1 -1
- package/esm/resources/Tax/Transactions.d.ts +10 -2
- package/esm/resources/Tax/Transactions.js +13 -0
- package/esm/resources/Tax/Transactions.js.map +1 -1
- package/esm/resources/Tax/index.d.ts +27 -13
- package/esm/resources/Tax/index.js +4 -0
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/TaxCodes.d.ts +15 -0
- package/esm/resources/TaxIds.d.ts +6 -0
- package/esm/resources/TaxIds.js +13 -0
- package/esm/resources/TaxIds.js.map +1 -1
- package/esm/resources/TaxRates.d.ts +12 -0
- package/esm/resources/TaxRates.js +27 -0
- package/esm/resources/TaxRates.js.map +1 -1
- package/esm/resources/Terminal/Configurations.d.ts +27 -0
- package/esm/resources/Terminal/ReaderCollectedData.d.ts +52 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
- package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/esm/resources/Terminal/Readers.d.ts +17 -1
- package/esm/resources/Terminal/index.d.ts +5 -0
- package/esm/resources/Terminal/index.js +2 -0
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/Capital/FinancingOffers.d.ts +81 -0
- package/esm/resources/TestHelpers/Capital/FinancingOffers.js +17 -0
- package/esm/resources/TestHelpers/Capital/FinancingOffers.js.map +1 -0
- package/esm/resources/TestHelpers/Capital/index.d.ts +8 -0
- package/esm/resources/TestHelpers/Capital/index.js +9 -0
- package/esm/resources/TestHelpers/Capital/index.js.map +1 -0
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +88 -1
- package/esm/resources/TestHelpers/Issuing/Authorizations.d.ts +8 -0
- package/esm/resources/TestHelpers/Issuing/Disputes.d.ts +104 -0
- package/esm/resources/TestHelpers/Issuing/Disputes.js +29 -0
- package/esm/resources/TestHelpers/Issuing/Disputes.js.map +1 -0
- package/esm/resources/TestHelpers/Issuing/Transactions.d.ts +16 -0
- package/esm/resources/TestHelpers/Issuing/index.d.ts +2 -0
- package/esm/resources/TestHelpers/Issuing/index.js +2 -0
- package/esm/resources/TestHelpers/Issuing/index.js.map +1 -1
- package/esm/resources/TestHelpers/PaymentIntents.d.ts +36 -0
- package/esm/resources/TestHelpers/PaymentIntents.js +11 -0
- package/esm/resources/TestHelpers/PaymentIntents.js.map +1 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +75 -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 +14 -6
- package/esm/resources/TestHelpers/index.js +6 -0
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/Tokens.d.ts +61 -0
- package/esm/resources/Transfers.d.ts +12 -0
- package/esm/resources/Transfers.js.map +1 -1
- package/esm/resources/TransitBalances.d.ts +25 -0
- package/esm/resources/TransitBalances.js +3 -0
- package/esm/resources/TransitBalances.js.map +1 -0
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/esm/resources/Treasury/OutboundPayments.d.ts +8 -0
- package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/esm/resources/V2/Billing/BillSettingVersions.d.ts +75 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings.d.ts +284 -0
- package/esm/resources/V2/Billing/BillSettings.js +37 -0
- package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
- package/esm/resources/V2/Billing/CadenceSpendModifiers.d.ts +88 -0
- package/esm/resources/V2/Billing/CadenceSpendModifiers.js +3 -0
- package/esm/resources/V2/Billing/CadenceSpendModifiers.js.map +1 -0
- package/esm/resources/V2/Billing/Cadences/SpendModifierRules.d.ts +37 -0
- package/esm/resources/V2/Billing/Cadences/SpendModifierRules.js +19 -0
- package/esm/resources/V2/Billing/Cadences/SpendModifierRules.js.map +1 -0
- package/esm/resources/V2/Billing/Cadences.d.ts +1015 -0
- package/esm/resources/V2/Billing/Cadences.js +260 -0
- package/esm/resources/V2/Billing/Cadences.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +240 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
- package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/esm/resources/V2/Billing/ContractLicensePricingQuantityChanges.d.ts +45 -0
- package/esm/resources/V2/Billing/ContractLicensePricingQuantityChanges.js +3 -0
- package/esm/resources/V2/Billing/ContractLicensePricingQuantityChanges.js.map +1 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.d.ts +23 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.js +13 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.js.map +1 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing.d.ts +8 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing.js +11 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing.js.map +1 -0
- package/esm/resources/V2/Billing/Contracts.d.ts +2028 -0
- package/esm/resources/V2/Billing/Contracts.js +372 -0
- package/esm/resources/V2/Billing/Contracts.js.map +1 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.d.ts +125 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +31 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js.map +1 -0
- package/esm/resources/V2/Billing/IntentActions.d.ts +607 -0
- package/esm/resources/V2/Billing/IntentActions.js +3 -0
- package/esm/resources/V2/Billing/IntentActions.js.map +1 -0
- package/esm/resources/V2/Billing/Intents/Actions.d.ts +33 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +66 -0
- package/esm/resources/V2/Billing/Intents/Actions.js.map +1 -0
- package/esm/resources/V2/Billing/Intents.d.ts +1257 -0
- package/esm/resources/V2/Billing/Intents.js +83 -0
- package/esm/resources/V2/Billing/Intents.js.map +1 -0
- package/esm/resources/V2/Billing/LicenseFeeVersions.d.ts +82 -0
- package/esm/resources/V2/Billing/LicenseFeeVersions.js +3 -0
- package/esm/resources/V2/Billing/LicenseFeeVersions.js.map +1 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +60 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/LicenseFees.d.ts +364 -0
- package/esm/resources/V2/Billing/LicenseFees.js +144 -0
- package/esm/resources/V2/Billing/LicenseFees.js.map +1 -0
- package/esm/resources/V2/Billing/LicensedItems.d.ts +174 -0
- package/esm/resources/V2/Billing/LicensedItems.js +31 -0
- package/esm/resources/V2/Billing/LicensedItems.js.map +1 -0
- package/esm/resources/V2/Billing/MeteredItems.d.ts +222 -0
- package/esm/resources/V2/Billing/MeteredItems.js +31 -0
- package/esm/resources/V2/Billing/MeteredItems.js.map +1 -0
- package/esm/resources/V2/Billing/OneTimeItems.d.ts +174 -0
- package/esm/resources/V2/Billing/OneTimeItems.js +31 -0
- package/esm/resources/V2/Billing/OneTimeItems.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlanComponents.d.ts +84 -0
- package/esm/resources/V2/Billing/PricingPlanComponents.js +3 -0
- package/esm/resources/V2/Billing/PricingPlanComponents.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.d.ts +624 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +292 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlanVersions.d.ts +30 -0
- package/esm/resources/V2/Billing/PricingPlanVersions.js +3 -0
- package/esm/resources/V2/Billing/PricingPlanVersions.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.d.ts +142 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js +37 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +19 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlans.d.ts +173 -0
- package/esm/resources/V2/Billing/PricingPlans.js +39 -0
- package/esm/resources/V2/Billing/PricingPlans.js.map +1 -0
- package/esm/resources/V2/Billing/Profiles.d.ts +166 -0
- package/esm/resources/V2/Billing/Profiles.js +31 -0
- package/esm/resources/V2/Billing/Profiles.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.d.ts +45 -0
- package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js +3 -0
- package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardRates.d.ts +115 -0
- package/esm/resources/V2/Billing/RateCardRates.js +3 -0
- package/esm/resources/V2/Billing/RateCardRates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.d.ts +219 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +37 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardVersions.d.ts +22 -0
- package/esm/resources/V2/Billing/RateCardVersions.js +3 -0
- package/esm/resources/V2/Billing/RateCardVersions.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.d.ts +79 -0
- package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js +31 -0
- package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards/Rates.d.ts +145 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js +106 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js +19 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards.d.ts +340 -0
- package/esm/resources/V2/Billing/RateCards.js +72 -0
- package/esm/resources/V2/Billing/RateCards.js.map +1 -0
- package/esm/resources/V2/Billing/ServiceActions.d.ts +514 -0
- package/esm/resources/V2/Billing/ServiceActions.js +158 -0
- package/esm/resources/V2/Billing/ServiceActions.js.map +1 -0
- package/esm/resources/V2/Billing/index.d.ts +174 -6
- package/esm/resources/V2/Billing/index.js +32 -0
- package/esm/resources/V2/Billing/index.js.map +1 -1
- package/esm/resources/V2/Core/AccountEvaluations.d.ts +160 -0
- package/esm/resources/V2/Core/AccountEvaluations.js +11 -0
- package/esm/resources/V2/Core/AccountEvaluations.js.map +1 -0
- package/esm/resources/V2/Core/AccountLinks.d.ts +158 -6
- package/esm/resources/V2/Core/AccountPersons.d.ts +1 -1
- package/esm/resources/V2/Core/AccountTokens.d.ts +220 -2
- package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
- package/esm/resources/V2/Core/Accounts/Persons.d.ts +2 -2
- package/esm/resources/V2/Core/Accounts.d.ts +5570 -67
- package/esm/resources/V2/Core/ApprovalRequests.d.ts +334 -0
- package/esm/resources/V2/Core/ApprovalRequests.js +42 -0
- package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/esm/resources/V2/Core/BatchJobs.d.ts +373 -0
- package/esm/resources/V2/Core/BatchJobs.js +221 -0
- package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.d.ts +229 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js +27 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js.map +1 -0
- package/esm/resources/V2/Core/ConnectionSessions.d.ts +90 -0
- package/esm/resources/V2/Core/ConnectionSessions.js +17 -0
- package/esm/resources/V2/Core/ConnectionSessions.js.map +1 -0
- package/esm/resources/V2/Core/Events.d.ts +7601 -232
- package/esm/resources/V2/Core/FeeBatches.d.ts +172 -0
- package/esm/resources/V2/Core/FeeBatches.js +19 -0
- package/esm/resources/V2/Core/FeeBatches.js.map +1 -0
- package/esm/resources/V2/Core/FeeEntries.d.ts +178 -0
- package/esm/resources/V2/Core/FeeEntries.js +19 -0
- package/esm/resources/V2/Core/FeeEntries.js.map +1 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +285 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +50 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +254 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +58 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
- package/esm/resources/V2/Core/Vault/index.d.ts +28 -0
- package/esm/resources/V2/Core/Vault/index.js +11 -0
- package/esm/resources/V2/Core/Vault/index.js.map +1 -0
- package/esm/resources/V2/Core/index.d.ts +63 -14
- package/esm/resources/V2/Core/index.js +16 -0
- package/esm/resources/V2/Core/index.js.map +1 -1
- package/esm/resources/V2/Data/Analytics/MetricQuery.d.ts +73 -0
- package/esm/resources/V2/Data/Analytics/MetricQuery.js +32 -0
- package/esm/resources/V2/Data/Analytics/MetricQuery.js.map +1 -0
- package/esm/resources/V2/Data/Analytics/MetricQueryResults.d.ts +82 -0
- package/esm/resources/V2/Data/Analytics/MetricQueryResults.js +3 -0
- package/esm/resources/V2/Data/Analytics/MetricQueryResults.js.map +1 -0
- package/esm/resources/V2/Data/Analytics/index.d.ts +12 -0
- package/esm/resources/V2/Data/Analytics/index.js +9 -0
- package/esm/resources/V2/Data/Analytics/index.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +177 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/esm/resources/V2/Data/Reporting/index.js +9 -0
- package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
- package/esm/resources/V2/Data/index.d.ts +13 -0
- package/esm/resources/V2/Data/index.js +11 -0
- package/esm/resources/V2/Data/index.js.map +1 -0
- package/esm/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/esm/resources/V2/Extend/Workflows.d.ts +123 -0
- package/esm/resources/V2/Extend/Workflows.js +26 -0
- package/esm/resources/V2/Extend/Workflows.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +20 -0
- package/esm/resources/V2/Extend/index.js +11 -0
- package/esm/resources/V2/Extend/index.js.map +1 -0
- package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +14 -0
- package/esm/resources/V2/FinancialAddressCreditSimulations.js +3 -0
- package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +3 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +214 -0
- package/esm/resources/V2/Iam/ActivityLogs.js +19 -0
- package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/esm/resources/V2/Iam/ApiKeys.d.ts +280 -0
- package/esm/resources/V2/Iam/ApiKeys.js +43 -0
- package/esm/resources/V2/Iam/ApiKeys.js.map +1 -0
- package/esm/resources/V2/Iam/index.d.ts +23 -0
- package/esm/resources/V2/Iam/index.js +11 -0
- package/esm/resources/V2/Iam/index.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +139 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +19 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.d.ts +135 -0
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.js +27 -0
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/DebitDisputes.d.ts +171 -0
- package/esm/resources/V2/MoneyManagement/DebitDisputes.js +25 -0
- package/esm/resources/V2/MoneyManagement/DebitDisputes.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountStatements.d.ts +103 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountStatements.js +3 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountStatements.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts/Statements.d.ts +44 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts/Statements.js +49 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts/Statements.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +417 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +46 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +308 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +27 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +254 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +26 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +222 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +524 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +37 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +321 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +45 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +342 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +35 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +270 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +40 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +96 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +13 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +458 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +19 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +251 -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 +120 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +23 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +249 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +19 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/Transactions.d.ts +280 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +19 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/index.d.ts +128 -0
- package/esm/resources/V2/MoneyManagement/index.js +41 -0
- package/esm/resources/V2/MoneyManagement/index.js.map +1 -0
- package/esm/resources/V2/Network/BusinessProfiles.d.ts +96 -0
- package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
- package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/esm/resources/V2/Network/index.d.ts +13 -0
- package/esm/resources/V2/Network/index.js +9 -0
- package/esm/resources/V2/Network/index.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/esm/resources/V2/Payments/OffSessionPayments.d.ts +827 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js +49 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js.map +1 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.d.ts +77 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.js +3 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.js.map +1 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.d.ts +85 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js +31 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js.map +1 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.d.ts +213 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.js +49 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.js.map +1 -0
- package/esm/resources/V2/Payments/index.d.ts +31 -0
- package/esm/resources/V2/Payments/index.js +11 -0
- package/esm/resources/V2/Payments/index.js.map +1 -0
- package/esm/resources/V2/Reporting/ReportRuns.d.ts +194 -0
- package/esm/resources/V2/Reporting/ReportRuns.js +46 -0
- package/esm/resources/V2/Reporting/ReportRuns.js.map +1 -0
- package/esm/resources/V2/Reporting/Reports.d.ts +110 -0
- package/esm/resources/V2/Reporting/Reports.js +13 -0
- package/esm/resources/V2/Reporting/Reports.js.map +1 -0
- package/esm/resources/V2/Reporting/index.d.ts +18 -0
- package/esm/resources/V2/Reporting/index.js +11 -0
- package/esm/resources/V2/Reporting/index.js.map +1 -0
- package/esm/resources/V2/Signals/AccountSignals.d.ts +176 -0
- package/esm/resources/V2/Signals/AccountSignals.js +54 -0
- package/esm/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/esm/resources/V2/Signals/index.d.ts +13 -0
- package/esm/resources/V2/Signals/index.js +9 -0
- package/esm/resources/V2/Signals/index.js.map +1 -0
- package/esm/resources/V2/Tax/ManualRules.d.ts +335 -0
- package/esm/resources/V2/Tax/ManualRules.js +189 -0
- package/esm/resources/V2/Tax/ManualRules.js.map +1 -0
- package/esm/resources/V2/Tax/index.d.ts +16 -0
- package/esm/resources/V2/Tax/index.js +9 -0
- package/esm/resources/V2/Tax/index.js.map +1 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +44 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +19 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.d.ts +31 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +11 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js.map +1 -0
- package/esm/resources/V2/TestHelpers/index.d.ts +10 -0
- package/esm/resources/V2/TestHelpers/index.js +11 -0
- package/esm/resources/V2/TestHelpers/index.js.map +1 -0
- package/esm/resources/V2/index.d.ts +39 -0
- package/esm/resources/V2/index.js +22 -0
- package/esm/resources/V2/index.js.map +1 -1
- package/esm/resources/WebhookEndpoints.d.ts +2 -2
- package/esm/resources.d.ts +16 -0
- package/esm/resources.js +233 -0
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.d.ts +115 -50
- package/esm/stripe.core.js +37 -1
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +115 -50
- package/esm/stripe.esm.node.js +37 -1
- package/esm/stripe.esm.node.js.map +1 -1
- package/esm/utils.d.ts +1 -1
- package/esm/utils.js +13 -2
- package/esm/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ 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';
|
|
@@ -67,6 +68,10 @@ export declare class InvoiceResource extends StripeResource {
|
|
|
67
68
|
* See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more.
|
|
68
69
|
*/
|
|
69
70
|
attachPayment(id: string, params?: InvoiceAttachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
|
|
71
|
+
/**
|
|
72
|
+
* Detaches a payment from the invoice, removing it from the list of payments
|
|
73
|
+
*/
|
|
74
|
+
detachPayment(id: string, params?: InvoiceDetachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
|
|
70
75
|
/**
|
|
71
76
|
* 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.
|
|
72
77
|
*/
|
|
@@ -111,6 +116,54 @@ export declare class InvoiceResource extends StripeResource {
|
|
|
111
116
|
* Note: Currency conversion calculations use the latest exchange rates. Exchange rates may vary between the time of the preview and the time of the actual invoice creation. [Learn more](https://docs.stripe.com/currencies/conversions)
|
|
112
117
|
*/
|
|
113
118
|
createPreview(params?: InvoiceCreatePreviewParams, options?: RequestOptions): Promise<Response<Invoice>>;
|
|
119
|
+
serializeBatchDelete(invoice: string, params?: Record<string, unknown>, options?: {
|
|
120
|
+
apiVersion?: string;
|
|
121
|
+
stripeContext?: string;
|
|
122
|
+
}): string;
|
|
123
|
+
serializeBatchUpdate(invoice: string, params?: Record<string, unknown>, options?: {
|
|
124
|
+
apiVersion?: string;
|
|
125
|
+
stripeContext?: string;
|
|
126
|
+
}): string;
|
|
127
|
+
serializeBatchCreate(params?: Record<string, unknown>, options?: {
|
|
128
|
+
apiVersion?: string;
|
|
129
|
+
stripeContext?: string;
|
|
130
|
+
}): string;
|
|
131
|
+
serializeBatchAddLines(invoice: string, params?: Record<string, unknown>, options?: {
|
|
132
|
+
apiVersion?: string;
|
|
133
|
+
stripeContext?: string;
|
|
134
|
+
}): string;
|
|
135
|
+
serializeBatchFinalizeInvoice(invoice: string, params?: Record<string, unknown>, options?: {
|
|
136
|
+
apiVersion?: string;
|
|
137
|
+
stripeContext?: string;
|
|
138
|
+
}): string;
|
|
139
|
+
serializeBatchMarkUncollectible(invoice: string, params?: Record<string, unknown>, options?: {
|
|
140
|
+
apiVersion?: string;
|
|
141
|
+
stripeContext?: string;
|
|
142
|
+
}): string;
|
|
143
|
+
serializeBatchPay(invoice: string, params?: Record<string, unknown>, options?: {
|
|
144
|
+
apiVersion?: string;
|
|
145
|
+
stripeContext?: string;
|
|
146
|
+
}): string;
|
|
147
|
+
serializeBatchRemoveLines(invoice: string, params?: Record<string, unknown>, options?: {
|
|
148
|
+
apiVersion?: string;
|
|
149
|
+
stripeContext?: string;
|
|
150
|
+
}): string;
|
|
151
|
+
serializeBatchSendInvoice(invoice: string, params?: Record<string, unknown>, options?: {
|
|
152
|
+
apiVersion?: string;
|
|
153
|
+
stripeContext?: string;
|
|
154
|
+
}): string;
|
|
155
|
+
serializeBatchUpdateLines(invoice: string, params?: Record<string, unknown>, options?: {
|
|
156
|
+
apiVersion?: string;
|
|
157
|
+
stripeContext?: string;
|
|
158
|
+
}): string;
|
|
159
|
+
serializeBatchVoidInvoice(invoice: string, params?: Record<string, unknown>, options?: {
|
|
160
|
+
apiVersion?: string;
|
|
161
|
+
stripeContext?: string;
|
|
162
|
+
}): string;
|
|
163
|
+
serializeBatchCreatePreview(params?: Record<string, unknown>, options?: {
|
|
164
|
+
apiVersion?: string;
|
|
165
|
+
stripeContext?: string;
|
|
166
|
+
}): string;
|
|
114
167
|
/**
|
|
115
168
|
* When retrieving an invoice, you'll get a lines property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.
|
|
116
169
|
*/
|
|
@@ -122,6 +175,10 @@ export declare class InvoiceResource extends StripeResource {
|
|
|
122
175
|
* Updating an invoice's line item is only possible before the invoice is finalized.
|
|
123
176
|
*/
|
|
124
177
|
updateLineItem(invoiceId: string, id: string, params?: InvoiceUpdateLineItemParams, options?: RequestOptions): Promise<Response<InvoiceLineItem>>;
|
|
178
|
+
serializeBatchUpdateLineItem(invoice: string, lineItemId: string, params?: Record<string, unknown>, options?: {
|
|
179
|
+
apiVersion?: string;
|
|
180
|
+
stripeContext?: string;
|
|
181
|
+
}): string;
|
|
125
182
|
}
|
|
126
183
|
export interface Invoice {
|
|
127
184
|
/**
|
|
@@ -168,6 +225,10 @@ export interface Invoice {
|
|
|
168
225
|
* This is the sum of all the shipping amounts.
|
|
169
226
|
*/
|
|
170
227
|
amount_shipping: number;
|
|
228
|
+
/**
|
|
229
|
+
* List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
|
|
230
|
+
*/
|
|
231
|
+
amounts_due?: Array<Invoice.AmountsDue> | null;
|
|
171
232
|
/**
|
|
172
233
|
* ID of the Connect Application that created the invoice.
|
|
173
234
|
*/
|
|
@@ -257,6 +318,10 @@ export interface Invoice {
|
|
|
257
318
|
* 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.
|
|
258
319
|
*/
|
|
259
320
|
customer_tax_ids?: Array<Invoice.CustomerTaxId> | null;
|
|
321
|
+
/**
|
|
322
|
+
* The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
|
|
323
|
+
*/
|
|
324
|
+
default_margins?: Array<string | Margin> | null;
|
|
260
325
|
/**
|
|
261
326
|
* 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.
|
|
262
327
|
*/
|
|
@@ -421,6 +486,10 @@ export interface Invoice {
|
|
|
421
486
|
* The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
|
|
422
487
|
*/
|
|
423
488
|
total_excluding_tax: number | null;
|
|
489
|
+
/**
|
|
490
|
+
* The aggregate amounts calculated per margin across all line items.
|
|
491
|
+
*/
|
|
492
|
+
total_margin_amounts?: Array<Invoice.TotalMarginAmount> | null;
|
|
424
493
|
/**
|
|
425
494
|
* 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.
|
|
426
495
|
*/
|
|
@@ -449,6 +518,40 @@ export interface DeletedInvoice {
|
|
|
449
518
|
deleted: true;
|
|
450
519
|
}
|
|
451
520
|
export declare namespace Invoice {
|
|
521
|
+
interface AmountsDue {
|
|
522
|
+
/**
|
|
523
|
+
* Incremental amount due for this payment in cents (or local equivalent).
|
|
524
|
+
*/
|
|
525
|
+
amount: number;
|
|
526
|
+
/**
|
|
527
|
+
* The amount in cents (or local equivalent) that was paid for this payment.
|
|
528
|
+
*/
|
|
529
|
+
amount_paid: number;
|
|
530
|
+
/**
|
|
531
|
+
* The difference between the payment's amount and amount_paid, in cents (or local equivalent).
|
|
532
|
+
*/
|
|
533
|
+
amount_remaining: number;
|
|
534
|
+
/**
|
|
535
|
+
* Number of days from when invoice is finalized until the payment is due.
|
|
536
|
+
*/
|
|
537
|
+
days_until_due: number | null;
|
|
538
|
+
/**
|
|
539
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
540
|
+
*/
|
|
541
|
+
description: string | null;
|
|
542
|
+
/**
|
|
543
|
+
* Date on which a payment plan's payment is due.
|
|
544
|
+
*/
|
|
545
|
+
due_date: number | null;
|
|
546
|
+
/**
|
|
547
|
+
* Timestamp when the payment was paid.
|
|
548
|
+
*/
|
|
549
|
+
paid_at: number | null;
|
|
550
|
+
/**
|
|
551
|
+
* The status of the payment, one of `open`, `paid`, or `past_due`
|
|
552
|
+
*/
|
|
553
|
+
status: AmountsDue.Status;
|
|
554
|
+
}
|
|
452
555
|
interface AutomaticTax {
|
|
453
556
|
/**
|
|
454
557
|
* If Stripe disabled automatic tax, this enum describes why.
|
|
@@ -641,10 +744,18 @@ export declare namespace Invoice {
|
|
|
641
744
|
type: LastFinalizationError.Type;
|
|
642
745
|
}
|
|
643
746
|
interface Parent {
|
|
747
|
+
/**
|
|
748
|
+
* Details about the billing cadence that generated this invoice
|
|
749
|
+
*/
|
|
750
|
+
billing_cadence_details?: Parent.BillingCadenceDetails | null;
|
|
644
751
|
/**
|
|
645
752
|
* Details about the quote that generated this invoice
|
|
646
753
|
*/
|
|
647
754
|
quote_details: Parent.QuoteDetails | null;
|
|
755
|
+
/**
|
|
756
|
+
* Details about the schedule that generated this invoice
|
|
757
|
+
*/
|
|
758
|
+
schedule_details?: Parent.ScheduleDetails | null;
|
|
648
759
|
/**
|
|
649
760
|
* Details about the subscription that generated this invoice
|
|
650
761
|
*/
|
|
@@ -766,6 +877,16 @@ export declare namespace Invoice {
|
|
|
766
877
|
*/
|
|
767
878
|
discount: string | Discount | DeletedDiscount;
|
|
768
879
|
}
|
|
880
|
+
interface TotalMarginAmount {
|
|
881
|
+
/**
|
|
882
|
+
* The amount, in cents (or local equivalent), of the reduction in line item amount.
|
|
883
|
+
*/
|
|
884
|
+
amount: number;
|
|
885
|
+
/**
|
|
886
|
+
* The margin that was applied to get this margin amount.
|
|
887
|
+
*/
|
|
888
|
+
margin: string | Margin;
|
|
889
|
+
}
|
|
769
890
|
interface TotalPretaxCreditAmount {
|
|
770
891
|
/**
|
|
771
892
|
* The amount, in cents (or local equivalent), of the pretax credit amount.
|
|
@@ -779,6 +900,10 @@ export declare namespace Invoice {
|
|
|
779
900
|
* The discount that was applied to get this pretax credit amount.
|
|
780
901
|
*/
|
|
781
902
|
discount?: string | Discount | DeletedDiscount;
|
|
903
|
+
/**
|
|
904
|
+
* The margin that was applied to get this pretax credit amount.
|
|
905
|
+
*/
|
|
906
|
+
margin?: string | Margin;
|
|
782
907
|
/**
|
|
783
908
|
* Type of the pretax credit amount referenced.
|
|
784
909
|
*/
|
|
@@ -810,6 +935,9 @@ export declare namespace Invoice {
|
|
|
810
935
|
*/
|
|
811
936
|
type: 'tax_rate_details';
|
|
812
937
|
}
|
|
938
|
+
namespace AmountsDue {
|
|
939
|
+
type Status = 'open' | 'paid' | 'past_due';
|
|
940
|
+
}
|
|
813
941
|
namespace AutomaticTax {
|
|
814
942
|
type DisabledReason = 'finalization_requires_location_inputs' | 'finalization_system_error';
|
|
815
943
|
interface Liability {
|
|
@@ -824,32 +952,52 @@ export declare namespace Invoice {
|
|
|
824
952
|
}
|
|
825
953
|
type Status = 'complete' | 'failed' | 'requires_location_inputs';
|
|
826
954
|
namespace Liability {
|
|
827
|
-
type Type = 'account' | 'self';
|
|
955
|
+
type Type = 'account' | 'application' | 'self';
|
|
828
956
|
}
|
|
829
957
|
}
|
|
830
958
|
namespace CustomerTaxId {
|
|
831
959
|
type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | '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' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'gb_vat' | 'ge_vat' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | '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_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin';
|
|
832
960
|
}
|
|
833
961
|
namespace Issuer {
|
|
834
|
-
type Type = 'account' | 'self';
|
|
962
|
+
type Type = 'account' | 'application' | 'self';
|
|
835
963
|
}
|
|
836
964
|
namespace LastFinalizationError {
|
|
837
|
-
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' | 'api_key_expired' | 'application_fees_not_allowed' | 'approval_required' | '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' | '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' | 'email_invalid' | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | '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_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_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_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_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' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | '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' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid';
|
|
965
|
+
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' | 'api_key_expired' | 'application_fees_not_allowed' | 'approval_required' | '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' | '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' | 'email_invalid' | 'expired_card' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | '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_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_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_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_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' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | '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' | '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';
|
|
838
966
|
type Type = 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error';
|
|
839
967
|
}
|
|
840
968
|
namespace Parent {
|
|
969
|
+
interface BillingCadenceDetails {
|
|
970
|
+
/**
|
|
971
|
+
* The billing cadence that generated this invoice
|
|
972
|
+
*/
|
|
973
|
+
billing_cadence: string;
|
|
974
|
+
}
|
|
841
975
|
interface QuoteDetails {
|
|
842
976
|
/**
|
|
843
977
|
* The quote that generated this invoice
|
|
844
978
|
*/
|
|
845
979
|
quote: string;
|
|
846
980
|
}
|
|
981
|
+
interface ScheduleDetails {
|
|
982
|
+
/**
|
|
983
|
+
* The schedule that generated this invoice
|
|
984
|
+
*/
|
|
985
|
+
schedule: string;
|
|
986
|
+
/**
|
|
987
|
+
* The subscription associated with this schedule
|
|
988
|
+
*/
|
|
989
|
+
subscription: string | Subscription | null;
|
|
990
|
+
}
|
|
847
991
|
interface SubscriptionDetails {
|
|
848
992
|
/**
|
|
849
993
|
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) defined as subscription metadata when an invoice is created. Becomes an immutable snapshot of the subscription metadata at the time of invoice finalization.
|
|
850
994
|
* *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
|
|
851
995
|
*/
|
|
852
996
|
metadata: Metadata | null;
|
|
997
|
+
/**
|
|
998
|
+
* 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).
|
|
999
|
+
*/
|
|
1000
|
+
pause_collection?: SubscriptionDetails.PauseCollection | null;
|
|
853
1001
|
/**
|
|
854
1002
|
* The subscription that generated this invoice
|
|
855
1003
|
*/
|
|
@@ -859,7 +1007,22 @@ export declare namespace Invoice {
|
|
|
859
1007
|
*/
|
|
860
1008
|
subscription_proration_date?: number;
|
|
861
1009
|
}
|
|
862
|
-
type Type = 'quote_details' | 'subscription_details';
|
|
1010
|
+
type Type = 'billing_cadence_details' | 'quote_details' | 'schedule_details' | 'subscription_details';
|
|
1011
|
+
namespace SubscriptionDetails {
|
|
1012
|
+
interface PauseCollection {
|
|
1013
|
+
/**
|
|
1014
|
+
* The payment collection behavior for this subscription while paused.
|
|
1015
|
+
*/
|
|
1016
|
+
behavior: PauseCollection.Behavior | null;
|
|
1017
|
+
/**
|
|
1018
|
+
* The time after which the subscription will resume collecting payments.
|
|
1019
|
+
*/
|
|
1020
|
+
resumes_at: number | null;
|
|
1021
|
+
}
|
|
1022
|
+
namespace PauseCollection {
|
|
1023
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
863
1026
|
}
|
|
864
1027
|
namespace PaymentSettings {
|
|
865
1028
|
interface PaymentMethodOptions {
|
|
@@ -871,14 +1034,30 @@ export declare namespace Invoice {
|
|
|
871
1034
|
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
872
1035
|
*/
|
|
873
1036
|
bancontact: PaymentMethodOptions.Bancontact | null;
|
|
1037
|
+
/**
|
|
1038
|
+
* If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
|
|
1039
|
+
*/
|
|
1040
|
+
bizum?: PaymentMethodOptions.Bizum | null;
|
|
1041
|
+
/**
|
|
1042
|
+
* If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
1043
|
+
*/
|
|
1044
|
+
blik?: PaymentMethodOptions.Blik | null;
|
|
874
1045
|
/**
|
|
875
1046
|
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
876
1047
|
*/
|
|
877
1048
|
card: PaymentMethodOptions.Card | null;
|
|
1049
|
+
/**
|
|
1050
|
+
* If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
|
|
1051
|
+
*/
|
|
1052
|
+
check_scan?: PaymentMethodOptions.CheckScan | null;
|
|
878
1053
|
/**
|
|
879
1054
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
880
1055
|
*/
|
|
881
1056
|
customer_balance: PaymentMethodOptions.CustomerBalance | null;
|
|
1057
|
+
/**
|
|
1058
|
+
* 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.
|
|
1059
|
+
*/
|
|
1060
|
+
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
|
|
882
1061
|
/**
|
|
883
1062
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
884
1063
|
*/
|
|
@@ -903,8 +1082,12 @@ export declare namespace Invoice {
|
|
|
903
1082
|
* If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
|
|
904
1083
|
*/
|
|
905
1084
|
us_bank_account: PaymentMethodOptions.UsBankAccount | null;
|
|
1085
|
+
/**
|
|
1086
|
+
* If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent.
|
|
1087
|
+
*/
|
|
1088
|
+
wechat_pay?: PaymentMethodOptions.WechatPay | null;
|
|
906
1089
|
}
|
|
907
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
1090
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'bizum' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'check_scan' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
908
1091
|
namespace PaymentMethodOptions {
|
|
909
1092
|
interface AcssDebit {
|
|
910
1093
|
mandate_options?: AcssDebit.MandateOptions;
|
|
@@ -919,6 +1102,10 @@ export declare namespace Invoice {
|
|
|
919
1102
|
*/
|
|
920
1103
|
preferred_language: Bancontact.PreferredLanguage;
|
|
921
1104
|
}
|
|
1105
|
+
interface Bizum {
|
|
1106
|
+
}
|
|
1107
|
+
interface Blik {
|
|
1108
|
+
}
|
|
922
1109
|
interface Card {
|
|
923
1110
|
installments?: Card.Installments;
|
|
924
1111
|
/**
|
|
@@ -926,6 +1113,8 @@ export declare namespace Invoice {
|
|
|
926
1113
|
*/
|
|
927
1114
|
request_three_d_secure: Card.RequestThreeDSecure | null;
|
|
928
1115
|
}
|
|
1116
|
+
interface CheckScan {
|
|
1117
|
+
}
|
|
929
1118
|
interface CustomerBalance {
|
|
930
1119
|
bank_transfer?: CustomerBalance.BankTransfer;
|
|
931
1120
|
/**
|
|
@@ -933,6 +1122,8 @@ export declare namespace Invoice {
|
|
|
933
1122
|
*/
|
|
934
1123
|
funding_type: 'bank_transfer' | null;
|
|
935
1124
|
}
|
|
1125
|
+
interface IdBankTransfer {
|
|
1126
|
+
}
|
|
936
1127
|
interface Konbini {
|
|
937
1128
|
}
|
|
938
1129
|
interface Payto {
|
|
@@ -960,6 +1151,16 @@ export declare namespace Invoice {
|
|
|
960
1151
|
*/
|
|
961
1152
|
verification_method?: UsBankAccount.VerificationMethod;
|
|
962
1153
|
}
|
|
1154
|
+
interface WechatPay {
|
|
1155
|
+
/**
|
|
1156
|
+
* The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
|
|
1157
|
+
*/
|
|
1158
|
+
app_id?: string;
|
|
1159
|
+
/**
|
|
1160
|
+
* The client type that the end customer will pay from.
|
|
1161
|
+
*/
|
|
1162
|
+
client?: WechatPay.Client;
|
|
1163
|
+
}
|
|
963
1164
|
namespace AcssDebit {
|
|
964
1165
|
interface MandateOptions {
|
|
965
1166
|
/**
|
|
@@ -1069,14 +1270,21 @@ export declare namespace Invoice {
|
|
|
1069
1270
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1070
1271
|
*/
|
|
1071
1272
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1273
|
+
/**
|
|
1274
|
+
* The institution to use to filter for possible accounts to link.
|
|
1275
|
+
*/
|
|
1276
|
+
institution?: string;
|
|
1072
1277
|
}
|
|
1073
1278
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
1074
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1279
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
|
|
1075
1280
|
namespace Filters {
|
|
1076
1281
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1077
1282
|
}
|
|
1078
1283
|
}
|
|
1079
1284
|
}
|
|
1285
|
+
namespace WechatPay {
|
|
1286
|
+
type Client = 'android' | 'ios' | 'mobile_web' | 'web';
|
|
1287
|
+
}
|
|
1080
1288
|
}
|
|
1081
1289
|
}
|
|
1082
1290
|
namespace Rendering {
|
|
@@ -1128,7 +1336,7 @@ export declare namespace Invoice {
|
|
|
1128
1336
|
}
|
|
1129
1337
|
}
|
|
1130
1338
|
namespace TotalPretaxCreditAmount {
|
|
1131
|
-
type Type = 'credit_balance_transaction' | 'discount';
|
|
1339
|
+
type Type = 'credit_balance_transaction' | 'discount' | 'margin';
|
|
1132
1340
|
}
|
|
1133
1341
|
namespace TotalTax {
|
|
1134
1342
|
type TaxBehavior = 'exclusive' | 'inclusive';
|
|
@@ -1136,7 +1344,7 @@ export declare namespace Invoice {
|
|
|
1136
1344
|
/**
|
|
1137
1345
|
* ID of the tax rate
|
|
1138
1346
|
*/
|
|
1139
|
-
tax_rate: string;
|
|
1347
|
+
tax_rate: string | TaxRate;
|
|
1140
1348
|
}
|
|
1141
1349
|
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';
|
|
1142
1350
|
}
|
|
@@ -1146,6 +1354,10 @@ export interface InvoiceCreateParams {
|
|
|
1146
1354
|
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
1147
1355
|
*/
|
|
1148
1356
|
account_tax_ids?: Emptyable<Array<string>>;
|
|
1357
|
+
/**
|
|
1358
|
+
* List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
1359
|
+
*/
|
|
1360
|
+
amounts_due?: Emptyable<Array<InvoiceCreateParams.AmountsDue>>;
|
|
1149
1361
|
/**
|
|
1150
1362
|
* 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).
|
|
1151
1363
|
*/
|
|
@@ -1186,6 +1398,10 @@ export interface InvoiceCreateParams {
|
|
|
1186
1398
|
* The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
|
|
1187
1399
|
*/
|
|
1188
1400
|
days_until_due?: number;
|
|
1401
|
+
/**
|
|
1402
|
+
* The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
1403
|
+
*/
|
|
1404
|
+
default_margins?: Array<string>;
|
|
1189
1405
|
/**
|
|
1190
1406
|
* 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.
|
|
1191
1407
|
*/
|
|
@@ -1276,6 +1492,24 @@ export interface InvoiceCreateParams {
|
|
|
1276
1492
|
transfer_data?: InvoiceCreateParams.TransferData;
|
|
1277
1493
|
}
|
|
1278
1494
|
export declare namespace InvoiceCreateParams {
|
|
1495
|
+
interface AmountsDue {
|
|
1496
|
+
/**
|
|
1497
|
+
* The amount in cents (or local equivalent).
|
|
1498
|
+
*/
|
|
1499
|
+
amount: number;
|
|
1500
|
+
/**
|
|
1501
|
+
* Number of days from when invoice is finalized until the payment is due.
|
|
1502
|
+
*/
|
|
1503
|
+
days_until_due?: number;
|
|
1504
|
+
/**
|
|
1505
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
1506
|
+
*/
|
|
1507
|
+
description: string;
|
|
1508
|
+
/**
|
|
1509
|
+
* Date on which a payment plan's payment is due.
|
|
1510
|
+
*/
|
|
1511
|
+
due_date?: number;
|
|
1512
|
+
}
|
|
1279
1513
|
interface AutomaticTax {
|
|
1280
1514
|
/**
|
|
1281
1515
|
* 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.
|
|
@@ -1306,6 +1540,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1306
1540
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1307
1541
|
*/
|
|
1308
1542
|
discount?: string;
|
|
1543
|
+
/**
|
|
1544
|
+
* Details to determine how long the discount should be applied for.
|
|
1545
|
+
*/
|
|
1546
|
+
discount_end?: Discount.DiscountEnd;
|
|
1309
1547
|
/**
|
|
1310
1548
|
* ID of the promotion code to create a new discount for.
|
|
1311
1549
|
*/
|
|
@@ -1410,11 +1648,43 @@ export declare namespace InvoiceCreateParams {
|
|
|
1410
1648
|
type: Liability.Type;
|
|
1411
1649
|
}
|
|
1412
1650
|
namespace Liability {
|
|
1413
|
-
type Type = 'account' | 'self';
|
|
1651
|
+
type Type = 'account' | 'application' | 'self';
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
namespace Discount {
|
|
1655
|
+
interface DiscountEnd {
|
|
1656
|
+
/**
|
|
1657
|
+
* Time span for the redeemed discount.
|
|
1658
|
+
*/
|
|
1659
|
+
duration?: DiscountEnd.Duration;
|
|
1660
|
+
/**
|
|
1661
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1662
|
+
*/
|
|
1663
|
+
timestamp?: number;
|
|
1664
|
+
/**
|
|
1665
|
+
* The type of calculation made to determine when the discount ends.
|
|
1666
|
+
*/
|
|
1667
|
+
type: DiscountEnd.Type;
|
|
1668
|
+
}
|
|
1669
|
+
namespace DiscountEnd {
|
|
1670
|
+
interface Duration {
|
|
1671
|
+
/**
|
|
1672
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1673
|
+
*/
|
|
1674
|
+
interval: Duration.Interval;
|
|
1675
|
+
/**
|
|
1676
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1677
|
+
*/
|
|
1678
|
+
interval_count: number;
|
|
1679
|
+
}
|
|
1680
|
+
type Type = 'duration' | 'timestamp';
|
|
1681
|
+
namespace Duration {
|
|
1682
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1683
|
+
}
|
|
1414
1684
|
}
|
|
1415
1685
|
}
|
|
1416
1686
|
namespace Issuer {
|
|
1417
|
-
type Type = 'account' | 'self';
|
|
1687
|
+
type Type = 'account' | 'application' | 'self';
|
|
1418
1688
|
}
|
|
1419
1689
|
namespace PaymentSettings {
|
|
1420
1690
|
interface PaymentMethodOptions {
|
|
@@ -1426,14 +1696,30 @@ export declare namespace InvoiceCreateParams {
|
|
|
1426
1696
|
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
1427
1697
|
*/
|
|
1428
1698
|
bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
|
|
1699
|
+
/**
|
|
1700
|
+
* If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
|
|
1701
|
+
*/
|
|
1702
|
+
bizum?: Emptyable<PaymentMethodOptions.Bizum>;
|
|
1703
|
+
/**
|
|
1704
|
+
* If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
1705
|
+
*/
|
|
1706
|
+
blik?: Emptyable<PaymentMethodOptions.Blik>;
|
|
1429
1707
|
/**
|
|
1430
1708
|
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
1431
1709
|
*/
|
|
1432
1710
|
card?: Emptyable<PaymentMethodOptions.Card>;
|
|
1711
|
+
/**
|
|
1712
|
+
* If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
|
|
1713
|
+
*/
|
|
1714
|
+
check_scan?: Emptyable<PaymentMethodOptions.CheckScan>;
|
|
1433
1715
|
/**
|
|
1434
1716
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1435
1717
|
*/
|
|
1436
1718
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
1719
|
+
/**
|
|
1720
|
+
* 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.
|
|
1721
|
+
*/
|
|
1722
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
1437
1723
|
/**
|
|
1438
1724
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1439
1725
|
*/
|
|
@@ -1458,8 +1744,12 @@ export declare namespace InvoiceCreateParams {
|
|
|
1458
1744
|
* If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
|
|
1459
1745
|
*/
|
|
1460
1746
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
1747
|
+
/**
|
|
1748
|
+
* If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent.
|
|
1749
|
+
*/
|
|
1750
|
+
wechat_pay?: Emptyable<PaymentMethodOptions.WechatPay>;
|
|
1461
1751
|
}
|
|
1462
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
1752
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'bizum' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'check_scan' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
1463
1753
|
namespace PaymentMethodOptions {
|
|
1464
1754
|
interface AcssDebit {
|
|
1465
1755
|
/**
|
|
@@ -1477,6 +1767,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1477
1767
|
*/
|
|
1478
1768
|
preferred_language?: Bancontact.PreferredLanguage;
|
|
1479
1769
|
}
|
|
1770
|
+
interface Bizum {
|
|
1771
|
+
}
|
|
1772
|
+
interface Blik {
|
|
1773
|
+
}
|
|
1480
1774
|
interface Card {
|
|
1481
1775
|
/**
|
|
1482
1776
|
* Installment configuration for payments attempted on this invoice.
|
|
@@ -1489,6 +1783,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
1489
1783
|
*/
|
|
1490
1784
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
1491
1785
|
}
|
|
1786
|
+
interface CheckScan {
|
|
1787
|
+
}
|
|
1492
1788
|
interface CustomerBalance {
|
|
1493
1789
|
/**
|
|
1494
1790
|
* Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
@@ -1499,6 +1795,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
1499
1795
|
*/
|
|
1500
1796
|
funding_type?: string;
|
|
1501
1797
|
}
|
|
1798
|
+
interface IdBankTransfer {
|
|
1799
|
+
}
|
|
1502
1800
|
interface Konbini {
|
|
1503
1801
|
}
|
|
1504
1802
|
interface Payto {
|
|
@@ -1535,6 +1833,16 @@ export declare namespace InvoiceCreateParams {
|
|
|
1535
1833
|
*/
|
|
1536
1834
|
verification_method?: UsBankAccount.VerificationMethod;
|
|
1537
1835
|
}
|
|
1836
|
+
interface WechatPay {
|
|
1837
|
+
/**
|
|
1838
|
+
* The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
|
|
1839
|
+
*/
|
|
1840
|
+
app_id?: string;
|
|
1841
|
+
/**
|
|
1842
|
+
* The client type that the end customer will pay from.
|
|
1843
|
+
*/
|
|
1844
|
+
client?: WechatPay.Client;
|
|
1845
|
+
}
|
|
1538
1846
|
namespace AcssDebit {
|
|
1539
1847
|
interface MandateOptions {
|
|
1540
1848
|
/**
|
|
@@ -1667,14 +1975,21 @@ export declare namespace InvoiceCreateParams {
|
|
|
1667
1975
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1668
1976
|
*/
|
|
1669
1977
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1978
|
+
/**
|
|
1979
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
1980
|
+
*/
|
|
1981
|
+
institution?: string;
|
|
1670
1982
|
}
|
|
1671
1983
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
1672
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
1984
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
|
|
1673
1985
|
namespace Filters {
|
|
1674
1986
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1675
1987
|
}
|
|
1676
1988
|
}
|
|
1677
1989
|
}
|
|
1990
|
+
namespace WechatPay {
|
|
1991
|
+
type Client = 'android' | 'ios' | 'mobile_web' | 'web';
|
|
1992
|
+
}
|
|
1678
1993
|
}
|
|
1679
1994
|
}
|
|
1680
1995
|
namespace Rendering {
|
|
@@ -1807,6 +2122,10 @@ export interface InvoiceUpdateParams {
|
|
|
1807
2122
|
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
1808
2123
|
*/
|
|
1809
2124
|
account_tax_ids?: Emptyable<Array<string>>;
|
|
2125
|
+
/**
|
|
2126
|
+
* List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
2127
|
+
*/
|
|
2128
|
+
amounts_due?: Emptyable<Array<InvoiceUpdateParams.AmountsDue>>;
|
|
1810
2129
|
/**
|
|
1811
2130
|
* 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).
|
|
1812
2131
|
*/
|
|
@@ -1835,6 +2154,10 @@ export interface InvoiceUpdateParams {
|
|
|
1835
2154
|
* 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.
|
|
1836
2155
|
*/
|
|
1837
2156
|
days_until_due?: number;
|
|
2157
|
+
/**
|
|
2158
|
+
* The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
2159
|
+
*/
|
|
2160
|
+
default_margins?: Emptyable<Array<string>>;
|
|
1838
2161
|
/**
|
|
1839
2162
|
* 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.
|
|
1840
2163
|
*/
|
|
@@ -1913,6 +2236,24 @@ export interface InvoiceUpdateParams {
|
|
|
1913
2236
|
transfer_data?: Emptyable<InvoiceUpdateParams.TransferData>;
|
|
1914
2237
|
}
|
|
1915
2238
|
export declare namespace InvoiceUpdateParams {
|
|
2239
|
+
interface AmountsDue {
|
|
2240
|
+
/**
|
|
2241
|
+
* The amount in cents (or local equivalent).
|
|
2242
|
+
*/
|
|
2243
|
+
amount: number;
|
|
2244
|
+
/**
|
|
2245
|
+
* Number of days from when invoice is finalized until the payment is due.
|
|
2246
|
+
*/
|
|
2247
|
+
days_until_due?: number;
|
|
2248
|
+
/**
|
|
2249
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
2250
|
+
*/
|
|
2251
|
+
description: string;
|
|
2252
|
+
/**
|
|
2253
|
+
* Date on which a payment plan's payment is due.
|
|
2254
|
+
*/
|
|
2255
|
+
due_date?: number;
|
|
2256
|
+
}
|
|
1916
2257
|
interface AutomaticTax {
|
|
1917
2258
|
/**
|
|
1918
2259
|
* 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.
|
|
@@ -1943,6 +2284,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
1943
2284
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1944
2285
|
*/
|
|
1945
2286
|
discount?: string;
|
|
2287
|
+
/**
|
|
2288
|
+
* Details to determine how long the discount should be applied for.
|
|
2289
|
+
*/
|
|
2290
|
+
discount_end?: Discount.DiscountEnd;
|
|
1946
2291
|
/**
|
|
1947
2292
|
* ID of the promotion code to create a new discount for.
|
|
1948
2293
|
*/
|
|
@@ -2036,11 +2381,43 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2036
2381
|
type: Liability.Type;
|
|
2037
2382
|
}
|
|
2038
2383
|
namespace Liability {
|
|
2039
|
-
type Type = 'account' | 'self';
|
|
2384
|
+
type Type = 'account' | 'application' | 'self';
|
|
2385
|
+
}
|
|
2386
|
+
}
|
|
2387
|
+
namespace Discount {
|
|
2388
|
+
interface DiscountEnd {
|
|
2389
|
+
/**
|
|
2390
|
+
* Time span for the redeemed discount.
|
|
2391
|
+
*/
|
|
2392
|
+
duration?: DiscountEnd.Duration;
|
|
2393
|
+
/**
|
|
2394
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2395
|
+
*/
|
|
2396
|
+
timestamp?: number;
|
|
2397
|
+
/**
|
|
2398
|
+
* The type of calculation made to determine when the discount ends.
|
|
2399
|
+
*/
|
|
2400
|
+
type: DiscountEnd.Type;
|
|
2401
|
+
}
|
|
2402
|
+
namespace DiscountEnd {
|
|
2403
|
+
interface Duration {
|
|
2404
|
+
/**
|
|
2405
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2406
|
+
*/
|
|
2407
|
+
interval: Duration.Interval;
|
|
2408
|
+
/**
|
|
2409
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2410
|
+
*/
|
|
2411
|
+
interval_count: number;
|
|
2412
|
+
}
|
|
2413
|
+
type Type = 'duration' | 'timestamp';
|
|
2414
|
+
namespace Duration {
|
|
2415
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2416
|
+
}
|
|
2040
2417
|
}
|
|
2041
2418
|
}
|
|
2042
2419
|
namespace Issuer {
|
|
2043
|
-
type Type = 'account' | 'self';
|
|
2420
|
+
type Type = 'account' | 'application' | 'self';
|
|
2044
2421
|
}
|
|
2045
2422
|
namespace PaymentSettings {
|
|
2046
2423
|
interface PaymentMethodOptions {
|
|
@@ -2052,14 +2429,30 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2052
2429
|
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
2053
2430
|
*/
|
|
2054
2431
|
bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
|
|
2432
|
+
/**
|
|
2433
|
+
* If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
|
|
2434
|
+
*/
|
|
2435
|
+
bizum?: Emptyable<PaymentMethodOptions.Bizum>;
|
|
2436
|
+
/**
|
|
2437
|
+
* If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
2438
|
+
*/
|
|
2439
|
+
blik?: Emptyable<PaymentMethodOptions.Blik>;
|
|
2055
2440
|
/**
|
|
2056
2441
|
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
2057
2442
|
*/
|
|
2058
2443
|
card?: Emptyable<PaymentMethodOptions.Card>;
|
|
2444
|
+
/**
|
|
2445
|
+
* If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
|
|
2446
|
+
*/
|
|
2447
|
+
check_scan?: Emptyable<PaymentMethodOptions.CheckScan>;
|
|
2059
2448
|
/**
|
|
2060
2449
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2061
2450
|
*/
|
|
2062
2451
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
2452
|
+
/**
|
|
2453
|
+
* 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.
|
|
2454
|
+
*/
|
|
2455
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
2063
2456
|
/**
|
|
2064
2457
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
2065
2458
|
*/
|
|
@@ -2084,8 +2477,12 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2084
2477
|
* If paying by `us_bank_account`, this sub-hash contains details about the ACH direct debit payment method options to pass to the invoice's PaymentIntent.
|
|
2085
2478
|
*/
|
|
2086
2479
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
2480
|
+
/**
|
|
2481
|
+
* If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent.
|
|
2482
|
+
*/
|
|
2483
|
+
wechat_pay?: Emptyable<PaymentMethodOptions.WechatPay>;
|
|
2087
2484
|
}
|
|
2088
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
2485
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'bizum' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'check_scan' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
2089
2486
|
namespace PaymentMethodOptions {
|
|
2090
2487
|
interface AcssDebit {
|
|
2091
2488
|
/**
|
|
@@ -2103,6 +2500,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2103
2500
|
*/
|
|
2104
2501
|
preferred_language?: Bancontact.PreferredLanguage;
|
|
2105
2502
|
}
|
|
2503
|
+
interface Bizum {
|
|
2504
|
+
}
|
|
2505
|
+
interface Blik {
|
|
2506
|
+
}
|
|
2106
2507
|
interface Card {
|
|
2107
2508
|
/**
|
|
2108
2509
|
* Installment configuration for payments attempted on this invoice.
|
|
@@ -2115,6 +2516,8 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2115
2516
|
*/
|
|
2116
2517
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
2117
2518
|
}
|
|
2519
|
+
interface CheckScan {
|
|
2520
|
+
}
|
|
2118
2521
|
interface CustomerBalance {
|
|
2119
2522
|
/**
|
|
2120
2523
|
* Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
@@ -2125,6 +2528,8 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2125
2528
|
*/
|
|
2126
2529
|
funding_type?: string;
|
|
2127
2530
|
}
|
|
2531
|
+
interface IdBankTransfer {
|
|
2532
|
+
}
|
|
2128
2533
|
interface Konbini {
|
|
2129
2534
|
}
|
|
2130
2535
|
interface Payto {
|
|
@@ -2161,6 +2566,16 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2161
2566
|
*/
|
|
2162
2567
|
verification_method?: UsBankAccount.VerificationMethod;
|
|
2163
2568
|
}
|
|
2569
|
+
interface WechatPay {
|
|
2570
|
+
/**
|
|
2571
|
+
* The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
|
|
2572
|
+
*/
|
|
2573
|
+
app_id?: string;
|
|
2574
|
+
/**
|
|
2575
|
+
* The client type that the end customer will pay from.
|
|
2576
|
+
*/
|
|
2577
|
+
client?: WechatPay.Client;
|
|
2578
|
+
}
|
|
2164
2579
|
namespace AcssDebit {
|
|
2165
2580
|
interface MandateOptions {
|
|
2166
2581
|
/**
|
|
@@ -2293,14 +2708,21 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2293
2708
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2294
2709
|
*/
|
|
2295
2710
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2711
|
+
/**
|
|
2712
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
2713
|
+
*/
|
|
2714
|
+
institution?: string;
|
|
2296
2715
|
}
|
|
2297
2716
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
2298
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2717
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
|
|
2299
2718
|
namespace Filters {
|
|
2300
2719
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2301
2720
|
}
|
|
2302
2721
|
}
|
|
2303
2722
|
}
|
|
2723
|
+
namespace WechatPay {
|
|
2724
|
+
type Client = 'android' | 'ios' | 'mobile_web' | 'web';
|
|
2725
|
+
}
|
|
2304
2726
|
}
|
|
2305
2727
|
}
|
|
2306
2728
|
namespace Rendering {
|
|
@@ -2423,6 +2845,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2423
2845
|
}
|
|
2424
2846
|
}
|
|
2425
2847
|
export interface InvoiceListParams extends PaginationParams {
|
|
2848
|
+
/**
|
|
2849
|
+
* Only return invoices for the cadence specified by this billing cadence ID.
|
|
2850
|
+
*/
|
|
2851
|
+
billing_cadence?: string;
|
|
2426
2852
|
/**
|
|
2427
2853
|
* The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.
|
|
2428
2854
|
*/
|
|
@@ -2497,6 +2923,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2497
2923
|
* ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
|
|
2498
2924
|
*/
|
|
2499
2925
|
invoice_item?: string;
|
|
2926
|
+
/**
|
|
2927
|
+
* 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.
|
|
2928
|
+
*/
|
|
2929
|
+
margins?: Emptyable<Array<string>>;
|
|
2500
2930
|
/**
|
|
2501
2931
|
* 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`.
|
|
2502
2932
|
*/
|
|
@@ -2540,6 +2970,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2540
2970
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2541
2971
|
*/
|
|
2542
2972
|
discount?: string;
|
|
2973
|
+
/**
|
|
2974
|
+
* Details to determine how long the discount should be applied for.
|
|
2975
|
+
*/
|
|
2976
|
+
discount_end?: Discount.DiscountEnd;
|
|
2543
2977
|
/**
|
|
2544
2978
|
* ID of the promotion code to create a new discount for.
|
|
2545
2979
|
*/
|
|
@@ -2607,6 +3041,38 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2607
3041
|
*/
|
|
2608
3042
|
taxable_amount: number;
|
|
2609
3043
|
}
|
|
3044
|
+
namespace Discount {
|
|
3045
|
+
interface DiscountEnd {
|
|
3046
|
+
/**
|
|
3047
|
+
* Time span for the redeemed discount.
|
|
3048
|
+
*/
|
|
3049
|
+
duration?: DiscountEnd.Duration;
|
|
3050
|
+
/**
|
|
3051
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3052
|
+
*/
|
|
3053
|
+
timestamp?: number;
|
|
3054
|
+
/**
|
|
3055
|
+
* The type of calculation made to determine when the discount ends.
|
|
3056
|
+
*/
|
|
3057
|
+
type: DiscountEnd.Type;
|
|
3058
|
+
}
|
|
3059
|
+
namespace DiscountEnd {
|
|
3060
|
+
interface Duration {
|
|
3061
|
+
/**
|
|
3062
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3063
|
+
*/
|
|
3064
|
+
interval: Duration.Interval;
|
|
3065
|
+
/**
|
|
3066
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3067
|
+
*/
|
|
3068
|
+
interval_count: number;
|
|
3069
|
+
}
|
|
3070
|
+
type Type = 'duration' | 'timestamp';
|
|
3071
|
+
namespace Duration {
|
|
3072
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
3073
|
+
}
|
|
3074
|
+
}
|
|
3075
|
+
}
|
|
2610
3076
|
namespace PriceData {
|
|
2611
3077
|
interface ProductData {
|
|
2612
3078
|
/**
|
|
@@ -2629,12 +3095,28 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2629
3095
|
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
2630
3096
|
*/
|
|
2631
3097
|
tax_code?: string;
|
|
3098
|
+
/**
|
|
3099
|
+
* Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location.
|
|
3100
|
+
*/
|
|
3101
|
+
tax_details?: ProductData.TaxDetails;
|
|
2632
3102
|
/**
|
|
2633
3103
|
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
2634
3104
|
*/
|
|
2635
3105
|
unit_label?: string;
|
|
2636
3106
|
}
|
|
2637
3107
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3108
|
+
namespace ProductData {
|
|
3109
|
+
interface TaxDetails {
|
|
3110
|
+
/**
|
|
3111
|
+
* A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
3112
|
+
*/
|
|
3113
|
+
performance_location?: string;
|
|
3114
|
+
/**
|
|
3115
|
+
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
3116
|
+
*/
|
|
3117
|
+
tax_code?: Emptyable<string>;
|
|
3118
|
+
}
|
|
3119
|
+
}
|
|
2638
3120
|
}
|
|
2639
3121
|
namespace TaxAmount {
|
|
2640
3122
|
interface TaxRateData {
|
|
@@ -2684,6 +3166,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2684
3166
|
}
|
|
2685
3167
|
}
|
|
2686
3168
|
export interface InvoiceAttachPaymentParams {
|
|
3169
|
+
/**
|
|
3170
|
+
* The portion of the `amount` on the PaymentIntent or out of band payment to apply to this invoice. It defaults to the entire amount.
|
|
3171
|
+
*/
|
|
3172
|
+
amount_requested?: number;
|
|
2687
3173
|
/**
|
|
2688
3174
|
* Specifies which fields in the response should be expanded.
|
|
2689
3175
|
*/
|
|
@@ -2696,12 +3182,48 @@ export interface InvoiceAttachPaymentParams {
|
|
|
2696
3182
|
* The ID of the PaymentRecord to attach to the invoice.
|
|
2697
3183
|
*/
|
|
2698
3184
|
payment_record?: string;
|
|
3185
|
+
/**
|
|
3186
|
+
* The PaymentRecord data for attaching an out of band payment to the invoice.
|
|
3187
|
+
*/
|
|
3188
|
+
payment_record_data?: InvoiceAttachPaymentParams.PaymentRecordData;
|
|
3189
|
+
}
|
|
3190
|
+
export declare namespace InvoiceAttachPaymentParams {
|
|
3191
|
+
interface PaymentRecordData {
|
|
3192
|
+
/**
|
|
3193
|
+
* The amount that was paid out of band.
|
|
3194
|
+
*/
|
|
3195
|
+
amount: number;
|
|
3196
|
+
/**
|
|
3197
|
+
* The currency that was paid out of band.
|
|
3198
|
+
*/
|
|
3199
|
+
currency: string;
|
|
3200
|
+
/**
|
|
3201
|
+
* 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`.
|
|
3202
|
+
*/
|
|
3203
|
+
metadata?: Emptyable<MetadataParam>;
|
|
3204
|
+
/**
|
|
3205
|
+
* The type of money movement for this out of band payment record.
|
|
3206
|
+
*/
|
|
3207
|
+
money_movement_type: string;
|
|
3208
|
+
/**
|
|
3209
|
+
* The timestamp when this out of band payment was paid.
|
|
3210
|
+
*/
|
|
3211
|
+
paid_at?: number;
|
|
3212
|
+
/**
|
|
3213
|
+
* The reference for this out of band payment record.
|
|
3214
|
+
*/
|
|
3215
|
+
payment_reference?: string;
|
|
3216
|
+
}
|
|
2699
3217
|
}
|
|
2700
3218
|
export interface InvoiceCreatePreviewParams {
|
|
2701
3219
|
/**
|
|
2702
3220
|
* Settings for automatic tax lookup for this invoice preview.
|
|
2703
3221
|
*/
|
|
2704
3222
|
automatic_tax?: InvoiceCreatePreviewParams.AutomaticTax;
|
|
3223
|
+
/**
|
|
3224
|
+
* The identifier of the billing cadence for which you'd like to retrieve the upcoming invoice. Cannot be provided when `subscription`, `schedule`, `subscription_details` or `schedule_details` are provided.
|
|
3225
|
+
*/
|
|
3226
|
+
billing_cadence?: string;
|
|
2705
3227
|
/**
|
|
2706
3228
|
* The currency to preview this invoice in. Defaults to that of `customer` if not specified.
|
|
2707
3229
|
*/
|
|
@@ -2801,10 +3323,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
2801
3323
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2802
3324
|
*/
|
|
2803
3325
|
discount?: string;
|
|
3326
|
+
/**
|
|
3327
|
+
* Details to determine how long the discount should be applied for.
|
|
3328
|
+
*/
|
|
3329
|
+
discount_end?: Discount.DiscountEnd;
|
|
2804
3330
|
/**
|
|
2805
3331
|
* ID of the promotion code to create a new discount for.
|
|
2806
3332
|
*/
|
|
2807
3333
|
promotion_code?: string;
|
|
3334
|
+
/**
|
|
3335
|
+
* Settings for discount application including service period anchoring.
|
|
3336
|
+
*/
|
|
3337
|
+
settings?: Discount.Settings;
|
|
2808
3338
|
}
|
|
2809
3339
|
interface InvoiceItem {
|
|
2810
3340
|
/**
|
|
@@ -2888,10 +3418,26 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
2888
3418
|
}
|
|
2889
3419
|
type PreviewMode = 'next' | 'recurring';
|
|
2890
3420
|
interface ScheduleDetails {
|
|
3421
|
+
/**
|
|
3422
|
+
* Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
3423
|
+
*/
|
|
3424
|
+
amendments?: Array<ScheduleDetails.Amendment>;
|
|
3425
|
+
/**
|
|
3426
|
+
* 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.
|
|
3427
|
+
*/
|
|
3428
|
+
billing_behavior?: ScheduleDetails.BillingBehavior;
|
|
2891
3429
|
/**
|
|
2892
3430
|
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
2893
3431
|
*/
|
|
2894
3432
|
billing_mode?: ScheduleDetails.BillingMode;
|
|
3433
|
+
/**
|
|
3434
|
+
* Sets the billing schedules for the subscription schedule.
|
|
3435
|
+
*/
|
|
3436
|
+
billing_schedules?: Emptyable<Array<ScheduleDetails.BillingSchedule>>;
|
|
3437
|
+
/**
|
|
3438
|
+
* Object representing the subscription schedule's default settings.
|
|
3439
|
+
*/
|
|
3440
|
+
default_settings?: ScheduleDetails.DefaultSettings;
|
|
2895
3441
|
/**
|
|
2896
3442
|
* Behavior of the subscription schedule and underlying subscription when it ends. Possible values are `release` or `cancel` with the default being `release`. `release` will end the subscription schedule and keep the underlying subscription running. `cancel` will end the subscription schedule and cancel the underlying subscription.
|
|
2897
3443
|
*/
|
|
@@ -2900,6 +3446,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
2900
3446
|
* 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.
|
|
2901
3447
|
*/
|
|
2902
3448
|
phases?: Array<ScheduleDetails.Phase>;
|
|
3449
|
+
/**
|
|
3450
|
+
* Provide any time periods to bill in advance.
|
|
3451
|
+
*/
|
|
3452
|
+
prebilling?: Emptyable<Array<ScheduleDetails.Prebilling>>;
|
|
2903
3453
|
/**
|
|
2904
3454
|
* In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
|
|
2905
3455
|
*/
|
|
@@ -2938,6 +3488,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
2938
3488
|
* A list of up to 20 subscription items, each with an attached price.
|
|
2939
3489
|
*/
|
|
2940
3490
|
items?: Array<SubscriptionDetails.Item>;
|
|
3491
|
+
/**
|
|
3492
|
+
* The pre-billing to apply to the subscription as a preview.
|
|
3493
|
+
*/
|
|
3494
|
+
prebilling?: SubscriptionDetails.Prebilling;
|
|
2941
3495
|
/**
|
|
2942
3496
|
* 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`.
|
|
2943
3497
|
*/
|
|
@@ -2971,7 +3525,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
2971
3525
|
type: Liability.Type;
|
|
2972
3526
|
}
|
|
2973
3527
|
namespace Liability {
|
|
2974
|
-
type Type = 'account' | 'self';
|
|
3528
|
+
type Type = 'account' | 'application' | 'self';
|
|
2975
3529
|
}
|
|
2976
3530
|
}
|
|
2977
3531
|
namespace CustomerDetails {
|
|
@@ -3010,6 +3564,86 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3010
3564
|
type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_arn' | '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' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'gb_vat' | 'ge_vat' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'id_npwp' | 'il_vat' | 'in_gst' | '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_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | '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';
|
|
3011
3565
|
}
|
|
3012
3566
|
}
|
|
3567
|
+
namespace Discount {
|
|
3568
|
+
interface DiscountEnd {
|
|
3569
|
+
/**
|
|
3570
|
+
* Time span for the redeemed discount.
|
|
3571
|
+
*/
|
|
3572
|
+
duration?: DiscountEnd.Duration;
|
|
3573
|
+
/**
|
|
3574
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3575
|
+
*/
|
|
3576
|
+
timestamp?: number;
|
|
3577
|
+
/**
|
|
3578
|
+
* The type of calculation made to determine when the discount ends.
|
|
3579
|
+
*/
|
|
3580
|
+
type: DiscountEnd.Type;
|
|
3581
|
+
}
|
|
3582
|
+
interface Settings {
|
|
3583
|
+
/**
|
|
3584
|
+
* Configures service period cycle anchoring.
|
|
3585
|
+
*/
|
|
3586
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
3587
|
+
/**
|
|
3588
|
+
* The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `now` if omitted.
|
|
3589
|
+
*/
|
|
3590
|
+
start_date?: Settings.StartDate;
|
|
3591
|
+
}
|
|
3592
|
+
namespace DiscountEnd {
|
|
3593
|
+
interface Duration {
|
|
3594
|
+
/**
|
|
3595
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3596
|
+
*/
|
|
3597
|
+
interval: Duration.Interval;
|
|
3598
|
+
/**
|
|
3599
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3600
|
+
*/
|
|
3601
|
+
interval_count: number;
|
|
3602
|
+
}
|
|
3603
|
+
type Type = 'duration' | 'timestamp';
|
|
3604
|
+
namespace Duration {
|
|
3605
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
3608
|
+
namespace Settings {
|
|
3609
|
+
interface ServicePeriodAnchorConfig {
|
|
3610
|
+
/**
|
|
3611
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
3612
|
+
*/
|
|
3613
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
3614
|
+
/**
|
|
3615
|
+
* The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
3616
|
+
*/
|
|
3617
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
3618
|
+
}
|
|
3619
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'now';
|
|
3620
|
+
namespace ServicePeriodAnchorConfig {
|
|
3621
|
+
interface Custom {
|
|
3622
|
+
/**
|
|
3623
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
3624
|
+
*/
|
|
3625
|
+
day_of_month: number;
|
|
3626
|
+
/**
|
|
3627
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
3628
|
+
*/
|
|
3629
|
+
hour?: number;
|
|
3630
|
+
/**
|
|
3631
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
3632
|
+
*/
|
|
3633
|
+
minute?: number;
|
|
3634
|
+
/**
|
|
3635
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
3636
|
+
*/
|
|
3637
|
+
month?: number;
|
|
3638
|
+
/**
|
|
3639
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
3640
|
+
*/
|
|
3641
|
+
second?: number;
|
|
3642
|
+
}
|
|
3643
|
+
type Type = 'custom' | 'subscription_service_cycle_anchor';
|
|
3644
|
+
}
|
|
3645
|
+
}
|
|
3646
|
+
}
|
|
3013
3647
|
namespace InvoiceItem {
|
|
3014
3648
|
interface Discount {
|
|
3015
3649
|
/**
|
|
@@ -3020,6 +3654,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3020
3654
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3021
3655
|
*/
|
|
3022
3656
|
discount?: string;
|
|
3657
|
+
/**
|
|
3658
|
+
* Details to determine how long the discount should be applied for.
|
|
3659
|
+
*/
|
|
3660
|
+
discount_end?: Discount.DiscountEnd;
|
|
3023
3661
|
/**
|
|
3024
3662
|
* ID of the promotion code to create a new discount for.
|
|
3025
3663
|
*/
|
|
@@ -3058,14 +3696,97 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3058
3696
|
unit_amount_decimal?: Decimal;
|
|
3059
3697
|
}
|
|
3060
3698
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3699
|
+
namespace Discount {
|
|
3700
|
+
interface DiscountEnd {
|
|
3701
|
+
/**
|
|
3702
|
+
* Time span for the redeemed discount.
|
|
3703
|
+
*/
|
|
3704
|
+
duration?: DiscountEnd.Duration;
|
|
3705
|
+
/**
|
|
3706
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3707
|
+
*/
|
|
3708
|
+
timestamp?: number;
|
|
3709
|
+
/**
|
|
3710
|
+
* The type of calculation made to determine when the discount ends.
|
|
3711
|
+
*/
|
|
3712
|
+
type: DiscountEnd.Type;
|
|
3713
|
+
}
|
|
3714
|
+
namespace DiscountEnd {
|
|
3715
|
+
interface Duration {
|
|
3716
|
+
/**
|
|
3717
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3718
|
+
*/
|
|
3719
|
+
interval: Duration.Interval;
|
|
3720
|
+
/**
|
|
3721
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3722
|
+
*/
|
|
3723
|
+
interval_count: number;
|
|
3724
|
+
}
|
|
3725
|
+
type Type = 'duration' | 'timestamp';
|
|
3726
|
+
namespace Duration {
|
|
3727
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
3728
|
+
}
|
|
3729
|
+
}
|
|
3730
|
+
}
|
|
3061
3731
|
namespace PriceData {
|
|
3062
3732
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
3063
3733
|
}
|
|
3064
3734
|
}
|
|
3065
3735
|
namespace Issuer {
|
|
3066
|
-
type Type = 'account' | 'self';
|
|
3736
|
+
type Type = 'account' | 'application' | 'self';
|
|
3067
3737
|
}
|
|
3068
3738
|
namespace ScheduleDetails {
|
|
3739
|
+
interface Amendment {
|
|
3740
|
+
/**
|
|
3741
|
+
* 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.
|
|
3742
|
+
*/
|
|
3743
|
+
amendment_end?: Amendment.AmendmentEnd;
|
|
3744
|
+
/**
|
|
3745
|
+
* Details to identify the earliest timestamp where the proposed change should take effect.
|
|
3746
|
+
*/
|
|
3747
|
+
amendment_start: Amendment.AmendmentStart;
|
|
3748
|
+
/**
|
|
3749
|
+
* 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.
|
|
3750
|
+
*/
|
|
3751
|
+
billing_cycle_anchor?: Amendment.BillingCycleAnchor;
|
|
3752
|
+
/**
|
|
3753
|
+
* Actions to apply to the billing schedules.
|
|
3754
|
+
*/
|
|
3755
|
+
billing_schedules_actions?: Array<Amendment.BillingSchedulesAction>;
|
|
3756
|
+
/**
|
|
3757
|
+
* Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
3758
|
+
*/
|
|
3759
|
+
discount_actions?: Array<Amendment.DiscountAction>;
|
|
3760
|
+
/**
|
|
3761
|
+
* Configures how the subscription schedule handles billing for phase transitions.
|
|
3762
|
+
*/
|
|
3763
|
+
effective_at?: Amendment.EffectiveAt;
|
|
3764
|
+
/**
|
|
3765
|
+
* Changes to the subscription items during the amendment time span.
|
|
3766
|
+
*/
|
|
3767
|
+
item_actions?: Array<Amendment.ItemAction>;
|
|
3768
|
+
/**
|
|
3769
|
+
* Instructions for how to modify phase metadata
|
|
3770
|
+
*/
|
|
3771
|
+
metadata_actions?: Array<Amendment.MetadataAction>;
|
|
3772
|
+
/**
|
|
3773
|
+
* 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`.
|
|
3774
|
+
*/
|
|
3775
|
+
proration_behavior?: Amendment.ProrationBehavior;
|
|
3776
|
+
/**
|
|
3777
|
+
* Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
3778
|
+
*/
|
|
3779
|
+
set_pause_collection?: Amendment.SetPauseCollection;
|
|
3780
|
+
/**
|
|
3781
|
+
* Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
3782
|
+
*/
|
|
3783
|
+
set_schedule_end?: Amendment.SetScheduleEnd;
|
|
3784
|
+
/**
|
|
3785
|
+
* Settings related to subscription trials.
|
|
3786
|
+
*/
|
|
3787
|
+
trial_settings?: Amendment.TrialSettings;
|
|
3788
|
+
}
|
|
3789
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front';
|
|
3069
3790
|
interface BillingMode {
|
|
3070
3791
|
/**
|
|
3071
3792
|
* Configure behavior for flexible billing mode.
|
|
@@ -3076,6 +3797,26 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3076
3797
|
*/
|
|
3077
3798
|
type: BillingMode.Type;
|
|
3078
3799
|
}
|
|
3800
|
+
interface BillingSchedule {
|
|
3801
|
+
/**
|
|
3802
|
+
* Configure billing schedule differently for individual subscription items.
|
|
3803
|
+
*/
|
|
3804
|
+
applies_to?: Array<BillingSchedule.AppliesTo>;
|
|
3805
|
+
/**
|
|
3806
|
+
* The end date for the billing schedule.
|
|
3807
|
+
*/
|
|
3808
|
+
bill_until?: BillingSchedule.BillUntil;
|
|
3809
|
+
/**
|
|
3810
|
+
* Specify a key for the billing schedule. Must be unique to this field, alphanumeric, and up to 200 characters. If not provided, a unique key will be generated.
|
|
3811
|
+
*/
|
|
3812
|
+
key?: string;
|
|
3813
|
+
}
|
|
3814
|
+
interface DefaultSettings {
|
|
3815
|
+
/**
|
|
3816
|
+
* Configures how the subscription schedule handles billing for phase transitions.
|
|
3817
|
+
*/
|
|
3818
|
+
phase_effective_at?: DefaultSettings.PhaseEffectiveAt;
|
|
3819
|
+
}
|
|
3079
3820
|
type EndBehavior = 'cancel' | 'release';
|
|
3080
3821
|
interface Phase {
|
|
3081
3822
|
/**
|
|
@@ -3126,6 +3867,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3126
3867
|
* The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
3127
3868
|
*/
|
|
3128
3869
|
duration?: Phase.Duration;
|
|
3870
|
+
/**
|
|
3871
|
+
* Configures how the subscription schedule handles billing for phase transitions.
|
|
3872
|
+
*/
|
|
3873
|
+
effective_at?: Phase.EffectiveAt;
|
|
3129
3874
|
/**
|
|
3130
3875
|
* The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
3131
3876
|
*/
|
|
@@ -3146,6 +3891,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3146
3891
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
3147
3892
|
*/
|
|
3148
3893
|
on_behalf_of?: string;
|
|
3894
|
+
/**
|
|
3895
|
+
* 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).
|
|
3896
|
+
*/
|
|
3897
|
+
pause_collection?: Phase.PauseCollection;
|
|
3149
3898
|
/**
|
|
3150
3899
|
* 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.
|
|
3151
3900
|
*/
|
|
@@ -3162,12 +3911,702 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3162
3911
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
3163
3912
|
*/
|
|
3164
3913
|
trial?: boolean;
|
|
3914
|
+
/**
|
|
3915
|
+
* Specify trial behavior when crossing phase boundaries
|
|
3916
|
+
*/
|
|
3917
|
+
trial_continuation?: Phase.TrialContinuation;
|
|
3165
3918
|
/**
|
|
3166
3919
|
* Sets the phase to trialing from the start date to this date. Must be before the phase end date, can not be combined with `trial`
|
|
3167
3920
|
*/
|
|
3168
3921
|
trial_end?: number | 'now';
|
|
3922
|
+
/**
|
|
3923
|
+
* Settings related to subscription trials.
|
|
3924
|
+
*/
|
|
3925
|
+
trial_settings?: Phase.TrialSettings;
|
|
3926
|
+
}
|
|
3927
|
+
interface Prebilling {
|
|
3928
|
+
/**
|
|
3929
|
+
* The end of the prebilled time period.
|
|
3930
|
+
*/
|
|
3931
|
+
bill_until?: Prebilling.BillUntil;
|
|
3932
|
+
/**
|
|
3933
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
3934
|
+
*/
|
|
3935
|
+
iterations?: number;
|
|
3169
3936
|
}
|
|
3170
3937
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
3938
|
+
namespace Amendment {
|
|
3939
|
+
interface AmendmentEnd {
|
|
3940
|
+
/**
|
|
3941
|
+
* Use the `end` time of a given discount.
|
|
3942
|
+
*/
|
|
3943
|
+
discount_end?: AmendmentEnd.DiscountEnd;
|
|
3944
|
+
/**
|
|
3945
|
+
* Time span for the amendment starting from the `amendment_start`.
|
|
3946
|
+
*/
|
|
3947
|
+
duration?: AmendmentEnd.Duration;
|
|
3948
|
+
/**
|
|
3949
|
+
* A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
3950
|
+
*/
|
|
3951
|
+
timestamp?: number;
|
|
3952
|
+
/**
|
|
3953
|
+
* Select one of three ways to pass the `amendment_end`.
|
|
3954
|
+
*/
|
|
3955
|
+
type: AmendmentEnd.Type;
|
|
3956
|
+
}
|
|
3957
|
+
interface AmendmentStart {
|
|
3958
|
+
/**
|
|
3959
|
+
* Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
3960
|
+
*/
|
|
3961
|
+
amendment_end?: AmendmentStart.AmendmentEnd;
|
|
3962
|
+
/**
|
|
3963
|
+
* Use the `end` time of a given discount.
|
|
3964
|
+
*/
|
|
3965
|
+
discount_end?: AmendmentStart.DiscountEnd;
|
|
3966
|
+
/**
|
|
3967
|
+
* A precise Unix timestamp for the amendment to start.
|
|
3968
|
+
*/
|
|
3969
|
+
timestamp?: number;
|
|
3970
|
+
/**
|
|
3971
|
+
* Select one of three ways to pass the `amendment_start`.
|
|
3972
|
+
*/
|
|
3973
|
+
type: AmendmentStart.Type;
|
|
3974
|
+
}
|
|
3975
|
+
type BillingCycleAnchor = 'amendment_start' | 'automatic';
|
|
3976
|
+
interface BillingSchedulesAction {
|
|
3977
|
+
/**
|
|
3978
|
+
* Specify which subscription items the billing schedule applies to.
|
|
3979
|
+
*/
|
|
3980
|
+
applies_to?: Array<BillingSchedulesAction.AppliesTo>;
|
|
3981
|
+
/**
|
|
3982
|
+
* Select the action.
|
|
3983
|
+
*/
|
|
3984
|
+
type: BillingSchedulesAction.Type;
|
|
3985
|
+
}
|
|
3986
|
+
interface DiscountAction {
|
|
3987
|
+
/**
|
|
3988
|
+
* Details of the discount to add.
|
|
3989
|
+
*/
|
|
3990
|
+
add?: DiscountAction.Add;
|
|
3991
|
+
/**
|
|
3992
|
+
* Details of the discount to remove.
|
|
3993
|
+
*/
|
|
3994
|
+
remove?: DiscountAction.Remove;
|
|
3995
|
+
/**
|
|
3996
|
+
* Details of the discount to replace the existing discounts with.
|
|
3997
|
+
*/
|
|
3998
|
+
set?: DiscountAction.Set;
|
|
3999
|
+
/**
|
|
4000
|
+
* Determines the type of discount action.
|
|
4001
|
+
*/
|
|
4002
|
+
type: DiscountAction.Type;
|
|
4003
|
+
}
|
|
4004
|
+
type EffectiveAt = 'amendment_start' | 'billing_period_start';
|
|
4005
|
+
interface ItemAction {
|
|
4006
|
+
/**
|
|
4007
|
+
* 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.
|
|
4008
|
+
*/
|
|
4009
|
+
add?: ItemAction.Add;
|
|
4010
|
+
/**
|
|
4011
|
+
* Details of the subscription item to remove.
|
|
4012
|
+
*/
|
|
4013
|
+
remove?: ItemAction.Remove;
|
|
4014
|
+
/**
|
|
4015
|
+
* 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.
|
|
4016
|
+
*/
|
|
4017
|
+
set?: ItemAction.Set;
|
|
4018
|
+
/**
|
|
4019
|
+
* Determines the type of item action.
|
|
4020
|
+
*/
|
|
4021
|
+
type: ItemAction.Type;
|
|
4022
|
+
}
|
|
4023
|
+
interface MetadataAction {
|
|
4024
|
+
/**
|
|
4025
|
+
* Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
4026
|
+
*/
|
|
4027
|
+
add?: {
|
|
4028
|
+
[key: string]: string;
|
|
4029
|
+
};
|
|
4030
|
+
/**
|
|
4031
|
+
* Keys to remove from schedule phase metadata.
|
|
4032
|
+
*/
|
|
4033
|
+
remove?: Array<string>;
|
|
4034
|
+
/**
|
|
4035
|
+
* Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
4036
|
+
*/
|
|
4037
|
+
set?: Emptyable<{
|
|
4038
|
+
[key: string]: string;
|
|
4039
|
+
}>;
|
|
4040
|
+
/**
|
|
4041
|
+
* Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
4042
|
+
*/
|
|
4043
|
+
type: MetadataAction.Type;
|
|
4044
|
+
}
|
|
4045
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
4046
|
+
interface SetPauseCollection {
|
|
4047
|
+
/**
|
|
4048
|
+
* Details of the pause_collection behavior to apply to the amendment.
|
|
4049
|
+
*/
|
|
4050
|
+
set?: SetPauseCollection.Set;
|
|
4051
|
+
/**
|
|
4052
|
+
* Determines the type of the pause_collection amendment.
|
|
4053
|
+
*/
|
|
4054
|
+
type: SetPauseCollection.Type;
|
|
4055
|
+
}
|
|
4056
|
+
type SetScheduleEnd = 'amendment_end' | 'amendment_start';
|
|
4057
|
+
interface TrialSettings {
|
|
4058
|
+
/**
|
|
4059
|
+
* Defines how the subscription should behave when a trial ends.
|
|
4060
|
+
*/
|
|
4061
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
4062
|
+
}
|
|
4063
|
+
namespace AmendmentEnd {
|
|
4064
|
+
interface DiscountEnd {
|
|
4065
|
+
/**
|
|
4066
|
+
* The ID of a specific discount.
|
|
4067
|
+
*/
|
|
4068
|
+
discount: string;
|
|
4069
|
+
}
|
|
4070
|
+
interface Duration {
|
|
4071
|
+
/**
|
|
4072
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4073
|
+
*/
|
|
4074
|
+
interval: Duration.Interval;
|
|
4075
|
+
/**
|
|
4076
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4077
|
+
*/
|
|
4078
|
+
interval_count: number;
|
|
4079
|
+
}
|
|
4080
|
+
type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
|
|
4081
|
+
namespace Duration {
|
|
4082
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4083
|
+
}
|
|
4084
|
+
}
|
|
4085
|
+
namespace AmendmentStart {
|
|
4086
|
+
interface AmendmentEnd {
|
|
4087
|
+
/**
|
|
4088
|
+
* 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.
|
|
4089
|
+
*/
|
|
4090
|
+
index: number;
|
|
4091
|
+
}
|
|
4092
|
+
interface DiscountEnd {
|
|
4093
|
+
/**
|
|
4094
|
+
* The ID of a specific discount.
|
|
4095
|
+
*/
|
|
4096
|
+
discount: string;
|
|
4097
|
+
}
|
|
4098
|
+
type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice';
|
|
4099
|
+
}
|
|
4100
|
+
namespace BillingSchedulesAction {
|
|
4101
|
+
interface AppliesTo {
|
|
4102
|
+
/**
|
|
4103
|
+
* The ID of the price object.
|
|
4104
|
+
*/
|
|
4105
|
+
price?: string;
|
|
4106
|
+
/**
|
|
4107
|
+
* Controls which subscription items the billing schedule applies to.
|
|
4108
|
+
*/
|
|
4109
|
+
type: 'price';
|
|
4110
|
+
}
|
|
4111
|
+
type Type = 'remove' | 'set';
|
|
4112
|
+
}
|
|
4113
|
+
namespace DiscountAction {
|
|
4114
|
+
interface Add {
|
|
4115
|
+
/**
|
|
4116
|
+
* The coupon code to redeem.
|
|
4117
|
+
*/
|
|
4118
|
+
coupon?: string;
|
|
4119
|
+
/**
|
|
4120
|
+
* An ID of an existing discount for a coupon that was already redeemed.
|
|
4121
|
+
*/
|
|
4122
|
+
discount?: string;
|
|
4123
|
+
/**
|
|
4124
|
+
* Details to determine how long the discount should be applied for.
|
|
4125
|
+
*/
|
|
4126
|
+
discount_end?: Add.DiscountEnd;
|
|
4127
|
+
/**
|
|
4128
|
+
* 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.
|
|
4129
|
+
*/
|
|
4130
|
+
index?: number;
|
|
4131
|
+
/**
|
|
4132
|
+
* The promotion code to redeem.
|
|
4133
|
+
*/
|
|
4134
|
+
promotion_code?: string;
|
|
4135
|
+
/**
|
|
4136
|
+
* Settings for discount application including service period anchoring.
|
|
4137
|
+
*/
|
|
4138
|
+
settings?: Add.Settings;
|
|
4139
|
+
}
|
|
4140
|
+
interface Remove {
|
|
4141
|
+
/**
|
|
4142
|
+
* The coupon code to remove from the `discounts` array.
|
|
4143
|
+
*/
|
|
4144
|
+
coupon?: string;
|
|
4145
|
+
/**
|
|
4146
|
+
* The ID of a discount to remove from the `discounts` array.
|
|
4147
|
+
*/
|
|
4148
|
+
discount?: string;
|
|
4149
|
+
/**
|
|
4150
|
+
* The ID of a promotion code to remove from the `discounts` array.
|
|
4151
|
+
*/
|
|
4152
|
+
promotion_code?: string;
|
|
4153
|
+
}
|
|
4154
|
+
interface Set {
|
|
4155
|
+
/**
|
|
4156
|
+
* The coupon code to replace the `discounts` array with.
|
|
4157
|
+
*/
|
|
4158
|
+
coupon?: string;
|
|
4159
|
+
/**
|
|
4160
|
+
* An ID of an existing discount to replace the `discounts` array with.
|
|
4161
|
+
*/
|
|
4162
|
+
discount?: string;
|
|
4163
|
+
/**
|
|
4164
|
+
* An ID of an existing promotion code to replace the `discounts` array with.
|
|
4165
|
+
*/
|
|
4166
|
+
promotion_code?: string;
|
|
4167
|
+
/**
|
|
4168
|
+
* Settings for discount application including service period anchoring.
|
|
4169
|
+
*/
|
|
4170
|
+
settings?: Set.Settings;
|
|
4171
|
+
}
|
|
4172
|
+
type Type = 'add' | 'remove' | 'set';
|
|
4173
|
+
namespace Add {
|
|
4174
|
+
interface DiscountEnd {
|
|
4175
|
+
/**
|
|
4176
|
+
* The type of calculation made to determine when the discount ends.
|
|
4177
|
+
*/
|
|
4178
|
+
type: 'amendment_end';
|
|
4179
|
+
}
|
|
4180
|
+
interface Settings {
|
|
4181
|
+
/**
|
|
4182
|
+
* Configures service period cycle anchoring.
|
|
4183
|
+
*/
|
|
4184
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4185
|
+
/**
|
|
4186
|
+
* The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
4187
|
+
*/
|
|
4188
|
+
start_date?: Settings.StartDate;
|
|
4189
|
+
}
|
|
4190
|
+
namespace Settings {
|
|
4191
|
+
interface ServicePeriodAnchorConfig {
|
|
4192
|
+
/**
|
|
4193
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4194
|
+
*/
|
|
4195
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4196
|
+
/**
|
|
4197
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4198
|
+
*/
|
|
4199
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4200
|
+
}
|
|
4201
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start';
|
|
4202
|
+
namespace ServicePeriodAnchorConfig {
|
|
4203
|
+
interface Custom {
|
|
4204
|
+
/**
|
|
4205
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4206
|
+
*/
|
|
4207
|
+
day_of_month: number;
|
|
4208
|
+
/**
|
|
4209
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4210
|
+
*/
|
|
4211
|
+
hour?: number;
|
|
4212
|
+
/**
|
|
4213
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4214
|
+
*/
|
|
4215
|
+
minute?: number;
|
|
4216
|
+
/**
|
|
4217
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4218
|
+
*/
|
|
4219
|
+
month?: number;
|
|
4220
|
+
/**
|
|
4221
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4222
|
+
*/
|
|
4223
|
+
second?: number;
|
|
4224
|
+
}
|
|
4225
|
+
type Type = 'custom' | 'inherit';
|
|
4226
|
+
}
|
|
4227
|
+
}
|
|
4228
|
+
}
|
|
4229
|
+
namespace Set {
|
|
4230
|
+
interface Settings {
|
|
4231
|
+
/**
|
|
4232
|
+
* Configures service period cycle anchoring.
|
|
4233
|
+
*/
|
|
4234
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4235
|
+
/**
|
|
4236
|
+
* The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
4237
|
+
*/
|
|
4238
|
+
start_date?: Settings.StartDate;
|
|
4239
|
+
}
|
|
4240
|
+
namespace Settings {
|
|
4241
|
+
interface ServicePeriodAnchorConfig {
|
|
4242
|
+
/**
|
|
4243
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4244
|
+
*/
|
|
4245
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4246
|
+
/**
|
|
4247
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4248
|
+
*/
|
|
4249
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4250
|
+
}
|
|
4251
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start';
|
|
4252
|
+
namespace ServicePeriodAnchorConfig {
|
|
4253
|
+
interface Custom {
|
|
4254
|
+
/**
|
|
4255
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4256
|
+
*/
|
|
4257
|
+
day_of_month: number;
|
|
4258
|
+
/**
|
|
4259
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4260
|
+
*/
|
|
4261
|
+
hour?: number;
|
|
4262
|
+
/**
|
|
4263
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4264
|
+
*/
|
|
4265
|
+
minute?: number;
|
|
4266
|
+
/**
|
|
4267
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4268
|
+
*/
|
|
4269
|
+
month?: number;
|
|
4270
|
+
/**
|
|
4271
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4272
|
+
*/
|
|
4273
|
+
second?: number;
|
|
4274
|
+
}
|
|
4275
|
+
type Type = 'custom' | 'inherit';
|
|
4276
|
+
}
|
|
4277
|
+
}
|
|
4278
|
+
}
|
|
4279
|
+
}
|
|
4280
|
+
namespace ItemAction {
|
|
4281
|
+
interface Add {
|
|
4282
|
+
/**
|
|
4283
|
+
* The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
4284
|
+
*/
|
|
4285
|
+
discounts?: Array<Add.Discount>;
|
|
4286
|
+
/**
|
|
4287
|
+
* 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`.
|
|
4288
|
+
*/
|
|
4289
|
+
metadata?: MetadataParam;
|
|
4290
|
+
/**
|
|
4291
|
+
* The ID of the price object.
|
|
4292
|
+
*/
|
|
4293
|
+
price: string;
|
|
4294
|
+
/**
|
|
4295
|
+
* Quantity for this item.
|
|
4296
|
+
*/
|
|
4297
|
+
quantity?: number;
|
|
4298
|
+
/**
|
|
4299
|
+
* 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`.
|
|
4300
|
+
*/
|
|
4301
|
+
tax_rates?: Array<string>;
|
|
4302
|
+
/**
|
|
4303
|
+
* Options that configure the trial on the subscription item.
|
|
4304
|
+
*/
|
|
4305
|
+
trial?: Add.Trial;
|
|
4306
|
+
/**
|
|
4307
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
4308
|
+
*/
|
|
4309
|
+
trial_offer?: string;
|
|
4310
|
+
}
|
|
4311
|
+
interface Remove {
|
|
4312
|
+
/**
|
|
4313
|
+
* ID of a price to remove.
|
|
4314
|
+
*/
|
|
4315
|
+
price: string;
|
|
4316
|
+
}
|
|
4317
|
+
interface Set {
|
|
4318
|
+
/**
|
|
4319
|
+
* 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`.
|
|
4320
|
+
*/
|
|
4321
|
+
discounts?: Array<Set.Discount>;
|
|
4322
|
+
/**
|
|
4323
|
+
* 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`.
|
|
4324
|
+
*/
|
|
4325
|
+
metadata?: MetadataParam;
|
|
4326
|
+
/**
|
|
4327
|
+
* The ID of the price object.
|
|
4328
|
+
*/
|
|
4329
|
+
price: string;
|
|
4330
|
+
/**
|
|
4331
|
+
* 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`.
|
|
4332
|
+
*/
|
|
4333
|
+
quantity?: number;
|
|
4334
|
+
/**
|
|
4335
|
+
* 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`.
|
|
4336
|
+
*/
|
|
4337
|
+
tax_rates?: Array<string>;
|
|
4338
|
+
/**
|
|
4339
|
+
* 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`.
|
|
4340
|
+
*/
|
|
4341
|
+
trial?: Set.Trial;
|
|
4342
|
+
/**
|
|
4343
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
4344
|
+
*/
|
|
4345
|
+
trial_offer?: string;
|
|
4346
|
+
}
|
|
4347
|
+
type Type = 'add' | 'remove' | 'set';
|
|
4348
|
+
namespace Add {
|
|
4349
|
+
interface Discount {
|
|
4350
|
+
/**
|
|
4351
|
+
* ID of the coupon to create a new discount for.
|
|
4352
|
+
*/
|
|
4353
|
+
coupon?: string;
|
|
4354
|
+
/**
|
|
4355
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4356
|
+
*/
|
|
4357
|
+
discount?: string;
|
|
4358
|
+
/**
|
|
4359
|
+
* Details to determine how long the discount should be applied for.
|
|
4360
|
+
*/
|
|
4361
|
+
discount_end?: Discount.DiscountEnd;
|
|
4362
|
+
/**
|
|
4363
|
+
* ID of the promotion code to create a new discount for.
|
|
4364
|
+
*/
|
|
4365
|
+
promotion_code?: string;
|
|
4366
|
+
/**
|
|
4367
|
+
* Settings for discount application including service period anchoring.
|
|
4368
|
+
*/
|
|
4369
|
+
settings?: Discount.Settings;
|
|
4370
|
+
}
|
|
4371
|
+
interface Trial {
|
|
4372
|
+
/**
|
|
4373
|
+
* 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.
|
|
4374
|
+
*/
|
|
4375
|
+
converts_to?: Array<string>;
|
|
4376
|
+
/**
|
|
4377
|
+
* Determines the type of trial for this item.
|
|
4378
|
+
*/
|
|
4379
|
+
type: Trial.Type;
|
|
4380
|
+
}
|
|
4381
|
+
namespace Discount {
|
|
4382
|
+
interface DiscountEnd {
|
|
4383
|
+
/**
|
|
4384
|
+
* Time span for the redeemed discount.
|
|
4385
|
+
*/
|
|
4386
|
+
duration?: DiscountEnd.Duration;
|
|
4387
|
+
/**
|
|
4388
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4389
|
+
*/
|
|
4390
|
+
timestamp?: number;
|
|
4391
|
+
/**
|
|
4392
|
+
* The type of calculation made to determine when the discount ends.
|
|
4393
|
+
*/
|
|
4394
|
+
type: DiscountEnd.Type;
|
|
4395
|
+
}
|
|
4396
|
+
interface Settings {
|
|
4397
|
+
/**
|
|
4398
|
+
* Configures service period cycle anchoring.
|
|
4399
|
+
*/
|
|
4400
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4401
|
+
/**
|
|
4402
|
+
* The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
4403
|
+
*/
|
|
4404
|
+
start_date?: Settings.StartDate;
|
|
4405
|
+
}
|
|
4406
|
+
namespace DiscountEnd {
|
|
4407
|
+
interface Duration {
|
|
4408
|
+
/**
|
|
4409
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4410
|
+
*/
|
|
4411
|
+
interval: Duration.Interval;
|
|
4412
|
+
/**
|
|
4413
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4414
|
+
*/
|
|
4415
|
+
interval_count: number;
|
|
4416
|
+
}
|
|
4417
|
+
type Type = 'duration' | 'timestamp';
|
|
4418
|
+
namespace Duration {
|
|
4419
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4420
|
+
}
|
|
4421
|
+
}
|
|
4422
|
+
namespace Settings {
|
|
4423
|
+
interface ServicePeriodAnchorConfig {
|
|
4424
|
+
/**
|
|
4425
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4426
|
+
*/
|
|
4427
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4428
|
+
/**
|
|
4429
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4430
|
+
*/
|
|
4431
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4432
|
+
}
|
|
4433
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start';
|
|
4434
|
+
namespace ServicePeriodAnchorConfig {
|
|
4435
|
+
interface Custom {
|
|
4436
|
+
/**
|
|
4437
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4438
|
+
*/
|
|
4439
|
+
day_of_month: number;
|
|
4440
|
+
/**
|
|
4441
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4442
|
+
*/
|
|
4443
|
+
hour?: number;
|
|
4444
|
+
/**
|
|
4445
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4446
|
+
*/
|
|
4447
|
+
minute?: number;
|
|
4448
|
+
/**
|
|
4449
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4450
|
+
*/
|
|
4451
|
+
month?: number;
|
|
4452
|
+
/**
|
|
4453
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4454
|
+
*/
|
|
4455
|
+
second?: number;
|
|
4456
|
+
}
|
|
4457
|
+
type Type = 'custom' | 'inherit';
|
|
4458
|
+
}
|
|
4459
|
+
}
|
|
4460
|
+
}
|
|
4461
|
+
namespace Trial {
|
|
4462
|
+
type Type = 'free' | 'paid';
|
|
4463
|
+
}
|
|
4464
|
+
}
|
|
4465
|
+
namespace Set {
|
|
4466
|
+
interface Discount {
|
|
4467
|
+
/**
|
|
4468
|
+
* ID of the coupon to create a new discount for.
|
|
4469
|
+
*/
|
|
4470
|
+
coupon?: string;
|
|
4471
|
+
/**
|
|
4472
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4473
|
+
*/
|
|
4474
|
+
discount?: string;
|
|
4475
|
+
/**
|
|
4476
|
+
* Details to determine how long the discount should be applied for.
|
|
4477
|
+
*/
|
|
4478
|
+
discount_end?: Discount.DiscountEnd;
|
|
4479
|
+
/**
|
|
4480
|
+
* ID of the promotion code to create a new discount for.
|
|
4481
|
+
*/
|
|
4482
|
+
promotion_code?: string;
|
|
4483
|
+
/**
|
|
4484
|
+
* Settings for discount application including service period anchoring.
|
|
4485
|
+
*/
|
|
4486
|
+
settings?: Discount.Settings;
|
|
4487
|
+
}
|
|
4488
|
+
interface Trial {
|
|
4489
|
+
/**
|
|
4490
|
+
* 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.
|
|
4491
|
+
*/
|
|
4492
|
+
converts_to?: Array<string>;
|
|
4493
|
+
/**
|
|
4494
|
+
* Determines the type of trial for this item.
|
|
4495
|
+
*/
|
|
4496
|
+
type: Trial.Type;
|
|
4497
|
+
}
|
|
4498
|
+
namespace Discount {
|
|
4499
|
+
interface DiscountEnd {
|
|
4500
|
+
/**
|
|
4501
|
+
* Time span for the redeemed discount.
|
|
4502
|
+
*/
|
|
4503
|
+
duration?: DiscountEnd.Duration;
|
|
4504
|
+
/**
|
|
4505
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4506
|
+
*/
|
|
4507
|
+
timestamp?: number;
|
|
4508
|
+
/**
|
|
4509
|
+
* The type of calculation made to determine when the discount ends.
|
|
4510
|
+
*/
|
|
4511
|
+
type: DiscountEnd.Type;
|
|
4512
|
+
}
|
|
4513
|
+
interface Settings {
|
|
4514
|
+
/**
|
|
4515
|
+
* Configures service period cycle anchoring.
|
|
4516
|
+
*/
|
|
4517
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4518
|
+
/**
|
|
4519
|
+
* The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `amendment_start` if omitted.
|
|
4520
|
+
*/
|
|
4521
|
+
start_date?: Settings.StartDate;
|
|
4522
|
+
}
|
|
4523
|
+
namespace DiscountEnd {
|
|
4524
|
+
interface Duration {
|
|
4525
|
+
/**
|
|
4526
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4527
|
+
*/
|
|
4528
|
+
interval: Duration.Interval;
|
|
4529
|
+
/**
|
|
4530
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4531
|
+
*/
|
|
4532
|
+
interval_count: number;
|
|
4533
|
+
}
|
|
4534
|
+
type Type = 'duration' | 'timestamp';
|
|
4535
|
+
namespace Duration {
|
|
4536
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4537
|
+
}
|
|
4538
|
+
}
|
|
4539
|
+
namespace Settings {
|
|
4540
|
+
interface ServicePeriodAnchorConfig {
|
|
4541
|
+
/**
|
|
4542
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4543
|
+
*/
|
|
4544
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4545
|
+
/**
|
|
4546
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4547
|
+
*/
|
|
4548
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4549
|
+
}
|
|
4550
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start';
|
|
4551
|
+
namespace ServicePeriodAnchorConfig {
|
|
4552
|
+
interface Custom {
|
|
4553
|
+
/**
|
|
4554
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4555
|
+
*/
|
|
4556
|
+
day_of_month: number;
|
|
4557
|
+
/**
|
|
4558
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4559
|
+
*/
|
|
4560
|
+
hour?: number;
|
|
4561
|
+
/**
|
|
4562
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4563
|
+
*/
|
|
4564
|
+
minute?: number;
|
|
4565
|
+
/**
|
|
4566
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4567
|
+
*/
|
|
4568
|
+
month?: number;
|
|
4569
|
+
/**
|
|
4570
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4571
|
+
*/
|
|
4572
|
+
second?: number;
|
|
4573
|
+
}
|
|
4574
|
+
type Type = 'custom' | 'inherit';
|
|
4575
|
+
}
|
|
4576
|
+
}
|
|
4577
|
+
}
|
|
4578
|
+
namespace Trial {
|
|
4579
|
+
type Type = 'free' | 'paid';
|
|
4580
|
+
}
|
|
4581
|
+
}
|
|
4582
|
+
}
|
|
4583
|
+
namespace MetadataAction {
|
|
4584
|
+
type Type = 'add' | 'remove' | 'set';
|
|
4585
|
+
}
|
|
4586
|
+
namespace SetPauseCollection {
|
|
4587
|
+
interface Set {
|
|
4588
|
+
/**
|
|
4589
|
+
* The payment collection behavior for this subscription while paused.
|
|
4590
|
+
*/
|
|
4591
|
+
behavior: Set.Behavior;
|
|
4592
|
+
}
|
|
4593
|
+
type Type = 'remove' | 'set';
|
|
4594
|
+
namespace Set {
|
|
4595
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
4596
|
+
}
|
|
4597
|
+
}
|
|
4598
|
+
namespace TrialSettings {
|
|
4599
|
+
interface EndBehavior {
|
|
4600
|
+
/**
|
|
4601
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
4602
|
+
*/
|
|
4603
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
4604
|
+
}
|
|
4605
|
+
namespace EndBehavior {
|
|
4606
|
+
type ProrateUpFront = 'defer' | 'include';
|
|
4607
|
+
}
|
|
4608
|
+
}
|
|
4609
|
+
}
|
|
3171
4610
|
namespace BillingMode {
|
|
3172
4611
|
interface Flexible {
|
|
3173
4612
|
/**
|
|
@@ -3180,6 +4619,51 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3180
4619
|
type ProrationDiscounts = 'included' | 'itemized';
|
|
3181
4620
|
}
|
|
3182
4621
|
}
|
|
4622
|
+
namespace BillingSchedule {
|
|
4623
|
+
interface AppliesTo {
|
|
4624
|
+
/**
|
|
4625
|
+
* The ID of the price object.
|
|
4626
|
+
*/
|
|
4627
|
+
price?: string;
|
|
4628
|
+
/**
|
|
4629
|
+
* Controls which subscription items the billing schedule applies to.
|
|
4630
|
+
*/
|
|
4631
|
+
type: 'price';
|
|
4632
|
+
}
|
|
4633
|
+
interface BillUntil {
|
|
4634
|
+
/**
|
|
4635
|
+
* Specifies the billing period.
|
|
4636
|
+
*/
|
|
4637
|
+
duration?: BillUntil.Duration;
|
|
4638
|
+
/**
|
|
4639
|
+
* The end date of the billing schedule.
|
|
4640
|
+
*/
|
|
4641
|
+
timestamp?: number;
|
|
4642
|
+
/**
|
|
4643
|
+
* Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
4644
|
+
*/
|
|
4645
|
+
type: BillUntil.Type;
|
|
4646
|
+
}
|
|
4647
|
+
namespace BillUntil {
|
|
4648
|
+
interface Duration {
|
|
4649
|
+
/**
|
|
4650
|
+
* Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
4651
|
+
*/
|
|
4652
|
+
interval: Duration.Interval;
|
|
4653
|
+
/**
|
|
4654
|
+
* The multiplier applied to the interval.
|
|
4655
|
+
*/
|
|
4656
|
+
interval_count?: number;
|
|
4657
|
+
}
|
|
4658
|
+
type Type = 'duration' | 'timestamp';
|
|
4659
|
+
namespace Duration {
|
|
4660
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4661
|
+
}
|
|
4662
|
+
}
|
|
4663
|
+
}
|
|
4664
|
+
namespace DefaultSettings {
|
|
4665
|
+
type PhaseEffectiveAt = 'billing_period_start' | 'phase_start';
|
|
4666
|
+
}
|
|
3183
4667
|
namespace Phase {
|
|
3184
4668
|
interface AddInvoiceItem {
|
|
3185
4669
|
/**
|
|
@@ -3246,10 +4730,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3246
4730
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3247
4731
|
*/
|
|
3248
4732
|
discount?: string;
|
|
4733
|
+
/**
|
|
4734
|
+
* Details to determine how long the discount should be applied for.
|
|
4735
|
+
*/
|
|
4736
|
+
discount_end?: Discount.DiscountEnd;
|
|
3249
4737
|
/**
|
|
3250
4738
|
* ID of the promotion code to create a new discount for.
|
|
3251
4739
|
*/
|
|
3252
4740
|
promotion_code?: string;
|
|
4741
|
+
/**
|
|
4742
|
+
* Settings for discount application including service period anchoring.
|
|
4743
|
+
*/
|
|
4744
|
+
settings?: Discount.Settings;
|
|
3253
4745
|
}
|
|
3254
4746
|
interface Duration {
|
|
3255
4747
|
/**
|
|
@@ -3261,6 +4753,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3261
4753
|
*/
|
|
3262
4754
|
interval_count?: number;
|
|
3263
4755
|
}
|
|
4756
|
+
type EffectiveAt = 'billing_period_start' | 'phase_start';
|
|
3264
4757
|
interface InvoiceSettings {
|
|
3265
4758
|
/**
|
|
3266
4759
|
* The account tax IDs associated with this phase of the subscription schedule. Will be set on invoices generated by this phase of the subscription schedule.
|
|
@@ -3308,6 +4801,20 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3308
4801
|
* 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.
|
|
3309
4802
|
*/
|
|
3310
4803
|
tax_rates?: Emptyable<Array<string>>;
|
|
4804
|
+
/**
|
|
4805
|
+
* Options that configure the trial on the subscription item.
|
|
4806
|
+
*/
|
|
4807
|
+
trial?: Item.Trial;
|
|
4808
|
+
/**
|
|
4809
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
4810
|
+
*/
|
|
4811
|
+
trial_offer?: string;
|
|
4812
|
+
}
|
|
4813
|
+
interface PauseCollection {
|
|
4814
|
+
/**
|
|
4815
|
+
* The payment collection behavior for this subscription while paused.
|
|
4816
|
+
*/
|
|
4817
|
+
behavior: PauseCollection.Behavior;
|
|
3311
4818
|
}
|
|
3312
4819
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
3313
4820
|
interface TransferData {
|
|
@@ -3320,6 +4827,13 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3320
4827
|
*/
|
|
3321
4828
|
destination: string;
|
|
3322
4829
|
}
|
|
4830
|
+
type TrialContinuation = 'continue' | 'none';
|
|
4831
|
+
interface TrialSettings {
|
|
4832
|
+
/**
|
|
4833
|
+
* Defines how the subscription should behave when a trial ends.
|
|
4834
|
+
*/
|
|
4835
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
4836
|
+
}
|
|
3323
4837
|
namespace AddInvoiceItem {
|
|
3324
4838
|
interface Discount {
|
|
3325
4839
|
/**
|
|
@@ -3330,6 +4844,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3330
4844
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3331
4845
|
*/
|
|
3332
4846
|
discount?: string;
|
|
4847
|
+
/**
|
|
4848
|
+
* Details to determine how long the discount should be applied for.
|
|
4849
|
+
*/
|
|
4850
|
+
discount_end?: Discount.DiscountEnd;
|
|
3333
4851
|
/**
|
|
3334
4852
|
* ID of the promotion code to create a new discount for.
|
|
3335
4853
|
*/
|
|
@@ -3367,6 +4885,38 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3367
4885
|
*/
|
|
3368
4886
|
unit_amount_decimal?: Decimal;
|
|
3369
4887
|
}
|
|
4888
|
+
namespace Discount {
|
|
4889
|
+
interface DiscountEnd {
|
|
4890
|
+
/**
|
|
4891
|
+
* Time span for the redeemed discount.
|
|
4892
|
+
*/
|
|
4893
|
+
duration?: DiscountEnd.Duration;
|
|
4894
|
+
/**
|
|
4895
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4896
|
+
*/
|
|
4897
|
+
timestamp?: number;
|
|
4898
|
+
/**
|
|
4899
|
+
* The type of calculation made to determine when the discount ends.
|
|
4900
|
+
*/
|
|
4901
|
+
type: DiscountEnd.Type;
|
|
4902
|
+
}
|
|
4903
|
+
namespace DiscountEnd {
|
|
4904
|
+
interface Duration {
|
|
4905
|
+
/**
|
|
4906
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4907
|
+
*/
|
|
4908
|
+
interval: Duration.Interval;
|
|
4909
|
+
/**
|
|
4910
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4911
|
+
*/
|
|
4912
|
+
interval_count: number;
|
|
4913
|
+
}
|
|
4914
|
+
type Type = 'duration' | 'timestamp';
|
|
4915
|
+
namespace Duration {
|
|
4916
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
4917
|
+
}
|
|
4918
|
+
}
|
|
4919
|
+
}
|
|
3370
4920
|
namespace Period {
|
|
3371
4921
|
interface End {
|
|
3372
4922
|
/**
|
|
@@ -3411,7 +4961,87 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3411
4961
|
type: Liability.Type;
|
|
3412
4962
|
}
|
|
3413
4963
|
namespace Liability {
|
|
3414
|
-
type Type = 'account' | 'self';
|
|
4964
|
+
type Type = 'account' | 'application' | 'self';
|
|
4965
|
+
}
|
|
4966
|
+
}
|
|
4967
|
+
namespace Discount {
|
|
4968
|
+
interface DiscountEnd {
|
|
4969
|
+
/**
|
|
4970
|
+
* Time span for the redeemed discount.
|
|
4971
|
+
*/
|
|
4972
|
+
duration?: DiscountEnd.Duration;
|
|
4973
|
+
/**
|
|
4974
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4975
|
+
*/
|
|
4976
|
+
timestamp?: number;
|
|
4977
|
+
/**
|
|
4978
|
+
* The type of calculation made to determine when the discount ends.
|
|
4979
|
+
*/
|
|
4980
|
+
type: DiscountEnd.Type;
|
|
4981
|
+
}
|
|
4982
|
+
interface Settings {
|
|
4983
|
+
/**
|
|
4984
|
+
* Configures service period cycle anchoring.
|
|
4985
|
+
*/
|
|
4986
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4987
|
+
/**
|
|
4988
|
+
* The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `phase_start` if omitted.
|
|
4989
|
+
*/
|
|
4990
|
+
start_date?: Settings.StartDate;
|
|
4991
|
+
}
|
|
4992
|
+
namespace DiscountEnd {
|
|
4993
|
+
interface Duration {
|
|
4994
|
+
/**
|
|
4995
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4996
|
+
*/
|
|
4997
|
+
interval: Duration.Interval;
|
|
4998
|
+
/**
|
|
4999
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5000
|
+
*/
|
|
5001
|
+
interval_count: number;
|
|
5002
|
+
}
|
|
5003
|
+
type Type = 'duration' | 'timestamp';
|
|
5004
|
+
namespace Duration {
|
|
5005
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
5006
|
+
}
|
|
5007
|
+
}
|
|
5008
|
+
namespace Settings {
|
|
5009
|
+
interface ServicePeriodAnchorConfig {
|
|
5010
|
+
/**
|
|
5011
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
5012
|
+
*/
|
|
5013
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
5014
|
+
/**
|
|
5015
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
5016
|
+
*/
|
|
5017
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
5018
|
+
}
|
|
5019
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'phase_start';
|
|
5020
|
+
namespace ServicePeriodAnchorConfig {
|
|
5021
|
+
interface Custom {
|
|
5022
|
+
/**
|
|
5023
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
5024
|
+
*/
|
|
5025
|
+
day_of_month: number;
|
|
5026
|
+
/**
|
|
5027
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
5028
|
+
*/
|
|
5029
|
+
hour?: number;
|
|
5030
|
+
/**
|
|
5031
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
5032
|
+
*/
|
|
5033
|
+
minute?: number;
|
|
5034
|
+
/**
|
|
5035
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
5036
|
+
*/
|
|
5037
|
+
month?: number;
|
|
5038
|
+
/**
|
|
5039
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
5040
|
+
*/
|
|
5041
|
+
second?: number;
|
|
5042
|
+
}
|
|
5043
|
+
type Type = 'custom' | 'inherit';
|
|
5044
|
+
}
|
|
3415
5045
|
}
|
|
3416
5046
|
}
|
|
3417
5047
|
namespace Duration {
|
|
@@ -3429,7 +5059,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3429
5059
|
type: Issuer.Type;
|
|
3430
5060
|
}
|
|
3431
5061
|
namespace Issuer {
|
|
3432
|
-
type Type = 'account' | 'self';
|
|
5062
|
+
type Type = 'account' | 'application' | 'self';
|
|
3433
5063
|
}
|
|
3434
5064
|
}
|
|
3435
5065
|
namespace Item {
|
|
@@ -3448,10 +5078,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3448
5078
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3449
5079
|
*/
|
|
3450
5080
|
discount?: string;
|
|
5081
|
+
/**
|
|
5082
|
+
* Details to determine how long the discount should be applied for.
|
|
5083
|
+
*/
|
|
5084
|
+
discount_end?: Discount.DiscountEnd;
|
|
3451
5085
|
/**
|
|
3452
5086
|
* ID of the promotion code to create a new discount for.
|
|
3453
5087
|
*/
|
|
3454
5088
|
promotion_code?: string;
|
|
5089
|
+
/**
|
|
5090
|
+
* Settings for discount application including service period anchoring.
|
|
5091
|
+
*/
|
|
5092
|
+
settings?: Discount.Settings;
|
|
3455
5093
|
}
|
|
3456
5094
|
interface PriceData {
|
|
3457
5095
|
/**
|
|
@@ -3479,6 +5117,96 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3479
5117
|
*/
|
|
3480
5118
|
unit_amount_decimal?: Decimal;
|
|
3481
5119
|
}
|
|
5120
|
+
interface Trial {
|
|
5121
|
+
/**
|
|
5122
|
+
* 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.
|
|
5123
|
+
*/
|
|
5124
|
+
converts_to?: Array<string>;
|
|
5125
|
+
/**
|
|
5126
|
+
* Determines the type of trial for this item.
|
|
5127
|
+
*/
|
|
5128
|
+
type: Trial.Type;
|
|
5129
|
+
}
|
|
5130
|
+
namespace Discount {
|
|
5131
|
+
interface DiscountEnd {
|
|
5132
|
+
/**
|
|
5133
|
+
* Time span for the redeemed discount.
|
|
5134
|
+
*/
|
|
5135
|
+
duration?: DiscountEnd.Duration;
|
|
5136
|
+
/**
|
|
5137
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5138
|
+
*/
|
|
5139
|
+
timestamp?: number;
|
|
5140
|
+
/**
|
|
5141
|
+
* The type of calculation made to determine when the discount ends.
|
|
5142
|
+
*/
|
|
5143
|
+
type: DiscountEnd.Type;
|
|
5144
|
+
}
|
|
5145
|
+
interface Settings {
|
|
5146
|
+
/**
|
|
5147
|
+
* Configures service period cycle anchoring.
|
|
5148
|
+
*/
|
|
5149
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
5150
|
+
/**
|
|
5151
|
+
* The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `phase_start` if omitted.
|
|
5152
|
+
*/
|
|
5153
|
+
start_date?: Settings.StartDate;
|
|
5154
|
+
}
|
|
5155
|
+
namespace DiscountEnd {
|
|
5156
|
+
interface Duration {
|
|
5157
|
+
/**
|
|
5158
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5159
|
+
*/
|
|
5160
|
+
interval: Duration.Interval;
|
|
5161
|
+
/**
|
|
5162
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5163
|
+
*/
|
|
5164
|
+
interval_count: number;
|
|
5165
|
+
}
|
|
5166
|
+
type Type = 'duration' | 'timestamp';
|
|
5167
|
+
namespace Duration {
|
|
5168
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
5169
|
+
}
|
|
5170
|
+
}
|
|
5171
|
+
namespace Settings {
|
|
5172
|
+
interface ServicePeriodAnchorConfig {
|
|
5173
|
+
/**
|
|
5174
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
5175
|
+
*/
|
|
5176
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
5177
|
+
/**
|
|
5178
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
5179
|
+
*/
|
|
5180
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
5181
|
+
}
|
|
5182
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'phase_start';
|
|
5183
|
+
namespace ServicePeriodAnchorConfig {
|
|
5184
|
+
interface Custom {
|
|
5185
|
+
/**
|
|
5186
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
5187
|
+
*/
|
|
5188
|
+
day_of_month: number;
|
|
5189
|
+
/**
|
|
5190
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
5191
|
+
*/
|
|
5192
|
+
hour?: number;
|
|
5193
|
+
/**
|
|
5194
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
5195
|
+
*/
|
|
5196
|
+
minute?: number;
|
|
5197
|
+
/**
|
|
5198
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
5199
|
+
*/
|
|
5200
|
+
month?: number;
|
|
5201
|
+
/**
|
|
5202
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
5203
|
+
*/
|
|
5204
|
+
second?: number;
|
|
5205
|
+
}
|
|
5206
|
+
type Type = 'custom' | 'inherit';
|
|
5207
|
+
}
|
|
5208
|
+
}
|
|
5209
|
+
}
|
|
3482
5210
|
namespace PriceData {
|
|
3483
5211
|
interface Recurring {
|
|
3484
5212
|
/**
|
|
@@ -3495,6 +5223,65 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3495
5223
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
3496
5224
|
}
|
|
3497
5225
|
}
|
|
5226
|
+
namespace Trial {
|
|
5227
|
+
type Type = 'free' | 'paid';
|
|
5228
|
+
}
|
|
5229
|
+
}
|
|
5230
|
+
namespace PauseCollection {
|
|
5231
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void';
|
|
5232
|
+
}
|
|
5233
|
+
namespace TrialSettings {
|
|
5234
|
+
interface EndBehavior {
|
|
5235
|
+
/**
|
|
5236
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
5237
|
+
*/
|
|
5238
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
5239
|
+
}
|
|
5240
|
+
namespace EndBehavior {
|
|
5241
|
+
type ProrateUpFront = 'defer' | 'include';
|
|
5242
|
+
}
|
|
5243
|
+
}
|
|
5244
|
+
}
|
|
5245
|
+
namespace Prebilling {
|
|
5246
|
+
interface BillUntil {
|
|
5247
|
+
/**
|
|
5248
|
+
* End the prebilled period when a specified amendment ends.
|
|
5249
|
+
*/
|
|
5250
|
+
amendment_end?: BillUntil.AmendmentEnd;
|
|
5251
|
+
/**
|
|
5252
|
+
* Time span for prebilling, starting from `bill_from`.
|
|
5253
|
+
*/
|
|
5254
|
+
duration?: BillUntil.Duration;
|
|
5255
|
+
/**
|
|
5256
|
+
* End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
5257
|
+
*/
|
|
5258
|
+
timestamp?: number;
|
|
5259
|
+
/**
|
|
5260
|
+
* Select one of several ways to pass the `bill_until` value.
|
|
5261
|
+
*/
|
|
5262
|
+
type: BillUntil.Type;
|
|
5263
|
+
}
|
|
5264
|
+
namespace BillUntil {
|
|
5265
|
+
interface AmendmentEnd {
|
|
5266
|
+
/**
|
|
5267
|
+
* 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.
|
|
5268
|
+
*/
|
|
5269
|
+
index: number;
|
|
5270
|
+
}
|
|
5271
|
+
interface Duration {
|
|
5272
|
+
/**
|
|
5273
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5274
|
+
*/
|
|
5275
|
+
interval: Duration.Interval;
|
|
5276
|
+
/**
|
|
5277
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5278
|
+
*/
|
|
5279
|
+
interval_count: number;
|
|
5280
|
+
}
|
|
5281
|
+
type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp';
|
|
5282
|
+
namespace Duration {
|
|
5283
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
5284
|
+
}
|
|
3498
5285
|
}
|
|
3499
5286
|
}
|
|
3500
5287
|
}
|
|
@@ -3534,6 +5321,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3534
5321
|
* Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
|
3535
5322
|
*/
|
|
3536
5323
|
clear_usage?: boolean;
|
|
5324
|
+
/**
|
|
5325
|
+
* The trial offer to apply to this subscription item.
|
|
5326
|
+
*/
|
|
5327
|
+
current_trial?: Item.CurrentTrial;
|
|
3537
5328
|
/**
|
|
3538
5329
|
* A flag that, if set to `true`, will delete the specified item.
|
|
3539
5330
|
*/
|
|
@@ -3571,6 +5362,12 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3571
5362
|
*/
|
|
3572
5363
|
tax_rates?: Emptyable<Array<string>>;
|
|
3573
5364
|
}
|
|
5365
|
+
interface Prebilling {
|
|
5366
|
+
/**
|
|
5367
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
5368
|
+
*/
|
|
5369
|
+
iterations: number;
|
|
5370
|
+
}
|
|
3574
5371
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
3575
5372
|
namespace BillingMode {
|
|
3576
5373
|
interface Flexible {
|
|
@@ -3633,6 +5430,16 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3633
5430
|
*/
|
|
3634
5431
|
usage_gte: number;
|
|
3635
5432
|
}
|
|
5433
|
+
interface CurrentTrial {
|
|
5434
|
+
/**
|
|
5435
|
+
* 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`.
|
|
5436
|
+
*/
|
|
5437
|
+
trial_end?: number;
|
|
5438
|
+
/**
|
|
5439
|
+
* The ID of the trial offer to apply to the subscription item.
|
|
5440
|
+
*/
|
|
5441
|
+
trial_offer: string;
|
|
5442
|
+
}
|
|
3636
5443
|
interface Discount {
|
|
3637
5444
|
/**
|
|
3638
5445
|
* ID of the coupon to create a new discount for.
|
|
@@ -3642,10 +5449,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3642
5449
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3643
5450
|
*/
|
|
3644
5451
|
discount?: string;
|
|
5452
|
+
/**
|
|
5453
|
+
* Details to determine how long the discount should be applied for.
|
|
5454
|
+
*/
|
|
5455
|
+
discount_end?: Discount.DiscountEnd;
|
|
3645
5456
|
/**
|
|
3646
5457
|
* ID of the promotion code to create a new discount for.
|
|
3647
5458
|
*/
|
|
3648
5459
|
promotion_code?: string;
|
|
5460
|
+
/**
|
|
5461
|
+
* Settings for discount application including service period anchoring.
|
|
5462
|
+
*/
|
|
5463
|
+
settings?: Discount.Settings;
|
|
3649
5464
|
}
|
|
3650
5465
|
interface PriceData {
|
|
3651
5466
|
/**
|
|
@@ -3673,6 +5488,86 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3673
5488
|
*/
|
|
3674
5489
|
unit_amount_decimal?: Decimal;
|
|
3675
5490
|
}
|
|
5491
|
+
namespace Discount {
|
|
5492
|
+
interface DiscountEnd {
|
|
5493
|
+
/**
|
|
5494
|
+
* Time span for the redeemed discount.
|
|
5495
|
+
*/
|
|
5496
|
+
duration?: DiscountEnd.Duration;
|
|
5497
|
+
/**
|
|
5498
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5499
|
+
*/
|
|
5500
|
+
timestamp?: number;
|
|
5501
|
+
/**
|
|
5502
|
+
* The type of calculation made to determine when the discount ends.
|
|
5503
|
+
*/
|
|
5504
|
+
type: DiscountEnd.Type;
|
|
5505
|
+
}
|
|
5506
|
+
interface Settings {
|
|
5507
|
+
/**
|
|
5508
|
+
* Configures service period cycle anchoring.
|
|
5509
|
+
*/
|
|
5510
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
5511
|
+
/**
|
|
5512
|
+
* The start date of the discount's service period when applying a coupon or promotion code with a service period duration. Defaults to `now` if omitted.
|
|
5513
|
+
*/
|
|
5514
|
+
start_date?: Settings.StartDate;
|
|
5515
|
+
}
|
|
5516
|
+
namespace DiscountEnd {
|
|
5517
|
+
interface Duration {
|
|
5518
|
+
/**
|
|
5519
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5520
|
+
*/
|
|
5521
|
+
interval: Duration.Interval;
|
|
5522
|
+
/**
|
|
5523
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5524
|
+
*/
|
|
5525
|
+
interval_count: number;
|
|
5526
|
+
}
|
|
5527
|
+
type Type = 'duration' | 'timestamp';
|
|
5528
|
+
namespace Duration {
|
|
5529
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
5530
|
+
}
|
|
5531
|
+
}
|
|
5532
|
+
namespace Settings {
|
|
5533
|
+
interface ServicePeriodAnchorConfig {
|
|
5534
|
+
/**
|
|
5535
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
5536
|
+
*/
|
|
5537
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
5538
|
+
/**
|
|
5539
|
+
* The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
5540
|
+
*/
|
|
5541
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
5542
|
+
}
|
|
5543
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'now';
|
|
5544
|
+
namespace ServicePeriodAnchorConfig {
|
|
5545
|
+
interface Custom {
|
|
5546
|
+
/**
|
|
5547
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
5548
|
+
*/
|
|
5549
|
+
day_of_month: number;
|
|
5550
|
+
/**
|
|
5551
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
5552
|
+
*/
|
|
5553
|
+
hour?: number;
|
|
5554
|
+
/**
|
|
5555
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
5556
|
+
*/
|
|
5557
|
+
minute?: number;
|
|
5558
|
+
/**
|
|
5559
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
5560
|
+
*/
|
|
5561
|
+
month?: number;
|
|
5562
|
+
/**
|
|
5563
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
5564
|
+
*/
|
|
5565
|
+
second?: number;
|
|
5566
|
+
}
|
|
5567
|
+
type Type = 'custom' | 'subscription_service_cycle_anchor';
|
|
5568
|
+
}
|
|
5569
|
+
}
|
|
5570
|
+
}
|
|
3676
5571
|
namespace PriceData {
|
|
3677
5572
|
interface Recurring {
|
|
3678
5573
|
/**
|
|
@@ -3692,6 +5587,16 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3692
5587
|
}
|
|
3693
5588
|
}
|
|
3694
5589
|
}
|
|
5590
|
+
export interface InvoiceDetachPaymentParams {
|
|
5591
|
+
/**
|
|
5592
|
+
* Specifies which fields in the response should be expanded.
|
|
5593
|
+
*/
|
|
5594
|
+
expand?: Array<string>;
|
|
5595
|
+
/**
|
|
5596
|
+
* The ID of the PaymentIntent to detach from the invoice.
|
|
5597
|
+
*/
|
|
5598
|
+
payment_intent?: string;
|
|
5599
|
+
}
|
|
3695
5600
|
export interface InvoiceFinalizeInvoiceParams {
|
|
3696
5601
|
/**
|
|
3697
5602
|
* 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.
|
|
@@ -3801,6 +5706,32 @@ export interface InvoiceSendInvoiceParams {
|
|
|
3801
5706
|
*/
|
|
3802
5707
|
expand?: Array<string>;
|
|
3803
5708
|
}
|
|
5709
|
+
export interface InvoiceSerializeBatchAddLinesParams {
|
|
5710
|
+
}
|
|
5711
|
+
export interface InvoiceSerializeBatchCreateParams {
|
|
5712
|
+
}
|
|
5713
|
+
export interface InvoiceSerializeBatchCreatePreviewParams {
|
|
5714
|
+
}
|
|
5715
|
+
export interface InvoiceSerializeBatchDeleteParams {
|
|
5716
|
+
}
|
|
5717
|
+
export interface InvoiceSerializeBatchFinalizeInvoiceParams {
|
|
5718
|
+
}
|
|
5719
|
+
export interface InvoiceSerializeBatchMarkUncollectibleParams {
|
|
5720
|
+
}
|
|
5721
|
+
export interface InvoiceSerializeBatchPayParams {
|
|
5722
|
+
}
|
|
5723
|
+
export interface InvoiceSerializeBatchRemoveLinesParams {
|
|
5724
|
+
}
|
|
5725
|
+
export interface InvoiceSerializeBatchSendInvoiceParams {
|
|
5726
|
+
}
|
|
5727
|
+
export interface InvoiceSerializeBatchUpdateParams {
|
|
5728
|
+
}
|
|
5729
|
+
export interface InvoiceSerializeBatchUpdateLineItemParams {
|
|
5730
|
+
}
|
|
5731
|
+
export interface InvoiceSerializeBatchUpdateLinesParams {
|
|
5732
|
+
}
|
|
5733
|
+
export interface InvoiceSerializeBatchVoidInvoiceParams {
|
|
5734
|
+
}
|
|
3804
5735
|
export interface InvoiceUpdateLinesParams {
|
|
3805
5736
|
/**
|
|
3806
5737
|
* The line items to update.
|
|
@@ -3839,6 +5770,10 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
3839
5770
|
* ID of an existing line item on the invoice.
|
|
3840
5771
|
*/
|
|
3841
5772
|
id: string;
|
|
5773
|
+
/**
|
|
5774
|
+
* 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.
|
|
5775
|
+
*/
|
|
5776
|
+
margins?: Emptyable<Array<string>>;
|
|
3842
5777
|
/**
|
|
3843
5778
|
* 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.
|
|
3844
5779
|
*/
|
|
@@ -3882,6 +5817,10 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
3882
5817
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3883
5818
|
*/
|
|
3884
5819
|
discount?: string;
|
|
5820
|
+
/**
|
|
5821
|
+
* Details to determine how long the discount should be applied for.
|
|
5822
|
+
*/
|
|
5823
|
+
discount_end?: Discount.DiscountEnd;
|
|
3885
5824
|
/**
|
|
3886
5825
|
* ID of the promotion code to create a new discount for.
|
|
3887
5826
|
*/
|
|
@@ -3949,6 +5888,38 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
3949
5888
|
*/
|
|
3950
5889
|
taxable_amount: number;
|
|
3951
5890
|
}
|
|
5891
|
+
namespace Discount {
|
|
5892
|
+
interface DiscountEnd {
|
|
5893
|
+
/**
|
|
5894
|
+
* Time span for the redeemed discount.
|
|
5895
|
+
*/
|
|
5896
|
+
duration?: DiscountEnd.Duration;
|
|
5897
|
+
/**
|
|
5898
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5899
|
+
*/
|
|
5900
|
+
timestamp?: number;
|
|
5901
|
+
/**
|
|
5902
|
+
* The type of calculation made to determine when the discount ends.
|
|
5903
|
+
*/
|
|
5904
|
+
type: DiscountEnd.Type;
|
|
5905
|
+
}
|
|
5906
|
+
namespace DiscountEnd {
|
|
5907
|
+
interface Duration {
|
|
5908
|
+
/**
|
|
5909
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5910
|
+
*/
|
|
5911
|
+
interval: Duration.Interval;
|
|
5912
|
+
/**
|
|
5913
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5914
|
+
*/
|
|
5915
|
+
interval_count: number;
|
|
5916
|
+
}
|
|
5917
|
+
type Type = 'duration' | 'timestamp';
|
|
5918
|
+
namespace Duration {
|
|
5919
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
5920
|
+
}
|
|
5921
|
+
}
|
|
5922
|
+
}
|
|
3952
5923
|
namespace PriceData {
|
|
3953
5924
|
interface ProductData {
|
|
3954
5925
|
/**
|
|
@@ -3971,12 +5942,28 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
3971
5942
|
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
3972
5943
|
*/
|
|
3973
5944
|
tax_code?: string;
|
|
5945
|
+
/**
|
|
5946
|
+
* Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location.
|
|
5947
|
+
*/
|
|
5948
|
+
tax_details?: ProductData.TaxDetails;
|
|
3974
5949
|
/**
|
|
3975
5950
|
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
3976
5951
|
*/
|
|
3977
5952
|
unit_label?: string;
|
|
3978
5953
|
}
|
|
3979
5954
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
5955
|
+
namespace ProductData {
|
|
5956
|
+
interface TaxDetails {
|
|
5957
|
+
/**
|
|
5958
|
+
* A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
5959
|
+
*/
|
|
5960
|
+
performance_location?: string;
|
|
5961
|
+
/**
|
|
5962
|
+
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
5963
|
+
*/
|
|
5964
|
+
tax_code?: Emptyable<string>;
|
|
5965
|
+
}
|
|
5966
|
+
}
|
|
3980
5967
|
}
|
|
3981
5968
|
namespace TaxAmount {
|
|
3982
5969
|
interface TaxRateData {
|
|
@@ -4046,6 +6033,10 @@ export interface InvoiceUpdateLineItemParams {
|
|
|
4046
6033
|
* Specifies which fields in the response should be expanded.
|
|
4047
6034
|
*/
|
|
4048
6035
|
expand?: Array<string>;
|
|
6036
|
+
/**
|
|
6037
|
+
* 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.
|
|
6038
|
+
*/
|
|
6039
|
+
margins?: Emptyable<Array<string>>;
|
|
4049
6040
|
/**
|
|
4050
6041
|
* 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.
|
|
4051
6042
|
*/
|
|
@@ -4089,6 +6080,10 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
4089
6080
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4090
6081
|
*/
|
|
4091
6082
|
discount?: string;
|
|
6083
|
+
/**
|
|
6084
|
+
* Details to determine how long the discount should be applied for.
|
|
6085
|
+
*/
|
|
6086
|
+
discount_end?: Discount.DiscountEnd;
|
|
4092
6087
|
/**
|
|
4093
6088
|
* ID of the promotion code to create a new discount for.
|
|
4094
6089
|
*/
|
|
@@ -4156,6 +6151,38 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
4156
6151
|
*/
|
|
4157
6152
|
taxable_amount: number;
|
|
4158
6153
|
}
|
|
6154
|
+
namespace Discount {
|
|
6155
|
+
interface DiscountEnd {
|
|
6156
|
+
/**
|
|
6157
|
+
* Time span for the redeemed discount.
|
|
6158
|
+
*/
|
|
6159
|
+
duration?: DiscountEnd.Duration;
|
|
6160
|
+
/**
|
|
6161
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
6162
|
+
*/
|
|
6163
|
+
timestamp?: number;
|
|
6164
|
+
/**
|
|
6165
|
+
* The type of calculation made to determine when the discount ends.
|
|
6166
|
+
*/
|
|
6167
|
+
type: DiscountEnd.Type;
|
|
6168
|
+
}
|
|
6169
|
+
namespace DiscountEnd {
|
|
6170
|
+
interface Duration {
|
|
6171
|
+
/**
|
|
6172
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
6173
|
+
*/
|
|
6174
|
+
interval: Duration.Interval;
|
|
6175
|
+
/**
|
|
6176
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
6177
|
+
*/
|
|
6178
|
+
interval_count: number;
|
|
6179
|
+
}
|
|
6180
|
+
type Type = 'duration' | 'timestamp';
|
|
6181
|
+
namespace Duration {
|
|
6182
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
6183
|
+
}
|
|
6184
|
+
}
|
|
6185
|
+
}
|
|
4159
6186
|
namespace PriceData {
|
|
4160
6187
|
interface ProductData {
|
|
4161
6188
|
/**
|
|
@@ -4178,12 +6205,28 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
4178
6205
|
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
4179
6206
|
*/
|
|
4180
6207
|
tax_code?: string;
|
|
6208
|
+
/**
|
|
6209
|
+
* Tax details for this product, including the [tax code](https://docs.stripe.com/tax/tax-codes) and an optional performance location.
|
|
6210
|
+
*/
|
|
6211
|
+
tax_details?: ProductData.TaxDetails;
|
|
4181
6212
|
/**
|
|
4182
6213
|
* A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal.
|
|
4183
6214
|
*/
|
|
4184
6215
|
unit_label?: string;
|
|
4185
6216
|
}
|
|
4186
6217
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified';
|
|
6218
|
+
namespace ProductData {
|
|
6219
|
+
interface TaxDetails {
|
|
6220
|
+
/**
|
|
6221
|
+
* A tax location ID. Depending on the [tax code](https://docs.stripe.com/tax/tax-for-tickets/reference/tax-location-performance), this is required, optional, or not supported.
|
|
6222
|
+
*/
|
|
6223
|
+
performance_location?: string;
|
|
6224
|
+
/**
|
|
6225
|
+
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
6226
|
+
*/
|
|
6227
|
+
tax_code?: Emptyable<string>;
|
|
6228
|
+
}
|
|
6229
|
+
}
|
|
4187
6230
|
}
|
|
4188
6231
|
namespace TaxAmount {
|
|
4189
6232
|
interface TaxRateData {
|