From c0ad87fc7ff31de20defad5cd577f09f2449092d Mon Sep 17 00:00:00 2001 From: sriramv Date: Wed, 9 Mar 2022 17:04:06 +0530 Subject: [PATCH] merge:GWM --- .../entity.applicant.controller.js | 4 + app/routes/routes.js | 205 ++++++++++++++++++ 2 files changed, 209 insertions(+) diff --git a/app/controllers/entity.applicant.controller.js b/app/controllers/entity.applicant.controller.js index da62502..0da98b8 100644 --- a/app/controllers/entity.applicant.controller.js +++ b/app/controllers/entity.applicant.controller.js @@ -517,3 +517,7 @@ exports.TradeReferencesList = async (req, res) => }; + + + + diff --git a/app/routes/routes.js b/app/routes/routes.js index 56aac8c..362cb4d 100644 --- a/app/routes/routes.js +++ b/app/routes/routes.js @@ -534,6 +534,211 @@ router.post("/updateEntityDetails", Entitycontroller.updateEntityDetails); // Create new Applicant and it's child Details (Relationship, Address, Property ownership) +/** +* @swagger +* definitions: +* createApplicantDetails: +* type: object +* properties: +* loan_no_id: +* type: integer +* description: +* example: 1 +* name: +* type: string +* description: +* example: kumar +* entity_type: +* type: string +* description: +* example: Individual +* designation: +* type: string +* description: +* example: Proprietor +* ownership_share_in_the_entity: +* type: integer +* description: +* example: 1 +* applicant_type: +* type: string +* description: +* example: Guarantor +* key_promoter: +* type: string +* description: +* example: Yes +* bureau_name: +* type: string +* description: +* example: CRIF High Mark +* bureau_score: +* type: integer +* description: +* example: NULL +* heir_in_business_and_on_loan_struct: +* type: string +* description: +* example: Yes +* nri: +* type: integer +* description: +* example: Yes +* createdby: +* type: integer +* description: +* example: 003 +* applicant_relationship: +* type: application/json +* description: +* example: +* schema: +* $ref: '#/definitions/applicant_relationship' +*/ + + +/** +* @swagger +* definitions: +* applicant_relationship: +* type: object +* properties: +* name_of_the_individual: +* type: string +* description: +* example: kumar +* related_to: +* type: string +* description: +* example: gowtham +* relationship: +* type: string +* description: +* example: Brother +* is_main_person_running_the_business: +* type: string +* description: No +* example: kumar +* no_of_years_in_this_entity: +* type: integer +* description: +* example: 3 +* no_of_years_in_same_line_of_buss: +* type: integer +* description: +* example: 5 +* dob: +* type: date +* description: +* example: 1996-06-04 +* age: +* type: integer +* description: +* example: 25 +* gender: +* type: string +* description: +* example: Male +* remarks: +* type: string +* description: +* example: Nothing +* createdby: +* type: integer +* description: +* example: 003 +*/ + + +/** +* @swagger +* definitions: +* residence_address: +* type: object +* properties: +* name_of_the_individual: +* type: string +* description: +* example: kumar +* residence_address: +* type: string +* description: +* example: Chennai +* residence_geo_limit_compliance: +* type: string +* description: +* example: Within Geo-Limits +* residence_location_area: +* type: string +* description: No +* example: Positive Area +* ownership_status: +* type: string +* description: +* example: Owned +* residence_stay_period_in_years: +* type: integer +* description: +* example: 5 +* residence_stay_period_in_bracket: +* type: date +* description: +* example: '> = 1 Yr' +* remarks: +* type: string +* description: +* example: Nothing +* createdby: +* type: integer +* description: +* example: 003 +*/ + + +/** +* @swagger +* definitions: +* property_ownership_income_considered: +* type: object +* properties: +* name_of_the_loan_applicants: +* type: string +* description: +* example: kumar +* applicant_type: +* type: string +* description: +* example: Guarantor +* income_considered: +* type: string +* description: +* example: Yes +* property_owner: +* type: string +* description: Yes +* createdby: +* type: integer +* description: +* example: 003 +*/ + +/** +* @swagger +* /api/createApplicantDetails: +* post: +* summary: create ApplicantDetails Details +* description: create Applicants Details and relationship/residenceAddress and property_ownership_income_considered +* requestBody: +* content: +* application/json: +* schema: +* $ref: '#/definitions/createApplicantDetails' +* responses: +* 200: +* description: New ApplicantDetails created +* 500: +* description: failure in creating ApplicantDetails +*/ router.post("/createApplicantDetails", Entitycontroller.createApplicantDetails);