Class FulfillmentPriceResultHolder
java.lang.Object
com.broadleafcommerce.fulfillment.service.dto.FulfillmentPriceResultHolder
Holds the result of a single calculator's price execution.
-
Field Summary
Modifier and TypeFieldDescriptionprotected BandField
TheBandField
used to calculate the fulfillment price.protected FulfillmentCalculator
protected FulfillmentPricingContext
protected int
protected javax.money.MonetaryAmount
protected com.broadleafcommerce.fulfillment.common.domain.Weight
The normalized combined weight of the eligible items.protected javax.money.MonetaryAmount
protected EnhancedFulfillmentPricingGroup
protected boolean
protected List<EnhancedFulfillmentPricingItem>
protected boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
TheBandField
used to calculate the fulfillment price.int
javax.money.MonetaryAmount
com.broadleafcommerce.fulfillment.common.domain.Weight
The normalized combined weight of the eligible items.javax.money.MonetaryAmount
getGroup()
getItems()
boolean
boolean
void
setBandField
(BandField bandField) TheBandField
used to calculate the fulfillment price.void
setCalculator
(FulfillmentCalculator calculator) void
setContext
(FulfillmentPricingContext context) void
setEligibleItemsQuantity
(int eligibleItemsQuantity) void
setEligibleItemsSubtotal
(javax.money.MonetaryAmount eligibleItemsSubtotal) void
setEligibleItemsWeight
(com.broadleafcommerce.fulfillment.common.domain.Weight eligibleItemsWeight) The normalized combined weight of the eligible items.void
setFulfillmentPrice
(javax.money.MonetaryAmount fulfillmentPrice) void
void
setHandlingAllItems
(boolean handlingAllItems) void
void
setPriceExistingServiceLevelsOnly
(boolean priceExistingServiceLevelsOnly)
-
Field Details
-
context
-
group
-
items
-
handlingAllItems
protected boolean handlingAllItems -
calculator
-
itemPriceResults
-
eligibleItemsSubtotal
protected javax.money.MonetaryAmount eligibleItemsSubtotal -
eligibleItemsWeight
protected com.broadleafcommerce.fulfillment.common.domain.Weight eligibleItemsWeightThe normalized combined weight of the eligible items. Should be initialized before calculations are made. However,Weight.getValue()
can be null even ifeligibleItemsWeight
is initialized if thebandField
is notBandField.WEIGHT
. -
eligibleItemsQuantity
protected int eligibleItemsQuantity -
fulfillmentPrice
protected javax.money.MonetaryAmount fulfillmentPrice -
priceExistingServiceLevelsOnly
protected boolean priceExistingServiceLevelsOnly -
bandField
TheBandField
used to calculate the fulfillment price. This is recorded for business logic like prorating the fulfillment price to items to ensure that proration uses the same field to determine the proportion of the price that is applicable to the item.
-
-
Constructor Details
-
FulfillmentPriceResultHolder
public FulfillmentPriceResultHolder()
-
-
Method Details
-
addItemPriceResult
public void addItemPriceResult(EnhancedFulfillmentPricingItem item, FulfillmentItemPriceResult result) -
getServiceLevel
-
getContext
-
setContext
-
getGroup
-
setGroup
-
getItems
-
setItems
-
isHandlingAllItems
public boolean isHandlingAllItems() -
setHandlingAllItems
public void setHandlingAllItems(boolean handlingAllItems) -
getCalculator
-
setCalculator
-
getEligibleItemsSubtotal
public javax.money.MonetaryAmount getEligibleItemsSubtotal() -
setEligibleItemsSubtotal
public void setEligibleItemsSubtotal(javax.money.MonetaryAmount eligibleItemsSubtotal) -
getEligibleItemsWeight
public com.broadleafcommerce.fulfillment.common.domain.Weight getEligibleItemsWeight()The normalized combined weight of the eligible items. Should be initialized before calculations are made. However,Weight.getValue()
can be null even ifeligibleItemsWeight
is initialized if thebandField
is notBandField.WEIGHT
. -
setEligibleItemsWeight
public void setEligibleItemsWeight(com.broadleafcommerce.fulfillment.common.domain.Weight eligibleItemsWeight) The normalized combined weight of the eligible items. Should be initialized before calculations are made. However,Weight.getValue()
can be null even ifeligibleItemsWeight
is initialized if thebandField
is notBandField.WEIGHT
. -
getEligibleItemsQuantity
public int getEligibleItemsQuantity() -
setEligibleItemsQuantity
public void setEligibleItemsQuantity(int eligibleItemsQuantity) -
getFulfillmentPrice
public javax.money.MonetaryAmount getFulfillmentPrice() -
setFulfillmentPrice
public void setFulfillmentPrice(javax.money.MonetaryAmount fulfillmentPrice) -
getAttributes
-
isPriceExistingServiceLevelsOnly
public boolean isPriceExistingServiceLevelsOnly() -
setPriceExistingServiceLevelsOnly
public void setPriceExistingServiceLevelsOnly(boolean priceExistingServiceLevelsOnly) -
getBandField
TheBandField
used to calculate the fulfillment price. This is recorded for business logic like prorating the fulfillment price to items to ensure that proration uses the same field to determine the proportion of the price that is applicable to the item. -
setBandField
TheBandField
used to calculate the fulfillment price. This is recorded for business logic like prorating the fulfillment price to items to ensure that proration uses the same field to determine the proportion of the price that is applicable to the item.
-