Class OrderFulfillmentItem
java.lang.Object
com.broadleafcommerce.order.client.domain.OrderFulfillmentItem
- All Implemented Interfaces:
Serializable
Represents an
OrderItem designated to a particular OrderFulfillment for
fulfillment.- Author:
- Chad Harchar (charchar), Samarth Dhruva (samarthd)
- See Also:
-
FulfillmentItem- Serialized Form
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMiscellaneous attributes for this fulfillment item.List<com.broadleafcommerce.order.common.domain.Adjustment>Adjustments to item fulfillment pricing that should be applied to the total ofunitFulfillmentCharge.javax.money.MonetaryAmountThe total of all the item fulfillment adjustments for this item.javax.money.MonetaryAmountThe fulfillment amount to refund when this item is returned, note that prorated fulfillment group adjustments are included.javax.money.MonetaryAmountThe total fulfillment price of this item, including adjustments.getId()The context ID of this fulfillment item.javax.money.MonetaryAmountThe amount of fulfillment taxes that are included in the item subtotal (VAT).javax.money.MonetaryAmountThe amount of merchandise taxes that are included in the item subtotal (VAT).Miscellaneous internal attributes for this fulfillment item.The inventory check strategy of the item.The reservation strategy of the item.javax.money.MonetaryAmountThe total amount attributed to this fulfillment item.javax.money.MonetaryAmountThe total of all the item adjustments for the merchandise.javax.money.MonetaryAmountThe merchandise amount to refund when this item is returned, note that prorated order adjustments are included.javax.money.MonetaryAmountTheunitMerchandisePricemultiplied byquantity.javax.money.MonetaryAmountThe total tax of the item merchandise based on the price of the relatedOrderItem.javax.money.MonetaryAmountThe merchandise total for the item quantity, includingmerchandiseSubtotaland itemmerchandiseAdjustmentsTotal.javax.money.MonetaryAmountThe amount of fulfillment taxes that are not included in the item subtotal.javax.money.MonetaryAmountThe amount of merchandise taxes that are not included in the item subtotal.javax.money.MonetaryAmountThe total amount of taxes that are not included in the item subtotal.The owning order fulfillment of this item.The id of theOrderItemto be represented by this fulfillment item.com.broadleafcommerce.order.common.domain.PricedFulfillmentOptionThePricedFulfillmentOptionchosen for this item.javax.money.MonetaryAmountThe prorated shipping charge for this fulfillment item before adjustments are applied, derived from theFulfillmentGroup.getGroupFulfillmentPriceBeforeAdjustments().javax.money.MonetaryAmountThe amount prorated to this item from order adjustments.javax.money.MonetaryAmountThe amount prorated to this item from order fulfillment adjustments.intThe quantity of the item to be fulfilled by this fulfillment.The reference number for this fulfillment item.The tax details for this fulfillment item.javax.money.MonetaryAmountThe unit shipping charge of each item before adjustments are applied.javax.money.MonetaryAmountThe individual unit price for the merchandise.inthashCode()booleanWhether or not this product is available online - ie inventory is available somewhere to fulfill this product.voidsetAttributes(Map<String, Object> attributes) Miscellaneous attributes for this fulfillment item.voidsetAvailableOnline(boolean availableOnline) Whether or not this product is available online - ie inventory is available somewhere to fulfill this product.voidsetFulfillmentAdjustments(List<com.broadleafcommerce.order.common.domain.Adjustment> fulfillmentAdjustments) Adjustments to item fulfillment pricing that should be applied to the total ofunitFulfillmentCharge.voidsetFulfillmentAdjustmentsTotal(javax.money.MonetaryAmount fulfillmentAdjustmentsTotal) The total of all the item fulfillment adjustments for this item.voidsetFulfillmentRefundAmount(javax.money.MonetaryAmount fulfillmentRefundAmount) The fulfillment amount to refund when this item is returned, note that prorated fulfillment group adjustments are included.voidsetFulfillmentTotal(javax.money.MonetaryAmount fulfillmentTotal) The total fulfillment price of this item, including adjustments.voidThe context ID of this fulfillment item.voidsetIncludedFulfillmentTax(javax.money.MonetaryAmount includedFulfillmentTax) The amount of fulfillment taxes that are included in the item subtotal (VAT).voidsetIncludedMerchandiseTax(javax.money.MonetaryAmount includedMerchandiseTax) The amount of merchandise taxes that are included in the item subtotal (VAT).voidsetInternalAttributes(Map<String, Object> internalAttributes) Miscellaneous internal attributes for this fulfillment item.voidsetInventoryCheckStrategy(String inventoryCheckStrategy) The inventory check strategy of the item.voidsetInventoryReservationStrategy(String inventoryReservationStrategy) The reservation strategy of the item.voidsetItemTotal(javax.money.MonetaryAmount itemTotal) The total amount attributed to this fulfillment item.voidsetMerchandiseAdjustmentsTotal(javax.money.MonetaryAmount merchandiseAdjustmentsTotal) The total of all the item adjustments for the merchandise.voidsetMerchandiseRefundAmount(javax.money.MonetaryAmount merchandiseRefundAmount) The merchandise amount to refund when this item is returned, note that prorated order adjustments are included.voidsetMerchandiseSubtotal(javax.money.MonetaryAmount merchandiseSubtotal) TheunitMerchandisePricemultiplied byquantity.voidsetMerchandiseTaxTotal(javax.money.MonetaryAmount merchandiseTaxTotal) The total tax of the item merchandise based on the price of the relatedOrderItem.voidsetMerchandiseTotal(javax.money.MonetaryAmount merchandiseTotal) The merchandise total for the item quantity, includingmerchandiseSubtotaland itemmerchandiseAdjustmentsTotal.voidsetNonIncludedFulfillmentTax(javax.money.MonetaryAmount nonIncludedFulfillmentTax) The amount of fulfillment taxes that are not included in the item subtotal.voidsetNonIncludedMerchandiseTax(javax.money.MonetaryAmount nonIncludedMerchandiseTax) The amount of merchandise taxes that are not included in the item subtotal.voidsetNonIncludedTaxTotal(javax.money.MonetaryAmount nonIncludedTaxTotal) The total amount of taxes that are not included in the item subtotal.voidsetOrderFulfillment(OrderFulfillment orderFulfillment) The owning order fulfillment of this item.voidsetOrderItemId(String orderItemId) The id of theOrderItemto be represented by this fulfillment item.voidsetPricedFulfillmentOption(com.broadleafcommerce.order.common.domain.PricedFulfillmentOption pricedFulfillmentOption) ThePricedFulfillmentOptionchosen for this item.voidsetProratedFulfillmentCharge(javax.money.MonetaryAmount proratedFulfillmentCharge) The prorated shipping charge for this fulfillment item before adjustments are applied, derived from theFulfillmentGroup.getGroupFulfillmentPriceBeforeAdjustments().voidsetProratedOrderAdjustments(javax.money.MonetaryAmount proratedOrderAdjustments) The amount prorated to this item from order adjustments.voidsetProratedOrderFulfillmentAdjustments(javax.money.MonetaryAmount proratedOrderFulfillmentAdjustments) The amount prorated to this item from order fulfillment adjustments.voidsetQuantity(int quantity) The quantity of the item to be fulfilled by this fulfillment.voidsetReferenceNumber(String referenceNumber) The reference number for this fulfillment item.voidsetTaxDetails(List<OrderFulfillmentItemTaxDetail> taxDetails) The tax details for this fulfillment item.voidsetUnitFulfillmentCharge(javax.money.MonetaryAmount unitFulfillmentCharge) The unit shipping charge of each item before adjustments are applied.voidsetUnitMerchandisePrice(javax.money.MonetaryAmount unitMerchandisePrice) The individual unit price for the merchandise.toString()
-
Constructor Details
-
OrderFulfillmentItem
public OrderFulfillmentItem()
-
-
Method Details
-
getId
The context ID of this fulfillment item.- Returns:
- the context ID of the fulfillment item
-
getReferenceNumber
The reference number for this fulfillment item. This reference number should stay the same even if this item is split, so it could be shared between multiple items.- Returns:
- The reference number for this fulfillment item.
-
getOrderFulfillment
The owning order fulfillment of this item.- Returns:
- the order fulfillment that owns this item
-
getOrderItemId
The id of theOrderItemto be represented by this fulfillment item.- Returns:
- the id of the order item to be represented by this fulfillment item
-
getQuantity
public int getQuantity()The quantity of the item to be fulfilled by this fulfillment. This isn't necessarily going to equalOrderItem.getQuantity()since anOrderItemcan be split across multipleOrderFulfillments.- Returns:
- the quantity of the item to be fulfilled by this fulfillment
-
getUnitMerchandisePrice
public javax.money.MonetaryAmount getUnitMerchandisePrice()The individual unit price for the merchandise. This is the same asOrderItem.unitPrice.- Returns:
- The individual unit price for the merchandise
-
getMerchandiseSubtotal
public javax.money.MonetaryAmount getMerchandiseSubtotal()TheunitMerchandisePricemultiplied byquantity.- Returns:
- the unit merchandise price multiplied by quantity
-
getMerchandiseAdjustmentsTotal
public javax.money.MonetaryAmount getMerchandiseAdjustmentsTotal()The total of all the item adjustments for the merchandise. Does not includeproratedOrderAdjustments.- Returns:
- The total adjustments for the merchandise
-
getMerchandiseTotal
public javax.money.MonetaryAmount getMerchandiseTotal()The merchandise total for the item quantity, includingmerchandiseSubtotaland itemmerchandiseAdjustmentsTotal. Does not includeproratedOrderAdjustments.- Returns:
- the unit price of the related
OrderItemmultiplied byquantity
-
getMerchandiseRefundAmount
public javax.money.MonetaryAmount getMerchandiseRefundAmount()The merchandise amount to refund when this item is returned, note that prorated order adjustments are included. For example, if this item has a merchandise amount of $10 and has a prorated order adjustment of $2, the merchandise refund amount would be $8.This amount is calculated by default when
Orderis being generated and populated from the correspondingOrderItem.- Returns:
- the merchandise amount to refund when this item is returned
- See Also:
-
getFulfillmentRefundAmount
public javax.money.MonetaryAmount getFulfillmentRefundAmount()The fulfillment amount to refund when this item is returned, note that prorated fulfillment group adjustments are included. For example, if this item has a fulfillment amount of $5 and has a prorated fulfillment group adjustment of $1, the fulfillment refund amount would be $4.This amount is calculated by default when
OrderFulfillmentis being generated and populated from the correspondingOrderFulfillmentItem.- Returns:
- the fulfillment amount to refund when this item is returned
-
getProratedOrderAdjustments
public javax.money.MonetaryAmount getProratedOrderAdjustments()The amount prorated to this item from order adjustments.- Returns:
- the amount prorated to this item from order adjustments
-
getMerchandiseTaxTotal
public javax.money.MonetaryAmount getMerchandiseTaxTotal()The total tax of the item merchandise based on the price of the relatedOrderItem.- Returns:
- the total tax for the item merchandise based on the price of the related
OrderItem
-
getUnitFulfillmentCharge
public javax.money.MonetaryAmount getUnitFulfillmentCharge()The unit shipping charge of each item before adjustments are applied. This is likeOrderItem.getUnitPrice()but for fulfillment.- Returns:
- the shipping charge of this
OrderItembefore adjustments are applied
-
getFulfillmentAdjustmentsTotal
public javax.money.MonetaryAmount getFulfillmentAdjustmentsTotal()The total of all the item fulfillment adjustments for this item.- Returns:
- the total item fulfillment adjustments for this item
-
getProratedOrderFulfillmentAdjustments
public javax.money.MonetaryAmount getProratedOrderFulfillmentAdjustments()The amount prorated to this item from order fulfillment adjustments.- Returns:
- the amount prorated to this item from order fulfillment adjustments
-
getFulfillmentTotal
public javax.money.MonetaryAmount getFulfillmentTotal()The total fulfillment price of this item, including adjustments. This does not include taxes.- Returns:
- the total fulfillment price of this item, including adjustments
-
getProratedFulfillmentCharge
public javax.money.MonetaryAmount getProratedFulfillmentCharge()The prorated shipping charge for this fulfillment item before adjustments are applied, derived from theFulfillmentGroup.getGroupFulfillmentPriceBeforeAdjustments(). This does not include additional shipping charges specific to the item.- Returns:
- The prorated shipping charge for this item, not including adjustments.
-
getFulfillmentAdjustments
Adjustments to item fulfillment pricing that should be applied to the total ofunitFulfillmentCharge.- Returns:
- adjustments to item fulfillment pricing that should be applied to the total of
unitFulfillmentCharge
-
isAvailableOnline
public boolean isAvailableOnline()Whether or not this product is available online - ie inventory is available somewhere to fulfill this product.- Returns:
- Whether or not this product is available online.
-
getInventoryCheckStrategy
The inventory check strategy of the item. This value helps to determine when an inventory check is required.- Returns:
- The inventory check strategy of the item.
-
getInventoryReservationStrategy
The reservation strategy of the item. This value helps to determine when an inventory reservation is required.- Returns:
- The reservation strategy of the item.
-
getTaxDetails
The tax details for this fulfillment item. This is a granular breakdown of tax, describing individual taxes, such as city, state, county, etc. The totals here should equalmerchandiseTaxTotal.- Returns:
- The tax details for this fulfillment item
-
getIncludedMerchandiseTax
public javax.money.MonetaryAmount getIncludedMerchandiseTax()The amount of merchandise taxes that are included in the item subtotal (VAT). -
getIncludedFulfillmentTax
public javax.money.MonetaryAmount getIncludedFulfillmentTax()The amount of fulfillment taxes that are included in the item subtotal (VAT). -
getNonIncludedMerchandiseTax
public javax.money.MonetaryAmount getNonIncludedMerchandiseTax()The amount of merchandise taxes that are not included in the item subtotal. -
getNonIncludedFulfillmentTax
public javax.money.MonetaryAmount getNonIncludedFulfillmentTax()The amount of fulfillment taxes that are not included in the item subtotal. -
getNonIncludedTaxTotal
public javax.money.MonetaryAmount getNonIncludedTaxTotal()The total amount of taxes that are not included in the item subtotal. -
getItemTotal
public javax.money.MonetaryAmount getItemTotal()The total amount attributed to this fulfillment item. This is themerchandiseTotalincludingproratedOrderAdjustmentsand thenonIncludedTaxTotal. -
getAttributes
Miscellaneous attributes for this fulfillment item.- Returns:
- Miscellaneous attributes for this fulfillment item
-
getInternalAttributes
Miscellaneous internal attributes for this fulfillment item. Distinguished fromgetAttributes()in that this map is used for attributes that assist in the internal working of Broadleaf Microservices. For example, attributes to help with returning free gift items.- Returns:
- Miscellaneous internal attributes for this fulfillment item
-
getPricedFulfillmentOption
@Nullable public com.broadleafcommerce.order.common.domain.PricedFulfillmentOption getPricedFulfillmentOption()ThePricedFulfillmentOptionchosen for this item.- Returns:
- the
PricedFulfillmentOptionchosen for this item. - See Also:
-
PricedFulfillmentOption
-
setId
The context ID of this fulfillment item.- Parameters:
id- the context ID of the fulfillment item
-
setReferenceNumber
The reference number for this fulfillment item. This reference number should stay the same even if this item is split, so it could be shared between multiple items.- Parameters:
referenceNumber- The reference number for this fulfillment item.
-
setOrderFulfillment
The owning order fulfillment of this item.- Parameters:
orderFulfillment- the order fulfillment that should own this item
-
setOrderItemId
The id of theOrderItemto be represented by this fulfillment item.- Parameters:
orderItemId- the id of the order item to be represented by this fulfillment item
-
setQuantity
public void setQuantity(int quantity) The quantity of the item to be fulfilled by this fulfillment. This isn't necessarily going to equalOrderItem.getQuantity()since anOrderItemcan be split across multipleOrderFulfillments.- Parameters:
quantity- the quantity of the item to be fulfilled by this fulfillment
-
setUnitMerchandisePrice
public void setUnitMerchandisePrice(javax.money.MonetaryAmount unitMerchandisePrice) The individual unit price for the merchandise. This is the same asOrderItem.unitPrice.- Parameters:
unitPrice- The individual unit price for the merchandise
-
setMerchandiseSubtotal
public void setMerchandiseSubtotal(javax.money.MonetaryAmount merchandiseSubtotal) TheunitMerchandisePricemultiplied byquantity.- Parameters:
merchandiseSubtotal- the unit merchandise price multiplied by quantity
-
setMerchandiseAdjustmentsTotal
public void setMerchandiseAdjustmentsTotal(javax.money.MonetaryAmount merchandiseAdjustmentsTotal) The total of all the item adjustments for the merchandise. Does not includeproratedOrderAdjustments.- Parameters:
adjustmentsTotal- The total adjustments for the merchandise
-
setMerchandiseTotal
public void setMerchandiseTotal(javax.money.MonetaryAmount merchandiseTotal) The merchandise total for the item quantity, includingmerchandiseSubtotaland itemmerchandiseAdjustmentsTotal. Does not includeproratedOrderAdjustments.- Parameters:
merchandiseTotal- the merchandise total for the item quantity, includingmerchandiseSubtotaland itemmerchandiseAdjustmentsTotal
-
setMerchandiseRefundAmount
public void setMerchandiseRefundAmount(javax.money.MonetaryAmount merchandiseRefundAmount) The merchandise amount to refund when this item is returned, note that prorated order adjustments are included. For example, if this item has a merchandise amount of $10 and has a prorated order adjustment of $2, the merchandise refund amount would be $8.This amount is calculated by default when
Orderis being generated and populated from the correspondingOrderItem.- Parameters:
refundAmount- the merchandise amount to refund when this item is returned- See Also:
-
setFulfillmentRefundAmount
public void setFulfillmentRefundAmount(javax.money.MonetaryAmount fulfillmentRefundAmount) The fulfillment amount to refund when this item is returned, note that prorated fulfillment group adjustments are included. For example, if this item has a fulfillment amount of $5 and has a prorated fulfillment group adjustment of $1, the fulfillment refund amount would be $4.This amount is calculated by default when
OrderFulfillmentis being generated and populated from the correspondingOrderFulfillmentItem.- Parameters:
fulfillmentRefundAmount- the fulfillment amount to refund when this item is returned
-
setProratedOrderAdjustments
public void setProratedOrderAdjustments(javax.money.MonetaryAmount proratedOrderAdjustments) The amount prorated to this item from order adjustments.- Parameters:
proratedOrderAdjustments- the amount prorated to this item from order adjustments
-
setMerchandiseTaxTotal
public void setMerchandiseTaxTotal(javax.money.MonetaryAmount merchandiseTaxTotal) The total tax of the item merchandise based on the price of the relatedOrderItem.- Parameters:
merchandiseTotalTax- the total tax for the item merchandise based on the price of the relatedOrderItem
-
setUnitFulfillmentCharge
public void setUnitFulfillmentCharge(javax.money.MonetaryAmount unitFulfillmentCharge) The unit shipping charge of each item before adjustments are applied. This is likeOrderItem.getUnitPrice()but for fulfillment.- Parameters:
unitFulfillmentCharge- the unit shipping charge of thisOrderItembefore adjustments are applied
-
setFulfillmentAdjustmentsTotal
public void setFulfillmentAdjustmentsTotal(javax.money.MonetaryAmount fulfillmentAdjustmentsTotal) The total of all the item fulfillment adjustments for this item.- Parameters:
fulfillmentAdjustmentsTotal- the total item fulfillment adjustments for this item
-
setProratedOrderFulfillmentAdjustments
public void setProratedOrderFulfillmentAdjustments(javax.money.MonetaryAmount proratedOrderFulfillmentAdjustments) The amount prorated to this item from order fulfillment adjustments.- Parameters:
proratedOrderAdjustments- the amount prorated to this item from order fulfillment adjustments
-
setFulfillmentTotal
public void setFulfillmentTotal(javax.money.MonetaryAmount fulfillmentTotal) The total fulfillment price of this item, including adjustments. This does not include taxes.- Parameters:
fulfillmentTotal- the total fulfillment price of this item, including adjustments
-
setProratedFulfillmentCharge
public void setProratedFulfillmentCharge(javax.money.MonetaryAmount proratedFulfillmentCharge) The prorated shipping charge for this fulfillment item before adjustments are applied, derived from theFulfillmentGroup.getGroupFulfillmentPriceBeforeAdjustments(). This does not include additional shipping charges specific to the item.- Parameters:
proratedFulfillmentCharge- The prorated shipping charge for this item, not including adjustments.
-
setFulfillmentAdjustments
public void setFulfillmentAdjustments(List<com.broadleafcommerce.order.common.domain.Adjustment> fulfillmentAdjustments) Adjustments to item fulfillment pricing that should be applied to the total ofunitFulfillmentCharge.- Parameters:
fulfillmentAdjustments- adjustments to item fulfillment pricing that should be applied to the total ofunitFulfillmentCharge
-
setAvailableOnline
public void setAvailableOnline(boolean availableOnline) Whether or not this product is available online - ie inventory is available somewhere to fulfill this product.- Parameters:
availableOnline- Whether or not this product is available online.
-
setInventoryCheckStrategy
The inventory check strategy of the item. This value helps to determine when an inventory check is required.- Parameters:
inventoryCheckStrategy- The inventory check strategy of the item.
-
setInventoryReservationStrategy
The reservation strategy of the item. This value helps to determine when an inventory reservation is required.- Parameters:
inventoryReservationStrategy- The reservation strategy of the item.
-
setTaxDetails
The tax details for this fulfillment item. This is a granular breakdown of tax, describing individual taxes, such as city, state, county, etc. The totals here should equalmerchandiseTaxTotal.- Parameters:
taxDetails- The tax details for this fulfillment item
-
setIncludedMerchandiseTax
public void setIncludedMerchandiseTax(javax.money.MonetaryAmount includedMerchandiseTax) The amount of merchandise taxes that are included in the item subtotal (VAT). -
setIncludedFulfillmentTax
public void setIncludedFulfillmentTax(javax.money.MonetaryAmount includedFulfillmentTax) The amount of fulfillment taxes that are included in the item subtotal (VAT). -
setNonIncludedMerchandiseTax
public void setNonIncludedMerchandiseTax(javax.money.MonetaryAmount nonIncludedMerchandiseTax) The amount of merchandise taxes that are not included in the item subtotal. -
setNonIncludedFulfillmentTax
public void setNonIncludedFulfillmentTax(javax.money.MonetaryAmount nonIncludedFulfillmentTax) The amount of fulfillment taxes that are not included in the item subtotal. -
setNonIncludedTaxTotal
public void setNonIncludedTaxTotal(javax.money.MonetaryAmount nonIncludedTaxTotal) The total amount of taxes that are not included in the item subtotal. -
setItemTotal
public void setItemTotal(javax.money.MonetaryAmount itemTotal) The total amount attributed to this fulfillment item. This is themerchandiseTotalincludingproratedOrderAdjustmentsand thenonIncludedTaxTotal. -
setAttributes
Miscellaneous attributes for this fulfillment item.- Parameters:
attributes- Miscellaneous attributes for this fulfillment item
-
setInternalAttributes
Miscellaneous internal attributes for this fulfillment item. Distinguished fromgetAttributes()in that this map is used for attributes that assist in the internal working of Broadleaf Microservices. For example, attributes to help with returning free gift items.- Parameters:
internalAttributes- Miscellaneous internal attributes for this fulfillment item
-
setPricedFulfillmentOption
public void setPricedFulfillmentOption(@Nullable com.broadleafcommerce.order.common.domain.PricedFulfillmentOption pricedFulfillmentOption) ThePricedFulfillmentOptionchosen for this item.- Parameters:
pricedFulfillmentOption- The fulfillment option chosen for this item.- See Also:
-
PricedFulfillmentOption
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-