forked from urdt/ussd
Merge branch 'master' into tests-refactor
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
RELOAD verify_pin
|
||||
RELOAD verify_create_pin
|
||||
CATCH create_pin_mismatch flag_pin_mismatch 1
|
||||
LOAD quit 0
|
||||
HALT
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
LOAD reset_transaction_amount 0
|
||||
LOAD max_amount 10
|
||||
RELOAD max_amount
|
||||
MAP max_amount
|
||||
MOUT back 0
|
||||
HALT
|
||||
@@ -10,5 +11,5 @@ CATCH invalid_amount flag_invalid_amount 1
|
||||
INCMP _ 0
|
||||
LOAD get_recipient 12
|
||||
LOAD get_sender 64
|
||||
LOAD get_amount 12
|
||||
LOAD get_amount 32
|
||||
INCMP transaction_pin *
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
LOAD save_pin 0
|
||||
LOAD save_temporary_pin 6
|
||||
HALT
|
||||
LOAD verify_pin 8
|
||||
LOAD verify_create_pin 8
|
||||
INCMP account_creation *
|
||||
|
||||
@@ -2,8 +2,8 @@ LOAD create_account 0
|
||||
CATCH account_creation_failed flag_account_creation_failed 1
|
||||
MOUT exit 0
|
||||
HALT
|
||||
LOAD save_pin 0
|
||||
RELOAD save_pin
|
||||
LOAD save_temporary_pin 6
|
||||
RELOAD save_temporary_pin
|
||||
CATCH . flag_incorrect_pin 1
|
||||
INCMP quit 0
|
||||
INCMP confirm_create_pin *
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
msgid "Your account balance is %s"
|
||||
msgstr "Salio lako ni %s"
|
||||
|
||||
msgid "Your request has been sent. %s will receive %s from %s."
|
||||
msgstr "Ombi lako limetumwa. %s atapokea %s kutoka kwa %s."
|
||||
msgid "Your request has been sent. %s will receive %s %s from %s."
|
||||
msgstr "Ombi lako limetumwa. %s atapokea %s %s kutoka kwa %s."
|
||||
|
||||
msgid "Thank you for using Sarafu. Goodbye!"
|
||||
msgstr "Asante kwa kutumia huduma ya Sarafu. Kwaheri!"
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
LOAD set_default_voucher 8
|
||||
RELOAD set_default_voucher
|
||||
LOAD check_balance 64
|
||||
RELOAD check_balance
|
||||
LOAD check_vouchers 10
|
||||
RELOAD check_vouchers
|
||||
CATCH api_failure flag_api_call_error 1
|
||||
MAP check_balance
|
||||
MOUT send 1
|
||||
@@ -9,7 +13,7 @@ MOUT help 4
|
||||
MOUT quit 9
|
||||
HALT
|
||||
INCMP send 1
|
||||
INCMP quit 2
|
||||
INCMP my_vouchers 2
|
||||
INCMP my_account 3
|
||||
INCMP help 4
|
||||
INCMP quit 9
|
||||
|
||||
1
services/registration/my_vouchers
Normal file
1
services/registration/my_vouchers
Normal file
@@ -0,0 +1 @@
|
||||
My vouchers
|
||||
8
services/registration/my_vouchers.vis
Normal file
8
services/registration/my_vouchers.vis
Normal file
@@ -0,0 +1,8 @@
|
||||
LOAD reset_account_authorized 16
|
||||
RELOAD reset_account_authorized
|
||||
MOUT select_voucher 1
|
||||
MOUT voucher_details 2
|
||||
MOUT back 0
|
||||
HALT
|
||||
INCMP _ 0
|
||||
INCMP select_voucher 1
|
||||
1
services/registration/no_voucher
Normal file
1
services/registration/no_voucher
Normal file
@@ -0,0 +1 @@
|
||||
You need a voucher to send
|
||||
5
services/registration/no_voucher.vis
Normal file
5
services/registration/no_voucher.vis
Normal file
@@ -0,0 +1,5 @@
|
||||
MOUT back 0
|
||||
MOUT quit 9
|
||||
HALT
|
||||
INCMP ^ 0
|
||||
INCMP quit 9
|
||||
1
services/registration/no_voucher_swa
Normal file
1
services/registration/no_voucher_swa
Normal file
@@ -0,0 +1 @@
|
||||
Unahitaji sarafu kutuma
|
||||
@@ -14,4 +14,6 @@ flag,flag_valid_pin,20,this is set when the given PIN is valid
|
||||
flag,flag_allow_update,21,this is set to allow a user to update their profile data
|
||||
flag,flag_single_edit,22,this is set to allow a user to edit a single profile item such as year of birth
|
||||
flag,flag_incorrect_date_format,23,this is set when the given year of birth is invalid
|
||||
flag,flag_api_call_error,25,this is set when communication to an external service fails
|
||||
flag,flag_incorrect_voucher,24,this is set when the selected voucher is invalid
|
||||
flag,flag_api_call_error,25,this is set when communication to an external service fails
|
||||
flag,flag_no_active_voucher,26,this is set when a user does not have an active voucher
|
||||
|
||||
|
2
services/registration/select_voucher
Normal file
2
services/registration/select_voucher
Normal file
@@ -0,0 +1,2 @@
|
||||
Select number or symbol from your vouchers:
|
||||
{{.get_vouchers}}
|
||||
15
services/registration/select_voucher.vis
Normal file
15
services/registration/select_voucher.vis
Normal file
@@ -0,0 +1,15 @@
|
||||
LOAD get_vouchers 0
|
||||
MAP get_vouchers
|
||||
MOUT back 0
|
||||
MOUT quit 99
|
||||
MNEXT next 11
|
||||
MPREV prev 22
|
||||
HALT
|
||||
LOAD view_voucher 80
|
||||
RELOAD view_voucher
|
||||
CATCH . flag_incorrect_voucher 1
|
||||
INCMP _ 0
|
||||
INCMP quit 99
|
||||
INCMP > 11
|
||||
INCMP < 22
|
||||
INCMP view_voucher *
|
||||
1
services/registration/select_voucher_menu
Normal file
1
services/registration/select_voucher_menu
Normal file
@@ -0,0 +1 @@
|
||||
Select voucher
|
||||
2
services/registration/select_voucher_swa
Normal file
2
services/registration/select_voucher_swa
Normal file
@@ -0,0 +1,2 @@
|
||||
Chagua nambari au ishara kutoka kwa salio zako:
|
||||
{{.get_vouchers}}
|
||||
@@ -1,4 +1,5 @@
|
||||
LOAD transaction_reset 0
|
||||
CATCH no_voucher flag_no_active_voucher 1
|
||||
MOUT back 0
|
||||
HALT
|
||||
LOAD validate_recipient 20
|
||||
|
||||
2
services/registration/view_voucher
Normal file
2
services/registration/view_voucher
Normal file
@@ -0,0 +1,2 @@
|
||||
Enter PIN to confirm selection:
|
||||
{{.view_voucher}}
|
||||
10
services/registration/view_voucher.vis
Normal file
10
services/registration/view_voucher.vis
Normal file
@@ -0,0 +1,10 @@
|
||||
MAP view_voucher
|
||||
MOUT back 0
|
||||
MOUT quit 9
|
||||
LOAD authorize_account 6
|
||||
HALT
|
||||
RELOAD authorize_account
|
||||
CATCH incorrect_pin flag_incorrect_pin 1
|
||||
INCMP _ 0
|
||||
INCMP quit 9
|
||||
INCMP voucher_set *
|
||||
2
services/registration/view_voucher_swa
Normal file
2
services/registration/view_voucher_swa
Normal file
@@ -0,0 +1,2 @@
|
||||
Weka PIN ili kuthibitisha chaguo:
|
||||
{{.view_voucher}}
|
||||
1
services/registration/voucher_details_menu
Normal file
1
services/registration/voucher_details_menu
Normal file
@@ -0,0 +1 @@
|
||||
Voucher details
|
||||
1
services/registration/voucher_set
Normal file
1
services/registration/voucher_set
Normal file
@@ -0,0 +1 @@
|
||||
Success! {{.set_voucher}} is now your active voucher.
|
||||
10
services/registration/voucher_set.vis
Normal file
10
services/registration/voucher_set.vis
Normal file
@@ -0,0 +1,10 @@
|
||||
LOAD reset_incorrect 6
|
||||
CATCH incorrect_pin flag_incorrect_pin 1
|
||||
CATCH _ flag_account_authorized 0
|
||||
LOAD set_voucher 12
|
||||
MAP set_voucher
|
||||
MOUT back 0
|
||||
MOUT quit 9
|
||||
HALT
|
||||
INCMP ^ 0
|
||||
INCMP quit 9
|
||||
1
services/registration/voucher_set_swa
Normal file
1
services/registration/voucher_set_swa
Normal file
@@ -0,0 +1 @@
|
||||
Hongera! {{.set_voucher}} ni Sarafu inayotumika sasa.
|
||||
Reference in New Issue
Block a user