Poq.SDK.Node

Home > @poq/sdk > ProductVariant > (constructor)

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>;
    });

Parameters

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>; }