wip-account-creation #4

Merged
lash merged 143 commits from wip-account-creation into master 2024-08-30 14:37:58 +02:00

143 Commits

Author SHA1 Message Date
33178e9482
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-30 14:03:30 +03:00
1dbd3c0b8e
add more test cases 2024-08-30 14:01:58 +03:00
2c6f70dfa5
Add tests for GetSender and GetAmount 2024-08-30 13:52:25 +03:00
9ec23d395c
add test case for saving location 2024-08-30 11:18:16 +03:00
c1389b4ab3
add test case for saving location 2024-08-30 11:17:06 +03:00
95e142860e
rename unlock flags to authorize 2024-08-30 11:15:08 +03:00
76185c3aa1
Use AccountService in the TestCreateAccount 2024-08-30 10:45:04 +03:00
1ded359b59
refactor 2024-08-30 09:17:09 +03:00
00d582c017
setup account file interface 2024-08-30 09:15:38 +03:00
23bfdf4483
add documentation lines 2024-08-30 09:15:04 +03:00
241fe9e5fe
remove repeated code 2024-08-30 09:14:17 +03:00
dd0b0ce5a3
use authorize flag instead of unlock 2024-08-29 23:22:27 +03:00
54d777de04
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-29 23:17:56 +03:00
23680846b4
rename unlock flags 2024-08-29 23:15:58 +03:00
7229241df5
add unspecified menu option 2024-08-29 23:15:07 +03:00
09c3c012da
rename flags 2024-08-29 23:14:36 +03:00
43bca6bddf
use unspecified menu option 2024-08-29 23:13:38 +03:00
ca86ef1507
Use gettext for the Quit function 2024-08-29 23:05:41 +03:00
75ca39b012
Define the regex pattern as a constant 2024-08-29 22:57:19 +03:00
1a7c992e5b
Return without setting the flag that's already set 2024-08-29 22:54:52 +03:00
3da2949d38
use fake fields for the response 2024-08-29 20:17:38 +03:00
64e182fd44
use interfaces for handlers 2024-08-29 20:08:36 +03:00
22d076ea50
setup test for successful account creation 2024-08-29 20:07:50 +03:00
edcbf9979d
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-29 20:00:50 +03:00
a1f31efd19
add testify 2024-08-29 19:57:07 +03:00
20cf7bdb44
setup interface for file operations 2024-08-29 19:56:50 +03:00
08fcb7cdba
use interfaces for the handler 2024-08-29 19:56:25 +03:00
7b5d82c7bf
setup service for handling account activities 2024-08-29 19:55:08 +03:00
a64291bb31
setup test for successful account creation 2024-08-29 19:54:26 +03:00
195f003d69
create mocks 2024-08-29 19:53:55 +03:00
802c3f92df
Added tests for CreateAccount and SavePin 2024-08-29 19:24:43 +03:00
b344720fdc
add documentation lines 2024-08-28 21:01:25 +03:00
3fdd702e93
Use getText for the language switch 2024-08-28 18:26:41 +03:00
7cb94742e1
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-28 18:15:14 +03:00
16f00bcf09
use getText for external functions translation 2024-08-28 18:13:49 +03:00
9f0ef13198
Added documentation lines on functions 2024-08-28 16:23:52 +03:00
768535b540
Quit with the transaction confirmation 2024-08-28 14:54:39 +03:00
3501a79aea
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-28 14:19:08 +03:00
54bc09b7e9
initialize testing for menu handlers 2024-08-28 14:14:28 +03:00
9153336412
setup additional checks to reset flags 2024-08-28 14:14:02 +03:00
7b33f2f644
Initiate a transaction once a valid PIN is provided 2024-08-28 14:11:20 +03:00
d87b70b292
reset unlock for update 2024-08-28 12:19:38 +03:00
6e0ea07cde
register single edit flag 2024-08-28 10:12:08 +03:00
0eb1115e39
add handler for setting and resetting single edits 2024-08-28 10:10:49 +03:00
c565a9dde5
add flag to handle single field profile edit 2024-08-28 10:09:49 +03:00
2e9d9175d9
allow single edit on profile information 2024-08-28 10:08:33 +03:00
b48760760b
Validate that the PIN is 4 digits 2024-08-28 00:17:45 +03:00
37ebc411b5
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-27 23:12:52 +03:00
d6f9ee0fc3
remove unused node 2024-08-27 23:11:31 +03:00
8d2a345d39
add navigation for menu option 4 and 5 2024-08-27 23:11:16 +03:00
633d56b0ad
Allow users to include 'CELO' in the amount 2024-08-27 16:16:15 +03:00
2b10f6023f
Use the balance as the max_amount 2024-08-27 16:10:43 +03:00
8d9aaeedbc
Validate that the amount is not greater than the balance 2024-08-27 16:02:24 +03:00
1d578209fc
Ensure that the user sets a PIN before proceeding to main 2024-08-27 15:41:53 +03:00
2a5f7517f4
add function to calculate age with yob 2024-08-27 14:59:17 +03:00
674fd5773a
validate date as a 4 digit input value 2024-08-27 14:57:26 +03:00
2e9b96d3a2
add template for invalid date inputs 2024-08-27 14:56:55 +03:00
bf99ed8482
Added a CATCH if the account creation fails 2024-08-27 13:38:08 +03:00
7e95e7cbb3
initialize fieldnames 2024-08-27 13:30:00 +03:00
26fcdeb56a
remove call on getting profile information 2024-08-27 13:28:42 +03:00
ded37ab515
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-27 11:24:34 +03:00
ddde2fb4ca
add documentation lines 2024-08-27 11:22:37 +03:00
9f1eed9ab3
Add an account util for reading and writing data to file 2024-08-27 11:19:49 +03:00
1a0173eee5
add documentation lines 2024-08-27 10:20:38 +03:00
0aacc06146
add documentation code 2024-08-27 10:18:33 +03:00
5f3baa86ae
remove commented code 2024-08-27 10:16:25 +03:00
db96f0e2e4
add documentation lines 2024-08-27 10:15:11 +03:00
cb31616a87
check for 4 digits input 2024-08-26 21:58:21 +03:00
357485feed
perform quit on help and voucher option 2024-08-26 21:55:48 +03:00
460a3d19f7
register all flags 2024-08-26 17:00:04 +03:00
d5f4f9ea5f
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-26 16:35:14 +03:00
1634854231
set the flags to 14 2024-08-26 15:54:29 +03:00
1a997e8b26
updated the file structure to have external functions on a different package 2024-08-26 15:53:07 +03:00
bf014055ea
use MOVE_ instead of
INCMP *
2024-08-26 14:35:08 +03:00
68dc77d5eb
added flags model 2024-08-26 14:34:38 +03:00
3c66a2ded2
handle age calculation,call apis from handlers 2024-08-26 13:40:20 +03:00
d86de39b39
define the api endpoints 2024-08-26 13:38:14 +03:00
90f6d26f6d
add function to calculate age 2024-08-26 13:37:54 +03:00
36d3f05a31
move api calls in main to handlers package 2024-08-26 13:32:12 +03:00
430c5d32c8
define api calls response 2024-08-26 13:31:20 +03:00
ee649dc79e
setup models for handling api responses 2024-08-26 12:10:39 +03:00
30504b81e2
setup structure for handling api calls 2024-08-26 12:10:16 +03:00
ef10348852
setup file for handling configurations 2024-08-26 12:09:48 +03:00
cd28fd0b5e
fix typo on rese_ incorrect_yob 2024-08-25 22:18:55 +03:00
a1fde55d8d
remove unneccesary if-else 2024-08-25 22:13:41 +03:00
37809a05b4
cleanup code,define node for showing invalid date formats 2024-08-24 17:12:46 +03:00
6a35101d69
show quit option after performing an update 2024-08-24 17:11:05 +03:00
a7d27f142e
show quit menu option after showing address 2024-08-24 17:09:07 +03:00
730c92c284
rename symbols,add check for invalid date inputs 2024-08-24 17:08:38 +03:00
37916a1f19
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-24 17:08:00 +03:00
3007989b8e
updates 2024-08-24 06:11:15 +03:00
617a6101aa
remove extra new lines 2024-08-23 19:07:09 +03:00
538a06887a
change position of CATCH to correct node and route to previous node 2024-08-23 18:53:24 +03:00
460e951584
validate PIN using the set AccountPIN 2024-08-23 16:01:13 +03:00
a508f06583
create an account using the API 2024-08-23 14:34:55 +03:00
b440881441
remove unused code 2024-08-23 07:06:54 +03:00
c556e88916
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-23 06:40:37 +03:00
722bb10441
implement profile data persistence 2024-08-23 06:35:49 +03:00
9cc75185b3
creuse a universal quit message 2024-08-23 01:05:14 +03:00
f50be01b89
create a PIN during registration 2024-08-22 19:48:34 +03:00
9aedc5d48f
added amount validation flag and logic 2024-08-22 15:44:28 +03:00
32ba22c043
added validation for amount 2024-08-22 15:01:30 +03:00
075355980a
replace ^ with _ (for 'back') 2024-08-21 22:03:37 +03:00
47c38bf507
call api on creating an account 2024-08-21 21:49:27 +03:00
e521145faa
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-21 21:44:07 +03:00
80ff5c477f
implement pin check 2024-08-21 21:37:29 +03:00
cc6cfc8646
validate a recipient 2024-08-21 20:30:59 +03:00
1964623daa retrieve transaction data and display the PIN page 2024-08-20 17:27:13 +03:00
59ff44214d save the recipient to the user data 2024-08-20 17:25:14 +03:00
231967b120 added recipient flags and functions 2024-08-20 17:23:34 +03:00
fc1b9e5bfa Added send menu with srecipient input 2024-08-20 17:21:33 +03:00
e4ebb02b77 Added main template and check balance 2024-08-20 17:21:33 +03:00
d76063261a Delete services/registration/default 2024-08-20 15:58:13 +02:00
be6c0d6afb
add pin unlock flag 2024-08-20 16:55:43 +03:00
277e85ef74
remove unused nodes 2024-08-20 16:53:09 +03:00
7ba5815375
add menu option 2024-08-20 16:52:09 +03:00
82bca5bd29
add navigation node 2024-08-20 16:51:15 +03:00
afe238003a
use strings for state flags 2024-08-19 10:59:20 +03:00
18af95c3ed
Merge remote-tracking branch 'refs/remotes/origin/wip-account-creation' into wip-account-creation 2024-08-19 10:22:50 +03:00
16ea648014
add handler for quiting and use debug on states 2024-08-19 10:15:26 +03:00
0a37073c8d
add instruction to move to quit node 2024-08-19 10:13:51 +03:00
f2f9781967
perform check account status before catching 2024-08-19 10:12:31 +03:00
4f41ff341d
add quit script for handling graceful quiting 2024-08-19 10:11:10 +03:00
3e764e79d8
Added swahili template for account_creation 2024-08-19 09:55:56 +03:00
289fc2b69a
chore: log error when saving state fails 2024-08-17 17:57:39 +03:00
9e3dfd2428
feat: register the profile menu options,show balances on profile page 2024-08-17 17:55:59 +03:00
00926e66da
feat: add swahili and english account menu options 2024-08-17 17:53:50 +03:00
2989b236b1
feat: add swahili and english voucher menu options 2024-08-17 17:52:54 +03:00
e44c36cadb
feat: add swahili and english help menu options 2024-08-17 17:52:09 +03:00
7afca54c54
feat: add swahili and english send menu options 2024-08-17 17:51:37 +03:00
951413cc03
chore: remove registration files 2024-08-16 18:21:02 +03:00
21bf571eed
chore: rename registration files to root 2024-08-16 18:17:55 +03:00
659e1c95a2
change entry node to root 2024-08-16 17:57:36 +03:00
88731124df generate account using english and swahili 2024-08-16 13:38:58 +03:00
46b9e2eba9 deleted the root files 2024-08-15 15:01:06 +03:00
a096d3f5b5 change to use registration as the entry point 2024-08-15 14:58:44 +03:00
fb7b35af74 directly use the persistedEngine 2024-08-15 13:49:36 +03:00
87c8e83f59 ignore development files 2024-08-15 12:10:51 +03:00
b9baccb1e8 remove development files 2024-08-15 12:09:15 +03:00
1e82d18604 initialize main entry point 2024-08-15 11:12:58 +03:00
84da396281 initialize templates and menu handling scripts 2024-08-15 11:11:17 +03:00
c3166813c6 update makefile to match new dir sctructure 2024-08-15 11:08:47 +03:00
e6d94567b1 init: go work file 2024-08-15 11:07:27 +03:00