config changes
This commit is contained in:
BIN
db/__pycache__/__init__.cpython-39.pyc
Normal file
BIN
db/__pycache__/__init__.cpython-39.pyc
Normal file
Binary file not shown.
BIN
db/__pycache__/models.cpython-39.pyc
Normal file
BIN
db/__pycache__/models.cpython-39.pyc
Normal file
Binary file not shown.
BIN
db/__pycache__/oracle_connector.cpython-39.pyc
Normal file
BIN
db/__pycache__/oracle_connector.cpython-39.pyc
Normal file
Binary file not shown.
BIN
db/__pycache__/repository.cpython-39.pyc
Normal file
BIN
db/__pycache__/repository.cpython-39.pyc
Normal file
Binary file not shown.
@@ -32,11 +32,13 @@ class NEFTInwardRecord:
|
||||
reject_reason: str # VARCHAR2(400)
|
||||
benef_address: str # VARCHAR2(400)
|
||||
msg_type: str # VARCHAR2(400)
|
||||
bank_code: str
|
||||
|
||||
def to_dict(self):
|
||||
"""Convert to dictionary for DB insertion."""
|
||||
return {
|
||||
"TXNIND": self.txnind,
|
||||
"BANKCODE": self.bank_code,
|
||||
"JRNL_ID": self.jrnl_id,
|
||||
"REF_NO": self.ref_no,
|
||||
"TXN_DATE": self.txn_date,
|
||||
|
||||
@@ -48,6 +48,7 @@ class Repository:
|
||||
INSERT INTO inward_neft_api_log (
|
||||
TXNIND,
|
||||
JRNL_ID,
|
||||
BANKCODE,
|
||||
REF_NO,
|
||||
TXN_DATE,
|
||||
TXN_AMT,
|
||||
@@ -67,6 +68,7 @@ class Repository:
|
||||
) VALUES (
|
||||
:TXNIND,
|
||||
:JRNL_ID,
|
||||
:BANKCODE,
|
||||
:REF_NO,
|
||||
:TXN_DATE,
|
||||
:TXN_AMT,
|
||||
@@ -296,4 +298,4 @@ class Repository:
|
||||
finally:
|
||||
if cursor:
|
||||
cursor.close()
|
||||
conn.close()
|
||||
conn.close()
|
||||
|
||||
Reference in New Issue
Block a user