Interface InventoryImportRequest

All Superinterfaces:
ImportRequest

public interface InventoryImportRequest extends ImportRequest

The request body to import Inventories. Contains data for InventoryEntries to be created or updated in a commercetools Project.


Example to create an instance using the builder pattern

     InventoryImportRequest inventoryImportRequest = InventoryImportRequest.builder()
             .plusResources(resourcesBuilder -> resourcesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getResources

      @NotNull @Valid @NotNull @Valid List<InventoryImport> getResources()

      The inventory import resources of this request.

      Returns:
      resources
    • setResources

      void setResources(InventoryImport... resources)

      The inventory import resources of this request.

      Parameters:
      resources - values to be set
    • setResources

      void setResources(List<InventoryImport> resources)

      The inventory import resources of this request.

      Parameters:
      resources - values to be set
    • of

      factory method
      Returns:
      instance of InventoryImportRequest
    • of

      factory method to create a shallow copy InventoryImportRequest
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      factory method to create a deep copy of InventoryImportRequest
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      builder factory method for InventoryImportRequest
      Returns:
      builder
    • builder

      create builder for InventoryImportRequest instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withInventoryImportRequest

      default <T> T withInventoryImportRequest(Function<InventoryImportRequest,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<InventoryImportRequest> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference