cic-internal-integration/apps/cic-ussd/transitions/age_setting_transitions.json

39 lines
1.3 KiB
JSON
Raw Permalink Normal View History

2021-06-23 15:25:09 +02:00
[
{
"trigger": "scan_data",
"source": "enter_date_of_birth",
"dest": "dob_edit_pin_authorization",
2021-08-06 18:29:01 +02:00
"after": "cic_ussd.state_machine.logic.account.save_metadata_attribute_to_session_data",
2021-06-23 15:25:09 +02:00
"conditions": [
2021-08-06 18:29:01 +02:00
"cic_ussd.state_machine.logic.validator.has_cached_person_metadata",
2021-06-23 15:25:09 +02:00
"cic_ussd.state_machine.logic.validator.is_valid_date"
]
},
{
"trigger": "scan_data",
"source": "enter_date_of_birth",
2021-06-30 16:27:56 +02:00
"dest": "enter_location",
2021-06-23 15:25:09 +02:00
"conditions": "cic_ussd.state_machine.logic.validator.is_valid_date",
2021-08-06 18:29:01 +02:00
"after": "cic_ussd.state_machine.logic.account.save_metadata_attribute_to_session_data",
"unless": "cic_ussd.state_machine.logic.validator.has_cached_person_metadata"
2021-06-23 15:25:09 +02:00
},
{
"trigger": "scan_data",
"source": "enter_date_of_birth",
"dest": "exit_invalid_input",
"unless": "cic_ussd.state_machine.logic.validator.is_valid_date"
},
{
"trigger": "scan_data",
"source": "dob_edit_pin_authorization",
"dest": "exit",
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
2021-08-06 18:29:01 +02:00
"after": "cic_ussd.state_machine.logic.account.edit_user_metadata_attribute"
2021-06-23 15:25:09 +02:00
},
{
"trigger": "scan_data",
"source": "dob_edit_pin_authorization",
"dest": "exit_pin_blocked",
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
}
]