Class StagedOrderSetStoreActionImpl
- All Implemented Interfaces:
StagedOrderSetStoreAction
,StagedOrderUpdateAction
,ResourceUpdateAction<StagedOrderUpdateAction>
,io.vrap.rmf.base.client.ModelBase
Sets the Store the Order is assigned to. It should be used to migrate Orders to a new Store. No validations are performed (such as that the Customer is allowed to create Orders in the Store).
Produces the Order Store Set Message. Returns a 400
error if store
references the same Store the Order is currently assigned to, including if you try to remove the value when no Store is currently assigned.
-
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.StagedOrderSetStoreAction
SET_STORE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getStore()
Value to set.int
hashCode()
void
setStore
(StoreResourceIdentifier store) 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.StagedOrderSetStoreAction
withStagedOrderSetStoreAction
Methods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
withStagedOrderUpdateAction
-
Constructor Details
-
StagedOrderSetStoreActionImpl
public StagedOrderSetStoreActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceResourceUpdateAction<StagedOrderUpdateAction>
- Specified by:
getAction
in interfaceStagedOrderUpdateAction
- Returns:
- action
-
getStore
Value to set. If empty, any existing value will be removed.
If
store
references the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a400
error is returned.- Specified by:
getStore
in interfaceStagedOrderSetStoreAction
- Returns:
- store
-
setStore
Description copied from interface:StagedOrderSetStoreAction
Value to set. If empty, any existing value will be removed.
If
store
references the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a400
error is returned.- Specified by:
setStore
in interfaceStagedOrderSetStoreAction
- Parameters:
store
- value to be set
-
equals
-
hashCode
-