Package com.commercetools.api.client
Class ByProjectKeyCartsCustomerIdByCustomerIdMergePost
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<ByProjectKeyCartsCustomerIdByCustomerIdMergePost,Cart,MergeCartDraft>
com.commercetools.api.client.ByProjectKeyCartsCustomerIdByCustomerIdMergePost
- All Implemented Interfaces:
ErrorableTrait<ByProjectKeyCartsCustomerIdByCustomerIdMergePost>,ClientRequestCommand<Cart>,CreateHttpRequestCommand,HttpRequestCommand<Cart>,RequestCommand<Cart>
public class ByProjectKeyCartsCustomerIdByCustomerIdMergePost
extends TypeBodyApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdMergePost,Cart,MergeCartDraft>
implements ErrorableTrait<ByProjectKeyCartsCustomerIdByCustomerIdMergePost>
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(null)
.execute()
-
Nested Class Summary
Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod
ApiMethod.ParamEntry<K,V> -
Constructor Summary
ConstructorsConstructorDescriptionByProjectKeyCartsCustomerIdByCustomerIdMergePost(ByProjectKeyCartsCustomerIdByCustomerIdMergePost t) ByProjectKeyCartsCustomerIdByCustomerIdMergePost(ApiHttpClient apiHttpClient, String projectKey, String customerId, MergeCartDraft 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()withBody(MergeCartDraft mergeCartDraft) 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
-
ByProjectKeyCartsCustomerIdByCustomerIdMergePost
public ByProjectKeyCartsCustomerIdByCustomerIdMergePost(ApiHttpClient apiHttpClient, String projectKey, String customerId, MergeCartDraft mergeCartDraft) -
ByProjectKeyCartsCustomerIdByCustomerIdMergePost
public ByProjectKeyCartsCustomerIdByCustomerIdMergePost(ByProjectKeyCartsCustomerIdByCustomerIdMergePost t)
-
-
Method Details
-
resultType
- Specified by:
resultTypein interfaceHttpRequestCommand<Cart>
-
executeBlocking
- Specified by:
executeBlockingin interfaceClientRequestCommand<Cart>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdMergePost,Cart>
-
execute
- Specified by:
executein interfaceClientRequestCommand<Cart>- Specified by:
executein classApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdMergePost,Cart>
-
getProjectKey
-
getCustomerId
-
setProjectKey
-
setCustomerId
-
getBody
- Overrides:
getBodyin classTypeBodyApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdMergePost,Cart, MergeCartDraft>
-
withBody
- Overrides:
withBodyin classTypeBodyApiMethod<ByProjectKeyCartsCustomerIdByCustomerIdMergePost,Cart, MergeCartDraft>
-
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-