Class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost

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

When using the endpoint, the Store specified in the path and the Stores specified in the payload's stores field are added to the CartDiscount.

Creating a Cart Discount produces the CartDiscountCreated Message.



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