-
- All Implemented Interfaces:
public final class BankApiDocumentManager extends DocumentManager<BankApiDocumentRepository, ExtractionsContainer>
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.
-
-
Method Summary
Modifier and Type Method Description final Resource<ResolvedPayment>resolvePaymentRequest(String requestId, ResolvePaymentInput resolvePaymentInput)Mark a PaymentRequest as paid. final Resource<Payment>getPayment(String id)Get information about the payment of the PaymentRequest final Resource<Unit>logErrorEvent(ErrorEvent errorEvent)Send error events to the Gini Bank API. -
Methods inherited from class net.gini.android.core.api.DocumentManager
createCompositeDocument, createCompositeDocument, createPartialDocument, deleteDocument, deletePartialDocumentAndParents, getAllExtractions, getAllExtractionsWithPolling, getDocument, getDocument, getLayout, getPaymentRequest, getPaymentRequests, pollDocument, sendFeedbackForExtractions, sendFeedbackForExtractions -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
resolvePaymentRequest
final Resource<ResolvedPayment> resolvePaymentRequest(String requestId, ResolvePaymentInput resolvePaymentInput)
Mark a PaymentRequest as paid.
- Parameters:
requestId- id of requestresolvePaymentInput- information of the actual payment
-
getPayment
final Resource<Payment> getPayment(String id)
Get information about the payment of the PaymentRequest
- Parameters:
id- of the paid PaymentRequest
-
logErrorEvent
final Resource<Unit> logErrorEvent(ErrorEvent errorEvent)
Send error events to the Gini Bank API.
- Parameters:
errorEvent- information about the error
-
-
-
-