Class FulfillmentPricingContext
java.lang.Object
com.broadleafcommerce.fulfillment.service.dto.FulfillmentPricingContext
Manages the state of the groups and items to be priced. The fulfillment service receives a List
of
FulfillmentPricingGroup. The initialization of this object decorates the group and its
contained items with EnhancedFulfillmentPricingGroup and
EnhancedFulfillmentPricingItem respectively. To allow these objects to maintain the state
of the calculations.-
Constructor Summary
ConstructorsConstructorDescriptionFulfillmentPricingContext(com.broadleafcommerce.fulfillment.common.domain.FulfillmentOptionRequest request, com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig fulfillmentPricingConfig, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
Method Summary
Modifier and TypeMethodDescriptionMap to hold Calculator and Items Priced by Calculator.Map to hold arbitrary additional attributes.javax.money.CurrencyUnitcom.broadleafcommerce.fulfillment.common.domain.FulfillmentOptionRequestcom.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfigboolean
-
Constructor Details
-
FulfillmentPricingContext
public FulfillmentPricingContext(com.broadleafcommerce.fulfillment.common.domain.FulfillmentOptionRequest request, com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig fulfillmentPricingConfig, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
-
-
Method Details
-
getRequestTime
-
getCurrency
public javax.money.CurrencyUnit getCurrency() -
shouldPriceByGroup
public boolean shouldPriceByGroup() -
getDefaultServiceLevel
-
getPricingGroups
-
getFulfillmentOptionRequest
public com.broadleafcommerce.fulfillment.common.domain.FulfillmentOptionRequest getFulfillmentOptionRequest() -
getFulfillmentPricingConfig
public com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig getFulfillmentPricingConfig() -
getCalculatorPricedItemMap
Map to hold Calculator and Items Priced by Calculator. This structure is used as a base result when building item options. It is not reliable for any purpose outside of this flow. -
getContextAttributes
Map to hold arbitrary additional attributes.
-