Class FulfillmentPriceResultHolder
java.lang.Object
com.broadleafcommerce.fulfillment.service.dto.FulfillmentPriceResultHolder
Holds the result of a single calculator's price execution.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BandFieldTheBandFieldused to calculate the fulfillment price.protected FulfillmentCalculatorprotected FulfillmentPricingContextprotected intprotected javax.money.MonetaryAmountprotected com.broadleafcommerce.fulfillment.common.domain.WeightThe normalized combined weight of the eligible items.protected javax.money.MonetaryAmountprotected EnhancedFulfillmentPricingGroupprotected booleanprotected List<EnhancedFulfillmentPricingItem>protected boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidTheBandFieldused to calculate the fulfillment price.intjavax.money.MonetaryAmountcom.broadleafcommerce.fulfillment.common.domain.WeightThe normalized combined weight of the eligible items.javax.money.MonetaryAmountgetGroup()getItems()booleanbooleanvoidsetBandField(BandField bandField) TheBandFieldused to calculate the fulfillment price.voidsetCalculator(FulfillmentCalculator calculator) voidsetContext(FulfillmentPricingContext context) voidsetEligibleItemsQuantity(int eligibleItemsQuantity) voidsetEligibleItemsSubtotal(javax.money.MonetaryAmount eligibleItemsSubtotal) voidsetEligibleItemsWeight(com.broadleafcommerce.fulfillment.common.domain.Weight eligibleItemsWeight) The normalized combined weight of the eligible items.voidsetFulfillmentPrice(javax.money.MonetaryAmount fulfillmentPrice) voidvoidsetHandlingAllItems(boolean handlingAllItems) voidvoidsetPriceExistingServiceLevelsOnly(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 ifeligibleItemsWeightis initialized if thebandFieldis notBandField.WEIGHT. -
eligibleItemsQuantity
protected int eligibleItemsQuantity -
fulfillmentPrice
protected javax.money.MonetaryAmount fulfillmentPrice -
priceExistingServiceLevelsOnly
protected boolean priceExistingServiceLevelsOnly -
bandField
TheBandFieldused 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 ifeligibleItemsWeightis initialized if thebandFieldis 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 ifeligibleItemsWeightis initialized if thebandFieldis 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
TheBandFieldused 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
TheBandFieldused 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.
-