Home > @poq/sdk-sfcc > ProductSearchRequestRefinements > parse
Methods helps to parse query-like defined list of refinements into ProductSearchRequestRefinements
Signature:
static parse(refinementString: string): ProductSearchRequestRefinements;
Parameter | Type | Description |
---|---|---|
refinementString | string | String representation (query param like string with refinements). |
Returns:
ProductSearchRequestRefinements
List of parsed Refinements.
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');