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
ConstructorDescriptionFulfillmentPricingContext
(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.com.broadleafcommerce.data.tracking.core.context.ContextInfo
javax.money.CurrencyUnit
com.broadleafcommerce.fulfillment.common.domain.FulfillmentOptionRequest
com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingConfig
boolean
-
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
-
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() -
getRequestTime
-
getContextInfo
@Nullable public com.broadleafcommerce.data.tracking.core.context.ContextInfo getContextInfo() -
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.
-