-
- All Implemented Interfaces:
public interface DigitalInvoiceFragmentListenerInterface used by the DigitalInvoiceFragment to dispatch events to the hosting Activity.
-
-
Method Summary
Modifier and Type Method Description abstract UnitonEditLineItem(SelectableLineItem selectableLineItem)Called when the user tapped on a line item to edit it. abstract UnitonAddLineItem(SelectableLineItem selectableLineItem)Called when the user tapped on add button to add new line item. abstract UnitonPayInvoice(Map<String, GiniCaptureSpecificExtraction> specificExtractions, Map<String, GiniCaptureCompoundExtraction> compoundExtractions)Called when the user presses the buy button. abstract UnitshowOnboarding()Called before displaying DigitalInvoiceFragment so the user can see the onboarding view. -
-
Method Detail
-
onEditLineItem
abstract Unit onEditLineItem(SelectableLineItem selectableLineItem)
Called when the user tapped on a line item to edit it.
You should show the LineItemDetailsFragment with the selectable line item.
- Parameters:
selectableLineItem-the SelectableLineItem to be edited
-
onAddLineItem
abstract Unit onAddLineItem(SelectableLineItem selectableLineItem)
Called when the user tapped on add button to add new line item.
You should show the LineItemDetailsFragment with the selectable line item.
- Parameters:
selectableLineItem-the SelectableLineItem to be added
-
onPayInvoice
abstract Unit onPayInvoice(Map<String, GiniCaptureSpecificExtraction> specificExtractions, Map<String, GiniCaptureCompoundExtraction> compoundExtractions)
Called when the user presses the buy button.
The extractions were updated to contain the user's modifications:
"amountToPay" was updated to contain the sum of the selected line items' prices,
the line items were updated according to the user's modifications.
- Parameters:
specificExtractions-extractions like the "amountToPay", "iban", etc.
compoundExtractions-extractions like the "lineItems"
-
showOnboarding
abstract Unit showOnboarding()
Called before displaying DigitalInvoiceFragment so the user can see the onboarding view.
You should display DigitalInvoiceOnboardingFragment
-
-
-
-