import * as z from "zod/v4-mini"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ProductPriceMeter, ProductPriceMeter$Outbound } from "./productpricemeter.js"; import { ProductPriceSource } from "./productpricesource.js"; import { TaxBehaviorOption } from "./taxbehavioroption.js"; /** * A metered, usage-based, price for a product, with a fixed unit price. */ export type ProductPriceMeteredUnit = { /** * Creation timestamp of the object. */ createdAt: Date; /** * Last modification timestamp of the object. */ modifiedAt: Date | null; /** * The ID of the price. */ id: string; source: ProductPriceSource; amountType: "metered_unit"; /** * The currency in which the customer will be charged. */ priceCurrency: string; /** * The tax behavior of the price. If null, it defaults to the organization's default tax behavior. */ taxBehavior: TaxBehaviorOption | null; /** * Whether the price is archived and no longer available. */ isArchived: boolean; /** * The ID of the product owning the price. */ productId: string; /** * The price per unit in cents. */ unitAmount: string; /** * The maximum amount in cents that can be charged, regardless of the number of units consumed. */ capAmount: number | null; /** * The ID of the meter associated to the price. */ meterId: string; /** * A meter associated to a metered price. */ meter: ProductPriceMeter; }; /** @internal */ export declare const ProductPriceMeteredUnit$inboundSchema: z.ZodMiniType; /** @internal */ export type ProductPriceMeteredUnit$Outbound = { created_at: string; modified_at: string | null; id: string; source: string; amount_type: "metered_unit"; price_currency: string; tax_behavior: string | null; is_archived: boolean; product_id: string; unit_amount: string; cap_amount: number | null; meter_id: string; meter: ProductPriceMeter$Outbound; }; /** @internal */ export declare const ProductPriceMeteredUnit$outboundSchema: z.ZodMiniType; export declare function productPriceMeteredUnitToJSON(productPriceMeteredUnit: ProductPriceMeteredUnit): string; export declare function productPriceMeteredUnitFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=productpricemeteredunit.d.ts.map