added mugberia dccb code and teller list
This commit is contained in:
@@ -8,7 +8,7 @@ import net.ipksindia.model.TransferTransaction
|
||||
import java.time.format.DateTimeFormatter
|
||||
|
||||
class TransactionFactory(private val transactionRequest: TransactionRequest, private val teller: Teller) {
|
||||
private val bankDccbToSftpMap = mutableMapOf("0015" to "0005", "0003" to "0021", "0013" to "0016")
|
||||
private val bankDccbToSftpMap = mutableMapOf("0015" to "0005", "0003" to "0021", "0013" to "0016", "0011" to "0018")
|
||||
private val date = transactionRequest.date.format(DateTimeFormatter.ofPattern("dd-MM-yyyy"))
|
||||
private val rrn = transactionRequest.date.format(DateTimeFormatter.ofPattern("ddMM")) + transactionRequest.transactionNumber.takeLast(4)
|
||||
|
||||
@@ -91,4 +91,4 @@ class TransactionFactory(private val transactionRequest: TransactionRequest, pri
|
||||
fun createTransactionPair(): Pair<TransferTransaction, NeftTransaction> {
|
||||
return Pair(createTransferTransaction(), createNEFTTransaction())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -44,13 +44,28 @@ class TellerDao {
|
||||
"00022" to "1234",
|
||||
"00026" to "11126"
|
||||
),
|
||||
"0016" to mapOf(
|
||||
"0013" to mapOf(
|
||||
"00101" to "500",
|
||||
"00102" to "502",
|
||||
"00103" to "503",
|
||||
"00106" to "506",
|
||||
"00107" to "507"
|
||||
)
|
||||
),
|
||||
"0011" to mapOf(
|
||||
"00002" to "24",
|
||||
"00008" to "30",
|
||||
"00003" to "25",
|
||||
"00011" to "33",
|
||||
"00010" to "1234",
|
||||
"00012" to "34",
|
||||
"00009" to "5",
|
||||
"00006" to "28",
|
||||
"00004" to "26",
|
||||
"00021" to "1234",
|
||||
"00005" to "27",
|
||||
"00007" to "29",
|
||||
"00001" to "23"
|
||||
)
|
||||
)
|
||||
|
||||
fun getTeller(dccbCode: String, branchCode: String): Teller {
|
||||
@@ -62,4 +77,4 @@ class TellerDao {
|
||||
return teller
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -14,5 +14,5 @@ bank {
|
||||
rootRoute = "IPKS_Queue_Generation"
|
||||
transactionRoute = "IpksApi"
|
||||
}
|
||||
codes = ["0003", "0015", "0013"]
|
||||
}
|
||||
codes = ["0003", "0015", "0013", "0011"]
|
||||
}
|
||||
|
Reference in New Issue
Block a user