stripe 22.2.0 → 22.3.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +2754 -12
- package/OPENAPI_VERSION +1 -1
- package/README.md +57 -65
- package/VERSION +1 -1
- package/cjs/Error.d.ts +53 -0
- package/cjs/Error.js +134 -1
- package/cjs/Error.js.map +1 -1
- package/cjs/RequestSender.d.ts +1 -1
- package/cjs/RequestSender.js +2 -2
- package/cjs/RequestSender.js.map +1 -1
- package/cjs/StripeEventNotificationHandler.d.ts +19 -0
- package/cjs/StripeEventNotificationHandler.js +471 -0
- package/cjs/StripeEventNotificationHandler.js.map +1 -0
- package/cjs/Types.d.ts +4 -2
- package/cjs/apiVersion.d.ts +1 -2
- package/cjs/apiVersion.js +2 -3
- package/cjs/apiVersion.js.map +1 -1
- package/cjs/resources/AccountLinks.d.ts +5 -1
- package/cjs/resources/AccountNotices.d.ts +140 -0
- package/cjs/resources/AccountNotices.js +29 -0
- package/cjs/resources/AccountNotices.js.map +1 -0
- package/cjs/resources/AccountSessions.d.ts +463 -0
- package/cjs/resources/AccountSessions.js.map +1 -1
- package/cjs/resources/AccountSignals.d.ts +110 -0
- package/cjs/resources/AccountSignals.js +4 -0
- package/cjs/resources/AccountSignals.js.map +1 -0
- package/cjs/resources/Accounts.d.ts +1020 -6
- package/cjs/resources/Accounts.js +47 -0
- package/cjs/resources/Accounts.js.map +1 -1
- package/cjs/resources/ApplicationFees.d.ts +28 -1
- package/cjs/resources/Balance.d.ts +134 -0
- package/cjs/resources/BalanceSettings.d.ts +18 -0
- package/cjs/resources/BalanceTransactions.d.ts +1 -1
- package/cjs/resources/BalanceTransfers.d.ts +160 -0
- package/cjs/resources/BalanceTransfers.js +15 -0
- package/cjs/resources/BalanceTransfers.js.map +1 -0
- package/cjs/resources/BankAccounts.d.ts +2 -2
- package/cjs/resources/Billing/AlertRecovereds.d.ts +40 -0
- package/cjs/resources/Billing/AlertRecovereds.js +4 -0
- package/cjs/resources/Billing/AlertRecovereds.js.map +1 -0
- package/cjs/resources/Billing/AlertTriggereds.d.ts +57 -1
- package/cjs/resources/Billing/Alerts.d.ts +408 -5
- package/cjs/resources/Billing/Alerts.js +321 -5
- package/cjs/resources/Billing/Alerts.js.map +1 -1
- package/cjs/resources/Billing/Analytics/MeterUsage.d.ts +88 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js +15 -0
- package/cjs/resources/Billing/Analytics/MeterUsage.js.map +1 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.d.ts +38 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js +4 -0
- package/cjs/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
- package/cjs/resources/Billing/Analytics/index.d.ts +15 -0
- package/cjs/resources/Billing/Analytics/index.js +13 -0
- package/cjs/resources/Billing/Analytics/index.js.map +1 -0
- package/cjs/resources/Billing/CreditBalanceSummary.d.ts +126 -2
- package/cjs/resources/Billing/CreditBalanceSummary.js +39 -1
- package/cjs/resources/Billing/CreditBalanceSummary.js.map +1 -1
- package/cjs/resources/Billing/CreditBalanceTransactions.d.ts +97 -3
- package/cjs/resources/Billing/CreditBalanceTransactions.js +100 -1
- package/cjs/resources/Billing/CreditBalanceTransactions.js.map +1 -1
- package/cjs/resources/Billing/CreditGrants.d.ts +85 -3
- package/cjs/resources/Billing/CreditGrants.js +134 -5
- package/cjs/resources/Billing/CreditGrants.js.map +1 -1
- package/cjs/resources/Billing/MeterEventSummaries.d.ts +6 -0
- package/cjs/resources/Billing/Meters.d.ts +31 -0
- package/cjs/resources/Billing/index.d.ts +6 -0
- package/cjs/resources/Billing/index.js +2 -0
- package/cjs/resources/Billing/index.js.map +1 -1
- package/cjs/resources/Capabilities.d.ts +25 -2
- package/cjs/resources/Capital/FinancingOffers.d.ts +191 -0
- package/cjs/resources/Capital/FinancingOffers.js +30 -0
- package/cjs/resources/Capital/FinancingOffers.js.map +1 -0
- package/cjs/resources/Capital/FinancingSummary.d.ts +98 -0
- package/cjs/resources/Capital/FinancingSummary.js +15 -0
- package/cjs/resources/Capital/FinancingSummary.js.map +1 -0
- package/cjs/resources/Capital/FinancingTransactions.d.ts +143 -0
- package/cjs/resources/Capital/FinancingTransactions.js +24 -0
- package/cjs/resources/Capital/FinancingTransactions.js.map +1 -0
- package/cjs/resources/Capital/index.d.ts +25 -0
- package/cjs/resources/Capital/index.js +17 -0
- package/cjs/resources/Capital/index.js.map +1 -0
- package/cjs/resources/Cards.d.ts +15 -0
- package/cjs/resources/Charges.d.ts +3515 -70
- package/cjs/resources/Charges.js.map +1 -1
- package/cjs/resources/Checkout/Sessions.d.ts +792 -9
- package/cjs/resources/Checkout/Sessions.js +88 -0
- package/cjs/resources/Checkout/Sessions.js.map +1 -1
- package/cjs/resources/Checkout/index.d.ts +1 -0
- package/cjs/resources/ConfirmationTokens.d.ts +130 -1
- package/cjs/resources/ConfirmationTokens.js.map +1 -1
- package/cjs/resources/Coupons.d.ts +128 -2
- package/cjs/resources/Coupons.js +41 -0
- package/cjs/resources/Coupons.js.map +1 -1
- package/cjs/resources/CreditNoteLineItems.d.ts +15 -1
- package/cjs/resources/CreditNotes.d.ts +7 -1
- package/cjs/resources/CreditNotes.js +13 -0
- package/cjs/resources/CreditNotes.js.map +1 -1
- package/cjs/resources/CustomerSessions.d.ts +74 -0
- package/cjs/resources/CustomerSessions.js +13 -0
- package/cjs/resources/CustomerSessions.js.map +1 -1
- package/cjs/resources/Customers.d.ts +85 -1
- package/cjs/resources/Customers.js +195 -0
- package/cjs/resources/Customers.js.map +1 -1
- package/cjs/resources/DelegatedCheckout/OrderEvents.d.ts +130 -0
- package/cjs/resources/DelegatedCheckout/OrderEvents.js +4 -0
- package/cjs/resources/DelegatedCheckout/OrderEvents.js.map +1 -0
- package/cjs/resources/DelegatedCheckout/Orders.d.ts +161 -0
- package/cjs/resources/DelegatedCheckout/Orders.js +15 -0
- package/cjs/resources/DelegatedCheckout/Orders.js.map +1 -0
- package/cjs/resources/DelegatedCheckout/RequestedSessions.d.ts +1418 -0
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js +47 -0
- package/cjs/resources/DelegatedCheckout/RequestedSessions.js.map +1 -0
- package/cjs/resources/DelegatedCheckout/index.d.ts +25 -0
- package/cjs/resources/DelegatedCheckout/index.js +15 -0
- package/cjs/resources/DelegatedCheckout/index.js.map +1 -0
- package/cjs/resources/Discounts.d.ts +19 -0
- package/cjs/resources/Disputes.d.ts +43 -0
- package/cjs/resources/Disputes.js +14 -0
- package/cjs/resources/Disputes.js.map +1 -1
- package/cjs/resources/Events.d.ts +573 -2
- package/cjs/resources/ExternalAccounts.d.ts +212 -1
- package/cjs/resources/ExternalAccounts.js +44 -0
- package/cjs/resources/ExternalAccounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js +4 -0
- package/cjs/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/cjs/resources/FinancialConnections/Accounts.d.ts +74 -4
- package/cjs/resources/FinancialConnections/Accounts.js +8 -0
- package/cjs/resources/FinancialConnections/Accounts.js.map +1 -1
- package/cjs/resources/FinancialConnections/Authorizations.d.ts +87 -0
- package/cjs/resources/FinancialConnections/Authorizations.js +15 -0
- package/cjs/resources/FinancialConnections/Authorizations.js.map +1 -0
- package/cjs/resources/FinancialConnections/Institutions.d.ts +101 -0
- package/cjs/resources/FinancialConnections/Institutions.js +23 -0
- package/cjs/resources/FinancialConnections/Institutions.js.map +1 -0
- package/cjs/resources/FinancialConnections/Sessions.d.ts +155 -7
- package/cjs/resources/FinancialConnections/index.d.ts +21 -6
- package/cjs/resources/FinancialConnections/index.js +4 -0
- package/cjs/resources/FinancialConnections/index.js.map +1 -1
- package/cjs/resources/FrMealVouchersOnboardings.d.ts +173 -0
- package/cjs/resources/FrMealVouchersOnboardings.js +42 -0
- package/cjs/resources/FrMealVouchersOnboardings.js.map +1 -0
- package/cjs/resources/FxQuotes.d.ts +212 -0
- package/cjs/resources/FxQuotes.js +29 -0
- package/cjs/resources/FxQuotes.js.map +1 -0
- package/cjs/resources/Identity/BlocklistEntries.d.ts +157 -0
- package/cjs/resources/Identity/BlocklistEntries.js +54 -0
- package/cjs/resources/Identity/BlocklistEntries.js.map +1 -0
- package/cjs/resources/Identity/VerificationReports.d.ts +33 -2
- package/cjs/resources/Identity/VerificationReports.js.map +1 -1
- package/cjs/resources/Identity/VerificationSessions.d.ts +11 -3
- package/cjs/resources/Identity/index.d.ts +18 -10
- package/cjs/resources/Identity/index.js +2 -0
- package/cjs/resources/Identity/index.js.map +1 -1
- package/cjs/resources/InvoiceItems.d.ts +203 -2
- package/cjs/resources/InvoiceItems.js +41 -0
- package/cjs/resources/InvoiceItems.js.map +1 -1
- package/cjs/resources/InvoiceLineItems.d.ts +174 -4
- package/cjs/resources/InvoiceRenderingTemplates.d.ts +12 -0
- package/cjs/resources/InvoiceRenderingTemplates.js +28 -0
- package/cjs/resources/InvoiceRenderingTemplates.js.map +1 -1
- package/cjs/resources/Invoices.d.ts +2063 -20
- package/cjs/resources/Invoices.js +221 -0
- package/cjs/resources/Invoices.js.map +1 -1
- package/cjs/resources/Issuing/Authorizations.d.ts +290 -0
- package/cjs/resources/Issuing/Cardholders.d.ts +5 -4
- package/cjs/resources/Issuing/Cards.d.ts +36 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.d.ts +640 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js +47 -0
- package/cjs/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.d.ts +95 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js +23 -0
- package/cjs/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/cjs/resources/Issuing/Disputes.d.ts +190 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js +23 -0
- package/cjs/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/cjs/resources/Issuing/Programs.d.ts +95 -0
- package/cjs/resources/Issuing/Programs.js +35 -0
- package/cjs/resources/Issuing/Programs.js.map +1 -0
- package/cjs/resources/Issuing/Settlements.d.ts +85 -0
- package/cjs/resources/Issuing/Settlements.js +4 -0
- package/cjs/resources/Issuing/Settlements.js.map +1 -0
- package/cjs/resources/Issuing/Tokens.d.ts +22 -0
- package/cjs/resources/Issuing/Transactions.d.ts +157 -0
- package/cjs/resources/Issuing/Transactions.js.map +1 -1
- package/cjs/resources/Issuing/index.d.ts +55 -22
- package/cjs/resources/Issuing/index.js +8 -0
- package/cjs/resources/Issuing/index.js.map +1 -1
- package/cjs/resources/LineItems.d.ts +29 -2
- package/cjs/resources/Mandates.d.ts +33 -1
- package/cjs/resources/Mandates.js +8 -0
- package/cjs/resources/Mandates.js.map +1 -1
- package/cjs/resources/Margins.d.ts +115 -0
- package/cjs/resources/Margins.js +35 -0
- package/cjs/resources/Margins.js.map +1 -0
- package/cjs/resources/Orchestration/PaymentAttempts.d.ts +34 -0
- package/cjs/resources/Orchestration/PaymentAttempts.js +15 -0
- package/cjs/resources/Orchestration/PaymentAttempts.js.map +1 -0
- package/cjs/resources/Orchestration/index.d.ts +12 -0
- package/cjs/resources/Orchestration/index.js +13 -0
- package/cjs/resources/Orchestration/index.js.map +1 -0
- package/cjs/resources/Orders.d.ts +4761 -0
- package/cjs/resources/Orders.js +457 -0
- package/cjs/resources/Orders.js.map +1 -0
- package/cjs/resources/PaymentAttemptRecords.d.ts +453 -1
- package/cjs/resources/PaymentAttemptRecords.js +42 -0
- package/cjs/resources/PaymentAttemptRecords.js.map +1 -1
- package/cjs/resources/PaymentIntentAmountDetailsLineItems.d.ts +17 -0
- package/cjs/resources/PaymentIntents.d.ts +16660 -3570
- package/cjs/resources/PaymentIntents.js +40 -0
- package/cjs/resources/PaymentIntents.js.map +1 -1
- package/cjs/resources/PaymentLinks.d.ts +74 -12
- package/cjs/resources/PaymentLocationCapabilities.d.ts +122 -0
- package/cjs/resources/PaymentLocationCapabilities.js +29 -0
- package/cjs/resources/PaymentLocationCapabilities.js.map +1 -0
- package/cjs/resources/PaymentLocations.d.ts +178 -0
- package/cjs/resources/PaymentLocations.js +41 -0
- package/cjs/resources/PaymentLocations.js.map +1 -0
- package/cjs/resources/PaymentMethodBalances.d.ts +46 -0
- package/cjs/resources/PaymentMethodBalances.js +4 -0
- package/cjs/resources/PaymentMethodBalances.js.map +1 -0
- package/cjs/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/cjs/resources/PaymentMethods.d.ts +262 -3
- package/cjs/resources/PaymentMethods.js +20 -0
- package/cjs/resources/PaymentMethods.js.map +1 -1
- package/cjs/resources/PaymentRecords.d.ts +351 -21
- package/cjs/resources/PaymentRecords.js.map +1 -1
- package/cjs/resources/Persons.d.ts +25 -2
- package/cjs/resources/Plans.d.ts +16 -0
- package/cjs/resources/Prices.d.ts +76 -0
- package/cjs/resources/Prices.js +27 -0
- package/cjs/resources/Prices.js.map +1 -1
- package/cjs/resources/Privacy/RedactionJobValidationErrors.d.ts +37 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js +4 -0
- package/cjs/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/cjs/resources/Privacy/RedactionJobs.d.ts +229 -0
- package/cjs/resources/Privacy/RedactionJobs.js +73 -0
- package/cjs/resources/Privacy/RedactionJobs.js.map +1 -0
- package/cjs/resources/Privacy/index.d.ts +22 -0
- package/cjs/resources/Privacy/index.js +13 -0
- package/cjs/resources/Privacy/index.js.map +1 -0
- package/cjs/resources/ProductCatalog/TrialOffers.d.ts +127 -0
- package/cjs/resources/ProductCatalog/TrialOffers.js +15 -0
- package/cjs/resources/ProductCatalog/TrialOffers.js.map +1 -0
- package/cjs/resources/ProductCatalog/index.d.ts +12 -0
- package/cjs/resources/ProductCatalog/index.js +13 -0
- package/cjs/resources/ProductCatalog/index.js.map +1 -0
- package/cjs/resources/Products.d.ts +171 -0
- package/cjs/resources/Products.js +69 -0
- package/cjs/resources/Products.js.map +1 -1
- package/cjs/resources/Profiles.d.ts +26 -0
- package/cjs/resources/Profiles.js +4 -0
- package/cjs/resources/Profiles.js.map +1 -0
- package/cjs/resources/PromotionCodes.d.ts +12 -0
- package/cjs/resources/PromotionCodes.js +27 -0
- package/cjs/resources/PromotionCodes.js.map +1 -1
- package/cjs/resources/QuoteLines.d.ts +684 -0
- package/cjs/resources/QuoteLines.js +4 -0
- package/cjs/resources/QuoteLines.js.map +1 -0
- package/cjs/resources/QuotePreviewInvoices.d.ts +1173 -0
- package/cjs/resources/QuotePreviewInvoices.js +4 -0
- package/cjs/resources/QuotePreviewInvoices.js.map +1 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.d.ts +901 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js +4 -0
- package/cjs/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/cjs/resources/Quotes.d.ts +3548 -254
- package/cjs/resources/Quotes.js +1184 -16
- package/cjs/resources/Quotes.js.map +1 -1
- package/cjs/resources/Radar/AccountEvaluations.d.ts +270 -0
- package/cjs/resources/Radar/AccountEvaluations.js +27 -0
- package/cjs/resources/Radar/AccountEvaluations.js.map +1 -0
- package/cjs/resources/Radar/CustomerEvaluations.d.ts +214 -0
- package/cjs/resources/Radar/CustomerEvaluations.js +21 -0
- package/cjs/resources/Radar/CustomerEvaluations.js.map +1 -0
- package/cjs/resources/Radar/IssuingAuthorizationEvaluations.d.ts +435 -0
- package/cjs/resources/Radar/IssuingAuthorizationEvaluations.js +15 -0
- package/cjs/resources/Radar/IssuingAuthorizationEvaluations.js.map +1 -0
- package/cjs/resources/Radar/PaymentEvaluations.d.ts +63 -1
- package/cjs/resources/Radar/ValueListItems.d.ts +8 -0
- package/cjs/resources/Radar/ValueListItems.js +13 -0
- package/cjs/resources/Radar/ValueListItems.js.map +1 -1
- package/cjs/resources/Radar/index.d.ts +34 -16
- package/cjs/resources/Radar/index.js +6 -0
- package/cjs/resources/Radar/index.js.map +1 -1
- package/cjs/resources/Refunds.d.ts +23 -0
- package/cjs/resources/Refunds.js +27 -0
- package/cjs/resources/Refunds.js.map +1 -1
- package/cjs/resources/Reserve/Holds.d.ts +53 -1
- package/cjs/resources/Reserve/Holds.js +19 -0
- package/cjs/resources/Reserve/Holds.js.map +1 -1
- package/cjs/resources/Reserve/Plans.d.ts +16 -0
- package/cjs/resources/Reserve/Plans.js +11 -0
- package/cjs/resources/Reserve/Plans.js.map +1 -1
- package/cjs/resources/Reserve/Releases.d.ts +41 -1
- package/cjs/resources/Reserve/Releases.js +19 -0
- package/cjs/resources/Reserve/Releases.js.map +1 -1
- package/cjs/resources/Reserve/index.d.ts +14 -3
- package/cjs/resources/Reserve/index.js +10 -2
- package/cjs/resources/Reserve/index.js.map +1 -1
- package/cjs/resources/RiskSignals.d.ts +10 -0
- package/cjs/resources/RiskSignals.js +4 -0
- package/cjs/resources/RiskSignals.js.map +1 -0
- package/cjs/resources/SetupAttempts.d.ts +26 -1
- package/cjs/resources/SetupIntents.d.ts +561 -11
- package/cjs/resources/SharedPayment/GrantedTokens.d.ts +1137 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js +15 -0
- package/cjs/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/IssuedTokens.d.ts +322 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js +27 -0
- package/cjs/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/cjs/resources/SharedPayment/index.d.ts +19 -0
- package/cjs/resources/SharedPayment/index.js +15 -0
- package/cjs/resources/SharedPayment/index.js.map +1 -0
- package/cjs/resources/Sources.d.ts +16 -1
- package/cjs/resources/SubscriptionItems.d.ts +265 -0
- package/cjs/resources/SubscriptionItems.js +41 -0
- package/cjs/resources/SubscriptionItems.js.map +1 -1
- package/cjs/resources/SubscriptionSchedules.d.ts +1949 -19
- package/cjs/resources/SubscriptionSchedules.js +61 -0
- package/cjs/resources/SubscriptionSchedules.js.map +1 -1
- package/cjs/resources/Subscriptions.d.ts +965 -12
- package/cjs/resources/Subscriptions.js +289 -0
- package/cjs/resources/Subscriptions.js.map +1 -1
- package/cjs/resources/Tax/CalculationLineItems.d.ts +6 -2
- package/cjs/resources/Tax/Calculations.d.ts +7 -3
- package/cjs/resources/Tax/Forms.d.ts +230 -0
- package/cjs/resources/Tax/Forms.js +32 -0
- package/cjs/resources/Tax/Forms.js.map +1 -0
- package/cjs/resources/Tax/Locations.d.ts +108 -0
- package/cjs/resources/Tax/Locations.js +33 -0
- package/cjs/resources/Tax/Locations.js.map +1 -0
- package/cjs/resources/Tax/Registrations.d.ts +171 -2
- package/cjs/resources/Tax/Registrations.js +27 -0
- package/cjs/resources/Tax/Registrations.js.map +1 -1
- package/cjs/resources/Tax/Settings.d.ts +8 -0
- package/cjs/resources/Tax/Settings.js +13 -0
- package/cjs/resources/Tax/Settings.js.map +1 -1
- package/cjs/resources/Tax/Transactions.d.ts +10 -2
- package/cjs/resources/Tax/Transactions.js +13 -0
- package/cjs/resources/Tax/Transactions.js.map +1 -1
- package/cjs/resources/Tax/index.d.ts +27 -13
- package/cjs/resources/Tax/index.js +4 -0
- package/cjs/resources/Tax/index.js.map +1 -1
- package/cjs/resources/TaxCodes.d.ts +15 -0
- package/cjs/resources/TaxIds.d.ts +6 -0
- package/cjs/resources/TaxIds.js +13 -0
- package/cjs/resources/TaxIds.js.map +1 -1
- package/cjs/resources/TaxRates.d.ts +12 -0
- package/cjs/resources/TaxRates.js +27 -0
- package/cjs/resources/TaxRates.js.map +1 -1
- package/cjs/resources/Terminal/Configurations.d.ts +27 -0
- package/cjs/resources/Terminal/ReaderCollectedData.d.ts +52 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js +15 -0
- package/cjs/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/cjs/resources/Terminal/Readers.d.ts +17 -1
- package/cjs/resources/Terminal/index.d.ts +5 -0
- package/cjs/resources/Terminal/index.js +2 -0
- package/cjs/resources/Terminal/index.js.map +1 -1
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.d.ts +81 -0
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.js +21 -0
- package/cjs/resources/TestHelpers/Capital/FinancingOffers.js.map +1 -0
- package/cjs/resources/TestHelpers/Capital/index.d.ts +8 -0
- package/cjs/resources/TestHelpers/Capital/index.js +13 -0
- package/cjs/resources/TestHelpers/Capital/index.js.map +1 -0
- package/cjs/resources/TestHelpers/ConfirmationTokens.d.ts +88 -1
- package/cjs/resources/TestHelpers/Issuing/Authorizations.d.ts +8 -0
- package/cjs/resources/TestHelpers/Issuing/Disputes.d.ts +104 -0
- package/cjs/resources/TestHelpers/Issuing/Disputes.js +33 -0
- package/cjs/resources/TestHelpers/Issuing/Disputes.js.map +1 -0
- package/cjs/resources/TestHelpers/Issuing/Transactions.d.ts +16 -0
- package/cjs/resources/TestHelpers/Issuing/index.d.ts +2 -0
- package/cjs/resources/TestHelpers/Issuing/index.js +2 -0
- package/cjs/resources/TestHelpers/Issuing/index.js.map +1 -1
- package/cjs/resources/TestHelpers/PaymentIntents.d.ts +36 -0
- package/cjs/resources/TestHelpers/PaymentIntents.js +15 -0
- package/cjs/resources/TestHelpers/PaymentIntents.js.map +1 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +75 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js +21 -0
- package/cjs/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.js +13 -0
- package/cjs/resources/TestHelpers/SharedPayment/index.js.map +1 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
- package/cjs/resources/TestHelpers/index.d.ts +14 -6
- package/cjs/resources/TestHelpers/index.js +12 -6
- package/cjs/resources/TestHelpers/index.js.map +1 -1
- package/cjs/resources/Tokens.d.ts +61 -0
- package/cjs/resources/Transfers.d.ts +12 -0
- package/cjs/resources/Transfers.js.map +1 -1
- package/cjs/resources/TransitBalances.d.ts +25 -0
- package/cjs/resources/TransitBalances.js +4 -0
- package/cjs/resources/TransitBalances.js.map +1 -0
- package/cjs/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/cjs/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/cjs/resources/Treasury/OutboundPayments.d.ts +8 -0
- package/cjs/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/cjs/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/cjs/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.d.ts +75 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js +23 -0
- package/cjs/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/BillSettings.d.ts +284 -0
- package/cjs/resources/V2/Billing/BillSettings.js +41 -0
- package/cjs/resources/V2/Billing/BillSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/CadenceSpendModifiers.d.ts +88 -0
- package/cjs/resources/V2/Billing/CadenceSpendModifiers.js +4 -0
- package/cjs/resources/V2/Billing/CadenceSpendModifiers.js.map +1 -0
- package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.d.ts +37 -0
- package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.js +23 -0
- package/cjs/resources/V2/Billing/Cadences/SpendModifierRules.js.map +1 -0
- package/cjs/resources/V2/Billing/Cadences.d.ts +1015 -0
- package/cjs/resources/V2/Billing/Cadences.js +264 -0
- package/cjs/resources/V2/Billing/Cadences.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.d.ts +240 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js +4 -0
- package/cjs/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js +70 -0
- package/cjs/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js +166 -0
- package/cjs/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/cjs/resources/V2/Billing/ContractLicensePricingQuantityChanges.d.ts +45 -0
- package/cjs/resources/V2/Billing/ContractLicensePricingQuantityChanges.js +4 -0
- package/cjs/resources/V2/Billing/ContractLicensePricingQuantityChanges.js.map +1 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.d.ts +23 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.js +17 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.js.map +1 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing.d.ts +8 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing.js +15 -0
- package/cjs/resources/V2/Billing/Contracts/LicensePricing.js.map +1 -0
- package/cjs/resources/V2/Billing/Contracts.d.ts +2028 -0
- package/cjs/resources/V2/Billing/Contracts.js +376 -0
- package/cjs/resources/V2/Billing/Contracts.js.map +1 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.d.ts +125 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js +35 -0
- package/cjs/resources/V2/Billing/CustomPricingUnits.js.map +1 -0
- package/cjs/resources/V2/Billing/IntentActions.d.ts +607 -0
- package/cjs/resources/V2/Billing/IntentActions.js +4 -0
- package/cjs/resources/V2/Billing/IntentActions.js.map +1 -0
- package/cjs/resources/V2/Billing/Intents/Actions.d.ts +33 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js +70 -0
- package/cjs/resources/V2/Billing/Intents/Actions.js.map +1 -0
- package/cjs/resources/V2/Billing/Intents.d.ts +1257 -0
- package/cjs/resources/V2/Billing/Intents.js +87 -0
- package/cjs/resources/V2/Billing/Intents.js.map +1 -0
- package/cjs/resources/V2/Billing/LicenseFeeVersions.d.ts +82 -0
- package/cjs/resources/V2/Billing/LicenseFeeVersions.js +4 -0
- package/cjs/resources/V2/Billing/LicenseFeeVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js +64 -0
- package/cjs/resources/V2/Billing/LicenseFees/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/LicenseFees.d.ts +364 -0
- package/cjs/resources/V2/Billing/LicenseFees.js +148 -0
- package/cjs/resources/V2/Billing/LicenseFees.js.map +1 -0
- package/cjs/resources/V2/Billing/LicensedItems.d.ts +174 -0
- package/cjs/resources/V2/Billing/LicensedItems.js +35 -0
- package/cjs/resources/V2/Billing/LicensedItems.js.map +1 -0
- package/cjs/resources/V2/Billing/MeteredItems.d.ts +222 -0
- package/cjs/resources/V2/Billing/MeteredItems.js +35 -0
- package/cjs/resources/V2/Billing/MeteredItems.js.map +1 -0
- package/cjs/resources/V2/Billing/OneTimeItems.d.ts +174 -0
- package/cjs/resources/V2/Billing/OneTimeItems.js +35 -0
- package/cjs/resources/V2/Billing/OneTimeItems.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlanComponents.d.ts +84 -0
- package/cjs/resources/V2/Billing/PricingPlanComponents.js +4 -0
- package/cjs/resources/V2/Billing/PricingPlanComponents.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.d.ts +624 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js +296 -0
- package/cjs/resources/V2/Billing/PricingPlanSubscriptions.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlanVersions.d.ts +30 -0
- package/cjs/resources/V2/Billing/PricingPlanVersions.js +4 -0
- package/cjs/resources/V2/Billing/PricingPlanVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.d.ts +142 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js +41 -0
- package/cjs/resources/V2/Billing/PricingPlans/Components.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js +23 -0
- package/cjs/resources/V2/Billing/PricingPlans/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/PricingPlans.d.ts +173 -0
- package/cjs/resources/V2/Billing/PricingPlans.js +43 -0
- package/cjs/resources/V2/Billing/PricingPlans.js.map +1 -0
- package/cjs/resources/V2/Billing/Profiles.d.ts +166 -0
- package/cjs/resources/V2/Billing/Profiles.js +35 -0
- package/cjs/resources/V2/Billing/Profiles.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.d.ts +45 -0
- package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js +4 -0
- package/cjs/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardRates.d.ts +115 -0
- package/cjs/resources/V2/Billing/RateCardRates.js +4 -0
- package/cjs/resources/V2/Billing/RateCardRates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.d.ts +219 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js +41 -0
- package/cjs/resources/V2/Billing/RateCardSubscriptions.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCardVersions.d.ts +22 -0
- package/cjs/resources/V2/Billing/RateCardVersions.js +4 -0
- package/cjs/resources/V2/Billing/RateCardVersions.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.d.ts +79 -0
- package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js +35 -0
- package/cjs/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.d.ts +145 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js +110 -0
- package/cjs/resources/V2/Billing/RateCards/Rates.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.d.ts +33 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js +23 -0
- package/cjs/resources/V2/Billing/RateCards/Versions.js.map +1 -0
- package/cjs/resources/V2/Billing/RateCards.d.ts +340 -0
- package/cjs/resources/V2/Billing/RateCards.js +76 -0
- package/cjs/resources/V2/Billing/RateCards.js.map +1 -0
- package/cjs/resources/V2/Billing/ServiceActions.d.ts +514 -0
- package/cjs/resources/V2/Billing/ServiceActions.js +162 -0
- package/cjs/resources/V2/Billing/ServiceActions.js.map +1 -0
- package/cjs/resources/V2/Billing/index.d.ts +174 -6
- package/cjs/resources/V2/Billing/index.js +32 -0
- package/cjs/resources/V2/Billing/index.js.map +1 -1
- package/cjs/resources/V2/Core/AccountEvaluations.d.ts +160 -0
- package/cjs/resources/V2/Core/AccountEvaluations.js +15 -0
- package/cjs/resources/V2/Core/AccountEvaluations.js.map +1 -0
- package/cjs/resources/V2/Core/AccountLinks.d.ts +158 -6
- package/cjs/resources/V2/Core/AccountPersons.d.ts +1 -1
- package/cjs/resources/V2/Core/AccountTokens.d.ts +220 -2
- package/cjs/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
- package/cjs/resources/V2/Core/Accounts/Persons.d.ts +2 -2
- package/cjs/resources/V2/Core/Accounts.d.ts +5570 -67
- package/cjs/resources/V2/Core/ApprovalRequests.d.ts +334 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js +46 -0
- package/cjs/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/cjs/resources/V2/Core/BatchJobs.d.ts +373 -0
- package/cjs/resources/V2/Core/BatchJobs.js +225 -0
- package/cjs/resources/V2/Core/BatchJobs.js.map +1 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.d.ts +229 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js +31 -0
- package/cjs/resources/V2/Core/ClaimableSandboxes.js.map +1 -0
- package/cjs/resources/V2/Core/ConnectionSessions.d.ts +90 -0
- package/cjs/resources/V2/Core/ConnectionSessions.js +21 -0
- package/cjs/resources/V2/Core/ConnectionSessions.js.map +1 -0
- package/cjs/resources/V2/Core/Events.d.ts +7601 -232
- package/cjs/resources/V2/Core/FeeBatches.d.ts +172 -0
- package/cjs/resources/V2/Core/FeeBatches.js +23 -0
- package/cjs/resources/V2/Core/FeeBatches.js.map +1 -0
- package/cjs/resources/V2/Core/FeeEntries.d.ts +178 -0
- package/cjs/resources/V2/Core/FeeEntries.js +23 -0
- package/cjs/resources/V2/Core/FeeEntries.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.d.ts +285 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js +54 -0
- package/cjs/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.d.ts +254 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js +62 -0
- package/cjs/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
- package/cjs/resources/V2/Core/Vault/index.d.ts +28 -0
- package/cjs/resources/V2/Core/Vault/index.js +15 -0
- package/cjs/resources/V2/Core/Vault/index.js.map +1 -0
- package/cjs/resources/V2/Core/index.d.ts +63 -14
- package/cjs/resources/V2/Core/index.js +16 -0
- package/cjs/resources/V2/Core/index.js.map +1 -1
- package/cjs/resources/V2/Data/Analytics/MetricQuery.d.ts +73 -0
- package/cjs/resources/V2/Data/Analytics/MetricQuery.js +36 -0
- package/cjs/resources/V2/Data/Analytics/MetricQuery.js.map +1 -0
- package/cjs/resources/V2/Data/Analytics/MetricQueryResults.d.ts +82 -0
- package/cjs/resources/V2/Data/Analytics/MetricQueryResults.js +4 -0
- package/cjs/resources/V2/Data/Analytics/MetricQueryResults.js.map +1 -0
- package/cjs/resources/V2/Data/Analytics/index.d.ts +12 -0
- package/cjs/resources/V2/Data/Analytics/index.js +13 -0
- package/cjs/resources/V2/Data/Analytics/index.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.d.ts +177 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js +46 -0
- package/cjs/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/cjs/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js +13 -0
- package/cjs/resources/V2/Data/Reporting/index.js.map +1 -0
- package/cjs/resources/V2/Data/index.d.ts +13 -0
- package/cjs/resources/V2/Data/index.js +15 -0
- package/cjs/resources/V2/Data/index.js.map +1 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js +23 -0
- package/cjs/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/cjs/resources/V2/Extend/Workflows.d.ts +123 -0
- package/cjs/resources/V2/Extend/Workflows.js +30 -0
- package/cjs/resources/V2/Extend/Workflows.js.map +1 -0
- package/cjs/resources/V2/Extend/index.d.ts +20 -0
- package/cjs/resources/V2/Extend/index.js +15 -0
- package/cjs/resources/V2/Extend/index.js.map +1 -0
- package/cjs/resources/V2/FinancialAddressCreditSimulations.d.ts +14 -0
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js +4 -0
- package/cjs/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js +4 -0
- package/cjs/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/cjs/resources/V2/Iam/ActivityLogs.d.ts +214 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js +23 -0
- package/cjs/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/cjs/resources/V2/Iam/ApiKeys.d.ts +280 -0
- package/cjs/resources/V2/Iam/ApiKeys.js +47 -0
- package/cjs/resources/V2/Iam/ApiKeys.js.map +1 -0
- package/cjs/resources/V2/Iam/index.d.ts +23 -0
- package/cjs/resources/V2/Iam/index.js +15 -0
- package/cjs/resources/V2/Iam/index.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.d.ts +139 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js +23 -0
- package/cjs/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.d.ts +135 -0
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js +31 -0
- package/cjs/resources/V2/MoneyManagement/CurrencyConversions.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/DebitDisputes.d.ts +171 -0
- package/cjs/resources/V2/MoneyManagement/DebitDisputes.js +29 -0
- package/cjs/resources/V2/MoneyManagement/DebitDisputes.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountStatements.d.ts +103 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountStatements.js +4 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccountStatements.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts/Statements.d.ts +44 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts/Statements.js +53 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts/Statements.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.d.ts +417 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js +50 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.d.ts +308 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js +31 -0
- package/cjs/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.d.ts +254 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js +30 -0
- package/cjs/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +222 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +22 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.d.ts +524 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js +41 -0
- package/cjs/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +321 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js +49 -0
- package/cjs/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.d.ts +342 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js +39 -0
- package/cjs/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.d.ts +270 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js +44 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +96 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +17 -0
- package/cjs/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.d.ts +458 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js +23 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.d.ts +251 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js +23 -0
- package/cjs/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.d.ts +120 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js +27 -0
- package/cjs/resources/V2/MoneyManagement/RecipientVerifications.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.d.ts +249 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js +23 -0
- package/cjs/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.d.ts +280 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js +23 -0
- package/cjs/resources/V2/MoneyManagement/Transactions.js.map +1 -0
- package/cjs/resources/V2/MoneyManagement/index.d.ts +128 -0
- package/cjs/resources/V2/MoneyManagement/index.js +45 -0
- package/cjs/resources/V2/MoneyManagement/index.js.map +1 -0
- package/cjs/resources/V2/Network/BusinessProfiles.d.ts +96 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js +21 -0
- package/cjs/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/cjs/resources/V2/Network/index.d.ts +13 -0
- package/cjs/resources/V2/Network/index.js +13 -0
- package/cjs/resources/V2/Network/index.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js +41 -0
- package/cjs/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js +13 -0
- package/cjs/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.d.ts +827 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js +53 -0
- package/cjs/resources/V2/Payments/OffSessionPayments.js.map +1 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.d.ts +77 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.js +4 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntentSplits.js.map +1 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.d.ts +85 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js +35 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents/Splits.js.map +1 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.d.ts +213 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.js +53 -0
- package/cjs/resources/V2/Payments/SettlementAllocationIntents.js.map +1 -0
- package/cjs/resources/V2/Payments/index.d.ts +31 -0
- package/cjs/resources/V2/Payments/index.js +15 -0
- package/cjs/resources/V2/Payments/index.js.map +1 -0
- package/cjs/resources/V2/Reporting/ReportRuns.d.ts +194 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js +50 -0
- package/cjs/resources/V2/Reporting/ReportRuns.js.map +1 -0
- package/cjs/resources/V2/Reporting/Reports.d.ts +110 -0
- package/cjs/resources/V2/Reporting/Reports.js +17 -0
- package/cjs/resources/V2/Reporting/Reports.js.map +1 -0
- package/cjs/resources/V2/Reporting/index.d.ts +18 -0
- package/cjs/resources/V2/Reporting/index.js +15 -0
- package/cjs/resources/V2/Reporting/index.js.map +1 -0
- package/cjs/resources/V2/Signals/AccountSignals.d.ts +176 -0
- package/cjs/resources/V2/Signals/AccountSignals.js +58 -0
- package/cjs/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/cjs/resources/V2/Signals/index.d.ts +13 -0
- package/cjs/resources/V2/Signals/index.js +13 -0
- package/cjs/resources/V2/Signals/index.js.map +1 -0
- package/cjs/resources/V2/Tax/ManualRules.d.ts +335 -0
- package/cjs/resources/V2/Tax/ManualRules.js +193 -0
- package/cjs/resources/V2/Tax/ManualRules.js.map +1 -0
- package/cjs/resources/V2/Tax/index.d.ts +16 -0
- package/cjs/resources/V2/Tax/index.js +13 -0
- package/cjs/resources/V2/Tax/index.js.map +1 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.d.ts +44 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js +23 -0
- package/cjs/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.d.ts +31 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js +15 -0
- package/cjs/resources/V2/TestHelpers/MoneyManagement.js.map +1 -0
- package/cjs/resources/V2/TestHelpers/index.d.ts +10 -0
- package/cjs/resources/V2/TestHelpers/index.js +15 -0
- package/cjs/resources/V2/TestHelpers/index.js.map +1 -0
- package/cjs/resources/V2/index.d.ts +39 -0
- package/cjs/resources/V2/index.js +22 -0
- package/cjs/resources/V2/index.js.map +1 -1
- package/cjs/resources/WebhookEndpoints.d.ts +2 -2
- package/cjs/resources.d.ts +16 -0
- package/cjs/resources.js +256 -14
- package/cjs/resources.js.map +1 -1
- package/cjs/stripe.core.d.ts +115 -50
- package/cjs/stripe.core.js +67 -31
- package/cjs/stripe.core.js.map +1 -1
- package/cjs/utils.d.ts +1 -1
- package/cjs/utils.js +13 -2
- package/cjs/utils.js.map +1 -1
- package/esm/Error.d.ts +53 -0
- package/esm/Error.js +117 -0
- package/esm/Error.js.map +1 -1
- package/esm/RequestSender.d.ts +1 -1
- package/esm/RequestSender.js +2 -2
- package/esm/RequestSender.js.map +1 -1
- package/esm/StripeEventNotificationHandler.d.ts +19 -0
- package/esm/StripeEventNotificationHandler.js +467 -0
- package/esm/StripeEventNotificationHandler.js.map +1 -0
- package/esm/Types.d.ts +4 -2
- package/esm/apiVersion.d.ts +1 -2
- package/esm/apiVersion.js +1 -2
- package/esm/apiVersion.js.map +1 -1
- package/esm/resources/AccountLinks.d.ts +5 -1
- package/esm/resources/AccountNotices.d.ts +140 -0
- package/esm/resources/AccountNotices.js +25 -0
- package/esm/resources/AccountNotices.js.map +1 -0
- package/esm/resources/AccountSessions.d.ts +463 -0
- package/esm/resources/AccountSessions.js.map +1 -1
- package/esm/resources/AccountSignals.d.ts +110 -0
- package/esm/resources/AccountSignals.js +3 -0
- package/esm/resources/AccountSignals.js.map +1 -0
- package/esm/resources/Accounts.d.ts +1020 -6
- package/esm/resources/Accounts.js +47 -0
- package/esm/resources/Accounts.js.map +1 -1
- package/esm/resources/ApplicationFees.d.ts +28 -1
- package/esm/resources/Balance.d.ts +134 -0
- package/esm/resources/BalanceSettings.d.ts +18 -0
- package/esm/resources/BalanceTransactions.d.ts +1 -1
- package/esm/resources/BalanceTransfers.d.ts +160 -0
- package/esm/resources/BalanceTransfers.js +11 -0
- package/esm/resources/BalanceTransfers.js.map +1 -0
- package/esm/resources/BankAccounts.d.ts +2 -2
- package/esm/resources/Billing/AlertRecovereds.d.ts +40 -0
- package/esm/resources/Billing/AlertRecovereds.js +3 -0
- package/esm/resources/Billing/AlertRecovereds.js.map +1 -0
- package/esm/resources/Billing/AlertTriggereds.d.ts +57 -1
- package/esm/resources/Billing/Alerts.d.ts +408 -5
- package/esm/resources/Billing/Alerts.js +321 -5
- package/esm/resources/Billing/Alerts.js.map +1 -1
- package/esm/resources/Billing/Analytics/MeterUsage.d.ts +88 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js +11 -0
- package/esm/resources/Billing/Analytics/MeterUsage.js.map +1 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.d.ts +38 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.js +3 -0
- package/esm/resources/Billing/Analytics/MeterUsageRows.js.map +1 -0
- package/esm/resources/Billing/Analytics/index.d.ts +15 -0
- package/esm/resources/Billing/Analytics/index.js +9 -0
- package/esm/resources/Billing/Analytics/index.js.map +1 -0
- package/esm/resources/Billing/CreditBalanceSummary.d.ts +126 -2
- package/esm/resources/Billing/CreditBalanceSummary.js +39 -1
- package/esm/resources/Billing/CreditBalanceSummary.js.map +1 -1
- package/esm/resources/Billing/CreditBalanceTransactions.d.ts +97 -3
- package/esm/resources/Billing/CreditBalanceTransactions.js +100 -1
- package/esm/resources/Billing/CreditBalanceTransactions.js.map +1 -1
- package/esm/resources/Billing/CreditGrants.d.ts +85 -3
- package/esm/resources/Billing/CreditGrants.js +134 -5
- package/esm/resources/Billing/CreditGrants.js.map +1 -1
- package/esm/resources/Billing/MeterEventSummaries.d.ts +6 -0
- package/esm/resources/Billing/Meters.d.ts +31 -0
- package/esm/resources/Billing/index.d.ts +6 -0
- package/esm/resources/Billing/index.js +2 -0
- package/esm/resources/Billing/index.js.map +1 -1
- package/esm/resources/Capabilities.d.ts +25 -2
- package/esm/resources/Capital/FinancingOffers.d.ts +191 -0
- package/esm/resources/Capital/FinancingOffers.js +26 -0
- package/esm/resources/Capital/FinancingOffers.js.map +1 -0
- package/esm/resources/Capital/FinancingSummary.d.ts +98 -0
- package/esm/resources/Capital/FinancingSummary.js +11 -0
- package/esm/resources/Capital/FinancingSummary.js.map +1 -0
- package/esm/resources/Capital/FinancingTransactions.d.ts +143 -0
- package/esm/resources/Capital/FinancingTransactions.js +20 -0
- package/esm/resources/Capital/FinancingTransactions.js.map +1 -0
- package/esm/resources/Capital/index.d.ts +25 -0
- package/esm/resources/Capital/index.js +13 -0
- package/esm/resources/Capital/index.js.map +1 -0
- package/esm/resources/Cards.d.ts +15 -0
- package/esm/resources/Charges.d.ts +3515 -70
- package/esm/resources/Charges.js.map +1 -1
- package/esm/resources/Checkout/Sessions.d.ts +792 -9
- package/esm/resources/Checkout/Sessions.js +88 -0
- package/esm/resources/Checkout/Sessions.js.map +1 -1
- package/esm/resources/Checkout/index.d.ts +1 -0
- package/esm/resources/ConfirmationTokens.d.ts +130 -1
- package/esm/resources/ConfirmationTokens.js.map +1 -1
- package/esm/resources/Coupons.d.ts +128 -2
- package/esm/resources/Coupons.js +41 -0
- package/esm/resources/Coupons.js.map +1 -1
- package/esm/resources/CreditNoteLineItems.d.ts +15 -1
- package/esm/resources/CreditNotes.d.ts +7 -1
- package/esm/resources/CreditNotes.js +13 -0
- package/esm/resources/CreditNotes.js.map +1 -1
- package/esm/resources/CustomerSessions.d.ts +74 -0
- package/esm/resources/CustomerSessions.js +13 -0
- package/esm/resources/CustomerSessions.js.map +1 -1
- package/esm/resources/Customers.d.ts +85 -1
- package/esm/resources/Customers.js +195 -0
- package/esm/resources/Customers.js.map +1 -1
- package/esm/resources/DelegatedCheckout/OrderEvents.d.ts +130 -0
- package/esm/resources/DelegatedCheckout/OrderEvents.js +3 -0
- package/esm/resources/DelegatedCheckout/OrderEvents.js.map +1 -0
- package/esm/resources/DelegatedCheckout/Orders.d.ts +161 -0
- package/esm/resources/DelegatedCheckout/Orders.js +11 -0
- package/esm/resources/DelegatedCheckout/Orders.js.map +1 -0
- package/esm/resources/DelegatedCheckout/RequestedSessions.d.ts +1418 -0
- package/esm/resources/DelegatedCheckout/RequestedSessions.js +43 -0
- package/esm/resources/DelegatedCheckout/RequestedSessions.js.map +1 -0
- package/esm/resources/DelegatedCheckout/index.d.ts +25 -0
- package/esm/resources/DelegatedCheckout/index.js +11 -0
- package/esm/resources/DelegatedCheckout/index.js.map +1 -0
- package/esm/resources/Discounts.d.ts +19 -0
- package/esm/resources/Disputes.d.ts +43 -0
- package/esm/resources/Disputes.js +14 -0
- package/esm/resources/Disputes.js.map +1 -1
- package/esm/resources/Events.d.ts +573 -2
- package/esm/resources/ExternalAccounts.d.ts +212 -1
- package/esm/resources/ExternalAccounts.js +42 -1
- package/esm/resources/ExternalAccounts.js.map +1 -1
- package/esm/resources/FinancialConnections/AccountInferredBalances.d.ts +24 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js +3 -0
- package/esm/resources/FinancialConnections/AccountInferredBalances.js.map +1 -0
- package/esm/resources/FinancialConnections/Accounts.d.ts +74 -4
- package/esm/resources/FinancialConnections/Accounts.js +8 -0
- package/esm/resources/FinancialConnections/Accounts.js.map +1 -1
- package/esm/resources/FinancialConnections/Authorizations.d.ts +87 -0
- package/esm/resources/FinancialConnections/Authorizations.js +11 -0
- package/esm/resources/FinancialConnections/Authorizations.js.map +1 -0
- package/esm/resources/FinancialConnections/Institutions.d.ts +101 -0
- package/esm/resources/FinancialConnections/Institutions.js +19 -0
- package/esm/resources/FinancialConnections/Institutions.js.map +1 -0
- package/esm/resources/FinancialConnections/Sessions.d.ts +155 -7
- package/esm/resources/FinancialConnections/index.d.ts +21 -6
- package/esm/resources/FinancialConnections/index.js +4 -0
- package/esm/resources/FinancialConnections/index.js.map +1 -1
- package/esm/resources/FrMealVouchersOnboardings.d.ts +173 -0
- package/esm/resources/FrMealVouchersOnboardings.js +38 -0
- package/esm/resources/FrMealVouchersOnboardings.js.map +1 -0
- package/esm/resources/FxQuotes.d.ts +212 -0
- package/esm/resources/FxQuotes.js +25 -0
- package/esm/resources/FxQuotes.js.map +1 -0
- package/esm/resources/Identity/BlocklistEntries.d.ts +157 -0
- package/esm/resources/Identity/BlocklistEntries.js +50 -0
- package/esm/resources/Identity/BlocklistEntries.js.map +1 -0
- package/esm/resources/Identity/VerificationReports.d.ts +33 -2
- package/esm/resources/Identity/VerificationReports.js.map +1 -1
- package/esm/resources/Identity/VerificationSessions.d.ts +11 -3
- package/esm/resources/Identity/index.d.ts +18 -10
- package/esm/resources/Identity/index.js +2 -0
- package/esm/resources/Identity/index.js.map +1 -1
- package/esm/resources/InvoiceItems.d.ts +203 -2
- package/esm/resources/InvoiceItems.js +41 -0
- package/esm/resources/InvoiceItems.js.map +1 -1
- package/esm/resources/InvoiceLineItems.d.ts +174 -4
- package/esm/resources/InvoiceRenderingTemplates.d.ts +12 -0
- package/esm/resources/InvoiceRenderingTemplates.js +28 -0
- package/esm/resources/InvoiceRenderingTemplates.js.map +1 -1
- package/esm/resources/Invoices.d.ts +2063 -20
- package/esm/resources/Invoices.js +221 -0
- package/esm/resources/Invoices.js.map +1 -1
- package/esm/resources/Issuing/Authorizations.d.ts +290 -0
- package/esm/resources/Issuing/Cardholders.d.ts +5 -4
- package/esm/resources/Issuing/Cards.d.ts +36 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.d.ts +640 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js +43 -0
- package/esm/resources/Issuing/CreditUnderwritingRecords.js.map +1 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.d.ts +95 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js +19 -0
- package/esm/resources/Issuing/DisputeSettlementDetails.js.map +1 -0
- package/esm/resources/Issuing/Disputes.d.ts +190 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.d.ts +68 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js +19 -0
- package/esm/resources/Issuing/FraudLiabilityDebits.js.map +1 -0
- package/esm/resources/Issuing/Programs.d.ts +95 -0
- package/esm/resources/Issuing/Programs.js +31 -0
- package/esm/resources/Issuing/Programs.js.map +1 -0
- package/esm/resources/Issuing/Settlements.d.ts +85 -0
- package/esm/resources/Issuing/Settlements.js +3 -0
- package/esm/resources/Issuing/Settlements.js.map +1 -0
- package/esm/resources/Issuing/Tokens.d.ts +22 -0
- package/esm/resources/Issuing/Transactions.d.ts +157 -0
- package/esm/resources/Issuing/Transactions.js.map +1 -1
- package/esm/resources/Issuing/index.d.ts +55 -22
- package/esm/resources/Issuing/index.js +8 -0
- package/esm/resources/Issuing/index.js.map +1 -1
- package/esm/resources/LineItems.d.ts +29 -2
- package/esm/resources/Mandates.d.ts +33 -1
- package/esm/resources/Mandates.js +8 -0
- package/esm/resources/Mandates.js.map +1 -1
- package/esm/resources/Margins.d.ts +115 -0
- package/esm/resources/Margins.js +31 -0
- package/esm/resources/Margins.js.map +1 -0
- package/esm/resources/Orchestration/PaymentAttempts.d.ts +34 -0
- package/esm/resources/Orchestration/PaymentAttempts.js +11 -0
- package/esm/resources/Orchestration/PaymentAttempts.js.map +1 -0
- package/esm/resources/Orchestration/index.d.ts +12 -0
- package/esm/resources/Orchestration/index.js +9 -0
- package/esm/resources/Orchestration/index.js.map +1 -0
- package/esm/resources/Orders.d.ts +4761 -0
- package/esm/resources/Orders.js +453 -0
- package/esm/resources/Orders.js.map +1 -0
- package/esm/resources/PaymentAttemptRecords.d.ts +453 -1
- package/esm/resources/PaymentAttemptRecords.js +42 -0
- package/esm/resources/PaymentAttemptRecords.js.map +1 -1
- package/esm/resources/PaymentIntentAmountDetailsLineItems.d.ts +17 -0
- package/esm/resources/PaymentIntents.d.ts +16660 -3570
- package/esm/resources/PaymentIntents.js +40 -0
- package/esm/resources/PaymentIntents.js.map +1 -1
- package/esm/resources/PaymentLinks.d.ts +74 -12
- package/esm/resources/PaymentLocationCapabilities.d.ts +122 -0
- package/esm/resources/PaymentLocationCapabilities.js +25 -0
- package/esm/resources/PaymentLocationCapabilities.js.map +1 -0
- package/esm/resources/PaymentLocations.d.ts +178 -0
- package/esm/resources/PaymentLocations.js +37 -0
- package/esm/resources/PaymentLocations.js.map +1 -0
- package/esm/resources/PaymentMethodBalances.d.ts +46 -0
- package/esm/resources/PaymentMethodBalances.js +3 -0
- package/esm/resources/PaymentMethodBalances.js.map +1 -0
- package/esm/resources/PaymentMethodConfigurations.d.ts +350 -0
- package/esm/resources/PaymentMethods.d.ts +262 -3
- package/esm/resources/PaymentMethods.js +20 -0
- package/esm/resources/PaymentMethods.js.map +1 -1
- package/esm/resources/PaymentRecords.d.ts +351 -21
- package/esm/resources/PaymentRecords.js.map +1 -1
- package/esm/resources/Persons.d.ts +25 -2
- package/esm/resources/Plans.d.ts +16 -0
- package/esm/resources/Prices.d.ts +76 -0
- package/esm/resources/Prices.js +27 -0
- package/esm/resources/Prices.js.map +1 -1
- package/esm/resources/Privacy/RedactionJobValidationErrors.d.ts +37 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js +3 -0
- package/esm/resources/Privacy/RedactionJobValidationErrors.js.map +1 -0
- package/esm/resources/Privacy/RedactionJobs.d.ts +229 -0
- package/esm/resources/Privacy/RedactionJobs.js +69 -0
- package/esm/resources/Privacy/RedactionJobs.js.map +1 -0
- package/esm/resources/Privacy/index.d.ts +22 -0
- package/esm/resources/Privacy/index.js +9 -0
- package/esm/resources/Privacy/index.js.map +1 -0
- package/esm/resources/ProductCatalog/TrialOffers.d.ts +127 -0
- package/esm/resources/ProductCatalog/TrialOffers.js +11 -0
- package/esm/resources/ProductCatalog/TrialOffers.js.map +1 -0
- package/esm/resources/ProductCatalog/index.d.ts +12 -0
- package/esm/resources/ProductCatalog/index.js +9 -0
- package/esm/resources/ProductCatalog/index.js.map +1 -0
- package/esm/resources/Products.d.ts +171 -0
- package/esm/resources/Products.js +69 -0
- package/esm/resources/Products.js.map +1 -1
- package/esm/resources/Profiles.d.ts +26 -0
- package/esm/resources/Profiles.js +3 -0
- package/esm/resources/Profiles.js.map +1 -0
- package/esm/resources/PromotionCodes.d.ts +12 -0
- package/esm/resources/PromotionCodes.js +27 -0
- package/esm/resources/PromotionCodes.js.map +1 -1
- package/esm/resources/QuoteLines.d.ts +684 -0
- package/esm/resources/QuoteLines.js +3 -0
- package/esm/resources/QuoteLines.js.map +1 -0
- package/esm/resources/QuotePreviewInvoices.d.ts +1173 -0
- package/esm/resources/QuotePreviewInvoices.js +3 -0
- package/esm/resources/QuotePreviewInvoices.js.map +1 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.d.ts +901 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js +3 -0
- package/esm/resources/QuotePreviewSubscriptionSchedules.js.map +1 -0
- package/esm/resources/Quotes.d.ts +3548 -254
- package/esm/resources/Quotes.js +1184 -16
- package/esm/resources/Quotes.js.map +1 -1
- package/esm/resources/Radar/AccountEvaluations.d.ts +270 -0
- package/esm/resources/Radar/AccountEvaluations.js +23 -0
- package/esm/resources/Radar/AccountEvaluations.js.map +1 -0
- package/esm/resources/Radar/CustomerEvaluations.d.ts +214 -0
- package/esm/resources/Radar/CustomerEvaluations.js +17 -0
- package/esm/resources/Radar/CustomerEvaluations.js.map +1 -0
- package/esm/resources/Radar/IssuingAuthorizationEvaluations.d.ts +435 -0
- package/esm/resources/Radar/IssuingAuthorizationEvaluations.js +11 -0
- package/esm/resources/Radar/IssuingAuthorizationEvaluations.js.map +1 -0
- package/esm/resources/Radar/PaymentEvaluations.d.ts +63 -1
- package/esm/resources/Radar/ValueListItems.d.ts +8 -0
- package/esm/resources/Radar/ValueListItems.js +13 -0
- package/esm/resources/Radar/ValueListItems.js.map +1 -1
- package/esm/resources/Radar/index.d.ts +34 -16
- package/esm/resources/Radar/index.js +6 -0
- package/esm/resources/Radar/index.js.map +1 -1
- package/esm/resources/Refunds.d.ts +23 -0
- package/esm/resources/Refunds.js +27 -0
- package/esm/resources/Refunds.js.map +1 -1
- package/esm/resources/Reserve/Holds.d.ts +53 -1
- package/esm/resources/Reserve/Holds.js +17 -1
- package/esm/resources/Reserve/Holds.js.map +1 -1
- package/esm/resources/Reserve/Plans.d.ts +16 -0
- package/esm/resources/Reserve/Plans.js +9 -1
- package/esm/resources/Reserve/Plans.js.map +1 -1
- package/esm/resources/Reserve/Releases.d.ts +41 -1
- package/esm/resources/Reserve/Releases.js +17 -1
- package/esm/resources/Reserve/Releases.js.map +1 -1
- package/esm/resources/Reserve/index.d.ts +14 -3
- package/esm/resources/Reserve/index.js +10 -2
- package/esm/resources/Reserve/index.js.map +1 -1
- package/esm/resources/RiskSignals.d.ts +10 -0
- package/esm/resources/RiskSignals.js +3 -0
- package/esm/resources/RiskSignals.js.map +1 -0
- package/esm/resources/SetupAttempts.d.ts +26 -1
- package/esm/resources/SetupIntents.d.ts +561 -11
- package/esm/resources/SharedPayment/GrantedTokens.d.ts +1137 -0
- package/esm/resources/SharedPayment/GrantedTokens.js +11 -0
- package/esm/resources/SharedPayment/GrantedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/IssuedTokens.d.ts +322 -0
- package/esm/resources/SharedPayment/IssuedTokens.js +23 -0
- package/esm/resources/SharedPayment/IssuedTokens.js.map +1 -0
- package/esm/resources/SharedPayment/index.d.ts +19 -0
- package/esm/resources/SharedPayment/index.js +11 -0
- package/esm/resources/SharedPayment/index.js.map +1 -0
- package/esm/resources/Sources.d.ts +16 -1
- package/esm/resources/SubscriptionItems.d.ts +265 -0
- package/esm/resources/SubscriptionItems.js +41 -0
- package/esm/resources/SubscriptionItems.js.map +1 -1
- package/esm/resources/SubscriptionSchedules.d.ts +1949 -19
- package/esm/resources/SubscriptionSchedules.js +61 -0
- package/esm/resources/SubscriptionSchedules.js.map +1 -1
- package/esm/resources/Subscriptions.d.ts +965 -12
- package/esm/resources/Subscriptions.js +289 -0
- package/esm/resources/Subscriptions.js.map +1 -1
- package/esm/resources/Tax/CalculationLineItems.d.ts +6 -2
- package/esm/resources/Tax/Calculations.d.ts +7 -3
- package/esm/resources/Tax/Forms.d.ts +230 -0
- package/esm/resources/Tax/Forms.js +28 -0
- package/esm/resources/Tax/Forms.js.map +1 -0
- package/esm/resources/Tax/Locations.d.ts +108 -0
- package/esm/resources/Tax/Locations.js +29 -0
- package/esm/resources/Tax/Locations.js.map +1 -0
- package/esm/resources/Tax/Registrations.d.ts +171 -2
- package/esm/resources/Tax/Registrations.js +27 -0
- package/esm/resources/Tax/Registrations.js.map +1 -1
- package/esm/resources/Tax/Settings.d.ts +8 -0
- package/esm/resources/Tax/Settings.js +13 -0
- package/esm/resources/Tax/Settings.js.map +1 -1
- package/esm/resources/Tax/Transactions.d.ts +10 -2
- package/esm/resources/Tax/Transactions.js +13 -0
- package/esm/resources/Tax/Transactions.js.map +1 -1
- package/esm/resources/Tax/index.d.ts +27 -13
- package/esm/resources/Tax/index.js +4 -0
- package/esm/resources/Tax/index.js.map +1 -1
- package/esm/resources/TaxCodes.d.ts +15 -0
- package/esm/resources/TaxIds.d.ts +6 -0
- package/esm/resources/TaxIds.js +13 -0
- package/esm/resources/TaxIds.js.map +1 -1
- package/esm/resources/TaxRates.d.ts +12 -0
- package/esm/resources/TaxRates.js +27 -0
- package/esm/resources/TaxRates.js.map +1 -1
- package/esm/resources/Terminal/Configurations.d.ts +27 -0
- package/esm/resources/Terminal/ReaderCollectedData.d.ts +52 -0
- package/esm/resources/Terminal/ReaderCollectedData.js +11 -0
- package/esm/resources/Terminal/ReaderCollectedData.js.map +1 -0
- package/esm/resources/Terminal/Readers.d.ts +17 -1
- package/esm/resources/Terminal/index.d.ts +5 -0
- package/esm/resources/Terminal/index.js +2 -0
- package/esm/resources/Terminal/index.js.map +1 -1
- package/esm/resources/TestHelpers/Capital/FinancingOffers.d.ts +81 -0
- package/esm/resources/TestHelpers/Capital/FinancingOffers.js +17 -0
- package/esm/resources/TestHelpers/Capital/FinancingOffers.js.map +1 -0
- package/esm/resources/TestHelpers/Capital/index.d.ts +8 -0
- package/esm/resources/TestHelpers/Capital/index.js +9 -0
- package/esm/resources/TestHelpers/Capital/index.js.map +1 -0
- package/esm/resources/TestHelpers/ConfirmationTokens.d.ts +88 -1
- package/esm/resources/TestHelpers/Issuing/Authorizations.d.ts +8 -0
- package/esm/resources/TestHelpers/Issuing/Disputes.d.ts +104 -0
- package/esm/resources/TestHelpers/Issuing/Disputes.js +29 -0
- package/esm/resources/TestHelpers/Issuing/Disputes.js.map +1 -0
- package/esm/resources/TestHelpers/Issuing/Transactions.d.ts +16 -0
- package/esm/resources/TestHelpers/Issuing/index.d.ts +2 -0
- package/esm/resources/TestHelpers/Issuing/index.js +2 -0
- package/esm/resources/TestHelpers/Issuing/index.js.map +1 -1
- package/esm/resources/TestHelpers/PaymentIntents.d.ts +36 -0
- package/esm/resources/TestHelpers/PaymentIntents.js +11 -0
- package/esm/resources/TestHelpers/PaymentIntents.js.map +1 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.d.ts +75 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js +17 -0
- package/esm/resources/TestHelpers/SharedPayment/GrantedTokens.js.map +1 -0
- package/esm/resources/TestHelpers/SharedPayment/index.d.ts +8 -0
- package/esm/resources/TestHelpers/SharedPayment/index.js +9 -0
- package/esm/resources/TestHelpers/SharedPayment/index.js.map +1 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/TestHelpers/Treasury/ReceivedDebits.d.ts +22 -0
- package/esm/resources/TestHelpers/index.d.ts +14 -6
- package/esm/resources/TestHelpers/index.js +6 -0
- package/esm/resources/TestHelpers/index.js.map +1 -1
- package/esm/resources/Tokens.d.ts +61 -0
- package/esm/resources/Transfers.d.ts +12 -0
- package/esm/resources/Transfers.js.map +1 -1
- package/esm/resources/TransitBalances.d.ts +25 -0
- package/esm/resources/TransitBalances.js +3 -0
- package/esm/resources/TransitBalances.js.map +1 -0
- package/esm/resources/Treasury/FinancialAccountFeatures.d.ts +5 -0
- package/esm/resources/Treasury/FinancialAccounts.d.ts +34 -1
- package/esm/resources/Treasury/OutboundPayments.d.ts +8 -0
- package/esm/resources/Treasury/OutboundTransfers.d.ts +44 -0
- package/esm/resources/Treasury/ReceivedCredits.d.ts +22 -0
- package/esm/resources/Treasury/ReceivedDebits.d.ts +26 -0
- package/esm/resources/V2/Billing/BillSettingVersions.d.ts +75 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/BillSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js +19 -0
- package/esm/resources/V2/Billing/BillSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/BillSettings.d.ts +284 -0
- package/esm/resources/V2/Billing/BillSettings.js +37 -0
- package/esm/resources/V2/Billing/BillSettings.js.map +1 -0
- package/esm/resources/V2/Billing/CadenceSpendModifiers.d.ts +88 -0
- package/esm/resources/V2/Billing/CadenceSpendModifiers.js +3 -0
- package/esm/resources/V2/Billing/CadenceSpendModifiers.js.map +1 -0
- package/esm/resources/V2/Billing/Cadences/SpendModifierRules.d.ts +37 -0
- package/esm/resources/V2/Billing/Cadences/SpendModifierRules.js +19 -0
- package/esm/resources/V2/Billing/Cadences/SpendModifierRules.js.map +1 -0
- package/esm/resources/V2/Billing/Cadences.d.ts +1015 -0
- package/esm/resources/V2/Billing/Cadences.js +260 -0
- package/esm/resources/V2/Billing/Cadences.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.d.ts +240 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js +3 -0
- package/esm/resources/V2/Billing/CollectionSettingVersions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js +66 -0
- package/esm/resources/V2/Billing/CollectionSettings/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/CollectionSettings.d.ts +779 -0
- package/esm/resources/V2/Billing/CollectionSettings.js +162 -0
- package/esm/resources/V2/Billing/CollectionSettings.js.map +1 -0
- package/esm/resources/V2/Billing/ContractLicensePricingQuantityChanges.d.ts +45 -0
- package/esm/resources/V2/Billing/ContractLicensePricingQuantityChanges.js +3 -0
- package/esm/resources/V2/Billing/ContractLicensePricingQuantityChanges.js.map +1 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.d.ts +23 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.js +13 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing/QuantityChanges.js.map +1 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing.d.ts +8 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing.js +11 -0
- package/esm/resources/V2/Billing/Contracts/LicensePricing.js.map +1 -0
- package/esm/resources/V2/Billing/Contracts.d.ts +2028 -0
- package/esm/resources/V2/Billing/Contracts.js +372 -0
- package/esm/resources/V2/Billing/Contracts.js.map +1 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.d.ts +125 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js +31 -0
- package/esm/resources/V2/Billing/CustomPricingUnits.js.map +1 -0
- package/esm/resources/V2/Billing/IntentActions.d.ts +607 -0
- package/esm/resources/V2/Billing/IntentActions.js +3 -0
- package/esm/resources/V2/Billing/IntentActions.js.map +1 -0
- package/esm/resources/V2/Billing/Intents/Actions.d.ts +33 -0
- package/esm/resources/V2/Billing/Intents/Actions.js +66 -0
- package/esm/resources/V2/Billing/Intents/Actions.js.map +1 -0
- package/esm/resources/V2/Billing/Intents.d.ts +1257 -0
- package/esm/resources/V2/Billing/Intents.js +83 -0
- package/esm/resources/V2/Billing/Intents.js.map +1 -0
- package/esm/resources/V2/Billing/LicenseFeeVersions.d.ts +82 -0
- package/esm/resources/V2/Billing/LicenseFeeVersions.js +3 -0
- package/esm/resources/V2/Billing/LicenseFeeVersions.js.map +1 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js +60 -0
- package/esm/resources/V2/Billing/LicenseFees/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/LicenseFees.d.ts +364 -0
- package/esm/resources/V2/Billing/LicenseFees.js +144 -0
- package/esm/resources/V2/Billing/LicenseFees.js.map +1 -0
- package/esm/resources/V2/Billing/LicensedItems.d.ts +174 -0
- package/esm/resources/V2/Billing/LicensedItems.js +31 -0
- package/esm/resources/V2/Billing/LicensedItems.js.map +1 -0
- package/esm/resources/V2/Billing/MeteredItems.d.ts +222 -0
- package/esm/resources/V2/Billing/MeteredItems.js +31 -0
- package/esm/resources/V2/Billing/MeteredItems.js.map +1 -0
- package/esm/resources/V2/Billing/OneTimeItems.d.ts +174 -0
- package/esm/resources/V2/Billing/OneTimeItems.js +31 -0
- package/esm/resources/V2/Billing/OneTimeItems.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlanComponents.d.ts +84 -0
- package/esm/resources/V2/Billing/PricingPlanComponents.js +3 -0
- package/esm/resources/V2/Billing/PricingPlanComponents.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.d.ts +624 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js +292 -0
- package/esm/resources/V2/Billing/PricingPlanSubscriptions.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlanVersions.d.ts +30 -0
- package/esm/resources/V2/Billing/PricingPlanVersions.js +3 -0
- package/esm/resources/V2/Billing/PricingPlanVersions.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.d.ts +142 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js +37 -0
- package/esm/resources/V2/Billing/PricingPlans/Components.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js +19 -0
- package/esm/resources/V2/Billing/PricingPlans/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/PricingPlans.d.ts +173 -0
- package/esm/resources/V2/Billing/PricingPlans.js +39 -0
- package/esm/resources/V2/Billing/PricingPlans.js.map +1 -0
- package/esm/resources/V2/Billing/Profiles.d.ts +166 -0
- package/esm/resources/V2/Billing/Profiles.js +31 -0
- package/esm/resources/V2/Billing/Profiles.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.d.ts +45 -0
- package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js +3 -0
- package/esm/resources/V2/Billing/RateCardCustomPricingUnitOverageRates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardRates.d.ts +115 -0
- package/esm/resources/V2/Billing/RateCardRates.js +3 -0
- package/esm/resources/V2/Billing/RateCardRates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.d.ts +219 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js +37 -0
- package/esm/resources/V2/Billing/RateCardSubscriptions.js.map +1 -0
- package/esm/resources/V2/Billing/RateCardVersions.d.ts +22 -0
- package/esm/resources/V2/Billing/RateCardVersions.js +3 -0
- package/esm/resources/V2/Billing/RateCardVersions.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.d.ts +79 -0
- package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js +31 -0
- package/esm/resources/V2/Billing/RateCards/CustomPricingUnitOverageRates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards/Rates.d.ts +145 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js +106 -0
- package/esm/resources/V2/Billing/RateCards/Rates.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards/Versions.d.ts +33 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js +19 -0
- package/esm/resources/V2/Billing/RateCards/Versions.js.map +1 -0
- package/esm/resources/V2/Billing/RateCards.d.ts +340 -0
- package/esm/resources/V2/Billing/RateCards.js +72 -0
- package/esm/resources/V2/Billing/RateCards.js.map +1 -0
- package/esm/resources/V2/Billing/ServiceActions.d.ts +514 -0
- package/esm/resources/V2/Billing/ServiceActions.js +158 -0
- package/esm/resources/V2/Billing/ServiceActions.js.map +1 -0
- package/esm/resources/V2/Billing/index.d.ts +174 -6
- package/esm/resources/V2/Billing/index.js +32 -0
- package/esm/resources/V2/Billing/index.js.map +1 -1
- package/esm/resources/V2/Core/AccountEvaluations.d.ts +160 -0
- package/esm/resources/V2/Core/AccountEvaluations.js +11 -0
- package/esm/resources/V2/Core/AccountEvaluations.js.map +1 -0
- package/esm/resources/V2/Core/AccountLinks.d.ts +158 -6
- package/esm/resources/V2/Core/AccountPersons.d.ts +1 -1
- package/esm/resources/V2/Core/AccountTokens.d.ts +220 -2
- package/esm/resources/V2/Core/Accounts/PersonTokens.d.ts +1 -1
- package/esm/resources/V2/Core/Accounts/Persons.d.ts +2 -2
- package/esm/resources/V2/Core/Accounts.d.ts +5570 -67
- package/esm/resources/V2/Core/ApprovalRequests.d.ts +334 -0
- package/esm/resources/V2/Core/ApprovalRequests.js +42 -0
- package/esm/resources/V2/Core/ApprovalRequests.js.map +1 -0
- package/esm/resources/V2/Core/BatchJobs.d.ts +373 -0
- package/esm/resources/V2/Core/BatchJobs.js +221 -0
- package/esm/resources/V2/Core/BatchJobs.js.map +1 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.d.ts +229 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js +27 -0
- package/esm/resources/V2/Core/ClaimableSandboxes.js.map +1 -0
- package/esm/resources/V2/Core/ConnectionSessions.d.ts +90 -0
- package/esm/resources/V2/Core/ConnectionSessions.js +17 -0
- package/esm/resources/V2/Core/ConnectionSessions.js.map +1 -0
- package/esm/resources/V2/Core/Events.d.ts +7601 -232
- package/esm/resources/V2/Core/FeeBatches.d.ts +172 -0
- package/esm/resources/V2/Core/FeeBatches.js +19 -0
- package/esm/resources/V2/Core/FeeBatches.js.map +1 -0
- package/esm/resources/V2/Core/FeeEntries.d.ts +178 -0
- package/esm/resources/V2/Core/FeeEntries.js +19 -0
- package/esm/resources/V2/Core/FeeEntries.js.map +1 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.d.ts +285 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js +50 -0
- package/esm/resources/V2/Core/Vault/GbBankAccounts.js.map +1 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.d.ts +254 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js +58 -0
- package/esm/resources/V2/Core/Vault/UsBankAccounts.js.map +1 -0
- package/esm/resources/V2/Core/Vault/index.d.ts +28 -0
- package/esm/resources/V2/Core/Vault/index.js +11 -0
- package/esm/resources/V2/Core/Vault/index.js.map +1 -0
- package/esm/resources/V2/Core/index.d.ts +63 -14
- package/esm/resources/V2/Core/index.js +16 -0
- package/esm/resources/V2/Core/index.js.map +1 -1
- package/esm/resources/V2/Data/Analytics/MetricQuery.d.ts +73 -0
- package/esm/resources/V2/Data/Analytics/MetricQuery.js +32 -0
- package/esm/resources/V2/Data/Analytics/MetricQuery.js.map +1 -0
- package/esm/resources/V2/Data/Analytics/MetricQueryResults.d.ts +82 -0
- package/esm/resources/V2/Data/Analytics/MetricQueryResults.js +3 -0
- package/esm/resources/V2/Data/Analytics/MetricQueryResults.js.map +1 -0
- package/esm/resources/V2/Data/Analytics/index.d.ts +12 -0
- package/esm/resources/V2/Data/Analytics/index.js +9 -0
- package/esm/resources/V2/Data/Analytics/index.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.d.ts +177 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js +42 -0
- package/esm/resources/V2/Data/Reporting/QueryRuns.js.map +1 -0
- package/esm/resources/V2/Data/Reporting/index.d.ts +13 -0
- package/esm/resources/V2/Data/Reporting/index.js +9 -0
- package/esm/resources/V2/Data/Reporting/index.js.map +1 -0
- package/esm/resources/V2/Data/index.d.ts +13 -0
- package/esm/resources/V2/Data/index.js +11 -0
- package/esm/resources/V2/Data/index.js.map +1 -0
- package/esm/resources/V2/Extend/WorkflowRuns.d.ts +166 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js +19 -0
- package/esm/resources/V2/Extend/WorkflowRuns.js.map +1 -0
- package/esm/resources/V2/Extend/Workflows.d.ts +123 -0
- package/esm/resources/V2/Extend/Workflows.js +26 -0
- package/esm/resources/V2/Extend/Workflows.js.map +1 -0
- package/esm/resources/V2/Extend/index.d.ts +20 -0
- package/esm/resources/V2/Extend/index.js +11 -0
- package/esm/resources/V2/Extend/index.js.map +1 -0
- package/esm/resources/V2/FinancialAddressCreditSimulations.d.ts +14 -0
- package/esm/resources/V2/FinancialAddressCreditSimulations.js +3 -0
- package/esm/resources/V2/FinancialAddressCreditSimulations.js.map +1 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.d.ts +19 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js +3 -0
- package/esm/resources/V2/FinancialAddressGeneratedMicrodeposits.js.map +1 -0
- package/esm/resources/V2/Iam/ActivityLogs.d.ts +214 -0
- package/esm/resources/V2/Iam/ActivityLogs.js +19 -0
- package/esm/resources/V2/Iam/ActivityLogs.js.map +1 -0
- package/esm/resources/V2/Iam/ApiKeys.d.ts +280 -0
- package/esm/resources/V2/Iam/ApiKeys.js +43 -0
- package/esm/resources/V2/Iam/ApiKeys.js.map +1 -0
- package/esm/resources/V2/Iam/index.d.ts +23 -0
- package/esm/resources/V2/Iam/index.js +11 -0
- package/esm/resources/V2/Iam/index.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.d.ts +139 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js +19 -0
- package/esm/resources/V2/MoneyManagement/Adjustments.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.d.ts +135 -0
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.js +27 -0
- package/esm/resources/V2/MoneyManagement/CurrencyConversions.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/DebitDisputes.d.ts +171 -0
- package/esm/resources/V2/MoneyManagement/DebitDisputes.js +25 -0
- package/esm/resources/V2/MoneyManagement/DebitDisputes.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountStatements.d.ts +103 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountStatements.js +3 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccountStatements.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts/Statements.d.ts +44 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts/Statements.js +49 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts/Statements.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.d.ts +417 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js +46 -0
- package/esm/resources/V2/MoneyManagement/FinancialAccounts.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.d.ts +308 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js +27 -0
- package/esm/resources/V2/MoneyManagement/FinancialAddresses.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.d.ts +254 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js +26 -0
- package/esm/resources/V2/MoneyManagement/InboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.d.ts +222 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js +18 -0
- package/esm/resources/V2/MoneyManagement/OutboundPaymentQuotes.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.d.ts +524 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js +37 -0
- package/esm/resources/V2/MoneyManagement/OutboundPayments.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.d.ts +321 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js +45 -0
- package/esm/resources/V2/MoneyManagement/OutboundSetupIntents.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.d.ts +342 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js +35 -0
- package/esm/resources/V2/MoneyManagement/OutboundTransfers.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.d.ts +270 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js +40 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethods.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.d.ts +96 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js +13 -0
- package/esm/resources/V2/MoneyManagement/PayoutMethodsBankAccountSpec.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.d.ts +458 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js +19 -0
- package/esm/resources/V2/MoneyManagement/ReceivedCredits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.d.ts +251 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js +19 -0
- package/esm/resources/V2/MoneyManagement/ReceivedDebits.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.d.ts +120 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js +23 -0
- package/esm/resources/V2/MoneyManagement/RecipientVerifications.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.d.ts +249 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js +19 -0
- package/esm/resources/V2/MoneyManagement/TransactionEntries.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/Transactions.d.ts +280 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js +19 -0
- package/esm/resources/V2/MoneyManagement/Transactions.js.map +1 -0
- package/esm/resources/V2/MoneyManagement/index.d.ts +128 -0
- package/esm/resources/V2/MoneyManagement/index.js +41 -0
- package/esm/resources/V2/MoneyManagement/index.js.map +1 -0
- package/esm/resources/V2/Network/BusinessProfiles.d.ts +96 -0
- package/esm/resources/V2/Network/BusinessProfiles.js +17 -0
- package/esm/resources/V2/Network/BusinessProfiles.js.map +1 -0
- package/esm/resources/V2/Network/index.d.ts +13 -0
- package/esm/resources/V2/Network/index.js +9 -0
- package/esm/resources/V2/Network/index.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.d.ts +147 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js +37 -0
- package/esm/resources/V2/OrchestratedCommerce/Agreements.js.map +1 -0
- package/esm/resources/V2/OrchestratedCommerce/index.d.ts +16 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js +9 -0
- package/esm/resources/V2/OrchestratedCommerce/index.js.map +1 -0
- package/esm/resources/V2/Payments/OffSessionPayments.d.ts +827 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js +49 -0
- package/esm/resources/V2/Payments/OffSessionPayments.js.map +1 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.d.ts +77 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.js +3 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntentSplits.js.map +1 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.d.ts +85 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js +31 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents/Splits.js.map +1 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.d.ts +213 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.js +49 -0
- package/esm/resources/V2/Payments/SettlementAllocationIntents.js.map +1 -0
- package/esm/resources/V2/Payments/index.d.ts +31 -0
- package/esm/resources/V2/Payments/index.js +11 -0
- package/esm/resources/V2/Payments/index.js.map +1 -0
- package/esm/resources/V2/Reporting/ReportRuns.d.ts +194 -0
- package/esm/resources/V2/Reporting/ReportRuns.js +46 -0
- package/esm/resources/V2/Reporting/ReportRuns.js.map +1 -0
- package/esm/resources/V2/Reporting/Reports.d.ts +110 -0
- package/esm/resources/V2/Reporting/Reports.js +13 -0
- package/esm/resources/V2/Reporting/Reports.js.map +1 -0
- package/esm/resources/V2/Reporting/index.d.ts +18 -0
- package/esm/resources/V2/Reporting/index.js +11 -0
- package/esm/resources/V2/Reporting/index.js.map +1 -0
- package/esm/resources/V2/Signals/AccountSignals.d.ts +176 -0
- package/esm/resources/V2/Signals/AccountSignals.js +54 -0
- package/esm/resources/V2/Signals/AccountSignals.js.map +1 -0
- package/esm/resources/V2/Signals/index.d.ts +13 -0
- package/esm/resources/V2/Signals/index.js +9 -0
- package/esm/resources/V2/Signals/index.js.map +1 -0
- package/esm/resources/V2/Tax/ManualRules.d.ts +335 -0
- package/esm/resources/V2/Tax/ManualRules.js +189 -0
- package/esm/resources/V2/Tax/ManualRules.js.map +1 -0
- package/esm/resources/V2/Tax/index.d.ts +16 -0
- package/esm/resources/V2/Tax/index.js +9 -0
- package/esm/resources/V2/Tax/index.js.map +1 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.d.ts +44 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js +19 -0
- package/esm/resources/V2/TestHelpers/FinancialAddresses.js.map +1 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.d.ts +31 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js +11 -0
- package/esm/resources/V2/TestHelpers/MoneyManagement.js.map +1 -0
- package/esm/resources/V2/TestHelpers/index.d.ts +10 -0
- package/esm/resources/V2/TestHelpers/index.js +11 -0
- package/esm/resources/V2/TestHelpers/index.js.map +1 -0
- package/esm/resources/V2/index.d.ts +39 -0
- package/esm/resources/V2/index.js +22 -0
- package/esm/resources/V2/index.js.map +1 -1
- package/esm/resources/WebhookEndpoints.d.ts +2 -2
- package/esm/resources.d.ts +16 -0
- package/esm/resources.js +233 -0
- package/esm/resources.js.map +1 -1
- package/esm/stripe.core.d.ts +115 -50
- package/esm/stripe.core.js +37 -1
- package/esm/stripe.core.js.map +1 -1
- package/esm/stripe.esm.node.d.ts +115 -50
- package/esm/stripe.esm.node.js +37 -1
- package/esm/stripe.esm.node.js.map +1 -1
- package/esm/utils.d.ts +1 -1
- package/esm/utils.js +13 -2
- package/esm/utils.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,2028 @@
|
|
|
1
|
+
import { StripeResource } from '../../../StripeResource.js';
|
|
2
|
+
import { V2Amount } from './../V2Amounts.js';
|
|
3
|
+
import { MetadataParam, Decimal, Metadata } from '../../../shared.js';
|
|
4
|
+
import { RequestOptions, V2ListPromise, Response } from '../../../lib.js';
|
|
5
|
+
import { LicensePricingResource } from './Contracts/LicensePricing.js';
|
|
6
|
+
import { Stripe } from '../../../stripe.core.js';
|
|
7
|
+
export declare class ContractResource extends StripeResource {
|
|
8
|
+
private readonly stripe;
|
|
9
|
+
licensePricing: LicensePricingResource;
|
|
10
|
+
constructor(stripe: Stripe);
|
|
11
|
+
/**
|
|
12
|
+
* List Contract objects with pagination.
|
|
13
|
+
*/
|
|
14
|
+
list(params?: V2.Billing.ContractListParams, options?: RequestOptions): V2ListPromise<Contract>;
|
|
15
|
+
/**
|
|
16
|
+
* Create a Contract object.
|
|
17
|
+
*/
|
|
18
|
+
create(params: V2.Billing.ContractCreateParams, options?: RequestOptions): Promise<Response<Contract>>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieve a Contract object by ID.
|
|
21
|
+
*/
|
|
22
|
+
retrieve(id: string, params?: V2.Billing.ContractRetrieveParams, options?: RequestOptions): Promise<Response<Contract>>;
|
|
23
|
+
/**
|
|
24
|
+
* Update a Contract object by ID.
|
|
25
|
+
*/
|
|
26
|
+
update(id: string, params?: V2.Billing.ContractUpdateParams, options?: RequestOptions): Promise<Response<Contract>>;
|
|
27
|
+
/**
|
|
28
|
+
* Activate a Draft Contract object by ID.
|
|
29
|
+
*/
|
|
30
|
+
activate(id: string, params?: V2.Billing.ContractActivateParams, options?: RequestOptions): Promise<Response<Contract>>;
|
|
31
|
+
/**
|
|
32
|
+
* Cancel a Contract object by ID.
|
|
33
|
+
*/
|
|
34
|
+
cancel(id: string, params?: V2.Billing.ContractCancelParams, options?: RequestOptions): Promise<Response<Contract>>;
|
|
35
|
+
}
|
|
36
|
+
export interface Contract {
|
|
37
|
+
/**
|
|
38
|
+
* The ID of the contract object.
|
|
39
|
+
*/
|
|
40
|
+
id: string;
|
|
41
|
+
/**
|
|
42
|
+
* String representing the object's type. Objects of the same type share the same value of the object field.
|
|
43
|
+
*/
|
|
44
|
+
object: 'v2.billing.contract';
|
|
45
|
+
/**
|
|
46
|
+
* The billing settings for the contract.
|
|
47
|
+
*/
|
|
48
|
+
billing_settings?: V2.Billing.Contract.BillingSettings;
|
|
49
|
+
/**
|
|
50
|
+
* The contract line details of the contract. Only populated when `contract_line_details` is passed in the `include` parameter.
|
|
51
|
+
*/
|
|
52
|
+
contract_line_details: Array<V2.Billing.Contract.ContractLineDetail>;
|
|
53
|
+
/**
|
|
54
|
+
* A unique user-provided contract number e.g. C-2026-0001.
|
|
55
|
+
*/
|
|
56
|
+
contract_number: string;
|
|
57
|
+
/**
|
|
58
|
+
* The computed total value of all contract lines.
|
|
59
|
+
*/
|
|
60
|
+
contract_value_details: V2.Billing.Contract.ContractValueDetails;
|
|
61
|
+
/**
|
|
62
|
+
* Timestamp of when the object was created.
|
|
63
|
+
*/
|
|
64
|
+
created: string;
|
|
65
|
+
/**
|
|
66
|
+
* The currency of the contract.
|
|
67
|
+
*/
|
|
68
|
+
currency: string;
|
|
69
|
+
/**
|
|
70
|
+
* The ID of the customer associated with the contract.
|
|
71
|
+
*/
|
|
72
|
+
customer: string;
|
|
73
|
+
/**
|
|
74
|
+
* The license quantities of the contract. Only populated when `license_quantities` is passed in the `include` parameter.
|
|
75
|
+
*/
|
|
76
|
+
license_quantities: Array<V2.Billing.Contract.LicenseQuantity>;
|
|
77
|
+
/**
|
|
78
|
+
* Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
|
|
79
|
+
*/
|
|
80
|
+
livemode: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Set of key-value pairs that you can attach to an object.
|
|
83
|
+
*/
|
|
84
|
+
metadata?: Metadata;
|
|
85
|
+
/**
|
|
86
|
+
* The one-time fees of the contract. Only populated when `one_time_fees` is passed in the `include` parameter.
|
|
87
|
+
*/
|
|
88
|
+
one_time_fees?: Array<V2.Billing.Contract.OneTimeFee>;
|
|
89
|
+
/**
|
|
90
|
+
* The pricing lines of the contract. Only populated when `pricing_lines` is passed in the `include` parameter.
|
|
91
|
+
*/
|
|
92
|
+
pricing_lines: Array<V2.Billing.Contract.PricingLine>;
|
|
93
|
+
/**
|
|
94
|
+
* The pricing overrides of the contract. Only populated when `pricing_overrides` is passed in the `include` parameter.
|
|
95
|
+
*/
|
|
96
|
+
pricing_overrides: Array<V2.Billing.Contract.PricingOverride>;
|
|
97
|
+
/**
|
|
98
|
+
* The current status of the contract.
|
|
99
|
+
*/
|
|
100
|
+
status: V2.Billing.Contract.Status;
|
|
101
|
+
/**
|
|
102
|
+
* Information about the contract status transitions.
|
|
103
|
+
*/
|
|
104
|
+
status_details: V2.Billing.Contract.StatusDetails;
|
|
105
|
+
}
|
|
106
|
+
export declare namespace V2 {
|
|
107
|
+
namespace Billing {
|
|
108
|
+
namespace Contract {
|
|
109
|
+
interface BillingSettings {
|
|
110
|
+
/**
|
|
111
|
+
* Billing settings details for the contract.
|
|
112
|
+
*/
|
|
113
|
+
contract_billing_details?: BillingSettings.ContractBillingDetails;
|
|
114
|
+
}
|
|
115
|
+
interface ContractLineDetail {
|
|
116
|
+
/**
|
|
117
|
+
* The ID of the contract line.
|
|
118
|
+
*/
|
|
119
|
+
contract_line: string;
|
|
120
|
+
/**
|
|
121
|
+
* The computed value details for the contract line.
|
|
122
|
+
*/
|
|
123
|
+
contract_line_value_details: ContractLineDetail.ContractLineValueDetails;
|
|
124
|
+
/**
|
|
125
|
+
* Timestamp of when the object was created.
|
|
126
|
+
*/
|
|
127
|
+
created: string;
|
|
128
|
+
/**
|
|
129
|
+
* Timestamp to indicate when the contract line ends.
|
|
130
|
+
*/
|
|
131
|
+
ends_at: ContractLineDetail.EndsAt;
|
|
132
|
+
/**
|
|
133
|
+
* Set of key-value pairs that you can attach to an object.
|
|
134
|
+
*/
|
|
135
|
+
metadata?: Metadata;
|
|
136
|
+
/**
|
|
137
|
+
* List of overrides applied to the contract line.
|
|
138
|
+
*/
|
|
139
|
+
overrides: Array<ContractLineDetail.Override>;
|
|
140
|
+
/**
|
|
141
|
+
* The pricing configuration for the contract line.
|
|
142
|
+
*/
|
|
143
|
+
pricing: ContractLineDetail.Pricing;
|
|
144
|
+
/**
|
|
145
|
+
* Timestamp to indicate when the contract line starts.
|
|
146
|
+
*/
|
|
147
|
+
starts_at: ContractLineDetail.StartsAt;
|
|
148
|
+
}
|
|
149
|
+
interface ContractValueDetails {
|
|
150
|
+
/**
|
|
151
|
+
* The total value represented as a decimal string in minor currency units.
|
|
152
|
+
*/
|
|
153
|
+
total: string;
|
|
154
|
+
}
|
|
155
|
+
interface LicenseQuantity {
|
|
156
|
+
/**
|
|
157
|
+
* The ID of the license pricing.
|
|
158
|
+
*/
|
|
159
|
+
license_pricing_id: string;
|
|
160
|
+
/**
|
|
161
|
+
* The type of the license pricing.
|
|
162
|
+
*/
|
|
163
|
+
license_pricing_type: LicenseQuantity.LicensePricingType;
|
|
164
|
+
/**
|
|
165
|
+
* The ID of the pricing line associated with this license quantity.
|
|
166
|
+
*/
|
|
167
|
+
pricing_line: string;
|
|
168
|
+
/**
|
|
169
|
+
* The current quantity of the license.
|
|
170
|
+
*/
|
|
171
|
+
quantity: number;
|
|
172
|
+
}
|
|
173
|
+
interface OneTimeFee {
|
|
174
|
+
/**
|
|
175
|
+
* The resolved bill schedule for the fee.
|
|
176
|
+
*/
|
|
177
|
+
bill_schedule: Array<OneTimeFee.BillSchedule>;
|
|
178
|
+
/**
|
|
179
|
+
* The type of billable item that this fee references.
|
|
180
|
+
*/
|
|
181
|
+
billable_item_type: 'product';
|
|
182
|
+
/**
|
|
183
|
+
* Details for a product billable target. Set when `billable_item_type` is `product`.
|
|
184
|
+
*/
|
|
185
|
+
product_details?: OneTimeFee.ProductDetails;
|
|
186
|
+
}
|
|
187
|
+
interface PricingLine {
|
|
188
|
+
/**
|
|
189
|
+
* Resolved timestamp when the pricing line ends.
|
|
190
|
+
*/
|
|
191
|
+
ends_at: PricingLine.EndsAt;
|
|
192
|
+
/**
|
|
193
|
+
* The user-provided lookup key for the pricing line.
|
|
194
|
+
*/
|
|
195
|
+
lookup_key?: string;
|
|
196
|
+
/**
|
|
197
|
+
* Set of key-value pairs that you can attach to an object.
|
|
198
|
+
*/
|
|
199
|
+
metadata?: Metadata;
|
|
200
|
+
/**
|
|
201
|
+
* The pricing configuration for the pricing line.
|
|
202
|
+
*/
|
|
203
|
+
pricing: PricingLine.Pricing;
|
|
204
|
+
/**
|
|
205
|
+
* The ID of the pricing line.
|
|
206
|
+
*/
|
|
207
|
+
pricing_line: string;
|
|
208
|
+
/**
|
|
209
|
+
* Resolved timestamp when the pricing line starts.
|
|
210
|
+
*/
|
|
211
|
+
starts_at: PricingLine.StartsAt;
|
|
212
|
+
}
|
|
213
|
+
interface PricingOverride {
|
|
214
|
+
/**
|
|
215
|
+
* Resolved timestamp when the pricing override ends.
|
|
216
|
+
*/
|
|
217
|
+
ends_at: PricingOverride.EndsAt;
|
|
218
|
+
/**
|
|
219
|
+
* The user-provided lookup key for the pricing override.
|
|
220
|
+
*/
|
|
221
|
+
lookup_key?: string;
|
|
222
|
+
/**
|
|
223
|
+
* Details for a multiplier override.
|
|
224
|
+
*/
|
|
225
|
+
multiplier?: PricingOverride.Multiplier;
|
|
226
|
+
/**
|
|
227
|
+
* Details for an overwrite_price override.
|
|
228
|
+
*/
|
|
229
|
+
overwrite_price?: PricingOverride.OverwritePrice;
|
|
230
|
+
/**
|
|
231
|
+
* The ID of the pricing override.
|
|
232
|
+
*/
|
|
233
|
+
pricing_override: string;
|
|
234
|
+
/**
|
|
235
|
+
* The priority of this override relative to others. Lower number = higher priority.
|
|
236
|
+
*/
|
|
237
|
+
priority: number;
|
|
238
|
+
/**
|
|
239
|
+
* Resolved timestamp when the pricing override starts.
|
|
240
|
+
*/
|
|
241
|
+
starts_at: PricingOverride.StartsAt;
|
|
242
|
+
/**
|
|
243
|
+
* The type of pricing override.
|
|
244
|
+
*/
|
|
245
|
+
type: PricingOverride.Type;
|
|
246
|
+
}
|
|
247
|
+
type Status = 'active' | 'canceled' | 'draft' | 'ended';
|
|
248
|
+
interface StatusDetails {
|
|
249
|
+
/**
|
|
250
|
+
* Details of the active contract status.
|
|
251
|
+
*/
|
|
252
|
+
active?: StatusDetails.Active;
|
|
253
|
+
/**
|
|
254
|
+
* Details of the canceled contract status.
|
|
255
|
+
*/
|
|
256
|
+
canceled?: StatusDetails.Canceled;
|
|
257
|
+
}
|
|
258
|
+
namespace BillingSettings {
|
|
259
|
+
interface ContractBillingDetails {
|
|
260
|
+
/**
|
|
261
|
+
* The bill settings details.
|
|
262
|
+
*/
|
|
263
|
+
bill_settings_details?: ContractBillingDetails.BillSettingsDetails;
|
|
264
|
+
/**
|
|
265
|
+
* The billing profile details.
|
|
266
|
+
*/
|
|
267
|
+
billing_profile_details: ContractBillingDetails.BillingProfileDetails;
|
|
268
|
+
/**
|
|
269
|
+
* The collection settings details.
|
|
270
|
+
*/
|
|
271
|
+
collection_settings_details: ContractBillingDetails.CollectionSettingsDetails;
|
|
272
|
+
}
|
|
273
|
+
namespace ContractBillingDetails {
|
|
274
|
+
interface BillSettingsDetails {
|
|
275
|
+
/**
|
|
276
|
+
* Calculation settings.
|
|
277
|
+
*/
|
|
278
|
+
calculation?: BillSettingsDetails.Calculation;
|
|
279
|
+
/**
|
|
280
|
+
* Invoice settings.
|
|
281
|
+
*/
|
|
282
|
+
invoice?: BillSettingsDetails.Invoice;
|
|
283
|
+
}
|
|
284
|
+
interface BillingProfileDetails {
|
|
285
|
+
/**
|
|
286
|
+
* The customer who pays for the contract invoice.
|
|
287
|
+
*/
|
|
288
|
+
customer: string;
|
|
289
|
+
/**
|
|
290
|
+
* The default payment method for the contract.
|
|
291
|
+
*/
|
|
292
|
+
default_payment_method?: string;
|
|
293
|
+
}
|
|
294
|
+
interface CollectionSettingsDetails {
|
|
295
|
+
/**
|
|
296
|
+
* The collection method.
|
|
297
|
+
*/
|
|
298
|
+
collection_method: CollectionSettingsDetails.CollectionMethod;
|
|
299
|
+
/**
|
|
300
|
+
* The payment method configuration.
|
|
301
|
+
*/
|
|
302
|
+
payment_method_configuration?: string;
|
|
303
|
+
}
|
|
304
|
+
namespace BillSettingsDetails {
|
|
305
|
+
interface Calculation {
|
|
306
|
+
/**
|
|
307
|
+
* Tax calculation settings.
|
|
308
|
+
*/
|
|
309
|
+
tax?: Calculation.Tax;
|
|
310
|
+
}
|
|
311
|
+
interface Invoice {
|
|
312
|
+
/**
|
|
313
|
+
* The number of time units before the invoice is past due.
|
|
314
|
+
*/
|
|
315
|
+
time_until_due?: Invoice.TimeUntilDue;
|
|
316
|
+
}
|
|
317
|
+
namespace Calculation {
|
|
318
|
+
interface Tax {
|
|
319
|
+
/**
|
|
320
|
+
* The type of tax calculation.
|
|
321
|
+
*/
|
|
322
|
+
type: Tax.Type;
|
|
323
|
+
}
|
|
324
|
+
namespace Tax {
|
|
325
|
+
type Type = 'automatic' | 'manual';
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
namespace Invoice {
|
|
329
|
+
interface TimeUntilDue {
|
|
330
|
+
/**
|
|
331
|
+
* The interval unit.
|
|
332
|
+
*/
|
|
333
|
+
interval: TimeUntilDue.Interval;
|
|
334
|
+
/**
|
|
335
|
+
* The number of intervals.
|
|
336
|
+
*/
|
|
337
|
+
interval_count: number;
|
|
338
|
+
}
|
|
339
|
+
namespace TimeUntilDue {
|
|
340
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
}
|
|
344
|
+
namespace CollectionSettingsDetails {
|
|
345
|
+
type CollectionMethod = 'charge_automatically' | 'send_invoice';
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
namespace ContractLineDetail {
|
|
350
|
+
interface ContractLineValueDetails {
|
|
351
|
+
/**
|
|
352
|
+
* Computed sum of all licensed fees. Represented as a decimal string in minor currency units.
|
|
353
|
+
*/
|
|
354
|
+
total: string;
|
|
355
|
+
}
|
|
356
|
+
interface EndsAt {
|
|
357
|
+
/**
|
|
358
|
+
* The timestamp when the item ends.
|
|
359
|
+
*/
|
|
360
|
+
timestamp: string;
|
|
361
|
+
}
|
|
362
|
+
interface Override {
|
|
363
|
+
/**
|
|
364
|
+
* Timestamp to indicate when the override ends.
|
|
365
|
+
*/
|
|
366
|
+
ends_at: Override.EndsAt;
|
|
367
|
+
/**
|
|
368
|
+
* Service action override details.
|
|
369
|
+
*/
|
|
370
|
+
service_action?: Override.ServiceAction;
|
|
371
|
+
/**
|
|
372
|
+
* Timestamp to indicate when the override starts.
|
|
373
|
+
*/
|
|
374
|
+
starts_at: Override.StartsAt;
|
|
375
|
+
/**
|
|
376
|
+
* The type of the override.
|
|
377
|
+
*/
|
|
378
|
+
type: 'service_action';
|
|
379
|
+
}
|
|
380
|
+
interface Pricing {
|
|
381
|
+
}
|
|
382
|
+
interface StartsAt {
|
|
383
|
+
/**
|
|
384
|
+
* The timestamp when the item starts.
|
|
385
|
+
*/
|
|
386
|
+
timestamp: string;
|
|
387
|
+
}
|
|
388
|
+
namespace Override {
|
|
389
|
+
interface EndsAt {
|
|
390
|
+
/**
|
|
391
|
+
* The timestamp when the item ends.
|
|
392
|
+
*/
|
|
393
|
+
timestamp: string;
|
|
394
|
+
}
|
|
395
|
+
interface ServiceAction {
|
|
396
|
+
/**
|
|
397
|
+
* Parameters for adding a new service action.
|
|
398
|
+
*/
|
|
399
|
+
add?: ServiceAction.Add;
|
|
400
|
+
/**
|
|
401
|
+
* Parameters for replacing an existing service action.
|
|
402
|
+
*/
|
|
403
|
+
replace?: ServiceAction.Replace;
|
|
404
|
+
/**
|
|
405
|
+
* The type of service action override.
|
|
406
|
+
*/
|
|
407
|
+
type: ServiceAction.Type;
|
|
408
|
+
}
|
|
409
|
+
interface StartsAt {
|
|
410
|
+
/**
|
|
411
|
+
* The timestamp when the item starts.
|
|
412
|
+
*/
|
|
413
|
+
timestamp: string;
|
|
414
|
+
}
|
|
415
|
+
namespace ServiceAction {
|
|
416
|
+
interface Add {
|
|
417
|
+
/**
|
|
418
|
+
* Details for the credit grant. Required if `type` is `credit_grant`.
|
|
419
|
+
*/
|
|
420
|
+
credit_grant?: Add.CreditGrant;
|
|
421
|
+
/**
|
|
422
|
+
* The interval for assessing service.
|
|
423
|
+
*/
|
|
424
|
+
service_interval: Add.ServiceInterval;
|
|
425
|
+
/**
|
|
426
|
+
* The length of the interval for assessing service.
|
|
427
|
+
*/
|
|
428
|
+
service_interval_count: number;
|
|
429
|
+
/**
|
|
430
|
+
* The type of the service action.
|
|
431
|
+
*/
|
|
432
|
+
type: 'credit_grant';
|
|
433
|
+
}
|
|
434
|
+
interface Replace {
|
|
435
|
+
/**
|
|
436
|
+
* Details for the credit grant. Required if `type` is `credit_grant`.
|
|
437
|
+
*/
|
|
438
|
+
credit_grant?: Replace.CreditGrant;
|
|
439
|
+
/**
|
|
440
|
+
* The ID of the service action to replace.
|
|
441
|
+
*/
|
|
442
|
+
id?: string;
|
|
443
|
+
/**
|
|
444
|
+
* The lookup key for the service action to replace.
|
|
445
|
+
*/
|
|
446
|
+
lookup_key?: string;
|
|
447
|
+
/**
|
|
448
|
+
* The interval for assessing service.
|
|
449
|
+
*/
|
|
450
|
+
service_interval: Replace.ServiceInterval;
|
|
451
|
+
/**
|
|
452
|
+
* The length of the interval for assessing service.
|
|
453
|
+
*/
|
|
454
|
+
service_interval_count: number;
|
|
455
|
+
/**
|
|
456
|
+
* The type of the service action.
|
|
457
|
+
*/
|
|
458
|
+
type: 'credit_grant';
|
|
459
|
+
}
|
|
460
|
+
type Type = 'add' | 'replace';
|
|
461
|
+
namespace Add {
|
|
462
|
+
interface CreditGrant {
|
|
463
|
+
/**
|
|
464
|
+
* The amount of the credit grant.
|
|
465
|
+
*/
|
|
466
|
+
amount: CreditGrant.Amount;
|
|
467
|
+
/**
|
|
468
|
+
* Defines the scope where the credit grant is applicable.
|
|
469
|
+
*/
|
|
470
|
+
applicability_config: CreditGrant.ApplicabilityConfig;
|
|
471
|
+
/**
|
|
472
|
+
* The category of the credit grant.
|
|
473
|
+
*/
|
|
474
|
+
category?: CreditGrant.Category;
|
|
475
|
+
/**
|
|
476
|
+
* The expiry configuration for the credit grant.
|
|
477
|
+
*/
|
|
478
|
+
expiry_config: CreditGrant.ExpiryConfig;
|
|
479
|
+
/**
|
|
480
|
+
* A descriptive name.
|
|
481
|
+
*/
|
|
482
|
+
name: string;
|
|
483
|
+
/**
|
|
484
|
+
* The desired priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
|
|
485
|
+
*/
|
|
486
|
+
priority?: number;
|
|
487
|
+
}
|
|
488
|
+
type ServiceInterval = 'day' | 'month' | 'week' | 'year';
|
|
489
|
+
namespace CreditGrant {
|
|
490
|
+
interface Amount {
|
|
491
|
+
/**
|
|
492
|
+
* The monetary amount of the credit grant. Required if `type` is `monetary`.
|
|
493
|
+
*/
|
|
494
|
+
monetary?: V2Amount;
|
|
495
|
+
/**
|
|
496
|
+
* The type of the credit grant amount.
|
|
497
|
+
*/
|
|
498
|
+
type: 'monetary';
|
|
499
|
+
}
|
|
500
|
+
interface ApplicabilityConfig {
|
|
501
|
+
/**
|
|
502
|
+
* The applicability scope of the credit grant.
|
|
503
|
+
*/
|
|
504
|
+
scope: ApplicabilityConfig.Scope;
|
|
505
|
+
}
|
|
506
|
+
type Category = 'paid' | 'promotional';
|
|
507
|
+
interface ExpiryConfig {
|
|
508
|
+
/**
|
|
509
|
+
* The type of the expiry configuration.
|
|
510
|
+
*/
|
|
511
|
+
type: 'end_of_service_period';
|
|
512
|
+
}
|
|
513
|
+
namespace ApplicabilityConfig {
|
|
514
|
+
interface Scope {
|
|
515
|
+
/**
|
|
516
|
+
* The billable items to apply the credit grant to.
|
|
517
|
+
*/
|
|
518
|
+
billable_items?: Array<string>;
|
|
519
|
+
/**
|
|
520
|
+
* The price type that credit grants can apply to.
|
|
521
|
+
*/
|
|
522
|
+
price_type?: 'metered';
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
namespace Replace {
|
|
528
|
+
interface CreditGrant {
|
|
529
|
+
/**
|
|
530
|
+
* The amount of the credit grant.
|
|
531
|
+
*/
|
|
532
|
+
amount: CreditGrant.Amount;
|
|
533
|
+
/**
|
|
534
|
+
* Defines the scope where the credit grant is applicable.
|
|
535
|
+
*/
|
|
536
|
+
applicability_config: CreditGrant.ApplicabilityConfig;
|
|
537
|
+
/**
|
|
538
|
+
* The category of the credit grant.
|
|
539
|
+
*/
|
|
540
|
+
category?: CreditGrant.Category;
|
|
541
|
+
/**
|
|
542
|
+
* The expiry configuration for the credit grant.
|
|
543
|
+
*/
|
|
544
|
+
expiry_config: CreditGrant.ExpiryConfig;
|
|
545
|
+
/**
|
|
546
|
+
* A descriptive name.
|
|
547
|
+
*/
|
|
548
|
+
name: string;
|
|
549
|
+
/**
|
|
550
|
+
* The desired priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
|
|
551
|
+
*/
|
|
552
|
+
priority?: number;
|
|
553
|
+
}
|
|
554
|
+
type ServiceInterval = 'day' | 'month' | 'week' | 'year';
|
|
555
|
+
namespace CreditGrant {
|
|
556
|
+
interface Amount {
|
|
557
|
+
/**
|
|
558
|
+
* The monetary amount of the credit grant. Required if `type` is `monetary`.
|
|
559
|
+
*/
|
|
560
|
+
monetary?: V2Amount;
|
|
561
|
+
/**
|
|
562
|
+
* The type of the credit grant amount.
|
|
563
|
+
*/
|
|
564
|
+
type: 'monetary';
|
|
565
|
+
}
|
|
566
|
+
interface ApplicabilityConfig {
|
|
567
|
+
/**
|
|
568
|
+
* The applicability scope of the credit grant.
|
|
569
|
+
*/
|
|
570
|
+
scope: ApplicabilityConfig.Scope;
|
|
571
|
+
}
|
|
572
|
+
type Category = 'paid' | 'promotional';
|
|
573
|
+
interface ExpiryConfig {
|
|
574
|
+
/**
|
|
575
|
+
* The type of the expiry configuration.
|
|
576
|
+
*/
|
|
577
|
+
type: 'end_of_service_period';
|
|
578
|
+
}
|
|
579
|
+
namespace ApplicabilityConfig {
|
|
580
|
+
interface Scope {
|
|
581
|
+
/**
|
|
582
|
+
* The billable items to apply the credit grant to.
|
|
583
|
+
*/
|
|
584
|
+
billable_items?: Array<string>;
|
|
585
|
+
/**
|
|
586
|
+
* The price type that credit grants can apply to.
|
|
587
|
+
*/
|
|
588
|
+
price_type?: 'metered';
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
namespace LicenseQuantity {
|
|
597
|
+
type LicensePricingType = 'license_fee' | 'price';
|
|
598
|
+
}
|
|
599
|
+
namespace OneTimeFee {
|
|
600
|
+
interface BillSchedule {
|
|
601
|
+
/**
|
|
602
|
+
* When this entry will be billed.
|
|
603
|
+
*/
|
|
604
|
+
bill_at: BillSchedule.BillAt;
|
|
605
|
+
/**
|
|
606
|
+
* The amount to bill for this entry, in the smallest currency unit.
|
|
607
|
+
*/
|
|
608
|
+
value: bigint;
|
|
609
|
+
}
|
|
610
|
+
interface ProductDetails {
|
|
611
|
+
/**
|
|
612
|
+
* The ID of the v1 Product.
|
|
613
|
+
*/
|
|
614
|
+
product: string;
|
|
615
|
+
}
|
|
616
|
+
namespace BillSchedule {
|
|
617
|
+
interface BillAt {
|
|
618
|
+
/**
|
|
619
|
+
* The datetime at which the entry will be billed. Set when `type` is `datetime`.
|
|
620
|
+
*/
|
|
621
|
+
timestamp?: string;
|
|
622
|
+
/**
|
|
623
|
+
* The type of the bill_at.
|
|
624
|
+
*/
|
|
625
|
+
type: BillAt.Type;
|
|
626
|
+
}
|
|
627
|
+
namespace BillAt {
|
|
628
|
+
type Type = 'contract_start' | 'datetime';
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
namespace PricingLine {
|
|
633
|
+
interface EndsAt {
|
|
634
|
+
/**
|
|
635
|
+
* The timestamp when the item ends.
|
|
636
|
+
*/
|
|
637
|
+
timestamp: string;
|
|
638
|
+
}
|
|
639
|
+
interface Pricing {
|
|
640
|
+
/**
|
|
641
|
+
* V1 price details. Present when `type` is `price`.
|
|
642
|
+
*/
|
|
643
|
+
price_details?: Pricing.PriceDetails;
|
|
644
|
+
/**
|
|
645
|
+
* The type of pricing.
|
|
646
|
+
*/
|
|
647
|
+
type: 'price';
|
|
648
|
+
}
|
|
649
|
+
interface StartsAt {
|
|
650
|
+
/**
|
|
651
|
+
* The timestamp when the item starts.
|
|
652
|
+
*/
|
|
653
|
+
timestamp: string;
|
|
654
|
+
}
|
|
655
|
+
namespace Pricing {
|
|
656
|
+
interface PriceDetails {
|
|
657
|
+
/**
|
|
658
|
+
* The ID of the V1 price.
|
|
659
|
+
*/
|
|
660
|
+
price: string;
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
namespace PricingOverride {
|
|
665
|
+
interface EndsAt {
|
|
666
|
+
/**
|
|
667
|
+
* The timestamp when the item ends.
|
|
668
|
+
*/
|
|
669
|
+
timestamp: string;
|
|
670
|
+
}
|
|
671
|
+
interface Multiplier {
|
|
672
|
+
/**
|
|
673
|
+
* Criteria determining which rates the multiplier applies to.
|
|
674
|
+
*/
|
|
675
|
+
criteria: Array<Multiplier.Criterion>;
|
|
676
|
+
/**
|
|
677
|
+
* The multiplier factor, represented as a decimal string. e.g. "0.8" for a 20% reduction.
|
|
678
|
+
*/
|
|
679
|
+
factor: string;
|
|
680
|
+
}
|
|
681
|
+
interface OverwritePrice {
|
|
682
|
+
/**
|
|
683
|
+
* The ID of the V1 price to overwrite.
|
|
684
|
+
*/
|
|
685
|
+
price: string;
|
|
686
|
+
/**
|
|
687
|
+
* Defines whether the tiered price should be graduated or volume-based.
|
|
688
|
+
*/
|
|
689
|
+
tiering_mode?: OverwritePrice.TieringMode;
|
|
690
|
+
/**
|
|
691
|
+
* Each element represents a pricing tier.
|
|
692
|
+
*/
|
|
693
|
+
tiers: Array<OverwritePrice.Tier>;
|
|
694
|
+
/**
|
|
695
|
+
* The per-unit amount to be charged, represented as a decimal string in minor currency units.
|
|
696
|
+
*/
|
|
697
|
+
unit_amount?: string;
|
|
698
|
+
}
|
|
699
|
+
interface StartsAt {
|
|
700
|
+
/**
|
|
701
|
+
* The timestamp when the item starts.
|
|
702
|
+
*/
|
|
703
|
+
timestamp: string;
|
|
704
|
+
}
|
|
705
|
+
type Type = 'multiplier' | 'overwrite_price';
|
|
706
|
+
namespace Multiplier {
|
|
707
|
+
interface Criterion {
|
|
708
|
+
/**
|
|
709
|
+
* Filter by billable item IDs.
|
|
710
|
+
*/
|
|
711
|
+
billable_item_ids: Array<string>;
|
|
712
|
+
/**
|
|
713
|
+
* Filter by billable item lookup keys.
|
|
714
|
+
*/
|
|
715
|
+
billable_item_lookup_keys: Array<string>;
|
|
716
|
+
/**
|
|
717
|
+
* Filter by billable item type.
|
|
718
|
+
*/
|
|
719
|
+
billable_item_types: Array<Criterion.BillableItemType>;
|
|
720
|
+
/**
|
|
721
|
+
* Filter by metadata conditions.
|
|
722
|
+
*/
|
|
723
|
+
metadata_conditions: Array<Criterion.MetadataCondition>;
|
|
724
|
+
/**
|
|
725
|
+
* Filter by rate card IDs. Only applicable for `multiplier` overrides.
|
|
726
|
+
*/
|
|
727
|
+
rate_card_ids: Array<string>;
|
|
728
|
+
/**
|
|
729
|
+
* Whether to include or exclude items matching these criteria.
|
|
730
|
+
*/
|
|
731
|
+
type: Criterion.Type;
|
|
732
|
+
}
|
|
733
|
+
namespace Criterion {
|
|
734
|
+
type BillableItemType = 'licensed' | 'metered';
|
|
735
|
+
interface MetadataCondition {
|
|
736
|
+
/**
|
|
737
|
+
* All of these key-value conditions must match.
|
|
738
|
+
*/
|
|
739
|
+
all_of: Array<MetadataCondition.AllOf>;
|
|
740
|
+
}
|
|
741
|
+
type Type = 'exclude' | 'include';
|
|
742
|
+
namespace MetadataCondition {
|
|
743
|
+
interface AllOf {
|
|
744
|
+
/**
|
|
745
|
+
* The metadata key.
|
|
746
|
+
*/
|
|
747
|
+
key: string;
|
|
748
|
+
/**
|
|
749
|
+
* The metadata value.
|
|
750
|
+
*/
|
|
751
|
+
value: string;
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
namespace OverwritePrice {
|
|
757
|
+
type TieringMode = 'graduated' | 'volume';
|
|
758
|
+
interface Tier {
|
|
759
|
+
/**
|
|
760
|
+
* Price for the entire tier, represented as a decimal string in minor currency units.
|
|
761
|
+
*/
|
|
762
|
+
flat_amount?: string;
|
|
763
|
+
/**
|
|
764
|
+
* Per-unit price for units included in this tier, represented as a decimal string in minor currency units.
|
|
765
|
+
*/
|
|
766
|
+
unit_amount?: string;
|
|
767
|
+
/**
|
|
768
|
+
* Up to and including this quantity will be contained in the tier.
|
|
769
|
+
*/
|
|
770
|
+
up_to_decimal?: Decimal;
|
|
771
|
+
/**
|
|
772
|
+
* No upper bound to this tier.
|
|
773
|
+
*/
|
|
774
|
+
up_to_inf?: 'inf';
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
}
|
|
778
|
+
namespace StatusDetails {
|
|
779
|
+
interface Active {
|
|
780
|
+
/**
|
|
781
|
+
* The timestamp when the contract was activated.
|
|
782
|
+
*/
|
|
783
|
+
activated_at: string;
|
|
784
|
+
}
|
|
785
|
+
interface Canceled {
|
|
786
|
+
/**
|
|
787
|
+
* The timestamp when the contract was canceled.
|
|
788
|
+
*/
|
|
789
|
+
canceled_at: string;
|
|
790
|
+
}
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
export declare namespace V2 {
|
|
796
|
+
namespace Billing {
|
|
797
|
+
interface ContractCreateParams {
|
|
798
|
+
/**
|
|
799
|
+
* A list of contract lines to create with the contract.
|
|
800
|
+
*/
|
|
801
|
+
contract_lines: Array<ContractCreateParams.ContractLine>;
|
|
802
|
+
/**
|
|
803
|
+
* A unique user-provided contract number e.g. C-2026-0001.
|
|
804
|
+
*/
|
|
805
|
+
contract_number: string;
|
|
806
|
+
/**
|
|
807
|
+
* Currency of the contract.
|
|
808
|
+
*/
|
|
809
|
+
currency: string;
|
|
810
|
+
/**
|
|
811
|
+
* A list of license quantity actions to create with the contract.
|
|
812
|
+
*/
|
|
813
|
+
license_quantity_actions: Array<ContractCreateParams.LicenseQuantityAction>;
|
|
814
|
+
/**
|
|
815
|
+
* A list of pricing lines to create with the contract.
|
|
816
|
+
*/
|
|
817
|
+
pricing_lines: Array<ContractCreateParams.PricingLine>;
|
|
818
|
+
/**
|
|
819
|
+
* A list of pricing overrides to create with the contract.
|
|
820
|
+
*/
|
|
821
|
+
pricing_overrides: Array<ContractCreateParams.PricingOverride>;
|
|
822
|
+
/**
|
|
823
|
+
* The billing settings for the contract.
|
|
824
|
+
*/
|
|
825
|
+
billing_settings?: ContractCreateParams.BillingSettings;
|
|
826
|
+
/**
|
|
827
|
+
* Additional fields to include in the response.
|
|
828
|
+
*/
|
|
829
|
+
include?: Array<ContractCreateParams.Include>;
|
|
830
|
+
/**
|
|
831
|
+
* Set of key-value pairs that you can attach to an object.
|
|
832
|
+
*/
|
|
833
|
+
metadata?: MetadataParam;
|
|
834
|
+
/**
|
|
835
|
+
* A list of one-time fees to create with the contract. Each fee is billed as individual invoice items per its bill_schedule.
|
|
836
|
+
*/
|
|
837
|
+
one_time_fees?: Array<ContractCreateParams.OneTimeFee>;
|
|
838
|
+
}
|
|
839
|
+
namespace ContractCreateParams {
|
|
840
|
+
interface ContractLine {
|
|
841
|
+
/**
|
|
842
|
+
* Timestamp to indicate when the contract line ends.
|
|
843
|
+
*/
|
|
844
|
+
ends_at: ContractLine.EndsAt;
|
|
845
|
+
/**
|
|
846
|
+
* Set of key-value pairs that you can attach to an object.
|
|
847
|
+
*/
|
|
848
|
+
metadata?: MetadataParam;
|
|
849
|
+
/**
|
|
850
|
+
* List of overrides. Later overrides in the list override earlier ones.
|
|
851
|
+
*/
|
|
852
|
+
overrides: Array<ContractLine.Override>;
|
|
853
|
+
/**
|
|
854
|
+
* The pricing configuration for the contract line.
|
|
855
|
+
*/
|
|
856
|
+
pricing: ContractLine.Pricing;
|
|
857
|
+
/**
|
|
858
|
+
* Timestamp to indicate when the contract line starts.
|
|
859
|
+
*/
|
|
860
|
+
starts_at: ContractLine.StartsAt;
|
|
861
|
+
}
|
|
862
|
+
interface LicenseQuantityAction {
|
|
863
|
+
/**
|
|
864
|
+
* The effective at for the license quantity action.
|
|
865
|
+
*/
|
|
866
|
+
effective_at: LicenseQuantityAction.EffectiveAt;
|
|
867
|
+
/**
|
|
868
|
+
* The ID of the license pricing.
|
|
869
|
+
*/
|
|
870
|
+
license_pricing_id?: string;
|
|
871
|
+
/**
|
|
872
|
+
* The lookup key for the license pricing.
|
|
873
|
+
*/
|
|
874
|
+
license_pricing_lookup_key?: string;
|
|
875
|
+
/**
|
|
876
|
+
* The type of the license pricing.
|
|
877
|
+
*/
|
|
878
|
+
license_pricing_type: LicenseQuantityAction.LicensePricingType;
|
|
879
|
+
/**
|
|
880
|
+
* The pricing line for the license quantity action.
|
|
881
|
+
*/
|
|
882
|
+
pricing_line?: string;
|
|
883
|
+
/**
|
|
884
|
+
* The set quantity for the license quantity action.
|
|
885
|
+
*/
|
|
886
|
+
set?: LicenseQuantityAction.Set;
|
|
887
|
+
/**
|
|
888
|
+
* The type of the license quantity action.
|
|
889
|
+
*/
|
|
890
|
+
type: 'set';
|
|
891
|
+
}
|
|
892
|
+
interface PricingLine {
|
|
893
|
+
/**
|
|
894
|
+
* When the pricing line ends.
|
|
895
|
+
*/
|
|
896
|
+
ends_at: PricingLine.EndsAt;
|
|
897
|
+
/**
|
|
898
|
+
* A user-provided lookup key to reference this pricing line.
|
|
899
|
+
*/
|
|
900
|
+
lookup_key?: string;
|
|
901
|
+
/**
|
|
902
|
+
* Set of key-value pairs that you can attach to an object.
|
|
903
|
+
*/
|
|
904
|
+
metadata?: MetadataParam;
|
|
905
|
+
/**
|
|
906
|
+
* The pricing configuration for the pricing line.
|
|
907
|
+
*/
|
|
908
|
+
pricing: PricingLine.Pricing;
|
|
909
|
+
/**
|
|
910
|
+
* When the pricing line starts.
|
|
911
|
+
*/
|
|
912
|
+
starts_at: PricingLine.StartsAt;
|
|
913
|
+
}
|
|
914
|
+
interface PricingOverride {
|
|
915
|
+
/**
|
|
916
|
+
* When the pricing override ends.
|
|
917
|
+
*/
|
|
918
|
+
ends_at: PricingOverride.EndsAt;
|
|
919
|
+
/**
|
|
920
|
+
* A user-provided lookup key to reference this pricing override.
|
|
921
|
+
*/
|
|
922
|
+
lookup_key?: string;
|
|
923
|
+
/**
|
|
924
|
+
* Parameters for a multiplier override. Required if `type` is `multiplier`.
|
|
925
|
+
*/
|
|
926
|
+
multiplier?: PricingOverride.Multiplier;
|
|
927
|
+
/**
|
|
928
|
+
* Parameters for an overwrite_price override. Required if `type` is `overwrite_price`.
|
|
929
|
+
*/
|
|
930
|
+
overwrite_price?: PricingOverride.OverwritePrice;
|
|
931
|
+
/**
|
|
932
|
+
* The priority of this override relative to others. Lower number = higher priority.
|
|
933
|
+
*/
|
|
934
|
+
priority: number;
|
|
935
|
+
/**
|
|
936
|
+
* When the pricing override starts.
|
|
937
|
+
*/
|
|
938
|
+
starts_at: PricingOverride.StartsAt;
|
|
939
|
+
/**
|
|
940
|
+
* The type of pricing override.
|
|
941
|
+
*/
|
|
942
|
+
type: PricingOverride.Type;
|
|
943
|
+
}
|
|
944
|
+
interface BillingSettings {
|
|
945
|
+
/**
|
|
946
|
+
* Billing settings details for the contract.
|
|
947
|
+
*/
|
|
948
|
+
contract_billing_details?: BillingSettings.ContractBillingDetails;
|
|
949
|
+
}
|
|
950
|
+
type Include = 'contract_line_details' | 'license_quantities' | 'one_time_fees' | 'pricing_lines' | 'pricing_overrides';
|
|
951
|
+
interface OneTimeFee {
|
|
952
|
+
/**
|
|
953
|
+
* The bill schedule for the fee. Each entry produces an individual invoice item billed at `bill_at`.
|
|
954
|
+
*/
|
|
955
|
+
bill_schedule: Array<OneTimeFee.BillSchedule>;
|
|
956
|
+
/**
|
|
957
|
+
* The type of billable item that this fee references.
|
|
958
|
+
*/
|
|
959
|
+
billable_item_type: 'product';
|
|
960
|
+
/**
|
|
961
|
+
* Details for a product billable target. Required when `billable_item_type` is `product`.
|
|
962
|
+
*/
|
|
963
|
+
product_details?: OneTimeFee.ProductDetails;
|
|
964
|
+
}
|
|
965
|
+
namespace BillingSettings {
|
|
966
|
+
interface ContractBillingDetails {
|
|
967
|
+
/**
|
|
968
|
+
* The bill settings details.
|
|
969
|
+
*/
|
|
970
|
+
bill_settings_details?: ContractBillingDetails.BillSettingsDetails;
|
|
971
|
+
/**
|
|
972
|
+
* The billing profile details.
|
|
973
|
+
*/
|
|
974
|
+
billing_profile_details: ContractBillingDetails.BillingProfileDetails;
|
|
975
|
+
/**
|
|
976
|
+
* The collection settings details.
|
|
977
|
+
*/
|
|
978
|
+
collection_settings_details: ContractBillingDetails.CollectionSettingsDetails;
|
|
979
|
+
}
|
|
980
|
+
namespace ContractBillingDetails {
|
|
981
|
+
interface BillSettingsDetails {
|
|
982
|
+
/**
|
|
983
|
+
* Calculation settings.
|
|
984
|
+
*/
|
|
985
|
+
calculation?: BillSettingsDetails.Calculation;
|
|
986
|
+
/**
|
|
987
|
+
* Invoice settings.
|
|
988
|
+
*/
|
|
989
|
+
invoice?: BillSettingsDetails.Invoice;
|
|
990
|
+
}
|
|
991
|
+
interface BillingProfileDetails {
|
|
992
|
+
/**
|
|
993
|
+
* The customer who pays for the contract invoice.
|
|
994
|
+
*/
|
|
995
|
+
customer: string;
|
|
996
|
+
/**
|
|
997
|
+
* The default payment method for the contract.
|
|
998
|
+
*/
|
|
999
|
+
default_payment_method?: string;
|
|
1000
|
+
}
|
|
1001
|
+
interface CollectionSettingsDetails {
|
|
1002
|
+
/**
|
|
1003
|
+
* The collection method.
|
|
1004
|
+
*/
|
|
1005
|
+
collection_method: CollectionSettingsDetails.CollectionMethod;
|
|
1006
|
+
/**
|
|
1007
|
+
* The payment method configuration.
|
|
1008
|
+
*/
|
|
1009
|
+
payment_method_configuration?: string;
|
|
1010
|
+
}
|
|
1011
|
+
namespace BillSettingsDetails {
|
|
1012
|
+
interface Calculation {
|
|
1013
|
+
/**
|
|
1014
|
+
* Tax calculation settings.
|
|
1015
|
+
*/
|
|
1016
|
+
tax?: Calculation.Tax;
|
|
1017
|
+
}
|
|
1018
|
+
interface Invoice {
|
|
1019
|
+
/**
|
|
1020
|
+
* The number of time units before the invoice is past due.
|
|
1021
|
+
*/
|
|
1022
|
+
time_until_due?: Invoice.TimeUntilDue;
|
|
1023
|
+
}
|
|
1024
|
+
namespace Calculation {
|
|
1025
|
+
interface Tax {
|
|
1026
|
+
/**
|
|
1027
|
+
* The type of tax calculation.
|
|
1028
|
+
*/
|
|
1029
|
+
type: Tax.Type;
|
|
1030
|
+
}
|
|
1031
|
+
namespace Tax {
|
|
1032
|
+
type Type = 'automatic' | 'manual';
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
namespace Invoice {
|
|
1036
|
+
interface TimeUntilDue {
|
|
1037
|
+
/**
|
|
1038
|
+
* The interval unit.
|
|
1039
|
+
*/
|
|
1040
|
+
interval: TimeUntilDue.Interval;
|
|
1041
|
+
/**
|
|
1042
|
+
* The number of intervals.
|
|
1043
|
+
*/
|
|
1044
|
+
interval_count: number;
|
|
1045
|
+
}
|
|
1046
|
+
namespace TimeUntilDue {
|
|
1047
|
+
type Interval = 'day' | 'month' | 'week' | 'year';
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
}
|
|
1051
|
+
namespace CollectionSettingsDetails {
|
|
1052
|
+
type CollectionMethod = 'charge_automatically' | 'send_invoice';
|
|
1053
|
+
}
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
namespace ContractLine {
|
|
1057
|
+
interface EndsAt {
|
|
1058
|
+
/**
|
|
1059
|
+
* The timestamp when the item ends.
|
|
1060
|
+
*/
|
|
1061
|
+
timestamp: string;
|
|
1062
|
+
}
|
|
1063
|
+
interface Override {
|
|
1064
|
+
/**
|
|
1065
|
+
* Timestamp to indicate when the override ends.
|
|
1066
|
+
*/
|
|
1067
|
+
ends_at: Override.EndsAt;
|
|
1068
|
+
/**
|
|
1069
|
+
* Service action override parameters. Required if `type` is `service_action`.
|
|
1070
|
+
*/
|
|
1071
|
+
service_action?: Override.ServiceAction;
|
|
1072
|
+
/**
|
|
1073
|
+
* Timestamp to indicate when the override starts.
|
|
1074
|
+
*/
|
|
1075
|
+
starts_at: Override.StartsAt;
|
|
1076
|
+
/**
|
|
1077
|
+
* The type of the override.
|
|
1078
|
+
*/
|
|
1079
|
+
type: 'service_action';
|
|
1080
|
+
}
|
|
1081
|
+
interface Pricing {
|
|
1082
|
+
}
|
|
1083
|
+
interface StartsAt {
|
|
1084
|
+
/**
|
|
1085
|
+
* The timestamp when the item starts.
|
|
1086
|
+
*/
|
|
1087
|
+
timestamp: string;
|
|
1088
|
+
}
|
|
1089
|
+
namespace Override {
|
|
1090
|
+
interface EndsAt {
|
|
1091
|
+
/**
|
|
1092
|
+
* The timestamp when the item ends.
|
|
1093
|
+
*/
|
|
1094
|
+
timestamp: string;
|
|
1095
|
+
}
|
|
1096
|
+
interface ServiceAction {
|
|
1097
|
+
/**
|
|
1098
|
+
* Parameters for adding a new service action.
|
|
1099
|
+
*/
|
|
1100
|
+
add?: ServiceAction.Add;
|
|
1101
|
+
/**
|
|
1102
|
+
* Parameters for replacing an existing service action.
|
|
1103
|
+
*/
|
|
1104
|
+
replace?: ServiceAction.Replace;
|
|
1105
|
+
/**
|
|
1106
|
+
* The type of service action override.
|
|
1107
|
+
*/
|
|
1108
|
+
type: ServiceAction.Type;
|
|
1109
|
+
}
|
|
1110
|
+
interface StartsAt {
|
|
1111
|
+
/**
|
|
1112
|
+
* The timestamp when the item starts.
|
|
1113
|
+
*/
|
|
1114
|
+
timestamp: string;
|
|
1115
|
+
}
|
|
1116
|
+
namespace ServiceAction {
|
|
1117
|
+
interface Add {
|
|
1118
|
+
/**
|
|
1119
|
+
* Details for the credit grant. Required if `type` is `credit_grant`.
|
|
1120
|
+
*/
|
|
1121
|
+
credit_grant?: Add.CreditGrant;
|
|
1122
|
+
/**
|
|
1123
|
+
* The interval for assessing service.
|
|
1124
|
+
*/
|
|
1125
|
+
service_interval: Add.ServiceInterval;
|
|
1126
|
+
/**
|
|
1127
|
+
* The length of the interval for assessing service.
|
|
1128
|
+
*/
|
|
1129
|
+
service_interval_count: number;
|
|
1130
|
+
/**
|
|
1131
|
+
* The type of the service action.
|
|
1132
|
+
*/
|
|
1133
|
+
type: 'credit_grant';
|
|
1134
|
+
}
|
|
1135
|
+
interface Replace {
|
|
1136
|
+
/**
|
|
1137
|
+
* Details for the credit grant. Required if `type` is `credit_grant`.
|
|
1138
|
+
*/
|
|
1139
|
+
credit_grant?: Replace.CreditGrant;
|
|
1140
|
+
/**
|
|
1141
|
+
* The ID of the service action to replace.
|
|
1142
|
+
*/
|
|
1143
|
+
id?: string;
|
|
1144
|
+
/**
|
|
1145
|
+
* The lookup key for the service action to replace.
|
|
1146
|
+
*/
|
|
1147
|
+
lookup_key?: string;
|
|
1148
|
+
/**
|
|
1149
|
+
* The interval for assessing service.
|
|
1150
|
+
*/
|
|
1151
|
+
service_interval: Replace.ServiceInterval;
|
|
1152
|
+
/**
|
|
1153
|
+
* The length of the interval for assessing service.
|
|
1154
|
+
*/
|
|
1155
|
+
service_interval_count: number;
|
|
1156
|
+
/**
|
|
1157
|
+
* The type of the service action.
|
|
1158
|
+
*/
|
|
1159
|
+
type: 'credit_grant';
|
|
1160
|
+
}
|
|
1161
|
+
type Type = 'add' | 'replace';
|
|
1162
|
+
namespace Add {
|
|
1163
|
+
interface CreditGrant {
|
|
1164
|
+
/**
|
|
1165
|
+
* The amount of the credit grant.
|
|
1166
|
+
*/
|
|
1167
|
+
amount: CreditGrant.Amount;
|
|
1168
|
+
/**
|
|
1169
|
+
* Defines the scope where the credit grant is applicable.
|
|
1170
|
+
*/
|
|
1171
|
+
applicability_config: CreditGrant.ApplicabilityConfig;
|
|
1172
|
+
/**
|
|
1173
|
+
* The category of the credit grant.
|
|
1174
|
+
*/
|
|
1175
|
+
category?: CreditGrant.Category;
|
|
1176
|
+
/**
|
|
1177
|
+
* The expiry configuration for the credit grant.
|
|
1178
|
+
*/
|
|
1179
|
+
expiry_config: CreditGrant.ExpiryConfig;
|
|
1180
|
+
/**
|
|
1181
|
+
* A descriptive name.
|
|
1182
|
+
*/
|
|
1183
|
+
name: string;
|
|
1184
|
+
/**
|
|
1185
|
+
* The desired priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
|
|
1186
|
+
*/
|
|
1187
|
+
priority?: number;
|
|
1188
|
+
}
|
|
1189
|
+
type ServiceInterval = 'day' | 'month' | 'week' | 'year';
|
|
1190
|
+
namespace CreditGrant {
|
|
1191
|
+
interface Amount {
|
|
1192
|
+
/**
|
|
1193
|
+
* The monetary amount of the credit grant. Required if `type` is `monetary`.
|
|
1194
|
+
*/
|
|
1195
|
+
monetary?: V2Amount;
|
|
1196
|
+
/**
|
|
1197
|
+
* The type of the credit grant amount.
|
|
1198
|
+
*/
|
|
1199
|
+
type: 'monetary';
|
|
1200
|
+
}
|
|
1201
|
+
interface ApplicabilityConfig {
|
|
1202
|
+
/**
|
|
1203
|
+
* The applicability scope of the credit grant.
|
|
1204
|
+
*/
|
|
1205
|
+
scope: ApplicabilityConfig.Scope;
|
|
1206
|
+
}
|
|
1207
|
+
type Category = 'paid' | 'promotional';
|
|
1208
|
+
interface ExpiryConfig {
|
|
1209
|
+
/**
|
|
1210
|
+
* The type of the expiry configuration.
|
|
1211
|
+
*/
|
|
1212
|
+
type: 'end_of_service_period';
|
|
1213
|
+
}
|
|
1214
|
+
namespace ApplicabilityConfig {
|
|
1215
|
+
interface Scope {
|
|
1216
|
+
/**
|
|
1217
|
+
* The billable items to apply the credit grant to.
|
|
1218
|
+
*/
|
|
1219
|
+
billable_items?: Array<string>;
|
|
1220
|
+
/**
|
|
1221
|
+
* The price type that credit grants can apply to.
|
|
1222
|
+
*/
|
|
1223
|
+
price_type?: 'metered';
|
|
1224
|
+
}
|
|
1225
|
+
}
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
namespace Replace {
|
|
1229
|
+
interface CreditGrant {
|
|
1230
|
+
/**
|
|
1231
|
+
* The amount of the credit grant.
|
|
1232
|
+
*/
|
|
1233
|
+
amount: CreditGrant.Amount;
|
|
1234
|
+
/**
|
|
1235
|
+
* Defines the scope where the credit grant is applicable.
|
|
1236
|
+
*/
|
|
1237
|
+
applicability_config: CreditGrant.ApplicabilityConfig;
|
|
1238
|
+
/**
|
|
1239
|
+
* The category of the credit grant.
|
|
1240
|
+
*/
|
|
1241
|
+
category?: CreditGrant.Category;
|
|
1242
|
+
/**
|
|
1243
|
+
* The expiry configuration for the credit grant.
|
|
1244
|
+
*/
|
|
1245
|
+
expiry_config: CreditGrant.ExpiryConfig;
|
|
1246
|
+
/**
|
|
1247
|
+
* A descriptive name.
|
|
1248
|
+
*/
|
|
1249
|
+
name: string;
|
|
1250
|
+
/**
|
|
1251
|
+
* The desired priority for applying this credit grant. The highest priority is 0 and the lowest is 100.
|
|
1252
|
+
*/
|
|
1253
|
+
priority?: number;
|
|
1254
|
+
}
|
|
1255
|
+
type ServiceInterval = 'day' | 'month' | 'week' | 'year';
|
|
1256
|
+
namespace CreditGrant {
|
|
1257
|
+
interface Amount {
|
|
1258
|
+
/**
|
|
1259
|
+
* The monetary amount of the credit grant. Required if `type` is `monetary`.
|
|
1260
|
+
*/
|
|
1261
|
+
monetary?: V2Amount;
|
|
1262
|
+
/**
|
|
1263
|
+
* The type of the credit grant amount.
|
|
1264
|
+
*/
|
|
1265
|
+
type: 'monetary';
|
|
1266
|
+
}
|
|
1267
|
+
interface ApplicabilityConfig {
|
|
1268
|
+
/**
|
|
1269
|
+
* The applicability scope of the credit grant.
|
|
1270
|
+
*/
|
|
1271
|
+
scope: ApplicabilityConfig.Scope;
|
|
1272
|
+
}
|
|
1273
|
+
type Category = 'paid' | 'promotional';
|
|
1274
|
+
interface ExpiryConfig {
|
|
1275
|
+
/**
|
|
1276
|
+
* The type of the expiry configuration.
|
|
1277
|
+
*/
|
|
1278
|
+
type: 'end_of_service_period';
|
|
1279
|
+
}
|
|
1280
|
+
namespace ApplicabilityConfig {
|
|
1281
|
+
interface Scope {
|
|
1282
|
+
/**
|
|
1283
|
+
* The billable items to apply the credit grant to.
|
|
1284
|
+
*/
|
|
1285
|
+
billable_items?: Array<string>;
|
|
1286
|
+
/**
|
|
1287
|
+
* The price type that credit grants can apply to.
|
|
1288
|
+
*/
|
|
1289
|
+
price_type?: 'metered';
|
|
1290
|
+
}
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
}
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}
|
|
1297
|
+
namespace LicenseQuantityAction {
|
|
1298
|
+
interface EffectiveAt {
|
|
1299
|
+
/**
|
|
1300
|
+
* The timestamp for the effective at.
|
|
1301
|
+
*/
|
|
1302
|
+
timestamp?: string;
|
|
1303
|
+
/**
|
|
1304
|
+
* The type of the effective at.
|
|
1305
|
+
*/
|
|
1306
|
+
type: 'timestamp';
|
|
1307
|
+
}
|
|
1308
|
+
type LicensePricingType = 'license_fee' | 'price';
|
|
1309
|
+
interface Set {
|
|
1310
|
+
/**
|
|
1311
|
+
* The quantity to set.
|
|
1312
|
+
*/
|
|
1313
|
+
quantity: number;
|
|
1314
|
+
}
|
|
1315
|
+
}
|
|
1316
|
+
namespace OneTimeFee {
|
|
1317
|
+
interface BillSchedule {
|
|
1318
|
+
/**
|
|
1319
|
+
* When this entry should be billed.
|
|
1320
|
+
*/
|
|
1321
|
+
bill_at: BillSchedule.BillAt;
|
|
1322
|
+
/**
|
|
1323
|
+
* The amount to bill for this entry, in the smallest currency unit.
|
|
1324
|
+
*/
|
|
1325
|
+
value: bigint;
|
|
1326
|
+
}
|
|
1327
|
+
interface ProductDetails {
|
|
1328
|
+
/**
|
|
1329
|
+
* The ID of the v1 Product.
|
|
1330
|
+
*/
|
|
1331
|
+
product: string;
|
|
1332
|
+
}
|
|
1333
|
+
namespace BillSchedule {
|
|
1334
|
+
interface BillAt {
|
|
1335
|
+
/**
|
|
1336
|
+
* The datetime at which the entry should be billed. Required if `type` is `datetime`.
|
|
1337
|
+
*/
|
|
1338
|
+
timestamp?: string;
|
|
1339
|
+
/**
|
|
1340
|
+
* The type of the bill_at.
|
|
1341
|
+
*/
|
|
1342
|
+
type: BillAt.Type;
|
|
1343
|
+
}
|
|
1344
|
+
namespace BillAt {
|
|
1345
|
+
type Type = 'contract_start' | 'datetime';
|
|
1346
|
+
}
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
namespace PricingLine {
|
|
1350
|
+
interface EndsAt {
|
|
1351
|
+
/**
|
|
1352
|
+
* The timestamp when the item ends. Required if `type` is `timestamp`.
|
|
1353
|
+
*/
|
|
1354
|
+
timestamp?: string;
|
|
1355
|
+
/**
|
|
1356
|
+
* The type of the ends_at.
|
|
1357
|
+
*/
|
|
1358
|
+
type: EndsAt.Type;
|
|
1359
|
+
}
|
|
1360
|
+
interface Pricing {
|
|
1361
|
+
/**
|
|
1362
|
+
* V1 price details. Required if `type` is `price`.
|
|
1363
|
+
*/
|
|
1364
|
+
price_details?: Pricing.PriceDetails;
|
|
1365
|
+
/**
|
|
1366
|
+
* The type of pricing.
|
|
1367
|
+
*/
|
|
1368
|
+
type: 'price';
|
|
1369
|
+
}
|
|
1370
|
+
interface StartsAt {
|
|
1371
|
+
/**
|
|
1372
|
+
* The timestamp when the item starts. Required if `type` is `timestamp`.
|
|
1373
|
+
*/
|
|
1374
|
+
timestamp?: string;
|
|
1375
|
+
/**
|
|
1376
|
+
* The type of the starts_at.
|
|
1377
|
+
*/
|
|
1378
|
+
type: StartsAt.Type;
|
|
1379
|
+
}
|
|
1380
|
+
namespace EndsAt {
|
|
1381
|
+
type Type = 'contract_end' | 'timestamp';
|
|
1382
|
+
}
|
|
1383
|
+
namespace Pricing {
|
|
1384
|
+
interface PriceDetails {
|
|
1385
|
+
/**
|
|
1386
|
+
* The ID of the V1 price.
|
|
1387
|
+
*/
|
|
1388
|
+
price: string;
|
|
1389
|
+
/**
|
|
1390
|
+
* The quantity for the price. Only applicable for licensed prices.
|
|
1391
|
+
*/
|
|
1392
|
+
quantity?: number;
|
|
1393
|
+
}
|
|
1394
|
+
}
|
|
1395
|
+
namespace StartsAt {
|
|
1396
|
+
type Type = 'contract_start' | 'timestamp';
|
|
1397
|
+
}
|
|
1398
|
+
}
|
|
1399
|
+
namespace PricingOverride {
|
|
1400
|
+
interface EndsAt {
|
|
1401
|
+
/**
|
|
1402
|
+
* The timestamp when the item ends. Required if `type` is `timestamp`.
|
|
1403
|
+
*/
|
|
1404
|
+
timestamp?: string;
|
|
1405
|
+
/**
|
|
1406
|
+
* The type of the ends_at.
|
|
1407
|
+
*/
|
|
1408
|
+
type: EndsAt.Type;
|
|
1409
|
+
}
|
|
1410
|
+
interface Multiplier {
|
|
1411
|
+
/**
|
|
1412
|
+
* Criteria determining which rates the multiplier applies to.
|
|
1413
|
+
*/
|
|
1414
|
+
criteria: Array<Multiplier.Criterion>;
|
|
1415
|
+
/**
|
|
1416
|
+
* The multiplier factor, represented as a decimal string. e.g. "0.8" for a 20% reduction.
|
|
1417
|
+
*/
|
|
1418
|
+
factor: string;
|
|
1419
|
+
}
|
|
1420
|
+
interface OverwritePrice {
|
|
1421
|
+
/**
|
|
1422
|
+
* The ID of the V1 price to overwrite.
|
|
1423
|
+
*/
|
|
1424
|
+
price: string;
|
|
1425
|
+
/**
|
|
1426
|
+
* Defines whether the tiered price should be graduated or volume-based.
|
|
1427
|
+
*/
|
|
1428
|
+
tiering_mode?: OverwritePrice.TieringMode;
|
|
1429
|
+
/**
|
|
1430
|
+
* Each element represents a pricing tier.
|
|
1431
|
+
*/
|
|
1432
|
+
tiers?: Array<OverwritePrice.Tier>;
|
|
1433
|
+
/**
|
|
1434
|
+
* The per-unit amount to be charged, represented as a decimal string in minor currency units.
|
|
1435
|
+
*/
|
|
1436
|
+
unit_amount?: string;
|
|
1437
|
+
}
|
|
1438
|
+
interface StartsAt {
|
|
1439
|
+
/**
|
|
1440
|
+
* The timestamp when the item starts. Required if `type` is `timestamp`.
|
|
1441
|
+
*/
|
|
1442
|
+
timestamp?: string;
|
|
1443
|
+
/**
|
|
1444
|
+
* The type of the starts_at.
|
|
1445
|
+
*/
|
|
1446
|
+
type: StartsAt.Type;
|
|
1447
|
+
}
|
|
1448
|
+
type Type = 'multiplier' | 'overwrite_price';
|
|
1449
|
+
namespace EndsAt {
|
|
1450
|
+
type Type = 'contract_end' | 'timestamp';
|
|
1451
|
+
}
|
|
1452
|
+
namespace Multiplier {
|
|
1453
|
+
interface Criterion {
|
|
1454
|
+
/**
|
|
1455
|
+
* Filter by billable item IDs.
|
|
1456
|
+
*/
|
|
1457
|
+
billable_item_ids: Array<string>;
|
|
1458
|
+
/**
|
|
1459
|
+
* Filter by billable item lookup keys.
|
|
1460
|
+
*/
|
|
1461
|
+
billable_item_lookup_keys: Array<string>;
|
|
1462
|
+
/**
|
|
1463
|
+
* Filter by billable item type.
|
|
1464
|
+
*/
|
|
1465
|
+
billable_item_types: Array<Criterion.BillableItemType>;
|
|
1466
|
+
/**
|
|
1467
|
+
* Filter by metadata conditions.
|
|
1468
|
+
*/
|
|
1469
|
+
metadata_conditions: Array<Criterion.MetadataCondition>;
|
|
1470
|
+
/**
|
|
1471
|
+
* Filter by rate card IDs. Only applicable for `multiplier` overrides.
|
|
1472
|
+
*/
|
|
1473
|
+
rate_card_ids: Array<string>;
|
|
1474
|
+
/**
|
|
1475
|
+
* Whether to include or exclude items matching these criteria.
|
|
1476
|
+
*/
|
|
1477
|
+
type: Criterion.Type;
|
|
1478
|
+
}
|
|
1479
|
+
namespace Criterion {
|
|
1480
|
+
type BillableItemType = 'licensed' | 'metered';
|
|
1481
|
+
interface MetadataCondition {
|
|
1482
|
+
/**
|
|
1483
|
+
* All of these key-value conditions must match.
|
|
1484
|
+
*/
|
|
1485
|
+
all_of: Array<MetadataCondition.AllOf>;
|
|
1486
|
+
}
|
|
1487
|
+
type Type = 'exclude' | 'include';
|
|
1488
|
+
namespace MetadataCondition {
|
|
1489
|
+
interface AllOf {
|
|
1490
|
+
/**
|
|
1491
|
+
* The metadata key.
|
|
1492
|
+
*/
|
|
1493
|
+
key: string;
|
|
1494
|
+
/**
|
|
1495
|
+
* The metadata value.
|
|
1496
|
+
*/
|
|
1497
|
+
value: string;
|
|
1498
|
+
}
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
}
|
|
1502
|
+
namespace OverwritePrice {
|
|
1503
|
+
type TieringMode = 'graduated' | 'volume';
|
|
1504
|
+
interface Tier {
|
|
1505
|
+
/**
|
|
1506
|
+
* Price for the entire tier, represented as a decimal string in minor currency units.
|
|
1507
|
+
*/
|
|
1508
|
+
flat_amount?: string;
|
|
1509
|
+
/**
|
|
1510
|
+
* Per-unit price for units included in this tier, represented as a decimal string in minor currency units.
|
|
1511
|
+
*/
|
|
1512
|
+
unit_amount?: string;
|
|
1513
|
+
/**
|
|
1514
|
+
* Up to and including this quantity will be contained in the tier.
|
|
1515
|
+
*/
|
|
1516
|
+
up_to_decimal?: Decimal;
|
|
1517
|
+
/**
|
|
1518
|
+
* No upper bound to this tier.
|
|
1519
|
+
*/
|
|
1520
|
+
up_to_inf?: 'inf';
|
|
1521
|
+
}
|
|
1522
|
+
}
|
|
1523
|
+
namespace StartsAt {
|
|
1524
|
+
type Type = 'contract_start' | 'timestamp';
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
}
|
|
1530
|
+
export declare namespace V2 {
|
|
1531
|
+
namespace Billing {
|
|
1532
|
+
interface ContractRetrieveParams {
|
|
1533
|
+
/**
|
|
1534
|
+
* Additional fields to include in the response.
|
|
1535
|
+
*/
|
|
1536
|
+
include?: Array<ContractRetrieveParams.Include>;
|
|
1537
|
+
}
|
|
1538
|
+
namespace ContractRetrieveParams {
|
|
1539
|
+
type Include = 'contract_line_details' | 'license_quantities' | 'one_time_fees' | 'pricing_lines' | 'pricing_overrides';
|
|
1540
|
+
}
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
export declare namespace V2 {
|
|
1544
|
+
namespace Billing {
|
|
1545
|
+
interface ContractUpdateParams {
|
|
1546
|
+
/**
|
|
1547
|
+
* Additional fields to include in the response.
|
|
1548
|
+
*/
|
|
1549
|
+
include?: Array<ContractUpdateParams.Include>;
|
|
1550
|
+
/**
|
|
1551
|
+
* Schema-only: License quantity actions (implementation to follow).
|
|
1552
|
+
*/
|
|
1553
|
+
license_quantity_actions?: Array<ContractUpdateParams.LicenseQuantityAction>;
|
|
1554
|
+
/**
|
|
1555
|
+
* Pricing line actions to apply.
|
|
1556
|
+
*/
|
|
1557
|
+
pricing_line_actions?: Array<ContractUpdateParams.PricingLineAction>;
|
|
1558
|
+
/**
|
|
1559
|
+
* Pricing override actions to apply.
|
|
1560
|
+
*/
|
|
1561
|
+
pricing_override_actions?: Array<ContractUpdateParams.PricingOverrideAction>;
|
|
1562
|
+
}
|
|
1563
|
+
namespace ContractUpdateParams {
|
|
1564
|
+
type Include = 'contract_line_details' | 'license_quantities' | 'one_time_fees' | 'pricing_lines' | 'pricing_overrides';
|
|
1565
|
+
interface LicenseQuantityAction {
|
|
1566
|
+
/**
|
|
1567
|
+
* The effective at for the license quantity action.
|
|
1568
|
+
*/
|
|
1569
|
+
effective_at: LicenseQuantityAction.EffectiveAt;
|
|
1570
|
+
/**
|
|
1571
|
+
* The ID of the license pricing.
|
|
1572
|
+
*/
|
|
1573
|
+
license_pricing_id?: string;
|
|
1574
|
+
/**
|
|
1575
|
+
* The lookup key for the license pricing.
|
|
1576
|
+
*/
|
|
1577
|
+
license_pricing_lookup_key?: string;
|
|
1578
|
+
/**
|
|
1579
|
+
* The type of the license pricing.
|
|
1580
|
+
*/
|
|
1581
|
+
license_pricing_type: LicenseQuantityAction.LicensePricingType;
|
|
1582
|
+
/**
|
|
1583
|
+
* The pricing line ID for the license quantity action.
|
|
1584
|
+
*/
|
|
1585
|
+
pricing_line?: string;
|
|
1586
|
+
/**
|
|
1587
|
+
* The pricing line lookup key for the license quantity action.
|
|
1588
|
+
*/
|
|
1589
|
+
pricing_line_lookup_key?: string;
|
|
1590
|
+
/**
|
|
1591
|
+
* The set quantity for the license quantity action.
|
|
1592
|
+
*/
|
|
1593
|
+
set?: LicenseQuantityAction.Set;
|
|
1594
|
+
/**
|
|
1595
|
+
* The type of the license quantity action.
|
|
1596
|
+
*/
|
|
1597
|
+
type: 'set';
|
|
1598
|
+
}
|
|
1599
|
+
interface PricingLineAction {
|
|
1600
|
+
/**
|
|
1601
|
+
* Parameters for adding a pricing line.
|
|
1602
|
+
*/
|
|
1603
|
+
add?: PricingLineAction.Add;
|
|
1604
|
+
/**
|
|
1605
|
+
* Parameters for removing a pricing line.
|
|
1606
|
+
*/
|
|
1607
|
+
remove?: PricingLineAction.Remove;
|
|
1608
|
+
/**
|
|
1609
|
+
* The type of pricing line action.
|
|
1610
|
+
*/
|
|
1611
|
+
type: PricingLineAction.Type;
|
|
1612
|
+
/**
|
|
1613
|
+
* Parameters for updating a pricing line.
|
|
1614
|
+
*/
|
|
1615
|
+
update?: PricingLineAction.Update;
|
|
1616
|
+
}
|
|
1617
|
+
interface PricingOverrideAction {
|
|
1618
|
+
/**
|
|
1619
|
+
* Parameters for adding a pricing override.
|
|
1620
|
+
*/
|
|
1621
|
+
add?: PricingOverrideAction.Add;
|
|
1622
|
+
/**
|
|
1623
|
+
* Parameters for removing a pricing override.
|
|
1624
|
+
*/
|
|
1625
|
+
remove?: PricingOverrideAction.Remove;
|
|
1626
|
+
/**
|
|
1627
|
+
* The type of pricing override action.
|
|
1628
|
+
*/
|
|
1629
|
+
type: PricingOverrideAction.Type;
|
|
1630
|
+
/**
|
|
1631
|
+
* Parameters for updating a pricing override.
|
|
1632
|
+
*/
|
|
1633
|
+
update?: PricingOverrideAction.Update;
|
|
1634
|
+
}
|
|
1635
|
+
namespace LicenseQuantityAction {
|
|
1636
|
+
interface EffectiveAt {
|
|
1637
|
+
/**
|
|
1638
|
+
* The timestamp for the effective at.
|
|
1639
|
+
*/
|
|
1640
|
+
timestamp?: string;
|
|
1641
|
+
/**
|
|
1642
|
+
* The type of the effective at.
|
|
1643
|
+
*/
|
|
1644
|
+
type: 'timestamp';
|
|
1645
|
+
}
|
|
1646
|
+
type LicensePricingType = 'license_fee' | 'price';
|
|
1647
|
+
interface Set {
|
|
1648
|
+
/**
|
|
1649
|
+
* The quantity to set.
|
|
1650
|
+
*/
|
|
1651
|
+
quantity: number;
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
namespace PricingLineAction {
|
|
1655
|
+
interface Add {
|
|
1656
|
+
/**
|
|
1657
|
+
* The end time for the pricing line.
|
|
1658
|
+
*/
|
|
1659
|
+
ends_at: Add.EndsAt;
|
|
1660
|
+
/**
|
|
1661
|
+
* A lookup key for the pricing line.
|
|
1662
|
+
*/
|
|
1663
|
+
lookup_key?: string;
|
|
1664
|
+
/**
|
|
1665
|
+
* Metadata for the pricing line.
|
|
1666
|
+
*/
|
|
1667
|
+
metadata?: MetadataParam;
|
|
1668
|
+
/**
|
|
1669
|
+
* The pricing configuration for the pricing line.
|
|
1670
|
+
*/
|
|
1671
|
+
pricing: Add.Pricing;
|
|
1672
|
+
/**
|
|
1673
|
+
* The start time for the pricing line.
|
|
1674
|
+
*/
|
|
1675
|
+
starts_at: Add.StartsAt;
|
|
1676
|
+
}
|
|
1677
|
+
interface Remove {
|
|
1678
|
+
/**
|
|
1679
|
+
* The ID of the pricing line to remove.
|
|
1680
|
+
*/
|
|
1681
|
+
id: string;
|
|
1682
|
+
}
|
|
1683
|
+
type Type = 'add' | 'remove' | 'update';
|
|
1684
|
+
interface Update {
|
|
1685
|
+
/**
|
|
1686
|
+
* The updated end time for the pricing line.
|
|
1687
|
+
*/
|
|
1688
|
+
ends_at?: Update.EndsAt;
|
|
1689
|
+
/**
|
|
1690
|
+
* The ID of the pricing line.
|
|
1691
|
+
*/
|
|
1692
|
+
id: string;
|
|
1693
|
+
/**
|
|
1694
|
+
* The updated start time for the pricing line.
|
|
1695
|
+
*/
|
|
1696
|
+
starts_at?: Update.StartsAt;
|
|
1697
|
+
}
|
|
1698
|
+
namespace Add {
|
|
1699
|
+
interface EndsAt {
|
|
1700
|
+
/**
|
|
1701
|
+
* The timestamp when the item ends.
|
|
1702
|
+
*/
|
|
1703
|
+
timestamp?: string;
|
|
1704
|
+
/**
|
|
1705
|
+
* The type of end time to apply.
|
|
1706
|
+
*/
|
|
1707
|
+
type: EndsAt.Type;
|
|
1708
|
+
}
|
|
1709
|
+
interface Pricing {
|
|
1710
|
+
/**
|
|
1711
|
+
* V1 price details. Required if `type` is `price`.
|
|
1712
|
+
*/
|
|
1713
|
+
price_details?: Pricing.PriceDetails;
|
|
1714
|
+
/**
|
|
1715
|
+
* The type of pricing.
|
|
1716
|
+
*/
|
|
1717
|
+
type: 'price';
|
|
1718
|
+
}
|
|
1719
|
+
interface StartsAt {
|
|
1720
|
+
/**
|
|
1721
|
+
* The timestamp when the item starts.
|
|
1722
|
+
*/
|
|
1723
|
+
timestamp?: string;
|
|
1724
|
+
/**
|
|
1725
|
+
* The type of start time to apply.
|
|
1726
|
+
*/
|
|
1727
|
+
type: StartsAt.Type;
|
|
1728
|
+
}
|
|
1729
|
+
namespace EndsAt {
|
|
1730
|
+
type Type = 'billing_period_end' | 'timestamp';
|
|
1731
|
+
}
|
|
1732
|
+
namespace Pricing {
|
|
1733
|
+
interface PriceDetails {
|
|
1734
|
+
/**
|
|
1735
|
+
* The ID of the V1 price.
|
|
1736
|
+
*/
|
|
1737
|
+
price: string;
|
|
1738
|
+
/**
|
|
1739
|
+
* The quantity for the price. Only applicable for licensed prices.
|
|
1740
|
+
*/
|
|
1741
|
+
quantity?: number;
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
namespace StartsAt {
|
|
1745
|
+
type Type = 'billing_period_start' | 'timestamp';
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
namespace Update {
|
|
1749
|
+
interface EndsAt {
|
|
1750
|
+
/**
|
|
1751
|
+
* The timestamp when the item ends.
|
|
1752
|
+
*/
|
|
1753
|
+
timestamp?: string;
|
|
1754
|
+
/**
|
|
1755
|
+
* The type of end time to apply.
|
|
1756
|
+
*/
|
|
1757
|
+
type: EndsAt.Type;
|
|
1758
|
+
}
|
|
1759
|
+
interface StartsAt {
|
|
1760
|
+
/**
|
|
1761
|
+
* The timestamp when the item starts.
|
|
1762
|
+
*/
|
|
1763
|
+
timestamp?: string;
|
|
1764
|
+
/**
|
|
1765
|
+
* The type of start time to apply.
|
|
1766
|
+
*/
|
|
1767
|
+
type: StartsAt.Type;
|
|
1768
|
+
}
|
|
1769
|
+
namespace EndsAt {
|
|
1770
|
+
type Type = 'billing_period_end' | 'timestamp';
|
|
1771
|
+
}
|
|
1772
|
+
namespace StartsAt {
|
|
1773
|
+
type Type = 'billing_period_start' | 'timestamp';
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
}
|
|
1777
|
+
namespace PricingOverrideAction {
|
|
1778
|
+
interface Add {
|
|
1779
|
+
/**
|
|
1780
|
+
* The end time for the pricing override.
|
|
1781
|
+
*/
|
|
1782
|
+
ends_at: Add.EndsAt;
|
|
1783
|
+
/**
|
|
1784
|
+
* A lookup key for the pricing override.
|
|
1785
|
+
*/
|
|
1786
|
+
lookup_key?: string;
|
|
1787
|
+
/**
|
|
1788
|
+
* A multiplier override to add.
|
|
1789
|
+
*/
|
|
1790
|
+
multiplier?: Add.Multiplier;
|
|
1791
|
+
/**
|
|
1792
|
+
* An overwrite price override to add.
|
|
1793
|
+
*/
|
|
1794
|
+
overwrite_price?: Add.OverwritePrice;
|
|
1795
|
+
/**
|
|
1796
|
+
* The priority for the pricing override.
|
|
1797
|
+
*/
|
|
1798
|
+
priority: number;
|
|
1799
|
+
/**
|
|
1800
|
+
* The start time for the pricing override.
|
|
1801
|
+
*/
|
|
1802
|
+
starts_at: Add.StartsAt;
|
|
1803
|
+
/**
|
|
1804
|
+
* The type of pricing override to add.
|
|
1805
|
+
*/
|
|
1806
|
+
type: Add.Type;
|
|
1807
|
+
}
|
|
1808
|
+
interface Remove {
|
|
1809
|
+
/**
|
|
1810
|
+
* The ID of the pricing override to remove.
|
|
1811
|
+
*/
|
|
1812
|
+
id: string;
|
|
1813
|
+
}
|
|
1814
|
+
type Type = 'add' | 'remove' | 'update';
|
|
1815
|
+
interface Update {
|
|
1816
|
+
/**
|
|
1817
|
+
* The updated end time for the pricing override.
|
|
1818
|
+
*/
|
|
1819
|
+
ends_at?: Update.EndsAt;
|
|
1820
|
+
/**
|
|
1821
|
+
* The ID of the pricing override.
|
|
1822
|
+
*/
|
|
1823
|
+
id: string;
|
|
1824
|
+
/**
|
|
1825
|
+
* The updated start time for the pricing override.
|
|
1826
|
+
*/
|
|
1827
|
+
starts_at?: Update.StartsAt;
|
|
1828
|
+
}
|
|
1829
|
+
namespace Add {
|
|
1830
|
+
interface EndsAt {
|
|
1831
|
+
/**
|
|
1832
|
+
* The timestamp when the item ends.
|
|
1833
|
+
*/
|
|
1834
|
+
timestamp?: string;
|
|
1835
|
+
/**
|
|
1836
|
+
* The type of end time to apply.
|
|
1837
|
+
*/
|
|
1838
|
+
type: EndsAt.Type;
|
|
1839
|
+
}
|
|
1840
|
+
interface Multiplier {
|
|
1841
|
+
/**
|
|
1842
|
+
* Criteria determining which rates the multiplier applies to.
|
|
1843
|
+
*/
|
|
1844
|
+
criteria: Array<Multiplier.Criterion>;
|
|
1845
|
+
/**
|
|
1846
|
+
* The multiplier factor, represented as a decimal string. e.g. "0.8" for a 20% reduction.
|
|
1847
|
+
*/
|
|
1848
|
+
factor: string;
|
|
1849
|
+
}
|
|
1850
|
+
interface OverwritePrice {
|
|
1851
|
+
/**
|
|
1852
|
+
* The ID of the V1 price to overwrite.
|
|
1853
|
+
*/
|
|
1854
|
+
price: string;
|
|
1855
|
+
/**
|
|
1856
|
+
* Defines whether the tiered price should be graduated or volume-based.
|
|
1857
|
+
*/
|
|
1858
|
+
tiering_mode?: OverwritePrice.TieringMode;
|
|
1859
|
+
/**
|
|
1860
|
+
* Each element represents a pricing tier.
|
|
1861
|
+
*/
|
|
1862
|
+
tiers: Array<OverwritePrice.Tier>;
|
|
1863
|
+
/**
|
|
1864
|
+
* The per-unit amount to be charged, represented as a decimal string in minor currency units.
|
|
1865
|
+
*/
|
|
1866
|
+
unit_amount?: string;
|
|
1867
|
+
}
|
|
1868
|
+
interface StartsAt {
|
|
1869
|
+
/**
|
|
1870
|
+
* The timestamp when the item starts.
|
|
1871
|
+
*/
|
|
1872
|
+
timestamp?: string;
|
|
1873
|
+
/**
|
|
1874
|
+
* The type of start time to apply.
|
|
1875
|
+
*/
|
|
1876
|
+
type: StartsAt.Type;
|
|
1877
|
+
}
|
|
1878
|
+
type Type = 'multiplier' | 'overwrite_price';
|
|
1879
|
+
namespace EndsAt {
|
|
1880
|
+
type Type = 'billing_period_end' | 'timestamp';
|
|
1881
|
+
}
|
|
1882
|
+
namespace Multiplier {
|
|
1883
|
+
interface Criterion {
|
|
1884
|
+
/**
|
|
1885
|
+
* Filter by billable item IDs.
|
|
1886
|
+
*/
|
|
1887
|
+
billable_item_ids: Array<string>;
|
|
1888
|
+
/**
|
|
1889
|
+
* Filter by billable item lookup keys.
|
|
1890
|
+
*/
|
|
1891
|
+
billable_item_lookup_keys: Array<string>;
|
|
1892
|
+
/**
|
|
1893
|
+
* Filter by billable item type.
|
|
1894
|
+
*/
|
|
1895
|
+
billable_item_types: Array<Criterion.BillableItemType>;
|
|
1896
|
+
/**
|
|
1897
|
+
* Filter by metadata conditions.
|
|
1898
|
+
*/
|
|
1899
|
+
metadata_conditions: Array<Criterion.MetadataCondition>;
|
|
1900
|
+
/**
|
|
1901
|
+
* Filter by rate card IDs. Only applicable for `multiplier` overrides.
|
|
1902
|
+
*/
|
|
1903
|
+
rate_card_ids: Array<string>;
|
|
1904
|
+
/**
|
|
1905
|
+
* Whether to include or exclude items matching these criteria.
|
|
1906
|
+
*/
|
|
1907
|
+
type: Criterion.Type;
|
|
1908
|
+
}
|
|
1909
|
+
namespace Criterion {
|
|
1910
|
+
type BillableItemType = 'licensed' | 'metered';
|
|
1911
|
+
interface MetadataCondition {
|
|
1912
|
+
/**
|
|
1913
|
+
* All of these key-value conditions must match.
|
|
1914
|
+
*/
|
|
1915
|
+
all_of: Array<MetadataCondition.AllOf>;
|
|
1916
|
+
}
|
|
1917
|
+
type Type = 'exclude' | 'include';
|
|
1918
|
+
namespace MetadataCondition {
|
|
1919
|
+
interface AllOf {
|
|
1920
|
+
/**
|
|
1921
|
+
* The metadata key.
|
|
1922
|
+
*/
|
|
1923
|
+
key: string;
|
|
1924
|
+
/**
|
|
1925
|
+
* The metadata value.
|
|
1926
|
+
*/
|
|
1927
|
+
value: string;
|
|
1928
|
+
}
|
|
1929
|
+
}
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
namespace OverwritePrice {
|
|
1933
|
+
type TieringMode = 'graduated' | 'volume';
|
|
1934
|
+
interface Tier {
|
|
1935
|
+
/**
|
|
1936
|
+
* Price for the entire tier, represented as a decimal string in minor currency units.
|
|
1937
|
+
*/
|
|
1938
|
+
flat_amount?: string;
|
|
1939
|
+
/**
|
|
1940
|
+
* Per-unit price for units included in this tier, represented as a decimal string in minor currency units.
|
|
1941
|
+
*/
|
|
1942
|
+
unit_amount?: string;
|
|
1943
|
+
/**
|
|
1944
|
+
* Up to and including this quantity will be contained in the tier.
|
|
1945
|
+
*/
|
|
1946
|
+
up_to_decimal?: Decimal;
|
|
1947
|
+
/**
|
|
1948
|
+
* No upper bound to this tier.
|
|
1949
|
+
*/
|
|
1950
|
+
up_to_inf?: 'inf';
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
namespace StartsAt {
|
|
1954
|
+
type Type = 'billing_period_start' | 'timestamp';
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
namespace Update {
|
|
1958
|
+
interface EndsAt {
|
|
1959
|
+
/**
|
|
1960
|
+
* The timestamp when the item ends.
|
|
1961
|
+
*/
|
|
1962
|
+
timestamp?: string;
|
|
1963
|
+
/**
|
|
1964
|
+
* The type of end time to apply.
|
|
1965
|
+
*/
|
|
1966
|
+
type: EndsAt.Type;
|
|
1967
|
+
}
|
|
1968
|
+
interface StartsAt {
|
|
1969
|
+
/**
|
|
1970
|
+
* The timestamp when the item starts.
|
|
1971
|
+
*/
|
|
1972
|
+
timestamp?: string;
|
|
1973
|
+
/**
|
|
1974
|
+
* The type of start time to apply.
|
|
1975
|
+
*/
|
|
1976
|
+
type: StartsAt.Type;
|
|
1977
|
+
}
|
|
1978
|
+
namespace EndsAt {
|
|
1979
|
+
type Type = 'billing_period_end' | 'timestamp';
|
|
1980
|
+
}
|
|
1981
|
+
namespace StartsAt {
|
|
1982
|
+
type Type = 'billing_period_start' | 'timestamp';
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
}
|
|
1988
|
+
}
|
|
1989
|
+
export declare namespace V2 {
|
|
1990
|
+
namespace Billing {
|
|
1991
|
+
interface ContractListParams {
|
|
1992
|
+
/**
|
|
1993
|
+
* Filter by customer ID.
|
|
1994
|
+
*/
|
|
1995
|
+
customer?: string;
|
|
1996
|
+
/**
|
|
1997
|
+
* The limit for the number of results per page.
|
|
1998
|
+
*/
|
|
1999
|
+
limit?: number;
|
|
2000
|
+
}
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
export declare namespace V2 {
|
|
2004
|
+
namespace Billing {
|
|
2005
|
+
interface ContractActivateParams {
|
|
2006
|
+
/**
|
|
2007
|
+
* Additional fields to include in the response.
|
|
2008
|
+
*/
|
|
2009
|
+
include?: Array<ContractActivateParams.Include>;
|
|
2010
|
+
}
|
|
2011
|
+
namespace ContractActivateParams {
|
|
2012
|
+
type Include = 'contract_line_details' | 'license_quantities' | 'one_time_fees' | 'pricing_lines' | 'pricing_overrides';
|
|
2013
|
+
}
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
2016
|
+
export declare namespace V2 {
|
|
2017
|
+
namespace Billing {
|
|
2018
|
+
interface ContractCancelParams {
|
|
2019
|
+
/**
|
|
2020
|
+
* Additional fields to include in the response.
|
|
2021
|
+
*/
|
|
2022
|
+
include?: Array<ContractCancelParams.Include>;
|
|
2023
|
+
}
|
|
2024
|
+
namespace ContractCancelParams {
|
|
2025
|
+
type Include = 'contract_line_details' | 'license_quantities' | 'one_time_fees' | 'pricing_lines' | 'pricing_overrides';
|
|
2026
|
+
}
|
|
2027
|
+
}
|
|
2028
|
+
}
|