Class ByProjectKeyOrdersOrderNumberByOrderNumberHead

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

public class ByProjectKeyOrdersOrderNumberByOrderNumberHead extends io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyOrdersOrderNumberByOrderNumberHead,JsonNode> implements ErrorableTrait<ByProjectKeyOrdersOrderNumberByOrderNumberHead>, Deprecatable200Trait<ByProjectKeyOrdersOrderNumberByOrderNumberHead>

Checks if an Order exists for a given orderNumber. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.



   CompletableFuture<ApiHttpResponse<com.fasterxml.jackson.databind.JsonNode>> result = apiRoot
            .withProjectKey("{projectKey}")
            .orders()
            .withOrderNumber("{orderNumber}")
            .head()
            .execute()
 
  • Constructor Details

    • ByProjectKeyOrdersOrderNumberByOrderNumberHead

      public ByProjectKeyOrdersOrderNumberByOrderNumberHead(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, String orderNumber)
    • ByProjectKeyOrdersOrderNumberByOrderNumberHead

      public ByProjectKeyOrdersOrderNumberByOrderNumberHead(ByProjectKeyOrdersOrderNumberByOrderNumberHead t)
  • Method Details

    • resultType

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

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

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

      public String getProjectKey()
    • getOrderNumber

      public String getOrderNumber()
    • setProjectKey

      public void setProjectKey(String projectKey)
    • setOrderNumber

      public void setOrderNumber(String orderNumber)
    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()