Class ByProjectKeyCartDiscountsKeyByKeyDelete

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