Class ByProjectKeyCartsKeyByKeyGet

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyCartsKeyByKeyGet,Cart>
com.commercetools.api.client.ByProjectKeyCartsKeyByKeyGet
All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyCartsKeyByKeyGet>, ErrorableTrait<ByProjectKeyCartsKeyByKeyGet>, ExpandableTrait<ByProjectKeyCartsKeyByKeyGet>, io.vrap.rmf.base.client.ClientRequestCommand<Cart>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<Cart>, io.vrap.rmf.base.client.RequestCommand<Cart>

public class ByProjectKeyCartsKeyByKeyGet extends io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyCartsKeyByKeyGet,Cart> implements ExpandableTrait<ByProjectKeyCartsKeyByKeyGet>, ErrorableTrait<ByProjectKeyCartsKeyByKeyGet>, Deprecatable200Trait<ByProjectKeyCartsKeyByKeyGet>

To ensure the Cart is up-to-date with current values (such as Prices and Discounts), use the Recalculate update action.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.cart.Cart>> result = apiRoot
            .withProjectKey("{projectKey}")
            .carts()
            .withKey("{key}")
            .get()
            .execute()
 
  • Constructor Details

    • ByProjectKeyCartsKeyByKeyGet

      public ByProjectKeyCartsKeyByKeyGet(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, String key)
    • ByProjectKeyCartsKeyByKeyGet

      public ByProjectKeyCartsKeyByKeyGet(ByProjectKeyCartsKeyByKeyGet t)
  • Method Details

    • resultType

      public com.fasterxml.jackson.core.type.TypeReference<Cart> resultType()
      Specified by:
      resultType in interface io.vrap.rmf.base.client.HttpRequestCommand<Cart>
    • executeBlocking

      public io.vrap.rmf.base.client.ApiHttpResponse<Cart> executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout)
      Specified by:
      executeBlocking in interface io.vrap.rmf.base.client.ClientRequestCommand<Cart>
      Specified by:
      executeBlocking in class io.vrap.rmf.base.client.ApiMethod<ByProjectKeyCartsKeyByKeyGet,Cart>
    • execute

      public CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<Cart>> execute(io.vrap.rmf.base.client.ApiHttpClient client)
      Specified by:
      execute in interface io.vrap.rmf.base.client.ClientRequestCommand<Cart>
      Specified by:
      execute in class io.vrap.rmf.base.client.ApiMethod<ByProjectKeyCartsKeyByKeyGet,Cart>
    • getProjectKey

      public String getProjectKey()
    • getKey

      public String getKey()
    • getExpand

      public List<String> getExpand()
      Specified by:
      getExpand in interface ExpandableTrait<ByProjectKeyCartsKeyByKeyGet>
    • setProjectKey

      public void setProjectKey(String projectKey)
    • setKey

      public void setKey(String key)
    • withExpand

      public <TValue> ByProjectKeyCartsKeyByKeyGet withExpand(TValue expand)
      set expand with the specified value
      Specified by:
      withExpand in interface ExpandableTrait<ByProjectKeyCartsKeyByKeyGet>
      Type Parameters:
      TValue - value type
      Parameters:
      expand - value to be set
      Returns:
      ByProjectKeyCartsKeyByKeyGet
    • addExpand

      public <TValue> ByProjectKeyCartsKeyByKeyGet addExpand(TValue expand)
      add additional expand query parameter
      Specified by:
      addExpand in interface ExpandableTrait<ByProjectKeyCartsKeyByKeyGet>
      Type Parameters:
      TValue - value type
      Parameters:
      expand - value to be added
      Returns:
      ByProjectKeyCartsKeyByKeyGet
    • withExpand

      public ByProjectKeyCartsKeyByKeyGet withExpand(Supplier<String> supplier)
      set expand with the specified value
      Parameters:
      supplier - supplier for the value to be set
      Returns:
      ByProjectKeyCartsKeyByKeyGet
    • addExpand

      public ByProjectKeyCartsKeyByKeyGet addExpand(Supplier<String> supplier)
      add additional expand query parameter
      Parameters:
      supplier - supplier for the value to be added
      Returns:
      ByProjectKeyCartsKeyByKeyGet
    • withExpand

      set expand with the specified value
      Parameters:
      op - builder for the value to be set
      Returns:
      ByProjectKeyCartsKeyByKeyGet
    • addExpand

      add additional expand query parameter
      Parameters:
      op - builder for the value to be added
      Returns:
      ByProjectKeyCartsKeyByKeyGet
    • withExpand

      public <TValue> ByProjectKeyCartsKeyByKeyGet withExpand(Collection<TValue> expand)
      set expand with the specified values
      Type Parameters:
      TValue - value type
      Parameters:
      expand - values to be set
      Returns:
      ByProjectKeyCartsKeyByKeyGet
    • addExpand

      public <TValue> ByProjectKeyCartsKeyByKeyGet addExpand(Collection<TValue> expand)
      add additional expand query parameters
      Type Parameters:
      TValue - value type
      Parameters:
      expand - values to be added
      Returns:
      ByProjectKeyCartsKeyByKeyGet
    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • reflectionHashCode

      public int reflectionHashCode()