stripe 23.1.0 → 23.2.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 +2269 -4845
- package/OPENAPI_VERSION +1 -1
- package/README.md +69 -60
- package/VERSION +1 -1
- package/cjs/Error.d.ts +29 -0
- package/cjs/Error.js +54 -1
- package/cjs/Error.js.map +1 -1
- package/cjs/RequestSender.js +25 -4
- package/cjs/RequestSender.js.map +1 -1
- package/cjs/StripeEventNotificationHandler.js +226 -3
- package/cjs/StripeEventNotificationHandler.js.map +1 -1
- package/cjs/Types.d.ts +21 -2
- package/cjs/Types.js.map +1 -1
- package/cjs/WorkloadIdentity.d.ts +99 -0
- package/cjs/WorkloadIdentity.js +292 -0
- package/cjs/WorkloadIdentity.js.map +1 -0
- package/cjs/apiVersion.d.ts +2 -2
- package/cjs/apiVersion.js +2 -2
- package/cjs/apiVersion.js.map +1 -1
- package/cjs/net/WorkloadIdentityTokenTransport.d.ts +27 -0
- package/cjs/net/WorkloadIdentityTokenTransport.js +53 -0
- package/cjs/net/WorkloadIdentityTokenTransport.js.map +1 -0
- 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 +729 -8
- package/cjs/resources/AccountSessions.js.map +1 -1
- package/cjs/resources/AccountSignals.d.ts +111 -0
- package/cjs/resources/AccountSignals.js +4 -0
- package/cjs/resources/AccountSignals.js.map +1 -0
- package/cjs/resources/Accounts.d.ts +871 -3
- 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/Apps/Installs.d.ts +1 -1
- package/cjs/resources/Apps/Installs.js +1 -1
- package/cjs/resources/Balance.d.ts +205 -0
- package/cjs/resources/BalanceSettings.d.ts +26 -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 +16 -2
- package/cjs/resources/Billing/AlertNotifications.d.ts +79 -0
- package/cjs/resources/Billing/AlertNotifications.js +4 -0
- package/cjs/resources/Billing/AlertNotifications.js.map +1 -0
- package/cjs/resources/Billing/AlertRecovereds.d.ts +56 -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 +59 -1
- package/cjs/resources/Billing/Alerts.d.ts +462 -5
- package/cjs/resources/Billing/Alerts.js +329 -5
- package/cjs/resources/Billing/Alerts.js.map +1 -1
- package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +89 -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 +136 -3
- 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 +105 -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 +10 -0
- package/cjs/resources/Billing/index.js +2 -0
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/Capabilities.d.ts +39 -2
- package/cjs/resources/Capital/FinancingOffers.d.ts +217 -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 +123 -0
- package/cjs/resources/Capital/FinancingSummary.js +15 -0
- package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
- package/cjs/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/cjs/resources/Capital/FinancingTransactions.js +24 -0
- package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
- package/cjs/resources/Capital/index.d.ts +25 -0
- package/cjs/resources/Capital/index.js +17 -0
- package/cjs/resources/Capital/index.js.map +1 -0
- package/cjs/resources/Cards.d.ts +28 -0
- package/cjs/resources/Charges.d.ts +3783 -94
- package/cjs/resources/Charges.js.map +1 -1
- package/cjs/resources/Checkout/Sessions.d.ts +2287 -79
- package/cjs/resources/Checkout/Sessions.js +668 -12
- package/cjs/resources/Checkout/Sessions.js.map +1 -1
- package/cjs/resources/Checkout/index.d.ts +1 -0
- package/cjs/resources/ConfirmationTokens.d.ts +201 -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/Crypto/CustomerConsumerWallets.d.ts +30 -0
- package/cjs/resources/Crypto/CustomerConsumerWallets.js +4 -0
- package/cjs/resources/Crypto/CustomerConsumerWallets.js.map +1 -0
- package/cjs/resources/Crypto/CustomerPaymentTokens.d.ts +80 -0
- package/cjs/resources/Crypto/CustomerPaymentTokens.js +4 -0
- package/cjs/resources/Crypto/CustomerPaymentTokens.js.map +1 -0
- package/cjs/resources/Crypto/Customers.d.ts +111 -0
- package/cjs/resources/Crypto/Customers.js +31 -0
- package/cjs/resources/Crypto/Customers.js.map +1 -0
- package/cjs/resources/Crypto/DepositAddresses.d.ts +128 -0
- package/cjs/resources/Crypto/DepositAddresses.js +31 -0
- package/cjs/resources/Crypto/DepositAddresses.js.map +1 -0
- package/cjs/resources/Crypto/OnrampSessions.d.ts +425 -0
- package/cjs/resources/Crypto/OnrampSessions.js +47 -0
- package/cjs/resources/Crypto/OnrampSessions.js.map +1 -0
- package/cjs/resources/Crypto/OnrampTransactionLimits.d.ts +61 -0
- package/cjs/resources/Crypto/OnrampTransactionLimits.js +15 -0
- package/cjs/resources/Crypto/OnrampTransactionLimits.js.map +1 -0
- package/cjs/resources/Crypto/index.d.ts +41 -0
- package/cjs/resources/Crypto/index.js +19 -0
- package/cjs/resources/Crypto/index.js.map +1 -0
- package/cjs/resources/CustomerCashBalanceTransactions.d.ts +15 -0
- package/cjs/resources/CustomerSessions.d.ts +82 -0
- package/cjs/resources/CustomerSessions.js +13 -0
- package/cjs/resources/CustomerSessions.js.map +1 -1
- package/cjs/resources/CustomerTaxExemptions.d.ts +107 -0
- package/cjs/resources/CustomerTaxExemptions.js +4 -0
- package/cjs/resources/CustomerTaxExemptions.js.map +1 -0
- package/cjs/resources/Customers.d.ts +334 -1
- package/cjs/resources/Customers.js +221 -0
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/DelegatedCheckout/OrderEvents.d.ts +129 -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 +159 -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 +1427 -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 +29 -1
- package/cjs/resources/Disputes.js +14 -0
- package/cjs/resources/Disputes.js.map +1 -1
- package/cjs/resources/Events.d.ts +640 -3
- package/cjs/resources/ExternalAccounts.d.ts +212 -1
- package/cjs/resources/ExternalAccounts.js +44 -0
- package/cjs/resources/ExternalAccounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/cjs/resources/FinancialConnections/Accounts.d.ts +105 -4
- package/cjs/resources/FinancialConnections/Accounts.js +8 -0
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +46 -1
- package/cjs/resources/FinancialConnections/Authorizations.js +11 -0
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/cjs/resources/FinancialConnections/Consents.d.ts +113 -0
- package/cjs/resources/FinancialConnections/Consents.js +21 -0
- package/cjs/resources/FinancialConnections/Consents.js.map +1 -0
- package/cjs/resources/FinancialConnections/Institutions.d.ts +99 -0
- package/cjs/resources/FinancialConnections/Institutions.js +23 -0
- package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
- package/cjs/resources/FinancialConnections/Sessions.d.ts +134 -9
- package/cjs/resources/FinancialConnections/Transactions.d.ts +70 -0
- package/cjs/resources/FinancialConnections/index.d.ts +27 -9
- package/cjs/resources/FinancialConnections/index.js +6 -0
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/FxQuotes.d.ts +216 -0
- package/cjs/resources/FxQuotes.js +29 -0
- package/cjs/resources/FxQuotes.js.map +1 -0
- package/cjs/resources/GiftCardOperations.d.ts +249 -0
- package/cjs/resources/GiftCardOperations.js +15 -0
- package/cjs/resources/GiftCardOperations.js.map +1 -0
- package/cjs/resources/GiftCards.d.ts +188 -0
- package/cjs/resources/GiftCards.js +51 -0
- package/cjs/resources/GiftCards.js.map +1 -0
- package/cjs/resources/Identity/BlocklistEntries.d.ts +155 -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 +203 -2
- package/cjs/resources/Identity/VerificationReports.js.map +1 -1
- package/cjs/resources/Identity/VerificationSessions.d.ts +45 -1
- 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 +215 -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 +2167 -73
- package/cjs/resources/Invoices.js +221 -0
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +821 -1
- package/cjs/resources/Issuing/Authorizations.js +177 -0
- package/cjs/resources/Issuing/Authorizations.js.map +1 -1
- package/cjs/resources/Issuing/Cardholders.d.ts +22 -4
- package/cjs/resources/Issuing/Cards.d.ts +141 -2
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +654 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +53 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/cjs/resources/Issuing/Disputes.d.ts +246 -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 +83 -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 +26 -0
- package/cjs/resources/Issuing/Transactions.d.ts +259 -0
- package/cjs/resources/Issuing/Transactions.js +48 -0
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +56 -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 +36 -2
- package/cjs/resources/Mandates.js +8 -0
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/Margins.d.ts +115 -0
- package/cjs/resources/Margins.js +35 -0
- package/cjs/resources/Margins.js.map +1 -0
- package/cjs/resources/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 +4776 -0
- package/cjs/resources/Orders.js +457 -0
- package/cjs/resources/Orders.js.map +1 -0
- package/cjs/resources/PaymentAttemptRecords.d.ts +908 -2
- package/cjs/resources/PaymentAttemptRecords.js +48 -0
- package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
- package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +104 -0
- package/cjs/resources/PaymentIntents.d.ts +19847 -4859
- package/cjs/resources/PaymentIntents.js +46 -0
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +73 -12
- package/cjs/resources/PaymentLocationCapabilities.d.ts +124 -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 +420 -0
- package/cjs/resources/PaymentMethods.d.ts +423 -3
- package/cjs/resources/PaymentMethods.js +20 -0
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentPlans.d.ts +427 -0
- package/cjs/resources/PaymentPlans.js +35 -0
- package/cjs/resources/PaymentPlans.js.map +1 -0
- package/cjs/resources/PaymentRecords.d.ts +906 -20
- package/cjs/resources/PaymentRecords.js +18 -0
- package/cjs/resources/PaymentRecords.js.map +1 -1
- package/cjs/resources/Payouts.d.ts +30 -0
- package/cjs/resources/Persons.d.ts +39 -2
- package/cjs/resources/Prices.d.ts +60 -0
- package/cjs/resources/Prices.js +27 -0
- package/cjs/resources/Prices.js.map +1 -1
- package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/cjs/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/cjs/resources/Privacy/RedactionJobs.js +73 -0
- package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
- package/cjs/resources/Privacy/index.d.ts +22 -0
- package/cjs/resources/Privacy/index.js +13 -0
- package/cjs/resources/Privacy/index.js.map +1 -0
- package/cjs/resources/ProductCatalog/TrialOffers.d.ts +2 -2
- package/cjs/resources/Products.d.ts +156 -0
- package/cjs/resources/Products.js +69 -0
- package/cjs/resources/Products.js.map +1 -1
- package/cjs/resources/Profiles.d.ts +68 -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 +1291 -0
- package/cjs/resources/QuotePreviewInvoices.js +4 -0
- package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +1134 -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 +309 -0
- package/cjs/resources/Radar/AccountEvaluations.js +27 -0
- package/cjs/resources/Radar/AccountEvaluations.js.map +1 -0
- package/cjs/resources/Radar/BillingEvaluations.d.ts +374 -0
- package/cjs/resources/Radar/BillingEvaluations.js +15 -0
- package/cjs/resources/Radar/BillingEvaluations.js.map +1 -0
- package/cjs/resources/Radar/CustomerEvaluations.d.ts +245 -0
- package/cjs/resources/Radar/CustomerEvaluations.js +27 -0
- package/cjs/resources/Radar/CustomerEvaluations.js.map +1 -0
- package/cjs/resources/Radar/IssuingAuthorizationEvaluations.d.ts +433 -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 +234 -5
- package/cjs/resources/Radar/PaymentEvaluations.js.map +1 -1
- package/cjs/resources/Radar/Rules.d.ts +18 -0
- package/cjs/resources/Radar/Rules.js +4 -0
- package/cjs/resources/Radar/Rules.js.map +1 -0
- package/cjs/resources/Radar/ValueListItems.d.ts +39 -1
- package/cjs/resources/Radar/ValueListItems.js +13 -0
- package/cjs/resources/Radar/ValueListItems.js.map +1 -1
- package/cjs/resources/Radar/index.d.ts +44 -16
- package/cjs/resources/Radar/index.js +8 -0
- package/cjs/resources/Radar/index.js.map +1 -1
- package/cjs/resources/Refunds.d.ts +113 -0
- package/cjs/resources/Refunds.js +27 -0
- package/cjs/resources/Refunds.js.map +1 -1
- package/cjs/resources/Reporting/ReportRuns.d.ts +4 -0
- package/cjs/resources/Reserve/Holds.d.ts +53 -1
- package/cjs/resources/Reserve/Holds.js +19 -0
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +41 -1
- package/cjs/resources/Reserve/Plans.js +19 -0
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +41 -1
- package/cjs/resources/Reserve/Releases.js +19 -0
- package/cjs/resources/Reserve/Releases.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +18 -6
- package/cjs/resources/Reserve/index.js +9 -0
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/Risk/Forms.d.ts +380 -0
- package/cjs/resources/Risk/Forms.js +38 -0
- package/cjs/resources/Risk/Forms.js.map +1 -0
- package/cjs/resources/Risk/index.d.ts +13 -0
- package/cjs/resources/Risk/index.js +13 -0
- package/cjs/resources/Risk/index.js.map +1 -0
- 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 +39 -1
- package/cjs/resources/SetupAttempts.js.map +1 -1
- package/cjs/resources/SetupIntents.d.ts +877 -16
- package/cjs/resources/SetupIntents.js.map +1 -1
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +442 -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 +378 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/index.d.ts +19 -0
- package/cjs/resources/SharedPayment/index.js +15 -0
- package/cjs/resources/SharedPayment/index.js.map +1 -0
- package/cjs/resources/Sources.d.ts +29 -1
- package/cjs/resources/SubscriptionItems.d.ts +236 -0
- package/cjs/resources/SubscriptionItems.js +41 -0
- package/cjs/resources/SubscriptionItems.js.map +1 -1
- package/cjs/resources/SubscriptionSchedules.d.ts +2007 -31
- package/cjs/resources/SubscriptionSchedules.js +61 -0
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +910 -14
- package/cjs/resources/Subscriptions.js +186 -0
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/CalculationLineItems.d.ts +12 -1
- package/cjs/resources/Tax/Calculations.d.ts +43 -1
- package/cjs/resources/Tax/Certificates.d.ts +107 -0
- package/cjs/resources/Tax/Certificates.js +35 -0
- package/cjs/resources/Tax/Certificates.js.map +1 -0
- package/cjs/resources/Tax/FormCorrections.d.ts +29 -0
- package/cjs/resources/Tax/FormCorrections.js +4 -0
- package/cjs/resources/Tax/FormCorrections.js.map +1 -0
- package/cjs/resources/Tax/Forms.d.ts +973 -0
- package/cjs/resources/Tax/Forms.js +38 -0
- package/cjs/resources/Tax/Forms.js.map +1 -0
- package/cjs/resources/Tax/Registrations.d.ts +60 -4
- 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 +12 -0
- package/cjs/resources/Tax/Transactions.js +13 -0
- package/cjs/resources/Tax/Transactions.js.map +1 -1
- package/cjs/resources/Tax/index.d.ts +41 -17
- package/cjs/resources/Tax/index.js +4 -0
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/TaxFunds.d.ts +174 -0
- package/cjs/resources/TaxFunds.js +23 -0
- package/cjs/resources/TaxFunds.js.map +1 -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/ReaderCollectedData.d.ts +50 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/cjs/resources/Terminal/Readers.d.ts +235 -2
- package/cjs/resources/Terminal/Readers.js +24 -0
- package/cjs/resources/Terminal/Readers.js.map +1 -1
- package/cjs/resources/Terminal/index.d.ts +9 -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 +82 -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 +165 -1
- package/cjs/resources/TestHelpers/Issuing/Authorizations.d.ts +95 -0
- package/cjs/resources/TestHelpers/Issuing/Authorizations.js +245 -0
- package/cjs/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
- package/cjs/resources/TestHelpers/Issuing/Disputes.d.ts +127 -0
- package/cjs/resources/TestHelpers/Issuing/Disputes.js +39 -0
- package/cjs/resources/TestHelpers/Issuing/Disputes.js.map +1 -0
- package/cjs/resources/TestHelpers/Issuing/Transactions.d.ts +48 -0
- package/cjs/resources/TestHelpers/Issuing/Transactions.js +48 -0
- package/cjs/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
- 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 +38 -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 +92 -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/Terminal/Readers.d.ts +18 -1
- 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 +76 -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/InboundTransfers.d.ts +60 -0
- package/cjs/resources/Treasury/OutboundPayments.d.ts +48 -0
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +66 -0
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/cjs/resources/Treasury/TransactionEntries.js +76 -0
- package/cjs/resources/Treasury/TransactionEntries.js.map +1 -1
- package/cjs/resources/Treasury/Transactions.js +82 -0
- package/cjs/resources/Treasury/Transactions.js.map +1 -1
- package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings.d.ts +281 -0
- package/cjs/resources/V2/Billing/BillSettings.js +41 -0
- package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/CadenceSpendModifiers.d.ts +87 -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 +1022 -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 +238 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/ContractPricingLineQuantityChanges.d.ts +50 -0
- package/cjs/resources/V2/Billing/ContractPricingLineQuantityChanges.js +4 -0
- package/cjs/resources/V2/Billing/ContractPricingLineQuantityChanges.js.map +1 -0
- package/cjs/resources/V2/Billing/ContractTermQuantityChanges.d.ts +35 -0
- package/cjs/resources/V2/Billing/ContractTermQuantityChanges.js +4 -0
- package/cjs/resources/V2/Billing/ContractTermQuantityChanges.js.map +1 -0
- package/cjs/resources/V2/Billing/ContractTerms.d.ts +216 -0
- package/cjs/resources/V2/Billing/ContractTerms.js +4 -0
- package/cjs/resources/V2/Billing/ContractTerms.js.map +1 -0
- package/cjs/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.d.ts +23 -0
- package/cjs/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.js +29 -0
- package/cjs/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.js.map +1 -0
- package/cjs/resources/V2/Billing/Contracts/PricingLines.d.ts +8 -0
- package/cjs/resources/V2/Billing/Contracts/PricingLines.js +15 -0
- package/cjs/resources/V2/Billing/Contracts/PricingLines.js.map +1 -0
- package/cjs/resources/V2/Billing/Contracts/Terms/QuantityChanges.d.ts +23 -0
- package/cjs/resources/V2/Billing/Contracts/Terms/QuantityChanges.js +29 -0
- package/cjs/resources/V2/Billing/Contracts/Terms/QuantityChanges.js.map +1 -0
- package/cjs/resources/V2/Billing/Contracts/Terms.d.ts +46 -0
- package/cjs/resources/V2/Billing/Contracts/Terms.js +82 -0
- package/cjs/resources/V2/Billing/Contracts/Terms.js.map +1 -0
- package/cjs/resources/V2/Billing/Contracts.d.ts +2762 -0
- package/cjs/resources/V2/Billing/Contracts.js +657 -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 +609 -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 +1267 -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 +78 -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 +360 -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 +170 -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 +218 -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 +170 -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 +80 -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 +636 -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 +169 -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 +162 -0
- package/cjs/resources/V2/Billing/Profiles.js +35 -0
- package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
- package/cjs/resources/V2/Billing/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 +111 -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 +218 -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 +336 -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 +536 -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 +181 -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 +167 -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 +138 -2
- package/cjs/resources/V2/Core/AccountPersons.d.ts +5 -2
- package/cjs/resources/V2/Core/AccountSessions.d.ts +1649 -0
- package/cjs/resources/V2/Core/AccountSessions.js +16 -0
- package/cjs/resources/V2/Core/AccountSessions.js.map +1 -0
- package/cjs/resources/V2/Core/AccountTokens.d.ts +242 -4
- package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +5 -2
- package/cjs/resources/V2/Core/Accounts/Persons.d.ts +10 -4
- package/cjs/resources/V2/Core/Accounts.d.ts +22332 -1163
- package/cjs/resources/V2/Core/Accounts.js +23373 -30
- package/cjs/resources/V2/Core/Accounts.js.map +1 -1
- package/cjs/resources/V2/Core/ApprovalRequests.d.ts +410 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js +39 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/cjs/resources/V2/Core/BatchJobs.d.ts +392 -0
- package/cjs/resources/V2/Core/BatchJobs.js +252 -0
- package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.d.ts +225 -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 +86 -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 +6062 -593
- package/cjs/resources/V2/Core/FeeBatches.d.ts +228 -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 +196 -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/Health/AlertHistoryEntries.d.ts +426 -0
- package/cjs/resources/V2/Core/Health/AlertHistoryEntries.js +4 -0
- package/cjs/resources/V2/Core/Health/AlertHistoryEntries.js.map +1 -0
- package/cjs/resources/V2/Core/Health/Alerts/History.d.ts +23 -0
- package/cjs/resources/V2/Core/Health/Alerts/History.js +101 -0
- package/cjs/resources/V2/Core/Health/Alerts/History.js.map +1 -0
- package/cjs/resources/V2/Core/Health/Alerts.d.ts +540 -0
- package/cjs/resources/V2/Core/Health/Alerts.js +182 -0
- package/cjs/resources/V2/Core/Health/Alerts.js.map +1 -0
- package/cjs/resources/V2/Core/Health/index.d.ts +16 -0
- package/cjs/resources/V2/Core/Health/index.js +13 -0
- package/cjs/resources/V2/Core/Health/index.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
- package/cjs/resources/V2/Core/Vault/NetworkTokens.d.ts +199 -0
- package/cjs/resources/V2/Core/Vault/NetworkTokens.js +42 -0
- package/cjs/resources/V2/Core/Vault/NetworkTokens.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
- package/cjs/resources/V2/Core/Vault/index.d.ts +17 -9
- package/cjs/resources/V2/Core/Vault/index.js +2 -0
- package/cjs/resources/V2/Core/Vault/index.js.map +1 -1
- package/cjs/resources/V2/Core/index.d.ts +69 -14
- package/cjs/resources/V2/Core/index.js +20 -2
- package/cjs/resources/V2/Core/index.js.map +1 -1
- package/cjs/resources/V2/Data/Analytics/MetricQuery.d.ts +74 -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 +76 -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/Operations.d.ts +37 -0
- package/cjs/resources/V2/Data/Operations.js +40 -0
- package/cjs/resources/V2/Data/Operations.js.map +1 -0
- package/cjs/resources/V2/Data/QueryRuns.d.ts +299 -0
- package/cjs/resources/V2/Data/QueryRuns.js +51 -0
- package/cjs/resources/V2/Data/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/ReportRuns.d.ts +303 -0
- package/cjs/resources/V2/Data/ReportRuns.js +53 -0
- package/cjs/resources/V2/Data/ReportRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +176 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
- package/cjs/resources/V2/Data/Reports.d.ts +140 -0
- package/cjs/resources/V2/Data/Reports.js +25 -0
- package/cjs/resources/V2/Data/Reports.js.map +1 -0
- package/cjs/resources/V2/Data/Schemas.d.ts +161 -0
- package/cjs/resources/V2/Data/Schemas.js +23 -0
- package/cjs/resources/V2/Data/Schemas.js.map +1 -0
- package/cjs/resources/V2/Data/SearchResultLists.d.ts +348 -0
- package/cjs/resources/V2/Data/SearchResultLists.js +4 -0
- package/cjs/resources/V2/Data/SearchResultLists.js.map +1 -0
- package/cjs/resources/V2/Data/index.d.ts +42 -0
- package/cjs/resources/V2/Data/index.js +25 -0
- package/cjs/resources/V2/Data/index.js.map +1 -0
- package/cjs/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
- package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js +4 -0
- package/cjs/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js +23 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions.js +29 -0
- package/cjs/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/cjs/resources/V2/Extend/Workflows.d.ts +120 -0
- package/cjs/resources/V2/Extend/Workflows.js +30 -0
- package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +29 -0
- package/cjs/resources/V2/Extend/index.js +17 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -0
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +457 -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 +306 -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 +44 -2
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.d.ts +131 -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 +173 -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/EarnedCreditSimulations.d.ts +18 -0
- package/cjs/resources/V2/MoneyManagement/EarnedCreditSimulations.js +4 -0
- package/cjs/resources/V2/MoneyManagement/EarnedCreditSimulations.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/EarnedCredits.d.ts +134 -0
- package/cjs/resources/V2/MoneyManagement/EarnedCredits.js +23 -0
- package/cjs/resources/V2/MoneyManagement/EarnedCredits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountStatements.d.ts +99 -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/FinancialAccountWalletExportCredentials.d.ts +62 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountWalletExportCredentials.js +4 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountWalletExportCredentials.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountWalletExports.d.ts +50 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountWalletExports.js +4 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountWalletExports.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts/Statements.d.ts +49 -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/WalletExport.d.ts +51 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts/WalletExport.js +22 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts/WalletExport.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +437 -4
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +132 -2
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.d.ts +14 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.js +4 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +4 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +144 -6
- package/cjs/resources/V2/MoneyManagement/FundingIntents.d.ts +504 -0
- package/cjs/resources/V2/MoneyManagement/FundingIntents.js +53 -0
- package/cjs/resources/V2/MoneyManagement/FundingIntents.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FundingSessions.d.ts +111 -0
- package/cjs/resources/V2/MoneyManagement/FundingSessions.js +15 -0
- package/cjs/resources/V2/MoneyManagement/FundingSessions.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/InboundFundings.d.ts +178 -0
- package/cjs/resources/V2/MoneyManagement/InboundFundings.js +23 -0
- package/cjs/resources/V2/MoneyManagement/InboundFundings.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransferMandates.d.ts +265 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransferMandates.js +39 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransferMandates.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +88 -2
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +374 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +23 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +246 -6
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +143 -2
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +434 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +40 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutIntents.d.ts +18 -6
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +125 -1
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +344 -6
- package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.d.ts +171 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.js +29 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebitMandates.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +373 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
- package/cjs/resources/V2/MoneyManagement/RewardProgramEnrollments.d.ts +140 -0
- package/cjs/resources/V2/MoneyManagement/RewardProgramEnrollments.js +46 -0
- package/cjs/resources/V2/MoneyManagement/RewardProgramEnrollments.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/RewardProgramRules.d.ts +85 -0
- package/cjs/resources/V2/MoneyManagement/RewardProgramRules.js +4 -0
- package/cjs/resources/V2/MoneyManagement/RewardProgramRules.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/RewardPrograms/Rules.d.ts +205 -0
- package/cjs/resources/V2/MoneyManagement/RewardPrograms/Rules.js +177 -0
- package/cjs/resources/V2/MoneyManagement/RewardPrograms/Rules.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/RewardPrograms.d.ts +135 -0
- package/cjs/resources/V2/MoneyManagement/RewardPrograms.js +57 -0
- package/cjs/resources/V2/MoneyManagement/RewardPrograms.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +43 -1
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +13 -0
- package/cjs/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/TestHelpers.d.ts +37 -0
- package/cjs/resources/V2/MoneyManagement/TestHelpers.js +21 -0
- package/cjs/resources/V2/MoneyManagement/TestHelpers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +140 -4
- package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +140 -4
- package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -1
- package/cjs/resources/V2/MoneyManagement/index.d.ts +175 -57
- package/cjs/resources/V2/MoneyManagement/index.js +28 -2
- package/cjs/resources/V2/MoneyManagement/index.js.map +1 -1
- package/cjs/resources/V2/Network/BusinessProfiles.d.ts +92 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/cjs/resources/V2/Network/index.d.ts +13 -0
- package/cjs/resources/V2/Network/index.js +13 -0
- package/cjs/resources/V2/Network/index.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.d.ts +736 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js +47 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js.map +1 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.d.ts +73 -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 +212 -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 +30 -0
- package/cjs/resources/V2/Payments/index.js +15 -0
- package/cjs/resources/V2/Payments/index.js.map +1 -0
- package/cjs/resources/V2/Provisioning/Catalog/Providers.d.ts +33 -0
- package/cjs/resources/V2/Provisioning/Catalog/Providers.js +17 -0
- package/cjs/resources/V2/Provisioning/Catalog/Providers.js.map +1 -0
- package/cjs/resources/V2/Provisioning/Catalog/Services.d.ts +37 -0
- package/cjs/resources/V2/Provisioning/Catalog/Services.js +17 -0
- package/cjs/resources/V2/Provisioning/Catalog/Services.js.map +1 -0
- package/cjs/resources/V2/Provisioning/Catalog/index.d.ts +10 -0
- package/cjs/resources/V2/Provisioning/Catalog/index.js +15 -0
- package/cjs/resources/V2/Provisioning/Catalog/index.js.map +1 -0
- package/cjs/resources/V2/Provisioning/Eligibility.d.ts +33 -0
- package/cjs/resources/V2/Provisioning/Eligibility.js +16 -0
- package/cjs/resources/V2/Provisioning/Eligibility.js.map +1 -0
- package/cjs/resources/V2/Provisioning/PaymentMethodRequests.d.ts +79 -0
- package/cjs/resources/V2/Provisioning/PaymentMethodRequests.js +25 -0
- package/cjs/resources/V2/Provisioning/PaymentMethodRequests.js.map +1 -0
- package/cjs/resources/V2/Provisioning/PaymentProfile.d.ts +139 -0
- package/cjs/resources/V2/Provisioning/PaymentProfile.js +74 -0
- package/cjs/resources/V2/Provisioning/PaymentProfile.js.map +1 -0
- package/cjs/resources/V2/Provisioning/Projects.d.ts +79 -0
- package/cjs/resources/V2/Provisioning/Projects.js +15 -0
- package/cjs/resources/V2/Provisioning/Projects.js.map +1 -0
- package/cjs/resources/V2/Provisioning/ProviderConnectionRequests.d.ts +145 -0
- package/cjs/resources/V2/Provisioning/ProviderConnectionRequests.js +27 -0
- package/cjs/resources/V2/Provisioning/ProviderConnectionRequests.js.map +1 -0
- package/cjs/resources/V2/Provisioning/ProviderConnections.d.ts +115 -0
- package/cjs/resources/V2/Provisioning/ProviderConnections.js +23 -0
- package/cjs/resources/V2/Provisioning/ProviderConnections.js.map +1 -0
- package/cjs/resources/V2/Provisioning/ProviderServiceDetails.d.ts +243 -0
- package/cjs/resources/V2/Provisioning/ProviderServiceDetails.js +4 -0
- package/cjs/resources/V2/Provisioning/ProviderServiceDetails.js.map +1 -0
- package/cjs/resources/V2/Provisioning/Providers.d.ts +67 -0
- package/cjs/resources/V2/Provisioning/Providers.js +4 -0
- package/cjs/resources/V2/Provisioning/Providers.js.map +1 -0
- package/cjs/resources/V2/Provisioning/ResourceAccessConfigurations.d.ts +28 -0
- package/cjs/resources/V2/Provisioning/ResourceAccessConfigurations.js +4 -0
- package/cjs/resources/V2/Provisioning/ResourceAccessConfigurations.js.map +1 -0
- package/cjs/resources/V2/Provisioning/Resources.d.ts +287 -0
- package/cjs/resources/V2/Provisioning/Resources.js +66 -0
- package/cjs/resources/V2/Provisioning/Resources.js.map +1 -0
- package/cjs/resources/V2/Provisioning/index.d.ts +66 -0
- package/cjs/resources/V2/Provisioning/index.js +27 -0
- package/cjs/resources/V2/Provisioning/index.js.map +1 -0
- package/cjs/resources/V2/Reporting/ReportRuns.d.ts +195 -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 +106 -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/Risk/Forms.d.ts +253 -0
- package/cjs/resources/V2/Risk/Forms.js +21 -0
- package/cjs/resources/V2/Risk/Forms.js.map +1 -0
- package/cjs/resources/V2/Risk/index.d.ts +13 -0
- package/cjs/resources/V2/Risk/index.js +13 -0
- package/cjs/resources/V2/Risk/index.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountActivities.d.ts +747 -0
- package/cjs/resources/V2/Signals/AccountActivities.js +27 -0
- package/cjs/resources/V2/Signals/AccountActivities.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.d.ts +516 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.js +67 -0
- package/cjs/resources/V2/Signals/AccountEvaluations.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountSignals.d.ts +361 -0
- package/cjs/resources/V2/Signals/AccountSignals.js +118 -0
- package/cjs/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/cjs/resources/V2/Signals/PaymentRetryEvaluations.d.ts +116 -0
- package/cjs/resources/V2/Signals/PaymentRetryEvaluations.js +38 -0
- package/cjs/resources/V2/Signals/PaymentRetryEvaluations.js.map +1 -0
- package/cjs/resources/V2/Signals/PaymentRetrySignals.d.ts +63 -0
- package/cjs/resources/V2/Signals/PaymentRetrySignals.js +15 -0
- package/cjs/resources/V2/Signals/PaymentRetrySignals.js.map +1 -0
- package/cjs/resources/V2/Signals/index.d.ts +39 -0
- package/cjs/resources/V2/Signals/index.js +21 -0
- package/cjs/resources/V2/Signals/index.js.map +1 -0
- package/cjs/resources/V2/Tax/IntegrationConfigurations.d.ts +116 -0
- package/cjs/resources/V2/Tax/IntegrationConfigurations.js +21 -0
- package/cjs/resources/V2/Tax/IntegrationConfigurations.js.map +1 -0
- package/cjs/resources/V2/Tax/ManualRules.d.ts +331 -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/Operations.d.ts +43 -0
- package/cjs/resources/V2/Tax/Operations.js +15 -0
- package/cjs/resources/V2/Tax/Operations.js.map +1 -0
- package/cjs/resources/V2/Tax/OperationsResolveAddressResults.d.ts +70 -0
- package/cjs/resources/V2/Tax/OperationsResolveAddressResults.js +4 -0
- package/cjs/resources/V2/Tax/OperationsResolveAddressResults.js.map +1 -0
- package/cjs/resources/V2/Tax/index.d.ts +27 -0
- package/cjs/resources/V2/Tax/index.js +17 -0
- package/cjs/resources/V2/Tax/index.js.map +1 -0
- package/cjs/resources/V2/index.d.ts +33 -0
- package/cjs/resources/V2/index.js +26 -4
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/resources/WebhookEndpoints.d.ts +2 -2
- package/cjs/resources.d.ts +20 -0
- package/cjs/resources.js +313 -21
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.cjs.node.d.ts +20042 -2747
- package/cjs/stripe.cjs.node.js.map +1 -1
- package/cjs/stripe.core.d.ts +170 -56
- package/cjs/stripe.core.js +156 -45
- package/cjs/stripe.core.js.map +1 -1
- package/esm/Error.d.ts +29 -0
- package/esm/Error.js +47 -0
- package/esm/Error.js.map +1 -1
- package/esm/RequestSender.js +26 -5
- package/esm/RequestSender.js.map +1 -1
- package/esm/StripeEventNotificationHandler.js +226 -3
- package/esm/StripeEventNotificationHandler.js.map +1 -1
- package/esm/Types.d.ts +21 -2
- package/esm/Types.js.map +1 -1
- package/esm/WorkloadIdentity.d.ts +99 -0
- package/esm/WorkloadIdentity.js +282 -0
- package/esm/WorkloadIdentity.js.map +1 -0
- package/esm/apiVersion.d.ts +2 -2
- package/esm/apiVersion.js +2 -2
- package/esm/apiVersion.js.map +1 -1
- package/esm/net/WorkloadIdentityTokenTransport.d.ts +27 -0
- package/esm/net/WorkloadIdentityTokenTransport.js +49 -0
- package/esm/net/WorkloadIdentityTokenTransport.js.map +1 -0
- 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 +729 -8
- package/esm/resources/AccountSessions.js.map +1 -1
- package/esm/resources/AccountSignals.d.ts +111 -0
- package/esm/resources/AccountSignals.js +3 -0
- package/esm/resources/AccountSignals.js.map +1 -0
- package/esm/resources/Accounts.d.ts +871 -3
- 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/Apps/Installs.d.ts +1 -1
- package/esm/resources/Apps/Installs.js +1 -1
- package/esm/resources/Balance.d.ts +205 -0
- package/esm/resources/BalanceSettings.d.ts +26 -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 +16 -2
- package/esm/resources/Billing/AlertNotifications.d.ts +79 -0
- package/esm/resources/Billing/AlertNotifications.js +3 -0
- package/esm/resources/Billing/AlertNotifications.js.map +1 -0
- package/esm/resources/Billing/AlertRecovereds.d.ts +56 -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 +59 -1
- package/esm/resources/Billing/Alerts.d.ts +462 -5
- package/esm/resources/Billing/Alerts.js +329 -5
- package/esm/resources/Billing/Alerts.js.map +1 -1
- package/esm/resources/Billing/Analytics/MeterUsage.d.ts +89 -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 +136 -3
- 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 +105 -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 +10 -0
- package/esm/resources/Billing/index.js +2 -0
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/Capabilities.d.ts +39 -2
- package/esm/resources/Capital/FinancingOffers.d.ts +217 -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 +123 -0
- package/esm/resources/Capital/FinancingSummary.js +11 -0
- package/esm/resources/Capital/FinancingSummary.js.map +1 -0
- package/esm/resources/Capital/FinancingTransactions.d.ts +141 -0
- package/esm/resources/Capital/FinancingTransactions.js +20 -0
- package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
- package/esm/resources/Capital/index.d.ts +25 -0
- package/esm/resources/Capital/index.js +13 -0
- package/esm/resources/Capital/index.js.map +1 -0
- package/esm/resources/Cards.d.ts +28 -0
- package/esm/resources/Charges.d.ts +3783 -94
- package/esm/resources/Charges.js.map +1 -1
- package/esm/resources/Checkout/Sessions.d.ts +2287 -79
- package/esm/resources/Checkout/Sessions.js +668 -12
- package/esm/resources/Checkout/Sessions.js.map +1 -1
- package/esm/resources/Checkout/index.d.ts +1 -0
- package/esm/resources/ConfirmationTokens.d.ts +201 -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/Crypto/CustomerConsumerWallets.d.ts +30 -0
- package/esm/resources/Crypto/CustomerConsumerWallets.js +3 -0
- package/esm/resources/Crypto/CustomerConsumerWallets.js.map +1 -0
- package/esm/resources/Crypto/CustomerPaymentTokens.d.ts +80 -0
- package/esm/resources/Crypto/CustomerPaymentTokens.js +3 -0
- package/esm/resources/Crypto/CustomerPaymentTokens.js.map +1 -0
- package/esm/resources/Crypto/Customers.d.ts +111 -0
- package/esm/resources/Crypto/Customers.js +27 -0
- package/esm/resources/Crypto/Customers.js.map +1 -0
- package/esm/resources/Crypto/DepositAddresses.d.ts +128 -0
- package/esm/resources/Crypto/DepositAddresses.js +27 -0
- package/esm/resources/Crypto/DepositAddresses.js.map +1 -0
- package/esm/resources/Crypto/OnrampSessions.d.ts +425 -0
- package/esm/resources/Crypto/OnrampSessions.js +43 -0
- package/esm/resources/Crypto/OnrampSessions.js.map +1 -0
- package/esm/resources/Crypto/OnrampTransactionLimits.d.ts +61 -0
- package/esm/resources/Crypto/OnrampTransactionLimits.js +11 -0
- package/esm/resources/Crypto/OnrampTransactionLimits.js.map +1 -0
- package/esm/resources/Crypto/index.d.ts +41 -0
- package/esm/resources/Crypto/index.js +15 -0
- package/esm/resources/Crypto/index.js.map +1 -0
- package/esm/resources/CustomerCashBalanceTransactions.d.ts +15 -0
- package/esm/resources/CustomerSessions.d.ts +82 -0
- package/esm/resources/CustomerSessions.js +13 -0
- package/esm/resources/CustomerSessions.js.map +1 -1
- package/esm/resources/CustomerTaxExemptions.d.ts +107 -0
- package/esm/resources/CustomerTaxExemptions.js +3 -0
- package/esm/resources/CustomerTaxExemptions.js.map +1 -0
- package/esm/resources/Customers.d.ts +334 -1
- package/esm/resources/Customers.js +221 -0
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/DelegatedCheckout/OrderEvents.d.ts +129 -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 +159 -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 +1427 -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 +29 -1
- package/esm/resources/Disputes.js +14 -0
- package/esm/resources/Disputes.js.map +1 -1
- package/esm/resources/Events.d.ts +640 -3
- package/esm/resources/ExternalAccounts.d.ts +212 -1
- package/esm/resources/ExternalAccounts.js +42 -1
- package/esm/resources/ExternalAccounts.js.map +1 -1
- package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/esm/resources/FinancialConnections/Accounts.d.ts +105 -4
- package/esm/resources/FinancialConnections/Accounts.js +8 -0
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +46 -1
- package/esm/resources/FinancialConnections/Authorizations.js +9 -1
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -1
- package/esm/resources/FinancialConnections/Consents.d.ts +113 -0
- package/esm/resources/FinancialConnections/Consents.js +17 -0
- package/esm/resources/FinancialConnections/Consents.js.map +1 -0
- package/esm/resources/FinancialConnections/Institutions.d.ts +99 -0
- package/esm/resources/FinancialConnections/Institutions.js +19 -0
- package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
- package/esm/resources/FinancialConnections/Sessions.d.ts +134 -9
- package/esm/resources/FinancialConnections/Transactions.d.ts +70 -0
- package/esm/resources/FinancialConnections/index.d.ts +27 -9
- package/esm/resources/FinancialConnections/index.js +6 -0
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/FxQuotes.d.ts +216 -0
- package/esm/resources/FxQuotes.js +25 -0
- package/esm/resources/FxQuotes.js.map +1 -0
- package/esm/resources/GiftCardOperations.d.ts +249 -0
- package/esm/resources/GiftCardOperations.js +11 -0
- package/esm/resources/GiftCardOperations.js.map +1 -0
- package/esm/resources/GiftCards.d.ts +188 -0
- package/esm/resources/GiftCards.js +47 -0
- package/esm/resources/GiftCards.js.map +1 -0
- package/esm/resources/Identity/BlocklistEntries.d.ts +155 -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 +203 -2
- package/esm/resources/Identity/VerificationReports.js.map +1 -1
- package/esm/resources/Identity/VerificationSessions.d.ts +45 -1
- 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 +215 -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 +2167 -73
- package/esm/resources/Invoices.js +221 -0
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +821 -1
- package/esm/resources/Issuing/Authorizations.js +177 -0
- package/esm/resources/Issuing/Authorizations.js.map +1 -1
- package/esm/resources/Issuing/Cardholders.d.ts +22 -4
- package/esm/resources/Issuing/Cards.d.ts +141 -2
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +654 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +49 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +93 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/esm/resources/Issuing/Disputes.d.ts +246 -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 +83 -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 +26 -0
- package/esm/resources/Issuing/Transactions.d.ts +259 -0
- package/esm/resources/Issuing/Transactions.js +48 -0
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +56 -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 +36 -2
- package/esm/resources/Mandates.js +8 -0
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/Margins.d.ts +115 -0
- package/esm/resources/Margins.js +31 -0
- package/esm/resources/Margins.js.map +1 -0
- package/esm/resources/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 +4776 -0
- package/esm/resources/Orders.js +453 -0
- package/esm/resources/Orders.js.map +1 -0
- package/esm/resources/PaymentAttemptRecords.d.ts +908 -2
- package/esm/resources/PaymentAttemptRecords.js +48 -0
- package/esm/resources/PaymentAttemptRecords.js.map +1 -1
- package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +104 -0
- package/esm/resources/PaymentIntents.d.ts +19847 -4859
- package/esm/resources/PaymentIntents.js +46 -0
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +73 -12
- package/esm/resources/PaymentLocationCapabilities.d.ts +124 -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 +420 -0
- package/esm/resources/PaymentMethods.d.ts +423 -3
- package/esm/resources/PaymentMethods.js +20 -0
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentPlans.d.ts +427 -0
- package/esm/resources/PaymentPlans.js +31 -0
- package/esm/resources/PaymentPlans.js.map +1 -0
- package/esm/resources/PaymentRecords.d.ts +906 -20
- package/esm/resources/PaymentRecords.js +18 -0
- package/esm/resources/PaymentRecords.js.map +1 -1
- package/esm/resources/Payouts.d.ts +30 -0
- package/esm/resources/Persons.d.ts +39 -2
- package/esm/resources/Prices.d.ts +60 -0
- package/esm/resources/Prices.js +27 -0
- package/esm/resources/Prices.js.map +1 -1
- package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +36 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/esm/resources/Privacy/RedactionJobs.d.ts +227 -0
- package/esm/resources/Privacy/RedactionJobs.js +69 -0
- package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
- package/esm/resources/Privacy/index.d.ts +22 -0
- package/esm/resources/Privacy/index.js +9 -0
- package/esm/resources/Privacy/index.js.map +1 -0
- package/esm/resources/ProductCatalog/TrialOffers.d.ts +2 -2
- package/esm/resources/Products.d.ts +156 -0
- package/esm/resources/Products.js +69 -0
- package/esm/resources/Products.js.map +1 -1
- package/esm/resources/Profiles.d.ts +68 -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 +1291 -0
- package/esm/resources/QuotePreviewInvoices.js +3 -0
- package/esm/resources/QuotePreviewInvoices.js.map +1 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +1134 -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 +309 -0
- package/esm/resources/Radar/AccountEvaluations.js +23 -0
- package/esm/resources/Radar/AccountEvaluations.js.map +1 -0
- package/esm/resources/Radar/BillingEvaluations.d.ts +374 -0
- package/esm/resources/Radar/BillingEvaluations.js +11 -0
- package/esm/resources/Radar/BillingEvaluations.js.map +1 -0
- package/esm/resources/Radar/CustomerEvaluations.d.ts +245 -0
- package/esm/resources/Radar/CustomerEvaluations.js +23 -0
- package/esm/resources/Radar/CustomerEvaluations.js.map +1 -0
- package/esm/resources/Radar/IssuingAuthorizationEvaluations.d.ts +433 -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 +234 -5
- package/esm/resources/Radar/PaymentEvaluations.js.map +1 -1
- package/esm/resources/Radar/Rules.d.ts +18 -0
- package/esm/resources/Radar/Rules.js +3 -0
- package/esm/resources/Radar/Rules.js.map +1 -0
- package/esm/resources/Radar/ValueListItems.d.ts +39 -1
- package/esm/resources/Radar/ValueListItems.js +13 -0
- package/esm/resources/Radar/ValueListItems.js.map +1 -1
- package/esm/resources/Radar/index.d.ts +44 -16
- package/esm/resources/Radar/index.js +8 -0
- package/esm/resources/Radar/index.js.map +1 -1
- package/esm/resources/Refunds.d.ts +113 -0
- package/esm/resources/Refunds.js +27 -0
- package/esm/resources/Refunds.js.map +1 -1
- package/esm/resources/Reporting/ReportRuns.d.ts +4 -0
- package/esm/resources/Reserve/Holds.d.ts +53 -1
- package/esm/resources/Reserve/Holds.js +17 -1
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +41 -1
- package/esm/resources/Reserve/Plans.js +17 -1
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +41 -1
- package/esm/resources/Reserve/Releases.js +17 -1
- package/esm/resources/Reserve/Releases.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +18 -6
- package/esm/resources/Reserve/index.js +9 -0
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/Risk/Forms.d.ts +380 -0
- package/esm/resources/Risk/Forms.js +34 -0
- package/esm/resources/Risk/Forms.js.map +1 -0
- package/esm/resources/Risk/index.d.ts +13 -0
- package/esm/resources/Risk/index.js +9 -0
- package/esm/resources/Risk/index.js.map +1 -0
- 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 +39 -1
- package/esm/resources/SetupAttempts.js.map +1 -1
- package/esm/resources/SetupIntents.d.ts +877 -16
- package/esm/resources/SetupIntents.js.map +1 -1
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +442 -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 +378 -0
- package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
- package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/index.d.ts +19 -0
- package/esm/resources/SharedPayment/index.js +11 -0
- package/esm/resources/SharedPayment/index.js.map +1 -0
- package/esm/resources/Sources.d.ts +29 -1
- package/esm/resources/SubscriptionItems.d.ts +236 -0
- package/esm/resources/SubscriptionItems.js +41 -0
- package/esm/resources/SubscriptionItems.js.map +1 -1
- package/esm/resources/SubscriptionSchedules.d.ts +2007 -31
- package/esm/resources/SubscriptionSchedules.js +61 -0
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +910 -14
- package/esm/resources/Subscriptions.js +186 -0
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/CalculationLineItems.d.ts +12 -1
- package/esm/resources/Tax/Calculations.d.ts +43 -1
- package/esm/resources/Tax/Certificates.d.ts +107 -0
- package/esm/resources/Tax/Certificates.js +31 -0
- package/esm/resources/Tax/Certificates.js.map +1 -0
- package/esm/resources/Tax/FormCorrections.d.ts +29 -0
- package/esm/resources/Tax/FormCorrections.js +3 -0
- package/esm/resources/Tax/FormCorrections.js.map +1 -0
- package/esm/resources/Tax/Forms.d.ts +973 -0
- package/esm/resources/Tax/Forms.js +34 -0
- package/esm/resources/Tax/Forms.js.map +1 -0
- package/esm/resources/Tax/Registrations.d.ts +60 -4
- 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 +12 -0
- package/esm/resources/Tax/Transactions.js +13 -0
- package/esm/resources/Tax/Transactions.js.map +1 -1
- package/esm/resources/Tax/index.d.ts +41 -17
- package/esm/resources/Tax/index.js +4 -0
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/TaxFunds.d.ts +174 -0
- package/esm/resources/TaxFunds.js +19 -0
- package/esm/resources/TaxFunds.js.map +1 -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/ReaderCollectedData.d.ts +50 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
- package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/esm/resources/Terminal/Readers.d.ts +235 -2
- package/esm/resources/Terminal/Readers.js +24 -0
- package/esm/resources/Terminal/Readers.js.map +1 -1
- package/esm/resources/Terminal/index.d.ts +9 -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 +82 -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 +165 -1
- package/esm/resources/TestHelpers/Issuing/Authorizations.d.ts +95 -0
- package/esm/resources/TestHelpers/Issuing/Authorizations.js +245 -0
- package/esm/resources/TestHelpers/Issuing/Authorizations.js.map +1 -1
- package/esm/resources/TestHelpers/Issuing/Disputes.d.ts +127 -0
- package/esm/resources/TestHelpers/Issuing/Disputes.js +35 -0
- package/esm/resources/TestHelpers/Issuing/Disputes.js.map +1 -0
- package/esm/resources/TestHelpers/Issuing/Transactions.d.ts +48 -0
- package/esm/resources/TestHelpers/Issuing/Transactions.js +48 -0
- package/esm/resources/TestHelpers/Issuing/Transactions.js.map +1 -1
- 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 +38 -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 +92 -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/Terminal/Readers.d.ts +18 -1
- 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 +76 -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/InboundTransfers.d.ts +60 -0
- package/esm/resources/Treasury/OutboundPayments.d.ts +48 -0
- package/esm/resources/Treasury/OutboundTransfers.d.ts +66 -0
- package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/esm/resources/Treasury/TransactionEntries.js +76 -0
- package/esm/resources/Treasury/TransactionEntries.js.map +1 -1
- package/esm/resources/Treasury/Transactions.js +82 -0
- package/esm/resources/Treasury/Transactions.js.map +1 -1
- package/esm/resources/V2/Billing/BillSettingVersions.d.ts +72 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings.d.ts +281 -0
- package/esm/resources/V2/Billing/BillSettings.js +37 -0
- package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
- package/esm/resources/V2/Billing/CadenceSpendModifiers.d.ts +87 -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 +1022 -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 +238 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
- package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/esm/resources/V2/Billing/ContractPricingLineQuantityChanges.d.ts +50 -0
- package/esm/resources/V2/Billing/ContractPricingLineQuantityChanges.js +3 -0
- package/esm/resources/V2/Billing/ContractPricingLineQuantityChanges.js.map +1 -0
- package/esm/resources/V2/Billing/ContractTermQuantityChanges.d.ts +35 -0
- package/esm/resources/V2/Billing/ContractTermQuantityChanges.js +3 -0
- package/esm/resources/V2/Billing/ContractTermQuantityChanges.js.map +1 -0
- package/esm/resources/V2/Billing/ContractTerms.d.ts +216 -0
- package/esm/resources/V2/Billing/ContractTerms.js +3 -0
- package/esm/resources/V2/Billing/ContractTerms.js.map +1 -0
- package/esm/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.d.ts +23 -0
- package/esm/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.js +25 -0
- package/esm/resources/V2/Billing/Contracts/PricingLines/QuantityChanges.js.map +1 -0
- package/esm/resources/V2/Billing/Contracts/PricingLines.d.ts +8 -0
- package/esm/resources/V2/Billing/Contracts/PricingLines.js +11 -0
- package/esm/resources/V2/Billing/Contracts/PricingLines.js.map +1 -0
- package/esm/resources/V2/Billing/Contracts/Terms/QuantityChanges.d.ts +23 -0
- package/esm/resources/V2/Billing/Contracts/Terms/QuantityChanges.js +25 -0
- package/esm/resources/V2/Billing/Contracts/Terms/QuantityChanges.js.map +1 -0
- package/esm/resources/V2/Billing/Contracts/Terms.d.ts +46 -0
- package/esm/resources/V2/Billing/Contracts/Terms.js +78 -0
- package/esm/resources/V2/Billing/Contracts/Terms.js.map +1 -0
- package/esm/resources/V2/Billing/Contracts.d.ts +2762 -0
- package/esm/resources/V2/Billing/Contracts.js +653 -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 +609 -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 +1267 -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 +78 -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 +360 -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 +170 -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 +218 -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 +170 -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 +80 -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 +636 -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 +169 -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 +162 -0
- package/esm/resources/V2/Billing/Profiles.js +31 -0
- package/esm/resources/V2/Billing/Profiles.js.map +1 -0
- package/esm/resources/V2/Billing/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 +111 -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 +218 -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 +336 -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 +536 -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 +181 -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 +167 -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 +138 -2
- package/esm/resources/V2/Core/AccountPersons.d.ts +5 -2
- package/esm/resources/V2/Core/AccountSessions.d.ts +1649 -0
- package/esm/resources/V2/Core/AccountSessions.js +12 -0
- package/esm/resources/V2/Core/AccountSessions.js.map +1 -0
- package/esm/resources/V2/Core/AccountTokens.d.ts +242 -4
- package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +5 -2
- package/esm/resources/V2/Core/Accounts/Persons.d.ts +10 -4
- package/esm/resources/V2/Core/Accounts.d.ts +22332 -1163
- package/esm/resources/V2/Core/Accounts.js +23373 -30
- package/esm/resources/V2/Core/Accounts.js.map +1 -1
- package/esm/resources/V2/Core/ApprovalRequests.d.ts +410 -0
- package/esm/resources/V2/Core/ApprovalRequests.js +35 -0
- package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/esm/resources/V2/Core/BatchJobs.d.ts +392 -0
- package/esm/resources/V2/Core/BatchJobs.js +248 -0
- package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.d.ts +225 -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 +86 -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 +6062 -593
- package/esm/resources/V2/Core/FeeBatches.d.ts +228 -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 +196 -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/Health/AlertHistoryEntries.d.ts +426 -0
- package/esm/resources/V2/Core/Health/AlertHistoryEntries.js +3 -0
- package/esm/resources/V2/Core/Health/AlertHistoryEntries.js.map +1 -0
- package/esm/resources/V2/Core/Health/Alerts/History.d.ts +23 -0
- package/esm/resources/V2/Core/Health/Alerts/History.js +97 -0
- package/esm/resources/V2/Core/Health/Alerts/History.js.map +1 -0
- package/esm/resources/V2/Core/Health/Alerts.d.ts +540 -0
- package/esm/resources/V2/Core/Health/Alerts.js +178 -0
- package/esm/resources/V2/Core/Health/Alerts.js.map +1 -0
- package/esm/resources/V2/Core/Health/index.d.ts +16 -0
- package/esm/resources/V2/Core/Health/index.js +9 -0
- package/esm/resources/V2/Core/Health/index.js.map +1 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +117 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -1
- package/esm/resources/V2/Core/Vault/NetworkTokens.d.ts +199 -0
- package/esm/resources/V2/Core/Vault/NetworkTokens.js +38 -0
- package/esm/resources/V2/Core/Vault/NetworkTokens.js.map +1 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +27 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -1
- package/esm/resources/V2/Core/Vault/index.d.ts +17 -9
- package/esm/resources/V2/Core/Vault/index.js +2 -0
- package/esm/resources/V2/Core/Vault/index.js.map +1 -1
- package/esm/resources/V2/Core/index.d.ts +69 -14
- package/esm/resources/V2/Core/index.js +18 -0
- package/esm/resources/V2/Core/index.js.map +1 -1
- package/esm/resources/V2/Data/Analytics/MetricQuery.d.ts +74 -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 +76 -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/Operations.d.ts +37 -0
- package/esm/resources/V2/Data/Operations.js +36 -0
- package/esm/resources/V2/Data/Operations.js.map +1 -0
- package/esm/resources/V2/Data/QueryRuns.d.ts +299 -0
- package/esm/resources/V2/Data/QueryRuns.js +47 -0
- package/esm/resources/V2/Data/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/ReportRuns.d.ts +303 -0
- package/esm/resources/V2/Data/ReportRuns.js +49 -0
- package/esm/resources/V2/Data/ReportRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +176 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/esm/resources/V2/Data/Reporting/index.js +9 -0
- package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
- package/esm/resources/V2/Data/Reports.d.ts +140 -0
- package/esm/resources/V2/Data/Reports.js +21 -0
- package/esm/resources/V2/Data/Reports.js.map +1 -0
- package/esm/resources/V2/Data/Schemas.d.ts +161 -0
- package/esm/resources/V2/Data/Schemas.js +19 -0
- package/esm/resources/V2/Data/Schemas.js.map +1 -0
- package/esm/resources/V2/Data/SearchResultLists.d.ts +348 -0
- package/esm/resources/V2/Data/SearchResultLists.js +3 -0
- package/esm/resources/V2/Data/SearchResultLists.js.map +1 -0
- package/esm/resources/V2/Data/index.d.ts +42 -0
- package/esm/resources/V2/Data/index.js +21 -0
- package/esm/resources/V2/Data/index.js.map +1 -0
- package/esm/resources/V2/Extend/ObjectDefinitionVersions.d.ts +222 -0
- package/esm/resources/V2/Extend/ObjectDefinitionVersions.js +3 -0
- package/esm/resources/V2/Extend/ObjectDefinitionVersions.js.map +1 -0
- package/esm/resources/V2/Extend/ObjectDefinitions/Versions.d.ts +33 -0
- package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js +19 -0
- package/esm/resources/V2/Extend/ObjectDefinitions/Versions.js.map +1 -0
- package/esm/resources/V2/Extend/ObjectDefinitions.d.ts +63 -0
- package/esm/resources/V2/Extend/ObjectDefinitions.js +25 -0
- package/esm/resources/V2/Extend/ObjectDefinitions.js.map +1 -0
- package/esm/resources/V2/Extend/WorkflowRuns.d.ts +163 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/esm/resources/V2/Extend/Workflows.d.ts +120 -0
- package/esm/resources/V2/Extend/Workflows.js +26 -0
- package/esm/resources/V2/Extend/Workflows.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +29 -0
- package/esm/resources/V2/Extend/index.js +13 -0
- package/esm/resources/V2/Extend/index.js.map +1 -0
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +457 -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 +306 -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 +44 -2
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.d.ts +131 -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 +173 -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/EarnedCreditSimulations.d.ts +18 -0
- package/esm/resources/V2/MoneyManagement/EarnedCreditSimulations.js +3 -0
- package/esm/resources/V2/MoneyManagement/EarnedCreditSimulations.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/EarnedCredits.d.ts +134 -0
- package/esm/resources/V2/MoneyManagement/EarnedCredits.js +19 -0
- package/esm/resources/V2/MoneyManagement/EarnedCredits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountStatements.d.ts +99 -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/FinancialAccountWalletExportCredentials.d.ts +62 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountWalletExportCredentials.js +3 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountWalletExportCredentials.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountWalletExports.d.ts +50 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountWalletExports.js +3 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountWalletExports.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts/Statements.d.ts +49 -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/WalletExport.d.ts +51 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts/WalletExport.js +18 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts/WalletExport.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +437 -4
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +132 -2
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.d.ts +14 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.js +3 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddressDebitSimulations.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js +3 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +144 -6
- package/esm/resources/V2/MoneyManagement/FundingIntents.d.ts +504 -0
- package/esm/resources/V2/MoneyManagement/FundingIntents.js +49 -0
- package/esm/resources/V2/MoneyManagement/FundingIntents.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FundingSessions.d.ts +111 -0
- package/esm/resources/V2/MoneyManagement/FundingSessions.js +11 -0
- package/esm/resources/V2/MoneyManagement/FundingSessions.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/InboundFundings.d.ts +178 -0
- package/esm/resources/V2/MoneyManagement/InboundFundings.js +19 -0
- package/esm/resources/V2/MoneyManagement/InboundFundings.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/InboundTransferMandates.d.ts +265 -0
- package/esm/resources/V2/MoneyManagement/InboundTransferMandates.js +35 -0
- package/esm/resources/V2/MoneyManagement/InboundTransferMandates.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +88 -2
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +374 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +19 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +246 -6
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +143 -2
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +434 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +36 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutIntents.d.ts +18 -6
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +125 -1
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +9 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +344 -6
- package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.d.ts +171 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.js +25 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebitMandates.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +373 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.d.ts +5 -1
- package/esm/resources/V2/MoneyManagement/RewardProgramEnrollments.d.ts +140 -0
- package/esm/resources/V2/MoneyManagement/RewardProgramEnrollments.js +42 -0
- package/esm/resources/V2/MoneyManagement/RewardProgramEnrollments.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/RewardProgramRules.d.ts +85 -0
- package/esm/resources/V2/MoneyManagement/RewardProgramRules.js +3 -0
- package/esm/resources/V2/MoneyManagement/RewardProgramRules.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/RewardPrograms/Rules.d.ts +205 -0
- package/esm/resources/V2/MoneyManagement/RewardPrograms/Rules.js +173 -0
- package/esm/resources/V2/MoneyManagement/RewardPrograms/Rules.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/RewardPrograms.d.ts +135 -0
- package/esm/resources/V2/MoneyManagement/RewardPrograms.js +53 -0
- package/esm/resources/V2/MoneyManagement/RewardPrograms.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.d.ts +43 -1
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js +13 -0
- package/esm/resources/V2/MoneyManagement/TestHelpers/FinancialAddresses.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/TestHelpers.d.ts +37 -0
- package/esm/resources/V2/MoneyManagement/TestHelpers.js +17 -0
- package/esm/resources/V2/MoneyManagement/TestHelpers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +140 -4
- package/esm/resources/V2/MoneyManagement/Transactions.d.ts +140 -4
- package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -1
- package/esm/resources/V2/MoneyManagement/index.d.ts +175 -57
- package/esm/resources/V2/MoneyManagement/index.js +28 -2
- package/esm/resources/V2/MoneyManagement/index.js.map +1 -1
- package/esm/resources/V2/Network/BusinessProfiles.d.ts +92 -0
- package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
- package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/esm/resources/V2/Network/index.d.ts +13 -0
- package/esm/resources/V2/Network/index.js +9 -0
- package/esm/resources/V2/Network/index.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +143 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/esm/resources/V2/Payments/OffSessionPayments.d.ts +736 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js +43 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js.map +1 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.d.ts +73 -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 +212 -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 +30 -0
- package/esm/resources/V2/Payments/index.js +11 -0
- package/esm/resources/V2/Payments/index.js.map +1 -0
- package/esm/resources/V2/Provisioning/Catalog/Providers.d.ts +33 -0
- package/esm/resources/V2/Provisioning/Catalog/Providers.js +13 -0
- package/esm/resources/V2/Provisioning/Catalog/Providers.js.map +1 -0
- package/esm/resources/V2/Provisioning/Catalog/Services.d.ts +37 -0
- package/esm/resources/V2/Provisioning/Catalog/Services.js +13 -0
- package/esm/resources/V2/Provisioning/Catalog/Services.js.map +1 -0
- package/esm/resources/V2/Provisioning/Catalog/index.d.ts +10 -0
- package/esm/resources/V2/Provisioning/Catalog/index.js +11 -0
- package/esm/resources/V2/Provisioning/Catalog/index.js.map +1 -0
- package/esm/resources/V2/Provisioning/Eligibility.d.ts +33 -0
- package/esm/resources/V2/Provisioning/Eligibility.js +12 -0
- package/esm/resources/V2/Provisioning/Eligibility.js.map +1 -0
- package/esm/resources/V2/Provisioning/PaymentMethodRequests.d.ts +79 -0
- package/esm/resources/V2/Provisioning/PaymentMethodRequests.js +21 -0
- package/esm/resources/V2/Provisioning/PaymentMethodRequests.js.map +1 -0
- package/esm/resources/V2/Provisioning/PaymentProfile.d.ts +139 -0
- package/esm/resources/V2/Provisioning/PaymentProfile.js +70 -0
- package/esm/resources/V2/Provisioning/PaymentProfile.js.map +1 -0
- package/esm/resources/V2/Provisioning/Projects.d.ts +79 -0
- package/esm/resources/V2/Provisioning/Projects.js +11 -0
- package/esm/resources/V2/Provisioning/Projects.js.map +1 -0
- package/esm/resources/V2/Provisioning/ProviderConnectionRequests.d.ts +145 -0
- package/esm/resources/V2/Provisioning/ProviderConnectionRequests.js +23 -0
- package/esm/resources/V2/Provisioning/ProviderConnectionRequests.js.map +1 -0
- package/esm/resources/V2/Provisioning/ProviderConnections.d.ts +115 -0
- package/esm/resources/V2/Provisioning/ProviderConnections.js +19 -0
- package/esm/resources/V2/Provisioning/ProviderConnections.js.map +1 -0
- package/esm/resources/V2/Provisioning/ProviderServiceDetails.d.ts +243 -0
- package/esm/resources/V2/Provisioning/ProviderServiceDetails.js +3 -0
- package/esm/resources/V2/Provisioning/ProviderServiceDetails.js.map +1 -0
- package/esm/resources/V2/Provisioning/Providers.d.ts +67 -0
- package/esm/resources/V2/Provisioning/Providers.js +3 -0
- package/esm/resources/V2/Provisioning/Providers.js.map +1 -0
- package/esm/resources/V2/Provisioning/ResourceAccessConfigurations.d.ts +28 -0
- package/esm/resources/V2/Provisioning/ResourceAccessConfigurations.js +3 -0
- package/esm/resources/V2/Provisioning/ResourceAccessConfigurations.js.map +1 -0
- package/esm/resources/V2/Provisioning/Resources.d.ts +287 -0
- package/esm/resources/V2/Provisioning/Resources.js +62 -0
- package/esm/resources/V2/Provisioning/Resources.js.map +1 -0
- package/esm/resources/V2/Provisioning/index.d.ts +66 -0
- package/esm/resources/V2/Provisioning/index.js +23 -0
- package/esm/resources/V2/Provisioning/index.js.map +1 -0
- package/esm/resources/V2/Reporting/ReportRuns.d.ts +195 -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 +106 -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/Risk/Forms.d.ts +253 -0
- package/esm/resources/V2/Risk/Forms.js +17 -0
- package/esm/resources/V2/Risk/Forms.js.map +1 -0
- package/esm/resources/V2/Risk/index.d.ts +13 -0
- package/esm/resources/V2/Risk/index.js +9 -0
- package/esm/resources/V2/Risk/index.js.map +1 -0
- package/esm/resources/V2/Signals/AccountActivities.d.ts +747 -0
- package/esm/resources/V2/Signals/AccountActivities.js +23 -0
- package/esm/resources/V2/Signals/AccountActivities.js.map +1 -0
- package/esm/resources/V2/Signals/AccountEvaluations.d.ts +516 -0
- package/esm/resources/V2/Signals/AccountEvaluations.js +63 -0
- package/esm/resources/V2/Signals/AccountEvaluations.js.map +1 -0
- package/esm/resources/V2/Signals/AccountSignals.d.ts +361 -0
- package/esm/resources/V2/Signals/AccountSignals.js +114 -0
- package/esm/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/esm/resources/V2/Signals/PaymentRetryEvaluations.d.ts +116 -0
- package/esm/resources/V2/Signals/PaymentRetryEvaluations.js +34 -0
- package/esm/resources/V2/Signals/PaymentRetryEvaluations.js.map +1 -0
- package/esm/resources/V2/Signals/PaymentRetrySignals.d.ts +63 -0
- package/esm/resources/V2/Signals/PaymentRetrySignals.js +11 -0
- package/esm/resources/V2/Signals/PaymentRetrySignals.js.map +1 -0
- package/esm/resources/V2/Signals/index.d.ts +39 -0
- package/esm/resources/V2/Signals/index.js +17 -0
- package/esm/resources/V2/Signals/index.js.map +1 -0
- package/esm/resources/V2/Tax/IntegrationConfigurations.d.ts +116 -0
- package/esm/resources/V2/Tax/IntegrationConfigurations.js +17 -0
- package/esm/resources/V2/Tax/IntegrationConfigurations.js.map +1 -0
- package/esm/resources/V2/Tax/ManualRules.d.ts +331 -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/Operations.d.ts +43 -0
- package/esm/resources/V2/Tax/Operations.js +11 -0
- package/esm/resources/V2/Tax/Operations.js.map +1 -0
- package/esm/resources/V2/Tax/OperationsResolveAddressResults.d.ts +70 -0
- package/esm/resources/V2/Tax/OperationsResolveAddressResults.js +3 -0
- package/esm/resources/V2/Tax/OperationsResolveAddressResults.js.map +1 -0
- package/esm/resources/V2/Tax/index.d.ts +27 -0
- package/esm/resources/V2/Tax/index.js +13 -0
- package/esm/resources/V2/Tax/index.js.map +1 -0
- package/esm/resources/V2/index.d.ts +33 -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 +20 -0
- package/esm/resources.js +283 -3
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.d.ts +170 -56
- package/esm/stripe.core.js +122 -11
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +172 -58
- package/esm/stripe.esm.node.js +123 -9
- package/esm/stripe.esm.node.js.map +1 -1
- package/package.json +1 -1
- package/cjs/resources/V2/MoneyManagement/TestHelpers/index.d.ts +0 -8
- package/cjs/resources/V2/MoneyManagement/TestHelpers/index.js +0 -13
- package/cjs/resources/V2/MoneyManagement/TestHelpers/index.js.map +0 -1
- package/esm/resources/V2/MoneyManagement/TestHelpers/index.d.ts +0 -8
- package/esm/resources/V2/MoneyManagement/TestHelpers/index.js +0 -9
- package/esm/resources/V2/MoneyManagement/TestHelpers/index.js.map +0 -1
|
@@ -4,11 +4,14 @@ import { Discount, DeletedDiscount } from './Discounts.js';
|
|
|
4
4
|
import { TaxId, DeletedTaxId } from './TaxIds.js';
|
|
5
5
|
import { Application, DeletedApplication } from './Applications.js';
|
|
6
6
|
import { Customer, DeletedCustomer } from './Customers.js';
|
|
7
|
+
import { Margin } from './Margins.js';
|
|
7
8
|
import { PaymentMethod } from './PaymentMethods.js';
|
|
8
9
|
import { CustomerSource } from './CustomerSources.js';
|
|
9
10
|
import { TaxRate } from './TaxRates.js';
|
|
10
11
|
import { Account } from './Accounts.js';
|
|
12
|
+
import { PaymentPlan } from './PaymentPlans.js';
|
|
11
13
|
import { InvoicePayment } from './InvoicePayments.js';
|
|
14
|
+
import { GiftCardOperation } from './GiftCardOperations.js';
|
|
12
15
|
import { PaymentIntent } from './PaymentIntents.js';
|
|
13
16
|
import { SetupIntent } from './SetupIntents.js';
|
|
14
17
|
import { Subscription } from './Subscriptions.js';
|
|
@@ -68,6 +71,10 @@ export declare class InvoiceResource extends StripeResource {
|
|
|
68
71
|
* See: [Partial payments](https://docs.stripe.com/docs/invoicing/partial-payments) to learn more.
|
|
69
72
|
*/
|
|
70
73
|
attachPayment(id: string, params?: InvoiceAttachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
|
|
74
|
+
/**
|
|
75
|
+
* Detaches a payment from the invoice, removing it from the list of payments
|
|
76
|
+
*/
|
|
77
|
+
detachPayment(id: string, params?: InvoiceDetachPaymentParams, options?: RequestOptions): Promise<Response<Invoice>>;
|
|
71
78
|
/**
|
|
72
79
|
* Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you'd like to finalize a draft invoice manually, you can do so using this method.
|
|
73
80
|
*/
|
|
@@ -112,6 +119,54 @@ export declare class InvoiceResource extends StripeResource {
|
|
|
112
119
|
* 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)
|
|
113
120
|
*/
|
|
114
121
|
createPreview(params?: InvoiceCreatePreviewParams, options?: RequestOptions): Promise<Response<Invoice>>;
|
|
122
|
+
serializeBatchDelete(invoice: string, params?: Record<string, unknown>, options?: {
|
|
123
|
+
apiVersion?: string;
|
|
124
|
+
stripeContext?: string;
|
|
125
|
+
}): string;
|
|
126
|
+
serializeBatchUpdate(invoice: string, params?: Record<string, unknown>, options?: {
|
|
127
|
+
apiVersion?: string;
|
|
128
|
+
stripeContext?: string;
|
|
129
|
+
}): string;
|
|
130
|
+
serializeBatchCreate(params?: Record<string, unknown>, options?: {
|
|
131
|
+
apiVersion?: string;
|
|
132
|
+
stripeContext?: string;
|
|
133
|
+
}): string;
|
|
134
|
+
serializeBatchAddLines(invoice: string, params?: Record<string, unknown>, options?: {
|
|
135
|
+
apiVersion?: string;
|
|
136
|
+
stripeContext?: string;
|
|
137
|
+
}): string;
|
|
138
|
+
serializeBatchFinalizeInvoice(invoice: string, params?: Record<string, unknown>, options?: {
|
|
139
|
+
apiVersion?: string;
|
|
140
|
+
stripeContext?: string;
|
|
141
|
+
}): string;
|
|
142
|
+
serializeBatchMarkUncollectible(invoice: string, params?: Record<string, unknown>, options?: {
|
|
143
|
+
apiVersion?: string;
|
|
144
|
+
stripeContext?: string;
|
|
145
|
+
}): string;
|
|
146
|
+
serializeBatchPay(invoice: string, params?: Record<string, unknown>, options?: {
|
|
147
|
+
apiVersion?: string;
|
|
148
|
+
stripeContext?: string;
|
|
149
|
+
}): string;
|
|
150
|
+
serializeBatchRemoveLines(invoice: string, params?: Record<string, unknown>, options?: {
|
|
151
|
+
apiVersion?: string;
|
|
152
|
+
stripeContext?: string;
|
|
153
|
+
}): string;
|
|
154
|
+
serializeBatchSendInvoice(invoice: string, params?: Record<string, unknown>, options?: {
|
|
155
|
+
apiVersion?: string;
|
|
156
|
+
stripeContext?: string;
|
|
157
|
+
}): string;
|
|
158
|
+
serializeBatchUpdateLines(invoice: string, params?: Record<string, unknown>, options?: {
|
|
159
|
+
apiVersion?: string;
|
|
160
|
+
stripeContext?: string;
|
|
161
|
+
}): string;
|
|
162
|
+
serializeBatchVoidInvoice(invoice: string, params?: Record<string, unknown>, options?: {
|
|
163
|
+
apiVersion?: string;
|
|
164
|
+
stripeContext?: string;
|
|
165
|
+
}): string;
|
|
166
|
+
serializeBatchCreatePreview(params?: Record<string, unknown>, options?: {
|
|
167
|
+
apiVersion?: string;
|
|
168
|
+
stripeContext?: string;
|
|
169
|
+
}): string;
|
|
115
170
|
/**
|
|
116
171
|
* 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.
|
|
117
172
|
*/
|
|
@@ -123,6 +178,10 @@ export declare class InvoiceResource extends StripeResource {
|
|
|
123
178
|
* Updating an invoice's line item is only possible before the invoice is finalized.
|
|
124
179
|
*/
|
|
125
180
|
updateLineItem(invoiceId: string, id: string, params?: InvoiceUpdateLineItemParams, options?: RequestOptions): Promise<Response<InvoiceLineItem>>;
|
|
181
|
+
serializeBatchUpdateLineItem(invoice: string, lineItemId: string, params?: Record<string, unknown>, options?: {
|
|
182
|
+
apiVersion?: string;
|
|
183
|
+
stripeContext?: string;
|
|
184
|
+
}): string;
|
|
126
185
|
}
|
|
127
186
|
export interface Invoice {
|
|
128
187
|
/**
|
|
@@ -169,6 +228,10 @@ export interface Invoice {
|
|
|
169
228
|
* This is the sum of all the shipping amounts.
|
|
170
229
|
*/
|
|
171
230
|
amount_shipping: number;
|
|
231
|
+
/**
|
|
232
|
+
* List of expected payments and corresponding due dates. This value will be null for invoices where collection_method=charge_automatically.
|
|
233
|
+
*/
|
|
234
|
+
amounts_due?: Array<Invoice.AmountsDue> | null;
|
|
172
235
|
/**
|
|
173
236
|
* ID of the Connect Application that created the invoice.
|
|
174
237
|
*/
|
|
@@ -234,6 +297,10 @@ export interface Invoice {
|
|
|
234
297
|
* The customer's address. Until the invoice is finalized, this field will equal `customer.address`. Once the invoice is finalized, this field will no longer be updated.
|
|
235
298
|
*/
|
|
236
299
|
customer_address: Address | null;
|
|
300
|
+
/**
|
|
301
|
+
* The customer balance amounts applied to this invoice.
|
|
302
|
+
*/
|
|
303
|
+
customer_balance?: Invoice.CustomerBalance | null;
|
|
237
304
|
/**
|
|
238
305
|
* The customer's email. Until the invoice is finalized, this field will equal `customer.email`. Once the invoice is finalized, this field will no longer be updated.
|
|
239
306
|
*/
|
|
@@ -258,6 +325,10 @@ export interface Invoice {
|
|
|
258
325
|
* The customer's tax IDs. Until the invoice is finalized, this field will contain the same tax IDs as `customer.tax_ids`. Once the invoice is finalized, this field will no longer be updated.
|
|
259
326
|
*/
|
|
260
327
|
customer_tax_ids?: Array<Invoice.CustomerTaxId> | null;
|
|
328
|
+
/**
|
|
329
|
+
* The margins applied to the invoice. Can be overridden by line item `margins`. Use `expand[]=default_margins` to expand each margin.
|
|
330
|
+
*/
|
|
331
|
+
default_margins?: Array<string | Margin> | null;
|
|
261
332
|
/**
|
|
262
333
|
* ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
|
263
334
|
*/
|
|
@@ -327,6 +398,7 @@ export interface Invoice {
|
|
|
327
398
|
* If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`.
|
|
328
399
|
*/
|
|
329
400
|
livemode: boolean;
|
|
401
|
+
managed_payments?: Invoice.ManagedPayments | null;
|
|
330
402
|
/**
|
|
331
403
|
* 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.
|
|
332
404
|
*/
|
|
@@ -347,6 +419,10 @@ export interface Invoice {
|
|
|
347
419
|
* The parent that generated this invoice
|
|
348
420
|
*/
|
|
349
421
|
parent: Invoice.Parent | null;
|
|
422
|
+
/**
|
|
423
|
+
* The ID of the payment plan associated with this invoice, if any. Use `expand[]=payment_plan` to include the full payment plan object.
|
|
424
|
+
*/
|
|
425
|
+
payment_plan?: string | PaymentPlan;
|
|
350
426
|
payment_settings: Invoice.PaymentSettings;
|
|
351
427
|
/**
|
|
352
428
|
* Payments for this invoice. Use [invoice payment](https://docs.stripe.com/api/invoice-payment) to get more details.
|
|
@@ -423,6 +499,10 @@ export interface Invoice {
|
|
|
423
499
|
* The integer amount in cents (or local equivalent) representing the total amount of the invoice including all discounts but excluding all tax.
|
|
424
500
|
*/
|
|
425
501
|
total_excluding_tax: number | null;
|
|
502
|
+
/**
|
|
503
|
+
* The aggregate amounts calculated per margin across all line items.
|
|
504
|
+
*/
|
|
505
|
+
total_margin_amounts?: Array<Invoice.TotalMarginAmount> | null;
|
|
426
506
|
/**
|
|
427
507
|
* Contains pretax credit amounts (ex: discount, credit grants, etc) that apply to this invoice. This is a combined list of total_pretax_credit_amounts across all invoice line items.
|
|
428
508
|
*/
|
|
@@ -451,6 +531,40 @@ export interface DeletedInvoice {
|
|
|
451
531
|
deleted: true;
|
|
452
532
|
}
|
|
453
533
|
export declare namespace Invoice {
|
|
534
|
+
interface AmountsDue {
|
|
535
|
+
/**
|
|
536
|
+
* Incremental amount due for this payment in cents (or local equivalent).
|
|
537
|
+
*/
|
|
538
|
+
amount: number;
|
|
539
|
+
/**
|
|
540
|
+
* The amount in cents (or local equivalent) that was paid for this payment.
|
|
541
|
+
*/
|
|
542
|
+
amount_paid: number;
|
|
543
|
+
/**
|
|
544
|
+
* The difference between the payment's amount and amount_paid, in cents (or local equivalent).
|
|
545
|
+
*/
|
|
546
|
+
amount_remaining: number;
|
|
547
|
+
/**
|
|
548
|
+
* Number of days from when invoice is finalized until the payment is due.
|
|
549
|
+
*/
|
|
550
|
+
days_until_due: number | null;
|
|
551
|
+
/**
|
|
552
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
553
|
+
*/
|
|
554
|
+
description: string | null;
|
|
555
|
+
/**
|
|
556
|
+
* Date on which a payment plan's payment is due.
|
|
557
|
+
*/
|
|
558
|
+
due_date: number | null;
|
|
559
|
+
/**
|
|
560
|
+
* Timestamp when the payment was paid.
|
|
561
|
+
*/
|
|
562
|
+
paid_at: number | null;
|
|
563
|
+
/**
|
|
564
|
+
* The status of the payment, one of `open`, `paid`, or `past_due`
|
|
565
|
+
*/
|
|
566
|
+
status: AmountsDue.Status;
|
|
567
|
+
}
|
|
454
568
|
interface AutomaticTax {
|
|
455
569
|
/**
|
|
456
570
|
* If Stripe disabled automatic tax, this enum describes why.
|
|
@@ -460,6 +574,10 @@ export declare namespace Invoice {
|
|
|
460
574
|
* 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.
|
|
461
575
|
*/
|
|
462
576
|
enabled: boolean;
|
|
577
|
+
/**
|
|
578
|
+
* How `automatic_tax` was set (`explicit`, `managed_payments`, or `tax_integration_configuration`) and why it may have been disabled.
|
|
579
|
+
*/
|
|
580
|
+
enablement_details?: AutomaticTax.EnablementDetails | null;
|
|
463
581
|
/**
|
|
464
582
|
* The account that's liable for tax. If set, the business address and tax registrations required to perform the tax calculation are loaded from this account. The tax transaction is returned in the report of the connected account.
|
|
465
583
|
*/
|
|
@@ -495,6 +613,20 @@ export declare namespace Invoice {
|
|
|
495
613
|
*/
|
|
496
614
|
value: string;
|
|
497
615
|
}
|
|
616
|
+
interface CustomerBalance {
|
|
617
|
+
/**
|
|
618
|
+
* The total amount of customer balance applied to this invoice (automatically + manually).
|
|
619
|
+
*/
|
|
620
|
+
applied_balance: number;
|
|
621
|
+
/**
|
|
622
|
+
* The amount of customer balance automatically applied during invoice finalization.
|
|
623
|
+
*/
|
|
624
|
+
automatically_applied_balance: number;
|
|
625
|
+
/**
|
|
626
|
+
* The total amount of customer balance manually applied after finalization.
|
|
627
|
+
*/
|
|
628
|
+
manually_applied_balance: number;
|
|
629
|
+
}
|
|
498
630
|
interface CustomerShipping {
|
|
499
631
|
address?: Address;
|
|
500
632
|
/**
|
|
@@ -566,6 +698,11 @@ export declare namespace Invoice {
|
|
|
566
698
|
* A URL to more information about the [error code](https://docs.stripe.com/error-codes) reported.
|
|
567
699
|
*/
|
|
568
700
|
doc_url?: string;
|
|
701
|
+
/**
|
|
702
|
+
* A GiftCardOperation represents an operation performed on a third-party gift card,
|
|
703
|
+
* such as activation, reload, cashout, balance check, or void.
|
|
704
|
+
*/
|
|
705
|
+
gift_card_operation?: GiftCardOperation;
|
|
569
706
|
/**
|
|
570
707
|
* A human-readable message providing more details about the error. For card errors, these messages can be shown to your users.
|
|
571
708
|
*/
|
|
@@ -642,11 +779,25 @@ export declare namespace Invoice {
|
|
|
642
779
|
*/
|
|
643
780
|
type: LastFinalizationError.Type;
|
|
644
781
|
}
|
|
782
|
+
interface ManagedPayments {
|
|
783
|
+
/**
|
|
784
|
+
* Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session.
|
|
785
|
+
*/
|
|
786
|
+
enabled: boolean;
|
|
787
|
+
}
|
|
645
788
|
interface Parent {
|
|
789
|
+
/**
|
|
790
|
+
* Details about the billing cadence that generated this invoice
|
|
791
|
+
*/
|
|
792
|
+
billing_cadence_details?: Parent.BillingCadenceDetails | null;
|
|
646
793
|
/**
|
|
647
794
|
* Details about the quote that generated this invoice
|
|
648
795
|
*/
|
|
649
796
|
quote_details: Parent.QuoteDetails | null;
|
|
797
|
+
/**
|
|
798
|
+
* Details about the schedule that generated this invoice
|
|
799
|
+
*/
|
|
800
|
+
schedule_details?: Parent.ScheduleDetails | null;
|
|
650
801
|
/**
|
|
651
802
|
* Details about the subscription that generated this invoice
|
|
652
803
|
*/
|
|
@@ -771,6 +922,16 @@ export declare namespace Invoice {
|
|
|
771
922
|
*/
|
|
772
923
|
discount: string | Discount | DeletedDiscount;
|
|
773
924
|
}
|
|
925
|
+
interface TotalMarginAmount {
|
|
926
|
+
/**
|
|
927
|
+
* The amount, in cents (or local equivalent), of the reduction in line item amount.
|
|
928
|
+
*/
|
|
929
|
+
amount: number;
|
|
930
|
+
/**
|
|
931
|
+
* The margin that was applied to get this margin amount.
|
|
932
|
+
*/
|
|
933
|
+
margin: string | Margin;
|
|
934
|
+
}
|
|
774
935
|
interface TotalPretaxCreditAmount {
|
|
775
936
|
/**
|
|
776
937
|
* The amount, in cents (or local equivalent), of the pretax credit amount.
|
|
@@ -784,6 +945,10 @@ export declare namespace Invoice {
|
|
|
784
945
|
* The discount that was applied to get this pretax credit amount.
|
|
785
946
|
*/
|
|
786
947
|
discount?: string | Discount | DeletedDiscount;
|
|
948
|
+
/**
|
|
949
|
+
* The margin that was applied to get this pretax credit amount.
|
|
950
|
+
*/
|
|
951
|
+
margin?: string | Margin;
|
|
787
952
|
/**
|
|
788
953
|
* Type of the pretax credit amount referenced.
|
|
789
954
|
*/
|
|
@@ -815,8 +980,21 @@ export declare namespace Invoice {
|
|
|
815
980
|
*/
|
|
816
981
|
type: 'tax_rate_details';
|
|
817
982
|
}
|
|
983
|
+
namespace AmountsDue {
|
|
984
|
+
type Status = 'open' | 'paid' | 'past_due' | OtherString;
|
|
985
|
+
}
|
|
818
986
|
namespace AutomaticTax {
|
|
819
987
|
type DisabledReason = 'finalization_requires_location_inputs' | 'finalization_system_error' | OtherString;
|
|
988
|
+
interface EnablementDetails {
|
|
989
|
+
/**
|
|
990
|
+
* Present when `source=tax_integration_configuration`, `automatic_tax[enabled]=false`, and a conflicting parameter is recorded.
|
|
991
|
+
*/
|
|
992
|
+
integration_configuration_disabled_reason: EnablementDetails.IntegrationConfigurationDisabledReason | null;
|
|
993
|
+
/**
|
|
994
|
+
* How `automatic_tax` was set: `explicit`, `managed_payments`, or `tax_integration_configuration`.
|
|
995
|
+
*/
|
|
996
|
+
source: EnablementDetails.Source;
|
|
997
|
+
}
|
|
820
998
|
interface Liability {
|
|
821
999
|
/**
|
|
822
1000
|
* The connected account being referenced when `type` is `account`.
|
|
@@ -828,33 +1006,62 @@ export declare namespace Invoice {
|
|
|
828
1006
|
type: Liability.Type;
|
|
829
1007
|
}
|
|
830
1008
|
type Status = 'complete' | 'failed' | 'requires_location_inputs' | OtherString;
|
|
1009
|
+
namespace EnablementDetails {
|
|
1010
|
+
interface IntegrationConfigurationDisabledReason {
|
|
1011
|
+
/**
|
|
1012
|
+
* The parameter that prevented `automatic_tax` from being enabled (for example `default_tax_rates`).
|
|
1013
|
+
*/
|
|
1014
|
+
conflicting_field: string;
|
|
1015
|
+
}
|
|
1016
|
+
type Source = 'explicit' | 'managed_payments' | 'tax_integration_configuration';
|
|
1017
|
+
}
|
|
831
1018
|
namespace Liability {
|
|
832
|
-
type Type = 'account' | 'self' | OtherString;
|
|
1019
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
833
1020
|
}
|
|
834
1021
|
}
|
|
835
1022
|
namespace CustomerTaxId {
|
|
836
1023
|
type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_acn' | 'au_arn' | 'au_wpn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'bw_vat' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'ci_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'cz_dic' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'fr_siren' | 'fr_siret' | 'fr_spi' | 'gb_vat' | 'ge_vat' | 'gh_tin' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'ic_nif' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_kt' | 'is_vat' | 'it_cf' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'lk_vat' | 'ma_vat' | 'md_cf' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mu_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'mz_nuit' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_bn' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'pt_nif' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sm_coe' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tt_bir' | 'tt_vat' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'unknown' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin' | OtherString;
|
|
837
1024
|
}
|
|
838
1025
|
namespace Issuer {
|
|
839
|
-
type Type = 'account' | 'self' | OtherString;
|
|
1026
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
840
1027
|
}
|
|
841
1028
|
namespace LastFinalizationError {
|
|
842
|
-
type Code = 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'account_token_required_for_v2_account' | 'acss_debit_session_incomplete' | 'action_blocked' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'anomalous_money_movement_request' | 'api_key_expired' | 'application_fees_not_allowed' | 'approval_required' | 'authentication_failure' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capability_not_active' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'dispute_evidence_page_limit_exceeded' | 'email_invalid' | 'expired_card' | 'expired_payment_method' | 'failed_tax_calculation' | 'financial_account_balance_does_not_support_currency' | 'financial_account_capability_not_enabled' | 'financial_account_capability_restricted' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_consent_locale_invalid' | 'financial_connections_consent_locale_unsupported' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_postal_code' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_canceled_subscription_fields' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_evaluation_on_api_version_not_supported' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_processing_error' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_restricted' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'request_blocked' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sepa_unsupported_account' | 'service_period_coupon_with_metered_tiered_item_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'siret_invalid' | 'sku_inactive' | 'smart_disputes_not_available' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | 'subscription_update_trial_after_billing_cycle_anchor' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'three_d_secure_authentication_not_supported' | 'three_d_secure_authentication_upstream_error' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid' | OtherString;
|
|
1029
|
+
type Code = 'account_closed' | 'account_country_invalid_address' | 'account_error_country_change_requires_additional_steps' | 'account_information_mismatch' | 'account_invalid' | 'account_number_invalid' | 'account_token_required_for_v2_account' | 'acss_debit_session_incomplete' | 'action_blocked' | 'alipay_upgrade_required' | 'amount_too_large' | 'amount_too_small' | 'anomalous_money_movement_request' | 'api_key_expired' | 'application_fees_not_allowed' | 'approval_required' | 'authentication_failure' | 'authentication_required' | 'balance_insufficient' | 'balance_invalid_parameter' | 'bank_account_bad_routing_numbers' | 'bank_account_declined' | 'bank_account_exists' | 'bank_account_restricted' | 'bank_account_unusable' | 'bank_account_unverified' | 'bank_account_verification_failed' | 'billing_invalid_mandate' | 'bitcoin_upgrade_required' | 'capability_not_active' | 'capture_charge_authorization_expired' | 'capture_unauthorized_payment' | 'card_decline_rate_limit_exceeded' | 'card_declined' | 'cardholder_phone_number_required' | 'charge_already_captured' | 'charge_already_refunded' | 'charge_disputed' | 'charge_exceeds_source_limit' | 'charge_exceeds_transaction_limit' | 'charge_expired_for_capture' | 'charge_invalid_parameter' | 'charge_not_refundable' | 'clearing_code_unsupported' | 'country_code_invalid' | 'country_unsupported' | 'coupon_expired' | 'customer_max_payment_methods' | 'customer_max_subscriptions' | 'customer_session_expired' | 'customer_tax_location_invalid' | 'debit_not_authorized' | 'dispute_evidence_page_limit_exceeded' | 'email_invalid' | 'expired_card' | 'expired_payment_method' | 'failed_tax_calculation' | 'financial_account_balance_does_not_support_currency' | 'financial_account_capability_not_enabled' | 'financial_account_capability_restricted' | 'financial_connections_account_inactive' | 'financial_connections_account_pending_account_numbers' | 'financial_connections_account_unavailable_account_numbers' | 'financial_connections_consent_locale_invalid' | 'financial_connections_consent_locale_unsupported' | 'financial_connections_institution_unavailable' | 'financial_connections_no_successful_transaction_refresh' | 'forwarding_api_inactive' | 'forwarding_api_invalid_parameter' | 'forwarding_api_retryable_upstream_error' | 'forwarding_api_upstream_connection_error' | 'forwarding_api_upstream_connection_timeout' | 'forwarding_api_upstream_error' | 'idempotency_key_in_use' | 'incorrect_address' | 'incorrect_cvc' | 'incorrect_number' | 'incorrect_postal_code' | 'incorrect_zip' | 'india_recurring_payment_mandate_canceled' | 'instant_payouts_config_disabled' | 'instant_payouts_currency_disabled' | 'instant_payouts_limit_exceeded' | 'instant_payouts_unsupported' | 'insufficient_funds' | 'intent_invalid_state' | 'intent_verification_method_missing' | 'invalid_canceled_subscription_fields' | 'invalid_card_type' | 'invalid_characters' | 'invalid_charge_amount' | 'invalid_cvc' | 'invalid_expiry_month' | 'invalid_expiry_year' | 'invalid_mandate_reference_prefix_format' | 'invalid_number' | 'invalid_source_usage' | 'invalid_tax_location' | 'invoice_no_customer_line_items' | 'invoice_no_payment_method_types' | 'invoice_no_subscription_line_items' | 'invoice_not_editable' | 'invoice_on_behalf_of_not_editable' | 'invoice_payment_intent_requires_action' | 'invoice_upcoming_none' | 'livemode_mismatch' | 'lock_timeout' | 'missing' | 'no_account' | 'not_allowed_on_standard_account' | 'out_of_inventory' | 'ownership_declaration_not_allowed' | 'parameter_invalid_empty' | 'parameter_invalid_integer' | 'parameter_invalid_string_blank' | 'parameter_invalid_string_empty' | 'parameter_missing' | 'parameter_unknown' | 'parameters_exclusive' | 'payment_evaluation_on_api_version_not_supported' | 'payment_intent_action_required' | 'payment_intent_authentication_failure' | 'payment_intent_incompatible_payment_method' | 'payment_intent_invalid_parameter' | 'payment_intent_konbini_rejected_confirmation_number' | 'payment_intent_mandate_invalid' | 'payment_intent_payment_attempt_expired' | 'payment_intent_payment_attempt_failed' | 'payment_intent_rate_limit_exceeded' | 'payment_intent_unexpected_state' | 'payment_method_bank_account_already_verified' | 'payment_method_bank_account_blocked' | 'payment_method_billing_details_address_missing' | 'payment_method_configuration_failures' | 'payment_method_currency_mismatch' | 'payment_method_customer_decline' | 'payment_method_invalid_parameter' | 'payment_method_invalid_parameter_testmode' | 'payment_method_microdeposit_failed' | 'payment_method_microdeposit_processing_error' | 'payment_method_microdeposit_verification_amounts_invalid' | 'payment_method_microdeposit_verification_amounts_mismatch' | 'payment_method_microdeposit_verification_attempts_exceeded' | 'payment_method_microdeposit_verification_descriptor_code_mismatch' | 'payment_method_microdeposit_verification_timeout' | 'payment_method_not_available' | 'payment_method_provider_decline' | 'payment_method_provider_timeout' | 'payment_method_restricted' | 'payment_method_unactivated' | 'payment_method_unexpected_state' | 'payment_method_unsupported_type' | 'payout_reconciliation_not_ready' | 'payouts_limit_exceeded' | 'payouts_not_allowed' | 'platform_account_required' | 'platform_api_key_expired' | 'postal_code_invalid' | 'processing_error' | 'product_inactive' | 'progressive_onboarding_limit_exceeded' | 'rate_limit' | 'refer_to_customer' | 'refund_disputed_payment' | 'request_blocked' | 'resource_already_exists' | 'resource_missing' | 'return_intent_already_processed' | 'routing_number_invalid' | 'secret_key_required' | 'sensitive_data_access_expired' | 'sepa_unsupported_account' | 'service_period_coupon_with_metered_tiered_item_unsupported' | 'setup_attempt_failed' | 'setup_intent_authentication_failure' | 'setup_intent_invalid_parameter' | 'setup_intent_mandate_invalid' | 'setup_intent_mobile_wallet_unsupported' | 'setup_intent_setup_attempt_expired' | 'setup_intent_unexpected_state' | 'shipping_address_invalid' | 'shipping_calculation_failed' | 'siret_invalid' | 'sku_inactive' | 'smart_disputes_not_available' | 'state_unsupported' | 'status_transition_invalid' | 'storer_capability_missing' | 'storer_capability_not_active' | 'stripe_tax_inactive' | 'subscription_update_trial_after_billing_cycle_anchor' | 'tax_id_invalid' | 'tax_id_prohibited' | 'taxes_calculation_failed' | 'terminal_location_country_unsupported' | 'terminal_reader_busy' | 'terminal_reader_collected_data_invalid' | 'terminal_reader_hardware_fault' | 'terminal_reader_invalid_location_for_activation' | 'terminal_reader_invalid_location_for_payment' | 'terminal_reader_offline' | 'terminal_reader_timeout' | 'testmode_charges_only' | 'three_d_secure_authentication_not_supported' | 'three_d_secure_authentication_upstream_error' | 'tls_version_unsupported' | 'token_already_used' | 'token_card_network_invalid' | 'token_in_use' | 'transfer_source_balance_parameters_mismatch' | 'transfers_not_allowed' | 'url_invalid' | 'v2_account_disconnection_unsupported' | 'v2_account_missing_configuration' | OtherString;
|
|
843
1030
|
type Type = 'api_error' | 'card_error' | 'idempotency_error' | 'invalid_request_error' | OtherString;
|
|
844
1031
|
}
|
|
845
1032
|
namespace Parent {
|
|
1033
|
+
interface BillingCadenceDetails {
|
|
1034
|
+
/**
|
|
1035
|
+
* The billing cadence that generated this invoice
|
|
1036
|
+
*/
|
|
1037
|
+
billing_cadence: string;
|
|
1038
|
+
}
|
|
846
1039
|
interface QuoteDetails {
|
|
847
1040
|
/**
|
|
848
1041
|
* The quote that generated this invoice
|
|
849
1042
|
*/
|
|
850
1043
|
quote: string;
|
|
851
1044
|
}
|
|
1045
|
+
interface ScheduleDetails {
|
|
1046
|
+
/**
|
|
1047
|
+
* The schedule that generated this invoice
|
|
1048
|
+
*/
|
|
1049
|
+
schedule: string;
|
|
1050
|
+
/**
|
|
1051
|
+
* The subscription associated with this schedule
|
|
1052
|
+
*/
|
|
1053
|
+
subscription: string | Subscription | null;
|
|
1054
|
+
}
|
|
852
1055
|
interface SubscriptionDetails {
|
|
853
1056
|
/**
|
|
854
1057
|
* 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.
|
|
855
1058
|
* *Note: This attribute is populated only for invoices created on or after June 29, 2023.*
|
|
856
1059
|
*/
|
|
857
1060
|
metadata: Metadata | null;
|
|
1061
|
+
/**
|
|
1062
|
+
* 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).
|
|
1063
|
+
*/
|
|
1064
|
+
pause_collection?: SubscriptionDetails.PauseCollection | null;
|
|
858
1065
|
/**
|
|
859
1066
|
* The subscription that generated this invoice
|
|
860
1067
|
*/
|
|
@@ -864,7 +1071,22 @@ export declare namespace Invoice {
|
|
|
864
1071
|
*/
|
|
865
1072
|
subscription_proration_date?: number;
|
|
866
1073
|
}
|
|
867
|
-
type Type = 'quote_details' | 'subscription_details' | OtherString;
|
|
1074
|
+
type Type = 'billing_cadence_details' | 'quote_details' | 'schedule_details' | 'subscription_details' | OtherString;
|
|
1075
|
+
namespace SubscriptionDetails {
|
|
1076
|
+
interface PauseCollection {
|
|
1077
|
+
/**
|
|
1078
|
+
* The payment collection behavior for this subscription while paused.
|
|
1079
|
+
*/
|
|
1080
|
+
behavior: PauseCollection.Behavior | null;
|
|
1081
|
+
/**
|
|
1082
|
+
* The time after which the subscription will resume collecting payments.
|
|
1083
|
+
*/
|
|
1084
|
+
resumes_at: number | null;
|
|
1085
|
+
}
|
|
1086
|
+
namespace PauseCollection {
|
|
1087
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
1088
|
+
}
|
|
1089
|
+
}
|
|
868
1090
|
}
|
|
869
1091
|
namespace PaymentSettings {
|
|
870
1092
|
interface PaymentMethodOptions {
|
|
@@ -872,6 +1094,10 @@ export declare namespace Invoice {
|
|
|
872
1094
|
* If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
|
|
873
1095
|
*/
|
|
874
1096
|
acss_debit: PaymentMethodOptions.AcssDebit | null;
|
|
1097
|
+
/**
|
|
1098
|
+
* If paying by `bacs_debit`, this sub-hash contains details about the Bacs Direct Debit payment method options to pass to the invoice's PaymentIntent.
|
|
1099
|
+
*/
|
|
1100
|
+
bacs_debit?: PaymentMethodOptions.BacsDebit | null;
|
|
875
1101
|
/**
|
|
876
1102
|
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
877
1103
|
*/
|
|
@@ -880,6 +1106,10 @@ export declare namespace Invoice {
|
|
|
880
1106
|
* If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
|
|
881
1107
|
*/
|
|
882
1108
|
billie?: PaymentMethodOptions.Billie | null;
|
|
1109
|
+
/**
|
|
1110
|
+
* If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
|
|
1111
|
+
*/
|
|
1112
|
+
bizum?: PaymentMethodOptions.Bizum | null;
|
|
883
1113
|
/**
|
|
884
1114
|
* If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
885
1115
|
*/
|
|
@@ -888,10 +1118,18 @@ export declare namespace Invoice {
|
|
|
888
1118
|
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
889
1119
|
*/
|
|
890
1120
|
card: PaymentMethodOptions.Card | null;
|
|
1121
|
+
/**
|
|
1122
|
+
* If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
|
|
1123
|
+
*/
|
|
1124
|
+
check_scan?: PaymentMethodOptions.CheckScan | null;
|
|
891
1125
|
/**
|
|
892
1126
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
893
1127
|
*/
|
|
894
1128
|
customer_balance: PaymentMethodOptions.CustomerBalance | null;
|
|
1129
|
+
/**
|
|
1130
|
+
* 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.
|
|
1131
|
+
*/
|
|
1132
|
+
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
|
|
895
1133
|
/**
|
|
896
1134
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
897
1135
|
*/
|
|
@@ -916,8 +1154,12 @@ export declare namespace Invoice {
|
|
|
916
1154
|
* 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.
|
|
917
1155
|
*/
|
|
918
1156
|
us_bank_account: PaymentMethodOptions.UsBankAccount | null;
|
|
1157
|
+
/**
|
|
1158
|
+
* If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent.
|
|
1159
|
+
*/
|
|
1160
|
+
wechat_pay?: PaymentMethodOptions.WechatPay | null;
|
|
919
1161
|
}
|
|
920
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
1162
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | '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' | 'mb_way' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'touch_n_go' | 'truemoney' | 'twint' | 'upi' | 'us_bank_account' | 'vipps' | 'wechat_pay' | OtherString;
|
|
921
1163
|
namespace PaymentMethodOptions {
|
|
922
1164
|
interface AcssDebit {
|
|
923
1165
|
mandate_options?: AcssDebit.MandateOptions;
|
|
@@ -926,6 +1168,13 @@ export declare namespace Invoice {
|
|
|
926
1168
|
*/
|
|
927
1169
|
verification_method?: AcssDebit.VerificationMethod;
|
|
928
1170
|
}
|
|
1171
|
+
interface BacsDebit {
|
|
1172
|
+
/**
|
|
1173
|
+
* Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
1174
|
+
*/
|
|
1175
|
+
target_date?: string;
|
|
1176
|
+
verification_method?: BacsDebit.VerificationMethod;
|
|
1177
|
+
}
|
|
929
1178
|
interface Bancontact {
|
|
930
1179
|
/**
|
|
931
1180
|
* Preferred language of the Bancontact authorization page that the customer is redirected to.
|
|
@@ -939,6 +1188,8 @@ export declare namespace Invoice {
|
|
|
939
1188
|
*/
|
|
940
1189
|
reference?: string | null;
|
|
941
1190
|
}
|
|
1191
|
+
interface Bizum {
|
|
1192
|
+
}
|
|
942
1193
|
interface Blik {
|
|
943
1194
|
}
|
|
944
1195
|
interface Card {
|
|
@@ -948,6 +1199,8 @@ export declare namespace Invoice {
|
|
|
948
1199
|
*/
|
|
949
1200
|
request_three_d_secure: Card.RequestThreeDSecure | null;
|
|
950
1201
|
}
|
|
1202
|
+
interface CheckScan {
|
|
1203
|
+
}
|
|
951
1204
|
interface CustomerBalance {
|
|
952
1205
|
bank_transfer?: CustomerBalance.BankTransfer;
|
|
953
1206
|
/**
|
|
@@ -955,6 +1208,8 @@ export declare namespace Invoice {
|
|
|
955
1208
|
*/
|
|
956
1209
|
funding_type: 'bank_transfer' | null;
|
|
957
1210
|
}
|
|
1211
|
+
interface IdBankTransfer {
|
|
1212
|
+
}
|
|
958
1213
|
interface Konbini {
|
|
959
1214
|
}
|
|
960
1215
|
interface Payto {
|
|
@@ -971,6 +1226,10 @@ export declare namespace Invoice {
|
|
|
971
1226
|
expires_after_seconds?: number;
|
|
972
1227
|
}
|
|
973
1228
|
interface SepaDebit {
|
|
1229
|
+
/**
|
|
1230
|
+
* Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
1231
|
+
*/
|
|
1232
|
+
target_date?: string;
|
|
974
1233
|
}
|
|
975
1234
|
interface Upi {
|
|
976
1235
|
mandate_options?: Upi.MandateOptions;
|
|
@@ -982,6 +1241,16 @@ export declare namespace Invoice {
|
|
|
982
1241
|
*/
|
|
983
1242
|
verification_method?: UsBankAccount.VerificationMethod;
|
|
984
1243
|
}
|
|
1244
|
+
interface WechatPay {
|
|
1245
|
+
/**
|
|
1246
|
+
* The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
|
|
1247
|
+
*/
|
|
1248
|
+
app_id?: string;
|
|
1249
|
+
/**
|
|
1250
|
+
* The client type that the end customer will pay from.
|
|
1251
|
+
*/
|
|
1252
|
+
client?: WechatPay.Client;
|
|
1253
|
+
}
|
|
985
1254
|
namespace AcssDebit {
|
|
986
1255
|
interface MandateOptions {
|
|
987
1256
|
/**
|
|
@@ -994,6 +1263,9 @@ export declare namespace Invoice {
|
|
|
994
1263
|
type TransactionType = 'business' | 'personal' | OtherString;
|
|
995
1264
|
}
|
|
996
1265
|
}
|
|
1266
|
+
namespace BacsDebit {
|
|
1267
|
+
type VerificationMethod = 'automatic' | 'instant' | 'payer_name_verification' | OtherString;
|
|
1268
|
+
}
|
|
997
1269
|
namespace Bancontact {
|
|
998
1270
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
|
|
999
1271
|
}
|
|
@@ -1115,14 +1387,21 @@ export declare namespace Invoice {
|
|
|
1115
1387
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1116
1388
|
*/
|
|
1117
1389
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1390
|
+
/**
|
|
1391
|
+
* The institution to use to filter for possible accounts to link.
|
|
1392
|
+
*/
|
|
1393
|
+
institution?: string;
|
|
1118
1394
|
}
|
|
1119
1395
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
|
|
1120
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
1396
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
|
|
1121
1397
|
namespace Filters {
|
|
1122
1398
|
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
1123
1399
|
}
|
|
1124
1400
|
}
|
|
1125
1401
|
}
|
|
1402
|
+
namespace WechatPay {
|
|
1403
|
+
type Client = 'android' | 'ios' | 'mobile_web' | 'web' | OtherString;
|
|
1404
|
+
}
|
|
1126
1405
|
}
|
|
1127
1406
|
}
|
|
1128
1407
|
namespace Rendering {
|
|
@@ -1185,7 +1464,7 @@ export declare namespace Invoice {
|
|
|
1185
1464
|
}
|
|
1186
1465
|
}
|
|
1187
1466
|
namespace TotalPretaxCreditAmount {
|
|
1188
|
-
type Type = 'credit_balance_transaction' | 'discount' | OtherString;
|
|
1467
|
+
type Type = 'credit_balance_transaction' | 'discount' | 'margin' | OtherString;
|
|
1189
1468
|
}
|
|
1190
1469
|
namespace TotalTax {
|
|
1191
1470
|
type TaxBehavior = 'exclusive' | 'inclusive' | OtherString;
|
|
@@ -1193,7 +1472,7 @@ export declare namespace Invoice {
|
|
|
1193
1472
|
/**
|
|
1194
1473
|
* ID of the tax rate
|
|
1195
1474
|
*/
|
|
1196
|
-
tax_rate: string;
|
|
1475
|
+
tax_rate: string | TaxRate;
|
|
1197
1476
|
}
|
|
1198
1477
|
type TaxabilityReason = 'customer_exempt' | 'not_available' | 'not_collecting' | 'not_subject_to_tax' | 'not_supported' | 'portion_product_exempt' | 'portion_reduced_rated' | 'portion_standard_rated' | 'product_exempt' | 'product_exempt_holiday' | 'proportionally_rated' | 'reduced_rated' | 'reverse_charge' | 'standard_rated' | 'taxable_basis_reduced' | 'zero_rated' | OtherString;
|
|
1199
1478
|
}
|
|
@@ -1203,6 +1482,10 @@ export interface InvoiceCreateParams {
|
|
|
1203
1482
|
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
1204
1483
|
*/
|
|
1205
1484
|
account_tax_ids?: Emptyable<Array<string>>;
|
|
1485
|
+
/**
|
|
1486
|
+
* List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
1487
|
+
*/
|
|
1488
|
+
amounts_due?: Emptyable<Array<InvoiceCreateParams.AmountsDue>>;
|
|
1206
1489
|
/**
|
|
1207
1490
|
* A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
|
|
1208
1491
|
*/
|
|
@@ -1243,6 +1526,10 @@ export interface InvoiceCreateParams {
|
|
|
1243
1526
|
* The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
|
|
1244
1527
|
*/
|
|
1245
1528
|
days_until_due?: number;
|
|
1529
|
+
/**
|
|
1530
|
+
* The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
1531
|
+
*/
|
|
1532
|
+
default_margins?: Array<string>;
|
|
1246
1533
|
/**
|
|
1247
1534
|
* ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
|
1248
1535
|
*/
|
|
@@ -1287,6 +1574,10 @@ export interface InvoiceCreateParams {
|
|
|
1287
1574
|
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
1288
1575
|
*/
|
|
1289
1576
|
issuer?: InvoiceCreateParams.Issuer;
|
|
1577
|
+
/**
|
|
1578
|
+
* Settings for Managed Payments for this invoice.
|
|
1579
|
+
*/
|
|
1580
|
+
managed_payments?: InvoiceCreateParams.ManagedPayments;
|
|
1290
1581
|
/**
|
|
1291
1582
|
* 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`.
|
|
1292
1583
|
*/
|
|
@@ -1333,6 +1624,24 @@ export interface InvoiceCreateParams {
|
|
|
1333
1624
|
transfer_data?: InvoiceCreateParams.TransferData;
|
|
1334
1625
|
}
|
|
1335
1626
|
export declare namespace InvoiceCreateParams {
|
|
1627
|
+
interface AmountsDue {
|
|
1628
|
+
/**
|
|
1629
|
+
* The amount in cents (or local equivalent).
|
|
1630
|
+
*/
|
|
1631
|
+
amount: number;
|
|
1632
|
+
/**
|
|
1633
|
+
* Number of days from when invoice is finalized until the payment is due.
|
|
1634
|
+
*/
|
|
1635
|
+
days_until_due?: number;
|
|
1636
|
+
/**
|
|
1637
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
1638
|
+
*/
|
|
1639
|
+
description: string;
|
|
1640
|
+
/**
|
|
1641
|
+
* Date on which a payment plan's payment is due.
|
|
1642
|
+
*/
|
|
1643
|
+
due_date?: number;
|
|
1644
|
+
}
|
|
1336
1645
|
interface AutomaticTax {
|
|
1337
1646
|
/**
|
|
1338
1647
|
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
|
|
@@ -1363,6 +1672,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1363
1672
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1364
1673
|
*/
|
|
1365
1674
|
discount?: string;
|
|
1675
|
+
/**
|
|
1676
|
+
* Details to determine how long the discount should be applied for.
|
|
1677
|
+
*/
|
|
1678
|
+
discount_end?: Discount.DiscountEnd;
|
|
1366
1679
|
/**
|
|
1367
1680
|
* ID of the promotion code to create a new discount for.
|
|
1368
1681
|
*/
|
|
@@ -1388,6 +1701,12 @@ export declare namespace InvoiceCreateParams {
|
|
|
1388
1701
|
*/
|
|
1389
1702
|
type: Issuer.Type;
|
|
1390
1703
|
}
|
|
1704
|
+
interface ManagedPayments {
|
|
1705
|
+
/**
|
|
1706
|
+
* Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution.
|
|
1707
|
+
*/
|
|
1708
|
+
enabled?: boolean;
|
|
1709
|
+
}
|
|
1391
1710
|
interface PaymentSettings {
|
|
1392
1711
|
/**
|
|
1393
1712
|
* ID of the mandate to be used for this invoice. It must correspond to the payment method used to pay the invoice, including the invoice's default_payment_method or default_source, if set.
|
|
@@ -1467,11 +1786,43 @@ export declare namespace InvoiceCreateParams {
|
|
|
1467
1786
|
type: Liability.Type;
|
|
1468
1787
|
}
|
|
1469
1788
|
namespace Liability {
|
|
1470
|
-
type Type = 'account' | 'self' | OtherString;
|
|
1789
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
namespace Discount {
|
|
1793
|
+
interface DiscountEnd {
|
|
1794
|
+
/**
|
|
1795
|
+
* Time span for the redeemed discount.
|
|
1796
|
+
*/
|
|
1797
|
+
duration?: DiscountEnd.Duration;
|
|
1798
|
+
/**
|
|
1799
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1800
|
+
*/
|
|
1801
|
+
timestamp?: number;
|
|
1802
|
+
/**
|
|
1803
|
+
* The type of calculation made to determine when the discount ends.
|
|
1804
|
+
*/
|
|
1805
|
+
type: DiscountEnd.Type;
|
|
1806
|
+
}
|
|
1807
|
+
namespace DiscountEnd {
|
|
1808
|
+
interface Duration {
|
|
1809
|
+
/**
|
|
1810
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1811
|
+
*/
|
|
1812
|
+
interval: Duration.Interval;
|
|
1813
|
+
/**
|
|
1814
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1815
|
+
*/
|
|
1816
|
+
interval_count: number;
|
|
1817
|
+
}
|
|
1818
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
1819
|
+
namespace Duration {
|
|
1820
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
1821
|
+
}
|
|
1471
1822
|
}
|
|
1472
1823
|
}
|
|
1473
1824
|
namespace Issuer {
|
|
1474
|
-
type Type = 'account' | 'self' | OtherString;
|
|
1825
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
1475
1826
|
}
|
|
1476
1827
|
namespace PaymentSettings {
|
|
1477
1828
|
interface PaymentMethodOptions {
|
|
@@ -1479,6 +1830,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1479
1830
|
* If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
|
|
1480
1831
|
*/
|
|
1481
1832
|
acss_debit?: Emptyable<PaymentMethodOptions.AcssDebit>;
|
|
1833
|
+
/**
|
|
1834
|
+
* If paying by `bacs_debit`, this sub-hash contains details about the Bacs Direct Debit payment method options to pass to the invoice's PaymentIntent.
|
|
1835
|
+
*/
|
|
1836
|
+
bacs_debit?: Emptyable<PaymentMethodOptions.BacsDebit>;
|
|
1482
1837
|
/**
|
|
1483
1838
|
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
1484
1839
|
*/
|
|
@@ -1487,6 +1842,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1487
1842
|
* If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
|
|
1488
1843
|
*/
|
|
1489
1844
|
billie?: Emptyable<PaymentMethodOptions.Billie>;
|
|
1845
|
+
/**
|
|
1846
|
+
* If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
|
|
1847
|
+
*/
|
|
1848
|
+
bizum?: Emptyable<PaymentMethodOptions.Bizum>;
|
|
1490
1849
|
/**
|
|
1491
1850
|
* If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
1492
1851
|
*/
|
|
@@ -1495,10 +1854,18 @@ export declare namespace InvoiceCreateParams {
|
|
|
1495
1854
|
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
1496
1855
|
*/
|
|
1497
1856
|
card?: Emptyable<PaymentMethodOptions.Card>;
|
|
1857
|
+
/**
|
|
1858
|
+
* If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
|
|
1859
|
+
*/
|
|
1860
|
+
check_scan?: Emptyable<PaymentMethodOptions.CheckScan>;
|
|
1498
1861
|
/**
|
|
1499
1862
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1500
1863
|
*/
|
|
1501
1864
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
1865
|
+
/**
|
|
1866
|
+
* 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.
|
|
1867
|
+
*/
|
|
1868
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
1502
1869
|
/**
|
|
1503
1870
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1504
1871
|
*/
|
|
@@ -1523,8 +1890,12 @@ export declare namespace InvoiceCreateParams {
|
|
|
1523
1890
|
* 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.
|
|
1524
1891
|
*/
|
|
1525
1892
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
1893
|
+
/**
|
|
1894
|
+
* If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent.
|
|
1895
|
+
*/
|
|
1896
|
+
wechat_pay?: Emptyable<PaymentMethodOptions.WechatPay>;
|
|
1526
1897
|
}
|
|
1527
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
1898
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | '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' | 'mb_way' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'touch_n_go' | 'truemoney' | 'twint' | 'upi' | 'us_bank_account' | 'vipps' | 'wechat_pay' | OtherString;
|
|
1528
1899
|
namespace PaymentMethodOptions {
|
|
1529
1900
|
interface AcssDebit {
|
|
1530
1901
|
/**
|
|
@@ -1536,6 +1907,13 @@ export declare namespace InvoiceCreateParams {
|
|
|
1536
1907
|
*/
|
|
1537
1908
|
verification_method?: AcssDebit.VerificationMethod;
|
|
1538
1909
|
}
|
|
1910
|
+
interface BacsDebit {
|
|
1911
|
+
/**
|
|
1912
|
+
* Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
1913
|
+
*/
|
|
1914
|
+
target_date?: string;
|
|
1915
|
+
verification_method?: BacsDebit.VerificationMethod;
|
|
1916
|
+
}
|
|
1539
1917
|
interface Bancontact {
|
|
1540
1918
|
/**
|
|
1541
1919
|
* Preferred language of the Bancontact authorization page that the customer is redirected to.
|
|
@@ -1552,6 +1930,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
1552
1930
|
*/
|
|
1553
1931
|
reference?: string;
|
|
1554
1932
|
}
|
|
1933
|
+
interface Bizum {
|
|
1934
|
+
}
|
|
1555
1935
|
interface Blik {
|
|
1556
1936
|
}
|
|
1557
1937
|
interface Card {
|
|
@@ -1566,6 +1946,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
1566
1946
|
*/
|
|
1567
1947
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
1568
1948
|
}
|
|
1949
|
+
interface CheckScan {
|
|
1950
|
+
}
|
|
1569
1951
|
interface CustomerBalance {
|
|
1570
1952
|
/**
|
|
1571
1953
|
* Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
@@ -1576,6 +1958,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
1576
1958
|
*/
|
|
1577
1959
|
funding_type?: string;
|
|
1578
1960
|
}
|
|
1961
|
+
interface IdBankTransfer {
|
|
1962
|
+
}
|
|
1579
1963
|
interface Konbini {
|
|
1580
1964
|
}
|
|
1581
1965
|
interface Payto {
|
|
@@ -1595,6 +1979,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1595
1979
|
expires_after_seconds?: number;
|
|
1596
1980
|
}
|
|
1597
1981
|
interface SepaDebit {
|
|
1982
|
+
/**
|
|
1983
|
+
* Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
1984
|
+
*/
|
|
1985
|
+
target_date?: string;
|
|
1598
1986
|
}
|
|
1599
1987
|
interface Upi {
|
|
1600
1988
|
/**
|
|
@@ -1612,6 +2000,16 @@ export declare namespace InvoiceCreateParams {
|
|
|
1612
2000
|
*/
|
|
1613
2001
|
verification_method?: UsBankAccount.VerificationMethod;
|
|
1614
2002
|
}
|
|
2003
|
+
interface WechatPay {
|
|
2004
|
+
/**
|
|
2005
|
+
* The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
|
|
2006
|
+
*/
|
|
2007
|
+
app_id?: string;
|
|
2008
|
+
/**
|
|
2009
|
+
* The client type that the end customer will pay from.
|
|
2010
|
+
*/
|
|
2011
|
+
client?: WechatPay.Client;
|
|
2012
|
+
}
|
|
1615
2013
|
namespace AcssDebit {
|
|
1616
2014
|
interface MandateOptions {
|
|
1617
2015
|
/**
|
|
@@ -1624,6 +2022,9 @@ export declare namespace InvoiceCreateParams {
|
|
|
1624
2022
|
type TransactionType = 'business' | 'personal' | OtherString;
|
|
1625
2023
|
}
|
|
1626
2024
|
}
|
|
2025
|
+
namespace BacsDebit {
|
|
2026
|
+
type VerificationMethod = 'automatic' | 'instant' | 'payer_name_verification' | OtherString;
|
|
2027
|
+
}
|
|
1627
2028
|
namespace Bancontact {
|
|
1628
2029
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
|
|
1629
2030
|
}
|
|
@@ -1771,14 +2172,21 @@ export declare namespace InvoiceCreateParams {
|
|
|
1771
2172
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1772
2173
|
*/
|
|
1773
2174
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2175
|
+
/**
|
|
2176
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
2177
|
+
*/
|
|
2178
|
+
institution?: string;
|
|
1774
2179
|
}
|
|
1775
2180
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
|
|
1776
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
2181
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
|
|
1777
2182
|
namespace Filters {
|
|
1778
2183
|
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
1779
2184
|
}
|
|
1780
2185
|
}
|
|
1781
2186
|
}
|
|
2187
|
+
namespace WechatPay {
|
|
2188
|
+
type Client = 'android' | 'ios' | 'mobile_web' | 'web' | OtherString;
|
|
2189
|
+
}
|
|
1782
2190
|
}
|
|
1783
2191
|
}
|
|
1784
2192
|
namespace Rendering {
|
|
@@ -1911,6 +2319,10 @@ export interface InvoiceUpdateParams {
|
|
|
1911
2319
|
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
1912
2320
|
*/
|
|
1913
2321
|
account_tax_ids?: Emptyable<Array<string>>;
|
|
2322
|
+
/**
|
|
2323
|
+
* List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
2324
|
+
*/
|
|
2325
|
+
amounts_due?: Emptyable<Array<InvoiceUpdateParams.AmountsDue>>;
|
|
1914
2326
|
/**
|
|
1915
2327
|
* A fee in cents (or local equivalent) that will be applied to the invoice and transferred to the application owner's Stripe account. The request must be made with an OAuth key or the Stripe-Account header in order to take an application fee. For more information, see the application fees [documentation](https://docs.stripe.com/billing/invoices/connect#collecting-fees).
|
|
1916
2328
|
*/
|
|
@@ -1939,6 +2351,10 @@ export interface InvoiceUpdateParams {
|
|
|
1939
2351
|
* The number of days from which the invoice is created until it is due. Only valid for invoices where `collection_method=send_invoice`. This field can only be updated on `draft` invoices.
|
|
1940
2352
|
*/
|
|
1941
2353
|
days_until_due?: number;
|
|
2354
|
+
/**
|
|
2355
|
+
* The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
2356
|
+
*/
|
|
2357
|
+
default_margins?: Emptyable<Array<string>>;
|
|
1942
2358
|
/**
|
|
1943
2359
|
* ID of the default payment method for the invoice. It must belong to the customer associated with the invoice. If not set, defaults to the subscription's default payment method, if any, or to the default payment method in the customer's invoice settings.
|
|
1944
2360
|
*/
|
|
@@ -2017,6 +2433,24 @@ export interface InvoiceUpdateParams {
|
|
|
2017
2433
|
transfer_data?: Emptyable<InvoiceUpdateParams.TransferData>;
|
|
2018
2434
|
}
|
|
2019
2435
|
export declare namespace InvoiceUpdateParams {
|
|
2436
|
+
interface AmountsDue {
|
|
2437
|
+
/**
|
|
2438
|
+
* The amount in cents (or local equivalent).
|
|
2439
|
+
*/
|
|
2440
|
+
amount: number;
|
|
2441
|
+
/**
|
|
2442
|
+
* Number of days from when invoice is finalized until the payment is due.
|
|
2443
|
+
*/
|
|
2444
|
+
days_until_due?: number;
|
|
2445
|
+
/**
|
|
2446
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
2447
|
+
*/
|
|
2448
|
+
description: string;
|
|
2449
|
+
/**
|
|
2450
|
+
* Date on which a payment plan's payment is due.
|
|
2451
|
+
*/
|
|
2452
|
+
due_date?: number;
|
|
2453
|
+
}
|
|
2020
2454
|
interface AutomaticTax {
|
|
2021
2455
|
/**
|
|
2022
2456
|
* Whether Stripe automatically computes tax on this invoice. Note that incompatible invoice items (invoice items with manually specified [tax rates](https://docs.stripe.com/api/tax_rates), negative amounts, or `tax_behavior=unspecified`) cannot be added to automatic tax invoices.
|
|
@@ -2047,6 +2481,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2047
2481
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2048
2482
|
*/
|
|
2049
2483
|
discount?: string;
|
|
2484
|
+
/**
|
|
2485
|
+
* Details to determine how long the discount should be applied for.
|
|
2486
|
+
*/
|
|
2487
|
+
discount_end?: Discount.DiscountEnd;
|
|
2050
2488
|
/**
|
|
2051
2489
|
* ID of the promotion code to create a new discount for.
|
|
2052
2490
|
*/
|
|
@@ -2140,11 +2578,43 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2140
2578
|
type: Liability.Type;
|
|
2141
2579
|
}
|
|
2142
2580
|
namespace Liability {
|
|
2143
|
-
type Type = 'account' | 'self' | OtherString;
|
|
2581
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
2582
|
+
}
|
|
2583
|
+
}
|
|
2584
|
+
namespace Discount {
|
|
2585
|
+
interface DiscountEnd {
|
|
2586
|
+
/**
|
|
2587
|
+
* Time span for the redeemed discount.
|
|
2588
|
+
*/
|
|
2589
|
+
duration?: DiscountEnd.Duration;
|
|
2590
|
+
/**
|
|
2591
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2592
|
+
*/
|
|
2593
|
+
timestamp?: number;
|
|
2594
|
+
/**
|
|
2595
|
+
* The type of calculation made to determine when the discount ends.
|
|
2596
|
+
*/
|
|
2597
|
+
type: DiscountEnd.Type;
|
|
2598
|
+
}
|
|
2599
|
+
namespace DiscountEnd {
|
|
2600
|
+
interface Duration {
|
|
2601
|
+
/**
|
|
2602
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2603
|
+
*/
|
|
2604
|
+
interval: Duration.Interval;
|
|
2605
|
+
/**
|
|
2606
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2607
|
+
*/
|
|
2608
|
+
interval_count: number;
|
|
2609
|
+
}
|
|
2610
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
2611
|
+
namespace Duration {
|
|
2612
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2613
|
+
}
|
|
2144
2614
|
}
|
|
2145
2615
|
}
|
|
2146
2616
|
namespace Issuer {
|
|
2147
|
-
type Type = 'account' | 'self' | OtherString;
|
|
2617
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
2148
2618
|
}
|
|
2149
2619
|
namespace PaymentSettings {
|
|
2150
2620
|
interface PaymentMethodOptions {
|
|
@@ -2152,6 +2622,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2152
2622
|
* If paying by `acss_debit`, this sub-hash contains details about the Canadian pre-authorized debit payment method options to pass to the invoice's PaymentIntent.
|
|
2153
2623
|
*/
|
|
2154
2624
|
acss_debit?: Emptyable<PaymentMethodOptions.AcssDebit>;
|
|
2625
|
+
/**
|
|
2626
|
+
* If paying by `bacs_debit`, this sub-hash contains details about the Bacs Direct Debit payment method options to pass to the invoice's PaymentIntent.
|
|
2627
|
+
*/
|
|
2628
|
+
bacs_debit?: Emptyable<PaymentMethodOptions.BacsDebit>;
|
|
2155
2629
|
/**
|
|
2156
2630
|
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
2157
2631
|
*/
|
|
@@ -2160,6 +2634,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2160
2634
|
* If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
|
|
2161
2635
|
*/
|
|
2162
2636
|
billie?: Emptyable<PaymentMethodOptions.Billie>;
|
|
2637
|
+
/**
|
|
2638
|
+
* If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
|
|
2639
|
+
*/
|
|
2640
|
+
bizum?: Emptyable<PaymentMethodOptions.Bizum>;
|
|
2163
2641
|
/**
|
|
2164
2642
|
* If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
2165
2643
|
*/
|
|
@@ -2168,10 +2646,18 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2168
2646
|
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
2169
2647
|
*/
|
|
2170
2648
|
card?: Emptyable<PaymentMethodOptions.Card>;
|
|
2649
|
+
/**
|
|
2650
|
+
* If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
|
|
2651
|
+
*/
|
|
2652
|
+
check_scan?: Emptyable<PaymentMethodOptions.CheckScan>;
|
|
2171
2653
|
/**
|
|
2172
2654
|
* If paying by `customer_balance`, this sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2173
2655
|
*/
|
|
2174
2656
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
2657
|
+
/**
|
|
2658
|
+
* 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.
|
|
2659
|
+
*/
|
|
2660
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
2175
2661
|
/**
|
|
2176
2662
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
2177
2663
|
*/
|
|
@@ -2196,8 +2682,12 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2196
2682
|
* 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.
|
|
2197
2683
|
*/
|
|
2198
2684
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
2685
|
+
/**
|
|
2686
|
+
* If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent.
|
|
2687
|
+
*/
|
|
2688
|
+
wechat_pay?: Emptyable<PaymentMethodOptions.WechatPay>;
|
|
2199
2689
|
}
|
|
2200
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'mb_way' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'swish' | 'twint' | 'upi' | 'us_bank_account' | 'wechat_pay' | OtherString;
|
|
2690
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'alipay' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'billie' | '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' | 'mb_way' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'paypay' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'satispay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sequra' | 'sofort' | 'stripe_balance' | 'swish' | 'touch_n_go' | 'truemoney' | 'twint' | 'upi' | 'us_bank_account' | 'vipps' | 'wechat_pay' | OtherString;
|
|
2201
2691
|
namespace PaymentMethodOptions {
|
|
2202
2692
|
interface AcssDebit {
|
|
2203
2693
|
/**
|
|
@@ -2209,6 +2699,13 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2209
2699
|
*/
|
|
2210
2700
|
verification_method?: AcssDebit.VerificationMethod;
|
|
2211
2701
|
}
|
|
2702
|
+
interface BacsDebit {
|
|
2703
|
+
/**
|
|
2704
|
+
* Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
2705
|
+
*/
|
|
2706
|
+
target_date?: string;
|
|
2707
|
+
verification_method?: BacsDebit.VerificationMethod;
|
|
2708
|
+
}
|
|
2212
2709
|
interface Bancontact {
|
|
2213
2710
|
/**
|
|
2214
2711
|
* Preferred language of the Bancontact authorization page that the customer is redirected to.
|
|
@@ -2225,6 +2722,8 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2225
2722
|
*/
|
|
2226
2723
|
reference?: string;
|
|
2227
2724
|
}
|
|
2725
|
+
interface Bizum {
|
|
2726
|
+
}
|
|
2228
2727
|
interface Blik {
|
|
2229
2728
|
}
|
|
2230
2729
|
interface Card {
|
|
@@ -2239,6 +2738,8 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2239
2738
|
*/
|
|
2240
2739
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
2241
2740
|
}
|
|
2741
|
+
interface CheckScan {
|
|
2742
|
+
}
|
|
2242
2743
|
interface CustomerBalance {
|
|
2243
2744
|
/**
|
|
2244
2745
|
* Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
@@ -2249,6 +2750,8 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2249
2750
|
*/
|
|
2250
2751
|
funding_type?: string;
|
|
2251
2752
|
}
|
|
2753
|
+
interface IdBankTransfer {
|
|
2754
|
+
}
|
|
2252
2755
|
interface Konbini {
|
|
2253
2756
|
}
|
|
2254
2757
|
interface Payto {
|
|
@@ -2268,6 +2771,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2268
2771
|
expires_after_seconds?: number;
|
|
2269
2772
|
}
|
|
2270
2773
|
interface SepaDebit {
|
|
2774
|
+
/**
|
|
2775
|
+
* Controls when Stripe will attempt to debit the funds from the customer's account. The date must be a string in YYYY-MM-DD format. The date must be in the future and between 3 and 15 calendar days from now.
|
|
2776
|
+
*/
|
|
2777
|
+
target_date?: string;
|
|
2271
2778
|
}
|
|
2272
2779
|
interface Upi {
|
|
2273
2780
|
/**
|
|
@@ -2285,6 +2792,16 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2285
2792
|
*/
|
|
2286
2793
|
verification_method?: UsBankAccount.VerificationMethod;
|
|
2287
2794
|
}
|
|
2795
|
+
interface WechatPay {
|
|
2796
|
+
/**
|
|
2797
|
+
* The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
|
|
2798
|
+
*/
|
|
2799
|
+
app_id?: string;
|
|
2800
|
+
/**
|
|
2801
|
+
* The client type that the end customer will pay from.
|
|
2802
|
+
*/
|
|
2803
|
+
client?: WechatPay.Client;
|
|
2804
|
+
}
|
|
2288
2805
|
namespace AcssDebit {
|
|
2289
2806
|
interface MandateOptions {
|
|
2290
2807
|
/**
|
|
@@ -2297,6 +2814,9 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2297
2814
|
type TransactionType = 'business' | 'personal' | OtherString;
|
|
2298
2815
|
}
|
|
2299
2816
|
}
|
|
2817
|
+
namespace BacsDebit {
|
|
2818
|
+
type VerificationMethod = 'automatic' | 'instant' | 'payer_name_verification' | OtherString;
|
|
2819
|
+
}
|
|
2300
2820
|
namespace Bancontact {
|
|
2301
2821
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
|
|
2302
2822
|
}
|
|
@@ -2444,14 +2964,21 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2444
2964
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2445
2965
|
*/
|
|
2446
2966
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2967
|
+
/**
|
|
2968
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
2969
|
+
*/
|
|
2970
|
+
institution?: string;
|
|
2447
2971
|
}
|
|
2448
2972
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
|
|
2449
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
2973
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
|
|
2450
2974
|
namespace Filters {
|
|
2451
2975
|
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
2452
2976
|
}
|
|
2453
2977
|
}
|
|
2454
2978
|
}
|
|
2979
|
+
namespace WechatPay {
|
|
2980
|
+
type Client = 'android' | 'ios' | 'mobile_web' | 'web' | OtherString;
|
|
2981
|
+
}
|
|
2455
2982
|
}
|
|
2456
2983
|
}
|
|
2457
2984
|
namespace Rendering {
|
|
@@ -2574,6 +3101,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2574
3101
|
}
|
|
2575
3102
|
}
|
|
2576
3103
|
export interface InvoiceListParams extends PaginationParams {
|
|
3104
|
+
/**
|
|
3105
|
+
* Only return invoices for the cadence specified by this billing cadence ID.
|
|
3106
|
+
*/
|
|
3107
|
+
billing_cadence?: string;
|
|
2577
3108
|
/**
|
|
2578
3109
|
* The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.
|
|
2579
3110
|
*/
|
|
@@ -2648,6 +3179,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2648
3179
|
* ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
|
|
2649
3180
|
*/
|
|
2650
3181
|
invoice_item?: string;
|
|
3182
|
+
/**
|
|
3183
|
+
* 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.
|
|
3184
|
+
*/
|
|
3185
|
+
margins?: Emptyable<Array<string>>;
|
|
2651
3186
|
/**
|
|
2652
3187
|
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.
|
|
2653
3188
|
*/
|
|
@@ -2691,6 +3226,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2691
3226
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2692
3227
|
*/
|
|
2693
3228
|
discount?: string;
|
|
3229
|
+
/**
|
|
3230
|
+
* Details to determine how long the discount should be applied for.
|
|
3231
|
+
*/
|
|
3232
|
+
discount_end?: Discount.DiscountEnd;
|
|
2694
3233
|
/**
|
|
2695
3234
|
* ID of the promotion code to create a new discount for.
|
|
2696
3235
|
*/
|
|
@@ -2758,16 +3297,48 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2758
3297
|
*/
|
|
2759
3298
|
taxable_amount: number;
|
|
2760
3299
|
}
|
|
2761
|
-
namespace
|
|
2762
|
-
interface
|
|
3300
|
+
namespace Discount {
|
|
3301
|
+
interface DiscountEnd {
|
|
2763
3302
|
/**
|
|
2764
|
-
*
|
|
3303
|
+
* Time span for the redeemed discount.
|
|
2765
3304
|
*/
|
|
2766
|
-
|
|
3305
|
+
duration?: DiscountEnd.Duration;
|
|
2767
3306
|
/**
|
|
2768
|
-
* A
|
|
3307
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2769
3308
|
*/
|
|
2770
|
-
|
|
3309
|
+
timestamp?: number;
|
|
3310
|
+
/**
|
|
3311
|
+
* The type of calculation made to determine when the discount ends.
|
|
3312
|
+
*/
|
|
3313
|
+
type: DiscountEnd.Type;
|
|
3314
|
+
}
|
|
3315
|
+
namespace DiscountEnd {
|
|
3316
|
+
interface Duration {
|
|
3317
|
+
/**
|
|
3318
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3319
|
+
*/
|
|
3320
|
+
interval: Duration.Interval;
|
|
3321
|
+
/**
|
|
3322
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3323
|
+
*/
|
|
3324
|
+
interval_count: number;
|
|
3325
|
+
}
|
|
3326
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
3327
|
+
namespace Duration {
|
|
3328
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3329
|
+
}
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
namespace PriceData {
|
|
3333
|
+
interface ProductData {
|
|
3334
|
+
/**
|
|
3335
|
+
* The product's description, meant to be displayable to the customer. Use this field to optionally store a long form explanation of the product being sold for your own rendering purposes.
|
|
3336
|
+
*/
|
|
3337
|
+
description?: string;
|
|
3338
|
+
/**
|
|
3339
|
+
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
3340
|
+
*/
|
|
3341
|
+
images?: Array<string>;
|
|
2771
3342
|
/**
|
|
2772
3343
|
* 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`.
|
|
2773
3344
|
*/
|
|
@@ -2851,6 +3422,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2851
3422
|
}
|
|
2852
3423
|
}
|
|
2853
3424
|
export interface InvoiceAttachPaymentParams {
|
|
3425
|
+
/**
|
|
3426
|
+
* The portion of the `amount` on the PaymentIntent or out of band payment to apply to this invoice. It defaults to the entire amount.
|
|
3427
|
+
*/
|
|
3428
|
+
amount_requested?: number;
|
|
2854
3429
|
/**
|
|
2855
3430
|
* Specifies which fields in the response should be expanded.
|
|
2856
3431
|
*/
|
|
@@ -2863,12 +3438,48 @@ export interface InvoiceAttachPaymentParams {
|
|
|
2863
3438
|
* The ID of the PaymentRecord to attach to the invoice.
|
|
2864
3439
|
*/
|
|
2865
3440
|
payment_record?: string;
|
|
3441
|
+
/**
|
|
3442
|
+
* The PaymentRecord data for attaching an out of band payment to the invoice.
|
|
3443
|
+
*/
|
|
3444
|
+
payment_record_data?: InvoiceAttachPaymentParams.PaymentRecordData;
|
|
3445
|
+
}
|
|
3446
|
+
export declare namespace InvoiceAttachPaymentParams {
|
|
3447
|
+
interface PaymentRecordData {
|
|
3448
|
+
/**
|
|
3449
|
+
* The amount that was paid out of band.
|
|
3450
|
+
*/
|
|
3451
|
+
amount: number;
|
|
3452
|
+
/**
|
|
3453
|
+
* The currency that was paid out of band.
|
|
3454
|
+
*/
|
|
3455
|
+
currency: string;
|
|
3456
|
+
/**
|
|
3457
|
+
* 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`.
|
|
3458
|
+
*/
|
|
3459
|
+
metadata?: Emptyable<MetadataParam>;
|
|
3460
|
+
/**
|
|
3461
|
+
* The type of money movement for this out of band payment record.
|
|
3462
|
+
*/
|
|
3463
|
+
money_movement_type: string;
|
|
3464
|
+
/**
|
|
3465
|
+
* The timestamp when this out of band payment was paid.
|
|
3466
|
+
*/
|
|
3467
|
+
paid_at?: number;
|
|
3468
|
+
/**
|
|
3469
|
+
* The reference for this out of band payment record.
|
|
3470
|
+
*/
|
|
3471
|
+
payment_reference?: string;
|
|
3472
|
+
}
|
|
2866
3473
|
}
|
|
2867
3474
|
export interface InvoiceCreatePreviewParams {
|
|
2868
3475
|
/**
|
|
2869
3476
|
* Settings for automatic tax lookup for this invoice preview.
|
|
2870
3477
|
*/
|
|
2871
3478
|
automatic_tax?: InvoiceCreatePreviewParams.AutomaticTax;
|
|
3479
|
+
/**
|
|
3480
|
+
* 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.
|
|
3481
|
+
*/
|
|
3482
|
+
billing_cadence?: string;
|
|
2872
3483
|
/**
|
|
2873
3484
|
* The currency to preview this invoice in. Defaults to that of `customer` if not specified.
|
|
2874
3485
|
*/
|
|
@@ -2909,6 +3520,10 @@ export interface InvoiceCreatePreviewParams {
|
|
|
2909
3520
|
* Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
|
|
2910
3521
|
*/
|
|
2911
3522
|
preview_mode?: InvoiceCreatePreviewParams.PreviewMode;
|
|
3523
|
+
/**
|
|
3524
|
+
* A pricing token whose presentment currency and exchange rate are used to convert the amounts on the previewed invoice into the customer-facing presentment currency. When omitted, amounts are returned in the settlement currency.
|
|
3525
|
+
*/
|
|
3526
|
+
pricing_token?: string;
|
|
2912
3527
|
/**
|
|
2913
3528
|
* The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
|
|
2914
3529
|
*/
|
|
@@ -2968,10 +3583,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
2968
3583
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2969
3584
|
*/
|
|
2970
3585
|
discount?: string;
|
|
3586
|
+
/**
|
|
3587
|
+
* Details to determine how long the discount should be applied for.
|
|
3588
|
+
*/
|
|
3589
|
+
discount_end?: Discount.DiscountEnd;
|
|
2971
3590
|
/**
|
|
2972
3591
|
* ID of the promotion code to create a new discount for.
|
|
2973
3592
|
*/
|
|
2974
3593
|
promotion_code?: string;
|
|
3594
|
+
/**
|
|
3595
|
+
* Settings for discount application including service period anchoring.
|
|
3596
|
+
*/
|
|
3597
|
+
settings?: Discount.Settings;
|
|
2975
3598
|
}
|
|
2976
3599
|
interface InvoiceItem {
|
|
2977
3600
|
/**
|
|
@@ -3055,10 +3678,26 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3055
3678
|
}
|
|
3056
3679
|
type PreviewMode = 'next' | 'recurring' | OtherString;
|
|
3057
3680
|
interface ScheduleDetails {
|
|
3681
|
+
/**
|
|
3682
|
+
* Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
3683
|
+
*/
|
|
3684
|
+
amendments?: Array<ScheduleDetails.Amendment>;
|
|
3685
|
+
/**
|
|
3686
|
+
* 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.
|
|
3687
|
+
*/
|
|
3688
|
+
billing_behavior?: ScheduleDetails.BillingBehavior;
|
|
3058
3689
|
/**
|
|
3059
3690
|
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
3060
3691
|
*/
|
|
3061
3692
|
billing_mode?: ScheduleDetails.BillingMode;
|
|
3693
|
+
/**
|
|
3694
|
+
* Sets the billing schedules for the subscription schedule.
|
|
3695
|
+
*/
|
|
3696
|
+
billing_schedules?: Emptyable<Array<ScheduleDetails.BillingSchedule>>;
|
|
3697
|
+
/**
|
|
3698
|
+
* Object representing the subscription schedule's default settings.
|
|
3699
|
+
*/
|
|
3700
|
+
default_settings?: ScheduleDetails.DefaultSettings;
|
|
3062
3701
|
/**
|
|
3063
3702
|
* 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.
|
|
3064
3703
|
*/
|
|
@@ -3071,6 +3710,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3071
3710
|
* List representing phases of the subscription schedule. Each phase can be customized to have different durations, plans, and coupons. If there are multiple phases, the `end_date` of one phase will always equal the `start_date` of the next phase.
|
|
3072
3711
|
*/
|
|
3073
3712
|
phases?: Array<ScheduleDetails.Phase>;
|
|
3713
|
+
/**
|
|
3714
|
+
* Provide any time periods to bill in advance.
|
|
3715
|
+
*/
|
|
3716
|
+
prebilling?: Emptyable<Array<ScheduleDetails.Prebilling>>;
|
|
3074
3717
|
/**
|
|
3075
3718
|
* In cases where the `schedule_details` params update the currently active phase, specifies if and how to prorate at the time of the request.
|
|
3076
3719
|
*/
|
|
@@ -3121,6 +3764,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3121
3764
|
* `pending_invoice_item` never has a preview available because pausing wouldn't generate an invoice, and paused subscriptions don't generate invoices either.
|
|
3122
3765
|
*/
|
|
3123
3766
|
pause?: SubscriptionDetails.Pause;
|
|
3767
|
+
/**
|
|
3768
|
+
* The pre-billing to apply to the subscription as a preview.
|
|
3769
|
+
*/
|
|
3770
|
+
prebilling?: SubscriptionDetails.Prebilling;
|
|
3124
3771
|
/**
|
|
3125
3772
|
* Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when the billing cycle changes (e.g., when switching plans, resetting `billing_cycle_anchor=now`, or starting a trial), or if an item's `quantity` changes. The default value is `create_prorations`.
|
|
3126
3773
|
*/
|
|
@@ -3154,7 +3801,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3154
3801
|
type: Liability.Type;
|
|
3155
3802
|
}
|
|
3156
3803
|
namespace Liability {
|
|
3157
|
-
type Type = 'account' | 'self' | OtherString;
|
|
3804
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
3158
3805
|
}
|
|
3159
3806
|
}
|
|
3160
3807
|
namespace CustomerDetails {
|
|
@@ -3193,6 +3840,86 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3193
3840
|
type Type = 'ad_nrt' | 'ae_trn' | 'al_tin' | 'am_tin' | 'ao_tin' | 'ar_cuit' | 'au_abn' | 'au_acn' | 'au_arn' | 'au_wpn' | 'aw_tin' | 'az_tin' | 'ba_tin' | 'bb_tin' | 'bd_bin' | 'bf_ifu' | 'bg_uic' | 'bh_vat' | 'bj_ifu' | 'bo_tin' | 'br_cnpj' | 'br_cpf' | 'bs_tin' | 'bw_vat' | 'by_tin' | 'ca_bn' | 'ca_gst_hst' | 'ca_pst_bc' | 'ca_pst_mb' | 'ca_pst_sk' | 'ca_qst' | 'cd_nif' | 'ch_uid' | 'ch_vat' | 'ci_vat' | 'cl_tin' | 'cm_niu' | 'cn_tin' | 'co_nit' | 'cr_tin' | 'cv_nif' | 'cz_dic' | 'de_stn' | 'do_rcn' | 'ec_ruc' | 'eg_tin' | 'es_cif' | 'et_tin' | 'eu_oss_vat' | 'eu_vat' | 'fo_vat' | 'fr_siren' | 'fr_siret' | 'fr_spi' | 'gb_vat' | 'ge_vat' | 'gh_tin' | 'gi_tin' | 'gn_nif' | 'hk_br' | 'hr_oib' | 'hu_tin' | 'ic_nif' | 'id_npwp' | 'il_vat' | 'in_gst' | 'is_kt' | 'is_vat' | 'it_cf' | 'jp_cn' | 'jp_rn' | 'jp_trn' | 'ke_pin' | 'kg_tin' | 'kh_tin' | 'kr_brn' | 'kz_bin' | 'la_tin' | 'li_uid' | 'li_vat' | 'lk_vat' | 'ma_vat' | 'md_cf' | 'md_vat' | 'me_pib' | 'mk_vat' | 'mr_nif' | 'mu_vat' | 'mx_rfc' | 'my_frp' | 'my_itn' | 'my_sst' | 'mz_nuit' | 'ng_tin' | 'no_vat' | 'no_voec' | 'np_pan' | 'nz_bn' | 'nz_gst' | 'om_vat' | 'pe_ruc' | 'ph_tin' | 'pl_nip' | 'pt_nif' | 'py_ruc' | 'ro_tin' | 'rs_pib' | 'ru_inn' | 'ru_kpp' | 'sa_vat' | 'sg_gst' | 'sg_uen' | 'si_tin' | 'sm_coe' | 'sn_ninea' | 'sr_fin' | 'sv_nit' | 'th_vat' | 'tj_tin' | 'tr_tin' | 'tt_bir' | 'tt_vat' | 'tw_vat' | 'tz_vat' | 'ua_vat' | 'ug_tin' | 'us_ein' | 'uy_ruc' | 'uz_tin' | 'uz_vat' | 've_rif' | 'vn_tin' | 'za_vat' | 'zm_tin' | 'zw_tin' | OtherString;
|
|
3194
3841
|
}
|
|
3195
3842
|
}
|
|
3843
|
+
namespace Discount {
|
|
3844
|
+
interface DiscountEnd {
|
|
3845
|
+
/**
|
|
3846
|
+
* Time span for the redeemed discount.
|
|
3847
|
+
*/
|
|
3848
|
+
duration?: DiscountEnd.Duration;
|
|
3849
|
+
/**
|
|
3850
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3851
|
+
*/
|
|
3852
|
+
timestamp?: number;
|
|
3853
|
+
/**
|
|
3854
|
+
* The type of calculation made to determine when the discount ends.
|
|
3855
|
+
*/
|
|
3856
|
+
type: DiscountEnd.Type;
|
|
3857
|
+
}
|
|
3858
|
+
interface Settings {
|
|
3859
|
+
/**
|
|
3860
|
+
* Configures service period cycle anchoring.
|
|
3861
|
+
*/
|
|
3862
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
3863
|
+
/**
|
|
3864
|
+
* 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.
|
|
3865
|
+
*/
|
|
3866
|
+
start_date?: Settings.StartDate;
|
|
3867
|
+
}
|
|
3868
|
+
namespace DiscountEnd {
|
|
3869
|
+
interface Duration {
|
|
3870
|
+
/**
|
|
3871
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3872
|
+
*/
|
|
3873
|
+
interval: Duration.Interval;
|
|
3874
|
+
/**
|
|
3875
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3876
|
+
*/
|
|
3877
|
+
interval_count: number;
|
|
3878
|
+
}
|
|
3879
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
3880
|
+
namespace Duration {
|
|
3881
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3882
|
+
}
|
|
3883
|
+
}
|
|
3884
|
+
namespace Settings {
|
|
3885
|
+
interface ServicePeriodAnchorConfig {
|
|
3886
|
+
/**
|
|
3887
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
3888
|
+
*/
|
|
3889
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
3890
|
+
/**
|
|
3891
|
+
* The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
3892
|
+
*/
|
|
3893
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
3894
|
+
}
|
|
3895
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'now' | OtherString;
|
|
3896
|
+
namespace ServicePeriodAnchorConfig {
|
|
3897
|
+
interface Custom {
|
|
3898
|
+
/**
|
|
3899
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
3900
|
+
*/
|
|
3901
|
+
day_of_month: number;
|
|
3902
|
+
/**
|
|
3903
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
3904
|
+
*/
|
|
3905
|
+
hour?: number;
|
|
3906
|
+
/**
|
|
3907
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
3908
|
+
*/
|
|
3909
|
+
minute?: number;
|
|
3910
|
+
/**
|
|
3911
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
3912
|
+
*/
|
|
3913
|
+
month?: number;
|
|
3914
|
+
/**
|
|
3915
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
3916
|
+
*/
|
|
3917
|
+
second?: number;
|
|
3918
|
+
}
|
|
3919
|
+
type Type = 'custom' | 'subscription_service_cycle_anchor' | OtherString;
|
|
3920
|
+
}
|
|
3921
|
+
}
|
|
3922
|
+
}
|
|
3196
3923
|
namespace InvoiceItem {
|
|
3197
3924
|
interface Discount {
|
|
3198
3925
|
/**
|
|
@@ -3203,6 +3930,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3203
3930
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3204
3931
|
*/
|
|
3205
3932
|
discount?: string;
|
|
3933
|
+
/**
|
|
3934
|
+
* Details to determine how long the discount should be applied for.
|
|
3935
|
+
*/
|
|
3936
|
+
discount_end?: Discount.DiscountEnd;
|
|
3206
3937
|
/**
|
|
3207
3938
|
* ID of the promotion code to create a new discount for.
|
|
3208
3939
|
*/
|
|
@@ -3241,14 +3972,97 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3241
3972
|
unit_amount_decimal?: Decimal;
|
|
3242
3973
|
}
|
|
3243
3974
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
|
|
3975
|
+
namespace Discount {
|
|
3976
|
+
interface DiscountEnd {
|
|
3977
|
+
/**
|
|
3978
|
+
* Time span for the redeemed discount.
|
|
3979
|
+
*/
|
|
3980
|
+
duration?: DiscountEnd.Duration;
|
|
3981
|
+
/**
|
|
3982
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3983
|
+
*/
|
|
3984
|
+
timestamp?: number;
|
|
3985
|
+
/**
|
|
3986
|
+
* The type of calculation made to determine when the discount ends.
|
|
3987
|
+
*/
|
|
3988
|
+
type: DiscountEnd.Type;
|
|
3989
|
+
}
|
|
3990
|
+
namespace DiscountEnd {
|
|
3991
|
+
interface Duration {
|
|
3992
|
+
/**
|
|
3993
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3994
|
+
*/
|
|
3995
|
+
interval: Duration.Interval;
|
|
3996
|
+
/**
|
|
3997
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3998
|
+
*/
|
|
3999
|
+
interval_count: number;
|
|
4000
|
+
}
|
|
4001
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4002
|
+
namespace Duration {
|
|
4003
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4004
|
+
}
|
|
4005
|
+
}
|
|
4006
|
+
}
|
|
3244
4007
|
namespace PriceData {
|
|
3245
4008
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
|
|
3246
4009
|
}
|
|
3247
4010
|
}
|
|
3248
4011
|
namespace Issuer {
|
|
3249
|
-
type Type = 'account' | 'self' | OtherString;
|
|
4012
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
3250
4013
|
}
|
|
3251
4014
|
namespace ScheduleDetails {
|
|
4015
|
+
interface Amendment {
|
|
4016
|
+
/**
|
|
4017
|
+
* 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.
|
|
4018
|
+
*/
|
|
4019
|
+
amendment_end?: Amendment.AmendmentEnd;
|
|
4020
|
+
/**
|
|
4021
|
+
* Details to identify the earliest timestamp where the proposed change should take effect.
|
|
4022
|
+
*/
|
|
4023
|
+
amendment_start: Amendment.AmendmentStart;
|
|
4024
|
+
/**
|
|
4025
|
+
* 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.
|
|
4026
|
+
*/
|
|
4027
|
+
billing_cycle_anchor?: Amendment.BillingCycleAnchor;
|
|
4028
|
+
/**
|
|
4029
|
+
* Actions to apply to the billing schedules.
|
|
4030
|
+
*/
|
|
4031
|
+
billing_schedules_actions?: Array<Amendment.BillingSchedulesAction>;
|
|
4032
|
+
/**
|
|
4033
|
+
* Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
4034
|
+
*/
|
|
4035
|
+
discount_actions?: Array<Amendment.DiscountAction>;
|
|
4036
|
+
/**
|
|
4037
|
+
* Configures how the subscription schedule handles billing for phase transitions.
|
|
4038
|
+
*/
|
|
4039
|
+
effective_at?: Amendment.EffectiveAt;
|
|
4040
|
+
/**
|
|
4041
|
+
* Changes to the subscription items during the amendment time span.
|
|
4042
|
+
*/
|
|
4043
|
+
item_actions?: Array<Amendment.ItemAction>;
|
|
4044
|
+
/**
|
|
4045
|
+
* Instructions for how to modify phase metadata
|
|
4046
|
+
*/
|
|
4047
|
+
metadata_actions?: Array<Amendment.MetadataAction>;
|
|
4048
|
+
/**
|
|
4049
|
+
* 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`.
|
|
4050
|
+
*/
|
|
4051
|
+
proration_behavior?: Amendment.ProrationBehavior;
|
|
4052
|
+
/**
|
|
4053
|
+
* Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
4054
|
+
*/
|
|
4055
|
+
set_pause_collection?: Amendment.SetPauseCollection;
|
|
4056
|
+
/**
|
|
4057
|
+
* Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
4058
|
+
*/
|
|
4059
|
+
set_schedule_end?: Amendment.SetScheduleEnd;
|
|
4060
|
+
/**
|
|
4061
|
+
* Settings related to subscription trials.
|
|
4062
|
+
*/
|
|
4063
|
+
trial_settings?: Amendment.TrialSettings;
|
|
4064
|
+
}
|
|
4065
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front' | OtherString;
|
|
3252
4066
|
interface BillingMode {
|
|
3253
4067
|
/**
|
|
3254
4068
|
* Configure behavior for flexible billing mode.
|
|
@@ -3259,6 +4073,26 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3259
4073
|
*/
|
|
3260
4074
|
type: BillingMode.Type;
|
|
3261
4075
|
}
|
|
4076
|
+
interface BillingSchedule {
|
|
4077
|
+
/**
|
|
4078
|
+
* Configure billing schedule differently for individual subscription items.
|
|
4079
|
+
*/
|
|
4080
|
+
applies_to?: Array<BillingSchedule.AppliesTo>;
|
|
4081
|
+
/**
|
|
4082
|
+
* The end date for the billing schedule. You must not set this earlier than current period end for every applicable subscription item.
|
|
4083
|
+
*/
|
|
4084
|
+
bill_until?: BillingSchedule.BillUntil;
|
|
4085
|
+
/**
|
|
4086
|
+
* 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.
|
|
4087
|
+
*/
|
|
4088
|
+
key?: string;
|
|
4089
|
+
}
|
|
4090
|
+
interface DefaultSettings {
|
|
4091
|
+
/**
|
|
4092
|
+
* Configures how the subscription schedule handles billing for phase transitions.
|
|
4093
|
+
*/
|
|
4094
|
+
phase_effective_at?: DefaultSettings.PhaseEffectiveAt;
|
|
4095
|
+
}
|
|
3262
4096
|
type EndBehavior = 'cancel' | 'release' | OtherString;
|
|
3263
4097
|
interface PauseSchedule {
|
|
3264
4098
|
/**
|
|
@@ -3323,6 +4157,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3323
4157
|
* The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
3324
4158
|
*/
|
|
3325
4159
|
duration?: Phase.Duration;
|
|
4160
|
+
/**
|
|
4161
|
+
* Configures how the subscription schedule handles billing for phase transitions.
|
|
4162
|
+
*/
|
|
4163
|
+
effective_at?: Phase.EffectiveAt;
|
|
3326
4164
|
/**
|
|
3327
4165
|
* The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
3328
4166
|
*/
|
|
@@ -3343,6 +4181,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3343
4181
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
3344
4182
|
*/
|
|
3345
4183
|
on_behalf_of?: string;
|
|
4184
|
+
/**
|
|
4185
|
+
* 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).
|
|
4186
|
+
*/
|
|
4187
|
+
pause_collection?: Phase.PauseCollection;
|
|
3346
4188
|
/**
|
|
3347
4189
|
* Controls whether the subscription schedule should create [prorations](https://docs.stripe.com/billing/subscriptions/prorations) when transitioning to this phase if there is a difference in billing configuration. It's different from the request-level [proration_behavior](https://docs.stripe.com/api/subscription_schedules/update#update_subscription_schedule-proration_behavior) parameter which controls what happens if the update request affects the billing configuration (item price, quantity, etc.) of the current phase.
|
|
3348
4190
|
*/
|
|
@@ -3359,73 +4201,808 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3359
4201
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
3360
4202
|
*/
|
|
3361
4203
|
trial?: boolean;
|
|
4204
|
+
/**
|
|
4205
|
+
* Specify trial behavior when crossing phase boundaries
|
|
4206
|
+
*/
|
|
4207
|
+
trial_continuation?: Phase.TrialContinuation;
|
|
3362
4208
|
/**
|
|
3363
4209
|
* Sets the phase to trialing from the start date to this date. Must be within the phase. When previewing an update, if combined with `trial=true`, it must match the phase end date.
|
|
3364
4210
|
*/
|
|
3365
4211
|
trial_end?: number | 'now';
|
|
4212
|
+
/**
|
|
4213
|
+
* Settings related to subscription trials.
|
|
4214
|
+
*/
|
|
4215
|
+
trial_settings?: Phase.TrialSettings;
|
|
4216
|
+
}
|
|
4217
|
+
interface Prebilling {
|
|
4218
|
+
/**
|
|
4219
|
+
* The end of the prebilled time period.
|
|
4220
|
+
*/
|
|
4221
|
+
bill_until?: Prebilling.BillUntil;
|
|
4222
|
+
/**
|
|
4223
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
4224
|
+
*/
|
|
4225
|
+
iterations?: number;
|
|
3366
4226
|
}
|
|
3367
4227
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
3368
|
-
namespace
|
|
3369
|
-
interface
|
|
4228
|
+
namespace Amendment {
|
|
4229
|
+
interface AmendmentEnd {
|
|
3370
4230
|
/**
|
|
3371
|
-
*
|
|
4231
|
+
* Use the `end` time of a given discount.
|
|
3372
4232
|
*/
|
|
3373
|
-
|
|
4233
|
+
discount_end?: AmendmentEnd.DiscountEnd;
|
|
4234
|
+
/**
|
|
4235
|
+
* Time span for the amendment starting from the `amendment_start`.
|
|
4236
|
+
*/
|
|
4237
|
+
duration?: AmendmentEnd.Duration;
|
|
4238
|
+
/**
|
|
4239
|
+
* A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
4240
|
+
*/
|
|
4241
|
+
timestamp?: number;
|
|
4242
|
+
/**
|
|
4243
|
+
* Select one of three ways to pass the `amendment_end`.
|
|
4244
|
+
*/
|
|
4245
|
+
type: AmendmentEnd.Type;
|
|
3374
4246
|
}
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
4247
|
+
interface AmendmentStart {
|
|
4248
|
+
/**
|
|
4249
|
+
* Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
4250
|
+
*/
|
|
4251
|
+
amendment_end?: AmendmentStart.AmendmentEnd;
|
|
4252
|
+
/**
|
|
4253
|
+
* Use the `end` time of a given discount.
|
|
4254
|
+
*/
|
|
4255
|
+
discount_end?: AmendmentStart.DiscountEnd;
|
|
4256
|
+
/**
|
|
4257
|
+
* A precise Unix timestamp for the amendment to start.
|
|
4258
|
+
*/
|
|
4259
|
+
timestamp?: number;
|
|
4260
|
+
/**
|
|
4261
|
+
* Select one of three ways to pass the `amendment_start`.
|
|
4262
|
+
*/
|
|
4263
|
+
type: AmendmentStart.Type;
|
|
3378
4264
|
}
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
interface Pause {
|
|
4265
|
+
type BillingCycleAnchor = 'amendment_start' | 'automatic' | OtherString;
|
|
4266
|
+
interface BillingSchedulesAction {
|
|
3382
4267
|
/**
|
|
3383
|
-
*
|
|
4268
|
+
* Specify which subscription items the billing schedule applies to.
|
|
3384
4269
|
*/
|
|
3385
|
-
|
|
4270
|
+
applies_to?: Array<BillingSchedulesAction.AppliesTo>;
|
|
3386
4271
|
/**
|
|
3387
|
-
*
|
|
4272
|
+
* Select the action.
|
|
3388
4273
|
*/
|
|
3389
|
-
|
|
4274
|
+
type: BillingSchedulesAction.Type;
|
|
3390
4275
|
}
|
|
3391
|
-
interface
|
|
4276
|
+
interface DiscountAction {
|
|
3392
4277
|
/**
|
|
3393
|
-
*
|
|
4278
|
+
* Details of the discount to add.
|
|
3394
4279
|
*/
|
|
3395
|
-
|
|
4280
|
+
add?: DiscountAction.Add;
|
|
3396
4281
|
/**
|
|
3397
|
-
*
|
|
4282
|
+
* Details of the discount to remove.
|
|
3398
4283
|
*/
|
|
3399
|
-
|
|
4284
|
+
remove?: DiscountAction.Remove;
|
|
4285
|
+
/**
|
|
4286
|
+
* Details of the discount to replace the existing discounts with.
|
|
4287
|
+
*/
|
|
4288
|
+
set?: DiscountAction.Set;
|
|
4289
|
+
/**
|
|
4290
|
+
* Determines the type of discount action.
|
|
4291
|
+
*/
|
|
4292
|
+
type: DiscountAction.Type;
|
|
3400
4293
|
}
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
|
|
3424
|
-
|
|
3425
|
-
|
|
3426
|
-
|
|
3427
|
-
|
|
3428
|
-
|
|
4294
|
+
type EffectiveAt = 'amendment_start' | 'billing_period_start' | OtherString;
|
|
4295
|
+
interface ItemAction {
|
|
4296
|
+
/**
|
|
4297
|
+
* 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.
|
|
4298
|
+
*/
|
|
4299
|
+
add?: ItemAction.Add;
|
|
4300
|
+
/**
|
|
4301
|
+
* Details of the subscription item to remove.
|
|
4302
|
+
*/
|
|
4303
|
+
remove?: ItemAction.Remove;
|
|
4304
|
+
/**
|
|
4305
|
+
* 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.
|
|
4306
|
+
*/
|
|
4307
|
+
set?: ItemAction.Set;
|
|
4308
|
+
/**
|
|
4309
|
+
* Determines the type of item action.
|
|
4310
|
+
*/
|
|
4311
|
+
type: ItemAction.Type;
|
|
4312
|
+
}
|
|
4313
|
+
interface MetadataAction {
|
|
4314
|
+
/**
|
|
4315
|
+
* Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
4316
|
+
*/
|
|
4317
|
+
add?: {
|
|
4318
|
+
[key: string]: string;
|
|
4319
|
+
};
|
|
4320
|
+
/**
|
|
4321
|
+
* Keys to remove from schedule phase metadata.
|
|
4322
|
+
*/
|
|
4323
|
+
remove?: Array<string>;
|
|
4324
|
+
/**
|
|
4325
|
+
* Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
4326
|
+
*/
|
|
4327
|
+
set?: Emptyable<{
|
|
4328
|
+
[key: string]: string;
|
|
4329
|
+
}>;
|
|
4330
|
+
/**
|
|
4331
|
+
* Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
4332
|
+
*/
|
|
4333
|
+
type: MetadataAction.Type;
|
|
4334
|
+
}
|
|
4335
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
4336
|
+
interface SetPauseCollection {
|
|
4337
|
+
/**
|
|
4338
|
+
* Details of the pause_collection behavior to apply to the amendment.
|
|
4339
|
+
*/
|
|
4340
|
+
set?: SetPauseCollection.Set;
|
|
4341
|
+
/**
|
|
4342
|
+
* Determines the type of the pause_collection amendment.
|
|
4343
|
+
*/
|
|
4344
|
+
type: SetPauseCollection.Type;
|
|
4345
|
+
}
|
|
4346
|
+
type SetScheduleEnd = 'amendment_end' | 'amendment_start' | OtherString;
|
|
4347
|
+
interface TrialSettings {
|
|
4348
|
+
/**
|
|
4349
|
+
* Defines how the subscription should behave when a trial ends.
|
|
4350
|
+
*/
|
|
4351
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
4352
|
+
}
|
|
4353
|
+
namespace AmendmentEnd {
|
|
4354
|
+
interface DiscountEnd {
|
|
4355
|
+
/**
|
|
4356
|
+
* The ID of a specific discount.
|
|
4357
|
+
*/
|
|
4358
|
+
discount: string;
|
|
4359
|
+
}
|
|
4360
|
+
interface Duration {
|
|
4361
|
+
/**
|
|
4362
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4363
|
+
*/
|
|
4364
|
+
interval: Duration.Interval;
|
|
4365
|
+
/**
|
|
4366
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4367
|
+
*/
|
|
4368
|
+
interval_count: number;
|
|
4369
|
+
}
|
|
4370
|
+
type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
|
|
4371
|
+
namespace Duration {
|
|
4372
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4373
|
+
}
|
|
4374
|
+
}
|
|
4375
|
+
namespace AmendmentStart {
|
|
4376
|
+
interface AmendmentEnd {
|
|
4377
|
+
/**
|
|
4378
|
+
* 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.
|
|
4379
|
+
*/
|
|
4380
|
+
index: number;
|
|
4381
|
+
}
|
|
4382
|
+
interface DiscountEnd {
|
|
4383
|
+
/**
|
|
4384
|
+
* The ID of a specific discount.
|
|
4385
|
+
*/
|
|
4386
|
+
discount: string;
|
|
4387
|
+
}
|
|
4388
|
+
type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
|
|
4389
|
+
}
|
|
4390
|
+
namespace BillingSchedulesAction {
|
|
4391
|
+
interface AppliesTo {
|
|
4392
|
+
/**
|
|
4393
|
+
* The ID of the price object.
|
|
4394
|
+
*/
|
|
4395
|
+
price?: string;
|
|
4396
|
+
/**
|
|
4397
|
+
* Controls which subscription items the billing schedule applies to.
|
|
4398
|
+
*/
|
|
4399
|
+
type: 'price';
|
|
4400
|
+
}
|
|
4401
|
+
type Type = 'remove' | 'set' | OtherString;
|
|
4402
|
+
}
|
|
4403
|
+
namespace DiscountAction {
|
|
4404
|
+
interface Add {
|
|
4405
|
+
/**
|
|
4406
|
+
* The coupon code to redeem.
|
|
4407
|
+
*/
|
|
4408
|
+
coupon?: string;
|
|
4409
|
+
/**
|
|
4410
|
+
* An ID of an existing discount for a coupon that was already redeemed.
|
|
4411
|
+
*/
|
|
4412
|
+
discount?: string;
|
|
4413
|
+
/**
|
|
4414
|
+
* Details to determine how long the discount should be applied for.
|
|
4415
|
+
*/
|
|
4416
|
+
discount_end?: Add.DiscountEnd;
|
|
4417
|
+
/**
|
|
4418
|
+
* 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.
|
|
4419
|
+
*/
|
|
4420
|
+
index?: number;
|
|
4421
|
+
/**
|
|
4422
|
+
* The promotion code to redeem.
|
|
4423
|
+
*/
|
|
4424
|
+
promotion_code?: string;
|
|
4425
|
+
/**
|
|
4426
|
+
* Settings for discount application including service period anchoring.
|
|
4427
|
+
*/
|
|
4428
|
+
settings?: Add.Settings;
|
|
4429
|
+
}
|
|
4430
|
+
interface Remove {
|
|
4431
|
+
/**
|
|
4432
|
+
* The coupon code to remove from the `discounts` array.
|
|
4433
|
+
*/
|
|
4434
|
+
coupon?: string;
|
|
4435
|
+
/**
|
|
4436
|
+
* The ID of a discount to remove from the `discounts` array.
|
|
4437
|
+
*/
|
|
4438
|
+
discount?: string;
|
|
4439
|
+
/**
|
|
4440
|
+
* The ID of a promotion code to remove from the `discounts` array.
|
|
4441
|
+
*/
|
|
4442
|
+
promotion_code?: string;
|
|
4443
|
+
}
|
|
4444
|
+
interface Set {
|
|
4445
|
+
/**
|
|
4446
|
+
* The coupon code to replace the `discounts` array with.
|
|
4447
|
+
*/
|
|
4448
|
+
coupon?: string;
|
|
4449
|
+
/**
|
|
4450
|
+
* An ID of an existing discount to replace the `discounts` array with.
|
|
4451
|
+
*/
|
|
4452
|
+
discount?: string;
|
|
4453
|
+
/**
|
|
4454
|
+
* An ID of an existing promotion code to replace the `discounts` array with.
|
|
4455
|
+
*/
|
|
4456
|
+
promotion_code?: string;
|
|
4457
|
+
/**
|
|
4458
|
+
* Settings for discount application including service period anchoring.
|
|
4459
|
+
*/
|
|
4460
|
+
settings?: Set.Settings;
|
|
4461
|
+
}
|
|
4462
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
4463
|
+
namespace Add {
|
|
4464
|
+
interface DiscountEnd {
|
|
4465
|
+
/**
|
|
4466
|
+
* The type of calculation made to determine when the discount ends.
|
|
4467
|
+
*/
|
|
4468
|
+
type: 'amendment_end';
|
|
4469
|
+
}
|
|
4470
|
+
interface Settings {
|
|
4471
|
+
/**
|
|
4472
|
+
* Configures service period cycle anchoring.
|
|
4473
|
+
*/
|
|
4474
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4475
|
+
/**
|
|
4476
|
+
* 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.
|
|
4477
|
+
*/
|
|
4478
|
+
start_date?: Settings.StartDate;
|
|
4479
|
+
}
|
|
4480
|
+
namespace Settings {
|
|
4481
|
+
interface ServicePeriodAnchorConfig {
|
|
4482
|
+
/**
|
|
4483
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4484
|
+
*/
|
|
4485
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4486
|
+
/**
|
|
4487
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4488
|
+
*/
|
|
4489
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4490
|
+
}
|
|
4491
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
|
|
4492
|
+
namespace ServicePeriodAnchorConfig {
|
|
4493
|
+
interface Custom {
|
|
4494
|
+
/**
|
|
4495
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4496
|
+
*/
|
|
4497
|
+
day_of_month: number;
|
|
4498
|
+
/**
|
|
4499
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4500
|
+
*/
|
|
4501
|
+
hour?: number;
|
|
4502
|
+
/**
|
|
4503
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4504
|
+
*/
|
|
4505
|
+
minute?: number;
|
|
4506
|
+
/**
|
|
4507
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4508
|
+
*/
|
|
4509
|
+
month?: number;
|
|
4510
|
+
/**
|
|
4511
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4512
|
+
*/
|
|
4513
|
+
second?: number;
|
|
4514
|
+
}
|
|
4515
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
4516
|
+
}
|
|
4517
|
+
}
|
|
4518
|
+
}
|
|
4519
|
+
namespace Set {
|
|
4520
|
+
interface Settings {
|
|
4521
|
+
/**
|
|
4522
|
+
* Configures service period cycle anchoring.
|
|
4523
|
+
*/
|
|
4524
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4525
|
+
/**
|
|
4526
|
+
* 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.
|
|
4527
|
+
*/
|
|
4528
|
+
start_date?: Settings.StartDate;
|
|
4529
|
+
}
|
|
4530
|
+
namespace Settings {
|
|
4531
|
+
interface ServicePeriodAnchorConfig {
|
|
4532
|
+
/**
|
|
4533
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4534
|
+
*/
|
|
4535
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4536
|
+
/**
|
|
4537
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4538
|
+
*/
|
|
4539
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4540
|
+
}
|
|
4541
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
|
|
4542
|
+
namespace ServicePeriodAnchorConfig {
|
|
4543
|
+
interface Custom {
|
|
4544
|
+
/**
|
|
4545
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4546
|
+
*/
|
|
4547
|
+
day_of_month: number;
|
|
4548
|
+
/**
|
|
4549
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4550
|
+
*/
|
|
4551
|
+
hour?: number;
|
|
4552
|
+
/**
|
|
4553
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4554
|
+
*/
|
|
4555
|
+
minute?: number;
|
|
4556
|
+
/**
|
|
4557
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4558
|
+
*/
|
|
4559
|
+
month?: number;
|
|
4560
|
+
/**
|
|
4561
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4562
|
+
*/
|
|
4563
|
+
second?: number;
|
|
4564
|
+
}
|
|
4565
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
4566
|
+
}
|
|
4567
|
+
}
|
|
4568
|
+
}
|
|
4569
|
+
}
|
|
4570
|
+
namespace ItemAction {
|
|
4571
|
+
interface Add {
|
|
4572
|
+
/**
|
|
4573
|
+
* The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
4574
|
+
*/
|
|
4575
|
+
discounts?: Array<Add.Discount>;
|
|
4576
|
+
/**
|
|
4577
|
+
* 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`.
|
|
4578
|
+
*/
|
|
4579
|
+
metadata?: MetadataParam;
|
|
4580
|
+
/**
|
|
4581
|
+
* The ID of the price object.
|
|
4582
|
+
*/
|
|
4583
|
+
price: string;
|
|
4584
|
+
/**
|
|
4585
|
+
* Quantity for this item.
|
|
4586
|
+
*/
|
|
4587
|
+
quantity?: number;
|
|
4588
|
+
/**
|
|
4589
|
+
* 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`.
|
|
4590
|
+
*/
|
|
4591
|
+
tax_rates?: Array<string>;
|
|
4592
|
+
/**
|
|
4593
|
+
* Options that configure the trial on the subscription item.
|
|
4594
|
+
*/
|
|
4595
|
+
trial?: Add.Trial;
|
|
4596
|
+
/**
|
|
4597
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
4598
|
+
*/
|
|
4599
|
+
trial_offer?: string;
|
|
4600
|
+
}
|
|
4601
|
+
interface Remove {
|
|
4602
|
+
/**
|
|
4603
|
+
* ID of a price to remove.
|
|
4604
|
+
*/
|
|
4605
|
+
price: string;
|
|
4606
|
+
}
|
|
4607
|
+
interface Set {
|
|
4608
|
+
/**
|
|
4609
|
+
* 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`.
|
|
4610
|
+
*/
|
|
4611
|
+
discounts?: Array<Set.Discount>;
|
|
4612
|
+
/**
|
|
4613
|
+
* 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`.
|
|
4614
|
+
*/
|
|
4615
|
+
metadata?: MetadataParam;
|
|
4616
|
+
/**
|
|
4617
|
+
* The ID of the price object.
|
|
4618
|
+
*/
|
|
4619
|
+
price: string;
|
|
4620
|
+
/**
|
|
4621
|
+
* 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`.
|
|
4622
|
+
*/
|
|
4623
|
+
quantity?: number;
|
|
4624
|
+
/**
|
|
4625
|
+
* 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`.
|
|
4626
|
+
*/
|
|
4627
|
+
tax_rates?: Array<string>;
|
|
4628
|
+
/**
|
|
4629
|
+
* 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`.
|
|
4630
|
+
*/
|
|
4631
|
+
trial?: Set.Trial;
|
|
4632
|
+
/**
|
|
4633
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
4634
|
+
*/
|
|
4635
|
+
trial_offer?: string;
|
|
4636
|
+
}
|
|
4637
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
4638
|
+
namespace Add {
|
|
4639
|
+
interface Discount {
|
|
4640
|
+
/**
|
|
4641
|
+
* ID of the coupon to create a new discount for.
|
|
4642
|
+
*/
|
|
4643
|
+
coupon?: string;
|
|
4644
|
+
/**
|
|
4645
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4646
|
+
*/
|
|
4647
|
+
discount?: string;
|
|
4648
|
+
/**
|
|
4649
|
+
* Details to determine how long the discount should be applied for.
|
|
4650
|
+
*/
|
|
4651
|
+
discount_end?: Discount.DiscountEnd;
|
|
4652
|
+
/**
|
|
4653
|
+
* ID of the promotion code to create a new discount for.
|
|
4654
|
+
*/
|
|
4655
|
+
promotion_code?: string;
|
|
4656
|
+
/**
|
|
4657
|
+
* Settings for discount application including service period anchoring.
|
|
4658
|
+
*/
|
|
4659
|
+
settings?: Discount.Settings;
|
|
4660
|
+
}
|
|
4661
|
+
interface Trial {
|
|
4662
|
+
/**
|
|
4663
|
+
* 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.
|
|
4664
|
+
*/
|
|
4665
|
+
converts_to?: Array<string>;
|
|
4666
|
+
/**
|
|
4667
|
+
* Determines the type of trial for this item.
|
|
4668
|
+
*/
|
|
4669
|
+
type: Trial.Type;
|
|
4670
|
+
}
|
|
4671
|
+
namespace Discount {
|
|
4672
|
+
interface DiscountEnd {
|
|
4673
|
+
/**
|
|
4674
|
+
* Time span for the redeemed discount.
|
|
4675
|
+
*/
|
|
4676
|
+
duration?: DiscountEnd.Duration;
|
|
4677
|
+
/**
|
|
4678
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4679
|
+
*/
|
|
4680
|
+
timestamp?: number;
|
|
4681
|
+
/**
|
|
4682
|
+
* The type of calculation made to determine when the discount ends.
|
|
4683
|
+
*/
|
|
4684
|
+
type: DiscountEnd.Type;
|
|
4685
|
+
}
|
|
4686
|
+
interface Settings {
|
|
4687
|
+
/**
|
|
4688
|
+
* Configures service period cycle anchoring.
|
|
4689
|
+
*/
|
|
4690
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4691
|
+
/**
|
|
4692
|
+
* 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.
|
|
4693
|
+
*/
|
|
4694
|
+
start_date?: Settings.StartDate;
|
|
4695
|
+
}
|
|
4696
|
+
namespace DiscountEnd {
|
|
4697
|
+
interface Duration {
|
|
4698
|
+
/**
|
|
4699
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4700
|
+
*/
|
|
4701
|
+
interval: Duration.Interval;
|
|
4702
|
+
/**
|
|
4703
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4704
|
+
*/
|
|
4705
|
+
interval_count: number;
|
|
4706
|
+
}
|
|
4707
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4708
|
+
namespace Duration {
|
|
4709
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4710
|
+
}
|
|
4711
|
+
}
|
|
4712
|
+
namespace Settings {
|
|
4713
|
+
interface ServicePeriodAnchorConfig {
|
|
4714
|
+
/**
|
|
4715
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4716
|
+
*/
|
|
4717
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4718
|
+
/**
|
|
4719
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4720
|
+
*/
|
|
4721
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4722
|
+
}
|
|
4723
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
|
|
4724
|
+
namespace ServicePeriodAnchorConfig {
|
|
4725
|
+
interface Custom {
|
|
4726
|
+
/**
|
|
4727
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4728
|
+
*/
|
|
4729
|
+
day_of_month: number;
|
|
4730
|
+
/**
|
|
4731
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4732
|
+
*/
|
|
4733
|
+
hour?: number;
|
|
4734
|
+
/**
|
|
4735
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4736
|
+
*/
|
|
4737
|
+
minute?: number;
|
|
4738
|
+
/**
|
|
4739
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4740
|
+
*/
|
|
4741
|
+
month?: number;
|
|
4742
|
+
/**
|
|
4743
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4744
|
+
*/
|
|
4745
|
+
second?: number;
|
|
4746
|
+
}
|
|
4747
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
4748
|
+
}
|
|
4749
|
+
}
|
|
4750
|
+
}
|
|
4751
|
+
namespace Trial {
|
|
4752
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
4753
|
+
}
|
|
4754
|
+
}
|
|
4755
|
+
namespace Set {
|
|
4756
|
+
interface Discount {
|
|
4757
|
+
/**
|
|
4758
|
+
* ID of the coupon to create a new discount for.
|
|
4759
|
+
*/
|
|
4760
|
+
coupon?: string;
|
|
4761
|
+
/**
|
|
4762
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4763
|
+
*/
|
|
4764
|
+
discount?: string;
|
|
4765
|
+
/**
|
|
4766
|
+
* Details to determine how long the discount should be applied for.
|
|
4767
|
+
*/
|
|
4768
|
+
discount_end?: Discount.DiscountEnd;
|
|
4769
|
+
/**
|
|
4770
|
+
* ID of the promotion code to create a new discount for.
|
|
4771
|
+
*/
|
|
4772
|
+
promotion_code?: string;
|
|
4773
|
+
/**
|
|
4774
|
+
* Settings for discount application including service period anchoring.
|
|
4775
|
+
*/
|
|
4776
|
+
settings?: Discount.Settings;
|
|
4777
|
+
}
|
|
4778
|
+
interface Trial {
|
|
4779
|
+
/**
|
|
4780
|
+
* 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.
|
|
4781
|
+
*/
|
|
4782
|
+
converts_to?: Array<string>;
|
|
4783
|
+
/**
|
|
4784
|
+
* Determines the type of trial for this item.
|
|
4785
|
+
*/
|
|
4786
|
+
type: Trial.Type;
|
|
4787
|
+
}
|
|
4788
|
+
namespace Discount {
|
|
4789
|
+
interface DiscountEnd {
|
|
4790
|
+
/**
|
|
4791
|
+
* Time span for the redeemed discount.
|
|
4792
|
+
*/
|
|
4793
|
+
duration?: DiscountEnd.Duration;
|
|
4794
|
+
/**
|
|
4795
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4796
|
+
*/
|
|
4797
|
+
timestamp?: number;
|
|
4798
|
+
/**
|
|
4799
|
+
* The type of calculation made to determine when the discount ends.
|
|
4800
|
+
*/
|
|
4801
|
+
type: DiscountEnd.Type;
|
|
4802
|
+
}
|
|
4803
|
+
interface Settings {
|
|
4804
|
+
/**
|
|
4805
|
+
* Configures service period cycle anchoring.
|
|
4806
|
+
*/
|
|
4807
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4808
|
+
/**
|
|
4809
|
+
* 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.
|
|
4810
|
+
*/
|
|
4811
|
+
start_date?: Settings.StartDate;
|
|
4812
|
+
}
|
|
4813
|
+
namespace DiscountEnd {
|
|
4814
|
+
interface Duration {
|
|
4815
|
+
/**
|
|
4816
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4817
|
+
*/
|
|
4818
|
+
interval: Duration.Interval;
|
|
4819
|
+
/**
|
|
4820
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4821
|
+
*/
|
|
4822
|
+
interval_count: number;
|
|
4823
|
+
}
|
|
4824
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4825
|
+
namespace Duration {
|
|
4826
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4827
|
+
}
|
|
4828
|
+
}
|
|
4829
|
+
namespace Settings {
|
|
4830
|
+
interface ServicePeriodAnchorConfig {
|
|
4831
|
+
/**
|
|
4832
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4833
|
+
*/
|
|
4834
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4835
|
+
/**
|
|
4836
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4837
|
+
*/
|
|
4838
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4839
|
+
}
|
|
4840
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
|
|
4841
|
+
namespace ServicePeriodAnchorConfig {
|
|
4842
|
+
interface Custom {
|
|
4843
|
+
/**
|
|
4844
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4845
|
+
*/
|
|
4846
|
+
day_of_month: number;
|
|
4847
|
+
/**
|
|
4848
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4849
|
+
*/
|
|
4850
|
+
hour?: number;
|
|
4851
|
+
/**
|
|
4852
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4853
|
+
*/
|
|
4854
|
+
minute?: number;
|
|
4855
|
+
/**
|
|
4856
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4857
|
+
*/
|
|
4858
|
+
month?: number;
|
|
4859
|
+
/**
|
|
4860
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4861
|
+
*/
|
|
4862
|
+
second?: number;
|
|
4863
|
+
}
|
|
4864
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
4865
|
+
}
|
|
4866
|
+
}
|
|
4867
|
+
}
|
|
4868
|
+
namespace Trial {
|
|
4869
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
4870
|
+
}
|
|
4871
|
+
}
|
|
4872
|
+
}
|
|
4873
|
+
namespace MetadataAction {
|
|
4874
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
4875
|
+
}
|
|
4876
|
+
namespace SetPauseCollection {
|
|
4877
|
+
interface Set {
|
|
4878
|
+
/**
|
|
4879
|
+
* The payment collection behavior for this subscription while paused.
|
|
4880
|
+
*/
|
|
4881
|
+
behavior: Set.Behavior;
|
|
4882
|
+
}
|
|
4883
|
+
type Type = 'remove' | 'set' | OtherString;
|
|
4884
|
+
namespace Set {
|
|
4885
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
4886
|
+
}
|
|
4887
|
+
}
|
|
4888
|
+
namespace TrialSettings {
|
|
4889
|
+
interface EndBehavior {
|
|
4890
|
+
/**
|
|
4891
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
4892
|
+
*/
|
|
4893
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
4894
|
+
}
|
|
4895
|
+
namespace EndBehavior {
|
|
4896
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
4897
|
+
}
|
|
4898
|
+
}
|
|
4899
|
+
}
|
|
4900
|
+
namespace BillingMode {
|
|
4901
|
+
interface Flexible {
|
|
4902
|
+
/**
|
|
4903
|
+
* Controls how invoices and invoice items display proration amounts and discount amounts.
|
|
4904
|
+
*/
|
|
4905
|
+
proration_discounts?: Flexible.ProrationDiscounts;
|
|
4906
|
+
}
|
|
4907
|
+
type Type = 'classic' | 'flexible' | OtherString;
|
|
4908
|
+
namespace Flexible {
|
|
4909
|
+
type ProrationDiscounts = 'included' | 'itemized' | OtherString;
|
|
4910
|
+
}
|
|
4911
|
+
}
|
|
4912
|
+
namespace BillingSchedule {
|
|
4913
|
+
interface AppliesTo {
|
|
4914
|
+
/**
|
|
4915
|
+
* The ID of the price object.
|
|
4916
|
+
*/
|
|
4917
|
+
price?: string;
|
|
4918
|
+
/**
|
|
4919
|
+
* Controls which subscription items the billing schedule applies to.
|
|
4920
|
+
*/
|
|
4921
|
+
type: 'price';
|
|
4922
|
+
}
|
|
4923
|
+
interface BillUntil {
|
|
4924
|
+
/**
|
|
4925
|
+
* Specifies the billing period.
|
|
4926
|
+
*/
|
|
4927
|
+
duration?: BillUntil.Duration;
|
|
4928
|
+
/**
|
|
4929
|
+
* The end date of the billing schedule.
|
|
4930
|
+
*/
|
|
4931
|
+
timestamp?: number;
|
|
4932
|
+
/**
|
|
4933
|
+
* Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
4934
|
+
*/
|
|
4935
|
+
type: BillUntil.Type;
|
|
4936
|
+
}
|
|
4937
|
+
namespace BillUntil {
|
|
4938
|
+
interface Duration {
|
|
4939
|
+
/**
|
|
4940
|
+
* Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
4941
|
+
*/
|
|
4942
|
+
interval: Duration.Interval;
|
|
4943
|
+
/**
|
|
4944
|
+
* The multiplier applied to the interval.
|
|
4945
|
+
*/
|
|
4946
|
+
interval_count?: number;
|
|
4947
|
+
}
|
|
4948
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4949
|
+
namespace Duration {
|
|
4950
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4951
|
+
}
|
|
4952
|
+
}
|
|
4953
|
+
}
|
|
4954
|
+
namespace DefaultSettings {
|
|
4955
|
+
type PhaseEffectiveAt = 'billing_period_start' | 'phase_start' | OtherString;
|
|
4956
|
+
}
|
|
4957
|
+
namespace PauseSchedule {
|
|
4958
|
+
interface Pause {
|
|
4959
|
+
/**
|
|
4960
|
+
* When to pause the subscription.
|
|
4961
|
+
*/
|
|
4962
|
+
pause_at?: Pause.PauseAt;
|
|
4963
|
+
/**
|
|
4964
|
+
* Settings controlling billing behavior during the pause.
|
|
4965
|
+
*/
|
|
4966
|
+
settings?: Pause.Settings;
|
|
4967
|
+
}
|
|
4968
|
+
interface Resume {
|
|
4969
|
+
/**
|
|
4970
|
+
* When to resume the subscription.
|
|
4971
|
+
*/
|
|
4972
|
+
resume_at?: Resume.ResumeAt;
|
|
4973
|
+
/**
|
|
4974
|
+
* Settings controlling how the subscription resumes.
|
|
4975
|
+
*/
|
|
4976
|
+
settings?: Resume.Settings;
|
|
4977
|
+
}
|
|
4978
|
+
namespace Pause {
|
|
4979
|
+
interface PauseAt {
|
|
4980
|
+
/**
|
|
4981
|
+
* The Unix timestamp at which to pause the subscription. Required when `type` is `timestamp`.
|
|
4982
|
+
*/
|
|
4983
|
+
timestamp?: number;
|
|
4984
|
+
/**
|
|
4985
|
+
* When to pause the subscription. Use `now` to pause immediately or `timestamp` to pause at a specific time.
|
|
4986
|
+
*/
|
|
4987
|
+
type: PauseAt.Type;
|
|
4988
|
+
}
|
|
4989
|
+
interface Settings {
|
|
4990
|
+
/**
|
|
4991
|
+
* Controls what to bill for when pausing the subscription.
|
|
4992
|
+
*/
|
|
4993
|
+
bill_for?: Settings.BillFor;
|
|
4994
|
+
/**
|
|
4995
|
+
* Determines whether to generate an invoice for outstanding amounts when pausing. When adding a pause schedule, defaults to `pending_invoice_item`. On updates, the existing value is preserved if not provided.
|
|
4996
|
+
*/
|
|
4997
|
+
invoicing_behavior?: Settings.InvoicingBehavior;
|
|
4998
|
+
/**
|
|
4999
|
+
* The pause type. Currently only `subscription` is supported.
|
|
5000
|
+
*/
|
|
5001
|
+
type?: Settings.Type;
|
|
5002
|
+
}
|
|
5003
|
+
namespace PauseAt {
|
|
5004
|
+
type Type = 'now' | 'timestamp' | OtherString;
|
|
5005
|
+
}
|
|
3429
5006
|
namespace Settings {
|
|
3430
5007
|
interface BillFor {
|
|
3431
5008
|
/**
|
|
@@ -3579,10 +5156,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3579
5156
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3580
5157
|
*/
|
|
3581
5158
|
discount?: string;
|
|
5159
|
+
/**
|
|
5160
|
+
* Details to determine how long the discount should be applied for.
|
|
5161
|
+
*/
|
|
5162
|
+
discount_end?: Discount.DiscountEnd;
|
|
3582
5163
|
/**
|
|
3583
5164
|
* ID of the promotion code to create a new discount for.
|
|
3584
5165
|
*/
|
|
3585
5166
|
promotion_code?: string;
|
|
5167
|
+
/**
|
|
5168
|
+
* Settings for discount application including service period anchoring.
|
|
5169
|
+
*/
|
|
5170
|
+
settings?: Discount.Settings;
|
|
3586
5171
|
}
|
|
3587
5172
|
interface Duration {
|
|
3588
5173
|
/**
|
|
@@ -3594,6 +5179,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3594
5179
|
*/
|
|
3595
5180
|
interval_count?: number;
|
|
3596
5181
|
}
|
|
5182
|
+
type EffectiveAt = 'billing_period_start' | 'phase_start' | OtherString;
|
|
3597
5183
|
interface InvoiceSettings {
|
|
3598
5184
|
/**
|
|
3599
5185
|
* 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.
|
|
@@ -3641,6 +5227,20 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3641
5227
|
* A list of [Tax Rate](https://docs.stripe.com/api/tax_rates) ids. These Tax Rates will override the [`default_tax_rates`](https://docs.stripe.com/api/subscriptions/create#create_subscription-default_tax_rates) on the Subscription. When updating, pass an empty string to remove previously-defined tax rates.
|
|
3642
5228
|
*/
|
|
3643
5229
|
tax_rates?: Emptyable<Array<string>>;
|
|
5230
|
+
/**
|
|
5231
|
+
* Options that configure the trial on the subscription item.
|
|
5232
|
+
*/
|
|
5233
|
+
trial?: Item.Trial;
|
|
5234
|
+
/**
|
|
5235
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
5236
|
+
*/
|
|
5237
|
+
trial_offer?: string;
|
|
5238
|
+
}
|
|
5239
|
+
interface PauseCollection {
|
|
5240
|
+
/**
|
|
5241
|
+
* The payment collection behavior for this subscription while paused.
|
|
5242
|
+
*/
|
|
5243
|
+
behavior: PauseCollection.Behavior;
|
|
3644
5244
|
}
|
|
3645
5245
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
3646
5246
|
interface TransferData {
|
|
@@ -3653,6 +5253,13 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3653
5253
|
*/
|
|
3654
5254
|
destination: string;
|
|
3655
5255
|
}
|
|
5256
|
+
type TrialContinuation = 'continue' | 'none' | OtherString;
|
|
5257
|
+
interface TrialSettings {
|
|
5258
|
+
/**
|
|
5259
|
+
* Defines how the subscription should behave when a trial ends.
|
|
5260
|
+
*/
|
|
5261
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
5262
|
+
}
|
|
3656
5263
|
namespace AddInvoiceItem {
|
|
3657
5264
|
interface Discount {
|
|
3658
5265
|
/**
|
|
@@ -3663,6 +5270,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3663
5270
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3664
5271
|
*/
|
|
3665
5272
|
discount?: string;
|
|
5273
|
+
/**
|
|
5274
|
+
* Details to determine how long the discount should be applied for.
|
|
5275
|
+
*/
|
|
5276
|
+
discount_end?: Discount.DiscountEnd;
|
|
3666
5277
|
/**
|
|
3667
5278
|
* ID of the promotion code to create a new discount for.
|
|
3668
5279
|
*/
|
|
@@ -3700,6 +5311,38 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3700
5311
|
*/
|
|
3701
5312
|
unit_amount_decimal?: Decimal;
|
|
3702
5313
|
}
|
|
5314
|
+
namespace Discount {
|
|
5315
|
+
interface DiscountEnd {
|
|
5316
|
+
/**
|
|
5317
|
+
* Time span for the redeemed discount.
|
|
5318
|
+
*/
|
|
5319
|
+
duration?: DiscountEnd.Duration;
|
|
5320
|
+
/**
|
|
5321
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5322
|
+
*/
|
|
5323
|
+
timestamp?: number;
|
|
5324
|
+
/**
|
|
5325
|
+
* The type of calculation made to determine when the discount ends.
|
|
5326
|
+
*/
|
|
5327
|
+
type: DiscountEnd.Type;
|
|
5328
|
+
}
|
|
5329
|
+
namespace DiscountEnd {
|
|
5330
|
+
interface Duration {
|
|
5331
|
+
/**
|
|
5332
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5333
|
+
*/
|
|
5334
|
+
interval: Duration.Interval;
|
|
5335
|
+
/**
|
|
5336
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5337
|
+
*/
|
|
5338
|
+
interval_count: number;
|
|
5339
|
+
}
|
|
5340
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
5341
|
+
namespace Duration {
|
|
5342
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5343
|
+
}
|
|
5344
|
+
}
|
|
5345
|
+
}
|
|
3703
5346
|
namespace Period {
|
|
3704
5347
|
interface End {
|
|
3705
5348
|
/**
|
|
@@ -3744,7 +5387,87 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3744
5387
|
type: Liability.Type;
|
|
3745
5388
|
}
|
|
3746
5389
|
namespace Liability {
|
|
3747
|
-
type Type = 'account' | 'self' | OtherString;
|
|
5390
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
5391
|
+
}
|
|
5392
|
+
}
|
|
5393
|
+
namespace Discount {
|
|
5394
|
+
interface DiscountEnd {
|
|
5395
|
+
/**
|
|
5396
|
+
* Time span for the redeemed discount.
|
|
5397
|
+
*/
|
|
5398
|
+
duration?: DiscountEnd.Duration;
|
|
5399
|
+
/**
|
|
5400
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5401
|
+
*/
|
|
5402
|
+
timestamp?: number;
|
|
5403
|
+
/**
|
|
5404
|
+
* The type of calculation made to determine when the discount ends.
|
|
5405
|
+
*/
|
|
5406
|
+
type: DiscountEnd.Type;
|
|
5407
|
+
}
|
|
5408
|
+
interface Settings {
|
|
5409
|
+
/**
|
|
5410
|
+
* Configures service period cycle anchoring.
|
|
5411
|
+
*/
|
|
5412
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
5413
|
+
/**
|
|
5414
|
+
* 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.
|
|
5415
|
+
*/
|
|
5416
|
+
start_date?: Settings.StartDate;
|
|
5417
|
+
}
|
|
5418
|
+
namespace DiscountEnd {
|
|
5419
|
+
interface Duration {
|
|
5420
|
+
/**
|
|
5421
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5422
|
+
*/
|
|
5423
|
+
interval: Duration.Interval;
|
|
5424
|
+
/**
|
|
5425
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5426
|
+
*/
|
|
5427
|
+
interval_count: number;
|
|
5428
|
+
}
|
|
5429
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
5430
|
+
namespace Duration {
|
|
5431
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5432
|
+
}
|
|
5433
|
+
}
|
|
5434
|
+
namespace Settings {
|
|
5435
|
+
interface ServicePeriodAnchorConfig {
|
|
5436
|
+
/**
|
|
5437
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
5438
|
+
*/
|
|
5439
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
5440
|
+
/**
|
|
5441
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
5442
|
+
*/
|
|
5443
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
5444
|
+
}
|
|
5445
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'phase_start' | OtherString;
|
|
5446
|
+
namespace ServicePeriodAnchorConfig {
|
|
5447
|
+
interface Custom {
|
|
5448
|
+
/**
|
|
5449
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
5450
|
+
*/
|
|
5451
|
+
day_of_month: number;
|
|
5452
|
+
/**
|
|
5453
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
5454
|
+
*/
|
|
5455
|
+
hour?: number;
|
|
5456
|
+
/**
|
|
5457
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
5458
|
+
*/
|
|
5459
|
+
minute?: number;
|
|
5460
|
+
/**
|
|
5461
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
5462
|
+
*/
|
|
5463
|
+
month?: number;
|
|
5464
|
+
/**
|
|
5465
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
5466
|
+
*/
|
|
5467
|
+
second?: number;
|
|
5468
|
+
}
|
|
5469
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
5470
|
+
}
|
|
3748
5471
|
}
|
|
3749
5472
|
}
|
|
3750
5473
|
namespace Duration {
|
|
@@ -3762,7 +5485,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3762
5485
|
type: Issuer.Type;
|
|
3763
5486
|
}
|
|
3764
5487
|
namespace Issuer {
|
|
3765
|
-
type Type = 'account' | 'self' | OtherString;
|
|
5488
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
3766
5489
|
}
|
|
3767
5490
|
}
|
|
3768
5491
|
namespace Item {
|
|
@@ -3781,10 +5504,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3781
5504
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3782
5505
|
*/
|
|
3783
5506
|
discount?: string;
|
|
5507
|
+
/**
|
|
5508
|
+
* Details to determine how long the discount should be applied for.
|
|
5509
|
+
*/
|
|
5510
|
+
discount_end?: Discount.DiscountEnd;
|
|
3784
5511
|
/**
|
|
3785
5512
|
* ID of the promotion code to create a new discount for.
|
|
3786
5513
|
*/
|
|
3787
5514
|
promotion_code?: string;
|
|
5515
|
+
/**
|
|
5516
|
+
* Settings for discount application including service period anchoring.
|
|
5517
|
+
*/
|
|
5518
|
+
settings?: Discount.Settings;
|
|
3788
5519
|
}
|
|
3789
5520
|
interface PriceData {
|
|
3790
5521
|
/**
|
|
@@ -3812,6 +5543,96 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3812
5543
|
*/
|
|
3813
5544
|
unit_amount_decimal?: Decimal;
|
|
3814
5545
|
}
|
|
5546
|
+
interface Trial {
|
|
5547
|
+
/**
|
|
5548
|
+
* 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.
|
|
5549
|
+
*/
|
|
5550
|
+
converts_to?: Array<string>;
|
|
5551
|
+
/**
|
|
5552
|
+
* Determines the type of trial for this item.
|
|
5553
|
+
*/
|
|
5554
|
+
type: Trial.Type;
|
|
5555
|
+
}
|
|
5556
|
+
namespace Discount {
|
|
5557
|
+
interface DiscountEnd {
|
|
5558
|
+
/**
|
|
5559
|
+
* Time span for the redeemed discount.
|
|
5560
|
+
*/
|
|
5561
|
+
duration?: DiscountEnd.Duration;
|
|
5562
|
+
/**
|
|
5563
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5564
|
+
*/
|
|
5565
|
+
timestamp?: number;
|
|
5566
|
+
/**
|
|
5567
|
+
* The type of calculation made to determine when the discount ends.
|
|
5568
|
+
*/
|
|
5569
|
+
type: DiscountEnd.Type;
|
|
5570
|
+
}
|
|
5571
|
+
interface Settings {
|
|
5572
|
+
/**
|
|
5573
|
+
* Configures service period cycle anchoring.
|
|
5574
|
+
*/
|
|
5575
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
5576
|
+
/**
|
|
5577
|
+
* 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.
|
|
5578
|
+
*/
|
|
5579
|
+
start_date?: Settings.StartDate;
|
|
5580
|
+
}
|
|
5581
|
+
namespace DiscountEnd {
|
|
5582
|
+
interface Duration {
|
|
5583
|
+
/**
|
|
5584
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5585
|
+
*/
|
|
5586
|
+
interval: Duration.Interval;
|
|
5587
|
+
/**
|
|
5588
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5589
|
+
*/
|
|
5590
|
+
interval_count: number;
|
|
5591
|
+
}
|
|
5592
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
5593
|
+
namespace Duration {
|
|
5594
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5595
|
+
}
|
|
5596
|
+
}
|
|
5597
|
+
namespace Settings {
|
|
5598
|
+
interface ServicePeriodAnchorConfig {
|
|
5599
|
+
/**
|
|
5600
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
5601
|
+
*/
|
|
5602
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
5603
|
+
/**
|
|
5604
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
5605
|
+
*/
|
|
5606
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
5607
|
+
}
|
|
5608
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'phase_start' | OtherString;
|
|
5609
|
+
namespace ServicePeriodAnchorConfig {
|
|
5610
|
+
interface Custom {
|
|
5611
|
+
/**
|
|
5612
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
5613
|
+
*/
|
|
5614
|
+
day_of_month: number;
|
|
5615
|
+
/**
|
|
5616
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
5617
|
+
*/
|
|
5618
|
+
hour?: number;
|
|
5619
|
+
/**
|
|
5620
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
5621
|
+
*/
|
|
5622
|
+
minute?: number;
|
|
5623
|
+
/**
|
|
5624
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
5625
|
+
*/
|
|
5626
|
+
month?: number;
|
|
5627
|
+
/**
|
|
5628
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
5629
|
+
*/
|
|
5630
|
+
second?: number;
|
|
5631
|
+
}
|
|
5632
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
5633
|
+
}
|
|
5634
|
+
}
|
|
5635
|
+
}
|
|
3815
5636
|
namespace PriceData {
|
|
3816
5637
|
interface Recurring {
|
|
3817
5638
|
/**
|
|
@@ -3828,6 +5649,65 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3828
5649
|
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3829
5650
|
}
|
|
3830
5651
|
}
|
|
5652
|
+
namespace Trial {
|
|
5653
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
5654
|
+
}
|
|
5655
|
+
}
|
|
5656
|
+
namespace PauseCollection {
|
|
5657
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
5658
|
+
}
|
|
5659
|
+
namespace TrialSettings {
|
|
5660
|
+
interface EndBehavior {
|
|
5661
|
+
/**
|
|
5662
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
5663
|
+
*/
|
|
5664
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
5665
|
+
}
|
|
5666
|
+
namespace EndBehavior {
|
|
5667
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
5668
|
+
}
|
|
5669
|
+
}
|
|
5670
|
+
}
|
|
5671
|
+
namespace Prebilling {
|
|
5672
|
+
interface BillUntil {
|
|
5673
|
+
/**
|
|
5674
|
+
* End the prebilled period when a specified amendment ends.
|
|
5675
|
+
*/
|
|
5676
|
+
amendment_end?: BillUntil.AmendmentEnd;
|
|
5677
|
+
/**
|
|
5678
|
+
* Time span for prebilling, starting from `bill_from`.
|
|
5679
|
+
*/
|
|
5680
|
+
duration?: BillUntil.Duration;
|
|
5681
|
+
/**
|
|
5682
|
+
* End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
5683
|
+
*/
|
|
5684
|
+
timestamp?: number;
|
|
5685
|
+
/**
|
|
5686
|
+
* Select one of several ways to pass the `bill_until` value.
|
|
5687
|
+
*/
|
|
5688
|
+
type: BillUntil.Type;
|
|
5689
|
+
}
|
|
5690
|
+
namespace BillUntil {
|
|
5691
|
+
interface AmendmentEnd {
|
|
5692
|
+
/**
|
|
5693
|
+
* 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.
|
|
5694
|
+
*/
|
|
5695
|
+
index: number;
|
|
5696
|
+
}
|
|
5697
|
+
interface Duration {
|
|
5698
|
+
/**
|
|
5699
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5700
|
+
*/
|
|
5701
|
+
interval: Duration.Interval;
|
|
5702
|
+
/**
|
|
5703
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5704
|
+
*/
|
|
5705
|
+
interval_count: number;
|
|
5706
|
+
}
|
|
5707
|
+
type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp' | OtherString;
|
|
5708
|
+
namespace Duration {
|
|
5709
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5710
|
+
}
|
|
3831
5711
|
}
|
|
3832
5712
|
}
|
|
3833
5713
|
}
|
|
@@ -3931,6 +5811,12 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3931
5811
|
*/
|
|
3932
5812
|
type?: Pause.Type;
|
|
3933
5813
|
}
|
|
5814
|
+
interface Prebilling {
|
|
5815
|
+
/**
|
|
5816
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
5817
|
+
*/
|
|
5818
|
+
iterations: number;
|
|
5819
|
+
}
|
|
3934
5820
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
3935
5821
|
namespace BillingCycleAnchor {
|
|
3936
5822
|
type Type = 'now' | 'timestamp' | 'unchanged' | OtherString;
|
|
@@ -3997,6 +5883,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3997
5883
|
usage_gte: number;
|
|
3998
5884
|
}
|
|
3999
5885
|
interface CurrentTrial {
|
|
5886
|
+
/**
|
|
5887
|
+
* 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`.
|
|
5888
|
+
*/
|
|
5889
|
+
trial_end?: number;
|
|
4000
5890
|
/**
|
|
4001
5891
|
* The ID of the trial offer to apply to the subscription item.
|
|
4002
5892
|
*/
|
|
@@ -4011,10 +5901,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4011
5901
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4012
5902
|
*/
|
|
4013
5903
|
discount?: string;
|
|
5904
|
+
/**
|
|
5905
|
+
* Details to determine how long the discount should be applied for.
|
|
5906
|
+
*/
|
|
5907
|
+
discount_end?: Discount.DiscountEnd;
|
|
4014
5908
|
/**
|
|
4015
5909
|
* ID of the promotion code to create a new discount for.
|
|
4016
5910
|
*/
|
|
4017
5911
|
promotion_code?: string;
|
|
5912
|
+
/**
|
|
5913
|
+
* Settings for discount application including service period anchoring.
|
|
5914
|
+
*/
|
|
5915
|
+
settings?: Discount.Settings;
|
|
4018
5916
|
}
|
|
4019
5917
|
interface PriceData {
|
|
4020
5918
|
/**
|
|
@@ -4042,6 +5940,86 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4042
5940
|
*/
|
|
4043
5941
|
unit_amount_decimal?: Decimal;
|
|
4044
5942
|
}
|
|
5943
|
+
namespace Discount {
|
|
5944
|
+
interface DiscountEnd {
|
|
5945
|
+
/**
|
|
5946
|
+
* Time span for the redeemed discount.
|
|
5947
|
+
*/
|
|
5948
|
+
duration?: DiscountEnd.Duration;
|
|
5949
|
+
/**
|
|
5950
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5951
|
+
*/
|
|
5952
|
+
timestamp?: number;
|
|
5953
|
+
/**
|
|
5954
|
+
* The type of calculation made to determine when the discount ends.
|
|
5955
|
+
*/
|
|
5956
|
+
type: DiscountEnd.Type;
|
|
5957
|
+
}
|
|
5958
|
+
interface Settings {
|
|
5959
|
+
/**
|
|
5960
|
+
* Configures service period cycle anchoring.
|
|
5961
|
+
*/
|
|
5962
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
5963
|
+
/**
|
|
5964
|
+
* 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.
|
|
5965
|
+
*/
|
|
5966
|
+
start_date?: Settings.StartDate;
|
|
5967
|
+
}
|
|
5968
|
+
namespace DiscountEnd {
|
|
5969
|
+
interface Duration {
|
|
5970
|
+
/**
|
|
5971
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5972
|
+
*/
|
|
5973
|
+
interval: Duration.Interval;
|
|
5974
|
+
/**
|
|
5975
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5976
|
+
*/
|
|
5977
|
+
interval_count: number;
|
|
5978
|
+
}
|
|
5979
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
5980
|
+
namespace Duration {
|
|
5981
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5982
|
+
}
|
|
5983
|
+
}
|
|
5984
|
+
namespace Settings {
|
|
5985
|
+
interface ServicePeriodAnchorConfig {
|
|
5986
|
+
/**
|
|
5987
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
5988
|
+
*/
|
|
5989
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
5990
|
+
/**
|
|
5991
|
+
* The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
5992
|
+
*/
|
|
5993
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
5994
|
+
}
|
|
5995
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'now' | OtherString;
|
|
5996
|
+
namespace ServicePeriodAnchorConfig {
|
|
5997
|
+
interface Custom {
|
|
5998
|
+
/**
|
|
5999
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
6000
|
+
*/
|
|
6001
|
+
day_of_month: number;
|
|
6002
|
+
/**
|
|
6003
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
6004
|
+
*/
|
|
6005
|
+
hour?: number;
|
|
6006
|
+
/**
|
|
6007
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
6008
|
+
*/
|
|
6009
|
+
minute?: number;
|
|
6010
|
+
/**
|
|
6011
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
6012
|
+
*/
|
|
6013
|
+
month?: number;
|
|
6014
|
+
/**
|
|
6015
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
6016
|
+
*/
|
|
6017
|
+
second?: number;
|
|
6018
|
+
}
|
|
6019
|
+
type Type = 'custom' | 'subscription_service_cycle_anchor' | OtherString;
|
|
6020
|
+
}
|
|
6021
|
+
}
|
|
6022
|
+
}
|
|
4045
6023
|
namespace PriceData {
|
|
4046
6024
|
interface Recurring {
|
|
4047
6025
|
/**
|
|
@@ -4095,6 +6073,16 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4095
6073
|
}
|
|
4096
6074
|
}
|
|
4097
6075
|
}
|
|
6076
|
+
export interface InvoiceDetachPaymentParams {
|
|
6077
|
+
/**
|
|
6078
|
+
* Specifies which fields in the response should be expanded.
|
|
6079
|
+
*/
|
|
6080
|
+
expand?: Array<string>;
|
|
6081
|
+
/**
|
|
6082
|
+
* The ID of the PaymentIntent to detach from the invoice.
|
|
6083
|
+
*/
|
|
6084
|
+
payment_intent?: string;
|
|
6085
|
+
}
|
|
4098
6086
|
export interface InvoiceFinalizeInvoiceParams {
|
|
4099
6087
|
/**
|
|
4100
6088
|
* 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.
|
|
@@ -4204,6 +6192,32 @@ export interface InvoiceSendInvoiceParams {
|
|
|
4204
6192
|
*/
|
|
4205
6193
|
expand?: Array<string>;
|
|
4206
6194
|
}
|
|
6195
|
+
export interface InvoiceSerializeBatchAddLinesParams {
|
|
6196
|
+
}
|
|
6197
|
+
export interface InvoiceSerializeBatchCreateParams {
|
|
6198
|
+
}
|
|
6199
|
+
export interface InvoiceSerializeBatchCreatePreviewParams {
|
|
6200
|
+
}
|
|
6201
|
+
export interface InvoiceSerializeBatchDeleteParams {
|
|
6202
|
+
}
|
|
6203
|
+
export interface InvoiceSerializeBatchFinalizeInvoiceParams {
|
|
6204
|
+
}
|
|
6205
|
+
export interface InvoiceSerializeBatchMarkUncollectibleParams {
|
|
6206
|
+
}
|
|
6207
|
+
export interface InvoiceSerializeBatchPayParams {
|
|
6208
|
+
}
|
|
6209
|
+
export interface InvoiceSerializeBatchRemoveLinesParams {
|
|
6210
|
+
}
|
|
6211
|
+
export interface InvoiceSerializeBatchSendInvoiceParams {
|
|
6212
|
+
}
|
|
6213
|
+
export interface InvoiceSerializeBatchUpdateParams {
|
|
6214
|
+
}
|
|
6215
|
+
export interface InvoiceSerializeBatchUpdateLineItemParams {
|
|
6216
|
+
}
|
|
6217
|
+
export interface InvoiceSerializeBatchUpdateLinesParams {
|
|
6218
|
+
}
|
|
6219
|
+
export interface InvoiceSerializeBatchVoidInvoiceParams {
|
|
6220
|
+
}
|
|
4207
6221
|
export interface InvoiceUpdateLinesParams {
|
|
4208
6222
|
/**
|
|
4209
6223
|
* The line items to update.
|
|
@@ -4242,6 +6256,10 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
4242
6256
|
* ID of an existing line item on the invoice.
|
|
4243
6257
|
*/
|
|
4244
6258
|
id: string;
|
|
6259
|
+
/**
|
|
6260
|
+
* 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.
|
|
6261
|
+
*/
|
|
6262
|
+
margins?: Emptyable<Array<string>>;
|
|
4245
6263
|
/**
|
|
4246
6264
|
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item#invoice_line_item_object-type) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](api/invoices/line_item#invoice_line_item_object-type) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
4247
6265
|
*/
|
|
@@ -4285,6 +6303,10 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
4285
6303
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4286
6304
|
*/
|
|
4287
6305
|
discount?: string;
|
|
6306
|
+
/**
|
|
6307
|
+
* Details to determine how long the discount should be applied for.
|
|
6308
|
+
*/
|
|
6309
|
+
discount_end?: Discount.DiscountEnd;
|
|
4288
6310
|
/**
|
|
4289
6311
|
* ID of the promotion code to create a new discount for.
|
|
4290
6312
|
*/
|
|
@@ -4352,6 +6374,38 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
4352
6374
|
*/
|
|
4353
6375
|
taxable_amount: number;
|
|
4354
6376
|
}
|
|
6377
|
+
namespace Discount {
|
|
6378
|
+
interface DiscountEnd {
|
|
6379
|
+
/**
|
|
6380
|
+
* Time span for the redeemed discount.
|
|
6381
|
+
*/
|
|
6382
|
+
duration?: DiscountEnd.Duration;
|
|
6383
|
+
/**
|
|
6384
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
6385
|
+
*/
|
|
6386
|
+
timestamp?: number;
|
|
6387
|
+
/**
|
|
6388
|
+
* The type of calculation made to determine when the discount ends.
|
|
6389
|
+
*/
|
|
6390
|
+
type: DiscountEnd.Type;
|
|
6391
|
+
}
|
|
6392
|
+
namespace DiscountEnd {
|
|
6393
|
+
interface Duration {
|
|
6394
|
+
/**
|
|
6395
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
6396
|
+
*/
|
|
6397
|
+
interval: Duration.Interval;
|
|
6398
|
+
/**
|
|
6399
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
6400
|
+
*/
|
|
6401
|
+
interval_count: number;
|
|
6402
|
+
}
|
|
6403
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
6404
|
+
namespace Duration {
|
|
6405
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
6406
|
+
}
|
|
6407
|
+
}
|
|
6408
|
+
}
|
|
4355
6409
|
namespace PriceData {
|
|
4356
6410
|
interface ProductData {
|
|
4357
6411
|
/**
|
|
@@ -4465,6 +6519,10 @@ export interface InvoiceUpdateLineItemParams {
|
|
|
4465
6519
|
* Specifies which fields in the response should be expanded.
|
|
4466
6520
|
*/
|
|
4467
6521
|
expand?: Array<string>;
|
|
6522
|
+
/**
|
|
6523
|
+
* 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.
|
|
6524
|
+
*/
|
|
6525
|
+
margins?: Emptyable<Array<string>>;
|
|
4468
6526
|
/**
|
|
4469
6527
|
* Set of [key-value pairs](https://docs.stripe.com/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`. For [type=subscription](https://docs.stripe.com/api/invoices/line_item) line items, the incoming metadata specified on the request is directly used to set this value, in contrast to [type=invoiceitem](https://docs.stripe.com/api/invoices/line_item) line items, where any existing metadata on the invoice line is merged with the incoming data.
|
|
4470
6528
|
*/
|
|
@@ -4508,6 +6566,10 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
4508
6566
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4509
6567
|
*/
|
|
4510
6568
|
discount?: string;
|
|
6569
|
+
/**
|
|
6570
|
+
* Details to determine how long the discount should be applied for.
|
|
6571
|
+
*/
|
|
6572
|
+
discount_end?: Discount.DiscountEnd;
|
|
4511
6573
|
/**
|
|
4512
6574
|
* ID of the promotion code to create a new discount for.
|
|
4513
6575
|
*/
|
|
@@ -4575,6 +6637,38 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
4575
6637
|
*/
|
|
4576
6638
|
taxable_amount: number;
|
|
4577
6639
|
}
|
|
6640
|
+
namespace Discount {
|
|
6641
|
+
interface DiscountEnd {
|
|
6642
|
+
/**
|
|
6643
|
+
* Time span for the redeemed discount.
|
|
6644
|
+
*/
|
|
6645
|
+
duration?: DiscountEnd.Duration;
|
|
6646
|
+
/**
|
|
6647
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
6648
|
+
*/
|
|
6649
|
+
timestamp?: number;
|
|
6650
|
+
/**
|
|
6651
|
+
* The type of calculation made to determine when the discount ends.
|
|
6652
|
+
*/
|
|
6653
|
+
type: DiscountEnd.Type;
|
|
6654
|
+
}
|
|
6655
|
+
namespace DiscountEnd {
|
|
6656
|
+
interface Duration {
|
|
6657
|
+
/**
|
|
6658
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
6659
|
+
*/
|
|
6660
|
+
interval: Duration.Interval;
|
|
6661
|
+
/**
|
|
6662
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
6663
|
+
*/
|
|
6664
|
+
interval_count: number;
|
|
6665
|
+
}
|
|
6666
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
6667
|
+
namespace Duration {
|
|
6668
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
6669
|
+
}
|
|
6670
|
+
}
|
|
6671
|
+
}
|
|
4578
6672
|
namespace PriceData {
|
|
4579
6673
|
interface ProductData {
|
|
4580
6674
|
/**
|