Class EnhancedFulfillmentPricingGroup
java.lang.Object
com.broadleafcommerce.fulfillment.service.dto.EnhancedFulfillmentPricingGroup
-
Constructor Summary
ConstructorDescriptionEnhancedFulfillmentPricingGroup
(com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingGroup group) -
Method Summary
Modifier and TypeMethodDescriptionprotected javax.money.MonetaryAmount
Calculate the subtotal for the group.protected javax.money.CurrencyUnit
com.broadleafcommerce.fulfillment.common.domain.Address
Map used for items by service level.javax.money.CurrencyUnit
com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingGroup
Map to hold arbitrary additional attributes.javax.money.MonetaryAmount
getId()
com.broadleafcommerce.fulfillment.common.domain.Weight
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.void
setTotalGroupWeight
(com.broadleafcommerce.fulfillment.common.domain.Weight totalGroupWeight) void
updateServiceLevelPriceResult
(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.
-