diff --git a/app/api/services/repayment.py b/app/api/services/repayment.py index a8d5738..1aff386 100644 --- a/app/api/services/repayment.py +++ b/app/api/services/repayment.py @@ -24,9 +24,11 @@ class RepaymentService: # Simulated processing logic response_data = { - "repayment_id": "67890", - "status": "Paid", - "amount": validated_data.get("amount", 0), # Example: Use validated field + "customerId": "CN621868", + "productId": "101", + "debtId": "273194670", + "resultCode": "00", + "resultDescription": "Successful" } # return ResponseHelper.success( diff --git a/app/swagger/paths/CustomerConsent.json b/app/swagger/paths/CustomerConsent.json index dafbf04..c6da51c 100644 --- a/app/swagger/paths/CustomerConsent.json +++ b/app/swagger/paths/CustomerConsent.json @@ -43,7 +43,10 @@ } }, "400": { - "description": "Invalid request" + "description": "Invalid request parameters" + }, + "422": { + "description": "Validation exception" }, "500": { "description": "Internal server error" diff --git a/app/swagger/paths/EligibilityCheck.json b/app/swagger/paths/EligibilityCheck.json index b5dbcb4..9afbf64 100644 --- a/app/swagger/paths/EligibilityCheck.json +++ b/app/swagger/paths/EligibilityCheck.json @@ -44,10 +44,13 @@ } }, "400": { - "description": "Invalid ID supplied" + "description": "Invalid request parameters" }, "422": { "description": "Validation exception" + }, + "500": { + "description": "Internal server error" } } } diff --git a/app/swagger/paths/LoanStatus.json b/app/swagger/paths/LoanStatus.json index ee1b633..fbfd0c4 100644 --- a/app/swagger/paths/LoanStatus.json +++ b/app/swagger/paths/LoanStatus.json @@ -44,13 +44,13 @@ } }, "400": { - "description": "Invalid ID supplied" - }, - "404": { - "description": "Loan not found" + "description": "Invalid request parameters" }, "422": { "description": "Validation exception" + }, + "500": { + "description": "Internal server error" } } } diff --git a/app/swagger/paths/NotificationCallback.json b/app/swagger/paths/NotificationCallback.json index d241e1e..ed902ef 100644 --- a/app/swagger/paths/NotificationCallback.json +++ b/app/swagger/paths/NotificationCallback.json @@ -43,14 +43,14 @@ } } }, - "400": { - "description": "Invalid ID supplied" - }, - "404": { - "description": "Loan not found" + "400": { + "description": "Invalid request parameters" }, "422": { "description": "Validation exception" + }, + "500": { + "description": "Internal server error" } } } diff --git a/app/swagger/paths/ProvideLoan.json b/app/swagger/paths/ProvideLoan.json index a201879..5c2a4e7 100644 --- a/app/swagger/paths/ProvideLoan.json +++ b/app/swagger/paths/ProvideLoan.json @@ -44,10 +44,13 @@ } }, "400": { - "description": "Invalid ID supplied" + "description": "Invalid request parameters" }, "422": { "description": "Validation exception" + }, + "500": { + "description": "Internal server error" } } } diff --git a/app/swagger/paths/Repayment.json b/app/swagger/paths/Repayment.json index e0c0878..68fafa5 100644 --- a/app/swagger/paths/Repayment.json +++ b/app/swagger/paths/Repayment.json @@ -43,7 +43,10 @@ } }, "400": { - "description": "Invalid request" + "description": "Invalid request parameters" + }, + "422": { + "description": "Validation exception" }, "500": { "description": "Internal server error" diff --git a/app/swagger/paths/SelectOffer.json b/app/swagger/paths/SelectOffer.json index e83dd23..4c7069d 100644 --- a/app/swagger/paths/SelectOffer.json +++ b/app/swagger/paths/SelectOffer.json @@ -44,13 +44,13 @@ } }, "400": { - "description": "Invalid ID supplied" - }, - "404": { - "description": "Offers not found" + "description": "Invalid request parameters" }, "422": { "description": "Validation exception" + }, + "500": { + "description": "Internal server error" } } }