public final class SetStore extends UpdateActionImpl<Order>
See also OrderUpdateCommand.
StoreFixtures.withStore(client(), store -> withOrderInStore(client(),store, order -> { assertThat(order.getStore()).isNotEqualTo(store); final OrderUpdateCommand command = OrderUpdateCommand.of(order, SetStore.of(store.toResourceIdentifier())); final Order updatedOrder = client().executeBlocking(command); assertThat(updatedOrder.getStore().getKey()).isEqualTo(store.getKey()); return updatedOrder; }) );See the test code.
| Modifier and Type | Method and Description |
|---|---|
ResourceIdentifier<Store> |
getStore() |
static SetStore |
of(ResourceIdentifier<Store> store) |
getActionpublic static SetStore of(@Nullable ResourceIdentifier<Store> store)
@Nullable public ResourceIdentifier<Store> getStore()