Wocart

@wocart/storefront v3.1.0


@wocart/storefront / index / BasketLineInputSchema

Variable: BasketLineInputSchema

const BasketLineInputSchema: z.ZodObject<{ offerId: z.ZodOptional<z.ZodString>; pricePerUnit: z.ZodOptional<z.ZodNumber>; productId: z.ZodString; productName: z.ZodString; quantity: z.ZodNumber; variantId: z.ZodOptional<z.ZodNullable<z.ZodString>>; variantLabel: z.ZodOptional<z.ZodNullable<z.ZodString>>; }, z.core.$strip>

The server-facing projection of a basket line. UI-only fields are omitted, and pricePerUnit remains display-only even when present.