From 85d8ad9300851d5cfba50241675980ef3d212d0c Mon Sep 17 00:00:00 2001 From: StuartFerguson Date: Thu, 3 Sep 2026 17:30:00 +0100 Subject: [PATCH] support new agency banking product type --- .../Responses/Contract/ProductType.cs | 3 ++- .../Features/SaleTransactionFeature.feature | 8 ++++---- .../Features/SaleTransactionFeature.feature.cs | 8 ++++---- TransactionProcessor.Models/Contract/ProductType.cs | 3 ++- 4 files changed, 12 insertions(+), 10 deletions(-) diff --git a/TransactionProcessor.DataTransferObjects/Responses/Contract/ProductType.cs b/TransactionProcessor.DataTransferObjects/Responses/Contract/ProductType.cs index 92f2c131..d0d6b9bc 100644 --- a/TransactionProcessor.DataTransferObjects/Responses/Contract/ProductType.cs +++ b/TransactionProcessor.DataTransferObjects/Responses/Contract/ProductType.cs @@ -8,6 +8,7 @@ public enum ProductType Voucher, - BillPayment + BillPayment, + AgencyBanking } } \ No newline at end of file diff --git a/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature b/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature index f9c33005..7afd39a0 100644 --- a/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature +++ b/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature @@ -87,10 +87,10 @@ Background: | Test Estate 1 | Voucher | Hospital 1 Contract | 10 KES | 10 KES | | Voucher | | Test Estate 1 | PataPawa PostPay | PataPawa PostPay Contract | Post Pay Bill Pay | Bill Pay (Post) | | BillPayment | | Test Estate 1 | PataPawa PrePay | PataPawa PrePay Contract | Pre Pay Bill Pay | Bill Pay (Pre) | | BillPayment | - | Test Estate 1 | AgencyBanking | AgencyBanking Contract | Balance Enquiry | Balance Enquiry | | MobileTopup | - | Test Estate 1 | AgencyBanking | AgencyBanking Contract | Deposit | Deposit | | MobileTopup | - | Test Estate 1 | AgencyBanking | AgencyBanking Contract | Withdrawal | Withdrawal | | MobileTopup | - | Test Estate 1 | AgencyBanking | AgencyBanking Contract | MiniStatement | Mini Statement | | MobileTopup | + | Test Estate 1 | AgencyBanking | AgencyBanking Contract | Balance Enquiry | Balance Enquiry | | AgencyBanking | + | Test Estate 1 | AgencyBanking | AgencyBanking Contract | Deposit | Deposit | | AgencyBanking | + | Test Estate 1 | AgencyBanking | AgencyBanking Contract | Withdrawal | Withdrawal | | AgencyBanking | + | Test Estate 1 | AgencyBanking | AgencyBanking Contract | MiniStatement | Mini Statement | | AgencyBanking | When I add the following Transaction Fees | EstateName | OperatorName | ContractDescription | ProductName | CalculationType | FeeDescription | Value | diff --git a/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature.cs b/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature.cs index fb909f3a..6500ce5a 100644 --- a/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature.cs +++ b/TransactionProcessor.IntegrationTests/Features/SaleTransactionFeature.feature.cs @@ -396,7 +396,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Balance Enquiry", "Balance Enquiry", "", - "MobileTopup"}); + "AgencyBanking"}); table154.AddRow(new string[] { "Test Estate 1", "AgencyBanking", @@ -404,7 +404,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Deposit", "Deposit", "", - "MobileTopup"}); + "AgencyBanking"}); table154.AddRow(new string[] { "Test Estate 1", "AgencyBanking", @@ -412,7 +412,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "Withdrawal", "Withdrawal", "", - "MobileTopup"}); + "AgencyBanking"}); table154.AddRow(new string[] { "Test Estate 1", "AgencyBanking", @@ -420,7 +420,7 @@ await testRunner.GivenAsync("I have a token to access the estate management and "MiniStatement", "Mini Statement", "", - "MobileTopup"}); + "AgencyBanking"}); #line 84 await testRunner.WhenAsync("I create the following Products", ((string)(null)), table154, "When "); #line hidden diff --git a/TransactionProcessor.Models/Contract/ProductType.cs b/TransactionProcessor.Models/Contract/ProductType.cs index 3cc504f4..37919148 100644 --- a/TransactionProcessor.Models/Contract/ProductType.cs +++ b/TransactionProcessor.Models/Contract/ProductType.cs @@ -5,5 +5,6 @@ public enum ProductType NotSet =0, MobileTopup, Voucher, - BillPayment + BillPayment, + AgencyBanking } \ No newline at end of file