Class ByProjectKeyInStoreKeyByStoreKeyCartsByIDDelete

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

If the Cart 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.



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