Interface ProcessingState

All Superinterfaces:
io.vrap.rmf.base.client.JsonEnum
All Known Implementing Classes:
ProcessingState.ProcessingStateEnum

public interface ProcessingState extends io.vrap.rmf.base.client.JsonEnum

Every Import Operation is assigned with one of the following states.

  • 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

      static final ProcessingState IMPORTED

      Resource was successfully imported.

    • REJECTED

      static final ProcessingState 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 interface io.vrap.rmf.base.client.JsonEnum
      Returns:
      json value
    • name

      the enum value
      Specified by:
      name in interface io.vrap.rmf.base.client.JsonEnum
      Returns:
      name
    • toString

      convert value to string
      Specified by:
      toString in interface io.vrap.rmf.base.client.JsonEnum
      Overrides:
      toString in class Object
      Returns:
      string representation
    • 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

      static ProcessingState[] values()
      possible enum values
      Returns:
      array of possible enum values