Interface StagedOrderSetStoreAction
- All Superinterfaces:
ResourceUpdateAction<StagedOrderUpdateAction>,StagedOrderUpdateAction
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.
Example to create an instance using the builder pattern
StagedOrderSetStoreAction stagedOrderSetStoreAction = StagedOrderSetStoreAction.builder()
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder factory method for StagedOrderSetStoreActionbuilder(StagedOrderSetStoreAction template) create builder for StagedOrderSetStoreAction instancecopyDeep()static StagedOrderSetStoreActiondeepCopy(StagedOrderSetStoreAction template) factory method to create a deep copy of StagedOrderSetStoreAction@Valid StoreResourceIdentifiergetStore()Value to set.static StagedOrderSetStoreActionof()factory methodstatic StagedOrderSetStoreActionof(StagedOrderSetStoreAction template) factory method to create a shallow copy StagedOrderSetStoreActionvoidsetStore(StoreResourceIdentifier store) Value to set.static com.fasterxml.jackson.core.type.TypeReference<StagedOrderSetStoreAction>gives a TypeReference for usage with Jackson DataBinddefault <T> Taccessor map functionMethods inherited from interface com.commercetools.api.models.ResourceUpdateAction
getMethods inherited from interface com.commercetools.api.models.order.StagedOrderUpdateAction
getAction, withStagedOrderUpdateAction
-
Field Details
-
SET_STORE
discriminator value for StagedOrderSetStoreAction- See Also:
-
-
Method Details
-
getStore
Value to set. If empty, any existing value will be removed.
If
storereferences the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a400error is returned.- Returns:
- store
-
setStore
Value to set. If empty, any existing value will be removed.
If
storereferences the same Store the Order is currently assigned to or if you try to remove the value when no Store is currently assigned, a400error is returned.- Parameters:
store- value to be set
-
of
factory method- Returns:
- instance of StagedOrderSetStoreAction
-
of
factory method to create a shallow copy StagedOrderSetStoreAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
StagedOrderSetStoreAction copyDeep()- Specified by:
copyDeepin interfaceStagedOrderUpdateAction
-
deepCopy
factory method to create a deep copy of StagedOrderSetStoreAction- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for StagedOrderSetStoreAction- Returns:
- builder
-
builder
create builder for StagedOrderSetStoreAction instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withStagedOrderSetStoreAction
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-