diff --git a/app/controllers/obligation.controller.js b/app/controllers/obligation.controller.js index b88bcba..f5157cc 100644 --- a/app/controllers/obligation.controller.js +++ b/app/controllers/obligation.controller.js @@ -96,7 +96,7 @@ exports.CreateObligationBankStatement = async (req, res) => } //end of try catch }; -// update bank statement ( is_active = 0) then create new bank statement +// update Obligation Bank Statement exports.UpdateObligationBankStatement = async (req, res) => { try @@ -180,7 +180,7 @@ exports.CreateObligationEmiTrackingMonth = async (req, res) => }; -// update EMi Tracking ( is_active = 0) then create new bank statement +// update EMi Tracking exports.UpdateObligationEmiTracking = async (req, res) => { try @@ -262,8 +262,8 @@ exports.CreateRepaymentTrackRecordMaster = async (req, res) => }; -// update and create new RepaymentTrackRecordMaster -exports.UpdateRepaymentTrackRecordMaster = async (req, res) => +// updat RepaymentTrackRecord +exports.UpdateRepaymentTrackRecord = async (req, res) => { try { diff --git a/app/routes/routes.js b/app/routes/routes.js index a775f41..11f1445 100644 --- a/app/routes/routes.js +++ b/app/routes/routes.js @@ -238,128 +238,130 @@ router.post("/createObligationMaster",Mycontroller.CreateObligationMaster) * @swagger * definitions: * updateObligationBankStatement: -* type: object -* properties: -* id: -* type: integer -* description: id -* example: 1 -* los_id: -* type: string -* description: losid -* example: 123ab -* lender: -* type: string -* description: lender -* example: name -* loan_type: -* type: string -* description: loantype -* example: Credit Card -* loan_availed_sanctioned_amount: -* type: integer -* description: loanAvailedSanctionedAmount -* example: 10000 -* name_of_bank: -* type: string -* description: bankName -* example: sbi -* loan_in_name_of_ac_type: -* type: string -* description: nameOfAcType -* example: Applicant -* loan_ownership_status: -* type: string -* description: LoanOwnershipStatus -* example: Joint -* roi: -* type: string -* description: roi -* example: 10% -* avg_peak_util_of_the_OD_or_CC: -* type: string -* description: avgPeakUtilOfTheOD_or_CC -* example: abc -* nature_of_loan: -* type: string -* description: natureOfLoan -* example: Unsecured -* loan_identification_source: -* type: string -* description: loanIdentificationSource -* example: Credit Bureau Report -* sanction_date: -* type: string -* description: sanctionDate -* example: "10-2-2020" -* principal_outstanding: -* type: integer -* description: principalOutstanding -* example: 1 -* monthly_oblig: -* type: integer -* description: monthlyOblig -* example: 1 -* total_loan_tenure_months: -* type: integer -* description: totalLoanTenureMonths -* example: 1 -* no_of_instalments_paid: -* type: integer -* description: noOfInstalmentsPaid -* example: 1 -* balance_tenor_months: -* type: integer -* description: balanceTenorMonths -* example: 1 -* loan_status_or_remarks: -* type: string -* description: loanStatusOrRemarks -* example: Positive -* consider_in_oblig: -* type: string -* description: considerInOblig -* example: No -* reason_for_not_considering_in_oblig: -* type: string -* description: reasonForNotConsideringInOblig -* example: Already Closed -* charge_filed_with_roc: -* type: string -* description: chargeFiledWithRoc -* example: Yes -* emi_tracking_month_1: -* type: integer -* description: emiTrackingMonth_1 -* example: 1 -* emi_tracking_month_2: -* type: integer -* description: emiTrackingMonth_2 -* example: 1 -* emi_tracking_month_3: -* type: integer -* description: emiTrackingMonth_3 -* example: 1 -* emi_tracking_month_4: -* type: integer -* description: emiTrackingMonth_4 -* example: 1 -* emi_tracking_month_5: -* type: integer -* description: emiTrackingMonth_5 -* example: 1 -* emi_tracking_month_6: -* type: integer -* description: emiTrackingMonth_6 -* example: 1 -* item_order: -* type: integer -* description: ordering key -* example: 1 -* is_active: -* type: integer -* description: isActive -* example: 1 +* type: array +* items: +* type: object +* properties: +* id: +* type: integer +* description: id +* example: 1 +* los_id: +* type: string +* description: losid +* example: 123ab +* lender: +* type: string +* description: lender +* example: name +* loan_type: +* type: string +* description: loantype +* example: Credit Card +* loan_availed_sanctioned_amount: +* type: integer +* description: loanAvailedSanctionedAmount +* example: 10000 +* name_of_bank: +* type: string +* description: bankName +* example: sbi +* loan_in_name_of_ac_type: +* type: string +* description: nameOfAcType +* example: Applicant +* loan_ownership_status: +* type: string +* description: LoanOwnershipStatus +* example: Joint +* roi: +* type: string +* description: roi +* example: 10% +* avg_peak_util_of_the_OD_or_CC: +* type: string +* description: avgPeakUtilOfTheOD_or_CC +* example: abc +* nature_of_loan: +* type: string +* description: natureOfLoan +* example: Unsecured +* loan_identification_source: +* type: string +* description: loanIdentificationSource +* example: Credit Bureau Report +* sanction_date: +* type: string +* description: sanctionDate +* example: "10-2-2020" +* principal_outstanding: +* type: integer +* description: principalOutstanding +* example: 1 +* monthly_oblig: +* type: integer +* description: monthlyOblig +* example: 1 +* total_loan_tenure_months: +* type: integer +* description: totalLoanTenureMonths +* example: 1 +* no_of_instalments_paid: +* type: integer +* description: noOfInstalmentsPaid +* example: 1 +* balance_tenor_months: +* type: integer +* description: balanceTenorMonths +* example: 1 +* loan_status_or_remarks: +* type: string +* description: loanStatusOrRemarks +* example: Positive +* consider_in_oblig: +* type: string +* description: considerInOblig +* example: No +* reason_for_not_considering_in_oblig: +* type: string +* description: reasonForNotConsideringInOblig +* example: Already Closed +* charge_filed_with_roc: +* type: string +* description: chargeFiledWithRoc +* example: Yes +* emi_tracking_month_1: +* type: integer +* description: emiTrackingMonth_1 +* example: 1 +* emi_tracking_month_2: +* type: integer +* description: emiTrackingMonth_2 +* example: 1 +* emi_tracking_month_3: +* type: integer +* description: emiTrackingMonth_3 +* example: 1 +* emi_tracking_month_4: +* type: integer +* description: emiTrackingMonth_4 +* example: 1 +* emi_tracking_month_5: +* type: integer +* description: emiTrackingMonth_5 +* example: 1 +* emi_tracking_month_6: +* type: integer +* description: emiTrackingMonth_6 +* example: 1 +* item_order: +* type: integer +* description: ordering key +* example: 1 +* is_active: +* type: integer +* description: isActive +* example: 1 */ /** * @swagger @@ -584,65 +586,67 @@ router.get("/getRepaymentTrackRecordMaster",Mycontroller.RepaymentTrackRecordMas router.post("/createRepaymentTrackRecordMaster",Mycontroller.CreateRepaymentTrackRecordMaster) -// update Obligation Emi Tracking +// Update Repayment Track Record /** * @swagger * definitions: -* updateRepaymentTrackRecordMaster: -* type: object -* properties: -* id: -* type: integer -* description: id -* example: 1 -* los_id: -* type: string -* description: los_id -* example: 123abc -* program: -* type: string -* description: result -* example: banking_and_gst -* track_record_items_key: -* type: string -* description: track record items -* example: "bounce_in_last_6_months" -* value: -* type: string -* description: value -* example: Nil -* sub_value: -* type: string -* description: sub value -* example: Paid Within 5 days -* result: -* type: string -* description: result -* example: No Deviation -* is_active: -* type: integer -* description: isActive -* example: 1 +* UpdateRepaymentTrackRecord: +* type: array +* items: +* type: object +* properties: +* id: +* type: integer +* description: id +* example: 1 +* los_id: +* type: string +* description: los_id +* example: 123abc +* program: +* type: string +* description: result +* example: banking_and_gst +* track_record_items_key: +* type: string +* description: track record items +* example: "bounce_in_last_6_months" +* value: +* type: string +* description: value +* example: Nil +* sub_value: +* type: string +* description: sub value +* example: Paid Within 5 days +* result: +* type: string +* description: result +* example: No Deviation +* is_active: +* type: integer +* description: isActive +* example: 1 */ /** * @swagger -* /api/updateRepaymentTrackRecordMaster: +* /api/UpdateRepaymentTrackRecord: * post: -* summary: update Repayment TrackRecord Master details -* description: update a Repayment TrackRecord Master +* summary: update Repayment TrackRecord details +* description: update a Repayment TrackRecord * requestBody: * content: * application/json: * schema: -* $ref: '#/definitions/updateRepaymentTrackRecordMaster' +* $ref: '#/definitions/UpdateRepaymentTrackRecord' * responses: * 200: * description: update Repayment TrackRecord Master * 500: * description: failure in inserting Repayment TrackRecord Master */ -router.post("/updateRepaymentTrackRecordMaster",Mycontroller.UpdateRepaymentTrackRecordMaster) +router.post("/UpdateRepaymentTrackRecord",Mycontroller.UpdateRepaymentTrackRecord) // get Obligation burear bankstatement