Package com.commercetools.api.client
Class ByProjectKeyCartsCustomerIdByCustomerIdMergePostString
java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<T,TResult,TBody>
io.vrap.rmf.base.client.TypeBodyApiMethod<T,TResult,String>
io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdMergePostString,Cart>
com.commercetools.api.client.ByProjectKeyCartsCustomerIdByCustomerIdMergePostString
- All Implemented Interfaces:
ErrorableTrait<ByProjectKeyCartsCustomerIdByCustomerIdMergePostString>,ClientRequestCommand<Cart>,CreateHttpRequestCommand,HttpRequestCommand<Cart>,RequestCommand<Cart>
public class ByProjectKeyCartsCustomerIdByCustomerIdMergePostString
extends StringBodyApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdMergePostString,Cart>
implements ErrorableTrait<ByProjectKeyCartsCustomerIdByCustomerIdMergePostString>
Merges items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. For more information, see Merge behavior.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.cart.Cart>> result = apiRoot
.withProjectKey("{projectKey}")
.carts()
.customerIdWithCustomerIdValueMerge("{customerId}")
.post("")
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,V> -
Constructor Summary
ConstructorsConstructorDescriptionByProjectKeyCartsCustomerIdByCustomerIdMergePostString(ByProjectKeyCartsCustomerIdByCustomerIdMergePostString t) ByProjectKeyCartsCustomerIdByCustomerIdMergePostString(ApiHttpClient apiHttpClient, String projectKey, String customerId, String mergeCartDraft) -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecute(ApiHttpClient client) executeBlocking(ApiHttpClient client, Duration timeout) getBody()inthashCode()intcom.fasterxml.jackson.core.type.TypeReference<Cart>voidsetCustomerId(String customerId) voidsetProjectKey(String projectKey) toString()Methods 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.ErrorableTrait
asErrorableTrait, asErrorableTraitToBaseTypeMethods inherited from interface io.vrap.rmf.base.client.RequestCommand
executeBlocking
-
Constructor Details
-
ByProjectKeyCartsCustomerIdByCustomerIdMergePostString
public ByProjectKeyCartsCustomerIdByCustomerIdMergePostString(ApiHttpClient apiHttpClient, String projectKey, String customerId, String mergeCartDraft) -
ByProjectKeyCartsCustomerIdByCustomerIdMergePostString
public ByProjectKeyCartsCustomerIdByCustomerIdMergePostString(ByProjectKeyCartsCustomerIdByCustomerIdMergePostString t)
-
-
Method Details
-
resultType
- Specified by:
resultTypein interfaceHttpRequestCommand<Cart>
-
executeBlocking
- Specified by:
executeBlockingin interfaceClientRequestCommand<Cart>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdMergePostString,Cart>
-
execute
- Specified by:
executein interfaceClientRequestCommand<Cart>- Specified by:
executein classApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdMergePostString,Cart>
-
getProjectKey
-
getCustomerId
-
setProjectKey
-
setCustomerId
-
getBody
- Overrides:
getBodyin classStringBodyApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdMergePostString,Cart>
-
withBody
- Overrides:
withBodyin classStringBodyApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdMergePostString,Cart>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-