Class ByProjectKeyCartsPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyCartsPost,Cart,CartDraft>
com.commercetools.api.client.ByProjectKeyCartsPost
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyCartsPost>, ErrorableTrait<ByProjectKeyCartsPost>, ExpandableTrait<ByProjectKeyCartsPost>, io.vrap.rmf.base.client.ClientRequestCommand<Cart>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.RequestCommand<Cart>

Creating a Cart fails with an InvalidOperation error if the ShippingMethod referenced in the CartDraft has a predicate that does not match the Cart.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.cart.Cart>> result = apiRoot
            .withProjectKey("{projectKey}")
            .carts()
            .post(null)
            .execute()