BankApiDocumentManager

The BankApiDocumentManager is a high level API on top of the Gini Bank API. It provides high level methods to handle document and payment request related tasks easily.

Functions

Link copied to clipboard
Link copied to clipboard
public final Resource<Document> createPartialDocument(ByteArray document, String contentType, String filename, DocumentManager.DocumentType documentType, DocumentMetadata documentMetadata)
Link copied to clipboard
public final Resource<Unit> deleteDocument(String documentId)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Resource<Document> getDocument(Uri uri)
public final Resource<Document> getDocument(String id)
Link copied to clipboard
public final Resource<JSONObject> getLayout(Document document)
Link copied to clipboard
public final Resource<Payment> getPayment(String id)

Get information about the payment of the PaymentRequest

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
public final Resource<Unit> logErrorEvent(ErrorEvent errorEvent)

Send error events to the Gini Bank API.

Link copied to clipboard
public final Resource<Document> pollDocument(Document document)
Link copied to clipboard
public final Resource<ResolvedPayment> resolvePaymentRequest(String requestId, ResolvePaymentInput resolvePaymentInput)

Mark a PaymentRequest as paid.

Link copied to clipboard
public final Resource<Unit> sendFeedbackForExtractions(Document document, Map<String, SpecificExtraction> specificExtractions)
public final Resource<Unit> sendFeedbackForExtractions(Document document, Map<String, SpecificExtraction> specificExtractions, Map<String, CompoundExtraction> compoundExtractions)