DatalinkCreateRequest
public struct DatalinkCreateRequest : Codable
Request model to create Datalink.
-
The URL of the Tenant that the PSU will be redirected at the end of account access process.
Declaration
Swift
public let redirectURL: String
-
Unique identification string assigned to the bank by our system. If value is set, Datalink will not display any UI and execute an instant redirect to the debtor’s banking system. If value is not set, Datalink will display the PSU a bank selection screen.
Declaration
Swift
public let bankID: String?
-
If you are providing our Data service to your own business clients (merchants), then you should set the Id of your merchant.
Declaration
Swift
public let merchantID: String?
-
The Id of the end-user. If you are providing this service directly to the end-users, then you can assign that Id to this parameter. If you are providing this service to businesses, then you should assign the Id of that merchant’s user.
Declaration
Swift
public let merchantUserID: String?
-
The date indicating when consent will end.
Declaration
Swift
public let consentEndDate: Date?
-
The date indicating when consent will expire.
Declaration
Swift
public let expiryDate: Date?
-
The permissions which will be asked to the users while connecting their account. Determines which data will be fetched If it is not set, system will automatically set all the permissions
Declaration
Swift
public let permissions: [ConsentPermission]?
-
Options that are about Datalink.
Declaration
Swift
public let datalinkOptions: DatalinkOptions?
-
Options that are about notification.
Declaration
Swift
public let notificationOptions: PayByBankNotificationOptionsRequest?
-
Options that are about financial reporting.
Declaration
Swift
public let financialReport: FinancialReport?
-
init(redirectURL:
bankID: merchantID: merchantUserID: consentEndDate: expiryDate: permissions: datalinkOptions: notificationOptions: financialReport: ) Creates an instance from the specified parameters.
Declaration
Swift
public init(redirectURL: String, bankID: String? = nil, merchantID: String? = nil, merchantUserID: String? = nil, consentEndDate: Date, expiryDate: Date? = nil, permissions: [ConsentPermission]? = nil, datalinkOptions: DatalinkOptions? = nil, notificationOptions: PayByBankNotificationOptionsRequest? = nil, financialReport: FinancialReport? = nil)
Parameters
redirectURL
The URL of the Tenant that the PSU will be redirected at the end of account access process.
bankID
Unique identification string assigned to the bank by our system.
merchantID
If you are providing our Data service to your own business clients (merchants), then you should set the Id of your merchant.
merchantUserID
The Id of the end-user.
consentEndDate
The URL to open bank selection screen.
expiryDate
The date indicating when consent will expire.
permissions
Instance’s array of
ConsentPermission
, which will be asked to the users while connecting their account..datalinkOptions
Instance’s
DatalinkOptions
, which contains options about Datalink.notificationOptions
Instance’s
PayByBankNotificationOptionsRequest
, which contains options about notification.financialReport
Instance’s
FinancialReport
, which contains options about financial reporting.