Migration of more banks 0001, 0004, 0007
This commit is contained in:
@@ -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")
|
||||||
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)
|
||||||
|
|
||||||
|
@@ -51,21 +51,63 @@ class TellerDao {
|
|||||||
"00106" to "506",
|
"00106" to "506",
|
||||||
"00107" to "507"
|
"00107" to "507"
|
||||||
),
|
),
|
||||||
"0011" to mapOf(
|
"0011" to mapOf(
|
||||||
"00002" to "24",
|
"00002" to "24",
|
||||||
"00008" to "30",
|
"00008" to "30",
|
||||||
"00003" to "25",
|
"00003" to "25",
|
||||||
"00011" to "33",
|
"00011" to "33",
|
||||||
"00010" to "1234",
|
"00010" to "1234",
|
||||||
"00012" to "34",
|
"00012" to "34",
|
||||||
"00009" to "5",
|
"00009" to "5",
|
||||||
"00006" to "28",
|
"00006" to "28",
|
||||||
"00004" to "26",
|
"00004" to "26",
|
||||||
"00021" to "1234",
|
"00021" to "1234",
|
||||||
"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"
|
||||||
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
fun getTeller(dccbCode: String, branchCode: String): Teller {
|
fun getTeller(dccbCode: String, branchCode: String): Teller {
|
||||||
|
@@ -14,5 +14,5 @@ bank {
|
|||||||
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"]
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user