Home > @poq/sdk > ProductVariant > (constructor)
Constructs a new instance of the ProductVariant
class
Signature:
constructor(params: {
id: string;
name: string;
images: Images;
listingId: string;
prices: Map<string, Price>;
meta: VariantMeta;
filterAttributes?: FilterAttribute[];
forms?: Map<string, FormVariant>;
stock?: Stock;
categoryIds?: string[];
customData?: Record<string, unknown>;
});
Parameter | Type | Description |
---|---|---|
params | { id: string; name: string; images: Images; listingId: string; prices: Map<string, Price>; meta: VariantMeta; filterAttributes?: FilterAttribute[]; forms?: Map<string, FormVariant>; stock?: Stock; categoryIds?: string[]; customData?: Record<string, unknown>; } |