Class ByProjectKeyCartDiscountsPostString

All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyCartDiscountsPostString>, ErrorableTrait<ByProjectKeyCartDiscountsPostString>, ExpandableTrait<ByProjectKeyCartDiscountsPostString>, 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("")
            .execute()