Class ByProjectKeyOrdersImportPostString

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<ByProjectKeyOrdersImportPostString,Order>
com.commercetools.api.client.ByProjectKeyOrdersImportPostString
All Implemented Interfaces:
ErrorableTrait<ByProjectKeyOrdersImportPostString>, io.vrap.rmf.base.client.ClientRequestCommand<Order>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.HttpRequestCommand<Order>, io.vrap.rmf.base.client.RequestCommand<Order>

public class ByProjectKeyOrdersImportPostString extends io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyOrdersImportPostString,Order> implements ErrorableTrait<ByProjectKeyOrdersImportPostString>

Importing an Order produces the Order Imported Message.

Specific Error Codes:

  • OutOfStock
  • CountryNotConfiguredInStore


   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.order.Order>> result = apiRoot
            .withProjectKey("{projectKey}")
            .orders()
            .importOrder()
            .post("")
            .execute()
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class io.vrap.rmf.base.client.ApiMethod

    io.vrap.rmf.base.client.ApiMethod.ParamEntry<K extends Object,V extends Object>
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    ByProjectKeyOrdersImportPostString(io.vrap.rmf.base.client.ApiHttpClient apiHttpClient, String projectKey, String orderImportDraft)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    CompletableFuture<io.vrap.rmf.base.client.ApiHttpResponse<Order>>
    execute(io.vrap.rmf.base.client.ApiHttpClient client)
     
    io.vrap.rmf.base.client.ApiHttpResponse<Order>
    executeBlocking(io.vrap.rmf.base.client.ApiHttpClient client, Duration timeout)
     
     
     
    int
     
    int
     
    com.fasterxml.jackson.core.type.TypeReference<Order>
     
    void
    setProjectKey(String projectKey)
     
     
    withBody(String orderImportDraft)
     

    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, withQueryParams

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface io.vrap.rmf.base.client.ClientRequestCommand

    executeBlocking

    Methods inherited from interface io.vrap.rmf.base.client.CreateHttpRequestCommand

    createHttpRequest

    Methods inherited from interface com.commercetools.api.client.ErrorableTrait

    asErrorableTrait, asErrorableTraitToBaseType

    Methods inherited from interface io.vrap.rmf.base.client.RequestCommand

    executeBlocking
  • Constructor Details

    • ByProjectKeyOrdersImportPostString

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

      public ByProjectKeyOrdersImportPostString(ByProjectKeyOrdersImportPostString t)
  • Method Details

    • resultType

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

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

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

      public String getProjectKey()
    • setProjectKey

      public void setProjectKey(String projectKey)
    • getBody

      public String getBody()
      Overrides:
      getBody in class io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyOrdersImportPostString,Order>
    • withBody

      public ByProjectKeyOrdersImportPostString withBody(String orderImportDraft)
      Overrides:
      withBody in class io.vrap.rmf.base.client.StringBodyApiMethod<ByProjectKeyOrdersImportPostString,Order>
    • equals

      public boolean equals(Object o)
    • hashCode

      public int hashCode()
    • toString

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

      public int reflectionHashCode()