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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FulfillmentPriceInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getItemId()
The id of the line item for this fulfillment pricing info.javax.money.MonetaryAmount
getPricePerUnit()
Deprecated.this is deprecated as the accurate calculation of this value is not feasible for the bundle item, seeFulfillmentPricingItem.getMerchandiseTotalAmount()
String
getSkuCode()
The sku code for the item.javax.money.MonetaryAmount
getTotal()
The combined total for all units.int
hashCode()
boolean
isEstimated()
Whether the calculated price is an estimate.void
setEstimated(boolean isEstimated)
Whether the calculated price is an estimate.void
setItemId(String itemId)
The id of the line item for this fulfillment pricing info.void
setPricePerUnit(javax.money.MonetaryAmount pricePerUnit)
Deprecated.this is deprecated as the accurate calculation of this value is not feasible for the bundle item, seeFulfillmentPricingItem.getMerchandiseTotalAmount()
void
setSkuCode(String skuCode)
The sku code for the item.void
setTotal(javax.money.MonetaryAmount total)
The combined total for all units.String
toString()
-
-
-
Method Detail
-
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, seeFulfillmentPricingItem.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, seeFulfillmentPricingItem.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.
-
canEqual
protected boolean canEqual(Object other)
-
-