Package io.constructor.client
Class CatalogRequest
java.lang.Object
io.constructor.client.CatalogRequest
Constructor.io Catalog Request
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionCatalogRequest
(Map<String, File> files, String section) Creates a catalog request -
Method Summary
Modifier and TypeMethodDescriptiongetFiles()
getForce()
void
void
void
setNotificationEmail
(String email) void
setOnMissing
(CatalogRequest.OnMissing onMissing) void
setSection
(String section)
-
Constructor Details
-
CatalogRequest
Creates a catalog request- Parameters:
files
- the files to be uploadedsection
- the autocomplete section to upload the files to
-
-
Method Details
-
setOnMissing
- 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
- Returns:
- the onMissing strategy
-
setFiles
- Parameters:
files
- the files to be uploaded (items, variations, item_groups)
-
getFiles
- Returns:
- the files to be uploaded
-
setSection
- Parameters:
section
- the section to set
-
getSection
- Returns:
- the notification email
-
setNotificationEmail
- Parameters:
email
- the email address where you'd like to receive a notifcation in case the task fails
-
getNotificationEmail
- Returns:
- the notification email
-
setForce
- Parameters:
force
- true if the catalog should be processed even if it will invalidate a large number of existing items
-
getForce
- Returns:
- the force flag
-