Interface ProcessingState
- All Superinterfaces:
JsonEnum
- All Known Implementing Classes:
ProcessingState.ProcessingStateEnum
Every Import Operation is assigned one of the following states.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
possible values of ProcessingState -
Field Summary
Modifier and TypeFieldDescriptionstatic final ProcessingState
The import request was canceled and the resource was not imported.static final ProcessingState
The resource was successfully imported.static final ProcessingState
The initial state assigned if the request payload (JSON structure and fields) meets Import API specifications.static final ProcessingState
The resource could not be imported.static final ProcessingState
The import request contains KeyReferences to resources that do not exist in your Composable Commerce Project.static final ProcessingState
Either the request payload is missing the data as per Import API specifications, or even though the references were resolved, the data does not meet validation constraints.static final ProcessingState
Products must have at least one Product Variant, also known as the Master Variant. -
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessingState
factory method for a enum value of ProcessingState if no enum has been found an anonymous instance will be createdstatic Optional<ProcessingState>
findEnumViaJsonName
(String jsonName) method to find enum using the JSON valuethe JSON valuename()
the enum valuetoString()
convert value to stringstatic ProcessingState[]
values()
possible enum values
-
Field Details
-
PROCESSING
The initial state assigned if the request payload (JSON structure and fields) meets Import API specifications. The resource import is in progress.
-
VALIDATION_FAILED
Either the request payload is missing the data as per Import API specifications, or even though the references were resolved, the data does not meet validation constraints.
-
UNRESOLVED
The import request contains KeyReferences to resources that do not exist in your Composable Commerce Project.
-
WAIT_FOR_MASTER_VARIANT
Products must have at least one Product Variant, also known as the Master Variant. If you import a Product without a Master Variant, the import request will have this status until another import request includes Master Variant data for the Product.
-
IMPORTED
The resource was successfully imported.
-
REJECTED
The resource could not be imported. References were resolved, but the system could not import the data due to an internal server error and the retry limit was reached.
-
CANCELED
The import request was canceled and the resource was not imported.
-
-
Method Details
-
getJsonName
String getJsonName()the JSON value- Specified by:
getJsonName
in interfaceJsonEnum
- Returns:
- json value
-
name
String name()the enum value -
toString
String toString()convert value to string -
findEnum
factory method for a enum value of ProcessingState if no enum has been found an anonymous instance will be created- Parameters:
value
- the enum value to be wrapped- Returns:
- enum instance
-
findEnumViaJsonName
method to find enum using the JSON value- Parameters:
jsonName
- the json value to be wrapped- Returns:
- optional of enum instance
-
values
possible enum values- Returns:
- array of possible enum values
-