Class PriceInfosEndpoint


  • @FrameworkRestController
    @FrameworkMapping("/price-infos")
    @DataRouteByExample(com.broadleafcommerce.pricing.client.domain.PriceInfo.class)
    public class PriceInfosEndpoint
    extends Object
    Author:
    Chad Harchar (charchar)
    • Method Detail

      • retrievePriceInfos

        @FrameworkPostMapping
        @Policy(permissionRoots="PRICE_LIST")
        public org.springframework.data.domain.Page<com.broadleafcommerce.pricing.client.domain.PriceInfo> retrievePriceInfos​(javax.servlet.http.HttpServletRequest request,
                                                                                                                              @ContextOperation
                                                                                                                              com.broadleafcommerce.data.tracking.core.context.ContextInfo context,
                                                                                                                              @RequestHeader(value="X-Price-Context",required=false)
                                                                                                                              com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext,
                                                                                                                              @RequestBody
                                                                                                                              com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext)
        Used to retrieve a page of PriceInfos for the given context and priceable targets.
        Parameters:
        request - The HttpServletRequest made to the server
        context - context information around sandbox and multitenant state
        priceContext - context information used to filter price lists to determine which are applicable to the request if none are provided in priceInfoContext.
        priceInfoContext - Additional context information including a preselected group of price lists and the items for which to find pricing info.
        Returns:
        A page of PriceInfos for the given context and priceable targets.
      • priceByProvidedPriceLists

        public boolean priceByProvidedPriceLists​(@RequestBody
                                                 com.broadleafcommerce.pricing.client.domain.context.PriceInfoContext priceInfoContext)