View on GitHub

sensibill-android-documentation

com.getsensibill.core.analytic / Transaction / Status

Status

enum class Status

Enum representing the status of a Transaction.

Below one can find a simple representation of the status progression flow.

       +-----------+
       |  UNKNOWN  +-------------+
       +-----+-----+             |
             |                   |
             v                   |
       +-----+-----+             |
    +--+ UPLOADING +----------+  |
    |  ------+-----+          |  |
    |        |                |  |
    |        v                |  |
    |  +-----+-----+          |  |
    |  |PROCESSING +------+   |  |
    |  +-----+------      |   |  |
    |        |            |   |  |
    |        v            v   v  v
    |  +-----+-----+     ++---+--++
    +->+ COMPLETED |     | FAILED |
       +-----------+     +--------+

Enum Values

Name Summary
UNKNOWN Transaction status is not yet known. Transaction in this state will go through local validation and can then move to either UPLOADING or FAILED depending on the result.
PENDING PENDING status will no longer be set. Check UPLOADING and PROCESSING definitions for more information.
UPLOADING Transaction processing has started, image upload in progress. This status is set immediately after transaction was locally validated. This status will be kept until a response from server is received and can be followed by PROCESSING, COMPLETED, or FAILED status.
PROCESSING Transaction processing finished image upload, image data extraction in progress. This status will remain the same until a response from the server with a final status (COMPLETED or FAILED) is received.
COMPLETED Transaction processing has finished successfully. The transaction has been fully processed and data extraction step finished successfully. This is a final status.
FAILED Transaction validation or processing has failed. The transaction process failed at some point during the upload/processing stage. This is a final status.