diff --git a/services/registration/account_creation.vis b/services/registration/account_creation.vis index 1aca453..f4f326b 100644 --- a/services/registration/account_creation.vis +++ b/services/registration/account_creation.vis @@ -1,4 +1,4 @@ RELOAD verify_pin -CATCH create_pin_mismatch pin_mismatch_flag 1 +CATCH create_pin_mismatch flag_pin_mismatch 1 LOAD quit 0 HALT diff --git a/services/registration/account_pending.vis b/services/registration/account_pending.vis index a4baae5..d122613 100644 --- a/services/registration/account_pending.vis +++ b/services/registration/account_pending.vis @@ -1,3 +1,3 @@ RELOAD check_account_status -CATCH main account_success_flag 1 +CATCH main flag_account_success 1 HALT diff --git a/services/registration/amount.vis b/services/registration/amount.vis index e134735..9b2970a 100644 --- a/services/registration/amount.vis +++ b/services/registration/amount.vis @@ -5,7 +5,7 @@ MOUT back 0 HALT LOAD validate_amount 64 RELOAD validate_amount -CATCH invalid_amount invalid_amount_flag 1 +CATCH invalid_amount flag_invalid_amount 1 INCMP _ 0 LOAD get_recipient 12 LOAD get_sender 64 diff --git a/services/registration/community_balance.vis b/services/registration/community_balance.vis index c25ced3..151c6d8 100644 --- a/services/registration/community_balance.vis +++ b/services/registration/community_balance.vis @@ -1,5 +1,5 @@ LOAD reset_incorrect 0 -CATCH incorrect_pin incorrect_pin_flag 1 -CATCH pin_entry account_authorized_flag 0 +CATCH incorrect_pin flag_incorrect_pin 1 +CATCH pin_entry flag_account_authorized 0 LOAD quit_with_balance 0 HALT diff --git a/services/registration/create_pin.vis b/services/registration/create_pin.vis index 2755b1d..e0e330f 100644 --- a/services/registration/create_pin.vis +++ b/services/registration/create_pin.vis @@ -1,9 +1,9 @@ LOAD create_account 0 -CATCH account_creation_failed account_creation_failed_flag 1 +CATCH account_creation_failed flag_account_creation_failed 1 MOUT exit 0 HALT LOAD save_pin 0 RELOAD save_pin -CATCH . incorrect_pin_flag 1 +CATCH . flag_incorrect_pin 1 INCMP quit 0 INCMP confirm_create_pin * diff --git a/services/registration/enter_location.vis b/services/registration/enter_location.vis index 45c5c9a..00bed3d 100644 --- a/services/registration/enter_location.vis +++ b/services/registration/enter_location.vis @@ -1,9 +1,9 @@ -CATCH incorrect_date_format incorrect_date_format_flag 1 +CATCH incorrect_date_format flag_incorrect_date_format 1 LOAD save_yob 0 -CATCH update_success allow_update_flag 1 +CATCH update_success flag_allow_update 1 MOUT back 0 HALT INCMP _ 0 LOAD save_location 0 -CATCH pin_entry single_edit_flag 1 +CATCH pin_entry flag_single_edit 1 INCMP enter_offerings * diff --git a/services/registration/enter_offerings.vis b/services/registration/enter_offerings.vis index 9bc4407..e590321 100644 --- a/services/registration/enter_offerings.vis +++ b/services/registration/enter_offerings.vis @@ -1,6 +1,6 @@ LOAD save_location 0 -CATCH incorrect_pin incorrect_pin_flag 1 -CATCH update_success allow_update_flag 1 +CATCH incorrect_pin flag_incorrect_pin 1 +CATCH update_success flag_allow_update 1 MOUT back 0 HALT LOAD save_offerings 0 diff --git a/services/registration/enter_yob.vis b/services/registration/enter_yob.vis index 46a3771..3b27846 100644 --- a/services/registration/enter_yob.vis +++ b/services/registration/enter_yob.vis @@ -1,9 +1,9 @@ LOAD save_gender 0 -CATCH update_success allow_update_flag 1 +CATCH update_success flag_allow_update 1 MOUT back 0 HALT INCMP _ 0 LOAD verify_yob 8 LOAD save_yob 0 -CATCH pin_entry single_edit_flag 1 +CATCH pin_entry flag_single_edit 1 INCMP enter_location * diff --git a/services/registration/my_balance.vis b/services/registration/my_balance.vis index c25ced3..151c6d8 100644 --- a/services/registration/my_balance.vis +++ b/services/registration/my_balance.vis @@ -1,5 +1,5 @@ LOAD reset_incorrect 0 -CATCH incorrect_pin incorrect_pin_flag 1 -CATCH pin_entry account_authorized_flag 0 +CATCH incorrect_pin flag_incorrect_pin 1 +CATCH pin_entry flag_account_authorized 0 LOAD quit_with_balance 0 HALT diff --git a/services/registration/pp.csv b/services/registration/pp.csv index 538870a..0501c1a 100644 --- a/services/registration/pp.csv +++ b/services/registration/pp.csv @@ -1,16 +1,16 @@ -flag,language_set_flag,8,checks whether the user has set their prefered language -flag,account_created_flag,9,this is set when an account has been created on the API -flag,account_pending_flag,10,this is set when an account does not have a status of SUCCESS -flag,account_success_flag,11,this is set when an account has a status of SUCCESS -flag,account_authorized_flag,12,this is set to allow a user access guarded nodes after providing a correct PIN -flag,invalid_recipient_flag,13,this is set when the transaction recipient is invalid -flag,invalid_recipient_with_invite_flag,14,this is set when the transaction recipient is valid but not on the platform -flag,incorrect_pin_flag,15,this is set when the provided PIN is invalid or does not match the current account's PIN -flag,allow_update_flag,16,this is set to allow a user to update their profile data -flag,invalid_amount_flag,17,this is set when the given transaction amount is invalid -flag,pin_set_flag,18,this is set when a newly registered user sets a PIN. This must be present for an account to access the main menu -flag,valid_pin_flag,19,this is set when the given PIN is valid -flag,pin_mismatch_flag,20,this is set when the confirmation PIN matches the initial PIN during registration -flag,incorrect_date_format_flag,21,this is set when the given year of birth is invalid -flag,account_creation_failed_flag,22,this is set when there's an error from the API during account creation -flag,single_edit_flag,23,this is set to allow a user to edit a single profile item such as familyName +flag,flag_language_set,8,checks whether the user has set their prefered language +flag,flag_account_created,9,this is set when an account has been created on the API +flag,flag_account_pending,10,this is set when an account does not have a status of SUCCESS +flag,flag_account_success,11,this is set when an account has a status of SUCCESS +flag,flag_account_authorized,12,this is set to allow a user access guarded nodes after providing a correct PIN +flag,flag_invalid_recipient,13,this is set when the transaction recipient is invalid +flag,flag_invalid_recipient_with_invite,14,this is set when the transaction recipient is valid but not on the platform +flag,flag_incorrect_pin,15,this is set when the provided PIN is invalid or does not match the current account's PIN +flag,flag_allow_update,16,this is set to allow a user to update their profile data +flag,flag_invalid_amount,17,this is set when the given transaction amount is invalid +flag,flag_pin_set,18,this is set when a newly registered user sets a PIN. This must be present for an account to access the main menu +flag,flag_valid_pin,19,this is set when the given PIN is valid +flag,flag_pin_mismatch,20,this is set when the confirmation PIN matches the initial PIN during registration +flag,flag_incorrect_date_format,21,this is set when the given year of birth is invalid +flag,flag_account_creation_failed,22,this is set when there's an error from the API during account creation +flag,flag_single_edit,23,this is set to allow a user to edit a single profile item such as year of birth diff --git a/services/registration/root.vis b/services/registration/root.vis index 3074d25..6e3b79d 100644 --- a/services/registration/root.vis +++ b/services/registration/root.vis @@ -1,7 +1,7 @@ -CATCH select_language language_set_flag 0 -CATCH terms account_created_flag 0 +CATCH select_language flag_language_set 0 +CATCH terms flag_account_created 0 LOAD check_account_status 0 -CATCH account_pending account_pending_flag 1 -CATCH create_pin pin_set_flag 0 -CATCH main account_success_flag 1 +CATCH account_pending flag_account_pending 1 +CATCH create_pin flag_pin_set 0 +CATCH main flag_account_success 1 HALT diff --git a/services/registration/select_gender.vis b/services/registration/select_gender.vis index 1159c64..dd354fc 100644 --- a/services/registration/select_gender.vis +++ b/services/registration/select_gender.vis @@ -1,12 +1,12 @@ LOAD save_familyname 0 -CATCH update_success allow_update_flag 1 +CATCH update_success flag_allow_update 1 MOUT male 1 MOUT female 2 MOUT unspecified 3 MOUT back 0 HALT LOAD save_gender 0 -CATCH pin_entry single_edit_flag 1 +CATCH pin_entry flag_single_edit 1 INCMP _ 0 INCMP enter_yob 1 INCMP enter_yob 2 diff --git a/services/registration/send.vis b/services/registration/send.vis index 5db5287..e120302 100644 --- a/services/registration/send.vis +++ b/services/registration/send.vis @@ -3,6 +3,6 @@ MOUT back 0 HALT LOAD validate_recipient 20 RELOAD validate_recipient -CATCH invalid_recipient invalid_recipient_flag 1 +CATCH invalid_recipient flag_invalid_recipient 1 INCMP _ 0 INCMP amount * diff --git a/services/registration/transaction_pin.vis b/services/registration/transaction_pin.vis index 5fcf2e7..878104c 100644 --- a/services/registration/transaction_pin.vis +++ b/services/registration/transaction_pin.vis @@ -8,7 +8,7 @@ MOUT quit 9 HALT LOAD authorize_account 1 RELOAD authorize_account -CATCH incorrect_pin incorrect_pin_flag 1 +CATCH incorrect_pin flag_incorrect_pin 1 INCMP _ 0 INCMP quit 9 INCMP transaction_initiated * diff --git a/services/registration/view_profile.vis b/services/registration/view_profile.vis index bf1196b..2d0a508 100644 --- a/services/registration/view_profile.vis +++ b/services/registration/view_profile.vis @@ -1,8 +1,8 @@ LOAD get_profile_info 0 MAP get_profile_info LOAD reset_incorrect 0 -CATCH incorrect_pin incorrect_pin_flag 1 -CATCH pin_entry account_authorized_flag 0 +CATCH incorrect_pin flag_incorrect_pin 1 +CATCH pin_entry flag_account_authorized 0 MOUT back 0 HALT INCMP _ 0