Class ByProjectKeyCartDiscountsByIDDelete

All Implemented Interfaces:
ApiDeleteMethod<ByProjectKeyCartDiscountsByIDDelete,CartDiscount>, ConflictingTrait<ByProjectKeyCartDiscountsByIDDelete>, Deprecatable200Trait<ByProjectKeyCartDiscountsByIDDelete>, ErrorableTrait<ByProjectKeyCartDiscountsByIDDelete>, ExpandableTrait<ByProjectKeyCartDiscountsByIDDelete>, VersionedTrait<ByProjectKeyCartDiscountsByIDDelete>, ClientRequestCommand<CartDiscount>, CreateHttpRequestCommand, HttpRequestCommand<CartDiscount>, RequestCommand<CartDiscount>

Deleting a Cart Discount produces the CartDiscountDeleted Message.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.cart_discount.CartDiscount>> result = apiRoot
            .withProjectKey("{projectKey}")
            .cartDiscounts()
            .withId("{ID}")
            .delete()
            .withVersion(version)
            .execute()