createReport

abstract fun createReport(activity: Activity, configuration: Configuration, request: ReportsCreateReport, launchMode: LaunchMode, onSuccess: (TinkReportsSuccess) -> Unit, onError: (TinkError) -> Unit)

Fetch account and transaction data in one flow.

This function allows users to authenticate with their bank and after that both account verification data and transaction data can be generated in one flow on Tink backend. To fetch the generated report, follow the instruction on fetch-the-report

Parameters

activity

the Activity that is launching this flow.

configuration

Configuration the configuration for this flow.

request

the request object for this flow.

launchMode

LaunchMode the mode in which this Tink flow is shown inside your app.

onSuccess

the callback in case of a successful outcome TinkReportsSuccess of this flow.

onError

the callback in case of a non-successful outcome TinkError of this flow or dismissed flow.