Class ItemShippingDetailsImpl
java.lang.Object
com.commercetools.api.models.cart.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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.getValid()
true
if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined intargets
.false
if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined intargets
.int
hashCode()
void
setTargets
(ItemShippingTarget... targets) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.void
setTargets
(List<ItemShippingTarget> targets) Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.void
true
if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined intargets
.false
if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined intargets
.toString()
Methods inherited from interface com.commercetools.api.models.cart.ItemShippingDetails
withItemShippingDetails
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ItemShippingDetailsImpl
public ItemShippingDetailsImpl()create empty instance
-
-
Method Details
-
getTargets
Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
- Specified by:
getTargets
in interfaceItemShippingDetails
- Returns:
- targets
-
getValid
true
if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined intargets
.false
if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined intargets
. Ordering a Cart when the value isfalse
returns an InvalidItemShippingDetails error.
- Specified by:
getValid
in interfaceItemShippingDetails
- Returns:
- valid
-
setTargets
Description copied from interface:ItemShippingDetails
Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
- Specified by:
setTargets
in interfaceItemShippingDetails
- Parameters:
targets
- values to be set
-
setTargets
Description copied from interface:ItemShippingDetails
Holds information on the quantity of Line Items or Custom Line Items and the address it is shipped.
- Specified by:
setTargets
in interfaceItemShippingDetails
- Parameters:
targets
- values to be set
-
setValid
Description copied from interface:ItemShippingDetails
true
if the quantity of Line Items or Custom Line Items is equal to the sum of sub-quantities defined intargets
.false
if the quantity of Line Items or Custom Line Items is not equal to the sum of sub-quantities defined intargets
. Ordering a Cart when the value isfalse
returns an InvalidItemShippingDetails error.
- Specified by:
setValid
in interfaceItemShippingDetails
- Parameters:
valid
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-