Package com.commercetools.api.client
Class ByProjectKeyShippingMethodsMatchingLocationGet
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyShippingMethodsMatchingLocationGet,ShippingMethodPagedQueryResponse>
com.commercetools.api.client.ByProjectKeyShippingMethodsMatchingLocationGet
- All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyShippingMethodsMatchingLocationGet>
,ErrorableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>
,ExpandableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>
,SortableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>
,ClientRequestCommand<ShippingMethodPagedQueryResponse>
,CreateHttpRequestCommand
,HttpRequestCommand<ShippingMethodPagedQueryResponse>
,RequestCommand<ShippingMethodPagedQueryResponse>
public class ByProjectKeyShippingMethodsMatchingLocationGet
extends TypeApiMethod<ByProjectKeyShippingMethodsMatchingLocationGet,ShippingMethodPagedQueryResponse>
implements ExpandableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>, SortableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>, ErrorableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>, Deprecatable200Trait<ByProjectKeyShippingMethodsMatchingLocationGet>
Retrieves all the active ShippingMethods that can ship to the given Location. ShippingMethods that have a predicate
defined are automatically disqualified. If the currency
parameter is given, then the ShippingMethods must also have a rate defined in the specified currency. Each ShippingMethod contains at least one ShippingRate with the flag isMatching
set to true
. If the currency
parameter is given, exactly one ShippingRate will contain it.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.shipping_method.ShippingMethodPagedQueryResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.shippingMethods()
.matchingLocation()
.get()
.withCountry(country)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,
V> -
Constructor Summary
ConstructorDescriptionByProjectKeyShippingMethodsMatchingLocationGet
(ApiHttpClient apiHttpClient, String projectKey) -
Method Summary
Modifier and TypeMethodDescriptionaddCountry
(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 parameteraddCurrency
(Collection<TValue> currency) add additional currency query parametersadd additional currency query parameteraddCurrency
(Supplier<String> supplier) add additional currency query parameteraddCurrency
(TValue currency) add additional currency query parameteraddExpand
(Collection<TValue> expand) add additional expand query parametersadd additional expand query parameteradd additional expand query parameteraddExpand
(TValue expand) add additional expand query parameteraddSort
(Collection<TValue> sort) add additional sort query parametersadd additional sort query parameteradd additional sort query parameteraddSort
(TValue sort) add additional sort 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) getSort()
getState()
int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<ShippingMethodPagedQueryResponse>
void
setProjectKey
(String projectKey) toString()
withCountry
(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 valuewithCurrency
(Collection<TValue> currency) set currency with the specified valuesset currency with the specified valuewithCurrency
(Supplier<String> supplier) set currency with the specified valuewithCurrency
(TValue currency) set currency with the specified valuewithExpand
(Collection<TValue> expand) set expand with the specified valuesset expand with the specified valuewithExpand
(Supplier<String> supplier) set expand with the specified valuewithExpand
(TValue expand) set expand with the specified valuewithSort
(Collection<TValue> sort) set sort with the specified valuesset sort with the specified valueset sort with the specified valuewithSort
(TValue sort) set sort 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 com.commercetools.api.client.ExpandableTrait
asExpandableTrait, asExpandableTraitToBaseType
Methods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
Methods inherited from interface com.commercetools.api.client.SortableTrait
asSortableTrait, asSortableTraitToBaseType
-
Constructor Details
-
ByProjectKeyShippingMethodsMatchingLocationGet
public ByProjectKeyShippingMethodsMatchingLocationGet(ApiHttpClient apiHttpClient, String projectKey) -
ByProjectKeyShippingMethodsMatchingLocationGet
public ByProjectKeyShippingMethodsMatchingLocationGet(ByProjectKeyShippingMethodsMatchingLocationGet t)
-
-
Method Details
-
resultType
- Specified by:
resultType
in interfaceHttpRequestCommand<ShippingMethodPagedQueryResponse>
-
executeBlocking
public ApiHttpResponse<ShippingMethodPagedQueryResponse> executeBlocking(ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceClientRequestCommand<ShippingMethodPagedQueryResponse>
- Specified by:
executeBlocking
in classApiMethod<ByProjectKeyShippingMethodsMatchingLocationGet,
ShippingMethodPagedQueryResponse>
-
execute
public CompletableFuture<ApiHttpResponse<ShippingMethodPagedQueryResponse>> execute(ApiHttpClient client) - Specified by:
execute
in interfaceClientRequestCommand<ShippingMethodPagedQueryResponse>
- Specified by:
execute
in classApiMethod<ByProjectKeyShippingMethodsMatchingLocationGet,
ShippingMethodPagedQueryResponse>
-
getProjectKey
-
getCountry
-
getState
-
getCurrency
-
getExpand
- Specified by:
getExpand
in interfaceExpandableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>
-
getSort
- Specified by:
getSort
in interfaceSortableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>
-
setProjectKey
-
withCountry
set country with the specified value- Type Parameters:
TValue
- value type- Parameters:
country
- value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addCountry
add additional country query parameter- Type Parameters:
TValue
- value type- Parameters:
country
- value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withCountry
set country with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addCountry
add additional country query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withCountry
public ByProjectKeyShippingMethodsMatchingLocationGet withCountry(Function<StringBuilder, StringBuilder> op) set country with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addCountry
public ByProjectKeyShippingMethodsMatchingLocationGet addCountry(Function<StringBuilder, StringBuilder> op) add additional country query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withCountry
public <TValue> ByProjectKeyShippingMethodsMatchingLocationGet withCountry(Collection<TValue> country) set country with the specified values- Type Parameters:
TValue
- value type- Parameters:
country
- values to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addCountry
public <TValue> ByProjectKeyShippingMethodsMatchingLocationGet addCountry(Collection<TValue> country) add additional country query parameters- Type Parameters:
TValue
- value type- Parameters:
country
- values to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withState
set state with the specified value- Type Parameters:
TValue
- value type- Parameters:
state
- value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addState
add additional state query parameter- Type Parameters:
TValue
- value type- Parameters:
state
- value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withState
set state with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addState
add additional state query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withState
public ByProjectKeyShippingMethodsMatchingLocationGet withState(Function<StringBuilder, StringBuilder> op) set state with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addState
public ByProjectKeyShippingMethodsMatchingLocationGet addState(Function<StringBuilder, StringBuilder> op) add additional state query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withState
set state with the specified values- Type Parameters:
TValue
- value type- Parameters:
state
- values to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addState
add additional state query parameters- Type Parameters:
TValue
- value type- Parameters:
state
- values to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withCurrency
set currency with the specified value- Type Parameters:
TValue
- value type- Parameters:
currency
- value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addCurrency
add additional currency query parameter- Type Parameters:
TValue
- value type- Parameters:
currency
- value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withCurrency
set currency with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addCurrency
add additional currency query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withCurrency
public ByProjectKeyShippingMethodsMatchingLocationGet withCurrency(Function<StringBuilder, StringBuilder> op) set currency with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addCurrency
public ByProjectKeyShippingMethodsMatchingLocationGet addCurrency(Function<StringBuilder, StringBuilder> op) add additional currency query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withCurrency
public <TValue> ByProjectKeyShippingMethodsMatchingLocationGet withCurrency(Collection<TValue> currency) set currency with the specified values- Type Parameters:
TValue
- value type- Parameters:
currency
- values to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addCurrency
public <TValue> ByProjectKeyShippingMethodsMatchingLocationGet addCurrency(Collection<TValue> currency) add additional currency query parameters- Type Parameters:
TValue
- value type- Parameters:
currency
- values to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withExpand
set expand with the specified value- Specified by:
withExpand
in interfaceExpandableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>
- Type Parameters:
TValue
- value type- Parameters:
expand
- value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addExpand
add additional expand query parameter- Specified by:
addExpand
in interfaceExpandableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>
- Type Parameters:
TValue
- value type- Parameters:
expand
- value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withExpand
set expand with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addExpand
add additional expand query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withExpand
public ByProjectKeyShippingMethodsMatchingLocationGet withExpand(Function<StringBuilder, StringBuilder> op) set expand with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addExpand
public ByProjectKeyShippingMethodsMatchingLocationGet addExpand(Function<StringBuilder, StringBuilder> op) add additional expand query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withExpand
public <TValue> ByProjectKeyShippingMethodsMatchingLocationGet withExpand(Collection<TValue> expand) set expand with the specified values- Type Parameters:
TValue
- value type- Parameters:
expand
- values to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addExpand
add additional expand query parameters- Type Parameters:
TValue
- value type- Parameters:
expand
- values to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withSort
set sort with the specified value- Specified by:
withSort
in interfaceSortableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>
- Type Parameters:
TValue
- value type- Parameters:
sort
- value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addSort
add additional sort query parameter- Specified by:
addSort
in interfaceSortableTrait<ByProjectKeyShippingMethodsMatchingLocationGet>
- Type Parameters:
TValue
- value type- Parameters:
sort
- value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withSort
set sort with the specified value- Parameters:
supplier
- supplier for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addSort
add additional sort query parameter- Parameters:
supplier
- supplier for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withSort
public ByProjectKeyShippingMethodsMatchingLocationGet withSort(Function<StringBuilder, StringBuilder> op) set sort with the specified value- Parameters:
op
- builder for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addSort
public ByProjectKeyShippingMethodsMatchingLocationGet addSort(Function<StringBuilder, StringBuilder> op) add additional sort query parameter- Parameters:
op
- builder for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
withSort
set sort with the specified values- Type Parameters:
TValue
- value type- Parameters:
sort
- values to be set- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
addSort
add additional sort query parameters- Type Parameters:
TValue
- value type- Parameters:
sort
- values to be added- Returns:
- ByProjectKeyShippingMethodsMatchingLocationGet
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-