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

Link copied to clipboard
public final class DigitalInvoiceAddon
Link copied to clipboard
public class DigitalInvoiceException extends Exception

Exceptions related to the digital invoice used in the return assistant feature.

Link copied to clipboard
public class DigitalInvoiceFragment extends Fragment implements DigitalInvoiceScreenContract.View, DigitalInvoiceFragmentInterface, LineItemsAdapterListener

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.

Link copied to clipboard
public interface DigitalInvoiceFragmentInterface

Public API of the DigitalInvoiceFragment.

Link copied to clipboard
public interface DigitalInvoiceFragmentListener

Interface used by the DigitalInvoiceFragment to dispatch events to the hosting Activity.

Link copied to clipboard
public final class DigitalInvoiceKt
Link copied to clipboard
public final class LineItem implements Parcelable

The LineItem class contains information from a line item extraction.

Link copied to clipboard
public final class LineItemsValidator

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.

Link copied to clipboard
public final class SelectableLineItem implements Parcelable

The SelectableLineItem wrapps a LineItem and adds the possibility to select/deselect it and also add a reason why it's deselected.