From 277e4e179d88eaeb491a2a58d782f6955ade91fd Mon Sep 17 00:00:00 2001 From: Alfred Kamanda Date: Fri, 30 Jan 2026 16:33:44 +0300 Subject: [PATCH] added a CATCH for a low amount response from the API --- services/registration/low_pay_debt_amount | 1 + services/registration/low_pay_debt_amount.vis | 5 +++++ services/registration/low_pay_debt_amount_swa | 1 + services/registration/pay_debt.vis | 1 + 4 files changed, 8 insertions(+) create mode 100644 services/registration/low_pay_debt_amount create mode 100644 services/registration/low_pay_debt_amount.vis create mode 100644 services/registration/low_pay_debt_amount_swa diff --git a/services/registration/low_pay_debt_amount b/services/registration/low_pay_debt_amount new file mode 100644 index 0000000..56f14ae --- /dev/null +++ b/services/registration/low_pay_debt_amount @@ -0,0 +1 @@ +You have a low debt amount \ No newline at end of file diff --git a/services/registration/low_pay_debt_amount.vis b/services/registration/low_pay_debt_amount.vis new file mode 100644 index 0000000..832ef22 --- /dev/null +++ b/services/registration/low_pay_debt_amount.vis @@ -0,0 +1,5 @@ +MOUT back 0 +MOUT quit 9 +HALT +INCMP ^ 0 +INCMP quit 9 diff --git a/services/registration/low_pay_debt_amount_swa b/services/registration/low_pay_debt_amount_swa new file mode 100644 index 0000000..26fcfc0 --- /dev/null +++ b/services/registration/low_pay_debt_amount_swa @@ -0,0 +1 @@ +Kiasi cha deni lako ni cha chini sana \ No newline at end of file diff --git a/services/registration/pay_debt.vis b/services/registration/pay_debt.vis index 1b5a819..91bdf8e 100644 --- a/services/registration/pay_debt.vis +++ b/services/registration/pay_debt.vis @@ -1,6 +1,7 @@ LOAD calculate_max_pay_debt 0 RELOAD calculate_max_pay_debt MAP calculate_max_pay_debt +CATCH low_pay_debt_amount flag_low_swap_amount 1 MOUT back 0 HALT INCMP _ 0