Class CartUpdateImpl
java.lang.Object
com.commercetools.api.models.cart.CartUpdateImpl
- All Implemented Interfaces:
CartUpdate
,ResourceUpdate<CartUpdate,
,CartUpdateAction, CartUpdateBuilder> io.vrap.rmf.base.client.ModelBase
CartUpdate
-
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
Update actions to be performed on the Cart.Expected version of the Cart on which the changes apply.int
hashCode()
void
setActions
(CartUpdateAction... actions) Update actions to be performed on the Cart.void
setActions
(List<CartUpdateAction> actions) Update actions to be performed on the Cart.void
setVersion
(Long version) Expected version of the Cart on which the changes apply.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.commercetools.api.models.cart.CartUpdate
withCartUpdate
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdate
get
-
Constructor Details
-
CartUpdateImpl
public CartUpdateImpl()create empty instance
-
-
Method Details
-
getVersion
Expected version of the Cart on which the changes apply. If the expected version does not match the actual version, a 409 Conflict is returned.
- Specified by:
getVersion
in interfaceCartUpdate
- Specified by:
getVersion
in interfaceResourceUpdate<CartUpdate,
CartUpdateAction, CartUpdateBuilder> - Returns:
- version
-
getActions
Update actions to be performed on the Cart.
- Specified by:
getActions
in interfaceCartUpdate
- Specified by:
getActions
in interfaceResourceUpdate<CartUpdate,
CartUpdateAction, CartUpdateBuilder> - Returns:
- actions
-
setVersion
Description copied from interface:CartUpdate
Expected version of the Cart on which the changes apply. If the expected version does not match the actual version, a 409 Conflict is returned.
- Specified by:
setVersion
in interfaceCartUpdate
- Specified by:
setVersion
in interfaceResourceUpdate<CartUpdate,
CartUpdateAction, CartUpdateBuilder> - Parameters:
version
- value to be set
-
setActions
Description copied from interface:CartUpdate
Update actions to be performed on the Cart.
- Specified by:
setActions
in interfaceCartUpdate
- Parameters:
actions
- values to be set
-
setActions
Description copied from interface:CartUpdate
Update actions to be performed on the Cart.
- Specified by:
setActions
in interfaceCartUpdate
- Specified by:
setActions
in interfaceResourceUpdate<CartUpdate,
CartUpdateAction, CartUpdateBuilder> - Parameters:
actions
- values to be set
-
equals
-
hashCode
public int hashCode()
-