Class ByProjectKeyCartDiscountsKeyByKeyDelete

All Implemented Interfaces:
ApiDeleteMethod<ByProjectKeyCartDiscountsKeyByKeyDelete,CartDiscount>, ConflictingTrait<ByProjectKeyCartDiscountsKeyByKeyDelete>, Deprecatable200Trait<ByProjectKeyCartDiscountsKeyByKeyDelete>, ErrorableTrait<ByProjectKeyCartDiscountsKeyByKeyDelete>, ExpandableTrait<ByProjectKeyCartDiscountsKeyByKeyDelete>, VersionedTrait<ByProjectKeyCartDiscountsKeyByKeyDelete>, 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()
            .withKey("{key}")
            .delete()
            .withVersion(version)
            .execute()