@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.
- package/README.md +74 -0
- package/package.json +3 -2
- package/src/proto/customers/addaddress.proto +25 -0
- package/src/proto/customers/addbankaccountdetails.proto +13 -0
- package/src/proto/customers/createcustomerreference.proto +21 -0
- package/src/proto/customers/forgotmpin.proto +12 -0
- package/src/proto/customers/forgotmpinotp.proto +10 -0
- package/src/proto/customers/getbankaccountdetails.proto +11 -0
- package/src/proto/customers/getbasicinfo.proto +24 -0
- package/src/proto/customers/getcities.proto +16 -0
- package/src/proto/customers/getcustomerbyid.proto +31 -0
- package/src/proto/customers/getdashboard.proto +47 -0
- package/src/proto/customers/getdashboardmaincard.proto +37 -0
- package/src/proto/customers/getkycweburl.proto +10 -0
- package/src/proto/customers/getprofessionalinfo.proto +22 -0
- package/src/proto/customers/getprofile.proto +22 -0
- package/src/proto/customers/getstates.proto +15 -0
- package/src/proto/customers/getstep.proto +30 -0
- package/src/proto/customers/profilebasic.proto +14 -0
- package/src/proto/customers/profileupdatetnc.proto +11 -0
- package/src/proto/customers/resetmpin.proto +13 -0
- package/src/proto/customers/savebasicdetails.proto +16 -0
- package/src/proto/customers/saveunlocklimit.proto +10 -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/step10.proto +34 -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/updatedigilockertxn.proto +13 -0
- package/src/proto/customers/updatedob.proto +13 -0
- package/src/proto/customers/updatehypervergetxn.proto +12 -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 +83 -0
- package/src/proto/example.proto +20 -0
- package/src/proto/loans/approveloan.proto +15 -0
- package/src/proto/loans/banklist.proto +12 -0
- package/src/proto/loans/calculateemi.proto +20 -0
- package/src/proto/loans/creditlimit.proto +18 -0
- package/src/proto/loans/restructureloan.proto +12 -0
- package/src/proto/loans/transactionlist.proto +18 -0
- package/src/proto/loans/updateinstallments.proto +19 -0
- package/src/proto/loans/updateloan.proto +15 -0
- package/src/proto/loans.proto +23 -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/addaddress.ts +310 -0
- package/src/ts/customers/addbankaccountdetails.ts +184 -0
- package/src/ts/customers/createcustomerreference.ts +276 -0
- package/src/ts/customers/getbankaccountdetails.ts +169 -0
- package/src/ts/customers/getbasicinfo.ts +385 -0
- package/src/ts/customers/getcities.ts +227 -0
- package/src/ts/customers/getcustomerbyid.ts +492 -0
- package/src/ts/customers/getdashboard.ts +728 -0
- package/src/ts/customers/getdashboardmaincard.ts +608 -0
- package/src/ts/customers/getkycweburl.ts +133 -0
- package/src/ts/customers/getprofessionalinfo.ts +344 -0
- package/src/ts/customers/getprofile.ts +338 -0
- package/src/ts/customers/getstates.ts +212 -0
- package/src/ts/customers/getstep.ts +483 -0
- package/src/ts/customers/profilebasic.ts +198 -0
- package/src/ts/customers/profileupdatetnc.ts +148 -0
- package/src/ts/customers/resetmpin.ts +166 -0
- package/src/ts/customers/savebasicdetails.ts +229 -0
- package/src/ts/customers/saveunlocklimit.ts +133 -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/step10.ts +544 -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/updatedigilockertxn.ts +182 -0
- package/src/ts/customers/updatehypervergetxn.ts +166 -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 +1038 -0
- package/src/ts/example.ts +294 -0
- package/{ts/google/protobuf/timestamp.d.ts → src/ts/google/protobuf/timestamp.ts} +126 -30
- package/src/ts/loans/approveloan.ts +214 -0
- package/src/ts/loans/banklist.ts +183 -0
- package/src/ts/loans/calculateemi.ts +295 -0
- package/src/ts/loans/creditlimit.ts +294 -0
- package/src/ts/loans/restructureloan.ts +166 -0
- package/src/ts/loans/transactionlist.ts +281 -0
- package/src/ts/loans/updateinstallments.ts +271 -0
- package/src/ts/loans/updateloan.ts +214 -0
- package/src/ts/loans.ts +221 -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/addaddress.d.ts +0 -50
- package/ts/customers/addaddress.js +0 -265
- package/ts/customers/addbankaccountdetails.d.ts +0 -37
- package/ts/customers/addbankaccountdetails.js +0 -147
- package/ts/customers/createcustomerreference.d.ts +0 -43
- package/ts/customers/createcustomerreference.js +0 -226
- package/ts/customers/getbankaccountdetails.d.ts +0 -36
- package/ts/customers/getbankaccountdetails.js +0 -134
- package/ts/customers/getbasicinfo.d.ts +0 -56
- package/ts/customers/getbasicinfo.js +0 -323
- package/ts/customers/getcities.d.ts +0 -47
- package/ts/customers/getcities.js +0 -183
- package/ts/customers/getcustomerbyid.d.ts +0 -55
- package/ts/customers/getcustomerbyid.js +0 -421
- package/ts/customers/getdashboard.d.ts +0 -91
- package/ts/customers/getdashboard.js +0 -618
- package/ts/customers/getdashboardmaincard.d.ts +0 -69
- package/ts/customers/getdashboardmaincard.js +0 -520
- package/ts/customers/getkycweburl.d.ts +0 -34
- package/ts/customers/getkycweburl.js +0 -104
- package/ts/customers/getprofessionalinfo.d.ts +0 -54
- package/ts/customers/getprofessionalinfo.js +0 -286
- package/ts/customers/getprofile.d.ts +0 -53
- package/ts/customers/getprofile.js +0 -282
- package/ts/customers/getstates.d.ts +0 -46
- package/ts/customers/getstates.js +0 -170
- package/ts/customers/getstep.d.ts +0 -69
- package/ts/customers/getstep.js +0 -406
- 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/resetmpin.d.ts +0 -36
- package/ts/customers/resetmpin.js +0 -133
- package/ts/customers/savebasicdetails.d.ts +0 -47
- package/ts/customers/savebasicdetails.js +0 -185
- package/ts/customers/saveunlocklimit.d.ts +0 -34
- package/ts/customers/saveunlocklimit.js +0 -104
- 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 -71
- package/ts/customers/step1.js +0 -423
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -67
- package/ts/customers/step2.js +0 -366
- 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/updatedigilockertxn.d.ts +0 -37
- package/ts/customers/updatedigilockertxn.js +0 -147
- package/ts/customers/updatehypervergetxn.d.ts +0 -36
- package/ts/customers/updatehypervergetxn.js +0 -133
- 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 -540
- package/ts/customers.js +0 -388
- package/ts/example.d.ts +0 -78
- package/ts/example.js +0 -199
- package/ts/google/protobuf/timestamp.js +0 -97
- package/ts/loans/approveloan.d.ts +0 -39
- package/ts/loans/approveloan.js +0 -175
- package/ts/loans/banklist.d.ts +0 -37
- package/ts/loans/banklist.js +0 -148
- package/ts/loans/calculateemi.d.ts +0 -51
- package/ts/loans/calculateemi.js +0 -243
- package/ts/loans/creditlimit.d.ts +0 -43
- package/ts/loans/creditlimit.js +0 -247
- package/ts/loans/restructureloan.d.ts +0 -36
- package/ts/loans/restructureloan.js +0 -133
- package/ts/loans/transactionlist.d.ts +0 -50
- package/ts/loans/transactionlist.js +0 -229
- package/ts/loans/updateinstallments.d.ts +0 -42
- package/ts/loans/updateinstallments.js +0 -226
- package/ts/loans/updateloan.d.ts +0 -39
- package/ts/loans/updateloan.js +0 -175
- package/ts/loans.d.ts +0 -112
- package/ts/loans.js +0 -84
- package/ts/stashcash/creditsc.d.ts +0 -54
- package/ts/stashcash/creditsc.js +0 -301
- package/ts/stashcash/debitsc.d.ts +0 -59
- package/ts/stashcash/debitsc.js +0 -380
- package/ts/stashcash/getscbalance.d.ts +0 -53
- package/ts/stashcash/getscbalance.js +0 -293
- 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
|
@@ -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
|
+
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,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,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
|
+
}
|