Refactors transitions and ussd menus to fix bugs.
This commit is contained in:
parent
f39468d41f
commit
2608535200
@ -245,6 +245,36 @@
|
|||||||
"display_key": "ussd.kenya.exit_invalid_recipient",
|
"display_key": "ussd.kenya.exit_invalid_recipient",
|
||||||
"name": "exit_invalid_recipient",
|
"name": "exit_invalid_recipient",
|
||||||
"parent": null
|
"parent": null
|
||||||
|
},
|
||||||
|
"42": {
|
||||||
|
"description": "Pin entry menu for changing name data.",
|
||||||
|
"display_key": "ussd.kenya.name_edit_pin_authorization",
|
||||||
|
"name": "name_edit_pin_authorization",
|
||||||
|
"parent": "metadata_management"
|
||||||
|
},
|
||||||
|
"43": {
|
||||||
|
"description": "Pin entry menu for changing gender data.",
|
||||||
|
"display_key": "ussd.kenya.gender_edit_pin_authorization",
|
||||||
|
"name": "gender_edit_pin_authorization",
|
||||||
|
"parent": "metadata_management"
|
||||||
|
},
|
||||||
|
"44": {
|
||||||
|
"description": "Pin entry menu for changing location data.",
|
||||||
|
"display_key": "ussd.kenya.location_edit_pin_authorization",
|
||||||
|
"name": "location_edit_pin_authorization",
|
||||||
|
"parent": "metadata_management"
|
||||||
|
},
|
||||||
|
"45": {
|
||||||
|
"description": "Pin entry menu for changing products data.",
|
||||||
|
"display_key": "ussd.kenya.products_edit_pin_authorization",
|
||||||
|
"name": "products_edit_pin_authorization",
|
||||||
|
"parent": "metadata_management"
|
||||||
|
},
|
||||||
|
"46": {
|
||||||
|
"description": "Pin confirmation for pin change.",
|
||||||
|
"display_key": "ussd.kenya.new_pin_confirmation",
|
||||||
|
"name": "new_pin_confirmation",
|
||||||
|
"parent": "metadata_management"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,10 @@
|
|||||||
"enter_new_pin",
|
"enter_new_pin",
|
||||||
"new_pin_confirmation",
|
"new_pin_confirmation",
|
||||||
"display_user_metadata",
|
"display_user_metadata",
|
||||||
"standard_pin_authorization",
|
"name_edit_pin_authorization",
|
||||||
|
"gender_edit_pin_authorization",
|
||||||
|
"location_edit_pin_authorization",
|
||||||
|
"products_edit_pin_authorization",
|
||||||
"account_balances_pin_authorization",
|
"account_balances_pin_authorization",
|
||||||
"account_statement_pin_authorization",
|
"account_statement_pin_authorization",
|
||||||
"account_balances"
|
"account_balances"
|
||||||
|
@ -4,12 +4,13 @@
|
|||||||
"source": "enter_gender",
|
"source": "enter_gender",
|
||||||
"dest": "enter_location",
|
"dest": "enter_location",
|
||||||
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
|
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
|
||||||
"conditions": "cic_ussd.state_machine.logic.validator.is_valid_gender_selection"
|
"conditions": "cic_ussd.state_machine.logic.validator.is_valid_gender_selection",
|
||||||
|
"unless": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "enter_gender",
|
"source": "enter_gender",
|
||||||
"dest": "standard_pin_authorization",
|
"dest": "gender_edit_pin_authorization",
|
||||||
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
|
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
|
||||||
"conditions": [
|
"conditions": [
|
||||||
"cic_ussd.state_machine.logic.validator.has_cached_user_metadata",
|
"cic_ussd.state_machine.logic.validator.has_cached_user_metadata",
|
||||||
@ -18,15 +19,14 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "standard_pin_authorization",
|
"source": "gender_edit_pin_authorization",
|
||||||
"dest": "exit",
|
"dest": "exit",
|
||||||
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
|
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
|
||||||
"after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute",
|
"after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute"
|
||||||
"unless": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "standard_pin_authorization",
|
"source": "gender_edit_pin_authorization",
|
||||||
"dest": "exit_pin_blocked",
|
"dest": "exit_pin_blocked",
|
||||||
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
|
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
|
||||||
},
|
},
|
||||||
|
@ -3,26 +3,26 @@
|
|||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "enter_location",
|
"source": "enter_location",
|
||||||
"dest": "enter_products",
|
"dest": "enter_products",
|
||||||
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data"
|
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
|
||||||
|
"unless": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "enter_location",
|
"source": "enter_location",
|
||||||
"dest": "standard_pin_authorization",
|
"dest": "location_edit_pin_authorization",
|
||||||
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
|
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
|
||||||
"conditions": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
"conditions": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "standard_pin_authorization",
|
"source": "location_edit_pin_authorization",
|
||||||
"dest": "exit",
|
"dest": "exit",
|
||||||
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
|
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
|
||||||
"after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute",
|
"after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute"
|
||||||
"unless": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "standard_pin_authorization",
|
"source": "location_edit_pin_authorization",
|
||||||
"dest": "exit_pin_blocked",
|
"dest": "exit_pin_blocked",
|
||||||
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
|
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
|
||||||
}
|
}
|
||||||
|
@ -7,49 +7,28 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "enter_given_name",
|
"source": "enter_family_name",
|
||||||
"dest": "standard_pin_authorization",
|
"dest": "name_edit_pin_authorization",
|
||||||
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
|
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
|
||||||
"conditions": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
"conditions": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"trigger": "scan_data",
|
|
||||||
"source": "standard_pin_authorization",
|
|
||||||
"dest": "exit",
|
|
||||||
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
|
|
||||||
"after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute",
|
|
||||||
"unless": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"trigger": "scan_data",
|
|
||||||
"source": "standard_pin_authorization",
|
|
||||||
"dest": "exit_pin_blocked",
|
|
||||||
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "enter_family_name",
|
"source": "enter_family_name",
|
||||||
"dest": "enter_gender",
|
"dest": "enter_gender",
|
||||||
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"trigger": "scan_data",
|
|
||||||
"source": "enter_family_name",
|
|
||||||
"dest": "standard_pin_authorization",
|
|
||||||
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
|
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data",
|
||||||
"conditions": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"trigger": "scan_data",
|
|
||||||
"source": "standard_pin_authorization",
|
|
||||||
"dest": "exit",
|
|
||||||
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
|
|
||||||
"after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute",
|
|
||||||
"unless": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
"unless": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "standard_pin_authorization",
|
"source": "name_edit_pin_authorization",
|
||||||
|
"dest": "exit",
|
||||||
|
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
|
||||||
|
"after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"trigger": "scan_data",
|
||||||
|
"source": "name_edit_pin_authorization",
|
||||||
"dest": "exit_pin_blocked",
|
"dest": "exit_pin_blocked",
|
||||||
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
|
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
|
||||||
}
|
}
|
||||||
|
@ -9,14 +9,14 @@
|
|||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "enter_current_pin",
|
"source": "enter_current_pin",
|
||||||
"dest": "exit_pin_blocked",
|
"dest": "exit_pin_blocked",
|
||||||
"conditions": "cic_ussd.state_machine.logic.menu.is_blocked_pin"
|
"conditions": "cic_ussd.state_machine.logic.pin.is_blocked_pin"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "enter_new_pin",
|
"source": "enter_new_pin",
|
||||||
"dest": "new_pin_confirmation",
|
"dest": "new_pin_confirmation",
|
||||||
"after": "cic_ussd.state_machine.logic.pin.save_initial_pin_to_session_data",
|
"after": "cic_ussd.state_machine.logic.pin.save_initial_pin_to_session_data",
|
||||||
"conditions": "cic_ussd.state_machine.logic.menu.is_valid_new_pin"
|
"conditions": "cic_ussd.state_machine.logic.pin.is_valid_new_pin"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
@ -28,7 +28,7 @@
|
|||||||
"source": "new_pin_confirmation",
|
"source": "new_pin_confirmation",
|
||||||
"dest": "complete",
|
"dest": "complete",
|
||||||
"conditions": "cic_ussd.state_machine.logic.pin.pins_match",
|
"conditions": "cic_ussd.state_machine.logic.pin.pins_match",
|
||||||
"after": "cic_ussd.state_machine.logic.menu.complete_pin_change"
|
"after": "cic_ussd.state_machine.logic.pin.complete_pin_change"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "enter_products",
|
"source": "enter_products",
|
||||||
"dest": "standard_pin_authorization",
|
"dest": "products_edit_pin_authorization",
|
||||||
"conditions": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata",
|
"conditions": "cic_ussd.state_machine.logic.validator.has_cached_user_metadata",
|
||||||
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data"
|
"after": "cic_ussd.state_machine.logic.user.save_metadata_attribute_to_session_data"
|
||||||
},
|
},
|
||||||
@ -17,14 +17,14 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "standard_pin_authorization",
|
"source": "products_edit_pin_authorization",
|
||||||
"dest": "exit",
|
"dest": "exit",
|
||||||
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
|
"conditions": "cic_ussd.state_machine.logic.pin.is_authorized_pin",
|
||||||
"after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute"
|
"after": "cic_ussd.state_machine.logic.user.edit_user_metadata_attribute"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "standard_pin_authorization",
|
"source": "products_edit_pin_authorization",
|
||||||
"dest": "exit_pin_blocked",
|
"dest": "exit_pin_blocked",
|
||||||
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
|
"conditions": "cic_ussd.state_machine.logic.pin.is_locked_account"
|
||||||
}
|
}
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
{
|
{
|
||||||
"trigger": "scan_data",
|
"trigger": "scan_data",
|
||||||
"source": "metadata_management",
|
"source": "metadata_management",
|
||||||
"dest": "enter_age",
|
"dest": "enter_gender",
|
||||||
"conditions": "cic_ussd.state_machine.logic.menu.menu_two_selected"
|
"conditions": "cic_ussd.state_machine.logic.menu.menu_two_selected"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -78,6 +78,9 @@ en:
|
|||||||
enter_new_pin: |-
|
enter_new_pin: |-
|
||||||
CON Enter new PIN again
|
CON Enter new PIN again
|
||||||
0. Back
|
0. Back
|
||||||
|
new_pin_confirmation: |-
|
||||||
|
CON Enter your new four number PIN again
|
||||||
|
0. Back
|
||||||
transaction_pin_authorization:
|
transaction_pin_authorization:
|
||||||
first: |-
|
first: |-
|
||||||
CON %{recipient_information} will receive %{transaction_amount} %{token_symbol} from %{sender_information}.
|
CON %{recipient_information} will receive %{transaction_amount} %{token_symbol} from %{sender_information}.
|
||||||
@ -107,6 +110,34 @@ en:
|
|||||||
retry: |-
|
retry: |-
|
||||||
CON Please enter your PIN. You have %{remaining_attempts} attempts remaining
|
CON Please enter your PIN. You have %{remaining_attempts} attempts remaining
|
||||||
0. Back
|
0. Back
|
||||||
|
name_edit_pin_authorization:
|
||||||
|
first: |-
|
||||||
|
CON Please enter your PIN
|
||||||
|
0. Back
|
||||||
|
retry: |-
|
||||||
|
CON Please enter your PIN. You have %{remaining_attempts} attempts remaining
|
||||||
|
0. Back
|
||||||
|
gender_edit_pin_authorization:
|
||||||
|
first: |-
|
||||||
|
CON Please enter your PIN
|
||||||
|
0. Back
|
||||||
|
retry: |-
|
||||||
|
CON Please enter your PIN. You have %{remaining_attempts} attempts remaining
|
||||||
|
0. Back
|
||||||
|
location_edit_pin_authorization:
|
||||||
|
first: |-
|
||||||
|
CON Please enter your PIN
|
||||||
|
0. Back
|
||||||
|
retry: |-
|
||||||
|
CON Please enter your PIN. You have %{remaining_attempts} attempts remaining
|
||||||
|
0. Back
|
||||||
|
products_edit_pin_authorization:
|
||||||
|
first: |-
|
||||||
|
CON Please enter your PIN
|
||||||
|
0. Back
|
||||||
|
retry: |-
|
||||||
|
CON Please enter your PIN. You have %{remaining_attempts} attempts remaining
|
||||||
|
0. Back
|
||||||
account_balances: |-
|
account_balances: |-
|
||||||
CON Your balances are as follows:
|
CON Your balances are as follows:
|
||||||
balance: %{operational_balance} %{token_symbol}
|
balance: %{operational_balance} %{token_symbol}
|
||||||
|
@ -78,6 +78,9 @@ sw:
|
|||||||
enter_new_pin: |-
|
enter_new_pin: |-
|
||||||
CON Weka nambari ya siri mpya
|
CON Weka nambari ya siri mpya
|
||||||
0. Nyuma
|
0. Nyuma
|
||||||
|
new_pin_confirmation: |-
|
||||||
|
CON Weka PIN yako tena
|
||||||
|
0. Nyuma
|
||||||
transaction_pin_authorization:
|
transaction_pin_authorization:
|
||||||
first: |-
|
first: |-
|
||||||
CON %{recipient_information} atapokea %{transaction_amount} %{token_symbol} kutoka kwa %{sender_information}.
|
CON %{recipient_information} atapokea %{transaction_amount} %{token_symbol} kutoka kwa %{sender_information}.
|
||||||
@ -86,13 +89,6 @@ sw:
|
|||||||
retry: |-
|
retry: |-
|
||||||
CON Weka nambari ya siri. Una majaribio %{remaining_attempts} yaliyobaki.
|
CON Weka nambari ya siri. Una majaribio %{remaining_attempts} yaliyobaki.
|
||||||
0. Nyuma
|
0. Nyuma
|
||||||
standard_pin_authorization:
|
|
||||||
first: |-
|
|
||||||
CON Tafadhali weka PIN yako.
|
|
||||||
0. Nyuma
|
|
||||||
retry: |-
|
|
||||||
CON Tafadhali weka PIN yako. Una majaribio %{remaining_attempts} yaliyobaki.
|
|
||||||
0. Nyuma
|
|
||||||
account_balances_pin_authorization:
|
account_balances_pin_authorization:
|
||||||
first: |-
|
first: |-
|
||||||
CON Tafadhali weka PIN yako kuona salio.
|
CON Tafadhali weka PIN yako kuona salio.
|
||||||
@ -107,11 +103,39 @@ sw:
|
|||||||
retry: |-
|
retry: |-
|
||||||
CON Tafadhali weka PIN yako. Una majaribio %{remaining_attempts} yaliyobaki.
|
CON Tafadhali weka PIN yako. Una majaribio %{remaining_attempts} yaliyobaki.
|
||||||
0. Nyuma
|
0. Nyuma
|
||||||
|
name_edit_pin_authorization:
|
||||||
|
first: |-
|
||||||
|
CON Tafadhali weka PIN yako
|
||||||
|
0. Nyuma
|
||||||
|
retry: |-
|
||||||
|
CON Tafadhali weka PIN yako. Una majaribio %{remaining_attempts} yaliyobaki.
|
||||||
|
0. Nyuma
|
||||||
|
gender_edit_pin_authorization:
|
||||||
|
first: |-
|
||||||
|
CON Tafadhali weka PIN yako
|
||||||
|
0. Nyuma
|
||||||
|
retry: |-
|
||||||
|
CON Tafadhali weka PIN yako. Una majaribio %{remaining_attempts} yaliyobaki.
|
||||||
|
0. Nyuma
|
||||||
|
location_edit_pin_authorization:
|
||||||
|
first: |-
|
||||||
|
CON Tafadhali weka PIN yako
|
||||||
|
0. Nyuma
|
||||||
|
retry: |-
|
||||||
|
CON Tafadhali weka PIN yako. Una majaribio %{remaining_attempts} yaliyobaki.
|
||||||
|
0. Nyuma
|
||||||
|
products_edit_pin_authorization:
|
||||||
|
first: |-
|
||||||
|
CON Tafadhali weka PIN yako
|
||||||
|
0. Nyuma
|
||||||
|
retry: |-
|
||||||
|
CON Tafadhali weka PIN yako. Una majaribio %{remaining_attempts} yaliyobaki.
|
||||||
|
0. Nyuma
|
||||||
account_balances: |-
|
account_balances: |-
|
||||||
CON Salio zako ni zifuatazo:
|
CON Salio zako ni zifuatazo:
|
||||||
salio: %{operational_balance}
|
salio: %{operational_balance} %{token_symbol}
|
||||||
ushuru: %{tax}
|
ushuru: %{tax} %{token_symbol}
|
||||||
tuzo: %{bonus}
|
tuzo: %{bonus} %{token_symbol}
|
||||||
0. Back
|
0. Back
|
||||||
first_transaction_set: |-
|
first_transaction_set: |-
|
||||||
CON %{first_transaction_set}
|
CON %{first_transaction_set}
|
||||||
|
Loading…
Reference in New Issue
Block a user