Class FulfillmentPriceInfo
java.lang.Object
com.broadleafcommerce.shipping.domain.FulfillmentPriceInfo
- All Implemented Interfaces:
Serializable
Fulfillment pricing information returned from a FulfillmentPricingProvider for a single line
item.
- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
The id of the line item for this fulfillment pricing info.javax.money.MonetaryAmount
Deprecated.The sku code for the item.javax.money.MonetaryAmount
getTotal()
The combined total for all units.int
hashCode()
boolean
Whether the calculated price is an estimate.void
setEstimated
(boolean isEstimated) Whether the calculated price is an estimate.void
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.toString()
-
Constructor Details
-
FulfillmentPriceInfo
public FulfillmentPriceInfo()
-
-
Method Details
-
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
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.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
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
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.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.
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-
FulfillmentPricingItem.getMerchandiseTotalAmount()