import * as z from "zod"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { Amount, Amount$Outbound } from "./amount.js"; export type CartItem = { /** * The name of a given item. */ name: string; /** * This value is used by Bolt as an external reference to a given item. */ reference: string; /** * A human-readable description of this cart item. */ description?: string | undefined; /** * A monetary amount, i.e. a base unit amount and a supported currency. */ totalAmount: Amount; /** * The item's unit price, i.e. the cost of a single item exclusive of tax and discounts. */ unitPrice: number; /** * The number of units that comprise this cart item. */ quantity: number; /** * Used to provide a link to the image associated with the item. */ imageUrl?: string | undefined; }; /** @internal */ export declare const CartItem$inboundSchema: z.ZodType; /** @internal */ export type CartItem$Outbound = { name: string; reference: string; description?: string | undefined; total_amount: Amount$Outbound; unit_price: number; quantity: number; image_url?: string | undefined; }; /** @internal */ export declare const CartItem$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace CartItem$ { /** @deprecated use `CartItem$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `CartItem$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `CartItem$Outbound` instead. */ type Outbound = CartItem$Outbound; } export declare function cartItemToJSON(cartItem: CartItem): string; export declare function cartItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=cartitem.d.ts.map