Class FulfillmentItemPriceResult

java.lang.Object
com.broadleafcommerce.fulfillment.service.dto.FulfillmentItemPriceResult

public class FulfillmentItemPriceResult extends Object
  • Constructor Details

    • FulfillmentItemPriceResult

      public FulfillmentItemPriceResult()
  • Method Details

    • getCalculator

      public FulfillmentCalculator getCalculator()
      The id that calculated this price result.
      Returns:
      The FulfillmentCalculator.getId() used to create this price.
    • getServiceLevel

      public String getServiceLevel()
      The service level that this price result is for.
      Returns:
      The service level
    • getAmount

      public BigDecimal 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 using FulfillmentPricingStrategy.ITEM
      Returns:
      The amount as money
    • setCalculator

      public void setCalculator(FulfillmentCalculator calculator)
      The id that calculated this price result.
      Parameters:
      calculator - The FulfillmentCalculator used to create this price.
    • setServiceLevel

      public void setServiceLevel(String serviceLevel)
      The service level that this price result is for.
      Parameters:
      serviceLevel -
    • setAmount

      public void setAmount(BigDecimal amount)
      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 using FulfillmentPricingStrategy.ITEM
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object