public interface ItemShippingDetails
ItemShippingDetails
contains the information where
the individual items should be sent to. If needed, it is possible to set different addresses per sub-quantity of a line item.Modifier and Type | Method and Description |
---|---|
List<ItemShippingTarget> |
getTargets() |
default Map<String,Long> |
getTargetsMap()
Convenience method to extract map address keys to their target without further processing
|
boolean |
isValid()
Boolean, true if the quantity of the (custom) line item is equal to the sum of the quantities in
targets , false
otherwise. |
List<ItemShippingTarget> getTargets()
default Map<String,Long> getTargetsMap()
boolean isValid()
targets
, false
otherwise. A cart cannot be ordered when the value is false and the error
InvalidItemShippingDetailsError
will be triggered.