Home > @poq/sdk > CartItemWithProductResponse > (constructor)
Constructs a new instance of the CartItemWithProductResponse
class
Signature:
constructor(params: {
id: string;
variantId: string;
quantity: number;
price: Price;
isInStock: boolean;
brand?: string;
color?: string;
title?: string;
productId?: string;
product?: CartProductResponse;
total?: Price;
variantName?: string;
thumbnailUrl?: string;
listingId?: string;
customData?: Record<string, unknown>;
});
Parameter | Type | Description |
---|---|---|
params | { id: string; variantId: string; quantity: number; price: Price; isInStock: boolean; brand?: string; color?: string; title?: string; productId?: string; product?: CartProductResponse; total?: Price; variantName?: string; thumbnailUrl?: string; listingId?: string; customData?: Record<string, unknown>; } |