public interface OrderEditCreateCommand extends DraftBasedCreateCommandDsl<OrderEdit,OrderEditDraft,OrderEditCreateCommand>, MetaModelReferenceExpansionDsl<OrderEdit,OrderEditCreateCommand,OrderEditExpansionModel<OrderEdit>>
OrderEdit
.
withOrder(client(), order -> { final OrderEdit orderEdit = createOrderEdit(order); assertThat(orderEdit).isNotNull(); assertThat(orderEdit.getResult()).isNotNull(); final OrderEditDeleteCommand orderEditDeleteCommand = OrderEditDeleteCommand.of(orderEdit); client().executeBlocking(orderEditDeleteCommand); final OrderEditByIdGet orderEditByIdGet = OrderEditByIdGet.of(orderEdit.getId()); final OrderEdit deletedOrderEdit = client().executeBlocking(orderEditByIdGet); assertThat(deletedOrderEdit).isNull(); return order; });
See the test code.
OrderEditDraft
,
OrderEdit
Modifier and Type | Method and Description |
---|---|
static OrderEditCreateCommand |
of(OrderEditDraft draft)
Creates a command object to create a
OrderEdit . |
getDraft, withDraft
canDeserialize, deserialize, httpRequestIntent
plusExpansionPaths, withExpansionPaths
plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, plusExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths, withExpansionPaths
expansionPaths
static OrderEditCreateCommand of(OrderEditDraft draft)
OrderEdit
.draft
- template to create the new object