import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { AddonResponse } from "./addon-response.js"; import { BillingCadence } from "./billing-cadence.js"; import { BillingModel } from "./billing-model.js"; import { BillingPeriod } from "./billing-period.js"; import { BillingTier } from "./billing-tier.js"; import { GroupResponse } from "./group-response.js"; import { InvoiceCadence } from "./invoice-cadence.js"; import { MeterResponse } from "./meter-response.js"; import { PlanResponse } from "./plan-response.js"; import { PriceEntityType } from "./price-entity-type.js"; import { PriceFeatureResponse } from "./price-feature-response.js"; import { PriceJSONBTransformQuantity } from "./price-jsonb-transform-quantity.js"; import { PricePriceTier } from "./price-price-tier.js"; import { PriceType } from "./price-type.js"; import { PriceUnitResponse } from "./price-unit-response.js"; import { PriceUnitType } from "./price-unit-type.js"; import { SDKValidationError } from "./sdk-validation-error.js"; import { Status } from "./status.js"; export type PriceResponse = { addon?: AddonResponse | undefined; /** * Amount stored in main currency units (e.g., dollars, not cents) * * @remarks * For USD: 12.50 means $12.50 */ amount?: string | undefined; billingCadence?: BillingCadence | undefined; billingModel?: BillingModel | undefined; billingPeriod?: BillingPeriod | undefined; /** * BillingPeriodCount is the count of the billing period ex 1, 3, 6, 12 */ billingPeriodCount?: number | undefined; /** * ConversionRate is the conversion rate of the price unit to the fiat currency */ conversionRate?: string | undefined; createdAt?: Date | undefined; createdBy?: string | undefined; /** * Currency 3 digit ISO currency code in lowercase ex usd, eur, gbp */ currency?: string | undefined; /** * Description of the price */ description?: string | undefined; /** * DisplayAmount is the formatted amount with currency symbol * * @remarks * For USD: $12.50 */ displayAmount?: string | undefined; /** * DisplayName is the name of the price */ displayName?: string | undefined; /** * DisplayPriceUnitAmount is the formatted amount of the price unit */ displayPriceUnitAmount?: string | undefined; /** * EndDate is the end date of the price */ endDate?: Date | undefined; /** * EntityID holds the value of the "entity_id" field. */ entityId?: string | undefined; entityType?: PriceEntityType | undefined; /** * EnvironmentID is the environment identifier for the price */ environmentId?: string | undefined; feature?: PriceFeatureResponse | undefined; group?: GroupResponse | undefined; /** * GroupID references the group this price belongs to */ groupId?: string | undefined; /** * ID uuid identifier for the price */ id?: string | undefined; invoiceCadence?: InvoiceCadence | undefined; /** * LookupKey used for looking up the price in the database */ lookupKey?: string | undefined; metadata?: { [k: string]: string; } | undefined; meter?: MeterResponse | undefined; /** * MeterID is the id of the meter for usage based pricing */ meterId?: string | undefined; /** * MinQuantity is the minimum quantity of the price */ minQuantity?: string | null | undefined; /** * ParentPriceID references the root price (always set for price lineage tracking) */ parentPriceId?: string | undefined; plan?: PlanResponse | undefined; /** * PriceUnit is the code of the price unit (e.g., 'btc', 'eth') */ priceUnit?: string | undefined; /** * PriceUnitAmount is the amount of the price unit */ priceUnitAmount?: string | undefined; /** * PriceUnitID is the id of the price unit (for CUSTOM type) */ priceUnitId?: string | undefined; /** * PriceUnitTiers are the tiers for the price unit when BillingModel is TIERED */ priceUnitTiers?: Array | undefined; priceUnitType?: PriceUnitType | undefined; pricingUnit?: PriceUnitResponse | undefined; /** * Sequence is the monotonic stamp bumped on every state change that * * @remarks * subscription line items need to react to. Read by the plan-price sync; * set by the database (DEFAULT nextval) on create and by the price * repository on termination / compatibility-affecting edits. */ sequence?: number | undefined; /** * StartDate is the start date of the price */ startDate?: Date | undefined; status?: Status | undefined; tenantId?: string | undefined; tierMode?: BillingTier | undefined; tiers?: Array | undefined; transformQuantity?: PriceJSONBTransformQuantity | undefined; /** * TrialPeriodDays is the number of days for the trial period * * @remarks * Note: This is only applicable for recurring prices (BILLING_CADENCE_RECURRING) */ trialPeriodDays?: number | undefined; type?: PriceType | undefined; updatedAt?: Date | undefined; updatedBy?: string | undefined; }; /** @internal */ export declare const PriceResponse$inboundSchema: z.ZodMiniType; export declare function priceResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=price-response.d.ts.map