Class EnhancedFulfillmentPricingGroup
java.lang.Object
com.broadleafcommerce.fulfillment.service.dto.EnhancedFulfillmentPricingGroup
-
Constructor Summary
ConstructorsConstructorDescriptionEnhancedFulfillmentPricingGroup(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingGroup group) -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.money.MonetaryAmountCalculate the subtotal for the group.protected javax.money.CurrencyUnitcom.broadleafcommerce.fulfillment.common.domain.AddressMap used for items by service level.javax.money.CurrencyUnitcom.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingGroupMap to hold arbitrary additional attributes.javax.money.MonetaryAmountgetId()com.broadleafcommerce.fulfillment.common.domain.WeightbooleanhasHandled(String serviceLevel) Provides an opportunity to short-circuit some calculator operations if a group has already been handled for a given service level.voidsetTotalGroupWeight(com.broadleafcommerce.fulfillment.common.domain.Weight totalGroupWeight) voidupdateServiceLevelPriceResult(FulfillmentPriceResultHolder fulfillmentPriceResult, String serviceLevel, boolean serviceLevelComplete)
-
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
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
-
getFulfillmentPricingGroup
public com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingGroup getFulfillmentPricingGroup() -
getCurrencyUnit
public javax.money.CurrencyUnit getCurrencyUnit() -
getEnhancedItems
-
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
Map to hold arbitrary additional attributes.
-