Fix emulator data
This commit is contained in:
@@ -26,25 +26,15 @@ class RACCheckService:
|
||||
validated_data = schema.load(data)
|
||||
|
||||
# Simulated RAC check logic — create racResponse manually or via logic
|
||||
# rac_response = {
|
||||
# "hasSalaryAccount": True,
|
||||
# "bvnValidated": True,
|
||||
# "creditBureauCheck": False,
|
||||
# "crmsCheck": True,
|
||||
# "accountStatus": True,
|
||||
# "hasLien": False,
|
||||
# "noBouncedCheck": True,
|
||||
# "isWhitelisted": True,
|
||||
# "hasPastDueLoan": False
|
||||
# }
|
||||
|
||||
# random_float = random.random() # temporary to play data
|
||||
|
||||
rac_response = {
|
||||
"PROCESS_DATE": datetime.strptime("2025-06-05", "%Y-%m-%d").date(),
|
||||
"CIF_ID": "123456789",
|
||||
"CUSTOMER_id": "987654321",
|
||||
"SALACCT_1": "34567831",
|
||||
"CIF_ID": validated_data["transactionId"],
|
||||
"CUSTOMER_id": validated_data["customerId"],
|
||||
"SALACCT_1": validated_data["accountId"],
|
||||
"ALERT_PHONE": "2348031234567",
|
||||
"AVERAGE_SALARY": Decimal("50000"),
|
||||
"AVERAGE_SALARY": Decimal("1255000"),
|
||||
"LOAN_OUSTANDING_BAL": Decimal("0"),
|
||||
"EMI": Decimal("10000"),
|
||||
"ELIG_AMT": Decimal("25000"),
|
||||
@@ -64,12 +54,12 @@ class RACCheckService:
|
||||
"rule14-no-lien": True,
|
||||
"rule15-null-ignore": True,
|
||||
"OVERALL_ELIG": True,
|
||||
"SALARYPAYMENT_1": Decimal("50000"),
|
||||
"SALARYPAYMENT_2": Decimal("50000"),
|
||||
"SALARYPAYMENT_3": Decimal("50000"),
|
||||
"SALARYPAYMENT_4": Decimal("50000"),
|
||||
"SALARYPAYMENT_5": Decimal("50000"),
|
||||
"SALARYPAYMENT_6": Decimal("50000")
|
||||
"SALARYPAYMENT_1": Decimal("1255000"),
|
||||
"SALARYPAYMENT_2": Decimal("1255000"),
|
||||
"SALARYPAYMENT_3": Decimal("1255000"),
|
||||
"SALARYPAYMENT_4": Decimal("1255000"),
|
||||
"SALARYPAYMENT_5": Decimal("1255000"),
|
||||
"SALARYPAYMENT_6": Decimal("1255000")
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user