Return Assistant

The Return Assistant feature lets your users view and edit payable items in an invoice. The total amount is updated to be the sum of only those items which the user opts to pay. To enable this feature, set returnAssistantEnabled to true in the GiniBankConfiguration:

let configuration = GiniBankConfiguration.shared configuration.returnAssistantEnabled = true

Gini Bank SDK shows to Return Assistant (Digital Invoice) that the invoice contains payable items and updates the extractions returned to your app according to the user’s changes. The amountToPay extraction is updated to be the sum of the items the user decides to pay. It includes discounts and additional charges that might be present on the invoice. The extractions related to Return Assistant are stored in the lineItems field of the AnalysisResult.

For more information about the return assistant’s extractions, see the Gini Bank API’s documentation.