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"; import { CartDiscount, CartDiscount$Outbound } from "./cartdiscount.js"; import { CartItem, CartItem$Outbound } from "./cartitem.js"; import { CartShipment, CartShipment$Outbound } from "./cartshipment.js"; export type Cart = { /** * This value is used by Bolt as an external reference to a given order. This reference must be unique per successful transaction. */ orderReference: string; /** * Used optionally to pass additional information like order numbers or other IDs as needed. */ orderDescription?: string | undefined; /** * A shopper-facing identifier corresponding to the order reference associated with this transaction. */ displayId?: string | undefined; shipments?: Array | undefined; discounts?: Array | undefined; items?: Array | undefined; /** * A monetary amount, i.e. a base unit amount and a supported currency. */ total: Amount; /** * A monetary amount, i.e. a base unit amount and a supported currency. */ tax: Amount; }; /** @internal */ export declare const Cart$inboundSchema: z.ZodType; /** @internal */ export type Cart$Outbound = { order_reference: string; order_description?: string | undefined; display_id?: string | undefined; shipments?: Array | undefined; discounts?: Array | undefined; items?: Array | undefined; total: Amount$Outbound; tax: Amount$Outbound; }; /** @internal */ export declare const Cart$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 Cart$ { /** @deprecated use `Cart$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Cart$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Cart$Outbound` instead. */ type Outbound = Cart$Outbound; } export declare function cartToJSON(cart: Cart): string; export declare function cartFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=cart.d.ts.map