@stashfin/grpc 1.2.51 → 1.2.54

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.
Files changed (208) hide show
  1. package/README.md +74 -0
  2. package/package.json +3 -2
  3. package/src/proto/customers/addaddress.proto +25 -0
  4. package/src/proto/customers/addbankaccountdetails.proto +13 -0
  5. package/src/proto/customers/createcustomerreference.proto +21 -0
  6. package/src/proto/customers/forgotmpin.proto +12 -0
  7. package/src/proto/customers/forgotmpinotp.proto +10 -0
  8. package/src/proto/customers/getbankaccountdetails.proto +11 -0
  9. package/src/proto/customers/getbasicinfo.proto +24 -0
  10. package/src/proto/customers/getcities.proto +16 -0
  11. package/src/proto/customers/getcustomerbyid.proto +31 -0
  12. package/src/proto/customers/getdashboard.proto +47 -0
  13. package/src/proto/customers/getdashboardmaincard.proto +37 -0
  14. package/src/proto/customers/getkycweburl.proto +10 -0
  15. package/src/proto/customers/getprofessionalinfo.proto +22 -0
  16. package/src/proto/customers/getprofile.proto +22 -0
  17. package/src/proto/customers/getstates.proto +15 -0
  18. package/src/proto/customers/getstep.proto +30 -0
  19. package/src/proto/customers/profilebasic.proto +14 -0
  20. package/src/proto/customers/profileupdatetnc.proto +11 -0
  21. package/src/proto/customers/resetmpin.proto +13 -0
  22. package/src/proto/customers/savebasicdetails.proto +16 -0
  23. package/src/proto/customers/saveunlocklimit.proto +10 -0
  24. package/src/proto/customers/sendemailtoken.proto +11 -0
  25. package/src/proto/customers/sendotp.proto +14 -0
  26. package/src/proto/customers/setmpin.proto +12 -0
  27. package/src/proto/customers/step10.proto +34 -0
  28. package/src/proto/customers/step7.proto +29 -0
  29. package/src/proto/customers/step8.proto +30 -0
  30. package/src/proto/customers/step9.proto +36 -0
  31. package/src/proto/customers/stepstatic.proto +27 -0
  32. package/src/proto/customers/updatedigilockertxn.proto +13 -0
  33. package/src/proto/customers/updatedob.proto +13 -0
  34. package/src/proto/customers/updatehypervergetxn.proto +12 -0
  35. package/src/proto/customers/verifyemail.proto +11 -0
  36. package/src/proto/customers/verifympin.proto +13 -0
  37. package/src/proto/customers/verifyotp.proto +17 -0
  38. package/src/proto/customers.proto +83 -0
  39. package/src/proto/example.proto +20 -0
  40. package/src/proto/loans/approveloan.proto +15 -0
  41. package/src/proto/loans/banklist.proto +12 -0
  42. package/src/proto/loans/calculateemi.proto +20 -0
  43. package/src/proto/loans/creditlimit.proto +18 -0
  44. package/src/proto/loans/restructureloan.proto +12 -0
  45. package/src/proto/loans/transactionlist.proto +18 -0
  46. package/src/proto/loans/updateinstallments.proto +19 -0
  47. package/src/proto/loans/updateloan.proto +15 -0
  48. package/src/proto/loans.proto +23 -0
  49. package/src/proto/stashcash/creditsc.proto +22 -0
  50. package/src/proto/stashcash/debitsc.proto +27 -0
  51. package/src/proto/stashcash/getscbalance.proto +21 -0
  52. package/src/proto/stashcash/getschistory.proto +35 -0
  53. package/src/proto/stashcash/reversesc.proto +20 -0
  54. package/src/proto/stashcash.proto +17 -0
  55. package/src/ts/customers/addaddress.ts +310 -0
  56. package/src/ts/customers/addbankaccountdetails.ts +184 -0
  57. package/src/ts/customers/createcustomerreference.ts +276 -0
  58. package/src/ts/customers/getbankaccountdetails.ts +169 -0
  59. package/src/ts/customers/getbasicinfo.ts +385 -0
  60. package/src/ts/customers/getcities.ts +227 -0
  61. package/src/ts/customers/getcustomerbyid.ts +492 -0
  62. package/src/ts/customers/getdashboard.ts +728 -0
  63. package/src/ts/customers/getdashboardmaincard.ts +608 -0
  64. package/src/ts/customers/getkycweburl.ts +133 -0
  65. package/src/ts/customers/getprofessionalinfo.ts +344 -0
  66. package/src/ts/customers/getprofile.ts +338 -0
  67. package/src/ts/customers/getstates.ts +212 -0
  68. package/src/ts/customers/getstep.ts +483 -0
  69. package/src/ts/customers/profilebasic.ts +198 -0
  70. package/src/ts/customers/profileupdatetnc.ts +148 -0
  71. package/src/ts/customers/resetmpin.ts +166 -0
  72. package/src/ts/customers/savebasicdetails.ts +229 -0
  73. package/src/ts/customers/saveunlocklimit.ts +133 -0
  74. package/src/ts/customers/sendemailtoken.ts +148 -0
  75. package/src/ts/customers/sendotp.ts +202 -0
  76. package/src/ts/customers/setmpin.ts +166 -0
  77. package/src/ts/customers/step10.ts +544 -0
  78. package/src/ts/customers/step7.ts +456 -0
  79. package/src/ts/customers/step8.ts +472 -0
  80. package/src/ts/customers/step9.ts +578 -0
  81. package/src/ts/customers/stepstatic.ts +425 -0
  82. package/src/ts/customers/updatedigilockertxn.ts +182 -0
  83. package/src/ts/customers/updatehypervergetxn.ts +166 -0
  84. package/src/ts/customers/verifyemail.ts +148 -0
  85. package/src/ts/customers/verifympin.ts +184 -0
  86. package/src/ts/customers/verifyotp.ts +232 -0
  87. package/src/ts/customers.ts +1038 -0
  88. package/src/ts/example.ts +294 -0
  89. package/{ts/google/protobuf/timestamp.d.ts → src/ts/google/protobuf/timestamp.ts} +126 -30
  90. package/src/ts/loans/approveloan.ts +214 -0
  91. package/src/ts/loans/banklist.ts +183 -0
  92. package/src/ts/loans/calculateemi.ts +295 -0
  93. package/src/ts/loans/creditlimit.ts +294 -0
  94. package/src/ts/loans/restructureloan.ts +166 -0
  95. package/src/ts/loans/transactionlist.ts +281 -0
  96. package/src/ts/loans/updateinstallments.ts +271 -0
  97. package/src/ts/loans/updateloan.ts +214 -0
  98. package/src/ts/loans.ts +221 -0
  99. package/src/ts/stashcash/creditsc.ts +361 -0
  100. package/src/ts/stashcash/debitsc.ts +450 -0
  101. package/src/ts/stashcash/getscbalance.ts +351 -0
  102. package/src/ts/stashcash/getschistory.ts +566 -0
  103. package/src/ts/stashcash/reversesc.ts +329 -0
  104. package/src/ts/stashcash.ts +152 -0
  105. package/tsconfig.json +18 -0
  106. package/ts/customers/addaddress.d.ts +0 -50
  107. package/ts/customers/addaddress.js +0 -265
  108. package/ts/customers/addbankaccountdetails.d.ts +0 -37
  109. package/ts/customers/addbankaccountdetails.js +0 -147
  110. package/ts/customers/createcustomerreference.d.ts +0 -43
  111. package/ts/customers/createcustomerreference.js +0 -226
  112. package/ts/customers/getbankaccountdetails.d.ts +0 -36
  113. package/ts/customers/getbankaccountdetails.js +0 -134
  114. package/ts/customers/getbasicinfo.d.ts +0 -56
  115. package/ts/customers/getbasicinfo.js +0 -323
  116. package/ts/customers/getcities.d.ts +0 -47
  117. package/ts/customers/getcities.js +0 -183
  118. package/ts/customers/getcustomerbyid.d.ts +0 -55
  119. package/ts/customers/getcustomerbyid.js +0 -421
  120. package/ts/customers/getdashboard.d.ts +0 -91
  121. package/ts/customers/getdashboard.js +0 -618
  122. package/ts/customers/getdashboardmaincard.d.ts +0 -69
  123. package/ts/customers/getdashboardmaincard.js +0 -520
  124. package/ts/customers/getkycweburl.d.ts +0 -34
  125. package/ts/customers/getkycweburl.js +0 -104
  126. package/ts/customers/getprofessionalinfo.d.ts +0 -54
  127. package/ts/customers/getprofessionalinfo.js +0 -286
  128. package/ts/customers/getprofile.d.ts +0 -53
  129. package/ts/customers/getprofile.js +0 -282
  130. package/ts/customers/getstates.d.ts +0 -46
  131. package/ts/customers/getstates.js +0 -170
  132. package/ts/customers/getstep.d.ts +0 -69
  133. package/ts/customers/getstep.js +0 -406
  134. package/ts/customers/profilebasic.d.ts +0 -38
  135. package/ts/customers/profilebasic.js +0 -161
  136. package/ts/customers/profileupdatetnc.d.ts +0 -35
  137. package/ts/customers/profileupdatetnc.js +0 -117
  138. package/ts/customers/resetmpin.d.ts +0 -36
  139. package/ts/customers/resetmpin.js +0 -133
  140. package/ts/customers/savebasicdetails.d.ts +0 -47
  141. package/ts/customers/savebasicdetails.js +0 -185
  142. package/ts/customers/saveunlocklimit.d.ts +0 -34
  143. package/ts/customers/saveunlocklimit.js +0 -104
  144. package/ts/customers/sendemailtoken.d.ts +0 -35
  145. package/ts/customers/sendemailtoken.js +0 -117
  146. package/ts/customers/sendotp.d.ts +0 -38
  147. package/ts/customers/sendotp.js +0 -165
  148. package/ts/customers/setmpin.d.ts +0 -36
  149. package/ts/customers/setmpin.js +0 -133
  150. package/ts/customers/step1.d.ts +0 -71
  151. package/ts/customers/step1.js +0 -423
  152. package/ts/customers/step10.d.ts +0 -73
  153. package/ts/customers/step10.js +0 -459
  154. package/ts/customers/step2.d.ts +0 -67
  155. package/ts/customers/step2.js +0 -366
  156. package/ts/customers/step7.d.ts +0 -68
  157. package/ts/customers/step7.js +0 -381
  158. package/ts/customers/step8.d.ts +0 -69
  159. package/ts/customers/step8.js +0 -395
  160. package/ts/customers/step9.d.ts +0 -75
  161. package/ts/customers/step9.js +0 -489
  162. package/ts/customers/stepstatic.d.ts +0 -66
  163. package/ts/customers/stepstatic.js +0 -354
  164. package/ts/customers/updatedigilockertxn.d.ts +0 -37
  165. package/ts/customers/updatedigilockertxn.js +0 -147
  166. package/ts/customers/updatehypervergetxn.d.ts +0 -36
  167. package/ts/customers/updatehypervergetxn.js +0 -133
  168. package/ts/customers/verifyemail.d.ts +0 -35
  169. package/ts/customers/verifyemail.js +0 -117
  170. package/ts/customers/verifympin.d.ts +0 -37
  171. package/ts/customers/verifympin.js +0 -149
  172. package/ts/customers/verifyotp.d.ts +0 -40
  173. package/ts/customers/verifyotp.js +0 -191
  174. package/ts/customers.d.ts +0 -540
  175. package/ts/customers.js +0 -388
  176. package/ts/example.d.ts +0 -78
  177. package/ts/example.js +0 -199
  178. package/ts/google/protobuf/timestamp.js +0 -97
  179. package/ts/loans/approveloan.d.ts +0 -39
  180. package/ts/loans/approveloan.js +0 -175
  181. package/ts/loans/banklist.d.ts +0 -37
  182. package/ts/loans/banklist.js +0 -148
  183. package/ts/loans/calculateemi.d.ts +0 -51
  184. package/ts/loans/calculateemi.js +0 -243
  185. package/ts/loans/creditlimit.d.ts +0 -43
  186. package/ts/loans/creditlimit.js +0 -247
  187. package/ts/loans/restructureloan.d.ts +0 -36
  188. package/ts/loans/restructureloan.js +0 -133
  189. package/ts/loans/transactionlist.d.ts +0 -50
  190. package/ts/loans/transactionlist.js +0 -229
  191. package/ts/loans/updateinstallments.d.ts +0 -42
  192. package/ts/loans/updateinstallments.js +0 -226
  193. package/ts/loans/updateloan.d.ts +0 -39
  194. package/ts/loans/updateloan.js +0 -175
  195. package/ts/loans.d.ts +0 -112
  196. package/ts/loans.js +0 -84
  197. package/ts/stashcash/creditsc.d.ts +0 -54
  198. package/ts/stashcash/creditsc.js +0 -301
  199. package/ts/stashcash/debitsc.d.ts +0 -59
  200. package/ts/stashcash/debitsc.js +0 -380
  201. package/ts/stashcash/getscbalance.d.ts +0 -53
  202. package/ts/stashcash/getscbalance.js +0 -293
  203. package/ts/stashcash/getschistory.d.ts +0 -73
  204. package/ts/stashcash/getschistory.js +0 -479
  205. package/ts/stashcash/reversesc.d.ts +0 -52
  206. package/ts/stashcash/reversesc.js +0 -273
  207. package/ts/stashcash.d.ts +0 -84
  208. 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
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.51",
3
+ "version": "1.2.54",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
7
- "build": "npx protoc --plugin=$(npm root)/.bin/protoc-gen-ts_proto --ts_proto_out=src/ts --ts_proto_opt=outputServices=grpc-js --ts_proto_opt=esModuleInterop=true,snakeToCamel=false -I=src/proto/ src/**/*.proto",
7
+ "build:test": "npx protoc --plugin=$(npm root)/.bin/protoc-gen-ts_proto --ts_proto_out=src/ts --ts_proto_opt=outputServices=grpc-js --ts_proto_opt=esModuleInterop=true,snakeToCamel=false -I=src/proto/ src/**/*.proto",
8
+ "build": "npx protoc --plugin=./../../node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=src/ts --ts_proto_opt=outputServices=grpc-js --ts_proto_opt=esModuleInterop=true,snakeToCamel=false -I=src/proto/ src/**/*.proto",
8
9
  "postbuild": "tsc --build && cp package.json dist/ ",
