Class PriceableTargetPriceState

    • Constructor Detail

      • PriceableTargetPriceState

        public PriceableTargetPriceState()
    • Method Detail

      • withPriceListAndTargetPriceDataMap

        public PriceableTargetPriceState withPriceListAndTargetPriceDataMap​(Map<org.apache.commons.lang3.tuple.Pair<String,​com.broadleafcommerce.pricing.client.domain.PriceableTargetRef>,​PriceData> priceListAndTargetPriceDataMap)
      • getCompositePriceListPriceMap

        public Map<PriceList,​javax.money.MonetaryAmount> getCompositePriceListPriceMap()
        Composite of all price list price maps
      • putOtherPriceListPriceMaps

        protected void putOtherPriceListPriceMaps​(Map<PriceList,​javax.money.MonetaryAmount> composite)
        Extension point for additional price list types
      • getPriceListPriceMappingForType

        public Map<PriceList,​javax.money.MonetaryAmount> getPriceListPriceMappingForType​(String type)
        Gets the price list price mapping for the price list type
      • getOtherPriceListPriceMapping

        protected Map<PriceList,​javax.money.MonetaryAmount> getOtherPriceListPriceMapping​(String type)
        Extension point for additional price list types
      • putPriceListPriceMapping

        public void putPriceListPriceMapping​(PriceList priceList,
                                             javax.money.MonetaryAmount price)
        Put a price list price mapping. This will automatically resolve the correct price list type.
      • getStdPriceListPriceMap

        public Map<PriceList,​javax.money.MonetaryAmount> getStdPriceListPriceMap()
      • getSalePriceListPriceMap

        public Map<PriceList,​javax.money.MonetaryAmount> getSalePriceListPriceMap()
      • getContractPriceListPriceMap

        public Map<PriceList,​javax.money.MonetaryAmount> getContractPriceListPriceMap()
      • getPrices

        public Map<String,​com.broadleafcommerce.pricing.client.domain.PriceDetail> getPrices()
        Map of price type (e.g., standardPrice, salePrice, contractPrice) to the PriceDetail of the "best" price for that type.
      • getPriceListTypes

        public List<String> getPriceListTypes()
      • getPriceListIdPriceListMap

        public Map<String,​PriceList> getPriceListIdPriceListMap()
        All first-level price lists mapped to the price lists they represent. First-level means that we aren't traversing the price list hierarchy to fetch the whole tree. That can be done as needed.
      • getPriceListAndTargetPriceDataMap

        public Map<org.apache.commons.lang3.tuple.Pair<String,​com.broadleafcommerce.pricing.client.domain.PriceableTargetRef>,​PriceData> getPriceListAndTargetPriceDataMap()
        All first-level price lists mapped to the price data they aggregate. First-level means that we aren't traversing the price list hierarchy to fetch the whole tree. That can be done as needed.