Poq.SDK.Node

Home > @poq/sdk-sfcc > ProductSearchRequestRefinements > parse

ProductSearchRequestRefinements.parse() method

Methods helps to parse query-like defined list of refinements into ProductSearchRequestRefinements

Signature:

static parse(refinementString: string): ProductSearchRequestRefinements;

Parameters

Parameter Type Description
refinementString string String representation (query param like string with refinements).

Returns:

ProductSearchRequestRefinements

List of parsed Refinements.

Example

ProductSearchRequestRefinements.parse('refine_1=cgid=women&refine_2=c_refinementColor=Black&refine_3=price=(0..500)&refine_4=htype=master&pmid=1|2|3|4|5');