Alfred Kamanda Alfred-mk
  • Nairobi, Kenya
  • Joined on 2024-08-12
Alfred-mk pushed to postgres-switch at urdt/ussd 2024-10-16 10:38:49 +02:00
d8db8df643 use go-vise v0.2.0
Alfred-mk created pull request urdt/ussd#113 2024-10-15 22:57:17 +02:00
WIP: postgres-switch
Alfred-mk pushed to postgres-switch at urdt/ussd 2024-10-15 22:41:27 +02:00
09eac03e10 use env variables
51122d0fc5 added an env.example file
Compare 2 commits »
Alfred-mk created branch postgres-switch in urdt/ussd 2024-10-15 16:30:00 +02:00
Alfred-mk pushed to postgres-switch at urdt/ussd 2024-10-15 16:30:00 +02:00
Alfred-mk pushed to menu-voucherlist at urdt/ussd 2024-10-15 16:09:24 +02:00
d05c666513 Merge branch 'master' into menu-voucherlist
b058f9d770 Merge pull request 'Adapter to enable subdomain of db key prefixes' (#102) from lash/subprefix into master
Compare 2 commits »
Alfred-mk pushed to menu-voucherlist at urdt/ussd 2024-10-15 16:03:03 +02:00
a336856c9b use separate functions to process voucher data
Alfred-mk pushed to menu-voucherlist at urdt/ussd 2024-10-15 15:30:00 +02:00
f378f15422 updated tests
Alfred-mk pushed to menu-voucherlist at urdt/ussd 2024-10-15 15:17:40 +02:00
b2fb9faf6c use the active balance to validate the amount
Alfred-mk commented on pull request urdt/ussd#101 2024-10-15 14:55:32 +02:00
menu-voucherlist

For this, I've added a function that sets the default voucher, (expecting it to be SRF) if no active voucher is set for the user.

This will be loaded on the main.vis, ensuring that one has the…

Alfred-mk pushed to menu-voucherlist at urdt/ussd 2024-10-15 14:55:02 +02:00
859e203a00 removed debug comments
Alfred-mk pushed to menu-voucherlist at urdt/ussd 2024-10-15 14:46:29 +02:00
6c6af5ec21 set a default voucher as the active sym if none exists
8ed98b3e6c resolve case issue
Compare 2 commits »
Alfred-mk commented on pull request urdt/ussd#101 2024-10-14 14:44:43 +02:00
menu-voucherlist

This was added because the vise runs the function when we're navigating, instead of prioritizing the INCMP and navigate to the specified node

Alfred-mk pushed to psql-switch at urdt/ussd 2024-10-14 13:38:38 +02:00
1a6877c350 added an init to the binaries
b625b3cf5e added models
27895bf211 added uuid and env packages
ba6c95e347 added env example file
Compare 4 commits »
Alfred-mk created branch psql-switch in urdt/ussd 2024-10-14 10:01:25 +02:00
Alfred-mk pushed to psql-switch at urdt/ussd 2024-10-14 10:01:25 +02:00
Alfred-mk pushed to menu-voucherlist at urdt/ussd 2024-10-12 19:07:18 +02:00
7df77a1343 updated the ValidateAmount to also check the active symbol, updated tests
f5dbfe553d use the check_balance for the max_amount
Compare 2 commits »
Alfred-mk pushed to menu-voucherlist at urdt/ussd 2024-10-12 17:06:10 +02:00
7fe8f0b7d5 updated the args under FetchVouchers
a9f9867976 added the TestSetVoucher
Compare 2 commits »
Alfred-mk pushed to menu-voucherlist at urdt/ussd 2024-10-12 15:29:31 +02:00
b6d24bf929 update the TestCheckBalance
e9684fcf45 check whether the active symbol is empty
a5b1c5b74e cleaned up the code
Compare 3 commits »
Alfred-mk pushed to menu-voucherlist at urdt/ussd 2024-10-11 08:42:32 +02:00
672eebb8fb display the balance based on the symbol
8f834b3d76 ensure that a user is authorized
6c93fb76b1 correctly added the flag and the flag count
ea2df55295 use go-vise v0.2.0
7c08a0f0af add temp and active balance
Compare 5 commits »