Compare commits
3 Commits
59d0446020
...
fc0043e3f6
Author | SHA1 | Date | |
---|---|---|---|
fc0043e3f6 | |||
d41ba79ae4 | |||
f36847d966 |
@ -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
|
||||
}
|
||||
|
@ -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
|
||||
}
|
1
services/registration/check_statement
Normal file
1
services/registration/check_statement
Normal file
@ -0,0 +1 @@
|
||||
Please enter your PIN to view statement:
|
9
services/registration/check_statement.vis
Normal file
9
services/registration/check_statement.vis
Normal file
@ -0,0 +1,9 @@
|
||||
LOAD authorize_account 6
|
||||
MOUT back 0
|
||||
MOUT quit 9
|
||||
HALT
|
||||
RELOAD authorize_account
|
||||
CATCH incorrect_pin flag_incorrect_pin 1
|
||||
INCMP _ 0
|
||||
INCMP quit 9
|
||||
INCMP transactions *
|
1
services/registration/check_statement_swa
Normal file
1
services/registration/check_statement_swa
Normal file
@ -0,0 +1 @@
|
||||
Tafadhali weka PIN yako kuona taarifa ya matumizi:
|
@ -11,5 +11,6 @@ INCMP main 0
|
||||
INCMP edit_profile 1
|
||||
INCMP change_language 2
|
||||
INCMP balances 3
|
||||
INCMP check_statement 4
|
||||
INCMP pin_management 5
|
||||
INCMP address 6
|
||||
|
1
services/registration/transactions
Normal file
1
services/registration/transactions
Normal file
@ -0,0 +1 @@
|
||||
{{.get_transactions}}
|
11
services/registration/transactions.vis
Normal file
11
services/registration/transactions.vis
Normal file
@ -0,0 +1,11 @@
|
||||
LOAD get_transactions 0
|
||||
MAP get_transactions
|
||||
MOUT back 0
|
||||
MOUT quit 99
|
||||
MNEXT next 11
|
||||
MPREV prev 22
|
||||
HALT
|
||||
INCMP _ 0
|
||||
INCMP quit 99
|
||||
INCMP > 11
|
||||
INCMP < 22
|
1
services/registration/transactions_swa
Normal file
1
services/registration/transactions_swa
Normal file
@ -0,0 +1 @@
|
||||
{{.get_transactions}}
|
Loading…
Reference in New Issue
Block a user