Class ByProjectKeyCartsPostString

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<ByProjectKeyCartsPostString,Cart>
com.commercetools.api.client.ByProjectKeyCartsPostString
All Implemented Interfaces:
Deprecatable201Trait<ByProjectKeyCartsPostString>, ErrorableTrait<ByProjectKeyCartsPostString>, ExpandableTrait<ByProjectKeyCartsPostString>, io.vrap.rmf.base.client.ClientRequestCommand<Cart>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<Cart>, io.vrap.rmf.base.client.RequestCommand<Cart>

public class ByProjectKeyCartsPostString extends io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyCartsPostString,Cart> implements ExpandableTrait<ByProjectKeyCartsPostString>, Deprecatable201Trait<ByProjectKeyCartsPostString>, ErrorableTrait<ByProjectKeyCartsPostString>

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("")
            .execute()