-
Notifications
You must be signed in to change notification settings - Fork 3
/
JSON format for Home Loan Application.txt
139 lines (112 loc) · 5.72 KB
/
JSON format for Home Loan Application.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
Procedure for the testing in postman
----> Add Admin,Finance and Land Verification Officer(Only once is enough)
---------------------------------------------------------------------------------------------------
ADMIN
---------------------------------------------------------------------------------------------------
Important:The role must be "admin" for this
--------------------------------------Json for Admin-----------------------------------------------
{
"password" : "admin123",
"role" : "admin",
"adminName" : "Ajay",
"adminContact" : 9066827212
}
---------------------------------------------------------------------------------------------------
FinanceOfficer
---------------------------------------------------------------------------------------------------
Important:The role must be "financeofficer" for this
--------------------------------------Json for Finance-----------------------------------------------
{
"password" : "finance@123",
"role" : "financeofficer",
"finOfficerName" : "Amisha",
"finOfficerContact" :9069999090
}
---------------------------------------------------------------------------------------------------
LandOfficer
---------------------------------------------------------------------------------------------------
Important:The role must be "landofficer" for this
--------------------------------------Json for Land-----------------------------------------------
{
"password" : "land@123",
"role" : "landofficer",
"officerName" : "Amrit",
"officerContact" :9055999090
}
---->Add Customer(multiple customer for multiple application)
Important:The role must be customer for this
--------------------------------------Json for Customer-----------------------------------------------
{
"password" : "awsedrfts@12",
"role" : "customer",
"customerName": "Karthik",
"mobileNumber": "9045457223",
"emailId": "himagani21@gmail.com",
"dateOfBirth": "2005-04-21",
"gender": "Female",
"nationality": "NRI",
"aadharNumber": "123456789123",
"panNumber": "1234567890"
}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
---->Add application
---------------------------------------------------------------------------------------------------------
Important:The user id should of the customer which is present in the DB
Important:Admin approval can be altered to false only if status is rejected.
--------------------------------------Json for Application-----------------------------------------------
{
"applicationDate" : "2021-05-31",
"customer" : {"userId" : 214},
"loanAppliedAmount" : 140000,
"adminApproval" : true,
"status" : "WAITING_FOR_FINANCE_APPROVAL"
}
---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
---->update application from financial verification officer
----------------------------------------------------------------------------------------------------------------------------
Important:The application id and user id should be present in the DB and sud be associated with each other.
Important:For approval,The finance verification can only be altered to false if only status is changed to as per the enums other than
WAITING_FOR_LAND_VERIFICATION_OFFICE_APPROVAL.Admin Approval is always true here
--------------------------------------Json for Finance----------------------------------------------------------------------
{
"applicationId": 216,
"applicationDate": "2021-05-31",
"customer":{"userId":214},
"loanAppliedAmount": 140000,
"loanApprovedAmount": 100000,
"financeVerificationApproval": true,
"adminApproval": true,
"status": "WAITING_FOR_LAND_VERIFICATION_OFFICE_APPROVAL"
}
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------
----->update application from land verification officer
----------------------------------------------------------------------------------------------------------------------------
Important:The application id and user id should be present in the DB and sud be associated with each other.
Important:For approval,The land verification can only be altered to false if only status is changed to as per the enums other than
APPROVED.admin & finance approval is always true.
--------------------------------------Json for Land--------------------------------------------------------------------------
{
"applicationId": 216,
"applicationDate": "2021-05-31",
"customer":{"userId":214},
"loanAppliedAmount": 140000,
"loanApprovedAmount": 100000,
"landVerificationApproval":true,
"financeVerificationApproval": true,
"adminApproval": true,
"status": "APPROVED"
}
------------------------------------------------------------------------------------------------------
----->insert values for agreement
------------------------------------------------------------------------------------------------------
Important:loanApplication Id sud be present in the db.
-------------------------------------Json for Agreement-----------------------------------------------
{
"loanApplicationId": 216
}