Class EnhancedFulfillmentPricingGroup

java.lang.Object
com.broadleafcommerce.fulfillment.service.dto.EnhancedFulfillmentPricingGroup

public class EnhancedFulfillmentPricingGroup extends Object
  • Constructor Details

    • EnhancedFulfillmentPricingGroup

      public EnhancedFulfillmentPricingGroup(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingGroup group)
  • Method Details

    • getAddress

      public com.broadleafcommerce.fulfillment.common.domain.Address getAddress()
    • computeGroupSubtotal

      protected javax.money.MonetaryAmount computeGroupSubtotal()
      Calculate the subtotal for the group. If the request provided a subtotal, use that as some implementations may not send over item details.
      Returns:
    • determineCurrency

      protected javax.money.CurrencyUnit determineCurrency()
    • hasHandled

      public boolean hasHandled(String serviceLevel)
      Provides an opportunity to short-circuit some calculator operations if a group has already been handled for a given service level.
      Parameters:
      serviceLevel -
      Returns:
    • getGroupSubtotal

      public javax.money.MonetaryAmount getGroupSubtotal()
    • updateServiceLevelPriceResult

      public void updateServiceLevelPriceResult(FulfillmentPriceResultHolder fulfillmentPriceResult, String serviceLevel, boolean serviceLevelComplete)
    • getId

      public String getId()
    • getFulfillmentPricingGroup

      public com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingGroup getFulfillmentPricingGroup()
    • getCurrencyUnit

      public javax.money.CurrencyUnit getCurrencyUnit()
    • getEnhancedItems

      public List<EnhancedFulfillmentPricingItem> getEnhancedItems()
    • getServiceLevelPriceMap

      public Map<String,GroupServiceLevelPriceResult> getServiceLevelPriceMap()
    • getCalcResultMap

      Map used for items by service level. Only populated during item pricing flow.
    • getTotalGroupWeight

      public com.broadleafcommerce.fulfillment.common.domain.Weight getTotalGroupWeight()
    • setTotalGroupWeight

      public void setTotalGroupWeight(com.broadleafcommerce.fulfillment.common.domain.Weight totalGroupWeight)
    • getGroupAttributes

      public Map<String,Object> getGroupAttributes()
      Map to hold arbitrary additional attributes.