Class ByProjectKeyCartDiscountsByIDDelete

All Implemented Interfaces:
ApiDeleteMethod<ByProjectKeyCartDiscountsByIDDelete,CartDiscount>, CartDiscountExpansionMixin<ByProjectKeyCartDiscountsByIDDelete>, ConflictingTrait<ByProjectKeyCartDiscountsByIDDelete>, Deprecatable200Trait<ByProjectKeyCartDiscountsByIDDelete>, ErrorableTrait<ByProjectKeyCartDiscountsByIDDelete>, ExpandableRequest<ByProjectKeyCartDiscountsByIDDelete,CartDiscountExpansionBuilderDsl>, 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()