@schematichq/schematic-typescript-node 1.6.4 → 1.6.5
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/dist/api/resources/billing/client/Client.d.ts +38 -6
- package/dist/api/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +3 -3
- package/dist/api/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
- package/dist/api/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListBillingPricesRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/ListBillingProductPricesRequest.d.ts +2 -2
- package/dist/api/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +8 -0
- package/dist/api/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/api/resources/billing/types/GetBillingSettingsResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/ListBillingPricesParams.d.ts +1 -1
- package/dist/api/resources/billing/types/ListBillingProductPricesParams.d.ts +1 -1
- package/dist/api/resources/billing/types/UpdateBillingSettingsResponse.d.ts +6 -0
- package/dist/api/resources/billing/types/index.d.ts +2 -0
- package/dist/api/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
- package/dist/api/resources/companies/client/Client.d.ts +1 -1
- package/dist/api/resources/companies/client/requests/ListPlanChangesRequest.d.ts +1 -1
- package/dist/api/resources/credits/client/Client.d.ts +23 -2
- package/dist/api/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +1 -1
- package/dist/api/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -2
- package/dist/api/resources/credits/client/requests/GetCreditBalanceTimeSeriesRequest.d.ts +15 -0
- package/dist/api/resources/credits/client/requests/index.d.ts +1 -0
- package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +9 -0
- package/dist/api/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +6 -0
- package/dist/api/resources/credits/types/index.d.ts +2 -0
- package/dist/api/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
- package/dist/api/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +2 -0
- package/dist/api/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
- package/dist/api/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +2 -0
- package/dist/api/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
- package/dist/api/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
- package/dist/api/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/dist/api/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/dist/api/resources/plans/client/Client.d.ts +20 -1
- package/dist/api/resources/plans/client/requests/GetPlanVersionDiffRequest.d.ts +10 -0
- package/dist/api/resources/plans/client/requests/ListCustomPlanBillingsRequest.d.ts +2 -2
- package/dist/api/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +5 -0
- package/dist/api/resources/plans/client/requests/index.d.ts +1 -0
- package/dist/api/resources/plans/types/GetPlanVersionDiffParams.d.ts +7 -0
- package/dist/api/resources/plans/types/GetPlanVersionDiffResponse.d.ts +6 -0
- package/dist/api/resources/plans/types/ListCustomPlanBillingsParams.d.ts +1 -1
- package/dist/api/resources/plans/types/index.d.ts +2 -0
- package/dist/api/types/BillingCouponResponseData.d.ts +1 -1
- package/dist/api/types/BillingCreditGrantResponseData.d.ts +2 -2
- package/dist/api/types/BillingCustomerSubscription.d.ts +2 -1
- package/dist/api/types/BillingPriceResponseData.d.ts +1 -1
- package/dist/api/types/BillingPriceView.d.ts +1 -1
- package/dist/api/types/BillingProductForSubscriptionResponseData.d.ts +1 -1
- package/dist/api/types/BillingProductPriceResponseData.d.ts +1 -1
- package/dist/api/types/BillingProductPricing.d.ts +1 -1
- package/dist/api/types/BillingSettingsResponseData.d.ts +4 -0
- package/dist/api/types/BillingSubscriptionDiscountView.d.ts +2 -1
- package/dist/api/types/BillingSubscriptionResponseData.d.ts +1 -1
- package/dist/api/types/BillingSubscriptionView.d.ts +1 -1
- package/dist/api/types/CatalogConfigOrderedPlan.d.ts +1 -0
- package/dist/api/types/CatalogConfigOrderedPlanResponseData.d.ts +1 -0
- package/dist/api/types/CatalogConfigPlanCredit.d.ts +4 -0
- package/dist/api/types/CatalogConfigPlanCreditResponseData.d.ts +4 -0
- package/dist/api/types/ChangeSubscriptionInternalRequestBody.d.ts +1 -1
- package/dist/api/types/ChangeSubscriptionRequestBody.d.ts +1 -1
- package/dist/api/types/CheckoutProblemCode.d.ts +47 -0
- package/dist/api/types/CheckoutProblemResponseData.d.ts +19 -0
- package/dist/api/types/CheckoutProblemSource.d.ts +6 -0
- package/dist/api/types/CheckoutSubscription.d.ts +1 -1
- package/dist/api/types/CompanyBillingEntitySubscriptionResponseData.d.ts +1 -1
- package/dist/api/types/CompanyOverrideResponseData.d.ts +2 -0
- package/dist/api/types/CompanyPlanDetailResponseData.d.ts +1 -0
- package/dist/api/types/CompanySubscriptionResponseData.d.ts +1 -1
- package/dist/api/types/Condition.d.ts +1 -0
- package/dist/api/types/ConditionResponseData.d.ts +1 -0
- package/dist/api/types/ConditionView.d.ts +1 -0
- package/dist/api/types/CouponRequestBody.d.ts +2 -1
- package/dist/api/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
- package/dist/api/types/CreateEntitlementReqCommon.d.ts +2 -0
- package/dist/api/types/CreditBalanceEventResponseData.d.ts +10 -0
- package/dist/api/types/CreditBalanceFeatureConsumptionResponseData.d.ts +5 -0
- package/dist/api/types/CreditBalancePointResponseData.d.ts +9 -0
- package/dist/api/types/CreditBalanceTimeSeriesResponseData.d.ts +8 -0
- package/dist/api/types/CreditBundleCurrencyPrice.d.ts +1 -1
- package/dist/api/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/api/types/CreditBundleCurrencyPriceResponseData.d.ts +1 -1
- package/dist/api/types/CreditBurnBreakdownLine.d.ts +6 -0
- package/dist/api/types/CreditCompanyGrantView.d.ts +2 -2
- package/dist/api/types/CreditCurrencyPrice.d.ts +1 -1
- package/dist/api/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/api/types/CreditCurrencyPriceResponseData.d.ts +1 -1
- package/dist/api/types/CreditEventLedgerResponseData.d.ts +4 -1
- package/dist/api/types/CreditUsageReason.d.ts +1 -0
- package/dist/api/types/CreditsInPlan.d.ts +4 -0
- package/dist/api/types/Currency.d.ts +137 -0
- package/dist/api/types/CurrencyPriceRequestBody.d.ts +1 -1
- package/dist/api/types/CustomPlanBillingResponseData.d.ts +7 -1
- package/dist/api/types/EntitlementCurrencyPricesResponseData.d.ts +1 -1
- package/dist/api/types/EstimatedPlanTotal.d.ts +1 -1
- package/dist/api/types/FeatureDetailResponseData.d.ts +2 -0
- package/dist/api/types/FeatureEntitlement.d.ts +2 -0
- package/dist/api/types/FeatureEventSource.d.ts +5 -0
- package/dist/api/types/FeatureInPlanResponseData.d.ts +2 -0
- package/dist/api/types/FeatureResponseData.d.ts +2 -0
- package/dist/api/types/FeatureView.d.ts +1 -0
- package/dist/api/types/InvoiceRequestBody.d.ts +1 -1
- package/dist/api/types/InvoiceResponseData.d.ts +1 -1
- package/dist/api/types/ManagePlanPreviewResponseResponseData.d.ts +1 -0
- package/dist/api/types/ManagePlanRequest.d.ts +3 -1
- package/dist/api/types/ManagePlanResponseResponseData.d.ts +2 -0
- package/dist/api/types/MrrResponseData.d.ts +2 -1
- package/dist/api/types/OrderedPlansInGroup.d.ts +1 -0
- package/dist/api/types/PendingMigrationResponseData.d.ts +1 -1
- package/dist/api/types/PlanBillingSource.d.ts +1 -0
- package/dist/api/types/PlanChangeAction.d.ts +1 -0
- package/dist/api/types/PlanChangeAmendmentStatus.d.ts +8 -0
- package/dist/api/types/PlanChangeResponseData.d.ts +4 -0
- package/dist/api/types/PlanCreditOrder.d.ts +4 -0
- package/dist/api/types/PlanCreditVisibility.d.ts +4 -0
- package/dist/api/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/api/types/PlanCurrencyPricesResponseData.d.ts +1 -1
- package/dist/api/types/PlanEntitlementResponseData.d.ts +2 -0
- package/dist/api/types/PlanGroupPlanEntitlementsOrder.d.ts +1 -0
- package/dist/api/types/PlanVersionBillingProductChangeResponseData.d.ts +5 -0
- package/dist/api/types/PlanVersionCreditGrantChangeResponseData.d.ts +9 -0
- package/dist/api/types/PlanVersionDiffChangeType.d.ts +6 -0
- package/dist/api/types/PlanVersionDiffPriceCadence.d.ts +7 -0
- package/dist/api/types/PlanVersionDiffResponseData.d.ts +19 -0
- package/dist/api/types/PlanVersionEntitlementChangeResponseData.d.ts +9 -0
- package/dist/api/types/PlanVersionFieldChangeResponseData.d.ts +5 -0
- package/dist/api/types/PlanVersionPriceChangeResponseData.d.ts +7 -0
- package/dist/api/types/PlanViewPublicResponseData.d.ts +1 -0
- package/dist/api/types/PreviewSubscriptionChangeResponseData.d.ts +1 -0
- package/dist/api/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
- package/dist/api/types/PreviewSubscriptionFinanceResponseData.d.ts +1 -1
- package/dist/api/types/RulesengineCondition.d.ts +1 -0
- package/dist/api/types/RulesengineFeatureEntitlement.d.ts +2 -0
- package/dist/api/types/ScheduledDowngradeResponseData.d.ts +2 -1
- package/dist/api/types/UpcomingInvoiceResponseData.d.ts +1 -1
- package/dist/api/types/UpdateEntitlementReqCommon.d.ts +2 -0
- package/dist/api/types/UpsertBillingProductRequestBody.d.ts +1 -1
- package/dist/api/types/UsageBasedEntitlementRequestBody.d.ts +1 -1
- package/dist/api/types/index.d.ts +25 -0
- package/dist/core/fetcher/getResponseBody.d.ts +16 -0
- package/dist/core/fetcher/makeRequest.d.ts +6 -1
- package/dist/core/fetcher/requestWithRetries.d.ts +1 -1
- package/dist/core/fetcher/signals.d.ts +1 -0
- package/dist/index.js +9 -9
- package/dist/serialization/resources/billing/client/requests/CreateBillingPriceRequestBody.d.ts +2 -1
- package/dist/serialization/resources/billing/client/requests/CreateBillingSubscriptionRequestBody.d.ts +2 -1
- package/dist/serialization/resources/billing/client/requests/CreateCouponRequestBody.d.ts +2 -1
- package/dist/serialization/resources/billing/client/requests/CreateInvoiceRequestBody.d.ts +2 -1
- package/dist/serialization/resources/billing/client/requests/UpdateBillingSettingsRequestBody.d.ts +10 -0
- package/dist/serialization/resources/billing/client/requests/index.d.ts +1 -0
- package/dist/serialization/resources/billing/types/GetBillingSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/ListBillingPricesParams.d.ts +2 -1
- package/dist/serialization/resources/billing/types/ListBillingProductPricesParams.d.ts +2 -1
- package/dist/serialization/resources/billing/types/UpdateBillingSettingsResponse.d.ts +11 -0
- package/dist/serialization/resources/billing/types/index.d.ts +2 -0
- package/dist/serialization/resources/checkout/client/requests/CheckoutDataRequestBody.d.ts +2 -1
- package/dist/serialization/resources/credits/client/requests/CreateBillingCreditRequestBody.d.ts +2 -1
- package/dist/serialization/resources/credits/client/requests/CreateCompanyCreditGrant.d.ts +2 -1
- package/dist/serialization/resources/credits/client/requests/CreateCreditBundleRequestBody.d.ts +2 -1
- package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesParams.d.ts +12 -0
- package/dist/serialization/resources/credits/types/GetCreditBalanceTimeSeriesResponse.d.ts +12 -0
- package/dist/serialization/resources/credits/types/index.d.ts +2 -0
- package/dist/serialization/resources/entitlements/client/requests/CreateBillingLinkedPlanEntitlementRequestBody.d.ts +3 -1
- package/dist/serialization/resources/entitlements/client/requests/CreateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/CreatePlanEntitlementRequestBody.d.ts +3 -1
- package/dist/serialization/resources/entitlements/client/requests/UpdateCompanyOverrideRequestBody.d.ts +1 -0
- package/dist/serialization/resources/entitlements/client/requests/UpdatePlanEntitlementRequestBody.d.ts +3 -1
- package/dist/serialization/resources/features/client/requests/CreateBillingLinkedFeatureRequestBody.d.ts +2 -0
- package/dist/serialization/resources/features/client/requests/CreateFeatureRequestBody.d.ts +2 -0
- package/dist/serialization/resources/features/client/requests/UpdateFeatureRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plans/client/requests/PublishPlanVersionRequestBody.d.ts +2 -0
- package/dist/serialization/resources/plans/types/GetPlanVersionDiffParams.d.ts +9 -0
- package/dist/serialization/resources/plans/types/GetPlanVersionDiffResponse.d.ts +12 -0
- package/dist/serialization/resources/plans/types/index.d.ts +2 -0
- package/dist/serialization/types/BillingCouponResponseData.d.ts +2 -1
- package/dist/serialization/types/BillingCreditGrantResponseData.d.ts +3 -2
- package/dist/serialization/types/BillingCustomerSubscription.d.ts +2 -1
- package/dist/serialization/types/BillingPriceResponseData.d.ts +2 -1
- package/dist/serialization/types/BillingPriceView.d.ts +2 -1
- package/dist/serialization/types/BillingProductForSubscriptionResponseData.d.ts +2 -1
- package/dist/serialization/types/BillingProductPriceResponseData.d.ts +2 -1
- package/dist/serialization/types/BillingProductPricing.d.ts +2 -1
- package/dist/serialization/types/BillingSettingsResponseData.d.ts +10 -0
- package/dist/serialization/types/BillingSubscriptionDiscountView.d.ts +2 -1
- package/dist/serialization/types/BillingSubscriptionResponseData.d.ts +2 -1
- package/dist/serialization/types/BillingSubscriptionView.d.ts +2 -1
- package/dist/serialization/types/CatalogConfigOrderedPlan.d.ts +2 -0
- package/dist/serialization/types/CatalogConfigOrderedPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/CatalogConfigPlanCredit.d.ts +10 -0
- package/dist/serialization/types/CatalogConfigPlanCreditResponseData.d.ts +10 -0
- package/dist/serialization/types/ChangeSubscriptionInternalRequestBody.d.ts +2 -1
- package/dist/serialization/types/ChangeSubscriptionRequestBody.d.ts +2 -1
- package/dist/serialization/types/CheckoutProblemCode.d.ts +7 -0
- package/dist/serialization/types/CheckoutProblemResponseData.d.ts +23 -0
- package/dist/serialization/types/CheckoutProblemSource.d.ts +7 -0
- package/dist/serialization/types/CheckoutSubscription.d.ts +2 -1
- package/dist/serialization/types/CompanyBillingEntitySubscriptionResponseData.d.ts +2 -1
- package/dist/serialization/types/CompanyOverrideResponseData.d.ts +1 -0
- package/dist/serialization/types/CompanyPlanDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/CompanySubscriptionResponseData.d.ts +2 -1
- package/dist/serialization/types/Condition.d.ts +1 -0
- package/dist/serialization/types/ConditionResponseData.d.ts +1 -0
- package/dist/serialization/types/ConditionView.d.ts +1 -0
- package/dist/serialization/types/CouponRequestBody.d.ts +2 -1
- package/dist/serialization/types/CreateEntitlementInBundleRequestBody.d.ts +3 -1
- package/dist/serialization/types/CreateEntitlementReqCommon.d.ts +1 -0
- package/dist/serialization/types/CreditBalanceEventResponseData.d.ts +18 -0
- package/dist/serialization/types/CreditBalanceFeatureConsumptionResponseData.d.ts +11 -0
- package/dist/serialization/types/CreditBalancePointResponseData.d.ts +13 -0
- package/dist/serialization/types/CreditBalanceTimeSeriesResponseData.d.ts +14 -0
- package/dist/serialization/types/CreditBundleCurrencyPrice.d.ts +2 -1
- package/dist/serialization/types/CreditBundleCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/serialization/types/CreditBundleCurrencyPriceResponseData.d.ts +2 -1
- package/dist/serialization/types/CreditBurnBreakdownLine.d.ts +12 -0
- package/dist/serialization/types/CreditCompanyGrantView.d.ts +3 -2
- package/dist/serialization/types/CreditCurrencyPrice.d.ts +2 -1
- package/dist/serialization/types/CreditCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/serialization/types/CreditCurrencyPriceResponseData.d.ts +2 -1
- package/dist/serialization/types/CreditEventLedgerResponseData.d.ts +5 -1
- package/dist/serialization/types/CreditUsageReason.d.ts +1 -1
- package/dist/serialization/types/CreditsInPlan.d.ts +10 -0
- package/dist/serialization/types/Currency.d.ts +7 -0
- package/dist/serialization/types/CurrencyPriceRequestBody.d.ts +2 -1
- package/dist/serialization/types/CustomPlanBillingResponseData.d.ts +4 -0
- package/dist/serialization/types/EntitlementCurrencyPricesResponseData.d.ts +2 -1
- package/dist/serialization/types/EstimatedPlanTotal.d.ts +2 -1
- package/dist/serialization/types/FeatureDetailResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureEntitlement.d.ts +1 -0
- package/dist/serialization/types/FeatureEventSource.d.ts +7 -0
- package/dist/serialization/types/FeatureInPlanResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureResponseData.d.ts +2 -0
- package/dist/serialization/types/FeatureView.d.ts +2 -0
- package/dist/serialization/types/InvoiceRequestBody.d.ts +2 -1
- package/dist/serialization/types/InvoiceResponseData.d.ts +2 -1
- package/dist/serialization/types/ManagePlanPreviewResponseResponseData.d.ts +2 -0
- package/dist/serialization/types/ManagePlanRequest.d.ts +3 -1
- package/dist/serialization/types/ManagePlanResponseResponseData.d.ts +3 -0
- package/dist/serialization/types/MrrResponseData.d.ts +2 -1
- package/dist/serialization/types/OrderedPlansInGroup.d.ts +2 -0
- package/dist/serialization/types/PlanBillingSource.d.ts +1 -1
- package/dist/serialization/types/PlanChangeAction.d.ts +1 -1
- package/dist/serialization/types/PlanChangeAmendmentStatus.d.ts +7 -0
- package/dist/serialization/types/PlanChangeResponseData.d.ts +3 -0
- package/dist/serialization/types/PlanCreditOrder.d.ts +10 -0
- package/dist/serialization/types/PlanCreditVisibility.d.ts +10 -0
- package/dist/serialization/types/PlanCurrencyPriceRequestBody.d.ts +2 -1
- package/dist/serialization/types/PlanCurrencyPricesResponseData.d.ts +2 -1
- package/dist/serialization/types/PlanEntitlementResponseData.d.ts +1 -0
- package/dist/serialization/types/PlanGroupPlanEntitlementsOrder.d.ts +2 -0
- package/dist/serialization/types/PlanVersionBillingProductChangeResponseData.d.ts +11 -0
- package/dist/serialization/types/PlanVersionCreditGrantChangeResponseData.d.ts +15 -0
- package/dist/serialization/types/PlanVersionDiffChangeType.d.ts +7 -0
- package/dist/serialization/types/PlanVersionDiffPriceCadence.d.ts +7 -0
- package/dist/serialization/types/PlanVersionDiffResponseData.d.ts +22 -0
- package/dist/serialization/types/PlanVersionEntitlementChangeResponseData.d.ts +15 -0
- package/dist/serialization/types/PlanVersionFieldChangeResponseData.d.ts +11 -0
- package/dist/serialization/types/PlanVersionPriceChangeResponseData.d.ts +15 -0
- package/dist/serialization/types/PlanViewPublicResponseData.d.ts +2 -0
- package/dist/serialization/types/PreviewSubscriptionChangeResponseData.d.ts +2 -0
- package/dist/serialization/types/PreviewSubscriptionDiscountResponseData.d.ts +2 -1
- package/dist/serialization/types/PreviewSubscriptionFinanceResponseData.d.ts +2 -1
- package/dist/serialization/types/RulesengineCondition.d.ts +1 -0
- package/dist/serialization/types/RulesengineFeatureEntitlement.d.ts +1 -0
- package/dist/serialization/types/ScheduledDowngradeResponseData.d.ts +2 -1
- package/dist/serialization/types/UpcomingInvoiceResponseData.d.ts +2 -1
- package/dist/serialization/types/UpdateEntitlementReqCommon.d.ts +1 -0
- package/dist/serialization/types/UpsertBillingProductRequestBody.d.ts +2 -1
- package/dist/serialization/types/UsageBasedEntitlementRequestBody.d.ts +2 -1
- package/dist/serialization/types/index.d.ts +25 -0
- package/dist/wasm/rulesengine.js +1 -1
- package/package.json +3 -3
|
@@ -7,15 +7,20 @@ import type * as Schematic from "../../../../index";
|
|
|
7
7
|
* }
|
|
8
8
|
*/
|
|
9
9
|
export interface PublishPlanVersionRequestBody {
|
|
10
|
+
/** When the company gets the plan. On a custom-plan republish, on_payment is only accepted when the amendment is invoiced today (migration_strategy immediate, proration_behavior always_invoice, collection_method send_invoice): the company stays on its current version until that invoice is paid. */
|
|
10
11
|
activationStrategy?: Schematic.CustomPlanActivationStrategy;
|
|
11
12
|
address?: Schematic.CustomerBillingAddress;
|
|
12
13
|
/** The date the subscription's billing period renews on. Only honored on a first publish that starts a subscription. */
|
|
13
14
|
billingCycleAnchor?: Date;
|
|
14
15
|
/** The date the contract term starts. A past date backdates the subscription so the first invoice covers the term from this date to the renewal date. Requires billing_cycle_anchor. Only honored on a first publish that starts a subscription. */
|
|
15
16
|
billingStartDate?: Date;
|
|
17
|
+
/** How the invoice a custom-plan republish raises today is collected. send_invoice (the default) issues it for the company to pay; charge_automatically charges the default payment method straight away. Only accepted on a custom-plan republish with migration_strategy immediate and proration_behavior always_invoice. */
|
|
18
|
+
collectionMethod?: Schematic.BillingCollectionMethod;
|
|
19
|
+
/** A Stripe coupon to apply. On a custom-plan republish it discounts the amendment invoice and is only used when that invoice is raised today; it must exist in Stripe. It is attached to the subscription, so a repeating or forever coupon also discounts the renewals that follow. */
|
|
16
20
|
couponExternalId?: string;
|
|
17
21
|
customFieldValues?: Schematic.CheckoutFieldValue[];
|
|
18
22
|
customerEmail?: string;
|
|
23
|
+
/** Payment terms in days. On a custom-plan republish they apply to the amendment invoice only, leave the subscription's renewal terms unchanged, and are only used when that invoice is raised today and sent rather than charged. Defaults to the subscription's terms. */
|
|
19
24
|
daysUntilDue?: number;
|
|
20
25
|
excludedCompanyIds: string[];
|
|
21
26
|
migrationStrategy: Schematic.PlanVersionMigrationStrategy;
|
|
@@ -4,6 +4,7 @@ export type { CreateBillingLinkedPlanRequestBody } from "./CreateBillingLinkedPl
|
|
|
4
4
|
export type { CreateCustomPlanRequestBody } from "./CreateCustomPlanRequestBody";
|
|
5
5
|
export type { DeletePlanVersionRequest } from "./DeletePlanVersionRequest";
|
|
6
6
|
export type { GetPlanRequest } from "./GetPlanRequest";
|
|
7
|
+
export type { GetPlanVersionDiffRequest } from "./GetPlanVersionDiffRequest";
|
|
7
8
|
export type { ListBillingProductMatchCompaniesRequest } from "./ListBillingProductMatchCompaniesRequest";
|
|
8
9
|
export type { ListCustomPlanBillingsRequest } from "./ListCustomPlanBillingsRequest";
|
|
9
10
|
export type { ListPlanIssuesRequest } from "./ListPlanIssuesRequest";
|
|
@@ -9,7 +9,7 @@ export interface ListCustomPlanBillingsParams {
|
|
|
9
9
|
limit?: number;
|
|
10
10
|
/** Page offset (default 0) */
|
|
11
11
|
offset?: number;
|
|
12
|
-
/** Filter by the flow that created the billing record. Defaults to custom_plan. */
|
|
12
|
+
/** Filter by the flow that created the billing record: custom_plan for a first publish, amendment for a republish, manage_plan for a standard plan assigned by invoice. Defaults to custom_plan. */
|
|
13
13
|
planBillingSource?: Schematic.PlanBillingSource;
|
|
14
14
|
/** Filter by plan ID */
|
|
15
15
|
planId?: string;
|
|
@@ -9,6 +9,8 @@ export * from "./DeletePlanVersionParams";
|
|
|
9
9
|
export * from "./DeletePlanVersionResponse";
|
|
10
10
|
export * from "./GetPlanParams";
|
|
11
11
|
export * from "./GetPlanResponse";
|
|
12
|
+
export * from "./GetPlanVersionDiffParams";
|
|
13
|
+
export * from "./GetPlanVersionDiffResponse";
|
|
12
14
|
export * from "./ListBillingProductMatchCompaniesParams";
|
|
13
15
|
export * from "./ListBillingProductMatchCompaniesResponse";
|
|
14
16
|
export * from "./ListCustomPlanBillingsParams";
|
|
@@ -10,7 +10,7 @@ export interface BillingCreditGrantResponseData {
|
|
|
10
10
|
creditIcon?: string;
|
|
11
11
|
creditId: string;
|
|
12
12
|
creditName: string;
|
|
13
|
-
currency?:
|
|
13
|
+
currency?: Schematic.Currency;
|
|
14
14
|
expiresAt?: Date;
|
|
15
15
|
grantReason: Schematic.BillingCreditGrantReason;
|
|
16
16
|
id: string;
|
|
@@ -20,7 +20,7 @@ export interface BillingCreditGrantResponseData {
|
|
|
20
20
|
planName?: string;
|
|
21
21
|
/** What the postpaid charges costs, in the currency's minor unit. */
|
|
22
22
|
postpaidChargeAmount?: number;
|
|
23
|
-
postpaidChargeCurrency?:
|
|
23
|
+
postpaidChargeCurrency?: Schematic.Currency;
|
|
24
24
|
/** Credits consumed past a zero balance in the window still open. */
|
|
25
25
|
postpaidChargedCredits?: number;
|
|
26
26
|
price?: Schematic.BillingPriceResponseData;
|
|
@@ -2,7 +2,7 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface BillingPriceView {
|
|
3
3
|
billingScheme: Schematic.BillingPriceScheme;
|
|
4
4
|
createdAt: Date;
|
|
5
|
-
currency:
|
|
5
|
+
currency: Schematic.Currency;
|
|
6
6
|
id: string;
|
|
7
7
|
interval: Schematic.BillingProductPriceInterval;
|
|
8
8
|
intervalCount: number;
|
|
@@ -3,7 +3,7 @@ export interface BillingProductForSubscriptionResponseData {
|
|
|
3
3
|
billingScheme: Schematic.BillingPriceScheme;
|
|
4
4
|
billingThreshold?: number;
|
|
5
5
|
createdAt: Date;
|
|
6
|
-
currency:
|
|
6
|
+
currency: Schematic.Currency;
|
|
7
7
|
environmentId: string;
|
|
8
8
|
externalId: string;
|
|
9
9
|
id: string;
|
|
@@ -2,7 +2,7 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface BillingProductPriceResponseData {
|
|
3
3
|
billingScheme: Schematic.BillingPriceScheme;
|
|
4
4
|
createdAt: Date;
|
|
5
|
-
currency:
|
|
5
|
+
currency: Schematic.Currency;
|
|
6
6
|
id: string;
|
|
7
7
|
interval: Schematic.BillingProductPriceInterval;
|
|
8
8
|
intervalCount: number;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
1
2
|
export interface BillingSubscriptionDiscountView {
|
|
2
3
|
amountOff?: number;
|
|
3
4
|
couponId: string;
|
|
4
5
|
couponName: string;
|
|
5
|
-
currency?:
|
|
6
|
+
currency?: Schematic.Currency;
|
|
6
7
|
customerFacingCode?: string;
|
|
7
8
|
discountExternalId: string;
|
|
8
9
|
duration: string;
|
|
@@ -5,7 +5,7 @@ export interface BillingSubscriptionView {
|
|
|
5
5
|
cancelAtPeriodEnd: boolean;
|
|
6
6
|
companyId?: string;
|
|
7
7
|
createdAt: Date;
|
|
8
|
-
currency:
|
|
8
|
+
currency: Schematic.Currency;
|
|
9
9
|
customerExternalId: string;
|
|
10
10
|
defaultPaymentMethodId?: string;
|
|
11
11
|
discounts: Schematic.BillingSubscriptionDiscountView[];
|
|
@@ -7,7 +7,7 @@ export interface ChangeSubscriptionInternalRequestBody {
|
|
|
7
7
|
couponExternalId?: string;
|
|
8
8
|
creditBundles: Schematic.UpdateCreditBundleRequestBody[];
|
|
9
9
|
/** ISO 4217 currency this cart is being built in. Prices are still selected by id; this records the intent, and a cart that prices in another currency is reported as a problem. */
|
|
10
|
-
currency?:
|
|
10
|
+
currency?: Schematic.Currency;
|
|
11
11
|
customFieldValues: Schematic.CheckoutFieldValue[];
|
|
12
12
|
newPlanId: string;
|
|
13
13
|
newPriceId: string;
|
|
@@ -6,7 +6,7 @@ export interface ChangeSubscriptionRequestBody {
|
|
|
6
6
|
couponExternalId?: string;
|
|
7
7
|
creditBundles: Schematic.UpdateCreditBundleRequestBody[];
|
|
8
8
|
/** ISO 4217 currency this cart is being built in. Prices are still selected by id; this records the intent, and a cart that prices in another currency is reported as a problem. */
|
|
9
|
-
currency?:
|
|
9
|
+
currency?: Schematic.Currency;
|
|
10
10
|
customFieldValues: Schematic.CheckoutFieldValue[];
|
|
11
11
|
newPlanId: string;
|
|
12
12
|
newPriceId: string;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare const CheckoutProblemCode: {
|
|
2
|
+
readonly AddOnConflictsWithPlan: "add_on_conflicts_with_plan";
|
|
3
|
+
readonly AddOnIntervalMismatch: "add_on_interval_mismatch";
|
|
4
|
+
readonly AddOnRequiresBilledPlan: "add_on_requires_billed_plan";
|
|
5
|
+
readonly AddOnUnavailable: "add_on_unavailable";
|
|
6
|
+
readonly BillingCycleAnchorConflictsWithTrial: "billing_cycle_anchor_conflicts_with_trial";
|
|
7
|
+
readonly BillingCycleAnchorMustBeFuture: "billing_cycle_anchor_must_be_future";
|
|
8
|
+
readonly BillingCycleAnchorNeedsNewSubscription: "billing_cycle_anchor_needs_new_subscription";
|
|
9
|
+
readonly BillingCycleAnchorWithoutPlan: "billing_cycle_anchor_without_plan";
|
|
10
|
+
readonly BillingStartDateMustBePast: "billing_start_date_must_be_past";
|
|
11
|
+
readonly BillingStartDateNeedsNewSubscription: "billing_start_date_needs_new_subscription";
|
|
12
|
+
readonly BillingStartDateNeedsRenewalDate: "billing_start_date_needs_renewal_date";
|
|
13
|
+
readonly BillingStartDateNotBeforeRenewalDate: "billing_start_date_not_before_renewal_date";
|
|
14
|
+
readonly BillingStartDateTooFarInPast: "billing_start_date_too_far_in_past";
|
|
15
|
+
readonly CreditBundleIncompatible: "credit_bundle_incompatible";
|
|
16
|
+
readonly CreditBundleUnavailable: "credit_bundle_unavailable";
|
|
17
|
+
readonly CreditBundlesActivateOnPayment: "credit_bundles_activate_on_payment";
|
|
18
|
+
readonly CurrencyMismatch: "currency_mismatch";
|
|
19
|
+
readonly CustomFieldRequired: "custom_field_required";
|
|
20
|
+
readonly DiscountIneligible: "discount_ineligible";
|
|
21
|
+
readonly DowngradeNotPermitted: "downgrade_not_permitted";
|
|
22
|
+
readonly FreeFirstPeriodActivatesOnPayment: "free_first_period_activates_on_payment";
|
|
23
|
+
readonly InvoiceEmailRequired: "invoice_email_required";
|
|
24
|
+
readonly InvoicedSubscriptionConflictsWithTrial: "invoiced_subscription_conflicts_with_trial";
|
|
25
|
+
readonly InvoicedSubscriptionNeedsNewSubscription: "invoiced_subscription_needs_new_subscription";
|
|
26
|
+
readonly InvoicedSubscriptionRequiresPlan: "invoiced_subscription_requires_plan";
|
|
27
|
+
readonly OptInRequired: "opt_in_required";
|
|
28
|
+
readonly PayInAdvancePriceInvalid: "pay_in_advance_price_invalid";
|
|
29
|
+
readonly PayInAdvanceRequired: "pay_in_advance_required";
|
|
30
|
+
readonly PaymentMethodRequired: "payment_method_required";
|
|
31
|
+
readonly PlanNotTrialable: "plan_not_trialable";
|
|
32
|
+
readonly PlanUnavailable: "plan_unavailable";
|
|
33
|
+
readonly PriceUnavailable: "price_unavailable";
|
|
34
|
+
readonly ProrateFirstPeriodWithoutAnchor: "prorate_first_period_without_anchor";
|
|
35
|
+
readonly ProviderRejected: "provider_rejected";
|
|
36
|
+
readonly ScheduledChangeBlocksPurchase: "scheduled_change_blocks_purchase";
|
|
37
|
+
readonly ScheduledChangePending: "scheduled_change_pending";
|
|
38
|
+
readonly SelectionInvalid: "selection_invalid";
|
|
39
|
+
readonly SubscriptionCurrencyChange: "subscription_currency_change";
|
|
40
|
+
readonly TrialEndMustBeFuture: "trial_end_must_be_future";
|
|
41
|
+
readonly TrialEndTooFar: "trial_end_too_far";
|
|
42
|
+
readonly TrialExcludesAddOns: "trial_excludes_add_ons";
|
|
43
|
+
readonly TrialExcludesUsageBased: "trial_excludes_usage_based";
|
|
44
|
+
readonly UsagePriceMissingForInterval: "usage_price_missing_for_interval";
|
|
45
|
+
readonly UsageOverLimit: "usage_over_limit";
|
|
46
|
+
};
|
|
47
|
+
export type CheckoutProblemCode = (typeof CheckoutProblemCode)[keyof typeof CheckoutProblemCode];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CheckoutProblemResponseData {
|
|
3
|
+
/** Whether completing the checkout would be refused while this stands. */
|
|
4
|
+
blocking: boolean;
|
|
5
|
+
bundleId?: string;
|
|
6
|
+
code: Schematic.CheckoutProblemCode;
|
|
7
|
+
/** The currency this problem is about, when it is about one. */
|
|
8
|
+
currency?: Schematic.Currency;
|
|
9
|
+
/** Diagnostic detail for operators, including what the billing provider said. Never shown to a customer. */
|
|
10
|
+
detail?: string;
|
|
11
|
+
featureId?: string;
|
|
12
|
+
fieldId?: string;
|
|
13
|
+
/** What is wrong, in words safe for anyone allowed to read the checkout. */
|
|
14
|
+
message: string;
|
|
15
|
+
paymentMethodId?: string;
|
|
16
|
+
planId?: string;
|
|
17
|
+
priceId?: string;
|
|
18
|
+
source: Schematic.CheckoutProblemSource;
|
|
19
|
+
}
|
|
@@ -7,7 +7,7 @@ export interface CheckoutSubscription {
|
|
|
7
7
|
confirmPaymentIntentClientSecret?: string;
|
|
8
8
|
confirmPaymentIntentId?: string;
|
|
9
9
|
createdAt: Date;
|
|
10
|
-
currency:
|
|
10
|
+
currency: Schematic.Currency;
|
|
11
11
|
customerExternalId: string;
|
|
12
12
|
defaultPaymentMethodId?: string;
|
|
13
13
|
expiredAt?: Date;
|
|
@@ -3,7 +3,7 @@ export interface CompanyBillingEntitySubscriptionResponseData {
|
|
|
3
3
|
cancelAt?: Date;
|
|
4
4
|
cancelAtPeriodEnd: boolean;
|
|
5
5
|
company?: Schematic.CompanyResponseData;
|
|
6
|
-
currency:
|
|
6
|
+
currency: Schematic.Currency;
|
|
7
7
|
customerExternalId: string;
|
|
8
8
|
discounts: Schematic.BillingSubscriptionDiscountView[];
|
|
9
9
|
expiredAt?: Date;
|
|
@@ -12,6 +12,8 @@ export interface CompanyOverrideResponseData {
|
|
|
12
12
|
metricPeriod?: Schematic.MetricPeriod;
|
|
13
13
|
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
14
14
|
notes: Schematic.CompanyOverrideNoteResponseData[];
|
|
15
|
+
/** Credits per unit of the quantity (per token for inference features), keyed by quantity key. Absent when the entitlement prices requests only. */
|
|
16
|
+
quantityRates?: Record<string, number>;
|
|
15
17
|
ruleId?: string;
|
|
16
18
|
ruleIdUsageExceeded?: string;
|
|
17
19
|
updatedAt: Date;
|
|
@@ -17,6 +17,7 @@ export interface CompanyPlanDetailResponseData {
|
|
|
17
17
|
controlledBy: Schematic.BillingProviderType;
|
|
18
18
|
copiedFromPlanId?: string;
|
|
19
19
|
createdAt: Date;
|
|
20
|
+
creditVisibility?: Schematic.PlanCreditVisibility[];
|
|
20
21
|
credits: Schematic.BillingCreditResponseData[];
|
|
21
22
|
currencyPrices: Schematic.PlanCurrencyPricesResponseData[];
|
|
22
23
|
current: boolean;
|
|
@@ -2,7 +2,7 @@ import type * as Schematic from "../index";
|
|
|
2
2
|
export interface CompanySubscriptionResponseData {
|
|
3
3
|
cancelAt?: Date;
|
|
4
4
|
cancelAtPeriodEnd: boolean;
|
|
5
|
-
currency:
|
|
5
|
+
currency: Schematic.Currency;
|
|
6
6
|
customerExternalId: string;
|
|
7
7
|
discounts: Schematic.BillingSubscriptionDiscountView[];
|
|
8
8
|
expiredAt?: Date;
|
|
@@ -12,6 +12,7 @@ export interface Condition {
|
|
|
12
12
|
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
13
13
|
metricValue?: number;
|
|
14
14
|
operator: Schematic.ComparableOperator;
|
|
15
|
+
quantityRates?: Record<string, number>;
|
|
15
16
|
resourceIds: string[];
|
|
16
17
|
traitDefinition?: Schematic.TraitDefinition;
|
|
17
18
|
traitValue: string;
|
|
@@ -15,6 +15,7 @@ export interface ConditionResponseData {
|
|
|
15
15
|
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
16
16
|
metricValue?: number;
|
|
17
17
|
operator: Schematic.ComparableOperator;
|
|
18
|
+
quantityRates?: Record<string, number>;
|
|
18
19
|
resourceUnspecifiedIds: string[];
|
|
19
20
|
ruleId: string;
|
|
20
21
|
traitEntityType?: Schematic.EntityType;
|
|
@@ -20,6 +20,7 @@ export interface ConditionView {
|
|
|
20
20
|
operator: Schematic.ComparableOperator;
|
|
21
21
|
planVersions: Schematic.GenericPreviewObject[];
|
|
22
22
|
plans: Schematic.GenericPreviewObject[];
|
|
23
|
+
quantityRates?: Record<string, number>;
|
|
23
24
|
resourceUnspecifiedIds: string[];
|
|
24
25
|
ruleId: string;
|
|
25
26
|
trait?: Schematic.EntityTraitDefinitionResponseData;
|
|
@@ -3,7 +3,7 @@ export interface CreateEntitlementInBundleRequestBody {
|
|
|
3
3
|
billingProductId?: string;
|
|
4
4
|
billingThreshold?: number;
|
|
5
5
|
creditConsumptionRate?: number;
|
|
6
|
-
currency?:
|
|
6
|
+
currency?: Schematic.Currency;
|
|
7
7
|
currencyPrices?: Schematic.CurrencyPriceRequestBody[];
|
|
8
8
|
featureId: string;
|
|
9
9
|
metricPeriod?: Schematic.MetricPeriod;
|
|
@@ -22,6 +22,8 @@ export interface CreateEntitlementInBundleRequestBody {
|
|
|
22
22
|
priceBehavior?: Schematic.EntitlementPriceBehavior;
|
|
23
23
|
/** Use MonthlyPriceTiers or YearlyPriceTiers instead */
|
|
24
24
|
priceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
25
|
+
/** Credits per unit of the quantity (per token for inference features), keyed by quantity key. Inference features may price input_tokens, output_tokens, cached_input_tokens, cache_creation_input_tokens and reasoning_tokens; reasoning_tokens is priced on top of output_tokens, so leave its rate at zero for providers that count reasoning inside output. Omit to leave the schedule as it is; send null to clear it. */
|
|
26
|
+
quantityRates?: Record<string, number>;
|
|
25
27
|
quarterlyMeteredPriceId?: string;
|
|
26
28
|
quarterlyPriceTiers?: Schematic.CreatePriceTierRequestBody[];
|
|
27
29
|
quarterlyUnitPrice?: number;
|
|
@@ -4,6 +4,8 @@ export interface CreateEntitlementReqCommon {
|
|
|
4
4
|
featureId: string;
|
|
5
5
|
metricPeriod?: Schematic.MetricPeriod;
|
|
6
6
|
metricPeriodMonthReset?: Schematic.MetricPeriodMonthReset;
|
|
7
|
+
/** Credits per unit of the quantity (per token for inference features), keyed by quantity key. Inference features may price input_tokens, output_tokens, cached_input_tokens, cache_creation_input_tokens and reasoning_tokens; reasoning_tokens is priced on top of output_tokens, so leave its rate at zero for providers that count reasoning inside output. Omit to leave the schedule as it is; send null to clear it. */
|
|
8
|
+
quantityRates?: Record<string, number>;
|
|
7
9
|
valueBool?: boolean;
|
|
8
10
|
valueCreditId?: string;
|
|
9
11
|
valueNumeric?: number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CreditBalanceEventResponseData {
|
|
3
|
+
amount: number;
|
|
4
|
+
eventType: Schematic.CreditEventType;
|
|
5
|
+
grantId?: string;
|
|
6
|
+
grantReason?: Schematic.BillingCreditGrantReason;
|
|
7
|
+
planId?: string;
|
|
8
|
+
timestamp: Date;
|
|
9
|
+
zeroedOutReason?: Schematic.BillingCreditGrantZeroedOutReason;
|
|
10
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CreditBalancePointResponseData {
|
|
3
|
+
balance: number;
|
|
4
|
+
/** Credits drawn during this day, as a positive number */
|
|
5
|
+
consumed: number;
|
|
6
|
+
consumedByFeature: Schematic.CreditBalanceFeatureConsumptionResponseData[];
|
|
7
|
+
/** Start of the UTC day this point covers */
|
|
8
|
+
timestamp: Date;
|
|
9
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Schematic from "../index";
|
|
2
|
+
export interface CreditBalanceTimeSeriesResponseData {
|
|
3
|
+
balancePoints: Schematic.CreditBalancePointResponseData[];
|
|
4
|
+
billingCreditId: string;
|
|
5
|
+
events: Schematic.CreditBalanceEventResponseData[];
|
|
6
|
+
/** True when an external provider owns this credit's ledger, in which case Schematic has no history to report and the series is empty */
|
|
7
|
+
external: boolean;
|
|
8
|
+
}
|
|
@@ -10,7 +10,7 @@ export interface CreditCompanyGrantView {
|
|
|
10
10
|
creditDescription: string;
|
|
11
11
|
creditIcon?: string;
|
|
12
12
|
creditName: string;
|
|
13
|
-
currency?:
|
|
13
|
+
currency?: Schematic.Currency;
|
|
14
14
|
exhaustedAt?: Date;
|
|
15
15
|
expiresAt?: Date;
|
|
16
16
|
expiryType?: Schematic.BillingCreditExpiryType;
|
|
@@ -23,7 +23,7 @@ export interface CreditCompanyGrantView {
|
|
|
23
23
|
planName?: string;
|
|
24
24
|
pluralName?: string;
|
|
25
25
|
postpaidChargeAmount?: number;
|
|
26
|
-
postpaidChargeCurrency?:
|
|
26
|
+
postpaidChargeCurrency?: Schematic.Currency;
|
|
27
27
|
postpaidChargedCredits?: number;
|
|
28
28
|
postpaidPeriodEnd?: Date;
|
|
29
29
|
postpaidRate?: number;
|
|
@@ -4,14 +4,17 @@ export interface CreditEventLedgerResponseData {
|
|
|
4
4
|
autoTopupLogId?: string;
|
|
5
5
|
billingCreditBundleId?: string;
|
|
6
6
|
billingCreditId?: string;
|
|
7
|
+
/** The part of the draw this row covers: one line per priced quantity, including the request line, summing to the row amount. Set on inference-driven draws only. */
|
|
8
|
+
burnBreakdown?: Schematic.CreditBurnBreakdownLine[];
|
|
7
9
|
company?: Schematic.CompanyLedgerResponseData;
|
|
8
10
|
companyId: string;
|
|
9
11
|
credit?: Schematic.BillingCreditLedgerResponseData;
|
|
10
12
|
creditName: string;
|
|
11
|
-
currency?:
|
|
13
|
+
currency?: Schematic.Currency;
|
|
12
14
|
environmentId: string;
|
|
13
15
|
eventAt: Date;
|
|
14
16
|
eventId: string;
|
|
17
|
+
eventIds: string[];
|
|
15
18
|
eventType: Schematic.CreditEventType;
|
|
16
19
|
expiryType?: Schematic.BillingCreditExpiryType;
|
|
17
20
|
expiryUnit?: Schematic.BillingCreditExpiryUnit;
|