Class FulfillmentPriceInfo

java.lang.Object
com.broadleafcommerce.shipping.domain.FulfillmentPriceInfo
All Implemented Interfaces:
Serializable

public class FulfillmentPriceInfo extends Object implements Serializable
Fulfillment pricing information returned from a FulfillmentPricingProvider for a single line item.
Author:
Chad Harchar (charchar)
See Also:
  • Constructor Details

    • FulfillmentPriceInfo

      public FulfillmentPriceInfo()
  • Method Details

    • getItemId

      public String getItemId()
      The id of the line item for this fulfillment pricing info.
      Returns:
      The id of the line item for this fulfillment pricing info.
    • getSkuCode

      public String getSkuCode()
      The sku code for the item.
      Returns:
      The sku code for the item.
    • isEstimated

      public boolean isEstimated()
      Whether the calculated price is an estimate.
      Returns:
      Whether the calculated price is an estimate.
    • getPricePerUnit

      @Deprecated public javax.money.MonetaryAmount getPricePerUnit()
      Deprecated.
      this is deprecated as the accurate calculation of this value is not feasible for the bundle item, see FulfillmentPricingItem.getMerchandiseTotalAmount()
      The fulfillment price calculated for a unit of the item.
      Returns:
      The fulfillment price calculated for a unit of the item.
    • getTotal

      public javax.money.MonetaryAmount getTotal()
      The combined total for all units.
      Returns:
      The combined total for all units.
    • setItemId

      public void setItemId(String itemId)
      The id of the line item for this fulfillment pricing info.
      Parameters:
      itemId - The id of the line item for this fulfillment pricing info.
    • setSkuCode

      public void setSkuCode(String skuCode)
      The sku code for the item.
      Parameters:
      skuCode - The sku code for the item.
    • setEstimated

      public void setEstimated(boolean isEstimated)
      Whether the calculated price is an estimate.
      Parameters:
      estimated - Whether the calculated price is an estimate.
    • setPricePerUnit

      @Deprecated public void setPricePerUnit(javax.money.MonetaryAmount pricePerUnit)
      Deprecated.
      this is deprecated as the accurate calculation of this value is not feasible for the bundle item, see FulfillmentPricingItem.getMerchandiseTotalAmount()
      The fulfillment price calculated for a unit of the item.
      Parameters:
      pricePerUnit - The fulfillment price calculated for a unit of the item.
    • setTotal

      public void setTotal(javax.money.MonetaryAmount total)
      The combined total for all units.
      Parameters:
      total - The combined total for all units.
    • 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