Commit Graph

238 Commits

Author SHA1 Message Date
Alfred Kamanda
865dae4b7f correctly format amounts to 2 decimal places using TruncateDecimalString 2025-10-22 16:16:05 +03:00
Alfred Kamanda
0af41ea1f1 Merge branch 'master' into send-with-swap 2025-10-22 14:40:21 +03:00
Alfred Kamanda
1ba5424e0b cleaned up the code and removed the debug statement 2025-10-22 12:20:41 +03:00
Alfred Kamanda
5b4446c04a use the upstream APIError 2025-10-22 12:10:19 +03:00
Alfred Kamanda
bd98034a9b added debug line 2025-10-21 16:05:00 +03:00
Alfred Kamanda
95bc5ec6af set a different response content based on the API error code 2025-10-21 15:49:02 +03:00
Alfred Kamanda
20b4269358 add a custom error struct that carries both fields from the API error 2025-10-21 15:47:39 +03:00
Alfred Kamanda
ba9a23946f added ClearTransactionTypeFlag when a user goes back
Some checks failed
release / docker (push) Has been cancelled
2025-10-09 15:08:51 +03:00
Alfred Kamanda
34271cba23 Merge branch 'master' into send-with-swap
Some checks failed
release / docker (push) Has been cancelled
2025-10-09 14:32:31 +03:00
Alfred Kamanda
9878745861 fixed the TestCheckBalance by adjusting the expected result 2025-10-09 13:39:30 +03:00
Alfred Kamanda
ed780659d3 removed the debug statements 2025-10-09 13:20:58 +03:00
Alfred Kamanda
764431ee58 added some debug statements 2025-10-09 13:08:22 +03:00
Alfred Kamanda
fb5eb3f24f added the determineAndSaveTransactionType heper for shared logic on the transaction type 2025-10-09 12:45:16 +03:00
Alfred Kamanda
27fdb20974 handle the transaction type for a swap when using an alias 2025-10-09 12:27:51 +03:00
Alfred Kamanda
f7859fb72a handle the transaction type for a swap when using an address 2025-10-09 12:15:56 +03:00
Alfred Kamanda
8d6cbde66c sanitize invalid characters while showing the token details 2025-10-03 17:25:34 +03:00
Alfred Kamanda
610ecc4b7e changed the word Commodity to Product 2025-10-03 17:01:08 +03:00
Alfred Kamanda
cda2d49f3e added TransactionInitiateSwap functionality that performs a swap followed by a send 2025-08-25 17:27:20 +03:00
Alfred Kamanda
4492f8087a added TransactionSwapPreview functionality 2025-08-25 17:25:59 +03:00
Alfred Kamanda
0f8c2f9270 use the recipient's phone number to read swap related data 2025-08-25 17:24:58 +03:00
Alfred Kamanda
7e1042c6a9 update the MaxAmount logic to check the swap capability for swap transactions 2025-08-25 12:46:16 +03:00
Alfred Kamanda
e274967c8e update the handlePhoneNumber logic to cover new users or those without an active voucher 2025-08-25 10:52:22 +03:00
Alfred Kamanda
b6de057cc4 add a reset for the DATA_RECIPIENT_ACTIVE_TOKEN key 2025-08-04 11:21:14 +03:00
Alfred Kamanda
f441b3b2af split the ValidateRecipient and check the transaction type 2025-08-04 11:18:45 +03:00
Alfred Kamanda
4d687cac2e updated the MaxAmount description comment 2025-07-30 11:46:22 +03:00
alfred-mk
bd8631eb05 update the TestCheckBlockedStatus to account for the udpated functionality
Some checks failed
release / docker (push) Has been cancelled
2025-07-28 16:15:21 +03:00
alfred-mk
c51fd89ad5 set key flags (language and PIN) if the data exists and the flags are missing 2025-07-28 16:14:32 +03:00
alfred-mk
193c9c119a filter out the active voucher from swapToList 2025-07-21 13:01:06 +03:00
alfred-mk
61f48abb7d return on navigation inputs to prevent data processing 2025-07-21 12:30:05 +03:00
alfred-mk
3e40a09d39 format the balance to 2 d.p. before displaying it 2025-07-21 12:22:05 +03:00
alfred-mk
7e90124199 filter out the active pool from the list of available pools 2025-07-21 11:50:50 +03:00
alfred-mk
e27905765c updated TestManageVouchers to match filtering of active vouchers 2025-07-21 11:28:05 +03:00
alfred-mk
4ce9baa379 return on navigation inputs to prevent data processing 2025-07-21 11:27:20 +03:00
alfred-mk
e47415cc22 remove the active voucher from the list of stored vouchers 2025-07-21 11:25:33 +03:00
alfred-mk
1f4d810e14 update the GetVoucherList comment description 2025-07-21 10:23:00 +03:00
alfred-mk
058d802c0f return on navigation inputs to prevent calling the API 2025-07-18 16:04:24 +03:00
alfred-mk
da64c3b80e MAJOR REFACTOR: project-tidyup - menuhandler and tests (#90)
Partly resolves issue #86

Reviewed-on: #90
Co-authored-by: alfred-mk <alfredmwaik@gmail.com>
Co-committed-by: alfred-mk <alfredmwaik@gmail.com>
2025-07-14 14:42:54 +02:00
alfred-mk
44673ef61b remove extra whitespace 2025-07-07 21:25:29 +03:00
alfred-mk
559b67a3e6 display the full alias on its own line 2025-07-07 21:24:16 +03:00
alfred-mk
b1eb460988 add a isAliasUnavailable helper function
Some checks failed
release / docker (push) Has been cancelled
2025-07-07 18:55:17 +03:00
alfred-mk
619edc39f8 remove unused function GetSuggestedAlias 2025-07-07 17:52:59 +03:00
alfred-mk
efa29b087e remove unused node and function confirm_new_alias 2025-07-07 17:51:45 +03:00
alfred-mk
a3ab91f6a3 handle alias registration and updates on the single RequestCustomAlias function 2025-07-07 17:43:04 +03:00
alfred-mk
16dd0f6ebf set the first voucher as the active voucher when the current active sym is not found in the vouchers response
Some checks failed
release / docker (push) Has been cancelled
2025-07-02 19:10:02 +03:00
alfred-mk
a3dae12c7a update the TestCheckBalance and add more test cases
Some checks failed
release / docker (push) Has been cancelled
2025-07-02 09:30:30 +03:00
alfred-mk
57426b3565 use the TruncateDecimalString to format the displayed balance 2025-07-02 09:29:56 +03:00
alfred-mk
2807f039a7 Merge branch 'master' into add-balance-to-voucher-list 2025-07-02 08:50:50 +03:00
alfred-mk
ba2cb4b813 use the DATA_SUGGESTED_ALIAS to check the status 2025-07-01 01:29:52 +03:00
alfred-mk
8416d4fddb use a single alias variable 2025-07-01 01:18:03 +03:00
alfred-mk
a33ff7ffda added logging 2025-07-01 00:56:50 +03:00