Document Task Manager
public class DocumentTaskManager
Content copied to clipboard
The DocumentTaskManager is a high level API on top of the Gini API, which is used via the ApiCommunicator. It provides high level methods to handle document related tasks easily.
Constructors
DocumentTaskManager
Link copied to clipboard
void DocumentTaskManager(ApiCommunicator apiCommunicator, SessionManager sessionManager, GiniApiType giniApiType, Moshi moshi)
Content copied to clipboard
Types
Document Type
Link copied to clipboard
public enum DocumentType
Content copied to clipboard
The available document type hints.
Functions
cancel Document Polling
Link copied to clipboard
Cancels document polling.
create Composite Document
Link copied to clipboard
Task<Document> createCompositeDocument(@NonNull() LinkedHashMap<Document, Integer> documentRotationMap, @Nullable() DocumentTaskManager.DocumentType documentType)
Content copied to clipboard
Task<Document> createCompositeDocument(@NonNull() List<Document> documents, @Nullable() DocumentTaskManager.DocumentType documentType)
Content copied to clipboard
Creates a new Gini composite document.
create Document
Link copied to clipboard
Task<Document> createDocument(@NonNull() Array<byte> document, @Nullable() String filename, @Nullable() DocumentTaskManager.DocumentType documentType)
Content copied to clipboard
Task<Document> createDocument(@NonNull() Array<byte> document, @Nullable() String filename, @Nullable() DocumentTaskManager.DocumentType documentType, @NonNull() DocumentMetadata documentMetadata)
Content copied to clipboard
Uploads raw data and creates a new Gini document.
create Partial Document
Link copied to clipboard
Task<Document> createPartialDocument(@NonNull() Array<byte> document, @NonNull() String contentType, @Nullable() String filename, @Nullable() DocumentTaskManager.DocumentType documentType)
Content copied to clipboard
Task<Document> createPartialDocument(@NonNull() Array<byte> document, @NonNull() String contentType, @Nullable() String filename, @Nullable() DocumentTaskManager.DocumentType documentType, @NonNull() DocumentMetadata documentMetadata)
Content copied to clipboard
Uploads raw data and creates a new Gini partial document.
create Payment Request
Link copied to clipboard
Task<String> createPaymentRequest(PaymentRequestInput paymentRequestInput)
Content copied to clipboard
A PaymentRequest is used to have on the backend the intent of making a payment for a document with its (modified) extractions and specific payment provider.
delete Document
Link copied to clipboard
Deletes a Gini document.
delete Partial Document And Parents
Link copied to clipboard
Task<String> deletePartialDocumentAndParents(@NonNull() String documentId)
Content copied to clipboard
Deletes a Gini partial document and all its parent composite documents.
get All Extractions
Link copied to clipboard
Task<ExtractionsContainer> getAllExtractions(@NonNull() Document document)
Content copied to clipboard
Get the extractions for the given document.
get Document
Link copied to clipboard
Get the document with the given unique identifier.
get Layout
Link copied to clipboard
Gets the layout of a document.
get Page Image
Link copied to clipboard
Get the rendered image of a page as byte[]
get Payment
Link copied to clipboard
Get information about the payment of the PaymentRequest
get Payment Provider
Link copied to clipboard
get Payment Providers
Link copied to clipboard
A payment provider is a Gini partner which integrated the GiniPay for Banks SDK into their mobile apps.
get Payment Request
Link copied to clipboard
get Payment Requests
Link copied to clipboard
log Error Event
Link copied to clipboard
poll Document
Link copied to clipboard
Continually checks the document status (via the Gini API) until the document is fully processed.
report Document
Link copied to clipboard
resolve Payment Request
Link copied to clipboard
Task<ResolvedPayment> resolvePaymentRequest(String requestId, ResolvePaymentInput resolvePaymentInput)
Content copied to clipboard
Mark a PaymentRequest as paid.
send Feedback For Extractions
Link copied to clipboard
Task<Document> sendFeedbackForExtractions(@NonNull() Document document, @NonNull() Map<String, SpecificExtraction> extractions)
Content copied to clipboard
Task<Document> sendFeedbackForExtractions(@NonNull() Document document, @NonNull() Map<String, SpecificExtraction> extractions, @NonNull() Map<String, CompoundExtraction> compoundExtractions)
Content copied to clipboard
Sends approved and conceivably corrected extractions for the given document.
Properties
DEFAULT_COMPRESSION
Link copied to clipboard
public final static int DEFAULT_COMPRESSION
Content copied to clipboard
mApiCommunicator
Link copied to clipboard
POLLING_INTERVAL
Link copied to clipboard
public static long POLLING_INTERVAL
Content copied to clipboard