Class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost,CartDiscount,CartDiscountDraft>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost
All Implemented Interfaces:
io.vrap.rmf.base.client.ClientRequestCommand<CartDiscount>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.RequestCommand<CartDiscount>

public class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost extends io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPost,CartDiscount,CartDiscountDraft>

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.



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