Compare commits
4 Commits
migration-
...
master
Author | SHA1 | Date | |
---|---|---|---|
49b3072e12 | |||
b60ff9ef11 | |||
3f179fc9c9 | |||
8050f36311 |
@@ -8,7 +8,7 @@ import net.ipksindia.model.TransferTransaction
|
|||||||
import java.time.format.DateTimeFormatter
|
import java.time.format.DateTimeFormatter
|
||||||
|
|
||||||
class TransactionFactory(private val transactionRequest: TransactionRequest, private val teller: Teller) {
|
class TransactionFactory(private val transactionRequest: TransactionRequest, private val teller: Teller) {
|
||||||
private val bankDccbToSftpMap = mutableMapOf("0015" to "0005", "0003" to "0021", "0013" to "0016", "0011" to "0018")
|
private val bankDccbToSftpMap = mutableMapOf("0015" to "0005", "0003" to "0021", "0013" to "0016", "0011" to "0018", "0016" to "0001", "0004" to "0004", "0005" to "0007", "0017" to "0020")
|
||||||
private val date = transactionRequest.date.format(DateTimeFormatter.ofPattern("dd-MM-yyyy"))
|
private val date = transactionRequest.date.format(DateTimeFormatter.ofPattern("dd-MM-yyyy"))
|
||||||
private val rrn = transactionRequest.date.format(DateTimeFormatter.ofPattern("ddMM")) + transactionRequest.transactionNumber.takeLast(4)
|
private val rrn = transactionRequest.date.format(DateTimeFormatter.ofPattern("ddMM")) + transactionRequest.transactionNumber.takeLast(4)
|
||||||
|
|
||||||
|
@@ -65,7 +65,82 @@ class TellerDao {
|
|||||||
"00005" to "27",
|
"00005" to "27",
|
||||||
"00007" to "29",
|
"00007" to "29",
|
||||||
"00001" to "23"
|
"00001" to "23"
|
||||||
|
),
|
||||||
|
"0004" to mapOf(
|
||||||
|
"00101" to "901",
|
||||||
|
"00103" to "903",
|
||||||
|
"00104" to "904",
|
||||||
|
"00105" to "905",
|
||||||
|
"00106" to "906",
|
||||||
|
"00107" to "907",
|
||||||
|
"00108" to "908"
|
||||||
|
),
|
||||||
|
"0005" to mapOf(
|
||||||
|
"00001" to "901",
|
||||||
|
"00002" to "902",
|
||||||
|
"00003" to "903",
|
||||||
|
"00004" to "904",
|
||||||
|
"00005" to "905",
|
||||||
|
"00007" to "907",
|
||||||
|
"00008" to "908",
|
||||||
|
"00009" to "909"
|
||||||
|
),
|
||||||
|
"0016" to mapOf(
|
||||||
|
"00013" to "913",
|
||||||
|
"00032" to "932",
|
||||||
|
"00042" to "942",
|
||||||
|
"00043" to "943",
|
||||||
|
"00044" to "944",
|
||||||
|
"00045" to "945",
|
||||||
|
"00046" to "946",
|
||||||
|
"00047" to "947",
|
||||||
|
"00048" to "948",
|
||||||
|
"00049" to "949",
|
||||||
|
"00051" to "951",
|
||||||
|
"00052" to "952",
|
||||||
|
"00053" to "953",
|
||||||
|
"00054" to "954",
|
||||||
|
"00055" to "955",
|
||||||
|
"00057" to "957",
|
||||||
|
"00060" to "960",
|
||||||
|
"00062" to "962",
|
||||||
|
"00063" to "963",
|
||||||
|
"00066" to "966",
|
||||||
|
"00067" to "967"
|
||||||
|
),
|
||||||
|
"0017" to mapOf (
|
||||||
|
"00118" to "18",
|
||||||
|
"00127" to "027",
|
||||||
|
"00102" to "002",
|
||||||
|
"00112" to "12",
|
||||||
|
"00119" to "019",
|
||||||
|
"00126" to "026",
|
||||||
|
"00129" to "029",
|
||||||
|
"00103" to "003",
|
||||||
|
"00106" to "006",
|
||||||
|
"00115" to "015",
|
||||||
|
"00131" to "031",
|
||||||
|
"00120" to "20",
|
||||||
|
"00104" to "004",
|
||||||
|
"00125" to "025",
|
||||||
|
"00124" to "024",
|
||||||
|
"00110" to "010",
|
||||||
|
"00105" to "005",
|
||||||
|
"00123" to "023",
|
||||||
|
"00111" to "11",
|
||||||
|
"00135" to "35",
|
||||||
|
"00109" to "009",
|
||||||
|
"00101" to "001",
|
||||||
|
"00108" to "008",
|
||||||
|
"00121" to "021",
|
||||||
|
"00130" to "30",
|
||||||
|
"00116" to "016",
|
||||||
|
"00128" to "028",
|
||||||
|
"00113" to "013",
|
||||||
|
"00117" to "017",
|
||||||
|
"00132" to "032"
|
||||||
)
|
)
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
fun getTeller(dccbCode: String, branchCode: String): Teller {
|
fun getTeller(dccbCode: String, branchCode: String): Teller {
|
||||||
|
@@ -9,10 +9,10 @@ database {
|
|||||||
bank {
|
bank {
|
||||||
server {
|
server {
|
||||||
protocol = "https"
|
protocol = "https"
|
||||||
host = "180.179.110.185"
|
host = "142.79.249.123"
|
||||||
port = 443
|
port = 443
|
||||||
rootRoute = "IPKS_Queue_Generation"
|
rootRoute = "IPKS_Queue_Generation"
|
||||||
transactionRoute = "IpksApi"
|
transactionRoute = "IpksApi"
|
||||||
}
|
}
|
||||||
codes = ["0003", "0015", "0013", "0011"]
|
codes = ["0003", "0015", "0013", "0011", "0016", "0004", "0005", "0017"]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user