Class ByProjectKeyShippingMethodsMatchingCartLocationHead

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyShippingMethodsMatchingCartLocationHead,JsonNode>
com.commercetools.api.client.ByProjectKeyShippingMethodsMatchingCartLocationHead
All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyShippingMethodsMatchingCartLocationHead>, ErrorableTrait<ByProjectKeyShippingMethodsMatchingCartLocationHead>, io.vrap.rmf.base.client.ClientRequestCommand<JsonNode>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<JsonNode>, io.vrap.rmf.base.client.RequestCommand<JsonNode>

public class ByProjectKeyShippingMethodsMatchingCartLocationHead extends io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyShippingMethodsMatchingCartLocationHead,JsonNode> implements ErrorableTrait<ByProjectKeyShippingMethodsMatchingCartLocationHead>, Deprecatable200Trait<ByProjectKeyShippingMethodsMatchingCartLocationHead>

Checks if a ShippingMethod that can ship to the given Location exists for the given Cart. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.



   CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> result = apiRoot
            .withProjectKey("{projectKey}")
            .shippingMethods()
            .matchingCartLocation()
            .head()
            .withCountry(country)
            .withCartId(cartId)
            .execute()