Class ByProjectKeyCartDiscountsPost

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyCartDiscountsPost>, ErrorableTrait<ByProjectKeyCartDiscountsPost>, ExpandableTrait<ByProjectKeyCartDiscountsPost>, ClientRequestCommand<CartDiscount>, CreateHttpRequestCommand, HttpRequestCommand<CartDiscount>, RequestCommand<CartDiscount>

Creating a Cart Discount produces the CartDiscountCreated Message.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.cart_discount.CartDiscount>> result = apiRoot
            .withProjectKey("{projectKey}")
            .cartDiscounts()
            .post(null)
            .execute()