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>
,io.vrap.rmf.base.client.ClientRequestCommand<ShippingMethodPagedQueryResponse>
,io.vrap.rmf.base.client.CreateHttpRequestCommand
,io.vrap.rmf.base.client.HttpRequestCommand<ShippingMethodPagedQueryResponse>
,io.vrap.rmf.base.client.RequestCommand<ShippingMethodPagedQueryResponse>
public class ByProjectKeyShippingMethodsMatchingCartGet
extends io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyShippingMethodsMatchingCartGet,ShippingMethodPagedQueryResponse>
implements ExpandableTrait<ByProjectKeyShippingMethodsMatchingCartGet>, ErrorableTrait<ByProjectKeyShippingMethodsMatchingCartGet>, Deprecatable200Trait<ByProjectKeyShippingMethodsMatchingCartGet>
Retrieves all the ShippingMethods that can ship to the shipping address of the given 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.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.shipping_method.ShippingMethodPagedQueryResponse>> result = apiRoot
.withProjectKey("{projectKey}")
.shippingMethods()
.matchingCart()
.get()
.withCartId(cartId)
.execute()
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionByProjectKeyShippingMethodsMatchingCartGet
(io.vrap.rmf.base.client.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 parameterboolean
CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<ShippingMethodPagedQueryResponse>>
execute
(io.vrap.rmf.base.client.ApiHttpClient client) io.vrap.rmf.base.client.ApiHttpResponse<ShippingMethodPagedQueryResponse>
executeBlocking
(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) int
hashCode()
int
com.fasterxml.jackson.core.type.TypeReference<ShippingMethodPagedQueryResponse>
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 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, 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
-
Constructor Details
-
ByProjectKeyShippingMethodsMatchingCartGet
public ByProjectKeyShippingMethodsMatchingCartGet(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey) -
ByProjectKeyShippingMethodsMatchingCartGet
-
-
Method Details
-
resultType
- Specified by:
resultType
in interfaceio.vrap.rmf.base.client.HttpRequestCommand<ShippingMethodPagedQueryResponse>
-
executeBlocking
public io.vrap.rmf.base.client.ApiHttpResponse<ShippingMethodPagedQueryResponse> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout) - Specified by:
executeBlocking
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<ShippingMethodPagedQueryResponse>
- Specified by:
executeBlocking
in classio.vrap.rmf.base.client.ApiMethod<ByProjectKeyShippingMethodsMatchingCartGet,
ShippingMethodPagedQueryResponse>
-
execute
public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<ShippingMethodPagedQueryResponse>> execute(io.vrap.rmf.base.client.ApiHttpClient client) - Specified by:
execute
in interfaceio.vrap.rmf.base.client.ClientRequestCommand<ShippingMethodPagedQueryResponse>
- Specified by:
execute
in classio.vrap.rmf.base.client.ApiMethod<ByProjectKeyShippingMethodsMatchingCartGet,
ShippingMethodPagedQueryResponse>
-
getProjectKey
-
getCartId
-
getExpand
- Specified by:
getExpand
in 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:
withExpand
in interfaceExpandableTrait<ByProjectKeyShippingMethodsMatchingCartGet>
- Type Parameters:
TValue
- value type- Parameters:
expand
- value to be set- Returns:
- ByProjectKeyShippingMethodsMatchingCartGet
-
addExpand
add additional expand query parameter- Specified by:
addExpand
in 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()
-