Poq.SDK.Node

Home > @poq/sdk-sfcc > ProductSearchHit > (constructor)

ProductSearchHit.(constructor)

Constructs a new instance of the ProductSearchHit class

Signature:

constructor(params?: {
        currency?: string;
        hitType?: string;
        image?: Image;
        link?: string;
        orderable?: boolean;
        price?: number;
        priceMax?: number;
        pricePerUnit?: number;
        pricePerUnitMax?: number;
        prices?: {
            [key: string]: number;
        };
        productId?: string;
        productName?: string;
        productType?: ProductType;
        representedProduct?: ProductRef;
        representedProducts?: Array<ProductRef>;
        variationAttributes?: Array<VariationAttribute>;
    });

Parameters

Parameter Type Description
params { currency?: string; hitType?: string; image?: Image; link?: string; orderable?: boolean; price?: number; priceMax?: number; pricePerUnit?: number; pricePerUnitMax?: number; prices?: { [key: string]: number; }; productId?: string; productName?: string; productType?: ProductType; representedProduct?: ProductRef; representedProducts?: Array<ProductRef>; variationAttributes?: Array<VariationAttribute>; } (Optional)