cf523e30f8
update handler in test
2024-10-30 14:50:31 +03:00
888d3befe9
add actual pin reset functionality
2024-10-30 14:50:12 +03:00
lash
c95b97cb14
Export user data store
2024-10-30 01:45:38 +00:00
lash
dd764a2e24
Export db datatypes,tools
2024-10-30 01:28:55 +00:00
lash
cb997159f7
Add reverse sessionid address lookup
2024-10-30 00:59:59 +00:00
7241cdbfcb
Updated the tests
2024-10-30 00:53:13 +03:00
0480c02633
Moved voucher related functions to the utils package
2024-10-30 00:52:23 +03:00
5a0563df94
group regex,check for valid number against the regex
2024-10-29 22:17:43 +03:00
d0ad6395b5
add check for unregistered phone numbers
2024-10-29 17:35:42 +03:00
b35460d3c1
Merge branch 'master' into pin-reset
2024-10-29 14:35:17 +03:00
5fd3eb3c29
set admin privilege flag
2024-10-29 14:28:58 +03:00
03c32fd265
Merge branch 'master' into voucher-data
2024-10-28 18:40:37 +03:00
b97965193b
add pin reset for others handling
2024-10-28 16:37:23 +03:00
2c361e5b96
Added tests related to the vouchers list
2024-10-28 16:30:13 +03:00
131f3bcf46
Added the prefixDb to the Handlers struct~
2024-10-28 16:27:24 +03:00
dc782d87a8
Updated the TestSetVoucher
2024-10-28 11:20:06 +03:00
ddae746b9d
formatted code
2024-10-28 11:07:59 +03:00
d8800a665d
Merge branch 'master' into tests-refactor
2024-10-25 17:48:40 +03:00
3ef64271e7
Store and retrieve the voucher decimals and contract address
2024-10-25 17:24:09 +03:00
2b34b3a75c
Merge branch 'master' into tests-refactor
2024-10-25 09:14:16 +03:00
b4454f7517
Added context to FetchVouchers
2024-10-24 20:44:29 +03:00
d9c660b8ea
Merge branch 'master' into menu-voucherlist
2024-10-24 20:39:43 +03:00
a92c640cb7
Updated tests
2024-10-24 18:15:54 +03:00
728815f0c6
Include the active symbol in the send menu
2024-10-24 17:50:37 +03:00
383f074cae
update method signatures
2024-10-24 17:32:08 +03:00
d678a639b8
Merge branch 'master' into api-context
2024-10-24 17:07:11 +03:00
ee9a683eb0
Merge branch 'master' into menu-voucherlist
2024-10-24 16:30:44 +03:00
9274e585bd
Merge branch 'master' into menu-voucherlist
2024-10-24 16:26:32 +03:00
57a49819f4
Merge branch 'master' into api-structs
2024-10-24 16:22:41 +03:00
ec4e44a27c
Merge branch 'master' into send-menu-update
2024-10-24 15:58:59 +03:00
39c0560abe
Updated the test
2024-10-24 15:21:48 +03:00
75459f852b
Return the full balance string
2024-10-24 15:12:57 +03:00
6200728435
Updated the menuhander test
2024-10-24 14:45:15 +03:00
579b46db65
Replace the public key with the sessionId
2024-10-24 14:34:12 +03:00
f99486c190
correct import
2024-10-24 12:07:00 +03:00
9f2d57ea03
update tests
2024-10-24 10:10:14 +03:00
08e709f1b3
check for error responses
2024-10-24 10:02:15 +03:00
a553731f02
Cleaned up code
2024-10-23 17:45:41 +03:00
f36847d966
Added a placeholder function to get transactions
2024-10-23 14:51:17 +03:00
4011597d9c
Check specific db error
2024-10-23 14:02:13 +03:00
176473aa26
Rename prefix to vouchers
2024-10-23 13:54:42 +03:00
b41e52af63
pass context.Context
2024-10-23 12:45:54 +03:00
e05dbb4885
check for back option
2024-10-22 20:36:58 +03:00
9c75942b0b
chore: remove commented code
2024-10-21 16:54:16 +03:00
f3a5178de7
update imports
2024-10-21 16:47:43 +03:00
d81bc0eefb
use importable api structs
2024-10-21 11:10:01 +03:00
5b0a383513
use importable api structs
2024-10-21 11:09:37 +03:00
aced3e4fc3
Merge branch 'master' into menu-voucherlist
2024-10-19 15:38:54 +03:00
25bc7006a4
show a balance of 0 and prevent sending when no voucher exists
2024-10-18 18:31:40 +03:00
f643aa4d14
update tests
2024-10-18 17:37:04 +03:00
847b91ca9e
Merge branch 'menu-api-errors' into api-structs
2024-10-18 17:15:05 +03:00
128a354b34
use api structs
2024-10-18 17:03:48 +03:00
81c4189c8e
update tests
2024-10-18 17:02:08 +03:00
eea3be3a39
resolve failing test
2024-10-17 13:49:56 +03:00
849a950fbc
Merge branch 'master' into menu-voucherlist
2024-10-17 13:44:31 +03:00
d181c34946
update handler and move transaction struct to models
2024-10-17 12:49:28 +03:00
667a21d950
pass account service as a param
2024-10-17 12:37:15 +03:00
a336856c9b
use separate functions to process voucher data
2024-10-15 17:02:51 +03:00
6a36bc43b5
add check for api call failure
2024-10-15 16:31:15 +03:00
1d27a88908
add test on validate amount
2024-10-15 16:30:29 +03:00
f378f15422
updated tests
2024-10-15 16:29:51 +03:00
b2fb9faf6c
use the active balance to validate the amount
2024-10-15 16:17:33 +03:00
859e203a00
removed debug comments
2024-10-15 15:54:43 +03:00
6c6af5ec21
set a default voucher as the active sym if none exists
2024-10-15 15:46:02 +03:00
8ed98b3e6c
resolve case issue
2024-10-15 14:53:00 +03:00
bec7e5c69f
update: fetch balances in a sepate function,show profile information in swahili and english
2024-10-15 13:57:05 +03:00
d638aba85e
update tests
2024-10-15 13:50:28 +03:00
7df77a1343
updated the ValidateAmount to also check the active symbol, updated tests
2024-10-12 20:07:06 +03:00
a9f9867976
added the TestSetVoucher
2024-10-12 17:36:00 +03:00
b6d24bf929
update the TestCheckBalance
2024-10-12 16:29:12 +03:00
e9684fcf45
check whether the active symbol is empty
2024-10-12 16:28:02 +03:00
a5b1c5b74e
cleaned up the code
2024-10-12 14:32:40 +03:00
672eebb8fb
display the balance based on the symbol
2024-10-11 09:42:08 +03:00
7c08a0f0af
add temp and active balance
2024-10-10 14:48:23 +03:00
9ad7d5a522
set the active symbol
2024-10-09 15:39:06 +03:00
9ccb6cc066
use 99 as the quit
2024-10-09 15:05:59 +03:00
cb4a52e4f2
view a selected voucher and verify the PIN
2024-10-07 16:16:57 +03:00
e4ed9a65bb
store the symbols and balances
2024-10-07 13:49:12 +03:00
755899be4e
store the pre-rendered vouchers list
2024-10-07 08:59:15 +03:00
517f980664
get the vouchers list and store in gdbm
2024-10-05 16:56:49 +03:00
31aea6b807
added model and func to fetch vouchers from the API
2024-09-28 14:07:37 +03:00
3a46fda769
use save_temporary_pin and updated tests
2024-09-28 12:26:37 +03:00
c7bdfe90b7
Merge branch 'master' into menu-voucherlist
2024-09-28 11:07:36 +03:00
60134f14e9
Merge branch 'master' into menu-voucherlist
2024-09-27 19:11:35 +03:00
a3ff3be5b1
clean up
2024-09-27 16:32:47 +03:00
ea52a7cf0a
update tests
2024-09-26 23:11:37 +03:00
a993026380
update tests
2024-09-26 23:07:48 +03:00
221db4e998
return a numbered list of vouchers
2024-09-25 16:06:06 +03:00
188cb573dd
add dummy vouchers list
2024-09-25 13:27:13 +03:00
bbfe46f162
use current rendering symbol for case selection
2024-09-24 09:01:19 +03:00
4a447fbb45
update profile update
2024-09-23 20:10:37 +03:00
e4d8bfad7b
moved the mocks package
2024-09-19 17:17:28 +03:00
10de039da0
remove obsolete code
2024-09-18 15:42:56 +03:00
2982f08b41
Merge branch 'master' into change-language
2024-09-17 18:30:52 +02:00
75ab9c66a3
run TestSetLanguage with execPath instead of input
2024-09-17 18:54:07 +03:00
599f7a2857
add more tests
2024-09-17 15:44:22 +03:00
065c8e5c1d
use a single set_language function for setting and changing language
2024-09-17 15:26:50 +03:00
06e23565df
added the SetNewLanguage function
2024-09-16 17:29:27 +03:00
2ed9f083bb
add quit with helpline info
...
add quit with helpline info
2024-09-16 15:17:56 +01:00
3f3e98e637
add pin reset handlers
2024-09-16 14:39:01 +03:00
b5ef483f34
clean up tests
2024-09-14 20:07:17 +03:00
e99a788c60
add tests
2024-09-14 20:01:58 +03:00
lash
dd2468a4d7
Http server harness
...
Add storage retrieval solution for http handler
Successfully executed account regisration using http
Set upstream go-vise dependency version in go.mod
Adapt menuhandler to upstream
2024-09-10 13:59:36 +01:00
ad48890a9f
remove deprecated code
2024-09-10 11:24:09 +03:00
a3dffdf4e9
match code refactor
2024-09-10 11:23:25 +03:00
47d39a1c6f
remove commented test
2024-09-09 17:24:43 +03:00
f5f1cbaaba
cleanup
2024-09-09 17:18:07 +03:00
0cdb23fbea
setupmock for user datastore
2024-09-09 17:15:35 +03:00
ca655b0cdc
add tests
2024-09-09 17:15:04 +03:00
deb4706b1d
Test commit
2024-09-07 17:51:30 +03:00
e14fd5e496
Return the response and the error
2024-09-07 17:41:05 +03:00
dd97531861
remove uimplemented tests
2024-09-07 16:24:37 +03:00
be33b7458f
cleanup code
2024-09-07 16:22:08 +03:00
4c3f63a48f
create an account only if not found in gdbm
2024-09-07 10:36:00 +03:00
d1d5c897d1
refactor
2024-09-07 09:55:59 +03:00
04ea11dd6d
setup db mock
2024-09-07 09:55:47 +03:00
5722552395
remove old mocks
2024-09-07 09:55:13 +03:00
421fbe5543
setup mock for the acccount service
2024-09-07 09:55:00 +03:00
de24ca0648
Mock the gdm nd updated the TestSaveFirstname and TestSaveFamilyname
2024-09-07 09:30:20 +03:00
175cbd1983
setup template test
2024-09-06 17:51:07 +03:00
8175d6ac12
setup db mock
2024-09-06 17:50:33 +03:00
eb9f470ac5
Update the GetProfileInfo to get data from gdbm
2024-09-06 16:17:26 +03:00
2cc85379cc
update log
2024-09-06 11:02:33 +03:00
d001c5a7fc
Write and read data from gdbm
2024-09-06 09:33:39 +03:00
lash
cad8e86c8b
Remove manual init calls in handler funcs
2024-09-05 23:55:54 +01:00
lash
0feb013c78
Ensure handler init when state and cache is available
2024-09-05 20:40:40 +01:00
643b4d87a9
read account pin of gdbm store
2024-09-05 20:30:28 +03:00
17804e7641
Save the actual PIN and verify it
2024-09-05 19:50:02 +03:00
lash
db3ec1991d
Remove obsolete store and persister global
2024-09-05 16:45:35 +01:00
lash
6fa5f49bc0
Remove impossible nil check in handler
2024-09-05 15:28:53 +01:00
98c74dffc4
use state from persister
2024-09-05 17:09:30 +03:00
771a1e8169
code refactoring
2024-09-05 17:07:20 +03:00
220c5b2081
remove commented code
2024-09-04 20:22:25 +03:00
8ffc5d67cc
Removed mutex
2024-09-04 12:01:51 +03:00
2d7b6bd125
Removed unused code
2024-09-03 22:28:48 +03:00
5105e902f1
Process flags once and make them available across functions
2024-09-03 19:06:37 +03:00
19b2fa65fa
Merge remote-tracking branch 'refs/remotes/origin/wip-flag-migration' into wip-flag-migration
2024-09-03 18:00:06 +03:00
ee4db50e00
remove unused code
2024-09-03 17:59:03 +03:00
99d18322b2
Append to the correct flag set/reset
2024-09-03 15:34:19 +03:00
a07a8703f4
remove flag setting invalid pin entry
2024-09-03 15:13:55 +03:00
94f12edeaf
Merge remote-tracking branch 'refs/remotes/origin/wip-flag-migration' into wip-flag-migration
2024-09-03 15:08:45 +03:00
fee51edade
append sessionid to the gdbm file
2024-09-03 15:07:49 +03:00
ab6433168a
Resolve bug on transaction confirmation PIN
2024-09-03 15:02:31 +03:00
0c360c0cc4
remove panics after failed execution
2024-09-03 13:19:32 +03:00
c365eaa1d1
remove unused code
2024-09-02 21:24:16 +03:00
d4c4db09f3
load profile data from gdbm
2024-09-02 21:09:39 +03:00
1c1ea74088
Merge remote-tracking branch 'refs/remotes/origin/wip-flag-migration' into wip-flag-migration
2024-09-02 17:12:01 +03:00
14c8230fd4
code cleanup
2024-09-02 17:11:08 +03:00
b6e4ba7ede
Verify PIN using the one in the db
2024-09-02 17:08:57 +03:00
2b511aba4c
remove commented code
2024-09-02 16:39:04 +03:00