merge:GWM

This commit is contained in:
sriramv 2022-03-09 17:04:06 +05:30
parent bdcbbdc67f
commit c0ad87fc7f
2 changed files with 209 additions and 0 deletions

View File

@ -517,3 +517,7 @@ exports.TradeReferencesList = async (req, res) =>
};

View File

@ -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);