stripe 23.1.0 → 23.2.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2214 -4845
- 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 +224 -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 +495 -0
- 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/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 +3389 -83
- package/cjs/resources/Charges.js.map +1 -1
- package/cjs/resources/Checkout/Sessions.d.ts +2211 -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 +162 -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 +79 -0
- package/cjs/resources/CustomerTaxExemptions.js +4 -0
- package/cjs/resources/CustomerTaxExemptions.js.map +1 -0
- package/cjs/resources/Customers.d.ts +304 -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 +28 -0
- 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 +2155 -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 +139 -0
- 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 +769 -2
- package/cjs/resources/PaymentAttemptRecords.js +48 -0
- package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
- package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +56 -0
- package/cjs/resources/PaymentIntents.d.ts +17157 -2681
- 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 +350 -0
- package/cjs/resources/PaymentMethods.d.ts +360 -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 +822 -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 +3546 -252
- 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 +192 -4
- 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 +83 -0
- package/cjs/resources/Refunds.js +27 -0
- package/cjs/resources/Refunds.js.map +1 -1
- package/cjs/resources/Reserve/Holds.d.ts +53 -1
- package/cjs/resources/Reserve/Holds.js +19 -0
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +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 +35 -1
- package/cjs/resources/SetupAttempts.js.map +1 -1
- package/cjs/resources/SetupIntents.d.ts +762 -15
- 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 +894 -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/Forms.d.ts +598 -0
- package/cjs/resources/Tax/Forms.js +32 -0
- package/cjs/resources/Tax/Forms.js.map +1 -0
- package/cjs/resources/Tax/Registrations.d.ts +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 +28 -17
- package/cjs/resources/Tax/index.js +2 -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 +141 -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 +38 -0
- package/cjs/resources/Treasury/OutboundPayments.d.ts +26 -0
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/cjs/resources/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 +1621 -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 +378 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js +39 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/cjs/resources/V2/Core/BatchJobs.d.ts +392 -0
- package/cjs/resources/V2/Core/BatchJobs.js +252 -0
- package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
- package/cjs/resources/V2/Core/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 +5986 -597
- 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/WorkflowRuns.d.ts +163 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/cjs/resources/V2/Extend/Workflows.d.ts +120 -0
- package/cjs/resources/V2/Extend/Workflows.js +30 -0
- package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +20 -0
- package/cjs/resources/V2/Extend/index.js +15 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -0
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +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 +10 -0
- 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 +476 -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 +54 -0
- 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 +214 -4
- 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 +310 -4
- 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 +110 -2
- package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +110 -2
- 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 +309 -21
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.cjs.node.d.ts +17833 -997
- 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 +224 -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 +495 -0
- 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/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 +3389 -83
- package/esm/resources/Charges.js.map +1 -1
- package/esm/resources/Checkout/Sessions.d.ts +2211 -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 +162 -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 +79 -0
- package/esm/resources/CustomerTaxExemptions.js +3 -0
- package/esm/resources/CustomerTaxExemptions.js.map +1 -0
- package/esm/resources/Customers.d.ts +304 -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 +28 -0
- 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 +2155 -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 +139 -0
- 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 +769 -2
- package/esm/resources/PaymentAttemptRecords.js +48 -0
- package/esm/resources/PaymentAttemptRecords.js.map +1 -1
- package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +56 -0
- package/esm/resources/PaymentIntents.d.ts +17157 -2681
- 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 +350 -0
- package/esm/resources/PaymentMethods.d.ts +360 -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 +822 -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 +3546 -252
- 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 +192 -4
- 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 +83 -0
- package/esm/resources/Refunds.js +27 -0
- package/esm/resources/Refunds.js.map +1 -1
- package/esm/resources/Reserve/Holds.d.ts +53 -1
- package/esm/resources/Reserve/Holds.js +17 -1
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +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 +35 -1
- package/esm/resources/SetupAttempts.js.map +1 -1
- package/esm/resources/SetupIntents.d.ts +762 -15
- 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 +894 -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/Forms.d.ts +598 -0
- package/esm/resources/Tax/Forms.js +28 -0
- package/esm/resources/Tax/Forms.js.map +1 -0
- package/esm/resources/Tax/Registrations.d.ts +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 +28 -17
- package/esm/resources/Tax/index.js +2 -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 +141 -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 +38 -0
- package/esm/resources/Treasury/OutboundPayments.d.ts +26 -0
- package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/esm/resources/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 +1621 -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 +378 -0
- package/esm/resources/V2/Core/ApprovalRequests.js +35 -0
- package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/esm/resources/V2/Core/BatchJobs.d.ts +392 -0
- package/esm/resources/V2/Core/BatchJobs.js +248 -0
- package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
- package/esm/resources/V2/Core/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 +5986 -597
- 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/WorkflowRuns.d.ts +163 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/esm/resources/V2/Extend/Workflows.d.ts +120 -0
- package/esm/resources/V2/Extend/Workflows.js +26 -0
- package/esm/resources/V2/Extend/Workflows.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +20 -0
- package/esm/resources/V2/Extend/index.js +11 -0
- package/esm/resources/V2/Extend/index.js.map +1 -0
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +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 +10 -0
- 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 +476 -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 +54 -0
- 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 +214 -4
- 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 +310 -4
- 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 +110 -2
- package/esm/resources/V2/MoneyManagement/Transactions.d.ts +110 -2
- 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 +279 -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 {
|
|
@@ -982,6 +1237,16 @@ export declare namespace Invoice {
|
|
|
982
1237
|
*/
|
|
983
1238
|
verification_method?: UsBankAccount.VerificationMethod;
|
|
984
1239
|
}
|
|
1240
|
+
interface WechatPay {
|
|
1241
|
+
/**
|
|
1242
|
+
* The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
|
|
1243
|
+
*/
|
|
1244
|
+
app_id?: string;
|
|
1245
|
+
/**
|
|
1246
|
+
* The client type that the end customer will pay from.
|
|
1247
|
+
*/
|
|
1248
|
+
client?: WechatPay.Client;
|
|
1249
|
+
}
|
|
985
1250
|
namespace AcssDebit {
|
|
986
1251
|
interface MandateOptions {
|
|
987
1252
|
/**
|
|
@@ -994,6 +1259,9 @@ export declare namespace Invoice {
|
|
|
994
1259
|
type TransactionType = 'business' | 'personal' | OtherString;
|
|
995
1260
|
}
|
|
996
1261
|
}
|
|
1262
|
+
namespace BacsDebit {
|
|
1263
|
+
type VerificationMethod = 'automatic' | 'payer_name_verification' | OtherString;
|
|
1264
|
+
}
|
|
997
1265
|
namespace Bancontact {
|
|
998
1266
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
|
|
999
1267
|
}
|
|
@@ -1115,14 +1383,21 @@ export declare namespace Invoice {
|
|
|
1115
1383
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
1116
1384
|
*/
|
|
1117
1385
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
1386
|
+
/**
|
|
1387
|
+
* The institution to use to filter for possible accounts to link.
|
|
1388
|
+
*/
|
|
1389
|
+
institution?: string;
|
|
1118
1390
|
}
|
|
1119
1391
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
|
|
1120
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
1392
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
|
|
1121
1393
|
namespace Filters {
|
|
1122
1394
|
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
1123
1395
|
}
|
|
1124
1396
|
}
|
|
1125
1397
|
}
|
|
1398
|
+
namespace WechatPay {
|
|
1399
|
+
type Client = 'android' | 'ios' | 'mobile_web' | 'web' | OtherString;
|
|
1400
|
+
}
|
|
1126
1401
|
}
|
|
1127
1402
|
}
|
|
1128
1403
|
namespace Rendering {
|
|
@@ -1185,7 +1460,7 @@ export declare namespace Invoice {
|
|
|
1185
1460
|
}
|
|
1186
1461
|
}
|
|
1187
1462
|
namespace TotalPretaxCreditAmount {
|
|
1188
|
-
type Type = 'credit_balance_transaction' | 'discount' | OtherString;
|
|
1463
|
+
type Type = 'credit_balance_transaction' | 'discount' | 'margin' | OtherString;
|
|
1189
1464
|
}
|
|
1190
1465
|
namespace TotalTax {
|
|
1191
1466
|
type TaxBehavior = 'exclusive' | 'inclusive' | OtherString;
|
|
@@ -1193,7 +1468,7 @@ export declare namespace Invoice {
|
|
|
1193
1468
|
/**
|
|
1194
1469
|
* ID of the tax rate
|
|
1195
1470
|
*/
|
|
1196
|
-
tax_rate: string;
|
|
1471
|
+
tax_rate: string | TaxRate;
|
|
1197
1472
|
}
|
|
1198
1473
|
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
1474
|
}
|
|
@@ -1203,6 +1478,10 @@ export interface InvoiceCreateParams {
|
|
|
1203
1478
|
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
1204
1479
|
*/
|
|
1205
1480
|
account_tax_ids?: Emptyable<Array<string>>;
|
|
1481
|
+
/**
|
|
1482
|
+
* List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
1483
|
+
*/
|
|
1484
|
+
amounts_due?: Emptyable<Array<InvoiceCreateParams.AmountsDue>>;
|
|
1206
1485
|
/**
|
|
1207
1486
|
* 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
1487
|
*/
|
|
@@ -1243,6 +1522,10 @@ export interface InvoiceCreateParams {
|
|
|
1243
1522
|
* The number of days from when the invoice is created until it is due. Valid only for invoices where `collection_method=send_invoice`.
|
|
1244
1523
|
*/
|
|
1245
1524
|
days_until_due?: number;
|
|
1525
|
+
/**
|
|
1526
|
+
* The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
1527
|
+
*/
|
|
1528
|
+
default_margins?: Array<string>;
|
|
1246
1529
|
/**
|
|
1247
1530
|
* 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
1531
|
*/
|
|
@@ -1287,6 +1570,10 @@ export interface InvoiceCreateParams {
|
|
|
1287
1570
|
* The connected account that issues the invoice. The invoice is presented with the branding and support information of the specified account.
|
|
1288
1571
|
*/
|
|
1289
1572
|
issuer?: InvoiceCreateParams.Issuer;
|
|
1573
|
+
/**
|
|
1574
|
+
* Settings for Managed Payments for this invoice.
|
|
1575
|
+
*/
|
|
1576
|
+
managed_payments?: InvoiceCreateParams.ManagedPayments;
|
|
1290
1577
|
/**
|
|
1291
1578
|
* 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
1579
|
*/
|
|
@@ -1333,6 +1620,24 @@ export interface InvoiceCreateParams {
|
|
|
1333
1620
|
transfer_data?: InvoiceCreateParams.TransferData;
|
|
1334
1621
|
}
|
|
1335
1622
|
export declare namespace InvoiceCreateParams {
|
|
1623
|
+
interface AmountsDue {
|
|
1624
|
+
/**
|
|
1625
|
+
* The amount in cents (or local equivalent).
|
|
1626
|
+
*/
|
|
1627
|
+
amount: number;
|
|
1628
|
+
/**
|
|
1629
|
+
* Number of days from when invoice is finalized until the payment is due.
|
|
1630
|
+
*/
|
|
1631
|
+
days_until_due?: number;
|
|
1632
|
+
/**
|
|
1633
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
1634
|
+
*/
|
|
1635
|
+
description: string;
|
|
1636
|
+
/**
|
|
1637
|
+
* Date on which a payment plan's payment is due.
|
|
1638
|
+
*/
|
|
1639
|
+
due_date?: number;
|
|
1640
|
+
}
|
|
1336
1641
|
interface AutomaticTax {
|
|
1337
1642
|
/**
|
|
1338
1643
|
* 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 +1668,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1363
1668
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1364
1669
|
*/
|
|
1365
1670
|
discount?: string;
|
|
1671
|
+
/**
|
|
1672
|
+
* Details to determine how long the discount should be applied for.
|
|
1673
|
+
*/
|
|
1674
|
+
discount_end?: Discount.DiscountEnd;
|
|
1366
1675
|
/**
|
|
1367
1676
|
* ID of the promotion code to create a new discount for.
|
|
1368
1677
|
*/
|
|
@@ -1388,6 +1697,12 @@ export declare namespace InvoiceCreateParams {
|
|
|
1388
1697
|
*/
|
|
1389
1698
|
type: Issuer.Type;
|
|
1390
1699
|
}
|
|
1700
|
+
interface ManagedPayments {
|
|
1701
|
+
/**
|
|
1702
|
+
* Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution.
|
|
1703
|
+
*/
|
|
1704
|
+
enabled?: boolean;
|
|
1705
|
+
}
|
|
1391
1706
|
interface PaymentSettings {
|
|
1392
1707
|
/**
|
|
1393
1708
|
* 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 +1782,43 @@ export declare namespace InvoiceCreateParams {
|
|
|
1467
1782
|
type: Liability.Type;
|
|
1468
1783
|
}
|
|
1469
1784
|
namespace Liability {
|
|
1470
|
-
type Type = 'account' | 'self' | OtherString;
|
|
1785
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
namespace Discount {
|
|
1789
|
+
interface DiscountEnd {
|
|
1790
|
+
/**
|
|
1791
|
+
* Time span for the redeemed discount.
|
|
1792
|
+
*/
|
|
1793
|
+
duration?: DiscountEnd.Duration;
|
|
1794
|
+
/**
|
|
1795
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1796
|
+
*/
|
|
1797
|
+
timestamp?: number;
|
|
1798
|
+
/**
|
|
1799
|
+
* The type of calculation made to determine when the discount ends.
|
|
1800
|
+
*/
|
|
1801
|
+
type: DiscountEnd.Type;
|
|
1802
|
+
}
|
|
1803
|
+
namespace DiscountEnd {
|
|
1804
|
+
interface Duration {
|
|
1805
|
+
/**
|
|
1806
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1807
|
+
*/
|
|
1808
|
+
interval: Duration.Interval;
|
|
1809
|
+
/**
|
|
1810
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1811
|
+
*/
|
|
1812
|
+
interval_count: number;
|
|
1813
|
+
}
|
|
1814
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
1815
|
+
namespace Duration {
|
|
1816
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
1817
|
+
}
|
|
1471
1818
|
}
|
|
1472
1819
|
}
|
|
1473
1820
|
namespace Issuer {
|
|
1474
|
-
type Type = 'account' | 'self' | OtherString;
|
|
1821
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
1475
1822
|
}
|
|
1476
1823
|
namespace PaymentSettings {
|
|
1477
1824
|
interface PaymentMethodOptions {
|
|
@@ -1479,6 +1826,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1479
1826
|
* 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
1827
|
*/
|
|
1481
1828
|
acss_debit?: Emptyable<PaymentMethodOptions.AcssDebit>;
|
|
1829
|
+
/**
|
|
1830
|
+
* 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.
|
|
1831
|
+
*/
|
|
1832
|
+
bacs_debit?: Emptyable<PaymentMethodOptions.BacsDebit>;
|
|
1482
1833
|
/**
|
|
1483
1834
|
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
1484
1835
|
*/
|
|
@@ -1487,6 +1838,10 @@ export declare namespace InvoiceCreateParams {
|
|
|
1487
1838
|
* If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
|
|
1488
1839
|
*/
|
|
1489
1840
|
billie?: Emptyable<PaymentMethodOptions.Billie>;
|
|
1841
|
+
/**
|
|
1842
|
+
* If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
|
|
1843
|
+
*/
|
|
1844
|
+
bizum?: Emptyable<PaymentMethodOptions.Bizum>;
|
|
1490
1845
|
/**
|
|
1491
1846
|
* If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
1492
1847
|
*/
|
|
@@ -1495,10 +1850,18 @@ export declare namespace InvoiceCreateParams {
|
|
|
1495
1850
|
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
1496
1851
|
*/
|
|
1497
1852
|
card?: Emptyable<PaymentMethodOptions.Card>;
|
|
1853
|
+
/**
|
|
1854
|
+
* If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
|
|
1855
|
+
*/
|
|
1856
|
+
check_scan?: Emptyable<PaymentMethodOptions.CheckScan>;
|
|
1498
1857
|
/**
|
|
1499
1858
|
* 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
1859
|
*/
|
|
1501
1860
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
1861
|
+
/**
|
|
1862
|
+
* 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.
|
|
1863
|
+
*/
|
|
1864
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
1502
1865
|
/**
|
|
1503
1866
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1504
1867
|
*/
|
|
@@ -1523,8 +1886,12 @@ export declare namespace InvoiceCreateParams {
|
|
|
1523
1886
|
* 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
1887
|
*/
|
|
1525
1888
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
1889
|
+
/**
|
|
1890
|
+
* If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent.
|
|
1891
|
+
*/
|
|
1892
|
+
wechat_pay?: Emptyable<PaymentMethodOptions.WechatPay>;
|
|
1526
1893
|
}
|
|
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;
|
|
1894
|
+
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
1895
|
namespace PaymentMethodOptions {
|
|
1529
1896
|
interface AcssDebit {
|
|
1530
1897
|
/**
|
|
@@ -1536,6 +1903,13 @@ export declare namespace InvoiceCreateParams {
|
|
|
1536
1903
|
*/
|
|
1537
1904
|
verification_method?: AcssDebit.VerificationMethod;
|
|
1538
1905
|
}
|
|
1906
|
+
interface BacsDebit {
|
|
1907
|
+
/**
|
|
1908
|
+
* 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.
|
|
1909
|
+
*/
|
|
1910
|
+
target_date?: string;
|
|
1911
|
+
verification_method?: BacsDebit.VerificationMethod;
|
|
1912
|
+
}
|
|
1539
1913
|
interface Bancontact {
|
|
1540
1914
|
/**
|
|
1541
1915
|
* Preferred language of the Bancontact authorization page that the customer is redirected to.
|
|
@@ -1552,6 +1926,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
1552
1926
|
*/
|
|
1553
1927
|
reference?: string;
|
|
1554
1928
|
}
|
|
1929
|
+
interface Bizum {
|
|
1930
|
+
}
|
|
1555
1931
|
interface Blik {
|
|
1556
1932
|
}
|
|
1557
1933
|
interface Card {
|
|
@@ -1566,6 +1942,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
1566
1942
|
*/
|
|
1567
1943
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
1568
1944
|
}
|
|
1945
|
+
interface CheckScan {
|
|
1946
|
+
}
|
|
1569
1947
|
interface CustomerBalance {
|
|
1570
1948
|
/**
|
|
1571
1949
|
* Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
@@ -1576,6 +1954,8 @@ export declare namespace InvoiceCreateParams {
|
|
|
1576
1954
|
*/
|
|
1577
1955
|
funding_type?: string;
|
|
1578
1956
|
}
|
|
1957
|
+
interface IdBankTransfer {
|
|
1958
|
+
}
|
|
1579
1959
|
interface Konbini {
|
|
1580
1960
|
}
|
|
1581
1961
|
interface Payto {
|
|
@@ -1612,6 +1992,16 @@ export declare namespace InvoiceCreateParams {
|
|
|
1612
1992
|
*/
|
|
1613
1993
|
verification_method?: UsBankAccount.VerificationMethod;
|
|
1614
1994
|
}
|
|
1995
|
+
interface WechatPay {
|
|
1996
|
+
/**
|
|
1997
|
+
* The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
|
|
1998
|
+
*/
|
|
1999
|
+
app_id?: string;
|
|
2000
|
+
/**
|
|
2001
|
+
* The client type that the end customer will pay from.
|
|
2002
|
+
*/
|
|
2003
|
+
client?: WechatPay.Client;
|
|
2004
|
+
}
|
|
1615
2005
|
namespace AcssDebit {
|
|
1616
2006
|
interface MandateOptions {
|
|
1617
2007
|
/**
|
|
@@ -1624,6 +2014,9 @@ export declare namespace InvoiceCreateParams {
|
|
|
1624
2014
|
type TransactionType = 'business' | 'personal' | OtherString;
|
|
1625
2015
|
}
|
|
1626
2016
|
}
|
|
2017
|
+
namespace BacsDebit {
|
|
2018
|
+
type VerificationMethod = 'automatic' | 'payer_name_verification' | OtherString;
|
|
2019
|
+
}
|
|
1627
2020
|
namespace Bancontact {
|
|
1628
2021
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
|
|
1629
2022
|
}
|
|
@@ -1771,14 +2164,21 @@ export declare namespace InvoiceCreateParams {
|
|
|
1771
2164
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1772
2165
|
*/
|
|
1773
2166
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2167
|
+
/**
|
|
2168
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
2169
|
+
*/
|
|
2170
|
+
institution?: string;
|
|
1774
2171
|
}
|
|
1775
2172
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
|
|
1776
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
2173
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
|
|
1777
2174
|
namespace Filters {
|
|
1778
2175
|
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
1779
2176
|
}
|
|
1780
2177
|
}
|
|
1781
2178
|
}
|
|
2179
|
+
namespace WechatPay {
|
|
2180
|
+
type Client = 'android' | 'ios' | 'mobile_web' | 'web' | OtherString;
|
|
2181
|
+
}
|
|
1782
2182
|
}
|
|
1783
2183
|
}
|
|
1784
2184
|
namespace Rendering {
|
|
@@ -1911,6 +2311,10 @@ export interface InvoiceUpdateParams {
|
|
|
1911
2311
|
* The account tax IDs associated with the invoice. Only editable when the invoice is a draft.
|
|
1912
2312
|
*/
|
|
1913
2313
|
account_tax_ids?: Emptyable<Array<string>>;
|
|
2314
|
+
/**
|
|
2315
|
+
* List of expected payments and corresponding due dates. Valid only for invoices where `collection_method=send_invoice`.
|
|
2316
|
+
*/
|
|
2317
|
+
amounts_due?: Emptyable<Array<InvoiceUpdateParams.AmountsDue>>;
|
|
1914
2318
|
/**
|
|
1915
2319
|
* 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
2320
|
*/
|
|
@@ -1939,6 +2343,10 @@ export interface InvoiceUpdateParams {
|
|
|
1939
2343
|
* 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
2344
|
*/
|
|
1941
2345
|
days_until_due?: number;
|
|
2346
|
+
/**
|
|
2347
|
+
* The ids of the margins to apply to the invoice. Can be overridden by line item `margins`.
|
|
2348
|
+
*/
|
|
2349
|
+
default_margins?: Emptyable<Array<string>>;
|
|
1942
2350
|
/**
|
|
1943
2351
|
* 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
2352
|
*/
|
|
@@ -2017,6 +2425,24 @@ export interface InvoiceUpdateParams {
|
|
|
2017
2425
|
transfer_data?: Emptyable<InvoiceUpdateParams.TransferData>;
|
|
2018
2426
|
}
|
|
2019
2427
|
export declare namespace InvoiceUpdateParams {
|
|
2428
|
+
interface AmountsDue {
|
|
2429
|
+
/**
|
|
2430
|
+
* The amount in cents (or local equivalent).
|
|
2431
|
+
*/
|
|
2432
|
+
amount: number;
|
|
2433
|
+
/**
|
|
2434
|
+
* Number of days from when invoice is finalized until the payment is due.
|
|
2435
|
+
*/
|
|
2436
|
+
days_until_due?: number;
|
|
2437
|
+
/**
|
|
2438
|
+
* An arbitrary string attached to the object. Often useful for displaying to users.
|
|
2439
|
+
*/
|
|
2440
|
+
description: string;
|
|
2441
|
+
/**
|
|
2442
|
+
* Date on which a payment plan's payment is due.
|
|
2443
|
+
*/
|
|
2444
|
+
due_date?: number;
|
|
2445
|
+
}
|
|
2020
2446
|
interface AutomaticTax {
|
|
2021
2447
|
/**
|
|
2022
2448
|
* 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 +2473,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2047
2473
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2048
2474
|
*/
|
|
2049
2475
|
discount?: string;
|
|
2476
|
+
/**
|
|
2477
|
+
* Details to determine how long the discount should be applied for.
|
|
2478
|
+
*/
|
|
2479
|
+
discount_end?: Discount.DiscountEnd;
|
|
2050
2480
|
/**
|
|
2051
2481
|
* ID of the promotion code to create a new discount for.
|
|
2052
2482
|
*/
|
|
@@ -2140,11 +2570,43 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2140
2570
|
type: Liability.Type;
|
|
2141
2571
|
}
|
|
2142
2572
|
namespace Liability {
|
|
2143
|
-
type Type = 'account' | 'self' | OtherString;
|
|
2573
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
2574
|
+
}
|
|
2575
|
+
}
|
|
2576
|
+
namespace Discount {
|
|
2577
|
+
interface DiscountEnd {
|
|
2578
|
+
/**
|
|
2579
|
+
* Time span for the redeemed discount.
|
|
2580
|
+
*/
|
|
2581
|
+
duration?: DiscountEnd.Duration;
|
|
2582
|
+
/**
|
|
2583
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2584
|
+
*/
|
|
2585
|
+
timestamp?: number;
|
|
2586
|
+
/**
|
|
2587
|
+
* The type of calculation made to determine when the discount ends.
|
|
2588
|
+
*/
|
|
2589
|
+
type: DiscountEnd.Type;
|
|
2590
|
+
}
|
|
2591
|
+
namespace DiscountEnd {
|
|
2592
|
+
interface Duration {
|
|
2593
|
+
/**
|
|
2594
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2595
|
+
*/
|
|
2596
|
+
interval: Duration.Interval;
|
|
2597
|
+
/**
|
|
2598
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2599
|
+
*/
|
|
2600
|
+
interval_count: number;
|
|
2601
|
+
}
|
|
2602
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
2603
|
+
namespace Duration {
|
|
2604
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
2605
|
+
}
|
|
2144
2606
|
}
|
|
2145
2607
|
}
|
|
2146
2608
|
namespace Issuer {
|
|
2147
|
-
type Type = 'account' | 'self' | OtherString;
|
|
2609
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
2148
2610
|
}
|
|
2149
2611
|
namespace PaymentSettings {
|
|
2150
2612
|
interface PaymentMethodOptions {
|
|
@@ -2152,6 +2614,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2152
2614
|
* 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
2615
|
*/
|
|
2154
2616
|
acss_debit?: Emptyable<PaymentMethodOptions.AcssDebit>;
|
|
2617
|
+
/**
|
|
2618
|
+
* 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.
|
|
2619
|
+
*/
|
|
2620
|
+
bacs_debit?: Emptyable<PaymentMethodOptions.BacsDebit>;
|
|
2155
2621
|
/**
|
|
2156
2622
|
* If paying by `bancontact`, this sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
2157
2623
|
*/
|
|
@@ -2160,6 +2626,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2160
2626
|
* If paying by `billie`, this sub-hash contains details about the Billie payment method options to pass to the invoice's PaymentIntent.
|
|
2161
2627
|
*/
|
|
2162
2628
|
billie?: Emptyable<PaymentMethodOptions.Billie>;
|
|
2629
|
+
/**
|
|
2630
|
+
* If paying by `bizum`, this sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
|
|
2631
|
+
*/
|
|
2632
|
+
bizum?: Emptyable<PaymentMethodOptions.Bizum>;
|
|
2163
2633
|
/**
|
|
2164
2634
|
* If paying by `blik`, this sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
2165
2635
|
*/
|
|
@@ -2168,10 +2638,18 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2168
2638
|
* If paying by `card`, this sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
2169
2639
|
*/
|
|
2170
2640
|
card?: Emptyable<PaymentMethodOptions.Card>;
|
|
2641
|
+
/**
|
|
2642
|
+
* If paying by `check_scan`, this sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
|
|
2643
|
+
*/
|
|
2644
|
+
check_scan?: Emptyable<PaymentMethodOptions.CheckScan>;
|
|
2171
2645
|
/**
|
|
2172
2646
|
* 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
2647
|
*/
|
|
2174
2648
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
2649
|
+
/**
|
|
2650
|
+
* 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.
|
|
2651
|
+
*/
|
|
2652
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
2175
2653
|
/**
|
|
2176
2654
|
* If paying by `konbini`, this sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
2177
2655
|
*/
|
|
@@ -2196,8 +2674,12 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2196
2674
|
* 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
2675
|
*/
|
|
2198
2676
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
2677
|
+
/**
|
|
2678
|
+
* If paying by `wechat_pay`, this sub-hash contains details about the WeChat Pay payment method options to pass to the invoice's PaymentIntent.
|
|
2679
|
+
*/
|
|
2680
|
+
wechat_pay?: Emptyable<PaymentMethodOptions.WechatPay>;
|
|
2199
2681
|
}
|
|
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;
|
|
2682
|
+
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
2683
|
namespace PaymentMethodOptions {
|
|
2202
2684
|
interface AcssDebit {
|
|
2203
2685
|
/**
|
|
@@ -2209,6 +2691,13 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2209
2691
|
*/
|
|
2210
2692
|
verification_method?: AcssDebit.VerificationMethod;
|
|
2211
2693
|
}
|
|
2694
|
+
interface BacsDebit {
|
|
2695
|
+
/**
|
|
2696
|
+
* 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.
|
|
2697
|
+
*/
|
|
2698
|
+
target_date?: string;
|
|
2699
|
+
verification_method?: BacsDebit.VerificationMethod;
|
|
2700
|
+
}
|
|
2212
2701
|
interface Bancontact {
|
|
2213
2702
|
/**
|
|
2214
2703
|
* Preferred language of the Bancontact authorization page that the customer is redirected to.
|
|
@@ -2225,6 +2714,8 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2225
2714
|
*/
|
|
2226
2715
|
reference?: string;
|
|
2227
2716
|
}
|
|
2717
|
+
interface Bizum {
|
|
2718
|
+
}
|
|
2228
2719
|
interface Blik {
|
|
2229
2720
|
}
|
|
2230
2721
|
interface Card {
|
|
@@ -2239,6 +2730,8 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2239
2730
|
*/
|
|
2240
2731
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
2241
2732
|
}
|
|
2733
|
+
interface CheckScan {
|
|
2734
|
+
}
|
|
2242
2735
|
interface CustomerBalance {
|
|
2243
2736
|
/**
|
|
2244
2737
|
* Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
@@ -2249,6 +2742,8 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2249
2742
|
*/
|
|
2250
2743
|
funding_type?: string;
|
|
2251
2744
|
}
|
|
2745
|
+
interface IdBankTransfer {
|
|
2746
|
+
}
|
|
2252
2747
|
interface Konbini {
|
|
2253
2748
|
}
|
|
2254
2749
|
interface Payto {
|
|
@@ -2285,6 +2780,16 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2285
2780
|
*/
|
|
2286
2781
|
verification_method?: UsBankAccount.VerificationMethod;
|
|
2287
2782
|
}
|
|
2783
|
+
interface WechatPay {
|
|
2784
|
+
/**
|
|
2785
|
+
* The app ID registered with WeChat Pay. Only required when client is `ios` or `android`.
|
|
2786
|
+
*/
|
|
2787
|
+
app_id?: string;
|
|
2788
|
+
/**
|
|
2789
|
+
* The client type that the end customer will pay from.
|
|
2790
|
+
*/
|
|
2791
|
+
client?: WechatPay.Client;
|
|
2792
|
+
}
|
|
2288
2793
|
namespace AcssDebit {
|
|
2289
2794
|
interface MandateOptions {
|
|
2290
2795
|
/**
|
|
@@ -2297,6 +2802,9 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2297
2802
|
type TransactionType = 'business' | 'personal' | OtherString;
|
|
2298
2803
|
}
|
|
2299
2804
|
}
|
|
2805
|
+
namespace BacsDebit {
|
|
2806
|
+
type VerificationMethod = 'automatic' | 'payer_name_verification' | OtherString;
|
|
2807
|
+
}
|
|
2300
2808
|
namespace Bancontact {
|
|
2301
2809
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl' | OtherString;
|
|
2302
2810
|
}
|
|
@@ -2444,14 +2952,21 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2444
2952
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2445
2953
|
*/
|
|
2446
2954
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2955
|
+
/**
|
|
2956
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
2957
|
+
*/
|
|
2958
|
+
institution?: string;
|
|
2447
2959
|
}
|
|
2448
2960
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions' | OtherString;
|
|
2449
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions' | OtherString;
|
|
2961
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions' | OtherString;
|
|
2450
2962
|
namespace Filters {
|
|
2451
2963
|
type AccountSubcategory = 'checking' | 'savings' | OtherString;
|
|
2452
2964
|
}
|
|
2453
2965
|
}
|
|
2454
2966
|
}
|
|
2967
|
+
namespace WechatPay {
|
|
2968
|
+
type Client = 'android' | 'ios' | 'mobile_web' | 'web' | OtherString;
|
|
2969
|
+
}
|
|
2455
2970
|
}
|
|
2456
2971
|
}
|
|
2457
2972
|
namespace Rendering {
|
|
@@ -2574,6 +3089,10 @@ export declare namespace InvoiceUpdateParams {
|
|
|
2574
3089
|
}
|
|
2575
3090
|
}
|
|
2576
3091
|
export interface InvoiceListParams extends PaginationParams {
|
|
3092
|
+
/**
|
|
3093
|
+
* Only return invoices for the cadence specified by this billing cadence ID.
|
|
3094
|
+
*/
|
|
3095
|
+
billing_cadence?: string;
|
|
2577
3096
|
/**
|
|
2578
3097
|
* The collection method of the invoice to retrieve. Either `charge_automatically` or `send_invoice`.
|
|
2579
3098
|
*/
|
|
@@ -2648,6 +3167,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2648
3167
|
* ID of an unassigned invoice item to assign to this invoice. If not provided, a new item will be created.
|
|
2649
3168
|
*/
|
|
2650
3169
|
invoice_item?: string;
|
|
3170
|
+
/**
|
|
3171
|
+
* 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.
|
|
3172
|
+
*/
|
|
3173
|
+
margins?: Emptyable<Array<string>>;
|
|
2651
3174
|
/**
|
|
2652
3175
|
* 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
3176
|
*/
|
|
@@ -2691,6 +3214,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2691
3214
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2692
3215
|
*/
|
|
2693
3216
|
discount?: string;
|
|
3217
|
+
/**
|
|
3218
|
+
* Details to determine how long the discount should be applied for.
|
|
3219
|
+
*/
|
|
3220
|
+
discount_end?: Discount.DiscountEnd;
|
|
2694
3221
|
/**
|
|
2695
3222
|
* ID of the promotion code to create a new discount for.
|
|
2696
3223
|
*/
|
|
@@ -2758,24 +3285,56 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2758
3285
|
*/
|
|
2759
3286
|
taxable_amount: number;
|
|
2760
3287
|
}
|
|
2761
|
-
namespace
|
|
2762
|
-
interface
|
|
2763
|
-
/**
|
|
2764
|
-
* 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.
|
|
2765
|
-
*/
|
|
2766
|
-
description?: string;
|
|
3288
|
+
namespace Discount {
|
|
3289
|
+
interface DiscountEnd {
|
|
2767
3290
|
/**
|
|
2768
|
-
*
|
|
3291
|
+
* Time span for the redeemed discount.
|
|
2769
3292
|
*/
|
|
2770
|
-
|
|
3293
|
+
duration?: DiscountEnd.Duration;
|
|
2771
3294
|
/**
|
|
2772
|
-
*
|
|
3295
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2773
3296
|
*/
|
|
2774
|
-
|
|
3297
|
+
timestamp?: number;
|
|
2775
3298
|
/**
|
|
2776
|
-
* The
|
|
3299
|
+
* The type of calculation made to determine when the discount ends.
|
|
2777
3300
|
*/
|
|
2778
|
-
|
|
3301
|
+
type: DiscountEnd.Type;
|
|
3302
|
+
}
|
|
3303
|
+
namespace DiscountEnd {
|
|
3304
|
+
interface Duration {
|
|
3305
|
+
/**
|
|
3306
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3307
|
+
*/
|
|
3308
|
+
interval: Duration.Interval;
|
|
3309
|
+
/**
|
|
3310
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3311
|
+
*/
|
|
3312
|
+
interval_count: number;
|
|
3313
|
+
}
|
|
3314
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
3315
|
+
namespace Duration {
|
|
3316
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3317
|
+
}
|
|
3318
|
+
}
|
|
3319
|
+
}
|
|
3320
|
+
namespace PriceData {
|
|
3321
|
+
interface ProductData {
|
|
3322
|
+
/**
|
|
3323
|
+
* 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.
|
|
3324
|
+
*/
|
|
3325
|
+
description?: string;
|
|
3326
|
+
/**
|
|
3327
|
+
* A list of up to 8 URLs of images for this product, meant to be displayable to the customer.
|
|
3328
|
+
*/
|
|
3329
|
+
images?: Array<string>;
|
|
3330
|
+
/**
|
|
3331
|
+
* 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`.
|
|
3332
|
+
*/
|
|
3333
|
+
metadata?: MetadataParam;
|
|
3334
|
+
/**
|
|
3335
|
+
* The product's name, meant to be displayable to the customer.
|
|
3336
|
+
*/
|
|
3337
|
+
name: string;
|
|
2779
3338
|
/**
|
|
2780
3339
|
* A [tax code](https://docs.stripe.com/tax/tax-categories) ID.
|
|
2781
3340
|
*/
|
|
@@ -2851,6 +3410,10 @@ export declare namespace InvoiceAddLinesParams {
|
|
|
2851
3410
|
}
|
|
2852
3411
|
}
|
|
2853
3412
|
export interface InvoiceAttachPaymentParams {
|
|
3413
|
+
/**
|
|
3414
|
+
* The portion of the `amount` on the PaymentIntent or out of band payment to apply to this invoice. It defaults to the entire amount.
|
|
3415
|
+
*/
|
|
3416
|
+
amount_requested?: number;
|
|
2854
3417
|
/**
|
|
2855
3418
|
* Specifies which fields in the response should be expanded.
|
|
2856
3419
|
*/
|
|
@@ -2863,12 +3426,48 @@ export interface InvoiceAttachPaymentParams {
|
|
|
2863
3426
|
* The ID of the PaymentRecord to attach to the invoice.
|
|
2864
3427
|
*/
|
|
2865
3428
|
payment_record?: string;
|
|
3429
|
+
/**
|
|
3430
|
+
* The PaymentRecord data for attaching an out of band payment to the invoice.
|
|
3431
|
+
*/
|
|
3432
|
+
payment_record_data?: InvoiceAttachPaymentParams.PaymentRecordData;
|
|
3433
|
+
}
|
|
3434
|
+
export declare namespace InvoiceAttachPaymentParams {
|
|
3435
|
+
interface PaymentRecordData {
|
|
3436
|
+
/**
|
|
3437
|
+
* The amount that was paid out of band.
|
|
3438
|
+
*/
|
|
3439
|
+
amount: number;
|
|
3440
|
+
/**
|
|
3441
|
+
* The currency that was paid out of band.
|
|
3442
|
+
*/
|
|
3443
|
+
currency: string;
|
|
3444
|
+
/**
|
|
3445
|
+
* 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`.
|
|
3446
|
+
*/
|
|
3447
|
+
metadata?: Emptyable<MetadataParam>;
|
|
3448
|
+
/**
|
|
3449
|
+
* The type of money movement for this out of band payment record.
|
|
3450
|
+
*/
|
|
3451
|
+
money_movement_type: string;
|
|
3452
|
+
/**
|
|
3453
|
+
* The timestamp when this out of band payment was paid.
|
|
3454
|
+
*/
|
|
3455
|
+
paid_at?: number;
|
|
3456
|
+
/**
|
|
3457
|
+
* The reference for this out of band payment record.
|
|
3458
|
+
*/
|
|
3459
|
+
payment_reference?: string;
|
|
3460
|
+
}
|
|
2866
3461
|
}
|
|
2867
3462
|
export interface InvoiceCreatePreviewParams {
|
|
2868
3463
|
/**
|
|
2869
3464
|
* Settings for automatic tax lookup for this invoice preview.
|
|
2870
3465
|
*/
|
|
2871
3466
|
automatic_tax?: InvoiceCreatePreviewParams.AutomaticTax;
|
|
3467
|
+
/**
|
|
3468
|
+
* 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.
|
|
3469
|
+
*/
|
|
3470
|
+
billing_cadence?: string;
|
|
2872
3471
|
/**
|
|
2873
3472
|
* The currency to preview this invoice in. Defaults to that of `customer` if not specified.
|
|
2874
3473
|
*/
|
|
@@ -2909,6 +3508,10 @@ export interface InvoiceCreatePreviewParams {
|
|
|
2909
3508
|
* Customizes the types of values to include when calculating the invoice. Defaults to `next` if unspecified.
|
|
2910
3509
|
*/
|
|
2911
3510
|
preview_mode?: InvoiceCreatePreviewParams.PreviewMode;
|
|
3511
|
+
/**
|
|
3512
|
+
* 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.
|
|
3513
|
+
*/
|
|
3514
|
+
pricing_token?: string;
|
|
2912
3515
|
/**
|
|
2913
3516
|
* The identifier of the schedule whose upcoming invoice you'd like to retrieve. Cannot be used with subscription or subscription fields.
|
|
2914
3517
|
*/
|
|
@@ -2968,10 +3571,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
2968
3571
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2969
3572
|
*/
|
|
2970
3573
|
discount?: string;
|
|
3574
|
+
/**
|
|
3575
|
+
* Details to determine how long the discount should be applied for.
|
|
3576
|
+
*/
|
|
3577
|
+
discount_end?: Discount.DiscountEnd;
|
|
2971
3578
|
/**
|
|
2972
3579
|
* ID of the promotion code to create a new discount for.
|
|
2973
3580
|
*/
|
|
2974
3581
|
promotion_code?: string;
|
|
3582
|
+
/**
|
|
3583
|
+
* Settings for discount application including service period anchoring.
|
|
3584
|
+
*/
|
|
3585
|
+
settings?: Discount.Settings;
|
|
2975
3586
|
}
|
|
2976
3587
|
interface InvoiceItem {
|
|
2977
3588
|
/**
|
|
@@ -3055,10 +3666,26 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3055
3666
|
}
|
|
3056
3667
|
type PreviewMode = 'next' | 'recurring' | OtherString;
|
|
3057
3668
|
interface ScheduleDetails {
|
|
3669
|
+
/**
|
|
3670
|
+
* Changes to apply to the phases of the subscription schedule, in the order provided.
|
|
3671
|
+
*/
|
|
3672
|
+
amendments?: Array<ScheduleDetails.Amendment>;
|
|
3673
|
+
/**
|
|
3674
|
+
* 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.
|
|
3675
|
+
*/
|
|
3676
|
+
billing_behavior?: ScheduleDetails.BillingBehavior;
|
|
3058
3677
|
/**
|
|
3059
3678
|
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
3060
3679
|
*/
|
|
3061
3680
|
billing_mode?: ScheduleDetails.BillingMode;
|
|
3681
|
+
/**
|
|
3682
|
+
* Sets the billing schedules for the subscription schedule.
|
|
3683
|
+
*/
|
|
3684
|
+
billing_schedules?: Emptyable<Array<ScheduleDetails.BillingSchedule>>;
|
|
3685
|
+
/**
|
|
3686
|
+
* Object representing the subscription schedule's default settings.
|
|
3687
|
+
*/
|
|
3688
|
+
default_settings?: ScheduleDetails.DefaultSettings;
|
|
3062
3689
|
/**
|
|
3063
3690
|
* 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
3691
|
*/
|
|
@@ -3071,6 +3698,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3071
3698
|
* 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
3699
|
*/
|
|
3073
3700
|
phases?: Array<ScheduleDetails.Phase>;
|
|
3701
|
+
/**
|
|
3702
|
+
* Provide any time periods to bill in advance.
|
|
3703
|
+
*/
|
|
3704
|
+
prebilling?: Emptyable<Array<ScheduleDetails.Prebilling>>;
|
|
3074
3705
|
/**
|
|
3075
3706
|
* 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
3707
|
*/
|
|
@@ -3121,6 +3752,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3121
3752
|
* `pending_invoice_item` never has a preview available because pausing wouldn't generate an invoice, and paused subscriptions don't generate invoices either.
|
|
3122
3753
|
*/
|
|
3123
3754
|
pause?: SubscriptionDetails.Pause;
|
|
3755
|
+
/**
|
|
3756
|
+
* The pre-billing to apply to the subscription as a preview.
|
|
3757
|
+
*/
|
|
3758
|
+
prebilling?: SubscriptionDetails.Prebilling;
|
|
3124
3759
|
/**
|
|
3125
3760
|
* 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
3761
|
*/
|
|
@@ -3154,7 +3789,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3154
3789
|
type: Liability.Type;
|
|
3155
3790
|
}
|
|
3156
3791
|
namespace Liability {
|
|
3157
|
-
type Type = 'account' | 'self' | OtherString;
|
|
3792
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
3158
3793
|
}
|
|
3159
3794
|
}
|
|
3160
3795
|
namespace CustomerDetails {
|
|
@@ -3193,6 +3828,86 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3193
3828
|
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
3829
|
}
|
|
3195
3830
|
}
|
|
3831
|
+
namespace Discount {
|
|
3832
|
+
interface DiscountEnd {
|
|
3833
|
+
/**
|
|
3834
|
+
* Time span for the redeemed discount.
|
|
3835
|
+
*/
|
|
3836
|
+
duration?: DiscountEnd.Duration;
|
|
3837
|
+
/**
|
|
3838
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3839
|
+
*/
|
|
3840
|
+
timestamp?: number;
|
|
3841
|
+
/**
|
|
3842
|
+
* The type of calculation made to determine when the discount ends.
|
|
3843
|
+
*/
|
|
3844
|
+
type: DiscountEnd.Type;
|
|
3845
|
+
}
|
|
3846
|
+
interface Settings {
|
|
3847
|
+
/**
|
|
3848
|
+
* Configures service period cycle anchoring.
|
|
3849
|
+
*/
|
|
3850
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
3851
|
+
/**
|
|
3852
|
+
* 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.
|
|
3853
|
+
*/
|
|
3854
|
+
start_date?: Settings.StartDate;
|
|
3855
|
+
}
|
|
3856
|
+
namespace DiscountEnd {
|
|
3857
|
+
interface Duration {
|
|
3858
|
+
/**
|
|
3859
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3860
|
+
*/
|
|
3861
|
+
interval: Duration.Interval;
|
|
3862
|
+
/**
|
|
3863
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3864
|
+
*/
|
|
3865
|
+
interval_count: number;
|
|
3866
|
+
}
|
|
3867
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
3868
|
+
namespace Duration {
|
|
3869
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3870
|
+
}
|
|
3871
|
+
}
|
|
3872
|
+
namespace Settings {
|
|
3873
|
+
interface ServicePeriodAnchorConfig {
|
|
3874
|
+
/**
|
|
3875
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
3876
|
+
*/
|
|
3877
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
3878
|
+
/**
|
|
3879
|
+
* The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
3880
|
+
*/
|
|
3881
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
3882
|
+
}
|
|
3883
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'now' | OtherString;
|
|
3884
|
+
namespace ServicePeriodAnchorConfig {
|
|
3885
|
+
interface Custom {
|
|
3886
|
+
/**
|
|
3887
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
3888
|
+
*/
|
|
3889
|
+
day_of_month: number;
|
|
3890
|
+
/**
|
|
3891
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
3892
|
+
*/
|
|
3893
|
+
hour?: number;
|
|
3894
|
+
/**
|
|
3895
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
3896
|
+
*/
|
|
3897
|
+
minute?: number;
|
|
3898
|
+
/**
|
|
3899
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
3900
|
+
*/
|
|
3901
|
+
month?: number;
|
|
3902
|
+
/**
|
|
3903
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
3904
|
+
*/
|
|
3905
|
+
second?: number;
|
|
3906
|
+
}
|
|
3907
|
+
type Type = 'custom' | 'subscription_service_cycle_anchor' | OtherString;
|
|
3908
|
+
}
|
|
3909
|
+
}
|
|
3910
|
+
}
|
|
3196
3911
|
namespace InvoiceItem {
|
|
3197
3912
|
interface Discount {
|
|
3198
3913
|
/**
|
|
@@ -3203,6 +3918,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3203
3918
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3204
3919
|
*/
|
|
3205
3920
|
discount?: string;
|
|
3921
|
+
/**
|
|
3922
|
+
* Details to determine how long the discount should be applied for.
|
|
3923
|
+
*/
|
|
3924
|
+
discount_end?: Discount.DiscountEnd;
|
|
3206
3925
|
/**
|
|
3207
3926
|
* ID of the promotion code to create a new discount for.
|
|
3208
3927
|
*/
|
|
@@ -3241,14 +3960,97 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3241
3960
|
unit_amount_decimal?: Decimal;
|
|
3242
3961
|
}
|
|
3243
3962
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
|
|
3963
|
+
namespace Discount {
|
|
3964
|
+
interface DiscountEnd {
|
|
3965
|
+
/**
|
|
3966
|
+
* Time span for the redeemed discount.
|
|
3967
|
+
*/
|
|
3968
|
+
duration?: DiscountEnd.Duration;
|
|
3969
|
+
/**
|
|
3970
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
3971
|
+
*/
|
|
3972
|
+
timestamp?: number;
|
|
3973
|
+
/**
|
|
3974
|
+
* The type of calculation made to determine when the discount ends.
|
|
3975
|
+
*/
|
|
3976
|
+
type: DiscountEnd.Type;
|
|
3977
|
+
}
|
|
3978
|
+
namespace DiscountEnd {
|
|
3979
|
+
interface Duration {
|
|
3980
|
+
/**
|
|
3981
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
3982
|
+
*/
|
|
3983
|
+
interval: Duration.Interval;
|
|
3984
|
+
/**
|
|
3985
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
3986
|
+
*/
|
|
3987
|
+
interval_count: number;
|
|
3988
|
+
}
|
|
3989
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
3990
|
+
namespace Duration {
|
|
3991
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3992
|
+
}
|
|
3993
|
+
}
|
|
3994
|
+
}
|
|
3244
3995
|
namespace PriceData {
|
|
3245
3996
|
type TaxBehavior = 'exclusive' | 'inclusive' | 'unspecified' | OtherString;
|
|
3246
3997
|
}
|
|
3247
3998
|
}
|
|
3248
3999
|
namespace Issuer {
|
|
3249
|
-
type Type = 'account' | 'self' | OtherString;
|
|
4000
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
3250
4001
|
}
|
|
3251
4002
|
namespace ScheduleDetails {
|
|
4003
|
+
interface Amendment {
|
|
4004
|
+
/**
|
|
4005
|
+
* 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.
|
|
4006
|
+
*/
|
|
4007
|
+
amendment_end?: Amendment.AmendmentEnd;
|
|
4008
|
+
/**
|
|
4009
|
+
* Details to identify the earliest timestamp where the proposed change should take effect.
|
|
4010
|
+
*/
|
|
4011
|
+
amendment_start: Amendment.AmendmentStart;
|
|
4012
|
+
/**
|
|
4013
|
+
* 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.
|
|
4014
|
+
*/
|
|
4015
|
+
billing_cycle_anchor?: Amendment.BillingCycleAnchor;
|
|
4016
|
+
/**
|
|
4017
|
+
* Actions to apply to the billing schedules.
|
|
4018
|
+
*/
|
|
4019
|
+
billing_schedules_actions?: Array<Amendment.BillingSchedulesAction>;
|
|
4020
|
+
/**
|
|
4021
|
+
* Changes to the coupons being redeemed or discounts being applied during the amendment time span.
|
|
4022
|
+
*/
|
|
4023
|
+
discount_actions?: Array<Amendment.DiscountAction>;
|
|
4024
|
+
/**
|
|
4025
|
+
* Configures how the subscription schedule handles billing for phase transitions.
|
|
4026
|
+
*/
|
|
4027
|
+
effective_at?: Amendment.EffectiveAt;
|
|
4028
|
+
/**
|
|
4029
|
+
* Changes to the subscription items during the amendment time span.
|
|
4030
|
+
*/
|
|
4031
|
+
item_actions?: Array<Amendment.ItemAction>;
|
|
4032
|
+
/**
|
|
4033
|
+
* Instructions for how to modify phase metadata
|
|
4034
|
+
*/
|
|
4035
|
+
metadata_actions?: Array<Amendment.MetadataAction>;
|
|
4036
|
+
/**
|
|
4037
|
+
* 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`.
|
|
4038
|
+
*/
|
|
4039
|
+
proration_behavior?: Amendment.ProrationBehavior;
|
|
4040
|
+
/**
|
|
4041
|
+
* Defines how to pause collection for the underlying subscription throughout the duration of the amendment.
|
|
4042
|
+
*/
|
|
4043
|
+
set_pause_collection?: Amendment.SetPauseCollection;
|
|
4044
|
+
/**
|
|
4045
|
+
* Ends the subscription schedule early as dictated by either the accompanying amendment's start or end.
|
|
4046
|
+
*/
|
|
4047
|
+
set_schedule_end?: Amendment.SetScheduleEnd;
|
|
4048
|
+
/**
|
|
4049
|
+
* Settings related to subscription trials.
|
|
4050
|
+
*/
|
|
4051
|
+
trial_settings?: Amendment.TrialSettings;
|
|
4052
|
+
}
|
|
4053
|
+
type BillingBehavior = 'prorate_on_next_phase' | 'prorate_up_front' | OtherString;
|
|
3252
4054
|
interface BillingMode {
|
|
3253
4055
|
/**
|
|
3254
4056
|
* Configure behavior for flexible billing mode.
|
|
@@ -3259,6 +4061,26 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3259
4061
|
*/
|
|
3260
4062
|
type: BillingMode.Type;
|
|
3261
4063
|
}
|
|
4064
|
+
interface BillingSchedule {
|
|
4065
|
+
/**
|
|
4066
|
+
* Configure billing schedule differently for individual subscription items.
|
|
4067
|
+
*/
|
|
4068
|
+
applies_to?: Array<BillingSchedule.AppliesTo>;
|
|
4069
|
+
/**
|
|
4070
|
+
* The end date for the billing schedule. You must not set this earlier than current period end for every applicable subscription item.
|
|
4071
|
+
*/
|
|
4072
|
+
bill_until?: BillingSchedule.BillUntil;
|
|
4073
|
+
/**
|
|
4074
|
+
* 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.
|
|
4075
|
+
*/
|
|
4076
|
+
key?: string;
|
|
4077
|
+
}
|
|
4078
|
+
interface DefaultSettings {
|
|
4079
|
+
/**
|
|
4080
|
+
* Configures how the subscription schedule handles billing for phase transitions.
|
|
4081
|
+
*/
|
|
4082
|
+
phase_effective_at?: DefaultSettings.PhaseEffectiveAt;
|
|
4083
|
+
}
|
|
3262
4084
|
type EndBehavior = 'cancel' | 'release' | OtherString;
|
|
3263
4085
|
interface PauseSchedule {
|
|
3264
4086
|
/**
|
|
@@ -3323,6 +4145,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3323
4145
|
* The number of intervals the phase should last. If set, `end_date` must not be set.
|
|
3324
4146
|
*/
|
|
3325
4147
|
duration?: Phase.Duration;
|
|
4148
|
+
/**
|
|
4149
|
+
* Configures how the subscription schedule handles billing for phase transitions.
|
|
4150
|
+
*/
|
|
4151
|
+
effective_at?: Phase.EffectiveAt;
|
|
3326
4152
|
/**
|
|
3327
4153
|
* The date at which this phase of the subscription schedule ends. If set, `duration` must not be set.
|
|
3328
4154
|
*/
|
|
@@ -3343,6 +4169,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3343
4169
|
* The account on behalf of which to charge, for each of the associated subscription's invoices.
|
|
3344
4170
|
*/
|
|
3345
4171
|
on_behalf_of?: string;
|
|
4172
|
+
/**
|
|
4173
|
+
* 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).
|
|
4174
|
+
*/
|
|
4175
|
+
pause_collection?: Phase.PauseCollection;
|
|
3346
4176
|
/**
|
|
3347
4177
|
* 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
4178
|
*/
|
|
@@ -3359,67 +4189,802 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3359
4189
|
* If set to true the entire phase is counted as a trial and the customer will not be charged for any fees.
|
|
3360
4190
|
*/
|
|
3361
4191
|
trial?: boolean;
|
|
4192
|
+
/**
|
|
4193
|
+
* Specify trial behavior when crossing phase boundaries
|
|
4194
|
+
*/
|
|
4195
|
+
trial_continuation?: Phase.TrialContinuation;
|
|
3362
4196
|
/**
|
|
3363
4197
|
* 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
4198
|
*/
|
|
3365
4199
|
trial_end?: number | 'now';
|
|
4200
|
+
/**
|
|
4201
|
+
* Settings related to subscription trials.
|
|
4202
|
+
*/
|
|
4203
|
+
trial_settings?: Phase.TrialSettings;
|
|
4204
|
+
}
|
|
4205
|
+
interface Prebilling {
|
|
4206
|
+
/**
|
|
4207
|
+
* The end of the prebilled time period.
|
|
4208
|
+
*/
|
|
4209
|
+
bill_until?: Prebilling.BillUntil;
|
|
4210
|
+
/**
|
|
4211
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
4212
|
+
*/
|
|
4213
|
+
iterations?: number;
|
|
3366
4214
|
}
|
|
3367
4215
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
3368
|
-
namespace
|
|
3369
|
-
interface
|
|
4216
|
+
namespace Amendment {
|
|
4217
|
+
interface AmendmentEnd {
|
|
3370
4218
|
/**
|
|
3371
|
-
*
|
|
4219
|
+
* Use the `end` time of a given discount.
|
|
3372
4220
|
*/
|
|
3373
|
-
|
|
4221
|
+
discount_end?: AmendmentEnd.DiscountEnd;
|
|
4222
|
+
/**
|
|
4223
|
+
* Time span for the amendment starting from the `amendment_start`.
|
|
4224
|
+
*/
|
|
4225
|
+
duration?: AmendmentEnd.Duration;
|
|
4226
|
+
/**
|
|
4227
|
+
* A precise Unix timestamp for the amendment to end. Must be after the `amendment_start`.
|
|
4228
|
+
*/
|
|
4229
|
+
timestamp?: number;
|
|
4230
|
+
/**
|
|
4231
|
+
* Select one of three ways to pass the `amendment_end`.
|
|
4232
|
+
*/
|
|
4233
|
+
type: AmendmentEnd.Type;
|
|
3374
4234
|
}
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
|
|
4235
|
+
interface AmendmentStart {
|
|
4236
|
+
/**
|
|
4237
|
+
* Details of another amendment in the same array, immediately after which this amendment should begin.
|
|
4238
|
+
*/
|
|
4239
|
+
amendment_end?: AmendmentStart.AmendmentEnd;
|
|
4240
|
+
/**
|
|
4241
|
+
* Use the `end` time of a given discount.
|
|
4242
|
+
*/
|
|
4243
|
+
discount_end?: AmendmentStart.DiscountEnd;
|
|
4244
|
+
/**
|
|
4245
|
+
* A precise Unix timestamp for the amendment to start.
|
|
4246
|
+
*/
|
|
4247
|
+
timestamp?: number;
|
|
4248
|
+
/**
|
|
4249
|
+
* Select one of three ways to pass the `amendment_start`.
|
|
4250
|
+
*/
|
|
4251
|
+
type: AmendmentStart.Type;
|
|
3378
4252
|
}
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
interface Pause {
|
|
4253
|
+
type BillingCycleAnchor = 'amendment_start' | 'automatic' | OtherString;
|
|
4254
|
+
interface BillingSchedulesAction {
|
|
3382
4255
|
/**
|
|
3383
|
-
*
|
|
4256
|
+
* Specify which subscription items the billing schedule applies to.
|
|
3384
4257
|
*/
|
|
3385
|
-
|
|
4258
|
+
applies_to?: Array<BillingSchedulesAction.AppliesTo>;
|
|
3386
4259
|
/**
|
|
3387
|
-
*
|
|
4260
|
+
* Select the action.
|
|
3388
4261
|
*/
|
|
3389
|
-
|
|
4262
|
+
type: BillingSchedulesAction.Type;
|
|
3390
4263
|
}
|
|
3391
|
-
interface
|
|
4264
|
+
interface DiscountAction {
|
|
3392
4265
|
/**
|
|
3393
|
-
*
|
|
4266
|
+
* Details of the discount to add.
|
|
3394
4267
|
*/
|
|
3395
|
-
|
|
4268
|
+
add?: DiscountAction.Add;
|
|
3396
4269
|
/**
|
|
3397
|
-
*
|
|
4270
|
+
* Details of the discount to remove.
|
|
3398
4271
|
*/
|
|
3399
|
-
|
|
4272
|
+
remove?: DiscountAction.Remove;
|
|
4273
|
+
/**
|
|
4274
|
+
* Details of the discount to replace the existing discounts with.
|
|
4275
|
+
*/
|
|
4276
|
+
set?: DiscountAction.Set;
|
|
4277
|
+
/**
|
|
4278
|
+
* Determines the type of discount action.
|
|
4279
|
+
*/
|
|
4280
|
+
type: DiscountAction.Type;
|
|
3400
4281
|
}
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
|
|
3419
|
-
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
4282
|
+
type EffectiveAt = 'amendment_start' | 'billing_period_start' | OtherString;
|
|
4283
|
+
interface ItemAction {
|
|
4284
|
+
/**
|
|
4285
|
+
* 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.
|
|
4286
|
+
*/
|
|
4287
|
+
add?: ItemAction.Add;
|
|
4288
|
+
/**
|
|
4289
|
+
* Details of the subscription item to remove.
|
|
4290
|
+
*/
|
|
4291
|
+
remove?: ItemAction.Remove;
|
|
4292
|
+
/**
|
|
4293
|
+
* 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.
|
|
4294
|
+
*/
|
|
4295
|
+
set?: ItemAction.Set;
|
|
4296
|
+
/**
|
|
4297
|
+
* Determines the type of item action.
|
|
4298
|
+
*/
|
|
4299
|
+
type: ItemAction.Type;
|
|
4300
|
+
}
|
|
4301
|
+
interface MetadataAction {
|
|
4302
|
+
/**
|
|
4303
|
+
* Key-value pairs to add to schedule phase metadata. These values will merge with existing schedule phase metadata.
|
|
4304
|
+
*/
|
|
4305
|
+
add?: {
|
|
4306
|
+
[key: string]: string;
|
|
4307
|
+
};
|
|
4308
|
+
/**
|
|
4309
|
+
* Keys to remove from schedule phase metadata.
|
|
4310
|
+
*/
|
|
4311
|
+
remove?: Array<string>;
|
|
4312
|
+
/**
|
|
4313
|
+
* Key-value pairs to set as schedule phase metadata. Existing schedule phase metadata will be overwritten.
|
|
4314
|
+
*/
|
|
4315
|
+
set?: Emptyable<{
|
|
4316
|
+
[key: string]: string;
|
|
4317
|
+
}>;
|
|
4318
|
+
/**
|
|
4319
|
+
* Select one of three ways to update phase-level `metadata` on subscription schedules.
|
|
4320
|
+
*/
|
|
4321
|
+
type: MetadataAction.Type;
|
|
4322
|
+
}
|
|
4323
|
+
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
4324
|
+
interface SetPauseCollection {
|
|
4325
|
+
/**
|
|
4326
|
+
* Details of the pause_collection behavior to apply to the amendment.
|
|
4327
|
+
*/
|
|
4328
|
+
set?: SetPauseCollection.Set;
|
|
4329
|
+
/**
|
|
4330
|
+
* Determines the type of the pause_collection amendment.
|
|
4331
|
+
*/
|
|
4332
|
+
type: SetPauseCollection.Type;
|
|
4333
|
+
}
|
|
4334
|
+
type SetScheduleEnd = 'amendment_end' | 'amendment_start' | OtherString;
|
|
4335
|
+
interface TrialSettings {
|
|
4336
|
+
/**
|
|
4337
|
+
* Defines how the subscription should behave when a trial ends.
|
|
4338
|
+
*/
|
|
4339
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
4340
|
+
}
|
|
4341
|
+
namespace AmendmentEnd {
|
|
4342
|
+
interface DiscountEnd {
|
|
4343
|
+
/**
|
|
4344
|
+
* The ID of a specific discount.
|
|
4345
|
+
*/
|
|
4346
|
+
discount: string;
|
|
4347
|
+
}
|
|
4348
|
+
interface Duration {
|
|
4349
|
+
/**
|
|
4350
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4351
|
+
*/
|
|
4352
|
+
interval: Duration.Interval;
|
|
4353
|
+
/**
|
|
4354
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4355
|
+
*/
|
|
4356
|
+
interval_count: number;
|
|
4357
|
+
}
|
|
4358
|
+
type Type = 'discount_end' | 'duration' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
|
|
4359
|
+
namespace Duration {
|
|
4360
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4361
|
+
}
|
|
4362
|
+
}
|
|
4363
|
+
namespace AmendmentStart {
|
|
4364
|
+
interface AmendmentEnd {
|
|
4365
|
+
/**
|
|
4366
|
+
* 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.
|
|
4367
|
+
*/
|
|
4368
|
+
index: number;
|
|
4369
|
+
}
|
|
4370
|
+
interface DiscountEnd {
|
|
4371
|
+
/**
|
|
4372
|
+
* The ID of a specific discount.
|
|
4373
|
+
*/
|
|
4374
|
+
discount: string;
|
|
4375
|
+
}
|
|
4376
|
+
type Type = 'amendment_end' | 'discount_end' | 'now' | 'schedule_end' | 'timestamp' | 'trial_end' | 'trial_start' | 'upcoming_invoice' | OtherString;
|
|
4377
|
+
}
|
|
4378
|
+
namespace BillingSchedulesAction {
|
|
4379
|
+
interface AppliesTo {
|
|
4380
|
+
/**
|
|
4381
|
+
* The ID of the price object.
|
|
4382
|
+
*/
|
|
4383
|
+
price?: string;
|
|
4384
|
+
/**
|
|
4385
|
+
* Controls which subscription items the billing schedule applies to.
|
|
4386
|
+
*/
|
|
4387
|
+
type: 'price';
|
|
4388
|
+
}
|
|
4389
|
+
type Type = 'remove' | 'set' | OtherString;
|
|
4390
|
+
}
|
|
4391
|
+
namespace DiscountAction {
|
|
4392
|
+
interface Add {
|
|
4393
|
+
/**
|
|
4394
|
+
* The coupon code to redeem.
|
|
4395
|
+
*/
|
|
4396
|
+
coupon?: string;
|
|
4397
|
+
/**
|
|
4398
|
+
* An ID of an existing discount for a coupon that was already redeemed.
|
|
4399
|
+
*/
|
|
4400
|
+
discount?: string;
|
|
4401
|
+
/**
|
|
4402
|
+
* Details to determine how long the discount should be applied for.
|
|
4403
|
+
*/
|
|
4404
|
+
discount_end?: Add.DiscountEnd;
|
|
4405
|
+
/**
|
|
4406
|
+
* 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.
|
|
4407
|
+
*/
|
|
4408
|
+
index?: number;
|
|
4409
|
+
/**
|
|
4410
|
+
* The promotion code to redeem.
|
|
4411
|
+
*/
|
|
4412
|
+
promotion_code?: string;
|
|
4413
|
+
/**
|
|
4414
|
+
* Settings for discount application including service period anchoring.
|
|
4415
|
+
*/
|
|
4416
|
+
settings?: Add.Settings;
|
|
4417
|
+
}
|
|
4418
|
+
interface Remove {
|
|
4419
|
+
/**
|
|
4420
|
+
* The coupon code to remove from the `discounts` array.
|
|
4421
|
+
*/
|
|
4422
|
+
coupon?: string;
|
|
4423
|
+
/**
|
|
4424
|
+
* The ID of a discount to remove from the `discounts` array.
|
|
4425
|
+
*/
|
|
4426
|
+
discount?: string;
|
|
4427
|
+
/**
|
|
4428
|
+
* The ID of a promotion code to remove from the `discounts` array.
|
|
4429
|
+
*/
|
|
4430
|
+
promotion_code?: string;
|
|
4431
|
+
}
|
|
4432
|
+
interface Set {
|
|
4433
|
+
/**
|
|
4434
|
+
* The coupon code to replace the `discounts` array with.
|
|
4435
|
+
*/
|
|
4436
|
+
coupon?: string;
|
|
4437
|
+
/**
|
|
4438
|
+
* An ID of an existing discount to replace the `discounts` array with.
|
|
4439
|
+
*/
|
|
4440
|
+
discount?: string;
|
|
4441
|
+
/**
|
|
4442
|
+
* An ID of an existing promotion code to replace the `discounts` array with.
|
|
4443
|
+
*/
|
|
4444
|
+
promotion_code?: string;
|
|
4445
|
+
/**
|
|
4446
|
+
* Settings for discount application including service period anchoring.
|
|
4447
|
+
*/
|
|
4448
|
+
settings?: Set.Settings;
|
|
4449
|
+
}
|
|
4450
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
4451
|
+
namespace Add {
|
|
4452
|
+
interface DiscountEnd {
|
|
4453
|
+
/**
|
|
4454
|
+
* The type of calculation made to determine when the discount ends.
|
|
4455
|
+
*/
|
|
4456
|
+
type: 'amendment_end';
|
|
4457
|
+
}
|
|
4458
|
+
interface Settings {
|
|
4459
|
+
/**
|
|
4460
|
+
* Configures service period cycle anchoring.
|
|
4461
|
+
*/
|
|
4462
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4463
|
+
/**
|
|
4464
|
+
* 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.
|
|
4465
|
+
*/
|
|
4466
|
+
start_date?: Settings.StartDate;
|
|
4467
|
+
}
|
|
4468
|
+
namespace Settings {
|
|
4469
|
+
interface ServicePeriodAnchorConfig {
|
|
4470
|
+
/**
|
|
4471
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4472
|
+
*/
|
|
4473
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4474
|
+
/**
|
|
4475
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4476
|
+
*/
|
|
4477
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4478
|
+
}
|
|
4479
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
|
|
4480
|
+
namespace ServicePeriodAnchorConfig {
|
|
4481
|
+
interface Custom {
|
|
4482
|
+
/**
|
|
4483
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4484
|
+
*/
|
|
4485
|
+
day_of_month: number;
|
|
4486
|
+
/**
|
|
4487
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4488
|
+
*/
|
|
4489
|
+
hour?: number;
|
|
4490
|
+
/**
|
|
4491
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4492
|
+
*/
|
|
4493
|
+
minute?: number;
|
|
4494
|
+
/**
|
|
4495
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4496
|
+
*/
|
|
4497
|
+
month?: number;
|
|
4498
|
+
/**
|
|
4499
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4500
|
+
*/
|
|
4501
|
+
second?: number;
|
|
4502
|
+
}
|
|
4503
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
4504
|
+
}
|
|
4505
|
+
}
|
|
4506
|
+
}
|
|
4507
|
+
namespace Set {
|
|
4508
|
+
interface Settings {
|
|
4509
|
+
/**
|
|
4510
|
+
* Configures service period cycle anchoring.
|
|
4511
|
+
*/
|
|
4512
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4513
|
+
/**
|
|
4514
|
+
* 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.
|
|
4515
|
+
*/
|
|
4516
|
+
start_date?: Settings.StartDate;
|
|
4517
|
+
}
|
|
4518
|
+
namespace Settings {
|
|
4519
|
+
interface ServicePeriodAnchorConfig {
|
|
4520
|
+
/**
|
|
4521
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4522
|
+
*/
|
|
4523
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4524
|
+
/**
|
|
4525
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4526
|
+
*/
|
|
4527
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4528
|
+
}
|
|
4529
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
|
|
4530
|
+
namespace ServicePeriodAnchorConfig {
|
|
4531
|
+
interface Custom {
|
|
4532
|
+
/**
|
|
4533
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4534
|
+
*/
|
|
4535
|
+
day_of_month: number;
|
|
4536
|
+
/**
|
|
4537
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4538
|
+
*/
|
|
4539
|
+
hour?: number;
|
|
4540
|
+
/**
|
|
4541
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4542
|
+
*/
|
|
4543
|
+
minute?: number;
|
|
4544
|
+
/**
|
|
4545
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4546
|
+
*/
|
|
4547
|
+
month?: number;
|
|
4548
|
+
/**
|
|
4549
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4550
|
+
*/
|
|
4551
|
+
second?: number;
|
|
4552
|
+
}
|
|
4553
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
4554
|
+
}
|
|
4555
|
+
}
|
|
4556
|
+
}
|
|
4557
|
+
}
|
|
4558
|
+
namespace ItemAction {
|
|
4559
|
+
interface Add {
|
|
4560
|
+
/**
|
|
4561
|
+
* The discounts applied to the item. Subscription item discounts are applied before subscription discounts.
|
|
4562
|
+
*/
|
|
4563
|
+
discounts?: Array<Add.Discount>;
|
|
4564
|
+
/**
|
|
4565
|
+
* 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`.
|
|
4566
|
+
*/
|
|
4567
|
+
metadata?: MetadataParam;
|
|
4568
|
+
/**
|
|
4569
|
+
* The ID of the price object.
|
|
4570
|
+
*/
|
|
4571
|
+
price: string;
|
|
4572
|
+
/**
|
|
4573
|
+
* Quantity for this item.
|
|
4574
|
+
*/
|
|
4575
|
+
quantity?: number;
|
|
4576
|
+
/**
|
|
4577
|
+
* 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`.
|
|
4578
|
+
*/
|
|
4579
|
+
tax_rates?: Array<string>;
|
|
4580
|
+
/**
|
|
4581
|
+
* Options that configure the trial on the subscription item.
|
|
4582
|
+
*/
|
|
4583
|
+
trial?: Add.Trial;
|
|
4584
|
+
/**
|
|
4585
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
4586
|
+
*/
|
|
4587
|
+
trial_offer?: string;
|
|
4588
|
+
}
|
|
4589
|
+
interface Remove {
|
|
4590
|
+
/**
|
|
4591
|
+
* ID of a price to remove.
|
|
4592
|
+
*/
|
|
4593
|
+
price: string;
|
|
4594
|
+
}
|
|
4595
|
+
interface Set {
|
|
4596
|
+
/**
|
|
4597
|
+
* 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`.
|
|
4598
|
+
*/
|
|
4599
|
+
discounts?: Array<Set.Discount>;
|
|
4600
|
+
/**
|
|
4601
|
+
* 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`.
|
|
4602
|
+
*/
|
|
4603
|
+
metadata?: MetadataParam;
|
|
4604
|
+
/**
|
|
4605
|
+
* The ID of the price object.
|
|
4606
|
+
*/
|
|
4607
|
+
price: string;
|
|
4608
|
+
/**
|
|
4609
|
+
* 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`.
|
|
4610
|
+
*/
|
|
4611
|
+
quantity?: number;
|
|
4612
|
+
/**
|
|
4613
|
+
* 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`.
|
|
4614
|
+
*/
|
|
4615
|
+
tax_rates?: Array<string>;
|
|
4616
|
+
/**
|
|
4617
|
+
* 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`.
|
|
4618
|
+
*/
|
|
4619
|
+
trial?: Set.Trial;
|
|
4620
|
+
/**
|
|
4621
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
4622
|
+
*/
|
|
4623
|
+
trial_offer?: string;
|
|
4624
|
+
}
|
|
4625
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
4626
|
+
namespace Add {
|
|
4627
|
+
interface Discount {
|
|
4628
|
+
/**
|
|
4629
|
+
* ID of the coupon to create a new discount for.
|
|
4630
|
+
*/
|
|
4631
|
+
coupon?: string;
|
|
4632
|
+
/**
|
|
4633
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4634
|
+
*/
|
|
4635
|
+
discount?: string;
|
|
4636
|
+
/**
|
|
4637
|
+
* Details to determine how long the discount should be applied for.
|
|
4638
|
+
*/
|
|
4639
|
+
discount_end?: Discount.DiscountEnd;
|
|
4640
|
+
/**
|
|
4641
|
+
* ID of the promotion code to create a new discount for.
|
|
4642
|
+
*/
|
|
4643
|
+
promotion_code?: string;
|
|
4644
|
+
/**
|
|
4645
|
+
* Settings for discount application including service period anchoring.
|
|
4646
|
+
*/
|
|
4647
|
+
settings?: Discount.Settings;
|
|
4648
|
+
}
|
|
4649
|
+
interface Trial {
|
|
4650
|
+
/**
|
|
4651
|
+
* 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.
|
|
4652
|
+
*/
|
|
4653
|
+
converts_to?: Array<string>;
|
|
4654
|
+
/**
|
|
4655
|
+
* Determines the type of trial for this item.
|
|
4656
|
+
*/
|
|
4657
|
+
type: Trial.Type;
|
|
4658
|
+
}
|
|
4659
|
+
namespace Discount {
|
|
4660
|
+
interface DiscountEnd {
|
|
4661
|
+
/**
|
|
4662
|
+
* Time span for the redeemed discount.
|
|
4663
|
+
*/
|
|
4664
|
+
duration?: DiscountEnd.Duration;
|
|
4665
|
+
/**
|
|
4666
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4667
|
+
*/
|
|
4668
|
+
timestamp?: number;
|
|
4669
|
+
/**
|
|
4670
|
+
* The type of calculation made to determine when the discount ends.
|
|
4671
|
+
*/
|
|
4672
|
+
type: DiscountEnd.Type;
|
|
4673
|
+
}
|
|
4674
|
+
interface Settings {
|
|
4675
|
+
/**
|
|
4676
|
+
* Configures service period cycle anchoring.
|
|
4677
|
+
*/
|
|
4678
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4679
|
+
/**
|
|
4680
|
+
* 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.
|
|
4681
|
+
*/
|
|
4682
|
+
start_date?: Settings.StartDate;
|
|
4683
|
+
}
|
|
4684
|
+
namespace DiscountEnd {
|
|
4685
|
+
interface Duration {
|
|
4686
|
+
/**
|
|
4687
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4688
|
+
*/
|
|
4689
|
+
interval: Duration.Interval;
|
|
4690
|
+
/**
|
|
4691
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4692
|
+
*/
|
|
4693
|
+
interval_count: number;
|
|
4694
|
+
}
|
|
4695
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4696
|
+
namespace Duration {
|
|
4697
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4698
|
+
}
|
|
4699
|
+
}
|
|
4700
|
+
namespace Settings {
|
|
4701
|
+
interface ServicePeriodAnchorConfig {
|
|
4702
|
+
/**
|
|
4703
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4704
|
+
*/
|
|
4705
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4706
|
+
/**
|
|
4707
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4708
|
+
*/
|
|
4709
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4710
|
+
}
|
|
4711
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
|
|
4712
|
+
namespace ServicePeriodAnchorConfig {
|
|
4713
|
+
interface Custom {
|
|
4714
|
+
/**
|
|
4715
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4716
|
+
*/
|
|
4717
|
+
day_of_month: number;
|
|
4718
|
+
/**
|
|
4719
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4720
|
+
*/
|
|
4721
|
+
hour?: number;
|
|
4722
|
+
/**
|
|
4723
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4724
|
+
*/
|
|
4725
|
+
minute?: number;
|
|
4726
|
+
/**
|
|
4727
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4728
|
+
*/
|
|
4729
|
+
month?: number;
|
|
4730
|
+
/**
|
|
4731
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4732
|
+
*/
|
|
4733
|
+
second?: number;
|
|
4734
|
+
}
|
|
4735
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
4736
|
+
}
|
|
4737
|
+
}
|
|
4738
|
+
}
|
|
4739
|
+
namespace Trial {
|
|
4740
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
4741
|
+
}
|
|
4742
|
+
}
|
|
4743
|
+
namespace Set {
|
|
4744
|
+
interface Discount {
|
|
4745
|
+
/**
|
|
4746
|
+
* ID of the coupon to create a new discount for.
|
|
4747
|
+
*/
|
|
4748
|
+
coupon?: string;
|
|
4749
|
+
/**
|
|
4750
|
+
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4751
|
+
*/
|
|
4752
|
+
discount?: string;
|
|
4753
|
+
/**
|
|
4754
|
+
* Details to determine how long the discount should be applied for.
|
|
4755
|
+
*/
|
|
4756
|
+
discount_end?: Discount.DiscountEnd;
|
|
4757
|
+
/**
|
|
4758
|
+
* ID of the promotion code to create a new discount for.
|
|
4759
|
+
*/
|
|
4760
|
+
promotion_code?: string;
|
|
4761
|
+
/**
|
|
4762
|
+
* Settings for discount application including service period anchoring.
|
|
4763
|
+
*/
|
|
4764
|
+
settings?: Discount.Settings;
|
|
4765
|
+
}
|
|
4766
|
+
interface Trial {
|
|
4767
|
+
/**
|
|
4768
|
+
* 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.
|
|
4769
|
+
*/
|
|
4770
|
+
converts_to?: Array<string>;
|
|
4771
|
+
/**
|
|
4772
|
+
* Determines the type of trial for this item.
|
|
4773
|
+
*/
|
|
4774
|
+
type: Trial.Type;
|
|
4775
|
+
}
|
|
4776
|
+
namespace Discount {
|
|
4777
|
+
interface DiscountEnd {
|
|
4778
|
+
/**
|
|
4779
|
+
* Time span for the redeemed discount.
|
|
4780
|
+
*/
|
|
4781
|
+
duration?: DiscountEnd.Duration;
|
|
4782
|
+
/**
|
|
4783
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
4784
|
+
*/
|
|
4785
|
+
timestamp?: number;
|
|
4786
|
+
/**
|
|
4787
|
+
* The type of calculation made to determine when the discount ends.
|
|
4788
|
+
*/
|
|
4789
|
+
type: DiscountEnd.Type;
|
|
4790
|
+
}
|
|
4791
|
+
interface Settings {
|
|
4792
|
+
/**
|
|
4793
|
+
* Configures service period cycle anchoring.
|
|
4794
|
+
*/
|
|
4795
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
4796
|
+
/**
|
|
4797
|
+
* 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.
|
|
4798
|
+
*/
|
|
4799
|
+
start_date?: Settings.StartDate;
|
|
4800
|
+
}
|
|
4801
|
+
namespace DiscountEnd {
|
|
4802
|
+
interface Duration {
|
|
4803
|
+
/**
|
|
4804
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
4805
|
+
*/
|
|
4806
|
+
interval: Duration.Interval;
|
|
4807
|
+
/**
|
|
4808
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
4809
|
+
*/
|
|
4810
|
+
interval_count: number;
|
|
4811
|
+
}
|
|
4812
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4813
|
+
namespace Duration {
|
|
4814
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4815
|
+
}
|
|
4816
|
+
}
|
|
4817
|
+
namespace Settings {
|
|
4818
|
+
interface ServicePeriodAnchorConfig {
|
|
4819
|
+
/**
|
|
4820
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
4821
|
+
*/
|
|
4822
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
4823
|
+
/**
|
|
4824
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
4825
|
+
*/
|
|
4826
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
4827
|
+
}
|
|
4828
|
+
type StartDate = 'amendment_start' | 'current_period_end' | 'current_period_start' | OtherString;
|
|
4829
|
+
namespace ServicePeriodAnchorConfig {
|
|
4830
|
+
interface Custom {
|
|
4831
|
+
/**
|
|
4832
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
4833
|
+
*/
|
|
4834
|
+
day_of_month: number;
|
|
4835
|
+
/**
|
|
4836
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
4837
|
+
*/
|
|
4838
|
+
hour?: number;
|
|
4839
|
+
/**
|
|
4840
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
4841
|
+
*/
|
|
4842
|
+
minute?: number;
|
|
4843
|
+
/**
|
|
4844
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
4845
|
+
*/
|
|
4846
|
+
month?: number;
|
|
4847
|
+
/**
|
|
4848
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
4849
|
+
*/
|
|
4850
|
+
second?: number;
|
|
4851
|
+
}
|
|
4852
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
4853
|
+
}
|
|
4854
|
+
}
|
|
4855
|
+
}
|
|
4856
|
+
namespace Trial {
|
|
4857
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
4858
|
+
}
|
|
4859
|
+
}
|
|
4860
|
+
}
|
|
4861
|
+
namespace MetadataAction {
|
|
4862
|
+
type Type = 'add' | 'remove' | 'set' | OtherString;
|
|
4863
|
+
}
|
|
4864
|
+
namespace SetPauseCollection {
|
|
4865
|
+
interface Set {
|
|
4866
|
+
/**
|
|
4867
|
+
* The payment collection behavior for this subscription while paused.
|
|
4868
|
+
*/
|
|
4869
|
+
behavior: Set.Behavior;
|
|
4870
|
+
}
|
|
4871
|
+
type Type = 'remove' | 'set' | OtherString;
|
|
4872
|
+
namespace Set {
|
|
4873
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
4874
|
+
}
|
|
4875
|
+
}
|
|
4876
|
+
namespace TrialSettings {
|
|
4877
|
+
interface EndBehavior {
|
|
4878
|
+
/**
|
|
4879
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
4880
|
+
*/
|
|
4881
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
4882
|
+
}
|
|
4883
|
+
namespace EndBehavior {
|
|
4884
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
4885
|
+
}
|
|
4886
|
+
}
|
|
4887
|
+
}
|
|
4888
|
+
namespace BillingMode {
|
|
4889
|
+
interface Flexible {
|
|
4890
|
+
/**
|
|
4891
|
+
* Controls how invoices and invoice items display proration amounts and discount amounts.
|
|
4892
|
+
*/
|
|
4893
|
+
proration_discounts?: Flexible.ProrationDiscounts;
|
|
4894
|
+
}
|
|
4895
|
+
type Type = 'classic' | 'flexible' | OtherString;
|
|
4896
|
+
namespace Flexible {
|
|
4897
|
+
type ProrationDiscounts = 'included' | 'itemized' | OtherString;
|
|
4898
|
+
}
|
|
4899
|
+
}
|
|
4900
|
+
namespace BillingSchedule {
|
|
4901
|
+
interface AppliesTo {
|
|
4902
|
+
/**
|
|
4903
|
+
* The ID of the price object.
|
|
4904
|
+
*/
|
|
4905
|
+
price?: string;
|
|
4906
|
+
/**
|
|
4907
|
+
* Controls which subscription items the billing schedule applies to.
|
|
4908
|
+
*/
|
|
4909
|
+
type: 'price';
|
|
4910
|
+
}
|
|
4911
|
+
interface BillUntil {
|
|
4912
|
+
/**
|
|
4913
|
+
* Specifies the billing period.
|
|
4914
|
+
*/
|
|
4915
|
+
duration?: BillUntil.Duration;
|
|
4916
|
+
/**
|
|
4917
|
+
* The end date of the billing schedule.
|
|
4918
|
+
*/
|
|
4919
|
+
timestamp?: number;
|
|
4920
|
+
/**
|
|
4921
|
+
* Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
4922
|
+
*/
|
|
4923
|
+
type: BillUntil.Type;
|
|
4924
|
+
}
|
|
4925
|
+
namespace BillUntil {
|
|
4926
|
+
interface Duration {
|
|
4927
|
+
/**
|
|
4928
|
+
* Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
4929
|
+
*/
|
|
4930
|
+
interval: Duration.Interval;
|
|
4931
|
+
/**
|
|
4932
|
+
* The multiplier applied to the interval.
|
|
4933
|
+
*/
|
|
4934
|
+
interval_count?: number;
|
|
4935
|
+
}
|
|
4936
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
4937
|
+
namespace Duration {
|
|
4938
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
4939
|
+
}
|
|
4940
|
+
}
|
|
4941
|
+
}
|
|
4942
|
+
namespace DefaultSettings {
|
|
4943
|
+
type PhaseEffectiveAt = 'billing_period_start' | 'phase_start' | OtherString;
|
|
4944
|
+
}
|
|
4945
|
+
namespace PauseSchedule {
|
|
4946
|
+
interface Pause {
|
|
4947
|
+
/**
|
|
4948
|
+
* When to pause the subscription.
|
|
4949
|
+
*/
|
|
4950
|
+
pause_at?: Pause.PauseAt;
|
|
4951
|
+
/**
|
|
4952
|
+
* Settings controlling billing behavior during the pause.
|
|
4953
|
+
*/
|
|
4954
|
+
settings?: Pause.Settings;
|
|
4955
|
+
}
|
|
4956
|
+
interface Resume {
|
|
4957
|
+
/**
|
|
4958
|
+
* When to resume the subscription.
|
|
4959
|
+
*/
|
|
4960
|
+
resume_at?: Resume.ResumeAt;
|
|
4961
|
+
/**
|
|
4962
|
+
* Settings controlling how the subscription resumes.
|
|
4963
|
+
*/
|
|
4964
|
+
settings?: Resume.Settings;
|
|
4965
|
+
}
|
|
4966
|
+
namespace Pause {
|
|
4967
|
+
interface PauseAt {
|
|
4968
|
+
/**
|
|
4969
|
+
* The Unix timestamp at which to pause the subscription. Required when `type` is `timestamp`.
|
|
4970
|
+
*/
|
|
4971
|
+
timestamp?: number;
|
|
4972
|
+
/**
|
|
4973
|
+
* When to pause the subscription. Use `now` to pause immediately or `timestamp` to pause at a specific time.
|
|
4974
|
+
*/
|
|
4975
|
+
type: PauseAt.Type;
|
|
4976
|
+
}
|
|
4977
|
+
interface Settings {
|
|
4978
|
+
/**
|
|
4979
|
+
* Controls what to bill for when pausing the subscription.
|
|
4980
|
+
*/
|
|
4981
|
+
bill_for?: Settings.BillFor;
|
|
4982
|
+
/**
|
|
4983
|
+
* 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.
|
|
4984
|
+
*/
|
|
4985
|
+
invoicing_behavior?: Settings.InvoicingBehavior;
|
|
4986
|
+
/**
|
|
4987
|
+
* The pause type. Currently only `subscription` is supported.
|
|
3423
4988
|
*/
|
|
3424
4989
|
type?: Settings.Type;
|
|
3425
4990
|
}
|
|
@@ -3579,10 +5144,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3579
5144
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3580
5145
|
*/
|
|
3581
5146
|
discount?: string;
|
|
5147
|
+
/**
|
|
5148
|
+
* Details to determine how long the discount should be applied for.
|
|
5149
|
+
*/
|
|
5150
|
+
discount_end?: Discount.DiscountEnd;
|
|
3582
5151
|
/**
|
|
3583
5152
|
* ID of the promotion code to create a new discount for.
|
|
3584
5153
|
*/
|
|
3585
5154
|
promotion_code?: string;
|
|
5155
|
+
/**
|
|
5156
|
+
* Settings for discount application including service period anchoring.
|
|
5157
|
+
*/
|
|
5158
|
+
settings?: Discount.Settings;
|
|
3586
5159
|
}
|
|
3587
5160
|
interface Duration {
|
|
3588
5161
|
/**
|
|
@@ -3594,6 +5167,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3594
5167
|
*/
|
|
3595
5168
|
interval_count?: number;
|
|
3596
5169
|
}
|
|
5170
|
+
type EffectiveAt = 'billing_period_start' | 'phase_start' | OtherString;
|
|
3597
5171
|
interface InvoiceSettings {
|
|
3598
5172
|
/**
|
|
3599
5173
|
* 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 +5215,20 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3641
5215
|
* 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
5216
|
*/
|
|
3643
5217
|
tax_rates?: Emptyable<Array<string>>;
|
|
5218
|
+
/**
|
|
5219
|
+
* Options that configure the trial on the subscription item.
|
|
5220
|
+
*/
|
|
5221
|
+
trial?: Item.Trial;
|
|
5222
|
+
/**
|
|
5223
|
+
* The ID of the trial offer to apply to the configuration item.
|
|
5224
|
+
*/
|
|
5225
|
+
trial_offer?: string;
|
|
5226
|
+
}
|
|
5227
|
+
interface PauseCollection {
|
|
5228
|
+
/**
|
|
5229
|
+
* The payment collection behavior for this subscription while paused.
|
|
5230
|
+
*/
|
|
5231
|
+
behavior: PauseCollection.Behavior;
|
|
3644
5232
|
}
|
|
3645
5233
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
3646
5234
|
interface TransferData {
|
|
@@ -3653,6 +5241,13 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3653
5241
|
*/
|
|
3654
5242
|
destination: string;
|
|
3655
5243
|
}
|
|
5244
|
+
type TrialContinuation = 'continue' | 'none' | OtherString;
|
|
5245
|
+
interface TrialSettings {
|
|
5246
|
+
/**
|
|
5247
|
+
* Defines how the subscription should behave when a trial ends.
|
|
5248
|
+
*/
|
|
5249
|
+
end_behavior?: TrialSettings.EndBehavior;
|
|
5250
|
+
}
|
|
3656
5251
|
namespace AddInvoiceItem {
|
|
3657
5252
|
interface Discount {
|
|
3658
5253
|
/**
|
|
@@ -3663,6 +5258,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3663
5258
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3664
5259
|
*/
|
|
3665
5260
|
discount?: string;
|
|
5261
|
+
/**
|
|
5262
|
+
* Details to determine how long the discount should be applied for.
|
|
5263
|
+
*/
|
|
5264
|
+
discount_end?: Discount.DiscountEnd;
|
|
3666
5265
|
/**
|
|
3667
5266
|
* ID of the promotion code to create a new discount for.
|
|
3668
5267
|
*/
|
|
@@ -3700,6 +5299,38 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3700
5299
|
*/
|
|
3701
5300
|
unit_amount_decimal?: Decimal;
|
|
3702
5301
|
}
|
|
5302
|
+
namespace Discount {
|
|
5303
|
+
interface DiscountEnd {
|
|
5304
|
+
/**
|
|
5305
|
+
* Time span for the redeemed discount.
|
|
5306
|
+
*/
|
|
5307
|
+
duration?: DiscountEnd.Duration;
|
|
5308
|
+
/**
|
|
5309
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5310
|
+
*/
|
|
5311
|
+
timestamp?: number;
|
|
5312
|
+
/**
|
|
5313
|
+
* The type of calculation made to determine when the discount ends.
|
|
5314
|
+
*/
|
|
5315
|
+
type: DiscountEnd.Type;
|
|
5316
|
+
}
|
|
5317
|
+
namespace DiscountEnd {
|
|
5318
|
+
interface Duration {
|
|
5319
|
+
/**
|
|
5320
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5321
|
+
*/
|
|
5322
|
+
interval: Duration.Interval;
|
|
5323
|
+
/**
|
|
5324
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5325
|
+
*/
|
|
5326
|
+
interval_count: number;
|
|
5327
|
+
}
|
|
5328
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
5329
|
+
namespace Duration {
|
|
5330
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5331
|
+
}
|
|
5332
|
+
}
|
|
5333
|
+
}
|
|
3703
5334
|
namespace Period {
|
|
3704
5335
|
interface End {
|
|
3705
5336
|
/**
|
|
@@ -3744,7 +5375,87 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3744
5375
|
type: Liability.Type;
|
|
3745
5376
|
}
|
|
3746
5377
|
namespace Liability {
|
|
3747
|
-
type Type = 'account' | 'self' | OtherString;
|
|
5378
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
5379
|
+
}
|
|
5380
|
+
}
|
|
5381
|
+
namespace Discount {
|
|
5382
|
+
interface DiscountEnd {
|
|
5383
|
+
/**
|
|
5384
|
+
* Time span for the redeemed discount.
|
|
5385
|
+
*/
|
|
5386
|
+
duration?: DiscountEnd.Duration;
|
|
5387
|
+
/**
|
|
5388
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5389
|
+
*/
|
|
5390
|
+
timestamp?: number;
|
|
5391
|
+
/**
|
|
5392
|
+
* The type of calculation made to determine when the discount ends.
|
|
5393
|
+
*/
|
|
5394
|
+
type: DiscountEnd.Type;
|
|
5395
|
+
}
|
|
5396
|
+
interface Settings {
|
|
5397
|
+
/**
|
|
5398
|
+
* Configures service period cycle anchoring.
|
|
5399
|
+
*/
|
|
5400
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
5401
|
+
/**
|
|
5402
|
+
* 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.
|
|
5403
|
+
*/
|
|
5404
|
+
start_date?: Settings.StartDate;
|
|
5405
|
+
}
|
|
5406
|
+
namespace DiscountEnd {
|
|
5407
|
+
interface Duration {
|
|
5408
|
+
/**
|
|
5409
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5410
|
+
*/
|
|
5411
|
+
interval: Duration.Interval;
|
|
5412
|
+
/**
|
|
5413
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5414
|
+
*/
|
|
5415
|
+
interval_count: number;
|
|
5416
|
+
}
|
|
5417
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
5418
|
+
namespace Duration {
|
|
5419
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5420
|
+
}
|
|
5421
|
+
}
|
|
5422
|
+
namespace Settings {
|
|
5423
|
+
interface ServicePeriodAnchorConfig {
|
|
5424
|
+
/**
|
|
5425
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
5426
|
+
*/
|
|
5427
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
5428
|
+
/**
|
|
5429
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
5430
|
+
*/
|
|
5431
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
5432
|
+
}
|
|
5433
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'phase_start' | OtherString;
|
|
5434
|
+
namespace ServicePeriodAnchorConfig {
|
|
5435
|
+
interface Custom {
|
|
5436
|
+
/**
|
|
5437
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
5438
|
+
*/
|
|
5439
|
+
day_of_month: number;
|
|
5440
|
+
/**
|
|
5441
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
5442
|
+
*/
|
|
5443
|
+
hour?: number;
|
|
5444
|
+
/**
|
|
5445
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
5446
|
+
*/
|
|
5447
|
+
minute?: number;
|
|
5448
|
+
/**
|
|
5449
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
5450
|
+
*/
|
|
5451
|
+
month?: number;
|
|
5452
|
+
/**
|
|
5453
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
5454
|
+
*/
|
|
5455
|
+
second?: number;
|
|
5456
|
+
}
|
|
5457
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
5458
|
+
}
|
|
3748
5459
|
}
|
|
3749
5460
|
}
|
|
3750
5461
|
namespace Duration {
|
|
@@ -3762,7 +5473,7 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3762
5473
|
type: Issuer.Type;
|
|
3763
5474
|
}
|
|
3764
5475
|
namespace Issuer {
|
|
3765
|
-
type Type = 'account' | 'self' | OtherString;
|
|
5476
|
+
type Type = 'account' | 'application' | 'self' | OtherString;
|
|
3766
5477
|
}
|
|
3767
5478
|
}
|
|
3768
5479
|
namespace Item {
|
|
@@ -3781,10 +5492,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3781
5492
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
3782
5493
|
*/
|
|
3783
5494
|
discount?: string;
|
|
5495
|
+
/**
|
|
5496
|
+
* Details to determine how long the discount should be applied for.
|
|
5497
|
+
*/
|
|
5498
|
+
discount_end?: Discount.DiscountEnd;
|
|
3784
5499
|
/**
|
|
3785
5500
|
* ID of the promotion code to create a new discount for.
|
|
3786
5501
|
*/
|
|
3787
5502
|
promotion_code?: string;
|
|
5503
|
+
/**
|
|
5504
|
+
* Settings for discount application including service period anchoring.
|
|
5505
|
+
*/
|
|
5506
|
+
settings?: Discount.Settings;
|
|
3788
5507
|
}
|
|
3789
5508
|
interface PriceData {
|
|
3790
5509
|
/**
|
|
@@ -3812,6 +5531,96 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3812
5531
|
*/
|
|
3813
5532
|
unit_amount_decimal?: Decimal;
|
|
3814
5533
|
}
|
|
5534
|
+
interface Trial {
|
|
5535
|
+
/**
|
|
5536
|
+
* 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.
|
|
5537
|
+
*/
|
|
5538
|
+
converts_to?: Array<string>;
|
|
5539
|
+
/**
|
|
5540
|
+
* Determines the type of trial for this item.
|
|
5541
|
+
*/
|
|
5542
|
+
type: Trial.Type;
|
|
5543
|
+
}
|
|
5544
|
+
namespace Discount {
|
|
5545
|
+
interface DiscountEnd {
|
|
5546
|
+
/**
|
|
5547
|
+
* Time span for the redeemed discount.
|
|
5548
|
+
*/
|
|
5549
|
+
duration?: DiscountEnd.Duration;
|
|
5550
|
+
/**
|
|
5551
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5552
|
+
*/
|
|
5553
|
+
timestamp?: number;
|
|
5554
|
+
/**
|
|
5555
|
+
* The type of calculation made to determine when the discount ends.
|
|
5556
|
+
*/
|
|
5557
|
+
type: DiscountEnd.Type;
|
|
5558
|
+
}
|
|
5559
|
+
interface Settings {
|
|
5560
|
+
/**
|
|
5561
|
+
* Configures service period cycle anchoring.
|
|
5562
|
+
*/
|
|
5563
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
5564
|
+
/**
|
|
5565
|
+
* 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.
|
|
5566
|
+
*/
|
|
5567
|
+
start_date?: Settings.StartDate;
|
|
5568
|
+
}
|
|
5569
|
+
namespace DiscountEnd {
|
|
5570
|
+
interface Duration {
|
|
5571
|
+
/**
|
|
5572
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5573
|
+
*/
|
|
5574
|
+
interval: Duration.Interval;
|
|
5575
|
+
/**
|
|
5576
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5577
|
+
*/
|
|
5578
|
+
interval_count: number;
|
|
5579
|
+
}
|
|
5580
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
5581
|
+
namespace Duration {
|
|
5582
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5583
|
+
}
|
|
5584
|
+
}
|
|
5585
|
+
namespace Settings {
|
|
5586
|
+
interface ServicePeriodAnchorConfig {
|
|
5587
|
+
/**
|
|
5588
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
5589
|
+
*/
|
|
5590
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
5591
|
+
/**
|
|
5592
|
+
* The type of service period anchor config. Defaults to `inherit` if omitted.
|
|
5593
|
+
*/
|
|
5594
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
5595
|
+
}
|
|
5596
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'phase_start' | OtherString;
|
|
5597
|
+
namespace ServicePeriodAnchorConfig {
|
|
5598
|
+
interface Custom {
|
|
5599
|
+
/**
|
|
5600
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
5601
|
+
*/
|
|
5602
|
+
day_of_month: number;
|
|
5603
|
+
/**
|
|
5604
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
5605
|
+
*/
|
|
5606
|
+
hour?: number;
|
|
5607
|
+
/**
|
|
5608
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
5609
|
+
*/
|
|
5610
|
+
minute?: number;
|
|
5611
|
+
/**
|
|
5612
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
5613
|
+
*/
|
|
5614
|
+
month?: number;
|
|
5615
|
+
/**
|
|
5616
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
5617
|
+
*/
|
|
5618
|
+
second?: number;
|
|
5619
|
+
}
|
|
5620
|
+
type Type = 'custom' | 'inherit' | OtherString;
|
|
5621
|
+
}
|
|
5622
|
+
}
|
|
5623
|
+
}
|
|
3815
5624
|
namespace PriceData {
|
|
3816
5625
|
interface Recurring {
|
|
3817
5626
|
/**
|
|
@@ -3828,6 +5637,65 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3828
5637
|
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
3829
5638
|
}
|
|
3830
5639
|
}
|
|
5640
|
+
namespace Trial {
|
|
5641
|
+
type Type = 'free' | 'paid' | OtherString;
|
|
5642
|
+
}
|
|
5643
|
+
}
|
|
5644
|
+
namespace PauseCollection {
|
|
5645
|
+
type Behavior = 'keep_as_draft' | 'mark_uncollectible' | 'void' | OtherString;
|
|
5646
|
+
}
|
|
5647
|
+
namespace TrialSettings {
|
|
5648
|
+
interface EndBehavior {
|
|
5649
|
+
/**
|
|
5650
|
+
* Configure how an opt-in following a paid trial is billed when using `billing_behavior: prorate_up_front`.
|
|
5651
|
+
*/
|
|
5652
|
+
prorate_up_front?: EndBehavior.ProrateUpFront;
|
|
5653
|
+
}
|
|
5654
|
+
namespace EndBehavior {
|
|
5655
|
+
type ProrateUpFront = 'defer' | 'include' | OtherString;
|
|
5656
|
+
}
|
|
5657
|
+
}
|
|
5658
|
+
}
|
|
5659
|
+
namespace Prebilling {
|
|
5660
|
+
interface BillUntil {
|
|
5661
|
+
/**
|
|
5662
|
+
* End the prebilled period when a specified amendment ends.
|
|
5663
|
+
*/
|
|
5664
|
+
amendment_end?: BillUntil.AmendmentEnd;
|
|
5665
|
+
/**
|
|
5666
|
+
* Time span for prebilling, starting from `bill_from`.
|
|
5667
|
+
*/
|
|
5668
|
+
duration?: BillUntil.Duration;
|
|
5669
|
+
/**
|
|
5670
|
+
* End the prebilled period at a precise integer timestamp, starting from the Unix epoch.
|
|
5671
|
+
*/
|
|
5672
|
+
timestamp?: number;
|
|
5673
|
+
/**
|
|
5674
|
+
* Select one of several ways to pass the `bill_until` value.
|
|
5675
|
+
*/
|
|
5676
|
+
type: BillUntil.Type;
|
|
5677
|
+
}
|
|
5678
|
+
namespace BillUntil {
|
|
5679
|
+
interface AmendmentEnd {
|
|
5680
|
+
/**
|
|
5681
|
+
* 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.
|
|
5682
|
+
*/
|
|
5683
|
+
index: number;
|
|
5684
|
+
}
|
|
5685
|
+
interface Duration {
|
|
5686
|
+
/**
|
|
5687
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5688
|
+
*/
|
|
5689
|
+
interval: Duration.Interval;
|
|
5690
|
+
/**
|
|
5691
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5692
|
+
*/
|
|
5693
|
+
interval_count: number;
|
|
5694
|
+
}
|
|
5695
|
+
type Type = 'amendment_end' | 'duration' | 'schedule_end' | 'timestamp' | OtherString;
|
|
5696
|
+
namespace Duration {
|
|
5697
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5698
|
+
}
|
|
3831
5699
|
}
|
|
3832
5700
|
}
|
|
3833
5701
|
}
|
|
@@ -3931,6 +5799,12 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3931
5799
|
*/
|
|
3932
5800
|
type?: Pause.Type;
|
|
3933
5801
|
}
|
|
5802
|
+
interface Prebilling {
|
|
5803
|
+
/**
|
|
5804
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
5805
|
+
*/
|
|
5806
|
+
iterations: number;
|
|
5807
|
+
}
|
|
3934
5808
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none' | OtherString;
|
|
3935
5809
|
namespace BillingCycleAnchor {
|
|
3936
5810
|
type Type = 'now' | 'timestamp' | 'unchanged' | OtherString;
|
|
@@ -3997,6 +5871,10 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
3997
5871
|
usage_gte: number;
|
|
3998
5872
|
}
|
|
3999
5873
|
interface CurrentTrial {
|
|
5874
|
+
/**
|
|
5875
|
+
* 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`.
|
|
5876
|
+
*/
|
|
5877
|
+
trial_end?: number;
|
|
4000
5878
|
/**
|
|
4001
5879
|
* The ID of the trial offer to apply to the subscription item.
|
|
4002
5880
|
*/
|
|
@@ -4011,10 +5889,18 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4011
5889
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4012
5890
|
*/
|
|
4013
5891
|
discount?: string;
|
|
5892
|
+
/**
|
|
5893
|
+
* Details to determine how long the discount should be applied for.
|
|
5894
|
+
*/
|
|
5895
|
+
discount_end?: Discount.DiscountEnd;
|
|
4014
5896
|
/**
|
|
4015
5897
|
* ID of the promotion code to create a new discount for.
|
|
4016
5898
|
*/
|
|
4017
5899
|
promotion_code?: string;
|
|
5900
|
+
/**
|
|
5901
|
+
* Settings for discount application including service period anchoring.
|
|
5902
|
+
*/
|
|
5903
|
+
settings?: Discount.Settings;
|
|
4018
5904
|
}
|
|
4019
5905
|
interface PriceData {
|
|
4020
5906
|
/**
|
|
@@ -4042,6 +5928,86 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4042
5928
|
*/
|
|
4043
5929
|
unit_amount_decimal?: Decimal;
|
|
4044
5930
|
}
|
|
5931
|
+
namespace Discount {
|
|
5932
|
+
interface DiscountEnd {
|
|
5933
|
+
/**
|
|
5934
|
+
* Time span for the redeemed discount.
|
|
5935
|
+
*/
|
|
5936
|
+
duration?: DiscountEnd.Duration;
|
|
5937
|
+
/**
|
|
5938
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
5939
|
+
*/
|
|
5940
|
+
timestamp?: number;
|
|
5941
|
+
/**
|
|
5942
|
+
* The type of calculation made to determine when the discount ends.
|
|
5943
|
+
*/
|
|
5944
|
+
type: DiscountEnd.Type;
|
|
5945
|
+
}
|
|
5946
|
+
interface Settings {
|
|
5947
|
+
/**
|
|
5948
|
+
* Configures service period cycle anchoring.
|
|
5949
|
+
*/
|
|
5950
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
5951
|
+
/**
|
|
5952
|
+
* 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.
|
|
5953
|
+
*/
|
|
5954
|
+
start_date?: Settings.StartDate;
|
|
5955
|
+
}
|
|
5956
|
+
namespace DiscountEnd {
|
|
5957
|
+
interface Duration {
|
|
5958
|
+
/**
|
|
5959
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
5960
|
+
*/
|
|
5961
|
+
interval: Duration.Interval;
|
|
5962
|
+
/**
|
|
5963
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
5964
|
+
*/
|
|
5965
|
+
interval_count: number;
|
|
5966
|
+
}
|
|
5967
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
5968
|
+
namespace Duration {
|
|
5969
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
5970
|
+
}
|
|
5971
|
+
}
|
|
5972
|
+
namespace Settings {
|
|
5973
|
+
interface ServicePeriodAnchorConfig {
|
|
5974
|
+
/**
|
|
5975
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
5976
|
+
*/
|
|
5977
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
5978
|
+
/**
|
|
5979
|
+
* The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
5980
|
+
*/
|
|
5981
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
5982
|
+
}
|
|
5983
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'now' | OtherString;
|
|
5984
|
+
namespace ServicePeriodAnchorConfig {
|
|
5985
|
+
interface Custom {
|
|
5986
|
+
/**
|
|
5987
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
5988
|
+
*/
|
|
5989
|
+
day_of_month: number;
|
|
5990
|
+
/**
|
|
5991
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
5992
|
+
*/
|
|
5993
|
+
hour?: number;
|
|
5994
|
+
/**
|
|
5995
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
5996
|
+
*/
|
|
5997
|
+
minute?: number;
|
|
5998
|
+
/**
|
|
5999
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
6000
|
+
*/
|
|
6001
|
+
month?: number;
|
|
6002
|
+
/**
|
|
6003
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
6004
|
+
*/
|
|
6005
|
+
second?: number;
|
|
6006
|
+
}
|
|
6007
|
+
type Type = 'custom' | 'subscription_service_cycle_anchor' | OtherString;
|
|
6008
|
+
}
|
|
6009
|
+
}
|
|
6010
|
+
}
|
|
4045
6011
|
namespace PriceData {
|
|
4046
6012
|
interface Recurring {
|
|
4047
6013
|
/**
|
|
@@ -4095,6 +6061,16 @@ export declare namespace InvoiceCreatePreviewParams {
|
|
|
4095
6061
|
}
|
|
4096
6062
|
}
|
|
4097
6063
|
}
|
|
6064
|
+
export interface InvoiceDetachPaymentParams {
|
|
6065
|
+
/**
|
|
6066
|
+
* Specifies which fields in the response should be expanded.
|
|
6067
|
+
*/
|
|
6068
|
+
expand?: Array<string>;
|
|
6069
|
+
/**
|
|
6070
|
+
* The ID of the PaymentIntent to detach from the invoice.
|
|
6071
|
+
*/
|
|
6072
|
+
payment_intent?: string;
|
|
6073
|
+
}
|
|
4098
6074
|
export interface InvoiceFinalizeInvoiceParams {
|
|
4099
6075
|
/**
|
|
4100
6076
|
* 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 +6180,32 @@ export interface InvoiceSendInvoiceParams {
|
|
|
4204
6180
|
*/
|
|
4205
6181
|
expand?: Array<string>;
|
|
4206
6182
|
}
|
|
6183
|
+
export interface InvoiceSerializeBatchAddLinesParams {
|
|
6184
|
+
}
|
|
6185
|
+
export interface InvoiceSerializeBatchCreateParams {
|
|
6186
|
+
}
|
|
6187
|
+
export interface InvoiceSerializeBatchCreatePreviewParams {
|
|
6188
|
+
}
|
|
6189
|
+
export interface InvoiceSerializeBatchDeleteParams {
|
|
6190
|
+
}
|
|
6191
|
+
export interface InvoiceSerializeBatchFinalizeInvoiceParams {
|
|
6192
|
+
}
|
|
6193
|
+
export interface InvoiceSerializeBatchMarkUncollectibleParams {
|
|
6194
|
+
}
|
|
6195
|
+
export interface InvoiceSerializeBatchPayParams {
|
|
6196
|
+
}
|
|
6197
|
+
export interface InvoiceSerializeBatchRemoveLinesParams {
|
|
6198
|
+
}
|
|
6199
|
+
export interface InvoiceSerializeBatchSendInvoiceParams {
|
|
6200
|
+
}
|
|
6201
|
+
export interface InvoiceSerializeBatchUpdateParams {
|
|
6202
|
+
}
|
|
6203
|
+
export interface InvoiceSerializeBatchUpdateLineItemParams {
|
|
6204
|
+
}
|
|
6205
|
+
export interface InvoiceSerializeBatchUpdateLinesParams {
|
|
6206
|
+
}
|
|
6207
|
+
export interface InvoiceSerializeBatchVoidInvoiceParams {
|
|
6208
|
+
}
|
|
4207
6209
|
export interface InvoiceUpdateLinesParams {
|
|
4208
6210
|
/**
|
|
4209
6211
|
* The line items to update.
|
|
@@ -4242,6 +6244,10 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
4242
6244
|
* ID of an existing line item on the invoice.
|
|
4243
6245
|
*/
|
|
4244
6246
|
id: string;
|
|
6247
|
+
/**
|
|
6248
|
+
* 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.
|
|
6249
|
+
*/
|
|
6250
|
+
margins?: Emptyable<Array<string>>;
|
|
4245
6251
|
/**
|
|
4246
6252
|
* 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
6253
|
*/
|
|
@@ -4285,6 +6291,10 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
4285
6291
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4286
6292
|
*/
|
|
4287
6293
|
discount?: string;
|
|
6294
|
+
/**
|
|
6295
|
+
* Details to determine how long the discount should be applied for.
|
|
6296
|
+
*/
|
|
6297
|
+
discount_end?: Discount.DiscountEnd;
|
|
4288
6298
|
/**
|
|
4289
6299
|
* ID of the promotion code to create a new discount for.
|
|
4290
6300
|
*/
|
|
@@ -4352,6 +6362,38 @@ export declare namespace InvoiceUpdateLinesParams {
|
|
|
4352
6362
|
*/
|
|
4353
6363
|
taxable_amount: number;
|
|
4354
6364
|
}
|
|
6365
|
+
namespace Discount {
|
|
6366
|
+
interface DiscountEnd {
|
|
6367
|
+
/**
|
|
6368
|
+
* Time span for the redeemed discount.
|
|
6369
|
+
*/
|
|
6370
|
+
duration?: DiscountEnd.Duration;
|
|
6371
|
+
/**
|
|
6372
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
6373
|
+
*/
|
|
6374
|
+
timestamp?: number;
|
|
6375
|
+
/**
|
|
6376
|
+
* The type of calculation made to determine when the discount ends.
|
|
6377
|
+
*/
|
|
6378
|
+
type: DiscountEnd.Type;
|
|
6379
|
+
}
|
|
6380
|
+
namespace DiscountEnd {
|
|
6381
|
+
interface Duration {
|
|
6382
|
+
/**
|
|
6383
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
6384
|
+
*/
|
|
6385
|
+
interval: Duration.Interval;
|
|
6386
|
+
/**
|
|
6387
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
6388
|
+
*/
|
|
6389
|
+
interval_count: number;
|
|
6390
|
+
}
|
|
6391
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
6392
|
+
namespace Duration {
|
|
6393
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
6394
|
+
}
|
|
6395
|
+
}
|
|
6396
|
+
}
|
|
4355
6397
|
namespace PriceData {
|
|
4356
6398
|
interface ProductData {
|
|
4357
6399
|
/**
|
|
@@ -4465,6 +6507,10 @@ export interface InvoiceUpdateLineItemParams {
|
|
|
4465
6507
|
* Specifies which fields in the response should be expanded.
|
|
4466
6508
|
*/
|
|
4467
6509
|
expand?: Array<string>;
|
|
6510
|
+
/**
|
|
6511
|
+
* 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.
|
|
6512
|
+
*/
|
|
6513
|
+
margins?: Emptyable<Array<string>>;
|
|
4468
6514
|
/**
|
|
4469
6515
|
* 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
6516
|
*/
|
|
@@ -4508,6 +6554,10 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
4508
6554
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
4509
6555
|
*/
|
|
4510
6556
|
discount?: string;
|
|
6557
|
+
/**
|
|
6558
|
+
* Details to determine how long the discount should be applied for.
|
|
6559
|
+
*/
|
|
6560
|
+
discount_end?: Discount.DiscountEnd;
|
|
4511
6561
|
/**
|
|
4512
6562
|
* ID of the promotion code to create a new discount for.
|
|
4513
6563
|
*/
|
|
@@ -4575,6 +6625,38 @@ export declare namespace InvoiceUpdateLineItemParams {
|
|
|
4575
6625
|
*/
|
|
4576
6626
|
taxable_amount: number;
|
|
4577
6627
|
}
|
|
6628
|
+
namespace Discount {
|
|
6629
|
+
interface DiscountEnd {
|
|
6630
|
+
/**
|
|
6631
|
+
* Time span for the redeemed discount.
|
|
6632
|
+
*/
|
|
6633
|
+
duration?: DiscountEnd.Duration;
|
|
6634
|
+
/**
|
|
6635
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
6636
|
+
*/
|
|
6637
|
+
timestamp?: number;
|
|
6638
|
+
/**
|
|
6639
|
+
* The type of calculation made to determine when the discount ends.
|
|
6640
|
+
*/
|
|
6641
|
+
type: DiscountEnd.Type;
|
|
6642
|
+
}
|
|
6643
|
+
namespace DiscountEnd {
|
|
6644
|
+
interface Duration {
|
|
6645
|
+
/**
|
|
6646
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
6647
|
+
*/
|
|
6648
|
+
interval: Duration.Interval;
|
|
6649
|
+
/**
|
|
6650
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
6651
|
+
*/
|
|
6652
|
+
interval_count: number;
|
|
6653
|
+
}
|
|
6654
|
+
type Type = 'duration' | 'timestamp' | OtherString;
|
|
6655
|
+
namespace Duration {
|
|
6656
|
+
type Interval = 'day' | 'month' | 'week' | 'year' | OtherString;
|
|
6657
|
+
}
|
|
6658
|
+
}
|
|
6659
|
+
}
|
|
4578
6660
|
namespace PriceData {
|
|
4579
6661
|
interface ProductData {
|
|
4580
6662
|
/**
|