Interface ProcessingState
- All Superinterfaces:
io.vrap.rmf.base.client.JsonEnum
- All Known Implementing Classes:
ProcessingState.ProcessingStateEnum
Every Import Operation is assigned with one of the following states.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
possible values of ProcessingState -
Field Summary
Modifier and TypeFieldDescriptionstatic final ProcessingState
Resource was successfully imported.static final ProcessingState
Initial state assigned if the format (JSON structure and fields) meets the Import API's specification.static final ProcessingState
Resource could not be imported.static final ProcessingState
Import Request contains key references to resources that are currently not present in commercetools Composable Commerce.static final ProcessingState
Either the request payload is missing the data as per the Import API's specification or even though the references were resolved, the data does not meet the validation constraints.static final ProcessingState
Waiting for a master variant to arrive. -
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
Initial state assigned if the format (JSON structure and fields) meets the Import API's specification. The resource import is in progress.
-
VALIDATION_FAILED
Either the request payload is missing the data as per the Import API's specification or even though the references were resolved, the data does not meet the validation constraints.
-
UNRESOLVED
Import Request contains key references to resources that are currently not present in commercetools Composable Commerce.
-
WAIT_FOR_MASTER_VARIANT
Waiting for a master variant to arrive. The Product Import has required attributes and thus a master variant that provides those is required.
-
IMPORTED
Resource was successfully imported.
-
REJECTED
Resource could not be imported. References were resolved, but the system could not import the data due to an internal server error and the limit of retry has been reached.
-
-
Method Details
-
getJsonName
the JSON value- Specified by:
getJsonName
in interfaceio.vrap.rmf.base.client.JsonEnum
- Returns:
- json value
-
name
the enum value- Specified by:
name
in interfaceio.vrap.rmf.base.client.JsonEnum
- Returns:
- name
-
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
-