[**@wocart/storefront v3.1.0**](../../README)

***

[@wocart/storefront](../../README) / [index](../README) / BasketSchema

# Variable: BasketSchema

> `const` **BasketSchema**: `z.ZodObject`\<\{ `lines`: `z.ZodArray`\<`z.ZodObject`\<\{ `href`: `z.ZodOptional`\<`z.ZodString`\>; `image`: `z.ZodOptional`\<`z.ZodString`\>; `offerId`: `z.ZodOptional`\<`z.ZodString`\>; `productId`: `z.ZodString`; `productName`: `z.ZodString`; `quantity`: `z.ZodNumber`; `unitPrice`: `z.ZodNumber`; `variantId`: `z.ZodNullable`\<`z.ZodString`\>; `variantLabel`: `z.ZodNullable`\<`z.ZodString`\>; \}, `z.core.$strip`\>\>; \}, `z.core.$strip`\>

A canonical browser basket. Empty is valid for a persisted cart, but every
line must be unique by product + variant. Order submission requires at
least one line and is governed by the Checkout Draft invariant below.
