Class ItemShippingDetailsImpl
java.lang.Object
com.commercetools.history.models.common.ItemShippingDetailsImpl
- All Implemented Interfaces:
ItemShippingDetails,io.vrap.rmf.base.client.ModelBase
public class ItemShippingDetailsImpl
extends Object
implements ItemShippingDetails, io.vrap.rmf.base.client.ModelBase
ItemShippingDetails
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetValid()true if the quantity of the (custom) line item is equal to the sum of the sub-quantities intargets,falseotherwise.inthashCode()voidsetTargets(ItemShippingTarget... targets) set targetsvoidsetTargets(List<ItemShippingTarget> targets) set targetsvoidtrue if the quantity of the (custom) line item is equal to the sum of the sub-quantities intargets,falseotherwise.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.commercetools.history.models.common.ItemShippingDetails
withItemShippingDetailsMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ItemShippingDetailsImpl
public ItemShippingDetailsImpl()create empty instance
-
-
Method Details
-
getTargets
- Specified by:
getTargetsin interfaceItemShippingDetails- Returns:
- targets
-
getValid
true if the quantity of the (custom) line item is equal to the sum of the sub-quantities in
targets,falseotherwise. A cart cannot be ordered when the value isfalse. The error InvalidItemShippingDetails will be triggered.- Specified by:
getValidin interfaceItemShippingDetails- Returns:
- valid
-
setTargets
Description copied from interface:ItemShippingDetailsset targets- Specified by:
setTargetsin interfaceItemShippingDetails- Parameters:
targets- values to be set
-
setTargets
Description copied from interface:ItemShippingDetailsset targets- Specified by:
setTargetsin interfaceItemShippingDetails- Parameters:
targets- values to be set
-
setValid
Description copied from interface:ItemShippingDetailstrue if the quantity of the (custom) line item is equal to the sum of the sub-quantities in
targets,falseotherwise. A cart cannot be ordered when the value isfalse. The error InvalidItemShippingDetails will be triggered.- Specified by:
setValidin interfaceItemShippingDetails- Parameters:
valid- value to be set
-
equals
-
hashCode
-