Interface ProcessingState

All Superinterfaces:
JsonEnum
All Known Implementing Classes:
ProcessingState.ProcessingStateEnum

public interface ProcessingState extends JsonEnum

Every Import Operation is assigned one of the following states.

  • Field Details

    • PROCESSING

      static final ProcessingState 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

      static final ProcessingState 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

      static final ProcessingState UNRESOLVED

      The import request contains KeyReferences to resources that do not exist in your Composable Commerce Project.

    • WAIT_FOR_MASTER_VARIANT

      static final ProcessingState 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

      static final ProcessingState IMPORTED

      The resource was successfully imported.

    • REJECTED

      static final ProcessingState 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

      static final ProcessingState CANCELED

      The import request was canceled and the resource was not imported.

  • Method Details

    • getJsonName

      String getJsonName()
      the JSON value
      Specified by:
      getJsonName in interface JsonEnum
      Returns:
      json value
    • name

      String name()
      the enum value
      Specified by:
      name in interface JsonEnum
      Returns:
      name
    • toString

      String toString()
      convert value to string
      Specified by:
      toString in interface JsonEnum
      Overrides:
      toString in class Object
      Returns:
      string representation
    • findEnum

      static ProcessingState findEnum(String value)
      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

      static Optional<ProcessingState> findEnumViaJsonName(String jsonName)
      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