Class ItemShippingTargetImpl
java.lang.Object
com.commercetools.history.models.common.ItemShippingTargetImpl
- All Implemented Interfaces:
ItemShippingTarget,io.vrap.rmf.base.client.ModelBase
public class ItemShippingTargetImpl
extends Object
implements ItemShippingTarget, io.vrap.rmf.base.client.ModelBase
ItemShippingTarget
-
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 TypeMethodDescriptionbooleanThe key of the address in the cart'sitemShippingAddressesThe quantity of items that should go to the address with the specifiedaddressKey.inthashCode()voidsetAddressKey(String addressKey) The key of the address in the cart'sitemShippingAddressesvoidsetQuantity(Integer quantity) The quantity of items that should go to the address with the specifiedaddressKey.toString()Methods inherited from interface com.commercetools.history.models.common.ItemShippingTarget
withItemShippingTargetMethods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
-
Constructor Details
-
ItemShippingTargetImpl
public ItemShippingTargetImpl()create empty instance
-
-
Method Details
-
getAddressKey
The key of the address in the cart's
itemShippingAddresses- Specified by:
getAddressKeyin interfaceItemShippingTarget- Returns:
- addressKey
-
getQuantity
The quantity of items that should go to the address with the specified
addressKey. Only positive values are allowed. Using0as quantity is also possible in a draft object, but the element will not be present in the resulting ItemShippingDetails.- Specified by:
getQuantityin interfaceItemShippingTarget- Returns:
- quantity
-
setAddressKey
Description copied from interface:ItemShippingTargetThe key of the address in the cart's
itemShippingAddresses- Specified by:
setAddressKeyin interfaceItemShippingTarget- Parameters:
addressKey- value to be set
-
setQuantity
Description copied from interface:ItemShippingTargetThe quantity of items that should go to the address with the specified
addressKey. Only positive values are allowed. Using0as quantity is also possible in a draft object, but the element will not be present in the resulting ItemShippingDetails.- Specified by:
setQuantityin interfaceItemShippingTarget- Parameters:
quantity- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-