Class OrderSetStoreActionImpl
- All Implemented Interfaces:
OrderSetStoreAction
,OrderUpdateAction
,ResourceUpdateAction<OrderUpdateAction>
,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.OrderSetStoreAction
SET_STORE
-
Constructor Summary
-
Method Summary
Methods inherited from interface io.vrap.rmf.base.client.ModelBase
reflectionString, reflectionString
Methods inherited from interface com.commercetools.api.models.order.OrderSetStoreAction
withOrderSetStoreAction
Methods inherited from interface com.commercetools.api.models.order.OrderUpdateAction
withOrderUpdateAction
Methods inherited from interface com.commercetools.api.models.ResourceUpdateAction
get
-
Constructor Details
-
OrderSetStoreActionImpl
public OrderSetStoreActionImpl()create empty instance
-
-
Method Details
-
getAction
- Specified by:
getAction
in interfaceOrderUpdateAction
- Specified by:
getAction
in interfaceResourceUpdateAction<OrderUpdateAction>
- Returns:
- action
-
getStore
Value to set. If empty, any existing value is 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 interfaceOrderSetStoreAction
- Returns:
- store
-
setStore
Description copied from interface:OrderSetStoreAction
Value to set. If empty, any existing value is 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 interfaceOrderSetStoreAction
- Parameters:
store
- value to be set
-
equals
-
hashCode
public int hashCode() -
toString
-