Package net. gini. android. bank. sdk. capture. digitalinvoice
Contains the Activity and Fragments used for the return assistant's Digital Invoice Screen.
Screen API
The net.gini.android.bank.sdk.capture.digitalinvoice.DigitalInvoiceActivity is launched by the net.gini.android.bank.sdk.capture.analysis.AnalysisActivity when line item extractions are available. It displays the line items extracted from an invoice document and their total price. The user can deselect line items which should not be paid for and also edit the quantity, price or description of each line item. The total price is always updated to include only the selected line items.
Component API
To use the Component API you have to include the net.gini.android.bank.sdk.DigitalInvoiceFragment in an Activity in your app (a dedicated Activity is recommended). To receive events from the Fragment your Activity must implement the net.gini.android.bank.sdk.DigitalInvoiceFragmentListener interface.
Types
Exceptions related to the digital invoice used in the return assistant feature.
When you use the Component API the DigitalInvoiceFragment
displays the line items extracted from an invoice document and their total price. The user can deselect line items which should not be paid for and also edit the quantity, price or description of each line item. The total price is always updated to include only the selected line items.
Public API of the DigitalInvoiceFragment.
Interface used by the DigitalInvoiceFragment to dispatch events to the hosting Activity.
The LineItem
class contains information from a line item extraction.
Use this class with the Component API if you are using the return assistant. You should call its validate method with the compound extractions received in the AnalysisFragmentListener.onExtractionsAvailable() listener method.
The SelectableLineItem
wrapps a LineItem and adds the possibility to select/deselect it and also add a reason why it's deselected.