2020-08-01 - Example searchType configs

From Izara Wiki
Jump to navigation Jump to search

Service - Search Result

{
 config_key: "search_type",
 config_tag: "selloffer",
 config_value: {
   complexFilterServiceName: "arn:aws:sns:ap-southeast-1:468568093265:ComplexFillterMainSelloffer-dev-findFilterId",
   searchResultHandlerServiceName: "searchResultHandlerSellOffer",
   requireProperties: [
     "location_tree_area_node_id"
   ]
 }
}
//---------------------------------
{
 config_key: "search_type",
 config_tag: "product",
 config_value: {
   complexFilterServiceName: "arn:aws:sns:ap-southeast-1:468568093265:ComplexFillterMainProduct-dev-findFilterId",
   searchResultHandlerServiceName: "searchResultHandlerProduct",
   childSearchResult: {
     child_search_type: "selloffer",
     setRequiredData: [
       "selloffer_price": [
         "quantity_available",
         "max_price",
         "min_price",
         "converted_max_price",
         "converted_min_price",
         "product_id"
     ],
     passOnParentToChild: [
       "browse_quantity"
     ]
   }
 }
}