9
10
  "publish:patch": "npm version patch && npm run build && cd dist && npm publish --access public",
10
11
  "publish:minor": "npm version minor && npm run build && cd dist && npm publish --access public"
@@ -0,0 +1,25 @@
1
+ syntax = "proto3";
2
+
3
+ package customers.addaddress;
4
+
5
+ enum AddressType {
6
+ CURRENT = 0;
7
+ PERMANENT = 1;
8
+ OFFICE = 2;
9
+ }
10
+
11
+ message addAddressRequest {
12
+ AddressType address_type = 1;
13
+ string house_flat_no = 2;
14
+ string address_line_1 = 3;
15
+ string address_line_2 = 4;
16
+ string landmark = 5;
17
+ int32 state_id = 7;
18
+ int32 city_id = 8;
19
+ string pin_code = 9;
20
+ }
21
+
22
+ message addAddressResponse {
23
+ bool status = 1;
24
+ }
25
+
@@ -0,0 +1,13 @@
1
+ syntax="proto3";
2
+
3
+ package customers.addbankaccountdetails;
4
+
5
+ message addBankAccountDetailsRequest {
6
+ string account_number = 1;
7
+ string bank_name = 2;
8
+ string ifsc_code = 3;
9
+ }
10
+
11
+ message addBankAccountDetailsResponse {
12
+ int32 id = 1 ;
13
+ }
@@ -0,0 +1,21 @@
1
+ syntax = "proto3";
2
+
3
+ package customers.createcustomerreference;
4
+
5
+ message createCustomerReferenceRequest {
6
+ string reference_name = 1;
7
+ string relationship = 2;
8
+ string mobile_number = 3;
9
+ string email = 4; //optional
10
+ string address = 5;
11
+ string pincode = 6;
12
+ int32 state_id = 7;
13
+ int32 city_id = 8;
14
+
15
+ }
16
+
17
+ message createCustomerReferenceResponse {
18
+ int32 reference_id = 1 ;
19
+ }
20
+
21
+
@@ -0,0 +1,12 @@
1
+ syntax = "proto3";
2
+
3
+ package customers.forgotmpin;
4
+
5
+ message forgotMpinRequest {
6
+ string otp = 1;
7
+ int32 new_mpin = 2;
8
+ }
9
+
10
+ message forgotMpinResponse {
11
+ int32 id = 1;
12
+ }
@@ -0,0 +1,10 @@
1
+ syntax = "proto3";
2
+
3
+ package customers.forgotmpinotp;
4
+
5
+ message forgotMpinOTPRequest {
6
+ }
7
+
8
+ message forgotMpinOTPResponse {
9
+ bool success = 1 ;
10
+ }
@@ -0,0 +1,11 @@
1
+ syntax="proto3";
2
+
3
+ package customers.getbankaccountdetails;
4
+
5
+ message getBankAccountDetailsRequest {}
6
+
7
+ message getBankAccountDetailsResponse {
8
+ string account_number = 1;
9
+ string bank_name = 2;
10
+ string ifsc_code = 3;
11
+ }
@@ -0,0 +1,24 @@
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
+ Address curr_address = 5 ;
13
+ Address permanent_address = 6 ;
14
+ }
15
+
16
+ message Address {
17
+ string house_flat_no = 1;
18
+ string address_line_1 = 2;
19
+ string address_line_2 = 3;
20
+ string landmark = 4;
21
+ string city = 5;
22
+ string state = 6;
23
+ string pin_code = 7;
24
+ }
@@ -0,0 +1,16 @@
1
+ syntax = "proto3";
2
+
3
+ package customers.getcities;
4
+
5
+ message getCitiesRequest {
6
+ int32 state_id = 1;
7
+ }
8
+
9
+ message City {
10
+ int32 id = 1;
11
+ string name = 2;
12
+ }
13
+
14
+ message getCitiesResponse {
15
+ repeated City cities = 1;
16
+ }
@@ -0,0 +1,31 @@
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
+ string emi_date = 21;
31
+ }
@@ -0,0 +1,47 @@
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 sub_text = 2;
26
+ string image_url = 3;
27
+ string video_url = 4;
28
+ int32 video_length = 5;
29
+ string action_url = 6;
30
+ string landing_page = 7;
31
+ string api_mode = 8;
32
+ string app_version = 9;
33
+ bool old_customers = 10;
34
+ bool is_new = 11;
35
+ string action_type = 12;
36
+ string color1 = 13;
37
+ string color2 = 14;
38
+ string image_trailing = 15;
39
+ Tag tag = 16;
40
+ string overlay_image = 17;
41
+ }
42
+
43
+ message Tag {
44
+ string text = 1;
45
+ string bg_color = 2;
46
+ string text_color = 3;
47
+ }
@@ -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,10 @@
1
+ syntax="proto3";
2
+
3
+ package customers.getkycweburl;
4
+
5
+ message getKycWebUrlRequest {
6
+ }
7
+
8
+ message getKycWebUrlResponse {
9
+ string web_url = 1;
10
+ }
@@ -0,0 +1,22 @@
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
+ Address office_addr = 4 ;
12
+ }
13
+
14
+ message Address {
15
+ string house_flat_no = 1;
16
+ string address_line_1 = 2;
17
+ string address_line_2 = 3;
18
+ string landmark = 4;
19
+ string city = 5;
20
+ string state = 6;
21
+ string pin_code = 7;
22
+ }
@@ -0,0 +1,22 @@
1
+ syntax="proto3";
2
+
3
+ package customers.getprofile;
4
+
5
+ message getCustomerProfileRequest { }
6
+
7
+ message getCustomerProfileResponse {
8
+ string first_name = 1;
9
+ string middle_name = 2;
10
+ string last_name = 3;
11
+ string profile_image = 4;
12
+ string email = 5;
13
+ int32 profile_completion_status = 6;
14
+ repeated ProfileDetail details = 7;
15
+ }
16
+
17
+
18
+ message ProfileDetail {
19
+ string title = 1;
20
+ bool status = 2;
21
+ string redirect_url = 3;
22
+ }
@@ -0,0 +1,15 @@
1
+ syntax = "proto3";
2
+
3
+ package customers.getstates;
4
+
5
+ message getAllStatesRequest {}
6
+
7
+ message getAllStatesResponse {
8
+ repeated State states = 1;
9
+ }
10
+
11
+ message State {
12
+ int32 id = 1;
13
+ string name = 2;
14
+ }
15
+
@@ -0,0 +1,30 @@
1
+ syntax="proto3";
2
+
3
+ package customers.getstep;
4
+
5
+ message getstepRequest {
6
+ }
7
+
8
+ message getstepResponse {
9
+ string route = 1;
10
+ string type = 2;
11
+ string button_text = 3;
12
+ repeated Field data = 4;
13
+ message Field {
14
+ string label = 1;
15
+ string key = 2;
16
+ string input_type = 3;
17
+ string data_type = 4;
18
+ string icon = 5;
19
+ bool is_popup = 6;
20
+ string keyboard_type = 7;
21
+ string text_capitalization = 8;
22
+ repeated Validation validations = 9;
23
+ }
24
+ }
25
+
26
+ message Validation {
27
+ string key = 1;
28
+ string value = 2;
29
+ string message = 3;
30
+ }
@@ -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,11 @@
1
+ syntax="proto3";
2
+
3
+ package customers.profileupdatetnc;
4
+
5
+ message updateTncRequest {
6
+ string tnc_version = 1 ;
7
+ }
8
+
9
+ message updateTncResponse {
10
+ bool status = 1;
11
+ }
@@ -0,0 +1,13 @@
1
+ syntax = "proto3";
2
+
3
+ package customers.resetmpin;
4
+
5
+ message resetMpinRequest {
6
+ int32 old_mpin = 1;
7
+ int32 new_mpin = 2;
8
+ }
9
+
10
+ message resetMpinResponse {
11
+ int32 id = 1;
12
+ }
13
+
@@ -0,0 +1,16 @@
1
+ syntax="proto3";
2
+
3
+ package customers.savebasicdetails;
4
+
5
+ message RequestBody {
6
+ string key = 1;
7
+ string value = 2;
8
+ }
9
+
10
+ message saveBasicDetailsRequest {
11
+ repeated RequestBody request = 1;
12
+ }
13
+
14
+ message saveBasicDetailsResponse {
15
+ bool status = 1;
16
+ }
@@ -0,0 +1,10 @@
1
+ syntax="proto3";
2
+
3
+ package customers.saveunlocklimit;
4
+
5
+ message saveUnlockLimitRequest {
6
+ }
7
+
8
+ message saveUnlockLimitResponse {
9
+ bool status = 1;
10
+ }
@@ -0,0 +1,11 @@
1
+ syntax="proto3";
2
+
3
+ package customers.sendemailtoken;
4
+
5
+ message sendEmailTokenRequest {
6
+ string email = 1;
7
+ }
8
+
9
+ message sendEmailTokenResponse {
10
+ string token = 1 ;
11
+ }
@@ -0,0 +1,14 @@
1
+ syntax="proto3";
2
+
3
+ package customers.sendotp;
4
+
5
+ message sendOtpRequest {
6
+ string mobile = 1;
7
+ string device_id = 2;
8
+ }
9
+
10
+ message sendOtpRespone {
11
+ bool ismpin = 1 ;
12
+ string token = 2 ;
13
+ bool is_device_registered = 3;
14
+ }
@@ -0,0 +1,12 @@
1
+ syntax="proto3";
2
+
3
+ package customers.setmpin;
4
+
5
+ message setMpinRequest {
6
+ string mobile = 1 ;
7
+ int32 mpin = 2;
8
+ }
9
+
10
+ message setMpinResponse {
11
+ bool status = 1 ;
12
+ }
@@ -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,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
+ }