Class ByProjectKeyCartsCustomerIdByCustomerIdMergePost

All Implemented Interfaces:
ErrorableTrait<ByProjectKeyCartsCustomerIdByCustomerIdMergePost>, ClientRequestCommand<Cart>, CreateHttpRequestCommand, HttpRequestCommand<Cart>, RequestCommand<Cart>

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()