Class ByProjectKeyPaymentsHead

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyPaymentsHead,JsonNode>
com.commercetools.api.client.ByProjectKeyPaymentsHead
All Implemented Interfaces:
Deprecatable200Trait<ByProjectKeyPaymentsHead>, ErrorableTrait<ByProjectKeyPaymentsHead>, 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 ByProjectKeyPaymentsHead extends io.vrap.rmf.base.client.TypeApiMethod<ByProjectKeyPaymentsHead,JsonNode> implements ErrorableTrait<ByProjectKeyPaymentsHead>, Deprecatable200Trait<ByProjectKeyPaymentsHead>

Checks if a Payment exists for a given Query Predicate. Returns a 200 OK status if any Payments match the Query Predicate or a 404 Not Found otherwise.



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

    • ByProjectKeyPaymentsHead

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

      public ByProjectKeyPaymentsHead(ByProjectKeyPaymentsHead 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<ByProjectKeyPaymentsHead,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<ByProjectKeyPaymentsHead,JsonNode>
    • getProjectKey

      public String getProjectKey()
    • getWhere

      public List<String> getWhere()
    • setProjectKey

      public void setProjectKey(String projectKey)
    • withWhere

      public <TValue> ByProjectKeyPaymentsHead withWhere(TValue where)
      set where with the specified value
      Type Parameters:
      TValue - value type
      Parameters:
      where - value to be set
      Returns:
      ByProjectKeyPaymentsHead
    • addWhere

      public <TValue> ByProjectKeyPaymentsHead addWhere(TValue where)
      add additional where query parameter
      Type Parameters:
      TValue - value type
      Parameters:
      where - value to be added
      Returns:
      ByProjectKeyPaymentsHead
    • withWhere

      public ByProjectKeyPaymentsHead withWhere(Supplier<String> supplier)
      set where with the specified value
      Parameters:
      supplier - supplier for the value to be set
      Returns:
      ByProjectKeyPaymentsHead
    • addWhere

      public ByProjectKeyPaymentsHead addWhere(Supplier<String> supplier)
      add additional where query parameter
      Parameters:
      supplier - supplier for the value to be added
      Returns:
      ByProjectKeyPaymentsHead
    • withWhere

      set where with the specified value
      Parameters:
      op - builder for the value to be set
      Returns:
      ByProjectKeyPaymentsHead
    • addWhere

      add additional where query parameter
      Parameters:
      op - builder for the value to be added
      Returns:
      ByProjectKeyPaymentsHead
    • withWhere

      public <TValue> ByProjectKeyPaymentsHead withWhere(Collection<TValue> where)
      set where with the specified values
      Type Parameters:
      TValue - value type
      Parameters:
      where - values to be set
      Returns:
      ByProjectKeyPaymentsHead
    • addWhere

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

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()