@stashfin/grpc 1.0.33 → 1.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +74 -0
- package/package.json +1 -1
- package/src/proto/customers/getbankaccountdetails.proto +11 -0
- package/src/proto/customers/getbasicinfo.proto +14 -0
- package/src/proto/customers/getcustomerbyid.proto +30 -0
- package/src/proto/customers/getdashboard.proto +46 -0
- package/src/proto/customers/getdashboardmaincard.proto +37 -0
- package/src/proto/customers/getprofessionalinfo.proto +13 -0
- package/src/proto/customers/getprofile.proto +13 -0
- package/src/proto/customers/getstep.proto +32 -0
- package/src/proto/customers/profilebasic.proto +14 -0
- package/src/proto/customers/profileupdatetnc.proto +11 -0
- package/src/proto/customers/sendemailtoken.proto +11 -0
- package/src/proto/customers/sendotp.proto +14 -0
- package/src/proto/customers/setmpin.proto +12 -0
- package/src/proto/customers/step1.proto +32 -0
- package/src/proto/customers/step10.proto +34 -0
- package/src/proto/customers/step2.proto +28 -0
- package/src/proto/customers/step7.proto +29 -0
- package/src/proto/customers/step8.proto +30 -0
- package/src/proto/customers/step9.proto +36 -0
- package/src/proto/customers/stepstatic.proto +27 -0
- package/src/proto/customers/verifyemail.proto +11 -0
- package/src/proto/customers/verifympin.proto +13 -0
- package/src/proto/customers/verifyotp.proto +17 -0
- package/src/proto/customers.proto +57 -0
- package/src/proto/example.proto +20 -0
- package/src/proto/loans/approveloan.proto +15 -0
- package/src/proto/loans/banklist.proto +15 -0
- package/src/proto/loans/calculateemi.proto +15 -0
- package/src/proto/loans/creditlimit.proto +10 -0
- package/src/proto/loans/updateinstallments.proto +19 -0
- package/src/proto/loans/updateloan.proto +15 -0
- package/src/proto/loans.proto +19 -0
- package/src/proto/stashcash/creditsc.proto +22 -0
- package/src/proto/stashcash/debitsc.proto +27 -0
- package/src/proto/stashcash/getscbalance.proto +21 -0
- package/src/proto/stashcash/getschistory.proto +35 -0
- package/src/proto/stashcash/reversesc.proto +20 -0
- package/src/proto/stashcash.proto +17 -0
- package/src/ts/customers/getbankaccountdetails.ts +169 -0
- package/src/ts/customers/getbasicinfo.ts +215 -0
- package/src/ts/customers/getcustomerbyid.ts +475 -0
- package/src/ts/customers/getdashboard.ts +711 -0
- package/src/ts/customers/getdashboardmaincard.ts +608 -0
- package/src/ts/customers/getprofessionalinfo.ts +183 -0
- package/src/ts/customers/getprofile.ts +199 -0
- package/src/ts/customers/getstep.ts +504 -0
- package/src/ts/customers/profilebasic.ts +198 -0
- package/src/ts/customers/profileupdatetnc.ts +148 -0
- package/src/ts/customers/sendemailtoken.ts +148 -0
- package/src/ts/customers/sendotp.ts +202 -0
- package/src/ts/customers/setmpin.ts +166 -0
- package/src/ts/customers/step1.ts +504 -0
- package/src/ts/customers/step10.ts +544 -0
- package/src/ts/customers/step2.ts +472 -0
- package/src/ts/customers/step7.ts +456 -0
- package/src/ts/customers/step8.ts +472 -0
- package/src/ts/customers/step9.ts +578 -0
- package/src/ts/customers/stepstatic.ts +425 -0
- package/src/ts/customers/verifyemail.ts +148 -0
- package/src/ts/customers/verifympin.ts +184 -0
- package/src/ts/customers/verifyotp.ts +232 -0
- package/src/ts/customers.ts +745 -0
- package/src/ts/example.ts +294 -0
- package/src/ts/google/protobuf/timestamp.ts +223 -0
- package/src/ts/loans/approveloan.ts +214 -0
- package/src/ts/loans/banklist.ts +248 -0
- package/src/ts/loans/calculateemi.ts +182 -0
- package/src/ts/loans/creditlimit.ts +151 -0
- package/src/ts/loans/updateinstallments.ts +271 -0
- package/src/ts/loans/updateloan.ts +214 -0
- package/src/ts/loans.ts +195 -0
- package/src/ts/stashcash/creditsc.ts +361 -0
- package/src/ts/stashcash/debitsc.ts +450 -0
- package/src/ts/stashcash/getscbalance.ts +351 -0
- package/src/ts/stashcash/getschistory.ts +566 -0
- package/src/ts/stashcash/reversesc.ts +329 -0
- package/src/ts/stashcash.ts +152 -0
- package/tsconfig.json +18 -0
- package/ts/customers/getprofile.d.ts +0 -38
- package/ts/customers/getprofile.js +0 -162
- package/ts/customers/getstep.d.ts +0 -78
- package/ts/customers/getstep.js +0 -420
- package/ts/customers/profilebasic.d.ts +0 -38
- package/ts/customers/profilebasic.js +0 -161
- package/ts/customers/profileupdatetnc.d.ts +0 -35
- package/ts/customers/profileupdatetnc.js +0 -117
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/sendotp.d.ts +0 -38
- package/ts/customers/sendotp.js +0 -165
- package/ts/customers/setmpin.d.ts +0 -36
- package/ts/customers/setmpin.js +0 -133
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/customers/verifyemail.js +0 -117
- package/ts/customers/verifympin.d.ts +0 -37
- package/ts/customers/verifympin.js +0 -149
- package/ts/customers/verifyotp.d.ts +0 -40
- package/ts/customers/verifyotp.js +0 -191
- package/ts/customers.d.ts +0 -304
- package/ts/customers.js +0 -220
- package/ts/example.d.ts +0 -78
- package/ts/example.js +0 -199
- package/ts/stashcash/creditsc.d.ts +0 -54
- package/ts/stashcash/creditsc.js +0 -301
- package/ts/stashcash/debitsc.d.ts +0 -56
- package/ts/stashcash/debitsc.js +0 -329
- package/ts/stashcash/getscbalance.d.ts +0 -52
- package/ts/stashcash/getscbalance.js +0 -271
- package/ts/stashcash/getschistory.d.ts +0 -73
- package/ts/stashcash/getschistory.js +0 -479
- package/ts/stashcash/reversesc.d.ts +0 -52
- package/ts/stashcash/reversesc.js +0 -273
- package/ts/stashcash.d.ts +0 -84
- package/ts/stashcash.js +0 -64
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
## GRPC Package Manger
|
|
2
|
+
|
|
3
|
+
### Installation
|
|
4
|
+
|
|
5
|
+
Install the package with npm:
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
npm install @stashfin/grpc
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
### Creating a GRPC Service
|
|
12
|
+
|
|
13
|
+
To create a new gRPC service, follow these steps:
|
|
14
|
+
|
|
15
|
+
1. **Create a new service file**: In the `src/proto` directory, create a new `.proto` file with your service name. This file will define the service interface.
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
touch src/proto/your_service_name.proto
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
2. **Define your service**: In the newly created .proto file, define your service and its methods. For example:
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
syntax = "proto3";
|
|
25
|
+
|
|
26
|
+
import "your_service_name/your_method"
|
|
27
|
+
|
|
28
|
+
service YourService {
|
|
29
|
+
rpc YourMethod (YourRequest) returns (YourResponse);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
3. **Create a new directory for your service**: In the src/proto directory, create a new directory with your service name. This directory will contain the request and response message definitions of each channel in separate file.
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
mkdir src/proto/your_service_name
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
4. **Define your request and response messages**: In the newly created directory, create .proto files for your channel/method with request and response messages. For example:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
touch src/proto/your_service_name/your_method.proto
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
And in these files, define your messages:
|
|
46
|
+
|
|
47
|
+
```
|
|
48
|
+
// your_method.proto
|
|
49
|
+
syntax = "proto3";
|
|
50
|
+
|
|
51
|
+
message YourRequest {
|
|
52
|
+
string request_field = 1;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message YourResponse {
|
|
56
|
+
string response_field = 1;
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Local Development
|
|
61
|
+
|
|
62
|
+
To publish this package locally for development purposes, run the following command in your terminal:
|
|
63
|
+
|
|
64
|
+
```
|
|
65
|
+
npm run build
|
|
66
|
+
cd dist
|
|
67
|
+
npm link
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
To use this locally published package in another service (like metaservice), navigate to the directory of that service and run the following command:
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
npm link @stashfin/grpc
|
|
74
|
+
```
|
package/package.json
CHANGED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.getbasicinfo;
|
|
4
|
+
|
|
5
|
+
message getBasicInfoRequest {}
|
|
6
|
+
|
|
7
|
+
message getBasicInfoResponse {
|
|
8
|
+
string mobile = 1;
|
|
9
|
+
string pan = 2;
|
|
10
|
+
string aadhaar = 3;
|
|
11
|
+
string personal_email = 4 ;
|
|
12
|
+
string curr_address = 5 ;
|
|
13
|
+
string permanent_address = 6 ;
|
|
14
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.getcustomerbyid;
|
|
4
|
+
|
|
5
|
+
message getCustomerByIdRequest {
|
|
6
|
+
int32 customer_id = 1;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
message getCustomerByIdResponse {
|
|
10
|
+
string mobile = 1;
|
|
11
|
+
string email = 2;
|
|
12
|
+
string first_name = 3;
|
|
13
|
+
string middle_name = 4;
|
|
14
|
+
string last_name = 5;
|
|
15
|
+
string father_name = 6;
|
|
16
|
+
string mother_maiden_name = 7;
|
|
17
|
+
string dob = 8;
|
|
18
|
+
string company_name = 9;
|
|
19
|
+
string pincode = 10;
|
|
20
|
+
string app_version = 11;
|
|
21
|
+
bool biometric_enabled = 12;
|
|
22
|
+
int32 journey_sequence = 13;
|
|
23
|
+
string category = 14;
|
|
24
|
+
float loc_limit = 15;
|
|
25
|
+
string status = 16;
|
|
26
|
+
int32 min_tenure = 17;
|
|
27
|
+
int32 max_tenure = 18;
|
|
28
|
+
float roi = 19;
|
|
29
|
+
float processing_rate = 20;
|
|
30
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package customers.getdashboard;
|
|
4
|
+
|
|
5
|
+
message getDashboardRequest {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
message getDashboardResponse {
|
|
9
|
+
string user_state = 1;
|
|
10
|
+
bool father_name_dialog = 2;
|
|
11
|
+
string current_step = 3;
|
|
12
|
+
repeated Block blocks = 4;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message Block {
|
|
16
|
+
string block_name = 1;
|
|
17
|
+
string block_title = 2 ;
|
|
18
|
+
string block_code = 3 ;
|
|
19
|
+
repeated BlockData block_data = 4;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
message BlockData {
|
|
24
|
+
string text = 1;
|
|
25
|
+
string image_url = 2;
|
|
26
|
+
string video_url = 3;
|
|
27
|
+
int32 video_length = 4;
|
|
28
|
+
string action_url = 5;
|
|
29
|
+
string landing_page = 6;
|
|
30
|
+
string api_mode = 7;
|
|
31
|
+
string app_version = 8;
|
|
32
|
+
bool old_customers = 9;
|
|
33
|
+
bool is_new = 10;
|
|
34
|
+
string action_type = 11;
|
|
35
|
+
string color1 = 12;
|
|
36
|
+
string color2 = 13;
|
|
37
|
+
string image_trailing = 14;
|
|
38
|
+
Tag tag = 15;
|
|
39
|
+
string overlay_image = 16;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message Tag {
|
|
43
|
+
string text = 1;
|
|
44
|
+
string bg_color = 2;
|
|
45
|
+
string text_color = 3;
|
|
46
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package customers.getdashboardmaincard;
|
|
4
|
+
|
|
5
|
+
message getDashboardMainCardRequest {}
|
|
6
|
+
|
|
7
|
+
message getDashboardMainCardResponse {
|
|
8
|
+
string block_name = 1;
|
|
9
|
+
string block_code = 2;
|
|
10
|
+
MainCardData block_data = 3;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message MainCardData {
|
|
14
|
+
string text = 1;
|
|
15
|
+
string amount_text = 2;
|
|
16
|
+
string sub_text = 3;
|
|
17
|
+
string action_button_text = 4;
|
|
18
|
+
string action = 5;
|
|
19
|
+
string action_type = 6;
|
|
20
|
+
int32 total_loc = 7;
|
|
21
|
+
int32 used_loc = 8;
|
|
22
|
+
int32 available_sp_loc = 9;
|
|
23
|
+
bool can_reload_card = 10;
|
|
24
|
+
string disbursed_amount = 11;
|
|
25
|
+
string remaining_emi = 12;
|
|
26
|
+
int32 balance_emi_amount = 13;
|
|
27
|
+
string comment = 14;
|
|
28
|
+
string landing_page = 15;
|
|
29
|
+
string timer = 16;
|
|
30
|
+
string image = 17;
|
|
31
|
+
string loc_error = 18;
|
|
32
|
+
bool show_button = 19;
|
|
33
|
+
string total_stash_cash = 20;
|
|
34
|
+
string supp_title = 21;
|
|
35
|
+
int32 supp_loc_status = 22;
|
|
36
|
+
string supp_sub_title = 23;
|
|
37
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.getprofessionalinfo;
|
|
4
|
+
|
|
5
|
+
message getProfessionalInfoRequest {}
|
|
6
|
+
|
|
7
|
+
message getProfessionalInfoResponse {
|
|
8
|
+
string company_name = 1;
|
|
9
|
+
string designation = 2;
|
|
10
|
+
string official_email = 3;
|
|
11
|
+
string office_addr = 4 ;
|
|
12
|
+
}
|
|
13
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.getprofile;
|
|
4
|
+
|
|
5
|
+
message getCustomerProfileRequest { }
|
|
6
|
+
|
|
7
|
+
message getCustomerProfileResponse {
|
|
8
|
+
int32 customer_id = 1;
|
|
9
|
+
string first_name = 2;
|
|
10
|
+
string middle_name = 3;
|
|
11
|
+
string last_name = 4;
|
|
12
|
+
string mobile_number = 5;
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.getstep;
|
|
4
|
+
|
|
5
|
+
message getstepRequest {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
message getstepResponse {
|
|
9
|
+
string step = 1;
|
|
10
|
+
stepResponse setp_data = 2;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message Validation {
|
|
14
|
+
string key = 1;
|
|
15
|
+
string value = 2;
|
|
16
|
+
string message = 3;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message stepResponse {
|
|
20
|
+
string page = 1;
|
|
21
|
+
string type = 2;
|
|
22
|
+
string button_text = 3;
|
|
23
|
+
repeated Field data = 4;
|
|
24
|
+
message Field {
|
|
25
|
+
string label = 1;
|
|
26
|
+
string key = 2;
|
|
27
|
+
string input_type = 3;
|
|
28
|
+
string data_type = 4;
|
|
29
|
+
string icon = 5;
|
|
30
|
+
repeated Validation validations = 7;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.profilebasic;
|
|
4
|
+
|
|
5
|
+
message updateProfileBasicRequest {
|
|
6
|
+
string language = 1;
|
|
7
|
+
string app_version = 2;
|
|
8
|
+
string device_id = 3;
|
|
9
|
+
string os_version = 4;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
message updateProfileBasicResponse {
|
|
13
|
+
bool status = 1 ;
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.step1;
|
|
4
|
+
|
|
5
|
+
message step1Request {
|
|
6
|
+
string full_name = 1;
|
|
7
|
+
string pan_number = 2;
|
|
8
|
+
string dob = 3;
|
|
9
|
+
string pincode = 4;
|
|
10
|
+
bool tnc = 5;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
message Validation {
|
|
14
|
+
string key = 1;
|
|
15
|
+
string value = 2;
|
|
16
|
+
string message = 3;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message step1Response {
|
|
20
|
+
string page = 1;
|
|
21
|
+
string type = 2;
|
|
22
|
+
string button_text = 3;
|
|
23
|
+
repeated Field data = 4;
|
|
24
|
+
message Field {
|
|
25
|
+
string label = 1;
|
|
26
|
+
string key = 2;
|
|
27
|
+
string input_type = 3;
|
|
28
|
+
string data_type = 4;
|
|
29
|
+
string icon = 5;
|
|
30
|
+
repeated Validation validations = 7;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.step10;
|
|
4
|
+
|
|
5
|
+
message step10Request {
|
|
6
|
+
string email = 1;
|
|
7
|
+
string father_name = 2;
|
|
8
|
+
float monthly_income = 3;
|
|
9
|
+
string company_name = 4;
|
|
10
|
+
string salary_date = 5;
|
|
11
|
+
string occupation = 6;
|
|
12
|
+
string gender = 7;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
message Validation {
|
|
16
|
+
string key = 1;
|
|
17
|
+
string value = 2;
|
|
18
|
+
string message = 3;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
message step10Response {
|
|
22
|
+
string page = 1;
|
|
23
|
+
string type = 2;
|
|
24
|
+
string button_text = 3;
|
|
25
|
+
repeated Field data = 4;
|
|
26
|
+
message Field {
|
|
27
|
+
string label = 1;
|
|
28
|
+
string key = 2;
|
|
29
|
+
string input_type = 3;
|
|
30
|
+
string data_type = 4;
|
|
31
|
+
string icon = 5;
|
|
32
|
+
repeated Validation validations = 7;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.step2;
|
|
4
|
+
|
|
5
|
+
message step2Request {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
message Validation {
|
|
9
|
+
string key = 1;
|
|
10
|
+
string value = 2;
|
|
11
|
+
string message = 3;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message step2Response {
|
|
15
|
+
string page = 1;
|
|
16
|
+
string type = 2;
|
|
17
|
+
string button_text = 3;
|
|
18
|
+
repeated Field data = 4;
|
|
19
|
+
string kyc_web_url = 5;
|
|
20
|
+
message Field {
|
|
21
|
+
string label = 1;
|
|
22
|
+
string key = 2;
|
|
23
|
+
string input_type = 3;
|
|
24
|
+
string data_type = 4;
|
|
25
|
+
string icon = 5;
|
|
26
|
+
repeated Validation validations = 7;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.step7;
|
|
4
|
+
|
|
5
|
+
message step7Request {
|
|
6
|
+
string bank_account_number = 1;
|
|
7
|
+
string ifsc_code = 2;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
message Validation {
|
|
11
|
+
string key = 1;
|
|
12
|
+
string value = 2;
|
|
13
|
+
string message = 3;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message step7Response {
|
|
17
|
+
string page = 1;
|
|
18
|
+
string type = 2;
|
|
19
|
+
string button_text = 3;
|
|
20
|
+
repeated Field data = 4;
|
|
21
|
+
message Field {
|
|
22
|
+
string label = 1;
|
|
23
|
+
string key = 2;
|
|
24
|
+
string input_type = 3;
|
|
25
|
+
string data_type = 4;
|
|
26
|
+
string icon = 5;
|
|
27
|
+
repeated Validation validations = 7;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.step8;
|
|
4
|
+
|
|
5
|
+
message step8Request {
|
|
6
|
+
string selfie_url = 1;
|
|
7
|
+
string pan_url = 2;
|
|
8
|
+
string aadhaar_number = 3;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
message Validation {
|
|
12
|
+
string key = 1;
|
|
13
|
+
string value = 2;
|
|
14
|
+
string message = 3;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message step8Response {
|
|
18
|
+
string page = 1;
|
|
19
|
+
string type = 2;
|
|
20
|
+
string button_text = 3;
|
|
21
|
+
repeated Field data = 4;
|
|
22
|
+
message Field {
|
|
23
|
+
string label = 1;
|
|
24
|
+
string key = 2;
|
|
25
|
+
string input_type = 3;
|
|
26
|
+
string data_type = 4;
|
|
27
|
+
string icon = 5;
|
|
28
|
+
repeated Validation validations = 7;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.step9;
|
|
4
|
+
|
|
5
|
+
message step9Request {
|
|
6
|
+
string cur_house_number = 1;
|
|
7
|
+
string cur_address_line1 = 2;
|
|
8
|
+
string cur_address_line2 = 3;
|
|
9
|
+
string cur_pincode = 4;
|
|
10
|
+
bool is_permanent_same = 5;
|
|
11
|
+
string per_house_number = 6;
|
|
12
|
+
string per_address_line1 = 7;
|
|
13
|
+
string per_address_line2 = 8;
|
|
14
|
+
string per_pincode = 9;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
message Validation {
|
|
18
|
+
string key = 1;
|
|
19
|
+
string value = 2;
|
|
20
|
+
string message = 3;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
message step9Response {
|
|
24
|
+
string page = 1;
|
|
25
|
+
string type = 2;
|
|
26
|
+
string button_text = 3;
|
|
27
|
+
repeated Field data = 4;
|
|
28
|
+
message Field {
|
|
29
|
+
string label = 1;
|
|
30
|
+
string key = 2;
|
|
31
|
+
string input_type = 3;
|
|
32
|
+
string data_type = 4;
|
|
33
|
+
string icon = 5;
|
|
34
|
+
repeated Validation validations = 7;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.stepstatic;
|
|
4
|
+
|
|
5
|
+
message stepstaticRequest {
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
message Validation {
|
|
9
|
+
string key = 1;
|
|
10
|
+
string value = 2;
|
|
11
|
+
string message = 3;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message stepstaticResponse {
|
|
15
|
+
string page = 1;
|
|
16
|
+
string type = 2;
|
|
17
|
+
string button_text = 3;
|
|
18
|
+
repeated Field data = 4;
|
|
19
|
+
message Field {
|
|
20
|
+
string label = 1;
|
|
21
|
+
string key = 2;
|
|
22
|
+
string input_type = 3;
|
|
23
|
+
string data_type = 4;
|
|
24
|
+
string icon = 5;
|
|
25
|
+
repeated Validation validations = 7;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
package customers.verifyotp;
|
|
4
|
+
|
|
5
|
+
message verifyOtpReqeust {
|
|
6
|
+
string mobile = 1;
|
|
7
|
+
string device_id = 2;
|
|
8
|
+
string otp = 3 ;
|
|
9
|
+
string token = 4;
|
|
10
|
+
bool tnc = 5 ;
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
message verifyOtpResponse {
|
|
15
|
+
bool ismpin = 1 ;
|
|
16
|
+
string jwttoken = 2 ;
|
|
17
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package service;
|
|
4
|
+
|
|
5
|
+
import "customers/sendotp.proto";
|
|
6
|
+
import "customers/verifyotp.proto";
|
|
7
|
+
import "customers/setmpin.proto";
|
|
8
|
+
import "customers/verifympin.proto";
|
|
9
|
+
import "customers/getstep.proto";
|
|
10
|
+
import "customers/step1.proto";
|
|
11
|
+
import "customers/step2.proto";
|
|
12
|
+
import "customers/step7.proto";
|
|
13
|
+
import "customers/step8.proto";
|
|
14
|
+
import "customers/step9.proto";
|
|
15
|
+
import "customers/step10.proto";
|
|
16
|
+
import "customers/stepstatic.proto";
|
|
17
|
+
import "customers/profileupdatetnc.proto";
|
|
18
|
+
import "customers/getprofile.proto" ;
|
|
19
|
+
import "customers/profilebasic.proto" ;
|
|
20
|
+
import "customers/sendemailtoken.proto" ;
|
|
21
|
+
import "customers/verifyemail.proto" ;
|
|
22
|
+
import "customers/getcustomerbyid.proto";
|
|
23
|
+
import "customers/getdashboard.proto" ;
|
|
24
|
+
import "customers/getdashboardmaincard.proto";
|
|
25
|
+
import "customers/getbankaccountdetails.proto";
|
|
26
|
+
import "customers/getbasicinfo.proto";
|
|
27
|
+
import "customers/getprofessionalinfo.proto";
|
|
28
|
+
|
|
29
|
+
service customers {
|
|
30
|
+
rpc sendOtp(.customers.sendotp.sendOtpRequest) returns (.customers.sendotp.sendOtpRespone) {}
|
|
31
|
+
rpc verifyOtp(.customers.verifyotp.verifyOtpReqeust) returns (.customers.verifyotp.verifyOtpResponse) {}
|
|
32
|
+
rpc setmpin(.customers.setmpin.setMpinRequest) returns (.customers.setmpin.setMpinResponse) {}
|
|
33
|
+
rpc verifyMpin(.customers.verifympin.verifyMpinRequest) returns (.customers.verifympin.verifyMpinResponse) {}
|
|
34
|
+
rpc profileUpdatetnc(.customers.profileupdatetnc.updateTncRequest ) returns (.customers.profileupdatetnc.updateTncResponse) {}
|
|
35
|
+
rpc updateProfileBasic(.customers.profilebasic.updateProfileBasicRequest ) returns (.customers.profilebasic.updateProfileBasicResponse) {}
|
|
36
|
+
rpc getProfile(.customers.getprofile.getCustomerProfileRequest) returns (.customers.getprofile.getCustomerProfileResponse) {}
|
|
37
|
+
rpc getstep(.customers.getstep.getstepRequest) returns (.customers.getstep.getstepResponse) {}
|
|
38
|
+
rpc step1(.customers.step1.step1Request) returns (.customers.step1.step1Response) {}
|
|
39
|
+
rpc step2(.customers.step2.step2Request) returns (.customers.step2.step2Response) {}
|
|
40
|
+
rpc step3(.customers.stepstatic.stepstaticRequest) returns (.customers.stepstatic.stepstaticResponse) {}
|
|
41
|
+
rpc step4(.customers.stepstatic.stepstaticRequest) returns (.customers.stepstatic.stepstaticResponse) {}
|
|
42
|
+
rpc step5(.customers.stepstatic.stepstaticRequest) returns (.customers.stepstatic.stepstaticResponse) {}
|
|
43
|
+
rpc step6(.customers.stepstatic.stepstaticRequest) returns (.customers.stepstatic.stepstaticResponse) {}
|
|
44
|
+
rpc step7(.customers.step7.step7Request) returns (.customers.step7.step7Response) {}
|
|
45
|
+
rpc step8(.customers.step8.step8Request) returns (.customers.step8.step8Response) {}
|
|
46
|
+
rpc step9(.customers.step9.step9Request) returns (.customers.step9.step9Response) {}
|
|
47
|
+
rpc step10(.customers.step10.step10Request) returns (.customers.step10.step10Response) {}
|
|
48
|
+
rpc step11(.customers.stepstatic.stepstaticRequest) returns (.customers.stepstatic.stepstaticRequest) {}
|
|
49
|
+
rpc sendEmailToken(.customers.sendemailtoken.sendEmailTokenRequest) returns (.customers.sendemailtoken.sendEmailTokenResponse) {}
|
|
50
|
+
rpc verifyEmail(.customers.verifyemail.verifyEmailRequest) returns (.customers.verifyemail.verifyEmailResponse) {}
|
|
51
|
+
rpc getCustomerById(.customers.getcustomerbyid.getCustomerByIdRequest) returns (.customers.getcustomerbyid.getCustomerByIdResponse) {}
|
|
52
|
+
rpc getDashboard(.customers.getdashboard.getDashboardRequest) returns (.customers.getdashboard.getDashboardResponse) {}
|
|
53
|
+
rpc getDashboardMainCard(.customers.getdashboardmaincard.getDashboardMainCardRequest) returns (.customers.getdashboardmaincard.getDashboardMainCardResponse){}
|
|
54
|
+
rpc getBankAccountDetails(.customers.getbankaccountdetails.getBankAccountDetailsRequest) returns (.customers.getbankaccountdetails.getBankAccountDetailsResponse) {}
|
|
55
|
+
rpc getBasicInfo(.customers.getbasicinfo.getBasicInfoRequest) returns (.customers.getbasicinfo.getBasicInfoResponse) {}
|
|
56
|
+
rpc getProfessionalInfo(.customers.getprofessionalinfo.getProfessionalInfoRequest) returns (.customers.getprofessionalinfo.getProfessionalInfoResponse) {}
|
|
57
|
+
}
|