Class ByProjectKeyCartDiscountsKeyByKeyPost

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<ByProjectKeyCartDiscountsKeyByKeyPost,CartDiscount,CartDiscountUpdate>
com.commercetools.api.client.ByProjectKeyCartDiscountsKeyByKeyPost
All Implemented Interfaces:
ConflictingTrait<ByProjectKeyCartDiscountsKeyByKeyPost>, Deprecatable200Trait<ByProjectKeyCartDiscountsKeyByKeyPost>, ErrorableTrait<ByProjectKeyCartDiscountsKeyByKeyPost>, ExpandableTrait<ByProjectKeyCartDiscountsKeyByKeyPost>, 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>



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