Skip to content

CartItem

The CartItem type represents the possible item types within a cart. In summary, its signature and the types used follow this contract:

type CartItem = {
id: string
name: string
quantity: number
seller: string
sellingPrice: number
listPrice: number
manualPrice?: number
price: number
imageUrl: string
productRefId?: string
attachments?: Attachment[]
};

Attachment

The Attachment type is defined as:

type Attachment = {
name: string;
content: Record<string, string>;
};