Gini Health
GiniHealth is one of the main classes for interacting with the Gini Health SDK. It manages interaction with the Gini Health API.
documentFlow, paymentFlow, openBankState are used by the ReviewFragment to observe their state, but they are public so that they can be observed anywhere, the main purpose for this is to observe errors.
Constructors
Types
Functions
Checks whether the invoice contains multiple documents by fetching the invoice and its extractions from the Gini Pay API and verifying whether it has multiple documents or not.
Checks whether the document is payable by fetching the document and its extractions from the Gini Pay API and verifying that the extraction's payment state is "Payable".
A flow for getting the Document set for review setDocumentForReview.
A flow that exposes the state of opening the bank. You can collect this flow to get information about the errors of this action.
A flow for getting extracted PaymentDetails for the document set for review (see setDocumentForReview).
Sets a Document for review. Results can be collected from documentFlow and paymentFlow.
Sets a lifecycle observer to handle state restoration after the system kills the app.
Sets the app language to the desired one from the languages the SDK is supporting. If not set then defaults to the system's language locale.
Properties
A flow for getting the Document set for review setDocumentForReview.
A flow for getting extracted PaymentDetails for the document set for review (see setDocumentForReview).