RiskService

class RiskService(apiKey: String, client: OkHttpClient, backendUrl: String) : ServiceBase

Constructors

RiskService
Link copied to clipboard
fun RiskService(apiKey: String)
RiskService
Link copied to clipboard
fun RiskService(apiKey: String, backendUrl: String)
RiskService
Link copied to clipboard
fun RiskService(apiKey: String, client: OkHttpClient)

Functions

completeManually
Link copied to clipboard
fun completeManually(wizardSessionId: String, body: List<Xs2aRiskUploadJsonWrapper>): Xs2aRiskUploadJsonSuccess
Complete xs2a.risk by uploading account data to our systems.
create
Link copied to clipboard
fun create(body: Xs2aRisk): WizardSessionResponse
Create xs2a.risk object Create a xs2a.risk object and receive a wizard session key in return.
delete
Link copied to clipboard
fun delete(transactionId: String): Map<String, Any?>
Delete a xs2a.risk transaction object Transaction data also can be deleted manually by sending a DELETE request for that transaction.
get
Link copied to clipboard
fun get(transactionId: String): RiskObject
Get a xs2a.
getAccountSnapshot
Link copied to clipboard
fun getAccountSnapshot(transactionId: String): Array<AccountStatement>
Download an Account Snapshot An account snapshot can be downloaded in several formats.
getEvents
Link copied to clipboard
fun getEvents(transactionId: String, perPage: Int = 15, page: Int = 1): EventObjectList
Get all events for a xs2a.
getFullPDF
Link copied to clipboard
fun getFullPDF(transactionId: String): String
XS2A.risk.fullpdf is a wonderful way to show you all the checks in one pdf.
getReport
Link copied to clipboard
fun getReport(transactionId: String, reportId: String, format: ReportFormat = ReportFormat.JSON, locale: ReportLocale = ReportLocale.EN): Any
Download a Report
list
Link copied to clipboard
fun list(account_holder: String? = null, iban: String? = null, bic: String? = null, country_id: CountryId? = null, merchant_id: String? = null, per_page: Int = 15, page: Int = 1, from: OffsetDateTime? = null, to: OffsetDateTime? = null): RiskObjectList
Get a list of all xs2a.