@stashfin/grpc 1.2.52 → 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 (226) 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/customer/getprofile.d.ts +0 -38
  107. package/ts/customer/getprofile.js +0 -162
  108. package/ts/customer/getstep.d.ts +0 -78
  109. package/ts/customer/getstep.js +0 -420
  110. package/ts/customer/profileupdatetnc.d.ts +0 -35
  111. package/ts/customer/profileupdatetnc.js +0 -117
  112. package/ts/customer/sendotp.d.ts +0 -36
  113. package/ts/customer/sendotp.js +0 -133
  114. package/ts/customer/setmpin.d.ts +0 -36
  115. package/ts/customer/setmpin.js +0 -133
  116. package/ts/customer/step1.d.ts +0 -69
  117. package/ts/customer/step1.js +0 -395
  118. package/ts/customer/step10.d.ts +0 -73
  119. package/ts/customer/step10.js +0 -459
  120. package/ts/customer/step2.d.ts +0 -68
  121. package/ts/customer/step2.js +0 -381
  122. package/ts/customer/step7.d.ts +0 -68
  123. package/ts/customer/step7.js +0 -381
  124. package/ts/customer/step8.d.ts +0 -69
  125. package/ts/customer/step8.js +0 -395
  126. package/ts/customer/step9.d.ts +0 -75
  127. package/ts/customer/step9.js +0 -489
  128. package/ts/customer/stepstatic.d.ts +0 -66
  129. package/ts/customer/stepstatic.js +0 -352
  130. package/ts/customer/verifympin.d.ts +0 -37
  131. package/ts/customer/verifympin.js +0 -149
  132. package/ts/customer/verifyotp.d.ts +0 -39
  133. package/ts/customer/verifyotp.js +0 -177
  134. package/ts/customer.d.ts +0 -262
  135. package/ts/customer.js +0 -190
  136. package/ts/customers/getbankaccountdetails.d.ts +0 -36
  137. package/ts/customers/getbankaccountdetails.js +0 -134
  138. package/ts/customers/getbasicinfo.d.ts +0 -39
  139. package/ts/customers/getbasicinfo.js +0 -176
  140. package/ts/customers/getcustomerbyid.d.ts +0 -50
  141. package/ts/customers/getcustomerbyid.js +0 -346
  142. package/ts/customers/getdashboard.d.ts +0 -90
  143. package/ts/customers/getdashboard.js +0 -603
  144. package/ts/customers/getdashboardmaincard.d.ts +0 -69
  145. package/ts/customers/getdashboardmaincard.js +0 -520
  146. package/ts/customers/getprofessionalinfo.d.ts +0 -37
  147. package/ts/customers/getprofessionalinfo.js +0 -148
  148. package/ts/customers/getprofile.d.ts +0 -38
  149. package/ts/customers/getprofile.js +0 -162
  150. package/ts/customers/getstep.d.ts +0 -78
  151. package/ts/customers/getstep.js +0 -420
  152. package/ts/customers/profilebasic.d.ts +0 -38
  153. package/ts/customers/profilebasic.js +0 -161
  154. package/ts/customers/profileupdatetnc.d.ts +0 -35
  155. package/ts/customers/profileupdatetnc.js +0 -117
  156. package/ts/customers/sendemailtoken.d.ts +0 -35
  157. package/ts/customers/sendemailtoken.js +0 -117
  158. package/ts/customers/sendotp.d.ts +0 -38
  159. package/ts/customers/sendotp.js +0 -165
  160. package/ts/customers/setmpin.d.ts +0 -36
  161. package/ts/customers/setmpin.js +0 -133
  162. package/ts/customers/step1.d.ts +0 -69
  163. package/ts/customers/step1.js +0 -395
  164. package/ts/customers/step10.d.ts +0 -73
  165. package/ts/customers/step10.js +0 -459
  166. package/ts/customers/step2.d.ts +0 -68
  167. package/ts/customers/step2.js +0 -381
  168. package/ts/customers/step7.d.ts +0 -68
  169. package/ts/customers/step7.js +0 -381
  170. package/ts/customers/step8.d.ts +0 -69
  171. package/ts/customers/step8.js +0 -395
  172. package/ts/customers/step9.d.ts +0 -75
  173. package/ts/customers/step9.js +0 -489
  174. package/ts/customers/stepstatic.d.ts +0 -66
  175. package/ts/customers/stepstatic.js +0 -354
  176. package/ts/customers/verifyemail.d.ts +0 -35
  177. package/ts/customers/verifyemail.js +0 -117
  178. package/ts/customers/verifympin.d.ts +0 -37
  179. package/ts/customers/verifympin.js +0 -149
  180. package/ts/customers/verifyotp.d.ts +0 -40
  181. package/ts/customers/verifyotp.js +0 -191
  182. package/ts/customers.d.ts +0 -388
  183. package/ts/customers.js +0 -280
  184. package/ts/example.d.ts +0 -78
  185. package/ts/example.js +0 -199
  186. package/ts/google/protobuf/any.d.ts +0 -138
  187. package/ts/google/protobuf/any.js +0 -108
  188. package/ts/google/protobuf/timestamp.js +0 -97
  189. package/ts/loans/approveloan.d.ts +0 -39
  190. package/ts/loans/approveloan.js +0 -175
  191. package/ts/loans/banklist.d.ts +0 -48
  192. package/ts/loans/banklist.js +0 -202
  193. package/ts/loans/calculateemi.d.ts +0 -37
  194. package/ts/loans/calculateemi.js +0 -147
  195. package/ts/loans/creditlimit.d.ts +0 -35
  196. package/ts/loans/creditlimit.js +0 -120
  197. package/ts/loans/updateinstallments.d.ts +0 -42
  198. package/ts/loans/updateinstallments.js +0 -226
  199. package/ts/loans/updateloan.d.ts +0 -39
  200. package/ts/loans/updateloan.js +0 -175
  201. package/ts/loans.d.ts +0 -98
  202. package/ts/loans.js +0 -74
  203. package/ts/payments/checkpaymentstatus.d.ts +0 -51
  204. package/ts/payments/checkpaymentstatus.js +0 -259
  205. package/ts/payments/createorder.d.ts +0 -39
  206. package/ts/payments/createorder.js +0 -191
  207. package/ts/payments/getpaymentdetails.d.ts +0 -58
  208. package/ts/payments/getpaymentdetails.js +0 -367
  209. package/ts/payments/getpaymentoptions.d.ts +0 -50
  210. package/ts/payments/getpaymentoptions.js +0 -231
  211. package/ts/payments/initiatepayment.d.ts +0 -54
  212. package/ts/payments/initiatepayment.js +0 -299
  213. package/ts/payments.d.ts +0 -70
  214. package/ts/payments.js +0 -54
  215. package/ts/stashcash/creditsc.d.ts +0 -54
  216. package/ts/stashcash/creditsc.js +0 -301
  217. package/ts/stashcash/debitsc.d.ts +0 -59
  218. package/ts/stashcash/debitsc.js +0 -380
  219. package/ts/stashcash/getscbalance.d.ts +0 -53
  220. package/ts/stashcash/getscbalance.js +0 -293
  221. package/ts/stashcash/getschistory.d.ts +0 -73
  222. package/ts/stashcash/getschistory.js +0 -479
  223. package/ts/stashcash/reversesc.d.ts +0 -52
  224. package/ts/stashcash/reversesc.js +0 -273
  225. package/ts/stashcash.d.ts +0 -84
  226. package/ts/stashcash.js +0 -64
