stripe 22.1.0 → 22.2.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2637 -11
- package/OPENAPI_VERSION +1 -1
- package/README.md +57 -65
- package/VERSION +1 -1
- package/cjs/Error.d.ts +53 -0
- package/cjs/Error.js +134 -1
- package/cjs/Error.js.map +1 -1
- package/cjs/Types.d.ts +4 -2
- package/cjs/apiVersion.d.ts +1 -2
- package/cjs/apiVersion.js +2 -3
- package/cjs/apiVersion.js.map +1 -1
- package/cjs/resources/AccountLinks.d.ts +5 -1
- package/cjs/resources/AccountNotices.d.ts +140 -0
- package/cjs/resources/AccountNotices.js +29 -0
- package/cjs/resources/AccountNotices.js.map +1 -0
- package/cjs/resources/AccountSessions.d.ts +463 -0
- package/cjs/resources/AccountSessions.js.map +1 -1
- package/cjs/resources/AccountSignals.d.ts +110 -0
- package/cjs/resources/AccountSignals.js +4 -0
- package/cjs/resources/AccountSignals.js.map +1 -0
- package/cjs/resources/Accounts.d.ts +955 -3
- package/cjs/resources/Accounts.js +21 -0
- package/cjs/resources/Accounts.js.map +1 -1
- package/cjs/resources/ApplicationFees.d.ts +28 -1
- package/cjs/resources/Balance.d.ts +134 -0
- package/cjs/resources/BalanceSettings.d.ts +18 -0
- package/cjs/resources/BalanceTransactions.d.ts +1 -1
- package/cjs/resources/BalanceTransfers.d.ts +160 -0
- package/cjs/resources/BalanceTransfers.js +15 -0
- package/cjs/resources/BalanceTransfers.js.map +1 -0
- package/cjs/resources/BankAccounts.d.ts +2 -2
- package/cjs/resources/Billing/AlertRecovereds.d.ts +40 -0
- package/cjs/resources/Billing/AlertRecovereds.js +4 -0
- package/cjs/resources/Billing/AlertRecovereds.js.map +1 -0
- package/cjs/resources/Billing/AlertTriggereds.d.ts +57 -1
- package/cjs/resources/Billing/Alerts.d.ts +406 -5
- package/cjs/resources/Billing/Alerts.js +321 -5
- package/cjs/resources/Billing/Alerts.js.map +1 -1
- package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +88 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js +15 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js.map +1 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +38 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js +4 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
- package/cjs/resources/Billing/Analytics/index.d.ts +15 -0
- package/cjs/resources/Billing/Analytics/index.js +13 -0
- package/cjs/resources/Billing/Analytics/index.js.map +1 -0
- package/cjs/resources/Billing/CreditBalanceSummary.d.ts +126 -2
- package/cjs/resources/Billing/CreditBalanceSummary.js +39 -1
- package/cjs/resources/Billing/CreditBalanceSummary.js.map +1 -1
- package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +97 -3
- package/cjs/resources/Billing/CreditBalanceTransactions.js +100 -1
- package/cjs/resources/Billing/CreditBalanceTransactions.js.map +1 -1
- package/cjs/resources/Billing/CreditGrants.d.ts +85 -3
- package/cjs/resources/Billing/CreditGrants.js +134 -5
- package/cjs/resources/Billing/CreditGrants.js.map +1 -1
- package/cjs/resources/Billing/MeterEventSummaries.d.ts +6 -0
- package/cjs/resources/Billing/Meters.d.ts +31 -0
- package/cjs/resources/Billing/index.d.ts +6 -0
- package/cjs/resources/Billing/index.js +2 -0
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/Capabilities.d.ts +2 -2
- package/cjs/resources/Capital/FinancingOffers.d.ts +191 -0
- package/cjs/resources/Capital/FinancingOffers.js +30 -0
- package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
- package/cjs/resources/Capital/FinancingSummary.d.ts +98 -0
- package/cjs/resources/Capital/FinancingSummary.js +15 -0
- package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
- package/cjs/resources/Capital/FinancingTransactions.d.ts +143 -0
- package/cjs/resources/Capital/FinancingTransactions.js +24 -0
- package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
- package/cjs/resources/Capital/index.d.ts +25 -0
- package/cjs/resources/Capital/index.js +17 -0
- package/cjs/resources/Capital/index.js.map +1 -0
- package/cjs/resources/Cards.d.ts +15 -0
- package/cjs/resources/Charges.d.ts +3513 -70
- package/cjs/resources/Charges.js.map +1 -1
- package/cjs/resources/Checkout/Sessions.d.ts +792 -9
- package/cjs/resources/Checkout/Sessions.js +88 -0
- package/cjs/resources/Checkout/Sessions.js.map +1 -1
- package/cjs/resources/Checkout/index.d.ts +1 -0
- package/cjs/resources/ConfirmationTokens.d.ts +100 -1
- package/cjs/resources/ConfirmationTokens.js.map +1 -1
- package/cjs/resources/Coupons.d.ts +110 -2
- package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
- package/cjs/resources/CreditNotes.d.ts +7 -1
- package/cjs/resources/CreditNotes.js +14 -0
- package/cjs/resources/CreditNotes.js.map +1 -1
- package/cjs/resources/CustomerSessions.d.ts +68 -0
- package/cjs/resources/Customers.d.ts +7 -1
- package/cjs/resources/Customers.js +15 -0
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/DelegatedCheckout/RequestedSessions.d.ts +1280 -0
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js +39 -0
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js.map +1 -0
- package/cjs/resources/DelegatedCheckout/index.d.ts +16 -0
- package/cjs/resources/DelegatedCheckout/index.js +13 -0
- package/cjs/resources/DelegatedCheckout/index.js.map +1 -0
- package/cjs/resources/Discounts.d.ts +19 -0
- package/cjs/resources/Disputes.d.ts +37 -0
- package/cjs/resources/Events.d.ts +560 -2
- package/cjs/resources/ExternalAccounts.d.ts +212 -1
- package/cjs/resources/ExternalAccounts.js +44 -0
- package/cjs/resources/ExternalAccounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/cjs/resources/FinancialConnections/Accounts.d.ts +74 -4
- package/cjs/resources/FinancialConnections/Accounts.js +8 -0
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +87 -0
- package/cjs/resources/FinancialConnections/Authorizations.js +15 -0
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -0
- package/cjs/resources/FinancialConnections/Institutions.d.ts +101 -0
- package/cjs/resources/FinancialConnections/Institutions.js +23 -0
- package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
- package/cjs/resources/FinancialConnections/Sessions.d.ts +155 -7
- package/cjs/resources/FinancialConnections/index.d.ts +21 -6
- package/cjs/resources/FinancialConnections/index.js +4 -0
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/FrMealVouchersOnboardings.d.ts +173 -0
- package/cjs/resources/FrMealVouchersOnboardings.js +42 -0
- package/cjs/resources/FrMealVouchersOnboardings.js.map +1 -0
- package/cjs/resources/FxQuotes.d.ts +212 -0
- package/cjs/resources/FxQuotes.js +29 -0
- package/cjs/resources/FxQuotes.js.map +1 -0
- package/cjs/resources/Identity/BlocklistEntries.d.ts +157 -0
- package/cjs/resources/Identity/BlocklistEntries.js +54 -0
- package/cjs/resources/Identity/BlocklistEntries.js.map +1 -0
- package/cjs/resources/Identity/VerificationReports.d.ts +33 -2
- package/cjs/resources/Identity/VerificationReports.js.map +1 -1
- package/cjs/resources/Identity/VerificationSessions.d.ts +11 -3
- package/cjs/resources/Identity/index.d.ts +18 -10
- package/cjs/resources/Identity/index.js +2 -0
- package/cjs/resources/Identity/index.js.map +1 -1
- package/cjs/resources/InvoiceItems.d.ts +185 -2
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +174 -4
- package/cjs/resources/Invoices.d.ts +2024 -35
- package/cjs/resources/Invoices.js +70 -0
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +255 -0
- package/cjs/resources/Issuing/Cardholders.d.ts +5 -4
- package/cjs/resources/Issuing/Cards.d.ts +36 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +640 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +95 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/cjs/resources/Issuing/Disputes.d.ts +140 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/cjs/resources/Issuing/Programs.d.ts +95 -0
- package/cjs/resources/Issuing/Programs.js +35 -0
- package/cjs/resources/Issuing/Programs.js.map +1 -0
- package/cjs/resources/Issuing/Settlements.d.ts +85 -0
- package/cjs/resources/Issuing/Settlements.js +4 -0
- package/cjs/resources/Issuing/Settlements.js.map +1 -0
- package/cjs/resources/Issuing/Transactions.d.ts +157 -0
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +55 -22
- package/cjs/resources/Issuing/index.js +8 -0
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +29 -2
- package/cjs/resources/Mandates.d.ts +33 -1
- package/cjs/resources/Mandates.js +8 -0
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/Margins.d.ts +115 -0
- package/cjs/resources/Margins.js +35 -0
- package/cjs/resources/Margins.js.map +1 -0
- package/cjs/resources/Orchestration/PaymentAttempts.d.ts +34 -0
- package/cjs/resources/Orchestration/PaymentAttempts.js +15 -0
- package/cjs/resources/Orchestration/PaymentAttempts.js.map +1 -0
- package/cjs/resources/Orchestration/index.d.ts +12 -0
- package/cjs/resources/Orchestration/index.js +13 -0
- package/cjs/resources/Orchestration/index.js.map +1 -0
- package/cjs/resources/Orders.d.ts +4761 -0
- package/cjs/resources/Orders.js +457 -0
- package/cjs/resources/Orders.js.map +1 -0
- package/cjs/resources/PaymentAttemptRecords.d.ts +441 -1
- package/cjs/resources/PaymentAttemptRecords.js +42 -0
- package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
- package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +17 -0
- package/cjs/resources/PaymentIntents.d.ts +16370 -3527
- package/cjs/resources/PaymentIntents.js +40 -0
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +74 -12
- package/cjs/resources/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 +216 -3
- package/cjs/resources/PaymentMethods.js +6 -0
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentRecords.d.ts +323 -21
- package/cjs/resources/PaymentRecords.js.map +1 -1
- package/cjs/resources/Persons.d.ts +24 -2
- package/cjs/resources/Plans.d.ts +16 -0
- package/cjs/resources/Prices.d.ts +64 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +37 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/cjs/resources/Privacy/RedactionJobs.d.ts +229 -0
- package/cjs/resources/Privacy/RedactionJobs.js +73 -0
- package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
- package/cjs/resources/Privacy/index.d.ts +22 -0
- package/cjs/resources/Privacy/index.js +13 -0
- package/cjs/resources/Privacy/index.js.map +1 -0
- package/cjs/resources/ProductCatalog/TrialOffers.d.ts +127 -0
- package/cjs/resources/ProductCatalog/TrialOffers.js +15 -0
- package/cjs/resources/ProductCatalog/TrialOffers.js.map +1 -0
- package/cjs/resources/ProductCatalog/index.d.ts +12 -0
- package/cjs/resources/ProductCatalog/index.js +13 -0
- package/cjs/resources/ProductCatalog/index.js.map +1 -0
- package/cjs/resources/Products.d.ts +141 -0
- package/cjs/resources/Profiles.d.ts +26 -0
- package/cjs/resources/Profiles.js +4 -0
- package/cjs/resources/Profiles.js.map +1 -0
- package/cjs/resources/PromotionCodes.d.ts +12 -0
- package/cjs/resources/PromotionCodes.js +28 -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 +1153 -0
- package/cjs/resources/QuotePreviewInvoices.js +4 -0
- package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +897 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/cjs/resources/Quotes.d.ts +3548 -254
- package/cjs/resources/Quotes.js +1184 -16
- package/cjs/resources/Quotes.js.map +1 -1
- package/cjs/resources/Radar/AccountEvaluations.d.ts +270 -0
- package/cjs/resources/Radar/AccountEvaluations.js +27 -0
- package/cjs/resources/Radar/AccountEvaluations.js.map +1 -0
- package/cjs/resources/Radar/CustomerEvaluations.d.ts +242 -0
- package/cjs/resources/Radar/CustomerEvaluations.js +21 -0
- package/cjs/resources/Radar/CustomerEvaluations.js.map +1 -0
- package/cjs/resources/Radar/IssuingAuthorizationEvaluations.d.ts +435 -0
- package/cjs/resources/Radar/IssuingAuthorizationEvaluations.js +15 -0
- package/cjs/resources/Radar/IssuingAuthorizationEvaluations.js.map +1 -0
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +63 -1
- package/cjs/resources/Radar/index.d.ts +34 -16
- package/cjs/resources/Radar/index.js +6 -0
- package/cjs/resources/Radar/index.js.map +1 -1
- package/cjs/resources/Refunds.d.ts +11 -0
- package/cjs/resources/Reserve/Holds.d.ts +53 -1
- package/cjs/resources/Reserve/Holds.js +19 -0
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +16 -0
- package/cjs/resources/Reserve/Plans.js +11 -0
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +41 -1
- package/cjs/resources/Reserve/Releases.js +19 -0
- package/cjs/resources/Reserve/Releases.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +14 -3
- package/cjs/resources/Reserve/index.js +10 -2
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/RiskSignals.d.ts +10 -0
- package/cjs/resources/RiskSignals.js +4 -0
- package/cjs/resources/RiskSignals.js.map +1 -0
- package/cjs/resources/SetupAttempts.d.ts +26 -1
- package/cjs/resources/SetupIntents.d.ts +491 -11
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +1101 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/IssuedTokens.d.ts +322 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/index.d.ts +19 -0
- package/cjs/resources/SharedPayment/index.js +15 -0
- package/cjs/resources/SharedPayment/index.js.map +1 -0
- package/cjs/resources/Sources.d.ts +16 -1
- package/cjs/resources/SubscriptionItems.d.ts +251 -0
- package/cjs/resources/SubscriptionSchedules.d.ts +1943 -19
- package/cjs/resources/SubscriptionSchedules.js +48 -0
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +1040 -16
- package/cjs/resources/Subscriptions.js +236 -1
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/CalculationLineItems.d.ts +6 -2
- package/cjs/resources/Tax/Calculations.d.ts +7 -3
- package/cjs/resources/Tax/Forms.d.ts +230 -0
- package/cjs/resources/Tax/Forms.js +32 -0
- package/cjs/resources/Tax/Forms.js.map +1 -0
- package/cjs/resources/Tax/Locations.d.ts +108 -0
- package/cjs/resources/Tax/Locations.js +33 -0
- package/cjs/resources/Tax/Locations.js.map +1 -0
- package/cjs/resources/Tax/Registrations.d.ts +155 -2
- package/cjs/resources/Tax/Transactions.d.ts +2 -2
- package/cjs/resources/Tax/index.d.ts +27 -13
- package/cjs/resources/Tax/index.js +4 -0
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/TaxCodes.d.ts +15 -0
- package/cjs/resources/Terminal/Configurations.d.ts +27 -0
- package/cjs/resources/Terminal/ReaderCollectedData.d.ts +52 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/cjs/resources/Terminal/Readers.d.ts +51 -1
- package/cjs/resources/Terminal/index.d.ts +5 -0
- package/cjs/resources/Terminal/index.js +2 -0
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.d.ts +81 -0
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.js.map +1 -0
- package/cjs/resources/TestHelpers/Capital/index.d.ts +8 -0
- package/cjs/resources/TestHelpers/Capital/index.js +13 -0
- package/cjs/resources/TestHelpers/Capital/index.js.map +1 -0
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +78 -1
- package/cjs/resources/TestHelpers/Issuing/Authorizations.d.ts +8 -0
- package/cjs/resources/TestHelpers/Issuing/Transactions.d.ts +16 -0
- package/cjs/resources/TestHelpers/PaymentIntents.d.ts +36 -0
- package/cjs/resources/TestHelpers/PaymentIntents.js +15 -0
- package/cjs/resources/TestHelpers/PaymentIntents.js.map +1 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +75 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +21 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.js +13 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.js.map +1 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
- package/cjs/resources/TestHelpers/index.d.ts +14 -6
- package/cjs/resources/TestHelpers/index.js +12 -6
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/Tokens.d.ts +56 -0
- package/cjs/resources/Transfers.d.ts +12 -0
- package/cjs/resources/Transfers.js.map +1 -1
- package/cjs/resources/TransitBalances.d.ts +25 -0
- package/cjs/resources/TransitBalances.js +4 -0
- package/cjs/resources/TransitBalances.js.map +1 -0
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/cjs/resources/Treasury/OutboundPayments.d.ts +8 -0
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +75 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings.d.ts +284 -0
- package/cjs/resources/V2/Billing/BillSettings.js +41 -0
- package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/CadenceSpendModifiers.d.ts +88 -0
- package/cjs/resources/V2/Billing/CadenceSpendModifiers.js +4 -0
- package/cjs/resources/V2/Billing/CadenceSpendModifiers.js.map +1 -0
- package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.d.ts +37 -0
- package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.js +23 -0
- package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.js.map +1 -0
- package/cjs/resources/V2/Billing/Cadences.d.ts +1015 -0
- package/cjs/resources/V2/Billing/Cadences.js +264 -0
- package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +240 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.d.ts +125 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +35 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js.map +1 -0
- package/cjs/resources/V2/Billing/IntentActions.d.ts +607 -0
- package/cjs/resources/V2/Billing/IntentActions.js +4 -0
- package/cjs/resources/V2/Billing/IntentActions.js.map +1 -0
- package/cjs/resources/V2/Billing/Intents/Actions.d.ts +33 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +70 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js.map +1 -0
- package/cjs/resources/V2/Billing/Intents.d.ts +1257 -0
- package/cjs/resources/V2/Billing/Intents.js +87 -0
- package/cjs/resources/V2/Billing/Intents.js.map +1 -0
- package/cjs/resources/V2/Billing/LicenseFeeVersions.d.ts +82 -0
- package/cjs/resources/V2/Billing/LicenseFeeVersions.js +4 -0
- package/cjs/resources/V2/Billing/LicenseFeeVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +64 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/LicenseFees.d.ts +378 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +148 -0
- package/cjs/resources/V2/Billing/LicenseFees.js.map +1 -0
- package/cjs/resources/V2/Billing/LicensedItems.d.ts +174 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +35 -0
- package/cjs/resources/V2/Billing/LicensedItems.js.map +1 -0
- package/cjs/resources/V2/Billing/MeterEventAdjustments.d.ts +5 -5
- package/cjs/resources/V2/Billing/MeterEventSession.d.ts +4 -4
- package/cjs/resources/V2/Billing/MeterEventSession.js +1 -1
- package/cjs/resources/V2/Billing/MeteredItems.d.ts +222 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +35 -0
- package/cjs/resources/V2/Billing/MeteredItems.js.map +1 -0
- package/cjs/resources/V2/Billing/OneTimeItems.d.ts +174 -0
- package/cjs/resources/V2/Billing/OneTimeItems.js +35 -0
- package/cjs/resources/V2/Billing/OneTimeItems.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlanComponents.d.ts +84 -0
- package/cjs/resources/V2/Billing/PricingPlanComponents.js +4 -0
- package/cjs/resources/V2/Billing/PricingPlanComponents.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.d.ts +624 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +296 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlanVersions.d.ts +30 -0
- package/cjs/resources/V2/Billing/PricingPlanVersions.js +4 -0
- package/cjs/resources/V2/Billing/PricingPlanVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.d.ts +142 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +41 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +23 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlans.d.ts +177 -0
- package/cjs/resources/V2/Billing/PricingPlans.js +43 -0
- package/cjs/resources/V2/Billing/PricingPlans.js.map +1 -0
- package/cjs/resources/V2/Billing/Profiles.d.ts +166 -0
- package/cjs/resources/V2/Billing/Profiles.js +35 -0
- package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.d.ts +45 -0
- package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js +4 -0
- package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardRates.d.ts +115 -0
- package/cjs/resources/V2/Billing/RateCardRates.js +4 -0
- package/cjs/resources/V2/Billing/RateCardRates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.d.ts +219 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +41 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardVersions.d.ts +22 -0
- package/cjs/resources/V2/Billing/RateCardVersions.js +4 -0
- package/cjs/resources/V2/Billing/RateCardVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.d.ts +79 -0
- package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js +35 -0
- package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.d.ts +145 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js +110 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js +23 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards.d.ts +357 -0
- package/cjs/resources/V2/Billing/RateCards.js +76 -0
- package/cjs/resources/V2/Billing/RateCards.js.map +1 -0
- package/cjs/resources/V2/Billing/ServiceActions.d.ts +514 -0
- package/cjs/resources/V2/Billing/ServiceActions.js +162 -0
- package/cjs/resources/V2/Billing/ServiceActions.js.map +1 -0
- package/cjs/resources/V2/Billing/index.d.ts +161 -6
- package/cjs/resources/V2/Billing/index.js +30 -0
- package/cjs/resources/V2/Billing/index.js.map +1 -1
- package/cjs/resources/V2/Commerce/ProductCatalog/Imports.d.ts +99 -0
- package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js +156 -0
- package/cjs/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -0
- package/cjs/resources/V2/Commerce/ProductCatalog/index.d.ts +8 -0
- package/cjs/resources/V2/Commerce/ProductCatalog/index.js +13 -0
- package/cjs/resources/V2/Commerce/ProductCatalog/index.js.map +1 -0
- package/cjs/resources/V2/Commerce/ProductCatalogImports.d.ts +183 -0
- package/cjs/resources/V2/Commerce/ProductCatalogImports.js +4 -0
- package/cjs/resources/V2/Commerce/ProductCatalogImports.js.map +1 -0
- package/cjs/resources/V2/Commerce/index.d.ts +13 -0
- package/cjs/resources/V2/Commerce/index.js +13 -0
- package/cjs/resources/V2/Commerce/index.js.map +1 -0
- package/cjs/resources/V2/Core/AccountEvaluations.d.ts +160 -0
- package/cjs/resources/V2/Core/AccountEvaluations.js +15 -0
- package/cjs/resources/V2/Core/AccountEvaluations.js.map +1 -0
- package/cjs/resources/V2/Core/AccountLinks.d.ts +158 -6
- package/cjs/resources/V2/Core/AccountPersons.d.ts +1 -1
- package/cjs/resources/V2/Core/AccountTokens.d.ts +222 -4
- package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +3 -2
- package/cjs/resources/V2/Core/Accounts/PersonTokens.js +2 -1
- package/cjs/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
- package/cjs/resources/V2/Core/Accounts/Persons.d.ts +2 -2
- package/cjs/resources/V2/Core/Accounts.d.ts +5319 -75
- package/cjs/resources/V2/Core/Accounts.js +1 -1
- package/cjs/resources/V2/Core/ApprovalRequests.d.ts +334 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js +46 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/cjs/resources/V2/Core/BatchJobs.d.ts +373 -0
- package/cjs/resources/V2/Core/BatchJobs.js +225 -0
- package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.d.ts +229 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +31 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js.map +1 -0
- package/cjs/resources/V2/Core/ConnectionSessions.d.ts +90 -0
- package/cjs/resources/V2/Core/ConnectionSessions.js +21 -0
- package/cjs/resources/V2/Core/ConnectionSessions.js.map +1 -0
- package/cjs/resources/V2/Core/EventDestinations.d.ts +50 -3
- package/cjs/resources/V2/Core/Events.d.ts +7325 -204
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +285 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +54 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +254 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +62 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/index.d.ts +28 -0
- package/cjs/resources/V2/Core/Vault/index.js +15 -0
- package/cjs/resources/V2/Core/Vault/index.js.map +1 -0
- package/cjs/resources/V2/Core/index.d.ts +51 -14
- package/cjs/resources/V2/Core/index.js +12 -0
- package/cjs/resources/V2/Core/index.js.map +1 -1
- package/cjs/resources/V2/Data/Analytics/MetricQuery.d.ts +73 -0
- package/cjs/resources/V2/Data/Analytics/MetricQuery.js +36 -0
- package/cjs/resources/V2/Data/Analytics/MetricQuery.js.map +1 -0
- package/cjs/resources/V2/Data/Analytics/MetricQueryResults.d.ts +82 -0
- package/cjs/resources/V2/Data/Analytics/MetricQueryResults.js +4 -0
- package/cjs/resources/V2/Data/Analytics/MetricQueryResults.js.map +1 -0
- package/cjs/resources/V2/Data/Analytics/index.d.ts +12 -0
- package/cjs/resources/V2/Data/Analytics/index.js +13 -0
- package/cjs/resources/V2/Data/Analytics/index.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +156 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
- package/cjs/resources/V2/Data/index.d.ts +13 -0
- package/cjs/resources/V2/Data/index.js +15 -0
- package/cjs/resources/V2/Data/index.js.map +1 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/cjs/resources/V2/Extend/Workflows.d.ts +123 -0
- package/cjs/resources/V2/Extend/Workflows.js +30 -0
- package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +20 -0
- package/cjs/resources/V2/Extend/index.js +15 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -0
- package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +14 -0
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js +4 -0
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +4 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +204 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js +17 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/cjs/resources/V2/Iam/ApiKeys.d.ts +280 -0
- package/cjs/resources/V2/Iam/ApiKeys.js +47 -0
- package/cjs/resources/V2/Iam/ApiKeys.js.map +1 -0
- package/cjs/resources/V2/Iam/index.d.ts +22 -0
- package/cjs/resources/V2/Iam/index.js +15 -0
- package/cjs/resources/V2/Iam/index.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +139 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +23 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.d.ts +135 -0
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js +31 -0
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +412 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +44 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +308 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +31 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +254 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +30 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +222 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +22 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +524 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +41 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +320 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +49 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +342 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +39 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +270 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +44 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +96 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +17 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +451 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +23 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +237 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.d.ts +120 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +27 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +245 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +23 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +276 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +23 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/index.d.ts +118 -0
- package/cjs/resources/V2/MoneyManagement/index.js +43 -0
- package/cjs/resources/V2/MoneyManagement/index.js.map +1 -0
- package/cjs/resources/V2/Network/BusinessProfiles.d.ts +96 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/cjs/resources/V2/Network/index.d.ts +13 -0
- package/cjs/resources/V2/Network/index.js +13 -0
- package/cjs/resources/V2/Network/index.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.d.ts +827 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js +53 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js.map +1 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.d.ts +77 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.js +4 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.js.map +1 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.d.ts +85 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js +35 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js.map +1 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.d.ts +213 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.js +53 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.js.map +1 -0
- package/cjs/resources/V2/Payments/index.d.ts +31 -0
- package/cjs/resources/V2/Payments/index.js +15 -0
- package/cjs/resources/V2/Payments/index.js.map +1 -0
- package/cjs/resources/V2/Reporting/ReportRuns.d.ts +173 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js +50 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js.map +1 -0
- package/cjs/resources/V2/Reporting/Reports.d.ts +110 -0
- package/cjs/resources/V2/Reporting/Reports.js +17 -0
- package/cjs/resources/V2/Reporting/Reports.js.map +1 -0
- package/cjs/resources/V2/Reporting/index.d.ts +18 -0
- package/cjs/resources/V2/Reporting/index.js +15 -0
- package/cjs/resources/V2/Reporting/index.js.map +1 -0
- package/cjs/resources/V2/Tax/ManualRules.d.ts +335 -0
- package/cjs/resources/V2/Tax/ManualRules.js +193 -0
- package/cjs/resources/V2/Tax/ManualRules.js.map +1 -0
- package/cjs/resources/V2/Tax/index.d.ts +16 -0
- package/cjs/resources/V2/Tax/index.js +13 -0
- package/cjs/resources/V2/Tax/index.js.map +1 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +44 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +23 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.d.ts +31 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +15 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js.map +1 -0
- package/cjs/resources/V2/TestHelpers/index.d.ts +10 -0
- package/cjs/resources/V2/TestHelpers/index.js +15 -0
- package/cjs/resources/V2/TestHelpers/index.js.map +1 -0
- package/cjs/resources/V2/index.d.ts +39 -0
- package/cjs/resources/V2/index.js +24 -2
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/resources/WebhookEndpoints.d.ts +2 -2
- package/cjs/resources.d.ts +14 -0
- package/cjs/resources.js +240 -12
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.core.d.ts +84 -28
- package/cjs/stripe.core.js +59 -31
- package/cjs/stripe.core.js.map +1 -1
- package/esm/Error.d.ts +53 -0
- package/esm/Error.js +117 -0
- package/esm/Error.js.map +1 -1
- package/esm/Types.d.ts +4 -2
- package/esm/apiVersion.d.ts +1 -2
- package/esm/apiVersion.js +1 -2
- package/esm/apiVersion.js.map +1 -1
- package/esm/resources/AccountLinks.d.ts +5 -1
- package/esm/resources/AccountNotices.d.ts +140 -0
- package/esm/resources/AccountNotices.js +25 -0
- package/esm/resources/AccountNotices.js.map +1 -0
- package/esm/resources/AccountSessions.d.ts +463 -0
- package/esm/resources/AccountSessions.js.map +1 -1
- package/esm/resources/AccountSignals.d.ts +110 -0
- package/esm/resources/AccountSignals.js +3 -0
- package/esm/resources/AccountSignals.js.map +1 -0
- package/esm/resources/Accounts.d.ts +955 -3
- package/esm/resources/Accounts.js +21 -0
- package/esm/resources/Accounts.js.map +1 -1
- package/esm/resources/ApplicationFees.d.ts +28 -1
- package/esm/resources/Balance.d.ts +134 -0
- package/esm/resources/BalanceSettings.d.ts +18 -0
- package/esm/resources/BalanceTransactions.d.ts +1 -1
- package/esm/resources/BalanceTransfers.d.ts +160 -0
- package/esm/resources/BalanceTransfers.js +11 -0
- package/esm/resources/BalanceTransfers.js.map +1 -0
- package/esm/resources/BankAccounts.d.ts +2 -2
- package/esm/resources/Billing/AlertRecovereds.d.ts +40 -0
- package/esm/resources/Billing/AlertRecovereds.js +3 -0
- package/esm/resources/Billing/AlertRecovereds.js.map +1 -0
- package/esm/resources/Billing/AlertTriggereds.d.ts +57 -1
- package/esm/resources/Billing/Alerts.d.ts +406 -5
- package/esm/resources/Billing/Alerts.js +321 -5
- package/esm/resources/Billing/Alerts.js.map +1 -1
- package/esm/resources/Billing/Analytics/MeterUsage.d.ts +88 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js +11 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js.map +1 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +38 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.js +3 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
- package/esm/resources/Billing/Analytics/index.d.ts +15 -0
- package/esm/resources/Billing/Analytics/index.js +9 -0
- package/esm/resources/Billing/Analytics/index.js.map +1 -0
- package/esm/resources/Billing/CreditBalanceSummary.d.ts +126 -2
- package/esm/resources/Billing/CreditBalanceSummary.js +39 -1
- package/esm/resources/Billing/CreditBalanceSummary.js.map +1 -1
- package/esm/resources/Billing/CreditBalanceTransactions.d.ts +97 -3
- package/esm/resources/Billing/CreditBalanceTransactions.js +100 -1
- package/esm/resources/Billing/CreditBalanceTransactions.js.map +1 -1
- package/esm/resources/Billing/CreditGrants.d.ts +85 -3
- package/esm/resources/Billing/CreditGrants.js +134 -5
- package/esm/resources/Billing/CreditGrants.js.map +1 -1
- package/esm/resources/Billing/MeterEventSummaries.d.ts +6 -0
- package/esm/resources/Billing/Meters.d.ts +31 -0
- package/esm/resources/Billing/index.d.ts +6 -0
- package/esm/resources/Billing/index.js +2 -0
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/Capabilities.d.ts +2 -2
- package/esm/resources/Capital/FinancingOffers.d.ts +191 -0
- package/esm/resources/Capital/FinancingOffers.js +26 -0
- package/esm/resources/Capital/FinancingOffers.js.map +1 -0
- package/esm/resources/Capital/FinancingSummary.d.ts +98 -0
- package/esm/resources/Capital/FinancingSummary.js +11 -0
- package/esm/resources/Capital/FinancingSummary.js.map +1 -0
- package/esm/resources/Capital/FinancingTransactions.d.ts +143 -0
- package/esm/resources/Capital/FinancingTransactions.js +20 -0
- package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
- package/esm/resources/Capital/index.d.ts +25 -0
- package/esm/resources/Capital/index.js +13 -0
- package/esm/resources/Capital/index.js.map +1 -0
- package/esm/resources/Cards.d.ts +15 -0
- package/esm/resources/Charges.d.ts +3513 -70
- package/esm/resources/Charges.js.map +1 -1
- package/esm/resources/Checkout/Sessions.d.ts +792 -9
- package/esm/resources/Checkout/Sessions.js +88 -0
- package/esm/resources/Checkout/Sessions.js.map +1 -1
- package/esm/resources/Checkout/index.d.ts +1 -0
- package/esm/resources/ConfirmationTokens.d.ts +100 -1
- package/esm/resources/ConfirmationTokens.js.map +1 -1
- package/esm/resources/Coupons.d.ts +110 -2
- package/esm/resources/CreditNoteLineItems.d.ts +15 -1
- package/esm/resources/CreditNotes.d.ts +7 -1
- package/esm/resources/CreditNotes.js +14 -0
- package/esm/resources/CreditNotes.js.map +1 -1
- package/esm/resources/CustomerSessions.d.ts +68 -0
- package/esm/resources/Customers.d.ts +7 -1
- package/esm/resources/Customers.js +15 -0
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/DelegatedCheckout/RequestedSessions.d.ts +1280 -0
- package/esm/resources/DelegatedCheckout/RequestedSessions.js +35 -0
- package/esm/resources/DelegatedCheckout/RequestedSessions.js.map +1 -0
- package/esm/resources/DelegatedCheckout/index.d.ts +16 -0
- package/esm/resources/DelegatedCheckout/index.js +9 -0
- package/esm/resources/DelegatedCheckout/index.js.map +1 -0
- package/esm/resources/Discounts.d.ts +19 -0
- package/esm/resources/Disputes.d.ts +37 -0
- package/esm/resources/Events.d.ts +560 -2
- package/esm/resources/ExternalAccounts.d.ts +212 -1
- package/esm/resources/ExternalAccounts.js +42 -1
- package/esm/resources/ExternalAccounts.js.map +1 -1
- package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/esm/resources/FinancialConnections/Accounts.d.ts +74 -4
- package/esm/resources/FinancialConnections/Accounts.js +8 -0
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +87 -0
- package/esm/resources/FinancialConnections/Authorizations.js +11 -0
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -0
- package/esm/resources/FinancialConnections/Institutions.d.ts +101 -0
- package/esm/resources/FinancialConnections/Institutions.js +19 -0
- package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
- package/esm/resources/FinancialConnections/Sessions.d.ts +155 -7
- package/esm/resources/FinancialConnections/index.d.ts +21 -6
- package/esm/resources/FinancialConnections/index.js +4 -0
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/FrMealVouchersOnboardings.d.ts +173 -0
- package/esm/resources/FrMealVouchersOnboardings.js +38 -0
- package/esm/resources/FrMealVouchersOnboardings.js.map +1 -0
- package/esm/resources/FxQuotes.d.ts +212 -0
- package/esm/resources/FxQuotes.js +25 -0
- package/esm/resources/FxQuotes.js.map +1 -0
- package/esm/resources/Identity/BlocklistEntries.d.ts +157 -0
- package/esm/resources/Identity/BlocklistEntries.js +50 -0
- package/esm/resources/Identity/BlocklistEntries.js.map +1 -0
- package/esm/resources/Identity/VerificationReports.d.ts +33 -2
- package/esm/resources/Identity/VerificationReports.js.map +1 -1
- package/esm/resources/Identity/VerificationSessions.d.ts +11 -3
- package/esm/resources/Identity/index.d.ts +18 -10
- package/esm/resources/Identity/index.js +2 -0
- package/esm/resources/Identity/index.js.map +1 -1
- package/esm/resources/InvoiceItems.d.ts +185 -2
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +174 -4
- package/esm/resources/Invoices.d.ts +2024 -35
- package/esm/resources/Invoices.js +70 -0
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +255 -0
- package/esm/resources/Issuing/Cardholders.d.ts +5 -4
- package/esm/resources/Issuing/Cards.d.ts +36 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +640 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +95 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/esm/resources/Issuing/Disputes.d.ts +140 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/esm/resources/Issuing/Programs.d.ts +95 -0
- package/esm/resources/Issuing/Programs.js +31 -0
- package/esm/resources/Issuing/Programs.js.map +1 -0
- package/esm/resources/Issuing/Settlements.d.ts +85 -0
- package/esm/resources/Issuing/Settlements.js +3 -0
- package/esm/resources/Issuing/Settlements.js.map +1 -0
- package/esm/resources/Issuing/Transactions.d.ts +157 -0
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +55 -22
- package/esm/resources/Issuing/index.js +8 -0
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +29 -2
- package/esm/resources/Mandates.d.ts +33 -1
- package/esm/resources/Mandates.js +8 -0
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/Margins.d.ts +115 -0
- package/esm/resources/Margins.js +31 -0
- package/esm/resources/Margins.js.map +1 -0
- package/esm/resources/Orchestration/PaymentAttempts.d.ts +34 -0
- package/esm/resources/Orchestration/PaymentAttempts.js +11 -0
- package/esm/resources/Orchestration/PaymentAttempts.js.map +1 -0
- package/esm/resources/Orchestration/index.d.ts +12 -0
- package/esm/resources/Orchestration/index.js +9 -0
- package/esm/resources/Orchestration/index.js.map +1 -0
- package/esm/resources/Orders.d.ts +4761 -0
- package/esm/resources/Orders.js +453 -0
- package/esm/resources/Orders.js.map +1 -0
- package/esm/resources/PaymentAttemptRecords.d.ts +441 -1
- package/esm/resources/PaymentAttemptRecords.js +42 -0
- package/esm/resources/PaymentAttemptRecords.js.map +1 -1
- package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +17 -0
- package/esm/resources/PaymentIntents.d.ts +16370 -3527
- package/esm/resources/PaymentIntents.js +40 -0
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +74 -12
- package/esm/resources/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 +216 -3
- package/esm/resources/PaymentMethods.js +6 -0
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentRecords.d.ts +323 -21
- package/esm/resources/PaymentRecords.js.map +1 -1
- package/esm/resources/Persons.d.ts +24 -2
- package/esm/resources/Plans.d.ts +16 -0
- package/esm/resources/Prices.d.ts +64 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +37 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/esm/resources/Privacy/RedactionJobs.d.ts +229 -0
- package/esm/resources/Privacy/RedactionJobs.js +69 -0
- package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
- package/esm/resources/Privacy/index.d.ts +22 -0
- package/esm/resources/Privacy/index.js +9 -0
- package/esm/resources/Privacy/index.js.map +1 -0
- package/esm/resources/ProductCatalog/TrialOffers.d.ts +127 -0
- package/esm/resources/ProductCatalog/TrialOffers.js +11 -0
- package/esm/resources/ProductCatalog/TrialOffers.js.map +1 -0
- package/esm/resources/ProductCatalog/index.d.ts +12 -0
- package/esm/resources/ProductCatalog/index.js +9 -0
- package/esm/resources/ProductCatalog/index.js.map +1 -0
- package/esm/resources/Products.d.ts +141 -0
- package/esm/resources/Profiles.d.ts +26 -0
- package/esm/resources/Profiles.js +3 -0
- package/esm/resources/Profiles.js.map +1 -0
- package/esm/resources/PromotionCodes.d.ts +12 -0
- package/esm/resources/PromotionCodes.js +28 -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 +1153 -0
- package/esm/resources/QuotePreviewInvoices.js +3 -0
- package/esm/resources/QuotePreviewInvoices.js.map +1 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +897 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/esm/resources/Quotes.d.ts +3548 -254
- package/esm/resources/Quotes.js +1184 -16
- package/esm/resources/Quotes.js.map +1 -1
- package/esm/resources/Radar/AccountEvaluations.d.ts +270 -0
- package/esm/resources/Radar/AccountEvaluations.js +23 -0
- package/esm/resources/Radar/AccountEvaluations.js.map +1 -0
- package/esm/resources/Radar/CustomerEvaluations.d.ts +242 -0
- package/esm/resources/Radar/CustomerEvaluations.js +17 -0
- package/esm/resources/Radar/CustomerEvaluations.js.map +1 -0
- package/esm/resources/Radar/IssuingAuthorizationEvaluations.d.ts +435 -0
- package/esm/resources/Radar/IssuingAuthorizationEvaluations.js +11 -0
- package/esm/resources/Radar/IssuingAuthorizationEvaluations.js.map +1 -0
- package/esm/resources/Radar/PaymentEvaluations.d.ts +63 -1
- package/esm/resources/Radar/index.d.ts +34 -16
- package/esm/resources/Radar/index.js +6 -0
- package/esm/resources/Radar/index.js.map +1 -1
- package/esm/resources/Refunds.d.ts +11 -0
- package/esm/resources/Reserve/Holds.d.ts +53 -1
- package/esm/resources/Reserve/Holds.js +17 -1
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +16 -0
- package/esm/resources/Reserve/Plans.js +9 -1
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +41 -1
- package/esm/resources/Reserve/Releases.js +17 -1
- package/esm/resources/Reserve/Releases.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +14 -3
- package/esm/resources/Reserve/index.js +10 -2
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/RiskSignals.d.ts +10 -0
- package/esm/resources/RiskSignals.js +3 -0
- package/esm/resources/RiskSignals.js.map +1 -0
- package/esm/resources/SetupAttempts.d.ts +26 -1
- package/esm/resources/SetupIntents.d.ts +491 -11
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +1101 -0
- package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
- package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/IssuedTokens.d.ts +322 -0
- package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
- package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/index.d.ts +19 -0
- package/esm/resources/SharedPayment/index.js +11 -0
- package/esm/resources/SharedPayment/index.js.map +1 -0
- package/esm/resources/Sources.d.ts +16 -1
- package/esm/resources/SubscriptionItems.d.ts +251 -0
- package/esm/resources/SubscriptionSchedules.d.ts +1943 -19
- package/esm/resources/SubscriptionSchedules.js +48 -0
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +1040 -16
- package/esm/resources/Subscriptions.js +236 -1
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/CalculationLineItems.d.ts +6 -2
- package/esm/resources/Tax/Calculations.d.ts +7 -3
- package/esm/resources/Tax/Forms.d.ts +230 -0
- package/esm/resources/Tax/Forms.js +28 -0
- package/esm/resources/Tax/Forms.js.map +1 -0
- package/esm/resources/Tax/Locations.d.ts +108 -0
- package/esm/resources/Tax/Locations.js +29 -0
- package/esm/resources/Tax/Locations.js.map +1 -0
- package/esm/resources/Tax/Registrations.d.ts +155 -2
- package/esm/resources/Tax/Transactions.d.ts +2 -2
- package/esm/resources/Tax/index.d.ts +27 -13
- package/esm/resources/Tax/index.js +4 -0
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/TaxCodes.d.ts +15 -0
- package/esm/resources/Terminal/Configurations.d.ts +27 -0
- package/esm/resources/Terminal/ReaderCollectedData.d.ts +52 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
- package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/esm/resources/Terminal/Readers.d.ts +51 -1
- package/esm/resources/Terminal/index.d.ts +5 -0
- package/esm/resources/Terminal/index.js +2 -0
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/Capital/FinancingOffers.d.ts +81 -0
- package/esm/resources/TestHelpers/Capital/FinancingOffers.js +17 -0
- package/esm/resources/TestHelpers/Capital/FinancingOffers.js.map +1 -0
- package/esm/resources/TestHelpers/Capital/index.d.ts +8 -0
- package/esm/resources/TestHelpers/Capital/index.js +9 -0
- package/esm/resources/TestHelpers/Capital/index.js.map +1 -0
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +78 -1
- package/esm/resources/TestHelpers/Issuing/Authorizations.d.ts +8 -0
- package/esm/resources/TestHelpers/Issuing/Transactions.d.ts +16 -0
- package/esm/resources/TestHelpers/PaymentIntents.d.ts +36 -0
- package/esm/resources/TestHelpers/PaymentIntents.js +11 -0
- package/esm/resources/TestHelpers/PaymentIntents.js.map +1 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +75 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +17 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
- package/esm/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
- package/esm/resources/TestHelpers/SharedPayment/index.js +9 -0
- package/esm/resources/TestHelpers/SharedPayment/index.js.map +1 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
- package/esm/resources/TestHelpers/index.d.ts +14 -6
- package/esm/resources/TestHelpers/index.js +6 -0
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/Tokens.d.ts +56 -0
- package/esm/resources/Transfers.d.ts +12 -0
- package/esm/resources/Transfers.js.map +1 -1
- package/esm/resources/TransitBalances.d.ts +25 -0
- package/esm/resources/TransitBalances.js +3 -0
- package/esm/resources/TransitBalances.js.map +1 -0
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/esm/resources/Treasury/OutboundPayments.d.ts +8 -0
- package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/esm/resources/V2/Billing/BillSettingVersions.d.ts +75 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings.d.ts +284 -0
- package/esm/resources/V2/Billing/BillSettings.js +37 -0
- package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
- package/esm/resources/V2/Billing/CadenceSpendModifiers.d.ts +88 -0
- package/esm/resources/V2/Billing/CadenceSpendModifiers.js +3 -0
- package/esm/resources/V2/Billing/CadenceSpendModifiers.js.map +1 -0
- package/esm/resources/V2/Billing/Cadences/SpendModifierRules.d.ts +37 -0
- package/esm/resources/V2/Billing/Cadences/SpendModifierRules.js +19 -0
- package/esm/resources/V2/Billing/Cadences/SpendModifierRules.js.map +1 -0
- package/esm/resources/V2/Billing/Cadences.d.ts +1015 -0
- package/esm/resources/V2/Billing/Cadences.js +260 -0
- package/esm/resources/V2/Billing/Cadences.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +240 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
- package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.d.ts +125 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +31 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js.map +1 -0
- package/esm/resources/V2/Billing/IntentActions.d.ts +607 -0
- package/esm/resources/V2/Billing/IntentActions.js +3 -0
- package/esm/resources/V2/Billing/IntentActions.js.map +1 -0
- package/esm/resources/V2/Billing/Intents/Actions.d.ts +33 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +66 -0
- package/esm/resources/V2/Billing/Intents/Actions.js.map +1 -0
- package/esm/resources/V2/Billing/Intents.d.ts +1257 -0
- package/esm/resources/V2/Billing/Intents.js +83 -0
- package/esm/resources/V2/Billing/Intents.js.map +1 -0
- package/esm/resources/V2/Billing/LicenseFeeVersions.d.ts +82 -0
- package/esm/resources/V2/Billing/LicenseFeeVersions.js +3 -0
- package/esm/resources/V2/Billing/LicenseFeeVersions.js.map +1 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +60 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/LicenseFees.d.ts +378 -0
- package/esm/resources/V2/Billing/LicenseFees.js +144 -0
- package/esm/resources/V2/Billing/LicenseFees.js.map +1 -0
- package/esm/resources/V2/Billing/LicensedItems.d.ts +174 -0
- package/esm/resources/V2/Billing/LicensedItems.js +31 -0
- package/esm/resources/V2/Billing/LicensedItems.js.map +1 -0
- package/esm/resources/V2/Billing/MeterEventAdjustments.d.ts +5 -5
- package/esm/resources/V2/Billing/MeterEventSession.d.ts +4 -4
- package/esm/resources/V2/Billing/MeterEventSession.js +1 -1
- package/esm/resources/V2/Billing/MeteredItems.d.ts +222 -0
- package/esm/resources/V2/Billing/MeteredItems.js +31 -0
- package/esm/resources/V2/Billing/MeteredItems.js.map +1 -0
- package/esm/resources/V2/Billing/OneTimeItems.d.ts +174 -0
- package/esm/resources/V2/Billing/OneTimeItems.js +31 -0
- package/esm/resources/V2/Billing/OneTimeItems.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlanComponents.d.ts +84 -0
- package/esm/resources/V2/Billing/PricingPlanComponents.js +3 -0
- package/esm/resources/V2/Billing/PricingPlanComponents.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.d.ts +624 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +292 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlanVersions.d.ts +30 -0
- package/esm/resources/V2/Billing/PricingPlanVersions.js +3 -0
- package/esm/resources/V2/Billing/PricingPlanVersions.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.d.ts +142 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js +37 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +19 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlans.d.ts +177 -0
- package/esm/resources/V2/Billing/PricingPlans.js +39 -0
- package/esm/resources/V2/Billing/PricingPlans.js.map +1 -0
- package/esm/resources/V2/Billing/Profiles.d.ts +166 -0
- package/esm/resources/V2/Billing/Profiles.js +31 -0
- package/esm/resources/V2/Billing/Profiles.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.d.ts +45 -0
- package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js +3 -0
- package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardRates.d.ts +115 -0
- package/esm/resources/V2/Billing/RateCardRates.js +3 -0
- package/esm/resources/V2/Billing/RateCardRates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.d.ts +219 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +37 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardVersions.d.ts +22 -0
- package/esm/resources/V2/Billing/RateCardVersions.js +3 -0
- package/esm/resources/V2/Billing/RateCardVersions.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.d.ts +79 -0
- package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js +31 -0
- package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards/Rates.d.ts +145 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js +106 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js +19 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards.d.ts +357 -0
- package/esm/resources/V2/Billing/RateCards.js +72 -0
- package/esm/resources/V2/Billing/RateCards.js.map +1 -0
- package/esm/resources/V2/Billing/ServiceActions.d.ts +514 -0
- package/esm/resources/V2/Billing/ServiceActions.js +158 -0
- package/esm/resources/V2/Billing/ServiceActions.js.map +1 -0
- package/esm/resources/V2/Billing/index.d.ts +161 -6
- package/esm/resources/V2/Billing/index.js +30 -0
- package/esm/resources/V2/Billing/index.js.map +1 -1
- package/esm/resources/V2/Commerce/ProductCatalog/Imports.d.ts +99 -0
- package/esm/resources/V2/Commerce/ProductCatalog/Imports.js +152 -0
- package/esm/resources/V2/Commerce/ProductCatalog/Imports.js.map +1 -0
- package/esm/resources/V2/Commerce/ProductCatalog/index.d.ts +8 -0
- package/esm/resources/V2/Commerce/ProductCatalog/index.js +9 -0
- package/esm/resources/V2/Commerce/ProductCatalog/index.js.map +1 -0
- package/esm/resources/V2/Commerce/ProductCatalogImports.d.ts +183 -0
- package/esm/resources/V2/Commerce/ProductCatalogImports.js +3 -0
- package/esm/resources/V2/Commerce/ProductCatalogImports.js.map +1 -0
- package/esm/resources/V2/Commerce/index.d.ts +13 -0
- package/esm/resources/V2/Commerce/index.js +9 -0
- package/esm/resources/V2/Commerce/index.js.map +1 -0
- package/esm/resources/V2/Core/AccountEvaluations.d.ts +160 -0
- package/esm/resources/V2/Core/AccountEvaluations.js +11 -0
- package/esm/resources/V2/Core/AccountEvaluations.js.map +1 -0
- package/esm/resources/V2/Core/AccountLinks.d.ts +158 -6
- package/esm/resources/V2/Core/AccountPersons.d.ts +1 -1
- package/esm/resources/V2/Core/AccountTokens.d.ts +222 -4
- package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +3 -2
- package/esm/resources/V2/Core/Accounts/PersonTokens.js +2 -1
- package/esm/resources/V2/Core/Accounts/PersonTokens.js.map +1 -1
- package/esm/resources/V2/Core/Accounts/Persons.d.ts +2 -2
- package/esm/resources/V2/Core/Accounts.d.ts +5319 -75
- package/esm/resources/V2/Core/Accounts.js +1 -1
- package/esm/resources/V2/Core/ApprovalRequests.d.ts +334 -0
- package/esm/resources/V2/Core/ApprovalRequests.js +42 -0
- package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/esm/resources/V2/Core/BatchJobs.d.ts +373 -0
- package/esm/resources/V2/Core/BatchJobs.js +221 -0
- package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.d.ts +229 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js +27 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js.map +1 -0
- package/esm/resources/V2/Core/ConnectionSessions.d.ts +90 -0
- package/esm/resources/V2/Core/ConnectionSessions.js +17 -0
- package/esm/resources/V2/Core/ConnectionSessions.js.map +1 -0
- package/esm/resources/V2/Core/EventDestinations.d.ts +50 -3
- package/esm/resources/V2/Core/Events.d.ts +7325 -204
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +285 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +50 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +254 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +58 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
- package/esm/resources/V2/Core/Vault/index.d.ts +28 -0
- package/esm/resources/V2/Core/Vault/index.js +11 -0
- package/esm/resources/V2/Core/Vault/index.js.map +1 -0
- package/esm/resources/V2/Core/index.d.ts +51 -14
- package/esm/resources/V2/Core/index.js +12 -0
- package/esm/resources/V2/Core/index.js.map +1 -1
- package/esm/resources/V2/Data/Analytics/MetricQuery.d.ts +73 -0
- package/esm/resources/V2/Data/Analytics/MetricQuery.js +32 -0
- package/esm/resources/V2/Data/Analytics/MetricQuery.js.map +1 -0
- package/esm/resources/V2/Data/Analytics/MetricQueryResults.d.ts +82 -0
- package/esm/resources/V2/Data/Analytics/MetricQueryResults.js +3 -0
- package/esm/resources/V2/Data/Analytics/MetricQueryResults.js.map +1 -0
- package/esm/resources/V2/Data/Analytics/index.d.ts +12 -0
- package/esm/resources/V2/Data/Analytics/index.js +9 -0
- package/esm/resources/V2/Data/Analytics/index.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +156 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/esm/resources/V2/Data/Reporting/index.js +9 -0
- package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
- package/esm/resources/V2/Data/index.d.ts +13 -0
- package/esm/resources/V2/Data/index.js +11 -0
- package/esm/resources/V2/Data/index.js.map +1 -0
- package/esm/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/esm/resources/V2/Extend/Workflows.d.ts +123 -0
- package/esm/resources/V2/Extend/Workflows.js +26 -0
- package/esm/resources/V2/Extend/Workflows.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +20 -0
- package/esm/resources/V2/Extend/index.js +11 -0
- package/esm/resources/V2/Extend/index.js.map +1 -0
- package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +14 -0
- package/esm/resources/V2/FinancialAddressCreditSimulations.js +3 -0
- package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +3 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +204 -0
- package/esm/resources/V2/Iam/ActivityLogs.js +13 -0
- package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/esm/resources/V2/Iam/ApiKeys.d.ts +280 -0
- package/esm/resources/V2/Iam/ApiKeys.js +43 -0
- package/esm/resources/V2/Iam/ApiKeys.js.map +1 -0
- package/esm/resources/V2/Iam/index.d.ts +22 -0
- package/esm/resources/V2/Iam/index.js +11 -0
- package/esm/resources/V2/Iam/index.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +139 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +19 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.d.ts +135 -0
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.js +27 -0
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +412 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +40 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +308 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +27 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +254 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +26 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +222 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +524 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +37 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +320 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +45 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +342 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +35 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +270 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +40 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +96 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +13 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +451 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +19 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +237 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.d.ts +120 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +23 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +245 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +19 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/Transactions.d.ts +276 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +19 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/index.d.ts +118 -0
- package/esm/resources/V2/MoneyManagement/index.js +39 -0
- package/esm/resources/V2/MoneyManagement/index.js.map +1 -0
- package/esm/resources/V2/Network/BusinessProfiles.d.ts +96 -0
- package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
- package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/esm/resources/V2/Network/index.d.ts +13 -0
- package/esm/resources/V2/Network/index.js +9 -0
- package/esm/resources/V2/Network/index.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/esm/resources/V2/Payments/OffSessionPayments.d.ts +827 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js +49 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js.map +1 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.d.ts +77 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.js +3 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.js.map +1 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.d.ts +85 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js +31 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js.map +1 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.d.ts +213 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.js +49 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.js.map +1 -0
- package/esm/resources/V2/Payments/index.d.ts +31 -0
- package/esm/resources/V2/Payments/index.js +11 -0
- package/esm/resources/V2/Payments/index.js.map +1 -0
- package/esm/resources/V2/Reporting/ReportRuns.d.ts +173 -0
- package/esm/resources/V2/Reporting/ReportRuns.js +46 -0
- package/esm/resources/V2/Reporting/ReportRuns.js.map +1 -0
- package/esm/resources/V2/Reporting/Reports.d.ts +110 -0
- package/esm/resources/V2/Reporting/Reports.js +13 -0
- package/esm/resources/V2/Reporting/Reports.js.map +1 -0
- package/esm/resources/V2/Reporting/index.d.ts +18 -0
- package/esm/resources/V2/Reporting/index.js +11 -0
- package/esm/resources/V2/Reporting/index.js.map +1 -0
- package/esm/resources/V2/Tax/ManualRules.d.ts +335 -0
- package/esm/resources/V2/Tax/ManualRules.js +189 -0
- package/esm/resources/V2/Tax/ManualRules.js.map +1 -0
- package/esm/resources/V2/Tax/index.d.ts +16 -0
- package/esm/resources/V2/Tax/index.js +9 -0
- package/esm/resources/V2/Tax/index.js.map +1 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +44 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +19 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.d.ts +31 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +11 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js.map +1 -0
- package/esm/resources/V2/TestHelpers/index.d.ts +10 -0
- package/esm/resources/V2/TestHelpers/index.js +11 -0
- package/esm/resources/V2/TestHelpers/index.js.map +1 -0
- package/esm/resources/V2/index.d.ts +39 -0
- package/esm/resources/V2/index.js +22 -0
- package/esm/resources/V2/index.js.map +1 -1
- package/esm/resources/WebhookEndpoints.d.ts +2 -2
- package/esm/resources.d.ts +14 -0
- package/esm/resources.js +221 -0
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.d.ts +84 -28
- package/esm/stripe.core.js +29 -1
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +84 -28
- package/esm/stripe.esm.node.js +29 -1
- package/esm/stripe.esm.node.js.map +1 -1
- package/package.json +1 -1
|
@@ -10,9 +10,10 @@ import { Invoice } from './Invoices.js';
|
|
|
10
10
|
import { Account } from './Accounts.js';
|
|
11
11
|
import { SetupIntent } from './SetupIntents.js';
|
|
12
12
|
import { SubscriptionSchedule } from './SubscriptionSchedules.js';
|
|
13
|
+
import { Price } from './Prices.js';
|
|
13
14
|
import { TaxId, DeletedTaxId } from './TaxIds.js';
|
|
14
15
|
import * as TestHelpers from './TestHelpers/index.js';
|
|
15
|
-
import { Emptyable, MetadataParam, Decimal, PaginationParams, RangeQueryParam, Metadata } from '../shared.js';
|
|
16
|
+
import { Emptyable, MetadataParam, Decimal, AddressParam, PaginationParams, RangeQueryParam, Metadata, Address } from '../shared.js';
|
|
16
17
|
import { RequestOptions, Response, ApiListPromise, ApiList, ApiSearchResultPromise } from '../lib.js';
|
|
17
18
|
export declare class SubscriptionResource extends StripeResource {
|
|
18
19
|
/**
|
|
@@ -76,14 +77,30 @@ export declare class SubscriptionResource extends StripeResource {
|
|
|
76
77
|
* to an hour behind during outages. Search functionality is not available to merchants in India.
|
|
77
78
|
*/
|
|
78
79
|
search(params: SubscriptionSearchParams, options?: RequestOptions): ApiSearchResultPromise<Subscription>;
|
|
80
|
+
/**
|
|
81
|
+
* Attach a Billing Cadence to an existing subscription. When attached, the subscription is billed by the Billing Cadence, potentially sharing invoices with the other subscriptions linked to the Billing Cadence.
|
|
82
|
+
*/
|
|
83
|
+
attachCadence(id: string, params: SubscriptionAttachCadenceParams, options?: RequestOptions): Promise<Response<Subscription>>;
|
|
79
84
|
/**
|
|
80
85
|
* Upgrade the billing_mode of an existing subscription.
|
|
81
86
|
*/
|
|
82
87
|
migrate(id: string, params: SubscriptionMigrateParams, options?: RequestOptions): Promise<Response<Subscription>>;
|
|
83
88
|
/**
|
|
84
|
-
*
|
|
89
|
+
* Pauses a subscription by transitioning it to the paused status. A paused subscription does not generate invoices and will not advance to new billing periods. The subscription can be resumed later using the resume endpoint. Cannot pause subscriptions with attached schedules.
|
|
90
|
+
*/
|
|
91
|
+
pause(id: string, params: SubscriptionPauseParams, options?: RequestOptions): Promise<Response<Subscription>>;
|
|
92
|
+
/**
|
|
93
|
+
* Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become active, and if payment fails the subscription will be past_due. The resumption invoice will void automatically if not paid by the expiration date.
|
|
85
94
|
*/
|
|
86
95
|
resume(id: string, params?: SubscriptionResumeParams, options?: RequestOptions): Promise<Response<Subscription>>;
|
|
96
|
+
serializeBatchUpdate(subscriptionExposedId: string, params?: Record<string, unknown>, options?: {
|
|
97
|
+
apiVersion?: string;
|
|
98
|
+
stripeContext?: string;
|
|
99
|
+
}): string;
|
|
100
|
+
serializeBatchMigrate(subscription: string, params?: Record<string, unknown>, options?: {
|
|
101
|
+
apiVersion?: string;
|
|
102
|
+
stripeContext?: string;
|
|
103
|
+
}): string;
|
|
87
104
|
}
|
|
88
105
|
export interface Subscription {
|
|
89
106
|
/**
|
|
@@ -103,6 +120,10 @@ export interface Subscription {
|
|
|
103
120
|
*/
|
|
104
121
|
application_fee_percent: number | null;
|
|
105
122
|
automatic_tax: Subscription.AutomaticTax;
|
|
123
|
+
/**
|
|
124
|
+
* The Billing Cadence which controls the timing of recurring invoice generation for this subscription.If unset, the subscription will bill according to its own configured schedule and create its own invoices.If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
|
125
|
+
*/
|
|
126
|
+
billing_cadence?: string;
|
|
106
127
|
/**
|
|
107
128
|
* The reference point that aligns future [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle) dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals. The timestamp is in UTC format.
|
|
108
129
|
*/
|
|
@@ -115,6 +136,10 @@ export interface Subscription {
|
|
|
115
136
|
* The billing mode of the subscription.
|
|
116
137
|
*/
|
|
117
138
|
billing_mode: Subscription.BillingMode;
|
|
139
|
+
/**
|
|
140
|
+
* Billing schedules for this subscription.
|
|
141
|
+
*/
|
|
142
|
+
billing_schedules?: Array<Subscription.BillingSchedule>;
|
|
118
143
|
/**
|
|
119
144
|
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period
|
|
120
145
|
*/
|
|
@@ -188,6 +213,10 @@ export interface Subscription {
|
|
|
188
213
|
* List of subscription items, each with an attached price.
|
|
189
214
|
*/
|
|
190
215
|
items: ApiList<SubscriptionItem>;
|
|
216
|
+
/**
|
|
217
|
+
* Details of the most recent price migration that failed for the subscription.
|
|
218
|
+
*/
|
|
219
|
+
last_price_migration_error?: Subscription.LastPriceMigrationError | null;
|
|
191
220
|
/**
|
|
192
221
|
* The most recent invoice this subscription has generated over its lifecycle (for example, when it cycles or is updated).
|
|
193
222
|
*/
|
|
@@ -232,6 +261,10 @@ export interface Subscription {
|
|
|
232
261
|
* If specified, [pending updates](https://docs.stripe.com/billing/subscriptions/pending-updates) that will be applied to the subscription once the `latest_invoice` has been paid.
|
|
233
262
|
*/
|
|
234
263
|
pending_update: Subscription.PendingUpdate | null;
|
|
264
|
+
/**
|
|
265
|
+
* Time period and invoice for a Subscription billed in advance.
|
|
266
|
+
*/
|
|
267
|
+
prebilling?: Subscription.Prebilling | null;
|
|
235
268
|
presentment_details?: Subscription.PresentmentDetails;
|
|
236
269
|
/**
|
|
237
270
|
* The schedule attached to the subscription
|
|
@@ -327,6 +360,20 @@ export declare namespace Subscription {
|
|
|
327
360
|
*/
|
|
328
361
|
updated_at?: number;
|
|
329
362
|
}
|
|
363
|
+
interface BillingSchedule {
|
|
364
|
+
/**
|
|
365
|
+
* Specifies which subscription items the billing schedule applies to.
|
|
366
|
+
*/
|
|
367
|
+
applies_to: Array<BillingSchedule.AppliesTo> | null;
|
|
368
|
+
/**
|
|
369
|
+
* Specifies the end of billing period.
|
|
370
|
+
*/
|
|
371
|
+
bill_until: BillingSchedule.BillUntil;
|
|
372
|
+
/**
|
|
373
|
+
* Unique identifier for the billing schedule.
|
|
374
|
+
*/
|
|
375
|
+
key: string;
|
|
376
|
+
}
|
|
330
377
|
interface BillingThresholds {
|
|
331
378
|
/**
|
|
332
379
|
* Monetary threshold that triggers the subscription to create an invoice
|
|
@@ -359,6 +406,20 @@ export declare namespace Subscription {
|
|
|
359
406
|
account_tax_ids: Array<string | TaxId | DeletedTaxId> | null;
|
|
360
407
|
issuer: InvoiceSettings.Issuer;
|
|
361
408
|
}
|
|
409
|
+
interface LastPriceMigrationError {
|
|
410
|
+
/**
|
|
411
|
+
* The time at which the price migration encountered an error.
|
|
412
|
+
*/
|
|
413
|
+
errored_at: number;
|
|
414
|
+
/**
|
|
415
|
+
* The involved price pairs in each failed transition.
|
|
416
|
+
*/
|
|
417
|
+
failed_transitions: Array<LastPriceMigrationError.FailedTransition>;
|
|
418
|
+
/**
|
|
419
|
+
* The type of error encountered by the price migration.
|
|
420
|
+
*/
|
|
421
|
+
type: 'price_uniqueness_violation';
|
|
422
|
+
}
|
|
362
423
|
interface ManagedPayments {
|
|
363
424
|
/**
|
|
364
425
|
* Set to `true` to enable [Managed Payments](https://docs.stripe.com/payments/managed-payments), Stripe's merchant of record solution, for this session.
|
|
@@ -408,6 +469,10 @@ export declare namespace Subscription {
|
|
|
408
469
|
* The point after which the changes reflected by this update will be discarded and no longer applied.
|
|
409
470
|
*/
|
|
410
471
|
expires_at: number;
|
|
472
|
+
/**
|
|
473
|
+
* The number of iterations of prebilling to apply.
|
|
474
|
+
*/
|
|
475
|
+
prebilling_iterations?: number | null;
|
|
411
476
|
/**
|
|
412
477
|
* List of subscription items, each with an attached plan, that will be set if the update is applied.
|
|
413
478
|
*/
|
|
@@ -421,6 +486,24 @@ export declare namespace Subscription {
|
|
|
421
486
|
*/
|
|
422
487
|
trial_from_plan: boolean | null;
|
|
423
488
|
}
|
|
489
|
+
interface Prebilling {
|
|
490
|
+
/**
|
|
491
|
+
* ID of the prebilling invoice.
|
|
492
|
+
*/
|
|
493
|
+
invoice: string | Invoice;
|
|
494
|
+
/**
|
|
495
|
+
* The end of the last period for which the invoice pre-bills.
|
|
496
|
+
*/
|
|
497
|
+
period_end: number;
|
|
498
|
+
/**
|
|
499
|
+
* The start of the first period for which the invoice pre-bills.
|
|
500
|
+
*/
|
|
501
|
+
period_start: number;
|
|
502
|
+
/**
|
|
503
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period.
|
|
504
|
+
*/
|
|
505
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
506
|
+
}
|
|
424
507
|
interface PresentmentDetails {
|
|
425
508
|
/**
|
|
426
509
|
* Currency used for customer payments.
|
|
@@ -456,7 +539,7 @@ export declare namespace Subscription {
|
|
|
456
539
|
type: Liability.Type;
|
|
457
540
|
}
|
|
458
541
|
namespace Liability {
|
|
459
|
-
type Type = 'account' | 'self';
|
|
542
|
+
type Type = 'account' | 'application' | 'self';
|
|
460
543
|
}
|
|
461
544
|
}
|
|
462
545
|
namespace BillingMode {
|
|
@@ -471,6 +554,52 @@ export declare namespace Subscription {
|
|
|
471
554
|
type ProrationDiscounts = 'included' | 'itemized';
|
|
472
555
|
}
|
|
473
556
|
}
|
|
557
|
+
namespace BillingSchedule {
|
|
558
|
+
interface AppliesTo {
|
|
559
|
+
/**
|
|
560
|
+
* The billing schedule will apply to the subscription item with the given price ID.
|
|
561
|
+
*/
|
|
562
|
+
price: string | Price | null;
|
|
563
|
+
/**
|
|
564
|
+
* Controls which subscription items the billing schedule applies to.
|
|
565
|
+
*/
|
|
566
|
+
type: 'price';
|
|
567
|
+
}
|
|
568
|
+
interface BillUntil {
|
|
569
|
+
/**
|
|
570
|
+
* The timestamp the billing schedule will apply until.
|
|
571
|
+
*/
|
|
572
|
+
computed_timestamp: number;
|
|
573
|
+
/**
|
|
574
|
+
* Specifies the billing period.
|
|
575
|
+
*/
|
|
576
|
+
duration: BillUntil.Duration | null;
|
|
577
|
+
/**
|
|
578
|
+
* If specified, the billing schedule will apply until the specified timestamp.
|
|
579
|
+
*/
|
|
580
|
+
timestamp: number | null;
|
|
581
|
+
/**
|
|
582
|
+
* Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
583
|
+
*/
|
|
584
|
+
type: BillUntil.Type;
|
|
585
|
+
}
|
|
586
|
+
namespace BillUntil {
|
|
587
|
+
interface Duration {
|
|
588
|
+
/**
|
|
589
|
+
* Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
590
|
+
*/
|
|
591
|
+
interval: Duration.Interval;
|
|
592
|
+
/**
|
|
593
|
+
* The multiplier applied to the interval.
|
|
594
|
+
*/
|
|
595
|
+
interval_count: number | null;
|
|
596
|
+
}
|
|
597
|
+
type Type = 'duration' | 'timestamp';
|
|
598
|
+
namespace Duration {
|
|
599
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
}
|
|
474
603
|
namespace CancellationDetails {
|
|
475
604
|
type Feedback = 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused';
|
|
476
605
|
type Reason = 'canceled_by_retention_policy' | 'cancellation_requested' | 'payment_disputed' | 'payment_failed';
|
|
@@ -487,7 +616,19 @@ export declare namespace Subscription {
|
|
|
487
616
|
type: Issuer.Type;
|
|
488
617
|
}
|
|
489
618
|
namespace Issuer {
|
|
490
|
-
type Type = 'account' | 'self';
|
|
619
|
+
type Type = 'account' | 'application' | 'self';
|
|
620
|
+
}
|
|
621
|
+
}
|
|
622
|
+
namespace LastPriceMigrationError {
|
|
623
|
+
interface FailedTransition {
|
|
624
|
+
/**
|
|
625
|
+
* The original price to be migrated.
|
|
626
|
+
*/
|
|
627
|
+
source_price: string;
|
|
628
|
+
/**
|
|
629
|
+
* The intended resulting price of the migration.
|
|
630
|
+
*/
|
|
631
|
+
target_price: string;
|
|
491
632
|
}
|
|
492
633
|
}
|
|
493
634
|
namespace PauseCollection {
|
|
@@ -503,14 +644,30 @@ export declare namespace Subscription {
|
|
|
503
644
|
* This sub-hash contains details about the Bancontact payment method options to pass to invoices created by the subscription.
|
|
504
645
|
*/
|
|
505
646
|
bancontact: PaymentMethodOptions.Bancontact | null;
|
|
647
|
+
/**
|
|
648
|
+
* This sub-hash contains details about the Bizum payment method options to pass to invoices created by the subscription.
|
|
649
|
+
*/
|
|
650
|
+
bizum?: PaymentMethodOptions.Bizum | null;
|
|
651
|
+
/**
|
|
652
|
+
* This sub-hash contains details about the Blik payment method options to pass to invoices created by the subscription.
|
|
653
|
+
*/
|
|
654
|
+
blik?: PaymentMethodOptions.Blik | null;
|
|
506
655
|
/**
|
|
507
656
|
* This sub-hash contains details about the Card payment method options to pass to invoices created by the subscription.
|
|
508
657
|
*/
|
|
509
658
|
card: PaymentMethodOptions.Card | null;
|
|
659
|
+
/**
|
|
660
|
+
* This sub-hash contains details about the Check Scan payment method options to pass to invoices created by the subscription.
|
|
661
|
+
*/
|
|
662
|
+
check_scan?: PaymentMethodOptions.CheckScan | null;
|
|
510
663
|
/**
|
|
511
664
|
* This sub-hash contains details about the Bank transfer payment method options to pass to invoices created by the subscription.
|
|
512
665
|
*/
|
|
513
666
|
customer_balance: PaymentMethodOptions.CustomerBalance | null;
|
|
667
|
+
/**
|
|
668
|
+
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to invoices created by the subscription.
|
|
669
|
+
*/
|
|
670
|
+
id_bank_transfer?: PaymentMethodOptions.IdBankTransfer | null;
|
|
514
671
|
/**
|
|
515
672
|
* This sub-hash contains details about the Konbini payment method options to pass to invoices created by the subscription.
|
|
516
673
|
*/
|
|
@@ -536,7 +693,7 @@ export declare namespace Subscription {
|
|
|
536
693
|
*/
|
|
537
694
|
us_bank_account: PaymentMethodOptions.UsBankAccount | null;
|
|
538
695
|
}
|
|
539
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
696
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'bizum' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'check_scan' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
540
697
|
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
541
698
|
namespace PaymentMethodOptions {
|
|
542
699
|
interface AcssDebit {
|
|
@@ -552,6 +709,12 @@ export declare namespace Subscription {
|
|
|
552
709
|
*/
|
|
553
710
|
preferred_language: Bancontact.PreferredLanguage;
|
|
554
711
|
}
|
|
712
|
+
interface Bizum {
|
|
713
|
+
mandate_options?: Bizum.MandateOptions;
|
|
714
|
+
}
|
|
715
|
+
interface Blik {
|
|
716
|
+
mandate_options?: Blik.MandateOptions;
|
|
717
|
+
}
|
|
555
718
|
interface Card {
|
|
556
719
|
mandate_options?: Card.MandateOptions;
|
|
557
720
|
/**
|
|
@@ -563,6 +726,9 @@ export declare namespace Subscription {
|
|
|
563
726
|
*/
|
|
564
727
|
request_three_d_secure: Card.RequestThreeDSecure | null;
|
|
565
728
|
}
|
|
729
|
+
interface CheckScan {
|
|
730
|
+
check_deposit_address?: Address;
|
|
731
|
+
}
|
|
566
732
|
interface CustomerBalance {
|
|
567
733
|
bank_transfer?: CustomerBalance.BankTransfer;
|
|
568
734
|
/**
|
|
@@ -570,6 +736,8 @@ export declare namespace Subscription {
|
|
|
570
736
|
*/
|
|
571
737
|
funding_type: 'bank_transfer' | null;
|
|
572
738
|
}
|
|
739
|
+
interface IdBankTransfer {
|
|
740
|
+
}
|
|
573
741
|
interface Konbini {
|
|
574
742
|
}
|
|
575
743
|
interface Payto {
|
|
@@ -609,6 +777,26 @@ export declare namespace Subscription {
|
|
|
609
777
|
namespace Bancontact {
|
|
610
778
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
611
779
|
}
|
|
780
|
+
namespace Bizum {
|
|
781
|
+
interface MandateOptions {
|
|
782
|
+
/**
|
|
783
|
+
* Amount to be charged for future payments. Required when `amount_type=fixed`.
|
|
784
|
+
*/
|
|
785
|
+
amount?: number;
|
|
786
|
+
/**
|
|
787
|
+
* Indicates the mandate amount type.
|
|
788
|
+
*/
|
|
789
|
+
amount_type?: 'fixed';
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
namespace Blik {
|
|
793
|
+
interface MandateOptions {
|
|
794
|
+
/**
|
|
795
|
+
* Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
796
|
+
*/
|
|
797
|
+
expires_after: number | null;
|
|
798
|
+
}
|
|
799
|
+
}
|
|
612
800
|
namespace Card {
|
|
613
801
|
interface MandateOptions {
|
|
614
802
|
/**
|
|
@@ -736,9 +924,13 @@ export declare namespace Subscription {
|
|
|
736
924
|
* The account subcategories to use to filter for possible accounts to link. Valid subcategories are `checking` and `savings`.
|
|
737
925
|
*/
|
|
738
926
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
927
|
+
/**
|
|
928
|
+
* The institution to use to filter for possible accounts to link.
|
|
929
|
+
*/
|
|
930
|
+
institution?: string;
|
|
739
931
|
}
|
|
740
932
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
741
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
933
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
|
|
742
934
|
namespace Filters {
|
|
743
935
|
type AccountSubcategory = 'checking' | 'savings';
|
|
744
936
|
}
|
|
@@ -749,14 +941,22 @@ export declare namespace Subscription {
|
|
|
749
941
|
namespace PendingInvoiceItemInterval {
|
|
750
942
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
751
943
|
}
|
|
944
|
+
namespace Prebilling {
|
|
945
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
946
|
+
}
|
|
752
947
|
namespace TrialSettings {
|
|
753
948
|
interface EndBehavior {
|
|
949
|
+
/**
|
|
950
|
+
* Indicates how the subscription's billing cycle anchor is reset when a trial ends. If not set, the default is `now`.
|
|
951
|
+
*/
|
|
952
|
+
billing_cycle_anchor?: EndBehavior.BillingCycleAnchor | null;
|
|
754
953
|
/**
|
|
755
954
|
* Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
756
955
|
*/
|
|
757
956
|
missing_payment_method: EndBehavior.MissingPaymentMethod;
|
|
758
957
|
}
|
|
759
958
|
namespace EndBehavior {
|
|
959
|
+
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
760
960
|
type MissingPaymentMethod = 'cancel' | 'create_invoice' | 'pause';
|
|
761
961
|
}
|
|
762
962
|
}
|
|
@@ -778,6 +978,10 @@ export interface SubscriptionCreateParams {
|
|
|
778
978
|
* A past timestamp to backdate the subscription's start date to. If set, the first invoice will contain line items for the timespan between the start date and the current time. Can be combined with trials and the billing cycle anchor.
|
|
779
979
|
*/
|
|
780
980
|
backdate_start_date?: number;
|
|
981
|
+
/**
|
|
982
|
+
* The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
|
983
|
+
*/
|
|
984
|
+
billing_cadence?: string;
|
|
781
985
|
/**
|
|
782
986
|
* A future timestamp in UTC format to anchor the subscription's [billing cycle](https://docs.stripe.com/subscriptions/billing-cycle). The anchor is the reference point that aligns future billing cycle dates. It sets the day of week for `week` intervals, the day of month for `month` and `year` intervals, and the month of year for `year` intervals.
|
|
783
987
|
*/
|
|
@@ -790,6 +994,10 @@ export interface SubscriptionCreateParams {
|
|
|
790
994
|
* Controls how prorations and invoices for subscriptions are calculated and orchestrated.
|
|
791
995
|
*/
|
|
792
996
|
billing_mode?: SubscriptionCreateParams.BillingMode;
|
|
997
|
+
/**
|
|
998
|
+
* Sets the billing schedules for the subscription.
|
|
999
|
+
*/
|
|
1000
|
+
billing_schedules?: Array<SubscriptionCreateParams.BillingSchedule>;
|
|
793
1001
|
/**
|
|
794
1002
|
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
|
|
795
1003
|
*/
|
|
@@ -888,6 +1096,10 @@ export interface SubscriptionCreateParams {
|
|
|
888
1096
|
* Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
|
|
889
1097
|
*/
|
|
890
1098
|
pending_invoice_item_interval?: Emptyable<SubscriptionCreateParams.PendingInvoiceItemInterval>;
|
|
1099
|
+
/**
|
|
1100
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
1101
|
+
*/
|
|
1102
|
+
prebilling?: SubscriptionCreateParams.Prebilling;
|
|
891
1103
|
/**
|
|
892
1104
|
* Determines how to handle [prorations](https://docs.stripe.com/billing/subscriptions/prorations) resulting from the `billing_cycle_anchor`. If no value is passed, the default is `create_prorations`.
|
|
893
1105
|
*/
|
|
@@ -986,6 +1198,20 @@ export declare namespace SubscriptionCreateParams {
|
|
|
986
1198
|
*/
|
|
987
1199
|
type: BillingMode.Type;
|
|
988
1200
|
}
|
|
1201
|
+
interface BillingSchedule {
|
|
1202
|
+
/**
|
|
1203
|
+
* Configure billing schedule differently for individual subscription items.
|
|
1204
|
+
*/
|
|
1205
|
+
applies_to?: Array<BillingSchedule.AppliesTo>;
|
|
1206
|
+
/**
|
|
1207
|
+
* The end date for the billing schedule.
|
|
1208
|
+
*/
|
|
1209
|
+
bill_until: BillingSchedule.BillUntil;
|
|
1210
|
+
/**
|
|
1211
|
+
* 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.
|
|
1212
|
+
*/
|
|
1213
|
+
key?: string;
|
|
1214
|
+
}
|
|
989
1215
|
interface BillingThresholds {
|
|
990
1216
|
/**
|
|
991
1217
|
* Monetary threshold that triggers the subscription to advance to a new billing period
|
|
@@ -1007,10 +1233,18 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1007
1233
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1008
1234
|
*/
|
|
1009
1235
|
discount?: string;
|
|
1236
|
+
/**
|
|
1237
|
+
* Details to determine how long the discount should be applied for.
|
|
1238
|
+
*/
|
|
1239
|
+
discount_end?: Discount.DiscountEnd;
|
|
1010
1240
|
/**
|
|
1011
1241
|
* ID of the promotion code to create a new discount for.
|
|
1012
1242
|
*/
|
|
1013
1243
|
promotion_code?: string;
|
|
1244
|
+
/**
|
|
1245
|
+
* Settings for discount application including service period anchoring.
|
|
1246
|
+
*/
|
|
1247
|
+
settings?: Discount.Settings;
|
|
1014
1248
|
}
|
|
1015
1249
|
interface InvoiceSettings {
|
|
1016
1250
|
/**
|
|
@@ -1027,6 +1261,10 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1027
1261
|
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. Pass an empty string to remove previously-defined thresholds.
|
|
1028
1262
|
*/
|
|
1029
1263
|
billing_thresholds?: Emptyable<Item.BillingThresholds>;
|
|
1264
|
+
/**
|
|
1265
|
+
* The trial offer to apply to this subscription item.
|
|
1266
|
+
*/
|
|
1267
|
+
current_trial?: Item.CurrentTrial;
|
|
1030
1268
|
/**
|
|
1031
1269
|
* The coupons to redeem into discounts for the subscription item.
|
|
1032
1270
|
*/
|
|
@@ -1055,6 +1293,10 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1055
1293
|
* 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.
|
|
1056
1294
|
*/
|
|
1057
1295
|
tax_rates?: Emptyable<Array<string>>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Define options to configure the trial on the subscription item.
|
|
1298
|
+
*/
|
|
1299
|
+
trial?: Item.Trial;
|
|
1058
1300
|
}
|
|
1059
1301
|
type PaymentBehavior = 'allow_incomplete' | 'default_incomplete' | 'error_if_incomplete' | 'pending_if_incomplete';
|
|
1060
1302
|
interface PaymentSettings {
|
|
@@ -1081,6 +1323,16 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1081
1323
|
*/
|
|
1082
1324
|
interval_count?: number;
|
|
1083
1325
|
}
|
|
1326
|
+
interface Prebilling {
|
|
1327
|
+
/**
|
|
1328
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
1329
|
+
*/
|
|
1330
|
+
iterations: number;
|
|
1331
|
+
/**
|
|
1332
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
1333
|
+
*/
|
|
1334
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
1335
|
+
}
|
|
1084
1336
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1085
1337
|
interface TransferData {
|
|
1086
1338
|
/**
|
|
@@ -1108,6 +1360,10 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1108
1360
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1109
1361
|
*/
|
|
1110
1362
|
discount?: string;
|
|
1363
|
+
/**
|
|
1364
|
+
* Details to determine how long the discount should be applied for.
|
|
1365
|
+
*/
|
|
1366
|
+
discount_end?: Discount.DiscountEnd;
|
|
1111
1367
|
/**
|
|
1112
1368
|
* ID of the promotion code to create a new discount for.
|
|
1113
1369
|
*/
|
|
@@ -1145,6 +1401,38 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1145
1401
|
*/
|
|
1146
1402
|
unit_amount_decimal?: Decimal;
|
|
1147
1403
|
}
|
|
1404
|
+
namespace Discount {
|
|
1405
|
+
interface DiscountEnd {
|
|
1406
|
+
/**
|
|
1407
|
+
* Time span for the redeemed discount.
|
|
1408
|
+
*/
|
|
1409
|
+
duration?: DiscountEnd.Duration;
|
|
1410
|
+
/**
|
|
1411
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1412
|
+
*/
|
|
1413
|
+
timestamp?: number;
|
|
1414
|
+
/**
|
|
1415
|
+
* The type of calculation made to determine when the discount ends.
|
|
1416
|
+
*/
|
|
1417
|
+
type: DiscountEnd.Type;
|
|
1418
|
+
}
|
|
1419
|
+
namespace DiscountEnd {
|
|
1420
|
+
interface Duration {
|
|
1421
|
+
/**
|
|
1422
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1423
|
+
*/
|
|
1424
|
+
interval: Duration.Interval;
|
|
1425
|
+
/**
|
|
1426
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1427
|
+
*/
|
|
1428
|
+
interval_count: number;
|
|
1429
|
+
}
|
|
1430
|
+
type Type = 'duration' | 'timestamp';
|
|
1431
|
+
namespace Duration {
|
|
1432
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1433
|
+
}
|
|
1434
|
+
}
|
|
1435
|
+
}
|
|
1148
1436
|
namespace Period {
|
|
1149
1437
|
interface End {
|
|
1150
1438
|
/**
|
|
@@ -1189,7 +1477,7 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1189
1477
|
type: Liability.Type;
|
|
1190
1478
|
}
|
|
1191
1479
|
namespace Liability {
|
|
1192
|
-
type Type = 'account' | 'self';
|
|
1480
|
+
type Type = 'account' | 'application' | 'self';
|
|
1193
1481
|
}
|
|
1194
1482
|
}
|
|
1195
1483
|
namespace BillingMode {
|
|
@@ -1204,6 +1492,128 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1204
1492
|
type ProrationDiscounts = 'included' | 'itemized';
|
|
1205
1493
|
}
|
|
1206
1494
|
}
|
|
1495
|
+
namespace BillingSchedule {
|
|
1496
|
+
interface AppliesTo {
|
|
1497
|
+
/**
|
|
1498
|
+
* The ID of the price object.
|
|
1499
|
+
*/
|
|
1500
|
+
price?: string;
|
|
1501
|
+
/**
|
|
1502
|
+
* Controls which subscription items the billing schedule applies to.
|
|
1503
|
+
*/
|
|
1504
|
+
type: 'price';
|
|
1505
|
+
}
|
|
1506
|
+
interface BillUntil {
|
|
1507
|
+
/**
|
|
1508
|
+
* Specifies the billing period.
|
|
1509
|
+
*/
|
|
1510
|
+
duration?: BillUntil.Duration;
|
|
1511
|
+
/**
|
|
1512
|
+
* The end date of the billing schedule.
|
|
1513
|
+
*/
|
|
1514
|
+
timestamp?: number;
|
|
1515
|
+
/**
|
|
1516
|
+
* Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
1517
|
+
*/
|
|
1518
|
+
type: BillUntil.Type;
|
|
1519
|
+
}
|
|
1520
|
+
namespace BillUntil {
|
|
1521
|
+
interface Duration {
|
|
1522
|
+
/**
|
|
1523
|
+
* Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
1524
|
+
*/
|
|
1525
|
+
interval: Duration.Interval;
|
|
1526
|
+
/**
|
|
1527
|
+
* The multiplier applied to the interval.
|
|
1528
|
+
*/
|
|
1529
|
+
interval_count?: number;
|
|
1530
|
+
}
|
|
1531
|
+
type Type = 'duration' | 'timestamp';
|
|
1532
|
+
namespace Duration {
|
|
1533
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1534
|
+
}
|
|
1535
|
+
}
|
|
1536
|
+
}
|
|
1537
|
+
namespace Discount {
|
|
1538
|
+
interface DiscountEnd {
|
|
1539
|
+
/**
|
|
1540
|
+
* Time span for the redeemed discount.
|
|
1541
|
+
*/
|
|
1542
|
+
duration?: DiscountEnd.Duration;
|
|
1543
|
+
/**
|
|
1544
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1545
|
+
*/
|
|
1546
|
+
timestamp?: number;
|
|
1547
|
+
/**
|
|
1548
|
+
* The type of calculation made to determine when the discount ends.
|
|
1549
|
+
*/
|
|
1550
|
+
type: DiscountEnd.Type;
|
|
1551
|
+
}
|
|
1552
|
+
interface Settings {
|
|
1553
|
+
/**
|
|
1554
|
+
* Configures service period cycle anchoring.
|
|
1555
|
+
*/
|
|
1556
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
1557
|
+
/**
|
|
1558
|
+
* 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.
|
|
1559
|
+
*/
|
|
1560
|
+
start_date?: Settings.StartDate;
|
|
1561
|
+
}
|
|
1562
|
+
namespace DiscountEnd {
|
|
1563
|
+
interface Duration {
|
|
1564
|
+
/**
|
|
1565
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1566
|
+
*/
|
|
1567
|
+
interval: Duration.Interval;
|
|
1568
|
+
/**
|
|
1569
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1570
|
+
*/
|
|
1571
|
+
interval_count: number;
|
|
1572
|
+
}
|
|
1573
|
+
type Type = 'duration' | 'timestamp';
|
|
1574
|
+
namespace Duration {
|
|
1575
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1576
|
+
}
|
|
1577
|
+
}
|
|
1578
|
+
namespace Settings {
|
|
1579
|
+
interface ServicePeriodAnchorConfig {
|
|
1580
|
+
/**
|
|
1581
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
1582
|
+
*/
|
|
1583
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
1584
|
+
/**
|
|
1585
|
+
* The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
1586
|
+
*/
|
|
1587
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
1588
|
+
}
|
|
1589
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'now';
|
|
1590
|
+
namespace ServicePeriodAnchorConfig {
|
|
1591
|
+
interface Custom {
|
|
1592
|
+
/**
|
|
1593
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
1594
|
+
*/
|
|
1595
|
+
day_of_month: number;
|
|
1596
|
+
/**
|
|
1597
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
1598
|
+
*/
|
|
1599
|
+
hour?: number;
|
|
1600
|
+
/**
|
|
1601
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
1602
|
+
*/
|
|
1603
|
+
minute?: number;
|
|
1604
|
+
/**
|
|
1605
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
1606
|
+
*/
|
|
1607
|
+
month?: number;
|
|
1608
|
+
/**
|
|
1609
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
1610
|
+
*/
|
|
1611
|
+
second?: number;
|
|
1612
|
+
}
|
|
1613
|
+
type Type = 'custom' | 'subscription_service_cycle_anchor';
|
|
1614
|
+
}
|
|
1615
|
+
}
|
|
1616
|
+
}
|
|
1207
1617
|
namespace InvoiceSettings {
|
|
1208
1618
|
interface Issuer {
|
|
1209
1619
|
/**
|
|
@@ -1216,7 +1626,7 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1216
1626
|
type: Issuer.Type;
|
|
1217
1627
|
}
|
|
1218
1628
|
namespace Issuer {
|
|
1219
|
-
type Type = 'account' | 'self';
|
|
1629
|
+
type Type = 'account' | 'application' | 'self';
|
|
1220
1630
|
}
|
|
1221
1631
|
}
|
|
1222
1632
|
namespace Item {
|
|
@@ -1226,6 +1636,16 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1226
1636
|
*/
|
|
1227
1637
|
usage_gte: number;
|
|
1228
1638
|
}
|
|
1639
|
+
interface CurrentTrial {
|
|
1640
|
+
/**
|
|
1641
|
+
* 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`.
|
|
1642
|
+
*/
|
|
1643
|
+
trial_end?: number;
|
|
1644
|
+
/**
|
|
1645
|
+
* The ID of the trial offer to apply to the subscription item.
|
|
1646
|
+
*/
|
|
1647
|
+
trial_offer: string;
|
|
1648
|
+
}
|
|
1229
1649
|
interface Discount {
|
|
1230
1650
|
/**
|
|
1231
1651
|
* ID of the coupon to create a new discount for.
|
|
@@ -1235,10 +1655,18 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1235
1655
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1236
1656
|
*/
|
|
1237
1657
|
discount?: string;
|
|
1658
|
+
/**
|
|
1659
|
+
* Details to determine how long the discount should be applied for.
|
|
1660
|
+
*/
|
|
1661
|
+
discount_end?: Discount.DiscountEnd;
|
|
1238
1662
|
/**
|
|
1239
1663
|
* ID of the promotion code to create a new discount for.
|
|
1240
1664
|
*/
|
|
1241
1665
|
promotion_code?: string;
|
|
1666
|
+
/**
|
|
1667
|
+
* Settings for discount application including service period anchoring.
|
|
1668
|
+
*/
|
|
1669
|
+
settings?: Discount.Settings;
|
|
1242
1670
|
}
|
|
1243
1671
|
interface PriceData {
|
|
1244
1672
|
/**
|
|
@@ -1266,6 +1694,96 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1266
1694
|
*/
|
|
1267
1695
|
unit_amount_decimal?: Decimal;
|
|
1268
1696
|
}
|
|
1697
|
+
interface Trial {
|
|
1698
|
+
/**
|
|
1699
|
+
* 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.
|
|
1700
|
+
*/
|
|
1701
|
+
converts_to?: Array<string>;
|
|
1702
|
+
/**
|
|
1703
|
+
* Determines the type of trial for this item.
|
|
1704
|
+
*/
|
|
1705
|
+
type: Trial.Type;
|
|
1706
|
+
}
|
|
1707
|
+
namespace Discount {
|
|
1708
|
+
interface DiscountEnd {
|
|
1709
|
+
/**
|
|
1710
|
+
* Time span for the redeemed discount.
|
|
1711
|
+
*/
|
|
1712
|
+
duration?: DiscountEnd.Duration;
|
|
1713
|
+
/**
|
|
1714
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
1715
|
+
*/
|
|
1716
|
+
timestamp?: number;
|
|
1717
|
+
/**
|
|
1718
|
+
* The type of calculation made to determine when the discount ends.
|
|
1719
|
+
*/
|
|
1720
|
+
type: DiscountEnd.Type;
|
|
1721
|
+
}
|
|
1722
|
+
interface Settings {
|
|
1723
|
+
/**
|
|
1724
|
+
* Configures service period cycle anchoring.
|
|
1725
|
+
*/
|
|
1726
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
1727
|
+
/**
|
|
1728
|
+
* 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.
|
|
1729
|
+
*/
|
|
1730
|
+
start_date?: Settings.StartDate;
|
|
1731
|
+
}
|
|
1732
|
+
namespace DiscountEnd {
|
|
1733
|
+
interface Duration {
|
|
1734
|
+
/**
|
|
1735
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
1736
|
+
*/
|
|
1737
|
+
interval: Duration.Interval;
|
|
1738
|
+
/**
|
|
1739
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
1740
|
+
*/
|
|
1741
|
+
interval_count: number;
|
|
1742
|
+
}
|
|
1743
|
+
type Type = 'duration' | 'timestamp';
|
|
1744
|
+
namespace Duration {
|
|
1745
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
namespace Settings {
|
|
1749
|
+
interface ServicePeriodAnchorConfig {
|
|
1750
|
+
/**
|
|
1751
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
1752
|
+
*/
|
|
1753
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
1754
|
+
/**
|
|
1755
|
+
* The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
1756
|
+
*/
|
|
1757
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
1758
|
+
}
|
|
1759
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'now';
|
|
1760
|
+
namespace ServicePeriodAnchorConfig {
|
|
1761
|
+
interface Custom {
|
|
1762
|
+
/**
|
|
1763
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
1764
|
+
*/
|
|
1765
|
+
day_of_month: number;
|
|
1766
|
+
/**
|
|
1767
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
1768
|
+
*/
|
|
1769
|
+
hour?: number;
|
|
1770
|
+
/**
|
|
1771
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
1772
|
+
*/
|
|
1773
|
+
minute?: number;
|
|
1774
|
+
/**
|
|
1775
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
1776
|
+
*/
|
|
1777
|
+
month?: number;
|
|
1778
|
+
/**
|
|
1779
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
1780
|
+
*/
|
|
1781
|
+
second?: number;
|
|
1782
|
+
}
|
|
1783
|
+
type Type = 'custom' | 'subscription_service_cycle_anchor';
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1269
1787
|
namespace PriceData {
|
|
1270
1788
|
interface Recurring {
|
|
1271
1789
|
/**
|
|
@@ -1282,6 +1800,9 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1282
1800
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1283
1801
|
}
|
|
1284
1802
|
}
|
|
1803
|
+
namespace Trial {
|
|
1804
|
+
type Type = 'free' | 'paid';
|
|
1805
|
+
}
|
|
1285
1806
|
}
|
|
1286
1807
|
namespace PaymentSettings {
|
|
1287
1808
|
interface PaymentMethodOptions {
|
|
@@ -1290,17 +1811,33 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1290
1811
|
*/
|
|
1291
1812
|
acss_debit?: Emptyable<PaymentMethodOptions.AcssDebit>;
|
|
1292
1813
|
/**
|
|
1293
|
-
* This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
1814
|
+
* This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
1815
|
+
*/
|
|
1816
|
+
bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
|
|
1817
|
+
/**
|
|
1818
|
+
* This sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
|
|
1819
|
+
*/
|
|
1820
|
+
bizum?: Emptyable<PaymentMethodOptions.Bizum>;
|
|
1821
|
+
/**
|
|
1822
|
+
* This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
1294
1823
|
*/
|
|
1295
|
-
|
|
1824
|
+
blik?: Emptyable<PaymentMethodOptions.Blik>;
|
|
1296
1825
|
/**
|
|
1297
1826
|
* This sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
1298
1827
|
*/
|
|
1299
1828
|
card?: Emptyable<PaymentMethodOptions.Card>;
|
|
1829
|
+
/**
|
|
1830
|
+
* This sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
|
|
1831
|
+
*/
|
|
1832
|
+
check_scan?: Emptyable<PaymentMethodOptions.CheckScan>;
|
|
1300
1833
|
/**
|
|
1301
1834
|
* This sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1302
1835
|
*/
|
|
1303
1836
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
1837
|
+
/**
|
|
1838
|
+
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
1839
|
+
*/
|
|
1840
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
1304
1841
|
/**
|
|
1305
1842
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
1306
1843
|
*/
|
|
@@ -1326,7 +1863,7 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1326
1863
|
*/
|
|
1327
1864
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
1328
1865
|
}
|
|
1329
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
1866
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'bizum' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'check_scan' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
1330
1867
|
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
1331
1868
|
namespace PaymentMethodOptions {
|
|
1332
1869
|
interface AcssDebit {
|
|
@@ -1345,6 +1882,18 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1345
1882
|
*/
|
|
1346
1883
|
preferred_language?: Bancontact.PreferredLanguage;
|
|
1347
1884
|
}
|
|
1885
|
+
interface Bizum {
|
|
1886
|
+
/**
|
|
1887
|
+
* Configuration options for setting up a mandate
|
|
1888
|
+
*/
|
|
1889
|
+
mandate_options?: Bizum.MandateOptions;
|
|
1890
|
+
}
|
|
1891
|
+
interface Blik {
|
|
1892
|
+
/**
|
|
1893
|
+
* Configuration options for setting up a mandate
|
|
1894
|
+
*/
|
|
1895
|
+
mandate_options?: Blik.MandateOptions;
|
|
1896
|
+
}
|
|
1348
1897
|
interface Card {
|
|
1349
1898
|
/**
|
|
1350
1899
|
* Configuration options for setting up an eMandate for cards issued in India.
|
|
@@ -1359,6 +1908,9 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1359
1908
|
*/
|
|
1360
1909
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
1361
1910
|
}
|
|
1911
|
+
interface CheckScan {
|
|
1912
|
+
check_deposit_address?: AddressParam;
|
|
1913
|
+
}
|
|
1362
1914
|
interface CustomerBalance {
|
|
1363
1915
|
/**
|
|
1364
1916
|
* Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
@@ -1369,6 +1921,8 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1369
1921
|
*/
|
|
1370
1922
|
funding_type?: string;
|
|
1371
1923
|
}
|
|
1924
|
+
interface IdBankTransfer {
|
|
1925
|
+
}
|
|
1372
1926
|
interface Konbini {
|
|
1373
1927
|
}
|
|
1374
1928
|
interface Payto {
|
|
@@ -1420,6 +1974,26 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1420
1974
|
namespace Bancontact {
|
|
1421
1975
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
1422
1976
|
}
|
|
1977
|
+
namespace Bizum {
|
|
1978
|
+
interface MandateOptions {
|
|
1979
|
+
/**
|
|
1980
|
+
* Amount to be charged for future payments. Required when `amount_type=fixed`.
|
|
1981
|
+
*/
|
|
1982
|
+
amount: number;
|
|
1983
|
+
/**
|
|
1984
|
+
* Indicates the mandate amount type.
|
|
1985
|
+
*/
|
|
1986
|
+
amount_type: 'fixed';
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
namespace Blik {
|
|
1990
|
+
interface MandateOptions {
|
|
1991
|
+
/**
|
|
1992
|
+
* Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
1993
|
+
*/
|
|
1994
|
+
expires_after?: number;
|
|
1995
|
+
}
|
|
1996
|
+
}
|
|
1423
1997
|
namespace Card {
|
|
1424
1998
|
interface MandateOptions {
|
|
1425
1999
|
/**
|
|
@@ -1545,9 +2119,13 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1545
2119
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
1546
2120
|
*/
|
|
1547
2121
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
2122
|
+
/**
|
|
2123
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
2124
|
+
*/
|
|
2125
|
+
institution?: string;
|
|
1548
2126
|
}
|
|
1549
2127
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
1550
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
2128
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
|
|
1551
2129
|
namespace Filters {
|
|
1552
2130
|
type AccountSubcategory = 'checking' | 'savings';
|
|
1553
2131
|
}
|
|
@@ -1558,14 +2136,22 @@ export declare namespace SubscriptionCreateParams {
|
|
|
1558
2136
|
namespace PendingInvoiceItemInterval {
|
|
1559
2137
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1560
2138
|
}
|
|
2139
|
+
namespace Prebilling {
|
|
2140
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
2141
|
+
}
|
|
1561
2142
|
namespace TrialSettings {
|
|
1562
2143
|
interface EndBehavior {
|
|
2144
|
+
/**
|
|
2145
|
+
* Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`.
|
|
2146
|
+
*/
|
|
2147
|
+
billing_cycle_anchor?: EndBehavior.BillingCycleAnchor;
|
|
1563
2148
|
/**
|
|
1564
2149
|
* Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
1565
2150
|
*/
|
|
1566
2151
|
missing_payment_method: EndBehavior.MissingPaymentMethod;
|
|
1567
2152
|
}
|
|
1568
2153
|
namespace EndBehavior {
|
|
2154
|
+
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
1569
2155
|
type MissingPaymentMethod = 'cancel' | 'create_invoice' | 'pause';
|
|
1570
2156
|
}
|
|
1571
2157
|
}
|
|
@@ -1589,10 +2175,18 @@ export interface SubscriptionUpdateParams {
|
|
|
1589
2175
|
* Automatic tax settings for this subscription. We recommend you only include this parameter when the existing value is being changed.
|
|
1590
2176
|
*/
|
|
1591
2177
|
automatic_tax?: SubscriptionUpdateParams.AutomaticTax;
|
|
2178
|
+
/**
|
|
2179
|
+
* The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
|
2180
|
+
*/
|
|
2181
|
+
billing_cadence?: string;
|
|
1592
2182
|
/**
|
|
1593
2183
|
* Either `now` or `unchanged`. Setting the value to `now` resets the subscription's billing cycle anchor to the current time (in UTC). For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
|
1594
2184
|
*/
|
|
1595
2185
|
billing_cycle_anchor?: SubscriptionUpdateParams.BillingCycleAnchor;
|
|
2186
|
+
/**
|
|
2187
|
+
* Sets the billing schedules for the subscription.
|
|
2188
|
+
*/
|
|
2189
|
+
billing_schedules?: Emptyable<Array<SubscriptionUpdateParams.BillingSchedule>>;
|
|
1596
2190
|
/**
|
|
1597
2191
|
* Define thresholds at which an invoice will be sent, and the subscription advanced to a new billing period. When updating, pass an empty string to remove previously-defined thresholds.
|
|
1598
2192
|
*/
|
|
@@ -1683,6 +2277,10 @@ export interface SubscriptionUpdateParams {
|
|
|
1683
2277
|
* Specifies an interval for how often to bill for any pending invoice items. It is analogous to calling [Create an invoice](https://docs.stripe.com/api/invoices/create) for the given subscription at the specified interval.
|
|
1684
2278
|
*/
|
|
1685
2279
|
pending_invoice_item_interval?: Emptyable<SubscriptionUpdateParams.PendingInvoiceItemInterval>;
|
|
2280
|
+
/**
|
|
2281
|
+
* If specified, the invoicing for the given billing cycle iterations will be processed now.
|
|
2282
|
+
*/
|
|
2283
|
+
prebilling?: SubscriptionUpdateParams.Prebilling;
|
|
1686
2284
|
/**
|
|
1687
2285
|
* 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`.
|
|
1688
2286
|
*/
|
|
@@ -1750,6 +2348,20 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
1750
2348
|
liability?: AutomaticTax.Liability;
|
|
1751
2349
|
}
|
|
1752
2350
|
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
2351
|
+
interface BillingSchedule {
|
|
2352
|
+
/**
|
|
2353
|
+
* Configure billing schedule differently for individual subscription items.
|
|
2354
|
+
*/
|
|
2355
|
+
applies_to?: Array<BillingSchedule.AppliesTo>;
|
|
2356
|
+
/**
|
|
2357
|
+
* The end date for the billing schedule.
|
|
2358
|
+
*/
|
|
2359
|
+
bill_until?: BillingSchedule.BillUntil;
|
|
2360
|
+
/**
|
|
2361
|
+
* 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.
|
|
2362
|
+
*/
|
|
2363
|
+
key?: string;
|
|
2364
|
+
}
|
|
1753
2365
|
interface BillingThresholds {
|
|
1754
2366
|
/**
|
|
1755
2367
|
* Monetary threshold that triggers the subscription to advance to a new billing period
|
|
@@ -1781,10 +2393,18 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
1781
2393
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1782
2394
|
*/
|
|
1783
2395
|
discount?: string;
|
|
2396
|
+
/**
|
|
2397
|
+
* Details to determine how long the discount should be applied for.
|
|
2398
|
+
*/
|
|
2399
|
+
discount_end?: Discount.DiscountEnd;
|
|
1784
2400
|
/**
|
|
1785
2401
|
* ID of the promotion code to create a new discount for.
|
|
1786
2402
|
*/
|
|
1787
2403
|
promotion_code?: string;
|
|
2404
|
+
/**
|
|
2405
|
+
* Settings for discount application including service period anchoring.
|
|
2406
|
+
*/
|
|
2407
|
+
settings?: Discount.Settings;
|
|
1788
2408
|
}
|
|
1789
2409
|
interface InvoiceSettings {
|
|
1790
2410
|
/**
|
|
@@ -1805,6 +2425,10 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
1805
2425
|
* Delete all usage for a given subscription item. You must pass this when deleting a usage records subscription item. `clear_usage` has no effect if the plan has a billing meter attached.
|
|
1806
2426
|
*/
|
|
1807
2427
|
clear_usage?: boolean;
|
|
2428
|
+
/**
|
|
2429
|
+
* The trial offer to apply to this subscription item.
|
|
2430
|
+
*/
|
|
2431
|
+
current_trial?: Item.CurrentTrial;
|
|
1808
2432
|
/**
|
|
1809
2433
|
* A flag that, if set to `true`, will delete the specified item.
|
|
1810
2434
|
*/
|
|
@@ -1877,6 +2501,16 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
1877
2501
|
*/
|
|
1878
2502
|
interval_count?: number;
|
|
1879
2503
|
}
|
|
2504
|
+
interface Prebilling {
|
|
2505
|
+
/**
|
|
2506
|
+
* This is used to determine the number of billing cycles to prebill.
|
|
2507
|
+
*/
|
|
2508
|
+
iterations: number;
|
|
2509
|
+
/**
|
|
2510
|
+
* Whether to cancel or preserve `prebilling` if the subscription is updated during the prebilled period. The default value is `reset`.
|
|
2511
|
+
*/
|
|
2512
|
+
update_behavior?: Prebilling.UpdateBehavior;
|
|
2513
|
+
}
|
|
1880
2514
|
type ProrationBehavior = 'always_invoice' | 'create_prorations' | 'none';
|
|
1881
2515
|
interface TransferData {
|
|
1882
2516
|
/**
|
|
@@ -1904,6 +2538,10 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
1904
2538
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
1905
2539
|
*/
|
|
1906
2540
|
discount?: string;
|
|
2541
|
+
/**
|
|
2542
|
+
* Details to determine how long the discount should be applied for.
|
|
2543
|
+
*/
|
|
2544
|
+
discount_end?: Discount.DiscountEnd;
|
|
1907
2545
|
/**
|
|
1908
2546
|
* ID of the promotion code to create a new discount for.
|
|
1909
2547
|
*/
|
|
@@ -1941,6 +2579,38 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
1941
2579
|
*/
|
|
1942
2580
|
unit_amount_decimal?: Decimal;
|
|
1943
2581
|
}
|
|
2582
|
+
namespace Discount {
|
|
2583
|
+
interface DiscountEnd {
|
|
2584
|
+
/**
|
|
2585
|
+
* Time span for the redeemed discount.
|
|
2586
|
+
*/
|
|
2587
|
+
duration?: DiscountEnd.Duration;
|
|
2588
|
+
/**
|
|
2589
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2590
|
+
*/
|
|
2591
|
+
timestamp?: number;
|
|
2592
|
+
/**
|
|
2593
|
+
* The type of calculation made to determine when the discount ends.
|
|
2594
|
+
*/
|
|
2595
|
+
type: DiscountEnd.Type;
|
|
2596
|
+
}
|
|
2597
|
+
namespace DiscountEnd {
|
|
2598
|
+
interface Duration {
|
|
2599
|
+
/**
|
|
2600
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2601
|
+
*/
|
|
2602
|
+
interval: Duration.Interval;
|
|
2603
|
+
/**
|
|
2604
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2605
|
+
*/
|
|
2606
|
+
interval_count: number;
|
|
2607
|
+
}
|
|
2608
|
+
type Type = 'duration' | 'timestamp';
|
|
2609
|
+
namespace Duration {
|
|
2610
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
}
|
|
1944
2614
|
namespace Period {
|
|
1945
2615
|
interface End {
|
|
1946
2616
|
/**
|
|
@@ -1985,12 +2655,134 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
1985
2655
|
type: Liability.Type;
|
|
1986
2656
|
}
|
|
1987
2657
|
namespace Liability {
|
|
1988
|
-
type Type = 'account' | 'self';
|
|
2658
|
+
type Type = 'account' | 'application' | 'self';
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
namespace BillingSchedule {
|
|
2662
|
+
interface AppliesTo {
|
|
2663
|
+
/**
|
|
2664
|
+
* The ID of the price object.
|
|
2665
|
+
*/
|
|
2666
|
+
price?: string;
|
|
2667
|
+
/**
|
|
2668
|
+
* Controls which subscription items the billing schedule applies to.
|
|
2669
|
+
*/
|
|
2670
|
+
type: 'price';
|
|
2671
|
+
}
|
|
2672
|
+
interface BillUntil {
|
|
2673
|
+
/**
|
|
2674
|
+
* Specifies the billing period.
|
|
2675
|
+
*/
|
|
2676
|
+
duration?: BillUntil.Duration;
|
|
2677
|
+
/**
|
|
2678
|
+
* The end date of the billing schedule.
|
|
2679
|
+
*/
|
|
2680
|
+
timestamp?: number;
|
|
2681
|
+
/**
|
|
2682
|
+
* Describes how the billing schedule will determine the end date. Either `duration` or `timestamp`.
|
|
2683
|
+
*/
|
|
2684
|
+
type: BillUntil.Type;
|
|
2685
|
+
}
|
|
2686
|
+
namespace BillUntil {
|
|
2687
|
+
interface Duration {
|
|
2688
|
+
/**
|
|
2689
|
+
* Specifies billing duration. Either `day`, `week`, `month` or `year`.
|
|
2690
|
+
*/
|
|
2691
|
+
interval: Duration.Interval;
|
|
2692
|
+
/**
|
|
2693
|
+
* The multiplier applied to the interval.
|
|
2694
|
+
*/
|
|
2695
|
+
interval_count?: number;
|
|
2696
|
+
}
|
|
2697
|
+
type Type = 'duration' | 'timestamp';
|
|
2698
|
+
namespace Duration {
|
|
2699
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2700
|
+
}
|
|
1989
2701
|
}
|
|
1990
2702
|
}
|
|
1991
2703
|
namespace CancellationDetails {
|
|
1992
2704
|
type Feedback = 'customer_service' | 'low_quality' | 'missing_features' | 'other' | 'switched_service' | 'too_complex' | 'too_expensive' | 'unused';
|
|
1993
2705
|
}
|
|
2706
|
+
namespace Discount {
|
|
2707
|
+
interface DiscountEnd {
|
|
2708
|
+
/**
|
|
2709
|
+
* Time span for the redeemed discount.
|
|
2710
|
+
*/
|
|
2711
|
+
duration?: DiscountEnd.Duration;
|
|
2712
|
+
/**
|
|
2713
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2714
|
+
*/
|
|
2715
|
+
timestamp?: number;
|
|
2716
|
+
/**
|
|
2717
|
+
* The type of calculation made to determine when the discount ends.
|
|
2718
|
+
*/
|
|
2719
|
+
type: DiscountEnd.Type;
|
|
2720
|
+
}
|
|
2721
|
+
interface Settings {
|
|
2722
|
+
/**
|
|
2723
|
+
* Configures service period cycle anchoring.
|
|
2724
|
+
*/
|
|
2725
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
2726
|
+
/**
|
|
2727
|
+
* 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.
|
|
2728
|
+
*/
|
|
2729
|
+
start_date?: Settings.StartDate;
|
|
2730
|
+
}
|
|
2731
|
+
namespace DiscountEnd {
|
|
2732
|
+
interface Duration {
|
|
2733
|
+
/**
|
|
2734
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2735
|
+
*/
|
|
2736
|
+
interval: Duration.Interval;
|
|
2737
|
+
/**
|
|
2738
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2739
|
+
*/
|
|
2740
|
+
interval_count: number;
|
|
2741
|
+
}
|
|
2742
|
+
type Type = 'duration' | 'timestamp';
|
|
2743
|
+
namespace Duration {
|
|
2744
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
namespace Settings {
|
|
2748
|
+
interface ServicePeriodAnchorConfig {
|
|
2749
|
+
/**
|
|
2750
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
2751
|
+
*/
|
|
2752
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
2753
|
+
/**
|
|
2754
|
+
* The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
2755
|
+
*/
|
|
2756
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
2757
|
+
}
|
|
2758
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'now';
|
|
2759
|
+
namespace ServicePeriodAnchorConfig {
|
|
2760
|
+
interface Custom {
|
|
2761
|
+
/**
|
|
2762
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
2763
|
+
*/
|
|
2764
|
+
day_of_month: number;
|
|
2765
|
+
/**
|
|
2766
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
2767
|
+
*/
|
|
2768
|
+
hour?: number;
|
|
2769
|
+
/**
|
|
2770
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
2771
|
+
*/
|
|
2772
|
+
minute?: number;
|
|
2773
|
+
/**
|
|
2774
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
2775
|
+
*/
|
|
2776
|
+
month?: number;
|
|
2777
|
+
/**
|
|
2778
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
2779
|
+
*/
|
|
2780
|
+
second?: number;
|
|
2781
|
+
}
|
|
2782
|
+
type Type = 'custom' | 'subscription_service_cycle_anchor';
|
|
2783
|
+
}
|
|
2784
|
+
}
|
|
2785
|
+
}
|
|
1994
2786
|
namespace InvoiceSettings {
|
|
1995
2787
|
interface Issuer {
|
|
1996
2788
|
/**
|
|
@@ -2003,7 +2795,7 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2003
2795
|
type: Issuer.Type;
|
|
2004
2796
|
}
|
|
2005
2797
|
namespace Issuer {
|
|
2006
|
-
type Type = 'account' | 'self';
|
|
2798
|
+
type Type = 'account' | 'application' | 'self';
|
|
2007
2799
|
}
|
|
2008
2800
|
}
|
|
2009
2801
|
namespace Item {
|
|
@@ -2013,6 +2805,16 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2013
2805
|
*/
|
|
2014
2806
|
usage_gte: number;
|
|
2015
2807
|
}
|
|
2808
|
+
interface CurrentTrial {
|
|
2809
|
+
/**
|
|
2810
|
+
* 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`.
|
|
2811
|
+
*/
|
|
2812
|
+
trial_end?: number;
|
|
2813
|
+
/**
|
|
2814
|
+
* The ID of the trial offer to apply to the subscription item.
|
|
2815
|
+
*/
|
|
2816
|
+
trial_offer: string;
|
|
2817
|
+
}
|
|
2016
2818
|
interface Discount {
|
|
2017
2819
|
/**
|
|
2018
2820
|
* ID of the coupon to create a new discount for.
|
|
@@ -2022,10 +2824,18 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2022
2824
|
* ID of an existing discount on the object (or one of its ancestors) to reuse.
|
|
2023
2825
|
*/
|
|
2024
2826
|
discount?: string;
|
|
2827
|
+
/**
|
|
2828
|
+
* Details to determine how long the discount should be applied for.
|
|
2829
|
+
*/
|
|
2830
|
+
discount_end?: Discount.DiscountEnd;
|
|
2025
2831
|
/**
|
|
2026
2832
|
* ID of the promotion code to create a new discount for.
|
|
2027
2833
|
*/
|
|
2028
2834
|
promotion_code?: string;
|
|
2835
|
+
/**
|
|
2836
|
+
* Settings for discount application including service period anchoring.
|
|
2837
|
+
*/
|
|
2838
|
+
settings?: Discount.Settings;
|
|
2029
2839
|
}
|
|
2030
2840
|
interface PriceData {
|
|
2031
2841
|
/**
|
|
@@ -2053,6 +2863,86 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2053
2863
|
*/
|
|
2054
2864
|
unit_amount_decimal?: Decimal;
|
|
2055
2865
|
}
|
|
2866
|
+
namespace Discount {
|
|
2867
|
+
interface DiscountEnd {
|
|
2868
|
+
/**
|
|
2869
|
+
* Time span for the redeemed discount.
|
|
2870
|
+
*/
|
|
2871
|
+
duration?: DiscountEnd.Duration;
|
|
2872
|
+
/**
|
|
2873
|
+
* A precise Unix timestamp for the discount to end. Must be in the future.
|
|
2874
|
+
*/
|
|
2875
|
+
timestamp?: number;
|
|
2876
|
+
/**
|
|
2877
|
+
* The type of calculation made to determine when the discount ends.
|
|
2878
|
+
*/
|
|
2879
|
+
type: DiscountEnd.Type;
|
|
2880
|
+
}
|
|
2881
|
+
interface Settings {
|
|
2882
|
+
/**
|
|
2883
|
+
* Configures service period cycle anchoring.
|
|
2884
|
+
*/
|
|
2885
|
+
service_period_anchor_config?: Settings.ServicePeriodAnchorConfig;
|
|
2886
|
+
/**
|
|
2887
|
+
* 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.
|
|
2888
|
+
*/
|
|
2889
|
+
start_date?: Settings.StartDate;
|
|
2890
|
+
}
|
|
2891
|
+
namespace DiscountEnd {
|
|
2892
|
+
interface Duration {
|
|
2893
|
+
/**
|
|
2894
|
+
* Specifies a type of interval unit. Either `day`, `week`, `month` or `year`.
|
|
2895
|
+
*/
|
|
2896
|
+
interval: Duration.Interval;
|
|
2897
|
+
/**
|
|
2898
|
+
* The number of intervals, as an whole number greater than 0. Stripe multiplies this by the interval type to get the overall duration.
|
|
2899
|
+
*/
|
|
2900
|
+
interval_count: number;
|
|
2901
|
+
}
|
|
2902
|
+
type Type = 'duration' | 'timestamp';
|
|
2903
|
+
namespace Duration {
|
|
2904
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2905
|
+
}
|
|
2906
|
+
}
|
|
2907
|
+
namespace Settings {
|
|
2908
|
+
interface ServicePeriodAnchorConfig {
|
|
2909
|
+
/**
|
|
2910
|
+
* Anchor the service period to a custom date. Type must be `custom` to specify.
|
|
2911
|
+
*/
|
|
2912
|
+
custom?: ServicePeriodAnchorConfig.Custom;
|
|
2913
|
+
/**
|
|
2914
|
+
* The type of service period anchor config. Defaults to `subscription_service_cycle_anchor` if omitted.
|
|
2915
|
+
*/
|
|
2916
|
+
type?: ServicePeriodAnchorConfig.Type;
|
|
2917
|
+
}
|
|
2918
|
+
type StartDate = 'current_period_end' | 'current_period_start' | 'now';
|
|
2919
|
+
namespace ServicePeriodAnchorConfig {
|
|
2920
|
+
interface Custom {
|
|
2921
|
+
/**
|
|
2922
|
+
* The day of the month the anchor should be. Ranges from 1 to 31.
|
|
2923
|
+
*/
|
|
2924
|
+
day_of_month: number;
|
|
2925
|
+
/**
|
|
2926
|
+
* The hour of the day the anchor should be. Ranges from 0 to 23.
|
|
2927
|
+
*/
|
|
2928
|
+
hour?: number;
|
|
2929
|
+
/**
|
|
2930
|
+
* The minute of the hour the anchor should be. Ranges from 0 to 59.
|
|
2931
|
+
*/
|
|
2932
|
+
minute?: number;
|
|
2933
|
+
/**
|
|
2934
|
+
* The month to start full cycle periods. Ranges from 1 to 12.
|
|
2935
|
+
*/
|
|
2936
|
+
month?: number;
|
|
2937
|
+
/**
|
|
2938
|
+
* The second of the minute the anchor should be. Ranges from 0 to 59.
|
|
2939
|
+
*/
|
|
2940
|
+
second?: number;
|
|
2941
|
+
}
|
|
2942
|
+
type Type = 'custom' | 'subscription_service_cycle_anchor';
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
}
|
|
2056
2946
|
namespace PriceData {
|
|
2057
2947
|
interface Recurring {
|
|
2058
2948
|
/**
|
|
@@ -2083,14 +2973,30 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2083
2973
|
* This sub-hash contains details about the Bancontact payment method options to pass to the invoice's PaymentIntent.
|
|
2084
2974
|
*/
|
|
2085
2975
|
bancontact?: Emptyable<PaymentMethodOptions.Bancontact>;
|
|
2976
|
+
/**
|
|
2977
|
+
* This sub-hash contains details about the Bizum payment method options to pass to the invoice's PaymentIntent.
|
|
2978
|
+
*/
|
|
2979
|
+
bizum?: Emptyable<PaymentMethodOptions.Bizum>;
|
|
2980
|
+
/**
|
|
2981
|
+
* This sub-hash contains details about the Blik payment method options to pass to the invoice's PaymentIntent.
|
|
2982
|
+
*/
|
|
2983
|
+
blik?: Emptyable<PaymentMethodOptions.Blik>;
|
|
2086
2984
|
/**
|
|
2087
2985
|
* This sub-hash contains details about the Card payment method options to pass to the invoice's PaymentIntent.
|
|
2088
2986
|
*/
|
|
2089
2987
|
card?: Emptyable<PaymentMethodOptions.Card>;
|
|
2988
|
+
/**
|
|
2989
|
+
* This sub-hash contains details about the Check Scan payment method options to pass to the invoice's PaymentIntent.
|
|
2990
|
+
*/
|
|
2991
|
+
check_scan?: Emptyable<PaymentMethodOptions.CheckScan>;
|
|
2090
2992
|
/**
|
|
2091
2993
|
* This sub-hash contains details about the Bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2092
2994
|
*/
|
|
2093
2995
|
customer_balance?: Emptyable<PaymentMethodOptions.CustomerBalance>;
|
|
2996
|
+
/**
|
|
2997
|
+
* This sub-hash contains details about the Indonesia bank transfer payment method options to pass to the invoice's PaymentIntent.
|
|
2998
|
+
*/
|
|
2999
|
+
id_bank_transfer?: Emptyable<PaymentMethodOptions.IdBankTransfer>;
|
|
2094
3000
|
/**
|
|
2095
3001
|
* This sub-hash contains details about the Konbini payment method options to pass to the invoice's PaymentIntent.
|
|
2096
3002
|
*/
|
|
@@ -2116,7 +3022,7 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2116
3022
|
*/
|
|
2117
3023
|
us_bank_account?: Emptyable<PaymentMethodOptions.UsBankAccount>;
|
|
2118
3024
|
}
|
|
2119
|
-
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'boleto' | 'card' | 'cashapp' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'swish' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
3025
|
+
type PaymentMethodType = 'ach_credit_transfer' | 'ach_debit' | 'acss_debit' | 'affirm' | 'amazon_pay' | 'au_becs_debit' | 'bacs_debit' | 'bancontact' | 'bizum' | 'blik' | 'boleto' | 'card' | 'cashapp' | 'check_scan' | 'crypto' | 'custom' | 'customer_balance' | 'eps' | 'fpx' | 'giropay' | 'grabpay' | 'id_bank_transfer' | 'ideal' | 'jp_credit_transfer' | 'kakao_pay' | 'klarna' | 'konbini' | 'kr_card' | 'link' | 'momo' | 'multibanco' | 'naver_pay' | 'nz_bank_account' | 'p24' | 'pay_by_bank' | 'payco' | 'paynow' | 'paypal' | 'payto' | 'pix' | 'promptpay' | 'revolut_pay' | 'sepa_credit_transfer' | 'sepa_debit' | 'sofort' | 'stripe_balance' | 'swish' | 'upi' | 'us_bank_account' | 'wechat_pay';
|
|
2120
3026
|
type SaveDefaultPaymentMethod = 'off' | 'on_subscription';
|
|
2121
3027
|
namespace PaymentMethodOptions {
|
|
2122
3028
|
interface AcssDebit {
|
|
@@ -2135,6 +3041,18 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2135
3041
|
*/
|
|
2136
3042
|
preferred_language?: Bancontact.PreferredLanguage;
|
|
2137
3043
|
}
|
|
3044
|
+
interface Bizum {
|
|
3045
|
+
/**
|
|
3046
|
+
* Configuration options for setting up a mandate
|
|
3047
|
+
*/
|
|
3048
|
+
mandate_options?: Bizum.MandateOptions;
|
|
3049
|
+
}
|
|
3050
|
+
interface Blik {
|
|
3051
|
+
/**
|
|
3052
|
+
* Configuration options for setting up a mandate
|
|
3053
|
+
*/
|
|
3054
|
+
mandate_options?: Blik.MandateOptions;
|
|
3055
|
+
}
|
|
2138
3056
|
interface Card {
|
|
2139
3057
|
/**
|
|
2140
3058
|
* Configuration options for setting up an eMandate for cards issued in India.
|
|
@@ -2149,6 +3067,9 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2149
3067
|
*/
|
|
2150
3068
|
request_three_d_secure?: Card.RequestThreeDSecure;
|
|
2151
3069
|
}
|
|
3070
|
+
interface CheckScan {
|
|
3071
|
+
check_deposit_address?: AddressParam;
|
|
3072
|
+
}
|
|
2152
3073
|
interface CustomerBalance {
|
|
2153
3074
|
/**
|
|
2154
3075
|
* Configuration for the bank transfer funding type, if the `funding_type` is set to `bank_transfer`.
|
|
@@ -2159,6 +3080,8 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2159
3080
|
*/
|
|
2160
3081
|
funding_type?: string;
|
|
2161
3082
|
}
|
|
3083
|
+
interface IdBankTransfer {
|
|
3084
|
+
}
|
|
2162
3085
|
interface Konbini {
|
|
2163
3086
|
}
|
|
2164
3087
|
interface Payto {
|
|
@@ -2210,6 +3133,26 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2210
3133
|
namespace Bancontact {
|
|
2211
3134
|
type PreferredLanguage = 'de' | 'en' | 'fr' | 'nl';
|
|
2212
3135
|
}
|
|
3136
|
+
namespace Bizum {
|
|
3137
|
+
interface MandateOptions {
|
|
3138
|
+
/**
|
|
3139
|
+
* Amount to be charged for future payments. Required when `amount_type=fixed`.
|
|
3140
|
+
*/
|
|
3141
|
+
amount: number;
|
|
3142
|
+
/**
|
|
3143
|
+
* Indicates the mandate amount type.
|
|
3144
|
+
*/
|
|
3145
|
+
amount_type: 'fixed';
|
|
3146
|
+
}
|
|
3147
|
+
}
|
|
3148
|
+
namespace Blik {
|
|
3149
|
+
interface MandateOptions {
|
|
3150
|
+
/**
|
|
3151
|
+
* Date when the mandate expires and no further payments will be charged. If not provided, the mandate will be set to be indefinite.
|
|
3152
|
+
*/
|
|
3153
|
+
expires_after?: number;
|
|
3154
|
+
}
|
|
3155
|
+
}
|
|
2213
3156
|
namespace Card {
|
|
2214
3157
|
interface MandateOptions {
|
|
2215
3158
|
/**
|
|
@@ -2335,9 +3278,13 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2335
3278
|
* The account subcategories to use to filter for selectable accounts. Valid subcategories are `checking` and `savings`.
|
|
2336
3279
|
*/
|
|
2337
3280
|
account_subcategories?: Array<Filters.AccountSubcategory>;
|
|
3281
|
+
/**
|
|
3282
|
+
* ID of the institution to use to filter for selectable accounts.
|
|
3283
|
+
*/
|
|
3284
|
+
institution?: string;
|
|
2338
3285
|
}
|
|
2339
3286
|
type Permission = 'balances' | 'ownership' | 'payment_method' | 'transactions';
|
|
2340
|
-
type Prefetch = 'balances' | 'ownership' | 'transactions';
|
|
3287
|
+
type Prefetch = 'balances' | 'inferred_balances' | 'ownership' | 'transactions';
|
|
2341
3288
|
namespace Filters {
|
|
2342
3289
|
type AccountSubcategory = 'checking' | 'savings';
|
|
2343
3290
|
}
|
|
@@ -2348,14 +3295,22 @@ export declare namespace SubscriptionUpdateParams {
|
|
|
2348
3295
|
namespace PendingInvoiceItemInterval {
|
|
2349
3296
|
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
2350
3297
|
}
|
|
3298
|
+
namespace Prebilling {
|
|
3299
|
+
type UpdateBehavior = 'prebill' | 'reset';
|
|
3300
|
+
}
|
|
2351
3301
|
namespace TrialSettings {
|
|
2352
3302
|
interface EndBehavior {
|
|
3303
|
+
/**
|
|
3304
|
+
* Indicates how the subscription's billing cycle anchor is reset when a trial ends. Defaults to `now`.
|
|
3305
|
+
*/
|
|
3306
|
+
billing_cycle_anchor?: EndBehavior.BillingCycleAnchor;
|
|
2353
3307
|
/**
|
|
2354
3308
|
* Indicates how the subscription should change when the trial ends if the user did not provide a payment method.
|
|
2355
3309
|
*/
|
|
2356
3310
|
missing_payment_method: EndBehavior.MissingPaymentMethod;
|
|
2357
3311
|
}
|
|
2358
3312
|
namespace EndBehavior {
|
|
3313
|
+
type BillingCycleAnchor = 'now' | 'unchanged';
|
|
2359
3314
|
type MissingPaymentMethod = 'cancel' | 'create_invoice' | 'pause';
|
|
2360
3315
|
}
|
|
2361
3316
|
}
|
|
@@ -2365,6 +3320,10 @@ export interface SubscriptionListParams extends PaginationParams {
|
|
|
2365
3320
|
* Filter subscriptions by their automatic tax settings.
|
|
2366
3321
|
*/
|
|
2367
3322
|
automatic_tax?: SubscriptionListParams.AutomaticTax;
|
|
3323
|
+
/**
|
|
3324
|
+
* Filter for subscriptions that have the specified billing cadence.
|
|
3325
|
+
*/
|
|
3326
|
+
billing_cadence?: string;
|
|
2368
3327
|
/**
|
|
2369
3328
|
* The collection method of the subscriptions to retrieve. Either `charge_automatically` or `send_invoice`.
|
|
2370
3329
|
*/
|
|
@@ -2420,6 +3379,16 @@ export declare namespace SubscriptionListParams {
|
|
|
2420
3379
|
type CollectionMethod = 'charge_automatically' | 'send_invoice';
|
|
2421
3380
|
type Status = 'active' | 'all' | 'canceled' | 'ended' | 'incomplete' | 'incomplete_expired' | 'past_due' | 'paused' | 'trialing' | 'unpaid';
|
|
2422
3381
|
}
|
|
3382
|
+
export interface SubscriptionAttachCadenceParams {
|
|
3383
|
+
/**
|
|
3384
|
+
* The Billing Cadence which controls the timing of recurring invoice generation for this subscription. If unset, the subscription will bill according to its own configured schedule and create its own invoices. If set, this subscription will be billed by the cadence instead, potentially sharing invoices with the other subscriptions linked to that Cadence.
|
|
3385
|
+
*/
|
|
3386
|
+
billing_cadence: string;
|
|
3387
|
+
/**
|
|
3388
|
+
* Specifies which fields in the response should be expanded.
|
|
3389
|
+
*/
|
|
3390
|
+
expand?: Array<string>;
|
|
3391
|
+
}
|
|
2423
3392
|
export interface SubscriptionCancelParams {
|
|
2424
3393
|
/**
|
|
2425
3394
|
* Details about why this subscription was cancelled
|
|
@@ -2488,6 +3457,57 @@ export declare namespace SubscriptionMigrateParams {
|
|
|
2488
3457
|
}
|
|
2489
3458
|
}
|
|
2490
3459
|
}
|
|
3460
|
+
export interface SubscriptionPauseParams {
|
|
3461
|
+
/**
|
|
3462
|
+
* The type of pause to apply.
|
|
3463
|
+
*/
|
|
3464
|
+
type: 'subscription';
|
|
3465
|
+
/**
|
|
3466
|
+
* Controls what to bill for when pausing the subscription.
|
|
3467
|
+
*/
|
|
3468
|
+
bill_for?: SubscriptionPauseParams.BillFor;
|
|
3469
|
+
/**
|
|
3470
|
+
* Specifies which fields in the response should be expanded.
|
|
3471
|
+
*/
|
|
3472
|
+
expand?: Array<string>;
|
|
3473
|
+
/**
|
|
3474
|
+
* Determines how to handle debits and credits when pausing. The default is `pending_invoice_item`.
|
|
3475
|
+
*/
|
|
3476
|
+
invoicing_behavior?: SubscriptionPauseParams.InvoicingBehavior;
|
|
3477
|
+
}
|
|
3478
|
+
export declare namespace SubscriptionPauseParams {
|
|
3479
|
+
interface BillFor {
|
|
3480
|
+
/**
|
|
3481
|
+
* Controls when to bill for metered usage in the current period. Defaults to `{ type: "now" }`.
|
|
3482
|
+
*/
|
|
3483
|
+
outstanding_usage_through?: BillFor.OutstandingUsageThrough;
|
|
3484
|
+
/**
|
|
3485
|
+
* Controls when to credit for unused time on licensed items. Defaults to `{ type: "now" }`.
|
|
3486
|
+
*/
|
|
3487
|
+
unused_time_from?: BillFor.UnusedTimeFrom;
|
|
3488
|
+
}
|
|
3489
|
+
type InvoicingBehavior = 'invoice' | 'pending_invoice_item';
|
|
3490
|
+
namespace BillFor {
|
|
3491
|
+
interface OutstandingUsageThrough {
|
|
3492
|
+
/**
|
|
3493
|
+
* When to bill metered usage in the current period.
|
|
3494
|
+
*/
|
|
3495
|
+
type: OutstandingUsageThrough.Type;
|
|
3496
|
+
}
|
|
3497
|
+
interface UnusedTimeFrom {
|
|
3498
|
+
/**
|
|
3499
|
+
* When to credit for unused time.
|
|
3500
|
+
*/
|
|
3501
|
+
type: UnusedTimeFrom.Type;
|
|
3502
|
+
}
|
|
3503
|
+
namespace OutstandingUsageThrough {
|
|
3504
|
+
type Type = 'none' | 'now';
|
|
3505
|
+
}
|
|
3506
|
+
namespace UnusedTimeFrom {
|
|
3507
|
+
type Type = 'item_current_period_start' | 'none' | 'now';
|
|
3508
|
+
}
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
2491
3511
|
export interface SubscriptionResumeParams {
|
|
2492
3512
|
/**
|
|
2493
3513
|
* The billing cycle anchor that applies when the subscription is resumed. Either `now` or `unchanged`. The default is `now`. For more information, see the billing cycle [documentation](https://docs.stripe.com/billing/subscriptions/billing-cycle).
|
|
@@ -2528,3 +3548,7 @@ export interface SubscriptionSearchParams {
|
|
|
2528
3548
|
*/
|
|
2529
3549
|
page?: string;
|
|
2530
3550
|
}
|
|
3551
|
+
export interface SubscriptionSerializeBatchMigrateParams {
|
|
3552
|
+
}
|
|
3553
|
+
export interface SubscriptionSerializeBatchUpdateParams {
|
|
3554
|
+
}
|