Package com.commercetools.api.client
Class ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString
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<ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString,Cart>
com.commercetools.api.client.ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString
- All Implemented Interfaces:
ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString>,ClientRequestCommand<Cart>,CreateHttpRequestCommand,HttpRequestCommand<Cart>,RequestCommand<Cart>
public class ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString
extends StringBodyApiMethod<ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString,Cart>
implements ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString>
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.
If the Cart exists in the Project but does not have a store specified, or the store field references a different Store, a ResourceNotFound error is returned.
For more information, see Merge behavior.
CompletableFuture<ApiHttpResponse<com.commercetools.api.models.cart.Cart>> result = apiRoot
.withProjectKey("{projectKey}")
.inStoreKeyWithStoreKeyValue("{storeKey}")
.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
ConstructorsConstructorDescriptionByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString(ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString t) ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString(ApiHttpClient apiHttpClient, String projectKey, String storeKey, 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) voidsetStoreKey(String storeKey) 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
-
ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString
public ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString(ApiHttpClient apiHttpClient, String projectKey, String storeKey, String customerId, String mergeCartDraft) -
ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString
public ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString(ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString t)
-
-
Method Details
-
resultType
- Specified by:
resultTypein interfaceHttpRequestCommand<Cart>
-
executeBlocking
- Specified by:
executeBlockingin interfaceClientRequestCommand<Cart>- Specified by:
executeBlockingin classApiMethod<ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString,Cart>
-
execute
- Specified by:
executein interfaceClientRequestCommand<Cart>- Specified by:
executein classApiMethod<ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString,Cart>
-
getProjectKey
-
getStoreKey
-
getCustomerId
-
setProjectKey
-
setStoreKey
-
setCustomerId
-
getBody
-
withBody
public ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdMergePostString withBody(String mergeCartDraft) -
equals
-
hashCode
public int hashCode() -
toString
-
reflectionHashCode
public int reflectionHashCode()
-