Poq.SDK.Node

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

ProductSearchRequestRefinements.toRecord() method

Method returns record with refinements.

Signature:

toRecord(): {
        [k: `refine_${number}`]: string;
    };

Returns:

{ [k: `refine_${number}`]: string; }

Return simple object with refinements.

Example

value.toRecord();

// {
//  refine_1: 'cgid=women',
//  refine_2: 'price=(1..20)',
// }