Class ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPostString

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,TBody>
io.vrap.rmf.base.client.TypeBodyApiMethod<T,TResult,String>
io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPostString,CartDiscount>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPostString
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPostString>, ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPostString>, ExpandableTrait<ByProjectKeyInStoreKeyByStoreKeyCartDiscountsPostString>, io.vrap.rmf.base.client.ClientRequestCommand<CartDiscount>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<CartDiscount>, io.vrap.rmf.base.client.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.



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