From cf623a30e10d2809cc8e5bda226cc30219facdd3 Mon Sep 17 00:00:00 2001 From: Md Asif Date: Wed, 18 Sep 2024 10:23:56 +0530 Subject: [PATCH] Implemented logic to send transaction to C-EDGE servers and process response. --- .idea/dataSources.xml | 13 ++ .idea/gradle.xml | 1 + build.gradle.kts | 2 + src/main/kotlin/Main.kt | 25 +- src/main/kotlin/NeftQueueProcessor.kt | 78 +++++++ src/main/kotlin/TransactionExecutor.kt | 33 +-- src/main/kotlin/TransactionFactory.kt | 16 +- src/main/kotlin/TransactionResponse.kt | 11 - src/main/kotlin/dao/TellerDao.kt | 74 +++--- src/main/kotlin/dao/TransactionDao.kt | 213 ++++++++++++++---- src/main/kotlin/model/NeftTransaction.kt | 5 +- src/main/kotlin/model/Transaction.kt | 1 + src/main/kotlin/model/TransactionRequest.kt | 7 +- src/main/kotlin/model/TransferTransaction.kt | 4 +- .../kotlin/{ => response}/ResponseData.kt | 8 +- .../response/TransactionFailureResponse.kt | 12 + .../kotlin/response/TransactionResponse.kt | 7 + .../response/TransactionSuccessResponse.kt | 11 + 18 files changed, 378 insertions(+), 143 deletions(-) create mode 100644 src/main/kotlin/NeftQueueProcessor.kt delete mode 100644 src/main/kotlin/TransactionResponse.kt rename src/main/kotlin/{ => response}/ResponseData.kt (71%) create mode 100644 src/main/kotlin/response/TransactionFailureResponse.kt create mode 100644 src/main/kotlin/response/TransactionResponse.kt create mode 100644 src/main/kotlin/response/TransactionSuccessResponse.kt diff --git a/.idea/dataSources.xml b/.idea/dataSources.xml index aa13dbe..c867d03 100644 --- a/.idea/dataSources.xml +++ b/.idea/dataSources.xml @@ -15,5 +15,18 @@ $ProjectFileDir$ + + oracle.19 + true + false + oracle.jdbc.OracleDriver + jdbc:oracle:thin:@localhost:1521:IPKSDB + + + + + + $ProjectFileDir$ + \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 14746e7..2a65317 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -1,5 +1,6 @@ +