Added Call Paths
This commit is contained in:
@@ -178,7 +178,22 @@ class SimbrellaClient:
|
||||
return 0
|
||||
|
||||
@staticmethod
|
||||
def collect_loan(data):
|
||||
def collect_loan_user_initiated(data):
|
||||
# InitiatedBy = USER_INITIATED
|
||||
return SimbrellaClient._collect_loan(data)
|
||||
|
||||
@staticmethod
|
||||
def collect_loan_user_salary_detect(data):
|
||||
#InitiatedBy = SALARY_DETECT
|
||||
return SimbrellaClient._collect_loan(data)
|
||||
|
||||
@staticmethod
|
||||
def collect_loan_user_due_payment(data):
|
||||
# InitiatedBy = REPAYMENT_DUE
|
||||
return SimbrellaClient._collect_loan(data)
|
||||
|
||||
@staticmethod
|
||||
def _collect_loan(data):
|
||||
api_url = f"{SimbrellaClient.BANK_CALL_BASE_URL}{SimbrellaClient.BANK_CALL_COLLECT_LOAN_ENDPOINT}"
|
||||
logger.info(f"Calling CollectLoan api_url==> : {api_url}")
|
||||
logger.info(f"Calling CollectLoan endpoint with data: {data}")
|
||||
|
||||
Reference in New Issue
Block a user