Class FulfillmentItemPriceResult
java.lang.Object
com.broadleafcommerce.fulfillment.service.dto.FulfillmentItemPriceResult
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe amount of this fulfillmentPriceResult from a flat-rate or prorated calculation.javax.money.MonetaryAmountThe amount of this fulfillmentPriceResult when usingFulfillmentPricingStrategy.ITEMThe id that calculated this price result.The service level that this price result is for.inthashCode()voidsetAmount(BigDecimal amount) The amount of this fulfillmentPriceResult from a flat-rate or prorated calculation.voidsetAmountAsMoney(javax.money.MonetaryAmount amountAsMoney) The amount of this fulfillmentPriceResult when usingFulfillmentPricingStrategy.ITEMvoidsetCalculator(FulfillmentCalculator calculator) The id that calculated this price result.voidsetServiceLevel(String serviceLevel) The service level that this price result is for.toString()
-
Constructor Details
-
FulfillmentItemPriceResult
public FulfillmentItemPriceResult()
-
-
Method Details
-
getCalculator
The id that calculated this price result.- Returns:
- The
FulfillmentCalculator.getId()used to create this price.
-
getServiceLevel
The service level that this price result is for.- Returns:
- The service level
-
getAmount
The amount of this fulfillmentPriceResult from a flat-rate or prorated calculation. It is purposefully not rounded to money precision- Returns:
- The amount
-
getAmountAsMoney
public javax.money.MonetaryAmount getAmountAsMoney()The amount of this fulfillmentPriceResult when usingFulfillmentPricingStrategy.ITEM- Returns:
- The amount as money
-
setCalculator
The id that calculated this price result.- Parameters:
calculator- TheFulfillmentCalculatorused to create this price.
-
setServiceLevel
The service level that this price result is for.- Parameters:
serviceLevel-
-
setAmount
The amount of this fulfillmentPriceResult from a flat-rate or prorated calculation. It is purposefully not rounded to money precision- Parameters:
amount-
-
setAmountAsMoney
public void setAmountAsMoney(javax.money.MonetaryAmount amountAsMoney) The amount of this fulfillmentPriceResult when usingFulfillmentPricingStrategy.ITEM -
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-