This commit is contained in:
Azeez Muibi
2025-04-13 23:58:02 +01:00
parent 6f5b95771f
commit c00bc3ddbf
9 changed files with 563 additions and 53 deletions
+7 -3
View File
@@ -62,16 +62,20 @@ def get_loans():
filters = {
'customer_id': request.args.get('customer_id'),
'account_id': request.args.get('account_id'),
'offer_id': request.args.get('offer_id'),
'status': request.args.get('status'),
'offer_id': request.args.get('offer_id'),
'product_id': request.args.get('product_id'),
'start_date': request.args.get('start_date'),
'end_date': request.args.get('end_date')
'end_date': request.args.get('end_date'),
'due_before': request.args.get('due_before'),
'due_after': request.args.get('due_after')
}
# logger.info(f"Get loans request received with filters: {filters}")
response = LoanService.process_request(filters)
return response
# Authorize endpoint
@api.route("/Authorize", methods=["POST"])
def authorize():
@@ -88,4 +92,4 @@ def refresh():
data = request.get_json()
# logger.info(f"Authorize refresh request received: {data}")
response = AuthorizationService.process_refresh_request()
return response
return response