Added a placeholder function to get transactions

This commit is contained in:
Alfred Kamanda 2024-10-23 14:51:17 +03:00
parent 59d0446020
commit f36847d966
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703
2 changed files with 10 additions and 0 deletions

View File

@ -94,6 +94,7 @@ func (ls *LocalHandlerService) GetHandler(accountService server.AccountServiceIn
ls.DbRs.AddLocalFunc("confirm_pin_change", ussdHandlers.ConfirmPinChange)
ls.DbRs.AddLocalFunc("quit_with_help", ussdHandlers.QuitWithHelp)
ls.DbRs.AddLocalFunc("fetch_custodial_balances", ussdHandlers.FetchCustodialBalances)
ls.DbRs.AddLocalFunc("get_transactions", ussdHandlers.GetTransactions)
return ussdHandlers, nil
}

View File

@ -1045,3 +1045,12 @@ func (h *Handlers) GetProfileInfo(ctx context.Context, sym string, input []byte)
return res, nil
}
// GetTransactions retrieves the transactions from the API using the "PublicKey"
func (h *Handlers) GetTransactions(ctx context.Context, sym string, input []byte) (resource.Result, error) {
var res resource.Result
res.Content = "Transaction list"
return res, nil
}