Package com.commercetools.api.client
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>
,ClientRequestCommand<JsonNode>
,CreateHttpRequestCommand
,HttpRequestCommand<JsonNode>
,RequestCommand<JsonNode>
public class ByProjectKeyShippingMethodsMatchingCartLocationHead
extends TypeApiMethod<ByProjectKeyShippingMethodsMatchingCartLocationHead,JsonNode>
implements ErrorableTrait<ByProjectKeyShippingMethodsMatchingCartLocationHead>, Deprecatable200Trait<ByProjectKeyShippingMethodsMatchingCartLocationHead>
Checks if an active 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()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeyShippingMethodsMatchingCartLocationHead
(ByProjectKeyShippingMethodsMatchingCartLocationHead t) ByProjectKeyShippingMethodsMatchingCartLocationHead
(ApiHttpClient apiHttpClient, String projectKey) -
Method Summary
Modifier and TypeMethodDescriptionaddCartId
(Collection<TValue> cartId) add additional cartId query parametersadd additional cartId query parameteradd additional cartId query parameteraddCartId
(TValue cartId) add additional cartId query parameteraddCountry
(Collection<TValue> country) add additional country query parametersadd additional country query parameteraddCountry
(Supplier<String> supplier) add additional country query parameteraddCountry
(TValue country) add additional country query parameteraddState
(Collection<TValue> state) add additional state query parametersadd additional state query parameteradd additional state query parameteraddState
(TValue state) add additional state query parameterboolean
execute
(ApiHttpClient client) executeBlocking
(ApiHttpClient client, Duration timeout) getState()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<JsonNode>
void
setProjectKey
(String projectKey) toString()
withCartId
(Collection<TValue> cartId) set cartId with the specified valuesset cartId with the specified valuewithCartId
(Supplier<String> supplier) set cartId with the specified valuewithCartId
(TValue cartId) set cartId with the specified valuewithCountry
(Collection<TValue> country) set country with the specified valuesset country with the specified valuewithCountry
(Supplier<String> supplier) set country with the specified valuewithCountry
(TValue country) set country with the specified valuewithState
(Collection<TValue> state) set state with the specified valuesset state with the specified valueset state with the specified valuewithState
(TValue state) set state with the specified valueMethods inherited from class io.vrap.rmf.base.client.ApiMethod
addHeader, addQueryParam, addQueryParams, contentType, createHttpRequest, execute, execute, execute, execute, execute, execute, execute, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, executeBlocking, getFirstQueryParam, getHeaders, getQueryParam, getQueryParams, getQueryParamUriString, getQueryParamUriStrings, send, sendBlocking, sendBlocking, with, with, withHeader, withHeaders, withHttpRequest, withoutHeader, withoutQueryParam, withQueryParam, withQueryParams
Methods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlocking
Methods inherited from interface io.vrap.rmf.base.client.CreateHttpRequestCommand
createHttpRequest
Methods inherited from interface com.commercetools.api.client.Deprecatable200Trait
asDeprecatable200Trait, asDeprecatable200TraitToBaseType
Methods inherited from interface com.commercetools.api.client.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseType
Methods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyShippingMethodsMatchingCartLocationHead
public ByProjectKeyShippingMethodsMatchingCartLocationHead(ApiHttpClient apiHttpClient, String projectKey) -
ByProjectKeyShippingMethodsMatchingCartLocationHead
public ByProjectKeyShippingMethodsMatchingCartLocationHead(ByProjectKeyShippingMethodsMatchingCartLocationHead t)
-
-
Method Details
-
resultType
- Specified by:
resultType
in interfaceHttpRequestCommand<JsonNode>
-
executeBlocking
- Specified by:
executeBlocking
in interfaceClientRequestCommand<JsonNode>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyShippingMethodsMatchingCartLocationHead,
JsonNode>
-
execute
- Specified by:
execute
in interfaceClientRequestCommand<JsonNode>
- Specified by:
execute
in classApiMethod<ByProjectKeyShippingMethodsMatchingCartLocationHead,
JsonNode>
-
getProjectKey
-
getCountry
-
getState
-
getCartId
-
setProjectKey
-
withCountry
set country with the specified value- Type Parameters:
TValue
- value type- Parameters:
country
- value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addCountry
add additional country query parameter- Type Parameters:
TValue
- value type- Parameters:
country
- value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
withCountry
set country with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addCountry
add additional country query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
withCountry
public ByProjectKeyShippingMethodsMatchingCartLocationHead withCountry(Function<StringBuilder, StringBuilder> op) set country with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addCountry
public ByProjectKeyShippingMethodsMatchingCartLocationHead addCountry(Function<StringBuilder, StringBuilder> op) add additional country query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
withCountry
public <TValue> ByProjectKeyShippingMethodsMatchingCartLocationHead withCountry(Collection<TValue> country) set country with the specified values- Type Parameters:
TValue
- value type- Parameters:
country
- values to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addCountry
public <TValue> ByProjectKeyShippingMethodsMatchingCartLocationHead addCountry(Collection<TValue> country) add additional country query parameters- Type Parameters:
TValue
- value type- Parameters:
country
- values to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
withState
set state with the specified value- Type Parameters:
TValue
- value type- Parameters:
state
- value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addState
add additional state query parameter- Type Parameters:
TValue
- value type- Parameters:
state
- value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
withState
set state with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addState
add additional state query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
withState
public ByProjectKeyShippingMethodsMatchingCartLocationHead withState(Function<StringBuilder, StringBuilder> op) set state with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addState
public ByProjectKeyShippingMethodsMatchingCartLocationHead addState(Function<StringBuilder, StringBuilder> op) add additional state query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
withState
public <TValue> ByProjectKeyShippingMethodsMatchingCartLocationHead withState(Collection<TValue> state) set state with the specified values- Type Parameters:
TValue
- value type- Parameters:
state
- values to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addState
public <TValue> ByProjectKeyShippingMethodsMatchingCartLocationHead addState(Collection<TValue> state) add additional state query parameters- Type Parameters:
TValue
- value type- Parameters:
state
- values to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
withCartId
set cartId with the specified value- Type Parameters:
TValue
- value type- Parameters:
cartId
- value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addCartId
add additional cartId query parameter- Type Parameters:
TValue
- value type- Parameters:
cartId
- value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
withCartId
set cartId with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addCartId
add additional cartId query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
withCartId
public ByProjectKeyShippingMethodsMatchingCartLocationHead withCartId(Function<StringBuilder, StringBuilder> op) set cartId with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addCartId
public ByProjectKeyShippingMethodsMatchingCartLocationHead addCartId(Function<StringBuilder, StringBuilder> op) add additional cartId query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
withCartId
public <TValue> ByProjectKeyShippingMethodsMatchingCartLocationHead withCartId(Collection<TValue> cartId) set cartId with the specified values- Type Parameters:
TValue
- value type- Parameters:
cartId
- values to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
addCartId
public <TValue> ByProjectKeyShippingMethodsMatchingCartLocationHead addCartId(Collection<TValue> cartId) add additional cartId query parameters- Type Parameters:
TValue
- value type- Parameters:
cartId
- values to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartLocationHead
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-