Class StagedOrderChangeCustomLineItemQuantityActionImpl
- All Implemented Interfaces:
StagedOrderChangeCustomLineItemQuantityAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
When multiple shipping addresses are set for a Custom Line Item, use the Add CustomLineItem update action to change the shipping details. Since it is not possible for the API to infer how the overall change in the Custom Line Item quantity should be distributed over the sub-quantities, the shippingDetails
field is kept in its current state to avoid data loss.
To change the Custom Line Item quantity and shipping details together, use this update action in combination with the Set CustomLineItem ShippingDetails update action in a single Order update command.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase
io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
-
Field Summary
Fields inherited from interface com.commercetools.api.models.order_edit.StagedOrderChangeCustomLineItemQuantityAction
CHANGE_CUSTOM_LINE_ITEM_QUANTITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
id
of the CustomLineItem to update.key
of the CustomLineItem to update.New value to set.int
hashCode()
void
setCustomLineItemId
(String customLineItemId) id
of the CustomLineItem to update.void
setCustomLineItemKey
(String customLineItemKey) key
of the CustomLineItem to update.void
setQuantity
(Long quantity) New value to set.Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
Methods inherited from interface com.commercetools.api.models.order_edit.StagedOrderChangeCustomLineItemQuantityAction
withStagedOrderChangeCustomLineItemQuantityAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderChangeCustomLineItemQuantityActionImpl
create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StagedOrderUpdateAction>
- Specified by:
getAction
in interfaceStagedOrderUpdateAction
- Returns:
- action
-
getCustomLineItemId
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Specified by:
getCustomLineItemId
in interfaceStagedOrderChangeCustomLineItemQuantityAction
- Returns:
- customLineItemId
-
getCustomLineItemKey
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Specified by:
getCustomLineItemKey
in interfaceStagedOrderChangeCustomLineItemQuantityAction
- Returns:
- customLineItemKey
-
getQuantity
New value to set. If
0
, the Custom Line Item is removed from the Order.- Specified by:
getQuantity
in interfaceStagedOrderChangeCustomLineItemQuantityAction
- Returns:
- quantity
-
setCustomLineItemId
Description copied from interface:StagedOrderChangeCustomLineItemQuantityAction
id
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Specified by:
setCustomLineItemId
in interfaceStagedOrderChangeCustomLineItemQuantityAction
- Parameters:
customLineItemId
- value to be set
-
setCustomLineItemKey
Description copied from interface:StagedOrderChangeCustomLineItemQuantityAction
key
of the CustomLineItem to update. EithercustomLineItemId
orcustomLineItemKey
is required.- Specified by:
setCustomLineItemKey
in interfaceStagedOrderChangeCustomLineItemQuantityAction
- Parameters:
customLineItemKey
- value to be set
-
setQuantity
Description copied from interface:StagedOrderChangeCustomLineItemQuantityAction
New value to set. If
0
, the Custom Line Item is removed from the Order.- Specified by:
setQuantity
in interfaceStagedOrderChangeCustomLineItemQuantityAction
- Parameters:
quantity
- value to be set
-
equals
-
hashCode
-