Poq.SDK.Node

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

ProductSearchResult.(constructor)

Constructs a new instance of the ProductSearchResult class

Signature:

constructor(params?: {
        count?: number;
        data?: Array<object>;
        fetchDate?: number;
        hits?: Array<ProductSearchHit>;
        next?: string;
        previous?: string;
        query?: string;
        refinements?: Array<ProductSearchRefinement>;
        searchPhraseSuggestions?: Suggestion;
        selectedRefinements?: {
            [key: string]: string;
        };
        selectedSortingOption?: string;
        sortingOptions?: Array<ProductSearchSortingOption>;
        start?: number;
        total?: number;
    });

Parameters

Parameter Type Description
params { count?: number; data?: Array<object>; fetchDate?: number; hits?: Array<ProductSearchHit>; next?: string; previous?: string; query?: string; refinements?: Array<ProductSearchRefinement>; searchPhraseSuggestions?: Suggestion; selectedRefinements?: { [key: string]: string; }; selectedSortingOption?: string; sortingOptions?: Array<ProductSearchSortingOption>; start?: number; total?: number; } (Optional)