miniStatement method Null safety
miniStatement Fetches the baseAccountNo recent transactions It has a return type of BankReponse & the raw response can be gotten by calling BankReponse.rawResponceBody The list of transactions as List of BankTransactionModel can be gotten by calling BankReponse.transactions
Implementation
Future<BankReponse> miniStatement({
required String referenceNumber,
required String accessToken,
})async{
Map<String, String> _header ={
'content-type': 'application/json',
'Authorization': 'Bearer $accessToken'
};
Map<String, dynamic> _payload = {
'MessageReference': referenceNumber,
'AccountNumber': baseAccountNo,
};
try {
return await pesalinkProcessTransaction(miniStatementUrl, _header, _payload, applicationMode);
} catch (e) {
rethrow;
}
}