Class FulfillmentItemPriceResult
java.lang.Object
com.broadleafcommerce.fulfillment.service.dto.FulfillmentItemPriceResult
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The amount of this fulfillmentPriceResult from a flat-rate or prorated calculation.javax.money.MonetaryAmount
The amount of this fulfillmentPriceResult when usingFulfillmentPricingStrategy.ITEM
The id that calculated this price result.The service level that this price result is for.int
hashCode()
void
setAmount
(BigDecimal amount) The amount of this fulfillmentPriceResult from a flat-rate or prorated calculation.void
setAmountAsMoney
(javax.money.MonetaryAmount amountAsMoney) The amount of this fulfillmentPriceResult when usingFulfillmentPricingStrategy.ITEM
void
setCalculator
(FulfillmentCalculator calculator) The id that calculated this price result.void
setServiceLevel
(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
- TheFulfillmentCalculator
used 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
-