-
Customer
Declaration
Swift
var customer: Customer { get }
-
Internal ID
Declaration
Swift
var accountId: String { get }
-
Account type, e.g. Personal
Declaration
Swift
var accountType: String { get }
-
Payment status, e.g. Paid
Declaration
Swift
var paymentStatus: String { get }
-
Product Name, e.g. World Elite
Declaration
Swift
var productName: String { get }
-
Code for product
Declaration
Swift
var productExternalCode: String { get }
-
ISO symbol of account currency
Declaration
Swift
var accountCurrency: String { get }
-
Brand name, e.g. ROGERSBRAND
Declaration
Swift
var brandId: String { get }
-
Date the Account was opend
Declaration
Swift
var openedDate: Date { get }
-
Date of the last statement
Declaration
Swift
var previousStatementDate: Date { get }
-
Date the payment of the current statement is due (might be in the past)
Declaration
Swift
var paymentDueDate: Date { get }
-
Date of the last payment
Declaration
Swift
var lastPaymentDate: Date { get }
-
List of past statement dates
Declaration
Swift
var cycleDates: [Date] { get }
-
Current balance
Declaration
Swift
var currentBalance: Amount { get }
-
Balance on the last Statement
Declaration
Swift
var statementBalance: Amount { get }
-
Amount which is still due for the statement
Declaration
Swift
var statementDueAmount: Amount { get }
-
Credit limit
Declaration
Swift
var creditLimit: Amount { get }
-
Amount charged since the last statement
Declaration
Swift
var purchasesSinceLastCycle: Amount? { get }
-
Amount of the last payment
Declaration
Swift
var lastPayment: Amount { get }
-
Remaining credit limit
Declaration
Swift
var realtimeBalance: Amount { get }
-
Cash Advance available
Declaration
Swift
var cashAvailable: Amount { get }
-
Cash Advance limit
Declaration
Swift
var cashLimit: Amount { get }
-
Multi Card
Declaration
Swift
var multiCard: Bool { get }
-
Download a statement
Declaration
Swift
func downloadStatement(statement: Statement, completion: @escaping (Result<URL, DownloadError>) -> Void)
Parameters
statement
the statement to download
completion
completion handler, called with either a temporary URL to the downloaded file or a DownloadError
-
Search Statements
Declaration
Swift
func searchStatements(completion: @escaping (Result<[Statement], DownloadError>) -> Void)
Parameters
completion
completion handler, called with either the Statements or a DownloadError
-
Downloads the transactions
Declaration
Swift
func downloadActivities(statementNumber: Int, completion: @escaping (Result<[Activity], DownloadError>) -> Void)
Parameters
statementNumber
number of the statement for which the transactions should be downloaded, with 0 mean current period, 1 means last statement, …
completion
completion handler, called with either the Transactions or a DownloadError