Adds initial transitions and states for social PIN recovery.
This commit is contained in:
parent
b0e21b667f
commit
e9cae89571
16
apps/cic-ussd/states/pin_management_states.json
Normal file
16
apps/cic-ussd/states/pin_management_states.json
Normal file
@ -0,0 +1,16 @@
|
||||
[
|
||||
"pin_management",
|
||||
"reset_guarded_pin",
|
||||
"reset_guarded_pin_authorization",
|
||||
"exit_pin_reset_initiated_success",
|
||||
"exit_not_authorized_for_pin_reset",
|
||||
"guard_pin",
|
||||
"guardian_list_pin_authorization",
|
||||
"guardian_list",
|
||||
"add_guardian",
|
||||
"add_guardian_pin_authorization",
|
||||
"exit_guardian_addition_success",
|
||||
"remove_guardian",
|
||||
"remove_guardian_pin_authorization",
|
||||
"exit_guardian_removal_success"
|
||||
]
|
@ -50,7 +50,7 @@
|
||||
{
|
||||
"trigger": "scan_data",
|
||||
"source": "account_management",
|
||||
"dest": "enter_current_pin",
|
||||
"dest": "pin_management",
|
||||
"conditions": "cic_ussd.state_machine.logic.menu.menu_five_selected"
|
||||
},
|
||||
{
|
||||
|
38
apps/cic-ussd/transitions/pin_guard_transitions.json
Normal file
38
apps/cic-ussd/transitions/pin_guard_transitions.json
Normal file
@ -0,0 +1,38 @@
|
||||
[
|
||||
{
|
||||
"trigger": "scan_data",
|
||||
"source": "guard_pin",
|
||||
"dest": "guardian_list_pin_authorization",
|
||||
"conditions": "cic_ussd.state_machine.logic.menu.menu_one_selected"
|
||||
},
|
||||
{
|
||||
"trigger": "scan_data",
|
||||
"source": "guardian_list_pin_authorization",
|
||||
"dest": "guardian_list",
|
||||
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin"
|
||||
},
|
||||
{
|
||||
"trigger": "scan_data",
|
||||
"source": "guardian_list_pin_authorization",
|
||||
"dest": "exit_pin_blocked",
|
||||
"conditions": "cic_ussd.state_machine.logic.pin.is_blocked_pin"
|
||||
},
|
||||
{
|
||||
"trigger": "scan_data",
|
||||
"source": "guard_pin",
|
||||
"dest": "add_guardian",
|
||||
"conditions": "cic_ussd.state_machine.logic.menu.menu_two_selected"
|
||||
},
|
||||
{
|
||||
"trigger": "scan_data",
|
||||
"source": "guard_pin",
|
||||
"dest": "remove_guardian",
|
||||
"conditions": "cic_ussd.state_machine.logic.menu.menu_three_selected"
|
||||
},
|
||||
{
|
||||
"trigger": "scan_data",
|
||||
"source": "guard_pin",
|
||||
"dest": "exit",
|
||||
"conditions": "cic_ussd.state_machine.logic.menu.menu_nine_selected"
|
||||
}
|
||||
]
|
20
apps/cic-ussd/transitions/pin_management_transitions.json
Normal file
20
apps/cic-ussd/transitions/pin_management_transitions.json
Normal file
@ -0,0 +1,20 @@
|
||||
[
|
||||
{
|
||||
"trigger": "scan_data",
|
||||
"source": "pin_management",
|
||||
"dest": "enter_current_pin",
|
||||
"conditions": "cic_ussd.state_machine.logic.menu.menu_one_selected"
|
||||
},
|
||||
{
|
||||
"trigger": "scan_data",
|
||||
"source": "pin_management",
|
||||
"dest": "reset_guarded_pin",
|
||||
"conditions": "cic_ussd.state_machine.logic.menu.menu_two_selected"
|
||||
},
|
||||
{
|
||||
"trigger": "scan_data",
|
||||
"source": "pin_management",
|
||||
"dest": "guard_pin",
|
||||
"conditions": "cic_ussd.state_machine.logic.menu.menu_three_selected"
|
||||
}
|
||||
]
|
Loading…
Reference in New Issue
Block a user