Class ByProjectKeyInStoreKeyByStoreKeyOrdersByIDDelete

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyInStoreKeyByStoreKeyOrdersByIDDelete,Order>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyOrdersByIDDelete
All Implemented Interfaces:
ConflictingTrait<ByProjectKeyInStoreKeyByStoreKeyOrdersByIDDelete>, DataerasureTrait<ByProjectKeyInStoreKeyByStoreKeyOrdersByIDDelete>, Deprecatable200Trait<ByProjectKeyInStoreKeyByStoreKeyOrdersByIDDelete>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyOrdersByIDDelete>, ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyOrdersByIDDelete>, VersionedTrait<ByProjectKeyInStoreKeyByStoreKeyOrdersByIDDelete>, ClientRequestCommand<Order>, CreateHttpRequestCommand, HttpRequestCommand<Order>, RequestCommand<Order>

If the Order exists in the Project but does not have a store specified, or the store field references a different Store, this method returns a ResourceNotFound error.

Deleting an Order produces the OrderDeleted Message.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.order.Order>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .orders()
            .withId("{ID}")
            .delete()
            .withVersion(version)
            .execute()