Package com.commercetools.api.client
Class ByProjectKeyShippingMethodsMatchingCartGet
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyShippingMethodsMatchingCartGet,ShippingMethodPagedQueryResponse>
com.commercetools.api.client.ByProjectKeyShippingMethodsMatchingCartGet
- All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyShippingMethodsMatchingCartGet>,ErrorableTrait<ByProjectKeyShippingMethodsMatchingCartGet>,ExpandableTrait<ByProjectKeyShippingMethodsMatchingCartGet>,ClientRequestCommand<ShippingMethodPagedQueryResponse>,CreateHttpRequestCommand,HttpRequestCommand<ShippingMethodPagedQueryResponse>,RequestCommand<ShippingMethodPagedQueryResponse>
public class ByProjectKeyShippingMethodsMatchingCartGet
extends TypeApiMethod<ByProjectKeyShippingMethodsMatchingCartGet,ShippingMethodPagedQueryResponse>
implements ExpandableTrait<ByProjectKeyShippingMethodsMatchingCartGet>, ErrorableTrait<ByProjectKeyShippingMethodsMatchingCartGet>, Deprecatable200Trait<ByProjectKeyShippingMethodsMatchingCartGet>
Retrieves the active ShippingMethods that can ship to the shipping address of the provided Cart.
Each ShippingMethod contains exactly one ShippingRate with the flag isMatching set to true. This ShippingRate is used when the ShippingMethod is added to the Cart.
If a matching ShippingMethod has isDefault set to true, it is returned as the first item in the array.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.shipping_method.ShippingMethodPagedQueryResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.shippingMethods()
.matchingCart()
.get()
.withCartId(cartId)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,V> -
Constructor Summary
ConstructorsConstructorDescriptionByProjectKeyShippingMethodsMatchingCartGet(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 parameteraddExpand(Collection<TValue> expand) add additional expand query parametersadd additional expand query parameteradd additional expand query parameteraddExpand(TValue expand) add additional expand query parameterbooleanexecute(ApiHttpClient client) executeBlocking(ApiHttpClient client, Duration timeout) inthashCode()intcom.fasterxml.jackson.core.type.TypeReference<ShippingMethodPagedQueryResponse>voidsetProjectKey(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 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 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, withQueryParamsMethods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand
executeBlockingMethods inherited from interface io.vrap.rmf.base.client.CreateHttpRequestCommand
createHttpRequestMethods inherited from interface com.commercetools.api.client.Deprecatable200Trait
asDeprecatable200Trait, asDeprecatable200TraitToBaseTypeMethods inherited from interface com.commercetools.api.client.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseTypeMethods inherited from interface com.commercetools.api.client.ExpandableTrait
asExpandableTrait, asExpandableTraitToBaseTypeMethods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyShippingMethodsMatchingCartGet
-
ByProjectKeyShippingMethodsMatchingCartGet
-
-
Method Details
-
resultType
- Specified by:
resultTypein interfaceHttpRequestCommand<ShippingMethodPagedQueryResponse>
-
executeBlocking
public ApiHttpResponse<ShippingMethodPagedQueryResponse> executeBlocking(ApiHttpClient client, Duration timeout) - Specified by:
executeBlockingin interfaceClientRequestCommand<ShippingMethodPagedQueryResponse>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyShippingMethodsMatchingCartGet,ShippingMethodPagedQueryResponse>
-
execute
public CompletableFuture<ApiHttpResponse<ShippingMethodPagedQueryResponse>> execute(ApiHttpClient client) - Specified by:
executein interfaceClientRequestCommand<ShippingMethodPagedQueryResponse>- Specified by:
executein classApiMethod<ByProjectKeyShippingMethodsMatchingCartGet,ShippingMethodPagedQueryResponse>
-
getProjectKey
-
getCartId
-
getExpand
- Specified by:
getExpandin interfaceExpandableTrait<ByProjectKeyShippingMethodsMatchingCartGet>
-
setProjectKey
-
withCartId
set cartId with the specified value- Type Parameters:
TValue- value type- Parameters:
cartId- value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
addCartId
add additional cartId query parameter- Type Parameters:
TValue- value type- Parameters:
cartId- value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
withCartId
set cartId with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
addCartId
add additional cartId query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
withCartId
public ByProjectKeyShippingMethodsMatchingCartGet withCartId(Function<StringBuilder, StringBuilder> op) set cartId with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
addCartId
public ByProjectKeyShippingMethodsMatchingCartGet addCartId(Function<StringBuilder, StringBuilder> op) add additional cartId query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
withCartId
set cartId with the specified values- Type Parameters:
TValue- value type- Parameters:
cartId- values to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
addCartId
add additional cartId query parameters- Type Parameters:
TValue- value type- Parameters:
cartId- values to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
withExpand
set expand with the specified value- Specified by:
withExpandin interfaceExpandableTrait<ByProjectKeyShippingMethodsMatchingCartGet>- Type Parameters:
TValue- value type- Parameters:
expand- value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
addExpand
add additional expand query parameter- Specified by:
addExpandin interfaceExpandableTrait<ByProjectKeyShippingMethodsMatchingCartGet>- Type Parameters:
TValue- value type- Parameters:
expand- value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
withExpand
set expand with the specified value- Parameters:
supplier- supplier for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
addExpand
add additional expand query parameter- Parameters:
supplier- supplier for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
withExpand
public ByProjectKeyShippingMethodsMatchingCartGet withExpand(Function<StringBuilder, StringBuilder> op) set expand with the specified value- Parameters:
op- builder for the value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
addExpand
public ByProjectKeyShippingMethodsMatchingCartGet addExpand(Function<StringBuilder, StringBuilder> op) add additional expand query parameter- Parameters:
op- builder for the value to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
withExpand
set expand with the specified values- Type Parameters:
TValue- value type- Parameters:
expand- values to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
addExpand
add additional expand query parameters- Type Parameters:
TValue- value type- Parameters:
expand- values to be added- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-