@@ -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,13 @@
1
+ syntax="proto3";
2
+
3
+ package customers.updatedigilockertxn;
4
+
5
+ message updateDigiLockerTxnRequest {
6
+ string payload = 1;
7
+ string transactionId = 2;
8
+ string status = 3;
9
+ }
10
+
11
+ message updateDigiLockerTxnResponse {
12
+ bool status = 1 ;
13
+ }
@@ -0,0 +1,13 @@
1
+ syntax="proto3";
2
+
3
+ package customers.updatedob;
4
+
5
+
6
+ message updateDOBRequest {
7
+ string dob = 1 ;
8
+ }
9
+
10
+
11
+ message updateDOBResponse {
12
+ bool status = 1;
13
+ }
@@ -0,0 +1,12 @@
1
+ syntax="proto3";
2
+
3
+ package customers.updatehypervergetxn;
4
+
5
+ message updateHypervergeTxnRequest {
6
+ string transactionId = 1;
7
+ string status = 2;
8
+ }
9
+
10
+ message updateHypervergeTxnResponse {
11
+ bool status = 1 ;
12
+ }
@@ -0,0 +1,11 @@
1
+ syntax="proto3";
2
+
3
+ package customers.verifyemail;
4
+
5
+ message verifyEmailRequest {
6
+ string token = 1;
7
+ }
8
+
9
+ message verifyEmailResponse {
10
+ bool status = 1 ;
11
+ }
@@ -0,0 +1,13 @@
1
+ syntax="proto3";
2
+
3
+ package customers.verifympin;
4
+
5
+ message verifyMpinRequest {
6
+ string mobile = 1 ;
7
+ int32 mpin = 2;
8
+ }
9
+
10
+ message verifyMpinResponse {
11
+ bool status = 1 ;
12
+ string jwttoken = 2;
13
+ }
@@ -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
+ bool is_rooted = 6;
12
+ }
13
+
14
+ message verifyOtpResponse {
15
+ bool ismpin = 1 ;
16
+ string jwttoken = 2 ;
17
+ }
@@ -0,0 +1,83 @@
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/resetmpin.proto";
10
+ import "customers/forgotmpinotp.proto";
11
+ import "customers/forgotmpin.proto";
12
+ import "customers/getstep.proto";
13
+ import "customers/savebasicdetails.proto";
14
+ import "customers/saveunlocklimit.proto";
15
+ import "customers/step7.proto";
16
+ import "customers/step8.proto";
17
+ import "customers/step9.proto";
18
+ import "customers/step10.proto";
19
+ import "customers/stepstatic.proto";
20
+ import "customers/profileupdatetnc.proto";
21
+ import "customers/getprofile.proto" ;
22
+ import "customers/profilebasic.proto" ;
23
+ import "customers/sendemailtoken.proto" ;
24
+ import "customers/verifyemail.proto" ;
25
+ import "customers/getcustomerbyid.proto";
26
+ import "customers/getdashboard.proto" ;
27
+ import "customers/getdashboardmaincard.proto";
28
+ import "customers/getbankaccountdetails.proto";
29
+ import "customers/addbankaccountdetails.proto";
30
+ import "customers/getbasicinfo.proto";
31
+ import "customers/getprofessionalinfo.proto";
32
+ import "customers/createcustomerreference.proto";
33
+ import "customers/getcities.proto";
34
+ import "customers/getstates.proto";
35
+ import "customers/updatedigilockertxn.proto";
36
+ import "customers/updatehypervergetxn.proto";
37
+ import "customers/addaddress.proto";
38
+ import "customers/getkycweburl.proto";
39
+ import "customers/updatedob.proto";
40
+
41
+ service customers {
42
+ rpc sendOtp(.customers.sendotp.sendOtpRequest) returns (.customers.sendotp.sendOtpRespone) {}
43
+ rpc verifyOtp(.customers.verifyotp.verifyOtpReqeust) returns (.customers.verifyotp.verifyOtpResponse) {}
44
+ rpc setmpin(.customers.setmpin.setMpinRequest) returns (.customers.setmpin.setMpinResponse) {}
45
+ rpc verifyMpin(.customers.verifympin.verifyMpinRequest) returns (.customers.verifympin.verifyMpinResponse) {}
46
+ rpc resetMpin(.customers.resetmpin.resetMpinRequest) returns (.customers.resetmpin.resetMpinResponse) {}
47
+ rpc forgotMpinOtp(.customers.forgotmpinotp.forgotMpinOTPRequest) returns (.customers.forgotmpinotp.forgotMpinOTPResponse) {}
48
+ rpc forgotMpin(.customers.forgotmpin.forgotMpinRequest) returns (.customers.forgotmpin.forgotMpinResponse) {}
49
+ rpc profileUpdatetnc(.customers.profileupdatetnc.updateTncRequest ) returns (.customers.profileupdatetnc.updateTncResponse) {}
50
+ rpc updateProfileBasic(.customers.profilebasic.updateProfileBasicRequest ) returns (.customers.profilebasic.updateProfileBasicResponse) {}
51
+ rpc getProfile(.customers.getprofile.getCustomerProfileRequest) returns (.customers.getprofile.getCustomerProfileResponse) {}
52
+ rpc getStep(.customers.getstep.getstepRequest) returns (.customers.getstep.getstepResponse) {}
53
+ rpc saveBasicDetails(.customers.savebasicdetails.saveBasicDetailsRequest) returns (.customers.savebasicdetails.saveBasicDetailsResponse) {}
54
+ rpc saveUnlockLimit(.customers.saveunlocklimit.saveUnlockLimitRequest) returns (.customers.saveunlocklimit.saveUnlockLimitResponse) {}
55
+ rpc step3(.customers.stepstatic.stepstaticRequest) returns (.customers.stepstatic.stepstaticResponse) {}
56
+ rpc step4(.customers.stepstatic.stepstaticRequest) returns (.customers.stepstatic.stepstaticResponse) {}
57
+ rpc step5(.customers.stepstatic.stepstaticRequest) returns (.customers.stepstatic.stepstaticResponse) {}
58
+ rpc step6(.customers.stepstatic.stepstaticRequest) returns (.customers.stepstatic.stepstaticResponse) {}
59
+ rpc step7(.customers.step7.step7Request) returns (.customers.step7.step7Response) {}
60
+ rpc step8(.customers.step8.step8Request) returns (.customers.step8.step8Response) {}
61
+ rpc step9(.customers.step9.step9Request) returns (.customers.step9.step9Response) {}
62
+ rpc step10(.customers.step10.step10Request) returns (.customers.step10.step10Response) {}
63
+ rpc step11(.customers.stepstatic.stepstaticRequest) returns (.customers.stepstatic.stepstaticRequest) {}
64
+ rpc sendEmailToken(.customers.sendemailtoken.sendEmailTokenRequest) returns (.customers.sendemailtoken.sendEmailTokenResponse) {}
65
+ rpc verifyEmail(.customers.verifyemail.verifyEmailRequest) returns (.customers.verifyemail.verifyEmailResponse) {}
66
+ rpc getCustomerById(.customers.getcustomerbyid.getCustomerByIdRequest) returns (.customers.getcustomerbyid.getCustomerByIdResponse) {}
67
+ rpc getDashboard(.customers.getdashboard.getDashboardRequest) returns (.customers.getdashboard.getDashboardResponse) {}
68
+ rpc getDashboardMainCard(.customers.getdashboardmaincard.getDashboardMainCardRequest) returns (.customers.getdashboardmaincard.getDashboardMainCardResponse){}
69
+ rpc addBankAccountDetails(.customers.addbankaccountdetails.addBankAccountDetailsRequest) returns (.customers.addbankaccountdetails.addBankAccountDetailsResponse) {}
70
+ rpc getBankAccountDetails(.customers.getbankaccountdetails.getBankAccountDetailsRequest) returns (.customers.getbankaccountdetails.getBankAccountDetailsResponse) {}
71
+ rpc getBasicInfo(.customers.getbasicinfo.getBasicInfoRequest) returns (.customers.getbasicinfo.getBasicInfoResponse) {}
72
+ rpc getProfessionalInfo(.customers.getprofessionalinfo.getProfessionalInfoRequest) returns (.customers.getprofessionalinfo.getProfessionalInfoResponse) {}
73
+ rpc createCustomerReference(.customers.createcustomerreference.createCustomerReferenceRequest) returns (.customers.createcustomerreference.createCustomerReferenceResponse) {}
74
+ rpc sendEmailTokenToProfessionalEmail(.customers.sendemailtoken.sendEmailTokenRequest) returns (.customers.sendemailtoken.sendEmailTokenResponse) {}
75
+ rpc verifyProfessionalEmail(.customers.verifyemail.verifyEmailRequest) returns (.customers.verifyemail.verifyEmailResponse) {}
76
+ rpc getAllStates(.customers.getstates.getAllStatesRequest) returns (.customers.getstates.getAllStatesResponse) {}
77
+ rpc getCitiesByStateId(.customers.getcities.getCitiesRequest) returns (.customers.getcities.getCitiesResponse) {}
78
+ rpc updateDigiLockerTxn(.customers.updatedigilockertxn.updateDigiLockerTxnRequest) returns (.customers.updatedigilockertxn.updateDigiLockerTxnResponse) {}
79
+ rpc updateHypervergeTxn(.customers.updatehypervergetxn.updateHypervergeTxnRequest) returns (.customers.updatehypervergetxn.updateHypervergeTxnResponse) {}
80
+ rpc addAddress(.customers.addaddress.addAddressRequest) returns (.customers.addaddress.addAddressResponse) {}
81
+ rpc getKycWebUrl(.customers.getkycweburl.getKycWebUrlRequest) returns (.customers.getkycweburl.getKycWebUrlResponse) {}
82
+ rpc updateDob(.customers.updatedob.updateDOBRequest) returns (.customers.updatedob.updateDOBResponse) {}
83
+ }
@@ -0,0 +1,20 @@
1
+ syntax = "proto3";
2
+
3
+ package service;
4
+
5
+ service Example {
6
+ rpc GetExample (ExampleRequest) returns (ExampleResponse);
7
+ rpc SetExample (ExampleRequest) returns (ExampleResponse);
8
+ }
9
+
10
+ message ExampleRequest {
11
+ string name = 1;
12
+ int32 id = 2;
13
+ }
14
+
15
+ message ExampleResponse {
16
+ string message = 1;
17
+ int32 id = 2 ;
18
+ string name = 3;
19
+ string status = 4;
20
+ }
@@ -0,0 +1,15 @@
1
+ syntax="proto3";
2
+
3
+ package loans.approveloan;
4
+
5
+ message approveLoanRequest {
6
+ int32 bank_id =1;
7
+ int32 amount = 2;
8
+ int32 tenure = 3;
9
+ int32 customer_id = 4;
10
+ string ip = 5;
11
+ }
12
+
13
+ message approveLoanResponse {
14
+ int32 id = 1;
15
+ }
@@ -0,0 +1,12 @@
1
+ syntax="proto3";
2
+
3
+ package loans.banklist;
4
+
5
+ message bankListRequest { }
6
+
7
+ message bankListResponse {
8
+ int32 id = 1;
9
+ int32 account_number = 2;
10
+ string bank_name =3;
11
+ int32 ifsc_code = 4;
12
+ }
@@ -0,0 +1,20 @@
1
+ syntax="proto3";
2
+
3
+ package loans.calculateemi;
4
+
5
+ message calculateEmiRequest {
6
+ int32 amount =1;
7
+ }
8
+
9
+ message calculateEmiResponse {
10
+ int32 disbursal_amount = 1;
11
+ int32 tenure = 2;
12
+ repeated Field expected_emi =3;
13
+ message Field {
14
+ int32 tenure = 1;
15
+ int32 emi_amount = 2;
16
+ }
17
+ int32 min_tenure = 4;
18
+ int32 max_tenure = 5;
19
+ }
20
+
@@ -0,0 +1,18 @@
1
+ syntax="proto3";
2
+
3
+ package loans.creditlimit;
4
+
5
+ message creditLimitRequest { }
6
+
7
+ message creditLimitResponse {
8
+ int32 loc_limit = 1;
9
+ int32 used_limit = 2;
10
+ int32 min_tenure = 3;
11
+ int32 max_tenure = 4;
12
+ int32 rate_of_interest = 5;
13
+ int32 increment_step =6;
14
+ bool loc_disable =7 ;
15
+ int32 request_max_percentage =8;
16
+ string bill_date= 9;
17
+ int32 minimum_request_amount =10;
18
+ }
@@ -0,0 +1,12 @@
1
+ syntax="proto3";
2
+
3
+ package loans.restructureloan;
4
+
5
+ message restructureLoanRequest {
6
+ int32 loan_id = 1;
7
+ int32 tenure = 2;
8
+ }
9
+
10
+ message restructureLoanResponse {
11
+ int32 id = 1;
12
+ }
@@ -0,0 +1,18 @@
1
+ syntax="proto3";
2
+
3
+ package loans.transactionlist;
4
+
5
+ message transactionListRequest {
6
+ string filter_by = 1;
7
+ }
8
+
9
+ message transactionListResponse {
10
+ repeated Field data = 1;
11
+ message Field {
12
+ int32 id = 1;
13
+ int32 loan_amount = 2;
14
+ int32 emi_amount = 3;
15
+ string start_date = 4;
16
+ string close_date = 5;
17
+ }
18
+ }
@@ -0,0 +1,19 @@
1
+ syntax="proto3";
2
+
3
+ package loans.updateinstallments;
4
+
5
+ message updateInstallmentsRequest {
6
+ int32 installment_id = 1;
7
+ int32 principal = 2;
8
+ int32 interest = 3;
9
+ int32 penalty = 4;
10
+ int32 r_pif_principal =5;
11
+ int32 r_pif_interest =6;
12
+ int32 r_pif_penalty=7;
13
+ int32 amount = 8;
14
+
15
+ }
16
+
17
+ message updateInstallmentsResponse {
18
+ int32 id = 1 ;
19
+ }
@@ -0,0 +1,15 @@
1
+ syntax="proto3";
2
+ import "google/protobuf/timestamp.proto";
3
+ package loans.updateloan;
4
+
5
+ message updateLoanRequest {
6
+ int32 loan_id =1;
7
+ string status = 2;
8
+ int32 disbursal_amount = 3;
9
+ string disbursal_mode =4 ;
10
+ int32 is_auto_processing =5;
11
+ }
12
+
13
+ message updateLoanResponse {
14
+ int32 id = 1;
15
+ }
@@ -0,0 +1,23 @@
1
+
2
+ syntax = "proto3";
3
+ package service;
4
+
5
+ import "loans/creditlimit.proto";
6
+ import "loans/calculateemi.proto";
7
+ import "loans/banklist.proto";
8
+ import "loans/approveloan.proto";
9
+ import "loans/updateloan.proto";
10
+ import "loans/updateinstallments.proto";
11
+ import "loans/transactionlist.proto";
12
+
13
+ service loans {
14
+ rpc creditlimit(.loans.creditlimit.creditLimitRequest) returns (.loans.creditlimit.creditLimitResponse) {}
15
+ rpc calculateemi(.loans.calculateemi.calculateEmiRequest) returns (.loans.calculateemi.calculateEmiResponse) {}
16
+ rpc banklist(.loans.banklist.bankListRequest) returns (.loans.banklist.bankListResponse) {}
17
+ rpc approveLoan(.loans.approveloan.approveLoanRequest) returns (.loans.approveloan.approveLoanResponse) {}
18
+ rpc updateloan(.loans.updateloan.updateLoanRequest) returns (.loans.updateloan.updateLoanResponse) {}
19
+ rpc updateInstallments(.loans.updateinstallments.updateInstallmentsRequest) returns (.loans.updateinstallments.updateInstallmentsResponse) {}
20
+ rpc restructureLoan(.loans.restructureloan.restructureLoanRequest) returns (.loans.restructureloan.restructureLoanResponse) {}
21
+ rpc transactionList(.loans.transactionlist.transactionListRequest) returns (.loans.transactionlist.transactionListResponse) {}
22
+
23
+ }
@@ -0,0 +1,22 @@
1
+ syntax="proto3";
2
+
3
+ package stashcash.creditsc;
4
+
5
+ message request {
6
+ int64 customer_id = 1;
7
+ int64 campaign_id = 2;
8
+ float amount = 3;
9
+ string sc_type = 4;
10
+ optional string expiry = 5;
11
+ }
12
+
13
+ message response {
14
+ string status = 1;
15
+ message Data {
16
+ float locked = 1;
17
+ float unlocked = 2;
18
+ float balance = 3;
19
+ int64 txn_id = 4;
20
+ }
21
+ Data data = 2;
22
+ }
@@ -0,0 +1,27 @@
1
+ syntax="proto3";
2
+
3
+ package stashcash.debitsc;
4
+
5
+ message request {
6
+ int64 customer_id = 1;
7
+ int32 flag = 2;
8
+ int64 campaign_id = 3;
9
+ optional float amount = 4;
10
+ optional string sc_type = 5;
11
+ optional string txn_id = 6;
12
+ }
13
+
14
+ message response {
15
+ string status = 1;
16
+ message Data {
17
+ optional float locked = 1;
18
+ optional float unlocked = 2;
19
+ optional float balance = 3;
20
+ optional float rupee_balance = 4;
21
+ string txn_id = 5;
22
+ optional int32 conversion_factor = 6;
23
+ string txn_status = 7;
24
+ optional float txn_sc = 8;
25
+ }
26
+ optional Data data = 2;
27
+ }
@@ -0,0 +1,21 @@
1
+ syntax="proto3";
2
+
3
+ package stashcash.getscbalance;
4
+
5
+ message request {
6
+ int64 customer_id = 1;
7
+ }
8
+
9
+ message response {
10
+ string status = 1;
11
+ message Data {
12
+ float locked = 1;
13
+ float unlocked = 2;
14
+ float balance = 3;
15
+ float rupee_balance = 4;
16
+ bool user_guide = 5;
17
+ bool is_frozen = 6;
18
+ float conversion_factor = 7;
19
+ }
20
+ Data data = 2;
21
+ }
@@ -0,0 +1,35 @@
1
+ syntax="proto3";
2
+
3
+ package stashcash.getschistory;
4
+
5
+ message request {
6
+ int64 customer_id = 1;
7
+ string page = 2;
8
+ string limit = 3;
9
+ optional string filter_by = 4;
10
+ }
11
+
12
+ message response {
13
+ string status = 1;
14
+ Data data = 2;
15
+ }
16
+
17
+ message Data {
18
+ repeated SCtransaction history = 1;
19
+ }
20
+
21
+ message SCtransaction {
22
+ int64 id = 1;
23
+ int64 customer_id = 2;
24
+ int64 campaign_id = 3;
25
+ string txn_id = 4;
26
+ string sc_type = 5;
27
+ double amount = 6;
28
+ double remaining = 7;
29
+ string txn_type = 8;
30
+ string status = 9;
31
+ optional string expiry = 10;
32
+ string created_at = 11;
33
+ bool is_active = 12;
34
+ bool is_deleted = 13;
35
+ }
@@ -0,0 +1,20 @@
1
+ syntax="proto3";
2
+
3
+ package stashcash.reversesc;
4
+
5
+ message request {
6
+ int64 txnid = 1;
7
+ int64 customer_id = 2;
8
+ string sc_type = 3;
9
+ }
10
+
11
+ message response {
12
+ string status = 1;
13
+ message Data {
14
+ float locked = 1;
15
+ float unlocked = 2;
16
+ float balance = 3;
17
+ int32 txn_id = 4;
18
+ }
19
+ Data data = 2;
20
+ }
@@ -0,0 +1,17 @@
1
+ syntax = "proto3";
2
+
3
+ package service;
4
+
5
+ import "stashcash/getscbalance.proto";
6
+ import "stashcash/creditsc.proto";
7
+ import "stashcash/getschistory.proto";
8
+ import "stashcash/reversesc.proto";
9
+ import "stashcash/debitsc.proto";
10
+
11
+ service stashcash {
12
+ rpc getscbalance(.stashcash.getscbalance.request) returns (.stashcash.getscbalance.response) {}
13
+ rpc creditsc(.stashcash.creditsc.request) returns (.stashcash.creditsc.response) {}
14
+ rpc reversesc(.stashcash.reversesc.request) returns (.stashcash.reversesc.response) {}
15
+ rpc getschistory(.stashcash.getschistory.request) returns (.stashcash.getschistory.response) {}
16
+ rpc debitsc(.stashcash.debitsc.request) returns (.stashcash.debitsc.response) {}
17
+ }