diff --git a/app/models/loan.py b/app/models/loan.py index 9309ae6..2af5711 100644 --- a/app/models/loan.py +++ b/app/models/loan.py @@ -161,13 +161,15 @@ class Loan(db.Model): loan = cls.query.filter(and_( cls.customer_id ==customer_id, cls.status=='active')).first() if not loan: - loan = { - "eligible_amount": 0, - "loan_amount": 0, - "customer_id": customer_id, - "transaction_id": "", - "resultDescription": "No Active Loan" - } + return None + # loan = { + # "original_transaction":"", + # "eligible_amount": 0, + # "loan_amount": 0, + # "customer_id": customer_id, + # "transaction_id": "", + # "resultDescription": "No Active Loan" + # } logger.info(f" get_customer_last_loan ==>>>> {loan}") return loan diff --git a/app/swagger/schemas/SelectOfferRequest.json b/app/swagger/schemas/SelectOfferRequest.json index e51bb99..0540a8e 100644 --- a/app/swagger/schemas/SelectOfferRequest.json +++ b/app/swagger/schemas/SelectOfferRequest.json @@ -28,7 +28,7 @@ }, "productId": { "type": "string", - "example": "2090" + "example": "3MPC" }, "offerId": { "type": "string", diff --git a/app/swagger/schemas/SelectOfferResponse.json b/app/swagger/schemas/SelectOfferResponse.json index 6fbc6ea..f32d39a 100644 --- a/app/swagger/schemas/SelectOfferResponse.json +++ b/app/swagger/schemas/SelectOfferResponse.json @@ -28,7 +28,7 @@ }, "productId": { "type": "string", - "example": "2030" + "example": "3MPC" }, "amount": { "type": "number",