-
- All Implemented Interfaces:
public class HealthApiDocumentTaskManager extends DocumentTaskManager<HealthApiCommunicator, ExtractionsContainer>
Created by Alpár Szotyori on 25.01.22.
Copyright (c) 2022 Gini GmbH.
-
-
Constructor Summary
Constructors Constructor Description HealthApiDocumentTaskManager(HealthApiCommunicator apiCommunicator, SessionManager sessionManager, GiniApiType giniApiType, Moshi moshi)
-
Method Summary
Modifier and Type Method Description Task<Document>sendFeedbackForExtractions(@NonNull() Document document, @NonNull() Map<String, SpecificExtraction> extractions)Sends approved and conceivably corrected extractions for the given document. Task<Document>sendFeedbackForExtractions(@NonNull() Document document, @NonNull() Map<String, SpecificExtraction> extractions, @NonNull() Map<String, CompoundExtraction> compoundExtractions)Sends approved and conceivably corrected extractions for the given document. Task<Array<byte>>getPageImage(String documentId, int page)Get the rendered image of a page as byte[] Task<List<PaymentProvider>>getPaymentProviders()A payment provider is a Gini partner which integrated the GiniPay for Banks SDK into their mobile apps. Task<PaymentProvider>getPaymentProvider(String id)Task<String>createPaymentRequest(PaymentRequestInput paymentRequestInput)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. -
Methods inherited from class net.gini.android.core.api.DocumentTaskManager
cancelDocumentPolling, createCompositeDocument, createDocument, createPartialDocument, deleteDocument, deletePartialDocumentAndParents, getAllExtractions, getDocument, getLayout, getMoshi, getPaymentRequest, getPaymentRequests, pollDocument, reportDocument -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
HealthApiDocumentTaskManager
HealthApiDocumentTaskManager(HealthApiCommunicator apiCommunicator, SessionManager sessionManager, GiniApiType giniApiType, Moshi moshi)
-
-
Method Detail
-
sendFeedbackForExtractions
Task<Document> sendFeedbackForExtractions(@NonNull() Document document, @NonNull() Map<String, SpecificExtraction> extractions)
Sends approved and conceivably corrected extractions for the given document. This is called "submitting feedback on extractions" in the Gini API documentation.
- Parameters:
document- The document for which the extractions should be updated.extractions- A Map where the key is the name of the specific extraction and the value is the SpecificExtraction object.
-
sendFeedbackForExtractions
Task<Document> sendFeedbackForExtractions(@NonNull() Document document, @NonNull() Map<String, SpecificExtraction> extractions, @NonNull() Map<String, CompoundExtraction> compoundExtractions)
Sends approved and conceivably corrected extractions for the given document. This is called "submitting feedback on extractions" in the Gini API documentation.
- Parameters:
document- The document for which the extractions should be updated.extractions- A Map where the key is the name of the specific extraction and the value is the SpecificExtraction object.compoundExtractions- A Map where the key is the name of the compound extraction and the value is the CompoundExtraction object.
-
getPageImage
Task<Array<byte>> getPageImage(String documentId, int page)
Get the rendered image of a page as byte[]
- Parameters:
documentId- id of documentpage- page of document
-
getPaymentProviders
Task<List<PaymentProvider>> getPaymentProviders()
A payment provider is a Gini partner which integrated the GiniPay for Banks SDK into their mobile apps.
-
getPaymentProvider
Task<PaymentProvider> getPaymentProvider(String id)
-
createPaymentRequest
Task<String> createPaymentRequest(PaymentRequestInput paymentRequestInput)
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.
-
-
-
-