changed amount to salaryAmount

This commit was merged in pull request #28.
This commit is contained in:
Chinenye Nmoh
2025-06-20 13:49:10 +01:00
parent bcd9513a10
commit 79b22e6d4f
4 changed files with 16 additions and 18 deletions
+9 -15
View File
@@ -183,23 +183,17 @@ class SimbrellaClient:
# InitiatedBy = USER_INITIATED
logger.info(f"Calling CollectLoan collect_loan_user_initiated ******* endpoint with data: {data}")
return SimbrellaClient._collect_loan(data,"1")
@staticmethod
def collect_loan_user_salary_detect(data):
#InitiatedBy = SALARY_DETECT
# logger.info(f"salary data: {data}")
# try:
# salary = SalaryService.add_salary_data(data)
# if salary:
# return ResponseHelper.success(salary.to_dict(), "Successful")
#
# except Exception as e:
# logger.info(f"Failed to save salary: {e}")
# return ResponseHelper.error(message="Failed to call salary endpoint",
# status_code=400,
# error=str(e) )
return SimbrellaClient._collect_loan(data,"2")
try:
return SimbrellaClient._collect_loan(data, "2")
except Exception as e:
logger.error(f"Error in collect_loan_user_salary_detect: {e}")
return ResponseHelper.error(
message="Failed to collect loan for salary detection",
status_code=500,
error=str(e)
)
@staticmethod