Class CatalogRequest

java.lang.Object
io.constructor.client.CatalogRequest

public class CatalogRequest extends Object
Constructor.io Catalog Request
  • Constructor Details

    • CatalogRequest

      public CatalogRequest(Map<String,File> files, String section)
      Creates a catalog request
      Parameters:
      files - the files to be uploaded
      section - the autocomplete section to upload the files to
  • Method Details

    • setOnMissing

      public void setOnMissing(CatalogRequest.OnMissing onMissing)
      Parameters:
      onMissing - Either "FAIL", "CREATE", "IGNORE", indicating what to do when a missing item is uploaded for patch requests. "FAIL" will fail the patch catalog request if an item does not exist. "CREATE" will create the item if it does not exist. "IGNORE" will ignore items that do not exist. Defaults to "FAIL". Only applicable to patchCatalog requests.
    • getOnMissing

      public CatalogRequest.OnMissing getOnMissing()
      Returns:
      the onMissing strategy
    • setFiles

      public void setFiles(Map<String,File> files)
      Parameters:
      files - the files to be uploaded (items, variations, item_groups)
    • getFiles

      public Map<String,File> getFiles()
      Returns:
      the files to be uploaded
    • setSection

      public void setSection(String section)
      Parameters:
      section - the section to set
    • getSection

      public String getSection()
      Returns:
      the notification email
    • setNotificationEmail

      public void setNotificationEmail(String email)
      Parameters:
      email - the email address where you'd like to receive a notifcation in case the task fails
    • getNotificationEmail

      public String getNotificationEmail()
      Returns:
      the notification email
    • setForce

      public void setForce(Boolean force)
      Parameters:
      force - true if the catalog should be processed even if it will invalidate a large number of existing items
    • getForce

      public Boolean getForce()
      Returns:
      the force flag