Class FulfillmentPricingItem
java.lang.Object
com.broadleafcommerce.fulfillment.common.domain.FulfillmentPricingItem
- All Implemented Interfaces:
Serializable
DTO for fields that are used for getting fulfillment prices for FulfillmentItems.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDimensions per unit.A List of Flat Rates to consider when pricing Fulfillment Options.Used to allow targeting of fulfillment pricing based on a location where the application expects the item to be shipped from.The fulfillment type for this item if it has been assigned aPricedFulfillmentOption
.The inventory type of this item.This is the reference number of the Fulfillment Item.int
Quantity or number of units.The service level for this item if it has been assigned aPricedFulfillmentOption
.getSku()
String representing the SKU.javax.money.MonetaryAmount
The Cart price of one unit of this item.Weight per unit.void
setDimensions
(Dimensions dimensions) Dimensions per unit.void
setFlatRates
(Map<String, javax.money.MonetaryAmount> flatRates) A List of Flat Rates to consider when pricing Fulfillment Options.void
setFulfillmentOriginInfos
(List<FulfillmentOriginInfo> fulfillmentOriginInfos) Used to allow targeting of fulfillment pricing based on a location where the application expects the item to be shipped from.void
setFulfillmentType
(String fulfillmentType) The fulfillment type for this item if it has been assigned aPricedFulfillmentOption
.void
setInventoryType
(String inventoryType) The inventory type of this item.void
setItemReference
(String itemReference) This is the reference number of the Fulfillment Item.void
setQuantity
(int quantity) Quantity or number of units.void
setServiceLevel
(String serviceLevel) The service level for this item if it has been assigned aPricedFulfillmentOption
.void
String representing the SKU.void
setUnitPrice
(javax.money.MonetaryAmount unitPrice) The Cart price of one unit of this item.void
Weight per unit.
-
Constructor Details
-
FulfillmentPricingItem
public FulfillmentPricingItem()
-
-
Method Details
-
getItemReference
This is the reference number of the Fulfillment Item. -
getSku
String representing the SKU. -
getWeight
Weight per unit. -
getDimensions
Dimensions per unit. -
getQuantity
public int getQuantity()Quantity or number of units. -
getUnitPrice
public javax.money.MonetaryAmount getUnitPrice()The Cart price of one unit of this item. -
getFlatRates
A List of Flat Rates to consider when pricing Fulfillment Options. This is a Map keyed by the service level with aMonetaryAmount
. Note that the Inventory Type and Fulfillment Type are implicit on theFulfillmentPricingGroup
, so the service level in this map is for a service level that is associated with theFulfillment Pricing Group's
inventory type and fulfillment type. -
getFulfillmentType
The fulfillment type for this item if it has been assigned aPricedFulfillmentOption
. -
getServiceLevel
The service level for this item if it has been assigned aPricedFulfillmentOption
. -
getInventoryType
The inventory type of this item. -
getFulfillmentOriginInfos
Used to allow targeting of fulfillment pricing based on a location where the application expects the item to be shipped from. The request can include multiple fulfillmentSourceInfos to allow the pricing algorithm to attempt pricing for multiple scenarios. For example, an application might implement algorithms to price the order using the closest locations or fulfill from a single location, etc. -
setItemReference
This is the reference number of the Fulfillment Item. -
setSku
String representing the SKU. -
setWeight
Weight per unit. -
setDimensions
Dimensions per unit. -
setQuantity
public void setQuantity(int quantity) Quantity or number of units. -
setUnitPrice
public void setUnitPrice(javax.money.MonetaryAmount unitPrice) The Cart price of one unit of this item. -
setFlatRates
A List of Flat Rates to consider when pricing Fulfillment Options. This is a Map keyed by the service level with aMonetaryAmount
. Note that the Inventory Type and Fulfillment Type are implicit on theFulfillmentPricingGroup
, so the service level in this map is for a service level that is associated with theFulfillment Pricing Group's
inventory type and fulfillment type. -
setFulfillmentType
The fulfillment type for this item if it has been assigned aPricedFulfillmentOption
. -
setServiceLevel
The service level for this item if it has been assigned aPricedFulfillmentOption
. -
setInventoryType
The inventory type of this item. -
setFulfillmentOriginInfos
Used to allow targeting of fulfillment pricing based on a location where the application expects the item to be shipped from. The request can include multiple fulfillmentSourceInfos to allow the pricing algorithm to attempt pricing for multiple scenarios. For example, an application might implement algorithms to price the order using the closest locations or fulfill from a single location, etc.
-