Class SplitItemPair<I>
java.lang.Object
com.broadleafcommerce.cartoperation.domain.SplitItemPair<I>
A DTO to hold a pair of items that was originally split from one or combined into a pair of
items.
This is useful for handling item pricing with limited quantity. For example, if a sale price only has 2 quantity available and the item has a quantity of 3, it needs to be split into a pair of items with quantity of 2 and 1, each has separate pricing.
- Author:
- Sunny Yu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe original item that thesplitItem
was split fromThe split item that was split fromoriginalItem
.void
setOriginalItem
(I originalItem) The original item that thesplitItem
was split fromvoid
setSplitItem
(I splitItem) The split item that was split fromoriginalItem
.
-
Constructor Details
-
SplitItemPair
public SplitItemPair()
-
-
Method Details
-
getOriginalItem
The original item that thesplitItem
was split from -
getSplitItem
The split item that was split fromoriginalItem
. -
setOriginalItem
The original item that thesplitItem
was split from -
setSplitItem
The split item that was split fromoriginalItem
.
-