@stashfin/grpc 1.0.31 → 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.
Files changed (160) hide show
  1. package/README.md +74 -0
  2. package/package.json +1 -1
  3. package/src/proto/customers/getbankaccountdetails.proto +11 -0
  4. package/src/proto/customers/getbasicinfo.proto +14 -0
  5. package/src/proto/customers/getcustomerbyid.proto +30 -0
  6. package/src/proto/customers/getdashboard.proto +46 -0
  7. package/src/proto/customers/getdashboardmaincard.proto +37 -0
  8. package/src/proto/customers/getprofessionalinfo.proto +13 -0
  9. package/src/proto/customers/getprofile.proto +13 -0
  10. package/src/proto/customers/getstep.proto +32 -0
  11. package/src/proto/customers/profilebasic.proto +14 -0
  12. package/src/proto/customers/profileupdatetnc.proto +11 -0
  13. package/src/proto/customers/sendemailtoken.proto +11 -0
  14. package/src/proto/customers/sendotp.proto +14 -0
  15. package/src/proto/customers/setmpin.proto +12 -0
  16. package/src/proto/customers/step1.proto +32 -0
  17. package/src/proto/customers/step10.proto +34 -0
  18. package/src/proto/customers/step2.proto +28 -0
  19. package/src/proto/customers/step7.proto +29 -0
  20. package/src/proto/customers/step8.proto +30 -0
  21. package/src/proto/customers/step9.proto +36 -0
  22. package/src/proto/customers/stepstatic.proto +27 -0
  23. package/src/proto/customers/verifyemail.proto +11 -0
  24. package/src/proto/customers/verifympin.proto +13 -0
  25. package/src/proto/customers/verifyotp.proto +17 -0
  26. package/src/proto/customers.proto +57 -0
  27. package/src/proto/example.proto +20 -0
  28. package/src/proto/loans/approveloan.proto +15 -0
  29. package/src/proto/loans/banklist.proto +15 -0
  30. package/src/proto/loans/calculateemi.proto +15 -0
  31. package/src/proto/loans/creditlimit.proto +10 -0
  32. package/src/proto/loans/updateinstallments.proto +19 -0
  33. package/src/proto/loans/updateloan.proto +15 -0
  34. package/src/proto/loans.proto +19 -0
  35. package/src/proto/stashcash/creditsc.proto +22 -0
  36. package/src/proto/stashcash/debitsc.proto +27 -0
  37. package/src/proto/stashcash/getscbalance.proto +21 -0
  38. package/src/proto/stashcash/getschistory.proto +35 -0
  39. package/src/proto/stashcash/reversesc.proto +20 -0
  40. package/src/proto/stashcash.proto +17 -0
  41. package/src/ts/customers/getbankaccountdetails.ts +169 -0
  42. package/src/ts/customers/getbasicinfo.ts +215 -0
  43. package/src/ts/customers/getcustomerbyid.ts +475 -0
  44. package/src/ts/customers/getdashboard.ts +711 -0
  45. package/src/ts/customers/getdashboardmaincard.ts +608 -0
  46. package/src/ts/customers/getprofessionalinfo.ts +183 -0
  47. package/src/ts/customers/getprofile.ts +199 -0
  48. package/src/ts/customers/getstep.ts +504 -0
  49. package/src/ts/customers/profilebasic.ts +198 -0
  50. package/src/ts/customers/profileupdatetnc.ts +148 -0
  51. package/src/ts/customers/sendemailtoken.ts +148 -0
  52. package/src/ts/customers/sendotp.ts +202 -0
  53. package/src/ts/customers/setmpin.ts +166 -0
  54. package/src/ts/customers/step1.ts +504 -0
  55. package/src/ts/customers/step10.ts +544 -0
  56. package/src/ts/customers/step2.ts +472 -0
  57. package/src/ts/customers/step7.ts +456 -0
  58. package/src/ts/customers/step8.ts +472 -0
  59. package/src/ts/customers/step9.ts +578 -0
  60. package/src/ts/customers/stepstatic.ts +425 -0
  61. package/src/ts/customers/verifyemail.ts +148 -0
  62. package/src/ts/customers/verifympin.ts +184 -0
  63. package/src/ts/customers/verifyotp.ts +232 -0
  64. package/src/ts/customers.ts +745 -0
  65. package/src/ts/example.ts +294 -0
  66. package/src/ts/google/protobuf/timestamp.ts +223 -0
  67. package/src/ts/loans/approveloan.ts +214 -0
  68. package/src/ts/loans/banklist.ts +248 -0
  69. package/src/ts/loans/calculateemi.ts +182 -0
  70. package/src/ts/loans/creditlimit.ts +151 -0
  71. package/src/ts/loans/updateinstallments.ts +271 -0
  72. package/src/ts/loans/updateloan.ts +214 -0
  73. package/src/ts/loans.ts +195 -0
  74. package/src/ts/stashcash/creditsc.ts +361 -0
  75. package/src/ts/stashcash/debitsc.ts +450 -0
  76. package/src/ts/stashcash/getscbalance.ts +351 -0
  77. package/src/ts/stashcash/getschistory.ts +566 -0
  78. package/src/ts/stashcash/reversesc.ts +329 -0
  79. package/src/ts/stashcash.ts +152 -0
  80. package/tsconfig.json +18 -0
  81. package/ts/customer/getprofile.d.ts +0 -38
  82. package/ts/customer/getprofile.js +0 -162
  83. package/ts/customer/getstep.d.ts +0 -78
  84. package/ts/customer/getstep.js +0 -420
  85. package/ts/customer/profileupdatetnc.d.ts +0 -35
  86. package/ts/customer/profileupdatetnc.js +0 -117
  87. package/ts/customer/sendotp.d.ts +0 -36
  88. package/ts/customer/sendotp.js +0 -133
  89. package/ts/customer/setmpin.d.ts +0 -36
  90. package/ts/customer/setmpin.js +0 -133
  91. package/ts/customer/step1.d.ts +0 -69
  92. package/ts/customer/step1.js +0 -395
  93. package/ts/customer/step10.d.ts +0 -73
  94. package/ts/customer/step10.js +0 -459
  95. package/ts/customer/step2.d.ts +0 -68
  96. package/ts/customer/step2.js +0 -381
  97. package/ts/customer/step7.d.ts +0 -68
  98. package/ts/customer/step7.js +0 -381
  99. package/ts/customer/step8.d.ts +0 -69
  100. package/ts/customer/step8.js +0 -395
  101. package/ts/customer/step9.d.ts +0 -75
  102. package/ts/customer/step9.js +0 -489
  103. package/ts/customer/stepstatic.d.ts +0 -66
  104. package/ts/customer/stepstatic.js +0 -352
  105. package/ts/customer/verifympin.d.ts +0 -37
  106. package/ts/customer/verifympin.js +0 -149
  107. package/ts/customer/verifyotp.d.ts +0 -39
  108. package/ts/customer/verifyotp.js +0 -177
  109. package/ts/customer.d.ts +0 -262
  110. package/ts/customer.js +0 -190
  111. package/ts/customers/getprofile.d.ts +0 -38
  112. package/ts/customers/getprofile.js +0 -162
  113. package/ts/customers/getstep.d.ts +0 -78
  114. package/ts/customers/getstep.js +0 -420
  115. package/ts/customers/profilebasic.d.ts +0 -38
  116. package/ts/customers/profilebasic.js +0 -161
  117. package/ts/customers/profileupdatetnc.d.ts +0 -35
  118. package/ts/customers/profileupdatetnc.js +0 -117
  119. package/ts/customers/sendemailtoken.d.ts +0 -35
  120. package/ts/customers/sendemailtoken.js +0 -117
  121. package/ts/customers/sendotp.d.ts +0 -36
  122. package/ts/customers/sendotp.js +0 -133
  123. package/ts/customers/setmpin.d.ts +0 -36
  124. package/ts/customers/setmpin.js +0 -133
  125. package/ts/customers/step1.d.ts +0 -69
  126. package/ts/customers/step1.js +0 -395
  127. package/ts/customers/step10.d.ts +0 -73
  128. package/ts/customers/step10.js +0 -459
  129. package/ts/customers/step2.d.ts +0 -68
  130. package/ts/customers/step2.js +0 -381
  131. package/ts/customers/step7.d.ts +0 -68
  132. package/ts/customers/step7.js +0 -381
  133. package/ts/customers/step8.d.ts +0 -69
  134. package/ts/customers/step8.js +0 -395
  135. package/ts/customers/step9.d.ts +0 -75
  136. package/ts/customers/step9.js +0 -489
  137. package/ts/customers/stepstatic.d.ts +0 -66
  138. package/ts/customers/stepstatic.js +0 -354
  139. package/ts/customers/verifyemail.d.ts +0 -35
  140. package/ts/customers/verifyemail.js +0 -117
  141. package/ts/customers/verifympin.d.ts +0 -37
  142. package/ts/customers/verifympin.js +0 -149
  143. package/ts/customers/verifyotp.d.ts +0 -39
  144. package/ts/customers/verifyotp.js +0 -177
  145. package/ts/customers.d.ts +0 -304
  146. package/ts/customers.js +0 -220
  147. package/ts/example.d.ts +0 -78
  148. package/ts/example.js +0 -199
  149. package/ts/stashcash/creditsc.d.ts +0 -54
  150. package/ts/stashcash/creditsc.js +0 -301
  151. package/ts/stashcash/debitsc.d.ts +0 -56
  152. package/ts/stashcash/debitsc.js +0 -329
  153. package/ts/stashcash/getscbalance.d.ts +0 -52
  154. package/ts/stashcash/getscbalance.js +0 -271
  155. package/ts/stashcash/getschistory.d.ts +0 -73
  156. package/ts/stashcash/getschistory.js +0 -479
  157. package/ts/stashcash/reversesc.d.ts +0 -52
  158. package/ts/stashcash/reversesc.js +0 -273
  159. package/ts/stashcash.d.ts +0 -84
  160. package/ts/stashcash.js +0 -64
@@ -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,15 @@
1
+ syntax="proto3";
2
+
3
+ package loans.banklist;
4
+
5
+ message bankListRequest { }
6
+
7
+ message bankListResponse {
8
+ repeated Field data = 2;
9
+ message Field {
10
+ int32 id = 1;
11
+ int32 account_number = 2;
12
+ string bank_name =3;
13
+ int32 ifsc_code = 4;
14
+ }
15
+ }
@@ -0,0 +1,15 @@
1
+ syntax="proto3";
2
+
3
+ package loans.calculateemi;
4
+
5
+ message calculateEmiRequest {
6
+ int32 loc_limit =1;
7
+ }
8
+
9
+ message calculateEmiResponse {
10
+ int32 disbursal_amount = 1;
11
+ int32 tenure = 2;
12
+ int32 thirdparty_amount=3;
13
+
14
+ }
15
+
@@ -0,0 +1,10 @@
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
+ }
@@ -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,19 @@
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
+
12
+ service loans {
13
+ rpc creditlimit(.loans.creditlimit.creditLimitRequest) returns (.loans.creditlimit.creditLimitResponse) {}
14
+ rpc calculateemi(.loans.calculateemi.calculateEmiRequest) returns (.loans.calculateemi.calculateEmiResponse) {}
15
+ rpc banklist(.loans.banklist.bankListRequest) returns (.loans.banklist.bankListResponse) {}
16
+ rpc approveLoan(.loans.approveloan.approveLoanRequest) returns (.loans.approveloan.approveLoanResponse) {}
17
+ rpc updateloan(.loans.updateloan.updateLoanRequest) returns (.loans.updateloan.updateLoanResponse) {}
18
+ rpc updateInstallments(.loans.updateinstallments.updateInstallmentsRequest) returns (.loans.updateinstallments.updateInstallmentsResponse) {}
19
+ }
@@ -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
+ }
@@ -0,0 +1,169 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v1.181.0
4
+ // protoc v3.20.3
5
+ // source: customers/getbankaccountdetails.proto
6
+
7
+ /* eslint-disable */
8
+ import _m0 from "protobufjs/minimal";
9
+
10
+ export const protobufPackage = "customers.getbankaccountdetails";
11
+
12
+ export interface getBankAccountDetailsRequest {
13
+ }
14
+
15
+ export interface getBankAccountDetailsResponse {
16
+ account_number: string;
17
+ bank_name: string;
18
+ ifsc_code: string;
19
+ }
20
+
21
+ function createBasegetBankAccountDetailsRequest(): getBankAccountDetailsRequest {
22
+ return {};
23
+ }
24
+
25
+ export const getBankAccountDetailsRequest = {
26
+ encode(_: getBankAccountDetailsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
27
+ return writer;
28
+ },
29
+
30
+ decode(input: _m0.Reader | Uint8Array, length?: number): getBankAccountDetailsRequest {
31
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
32
+ let end = length === undefined ? reader.len : reader.pos + length;
33
+ const message = createBasegetBankAccountDetailsRequest();
34
+ while (reader.pos < end) {
35
+ const tag = reader.uint32();
36
+ switch (tag >>> 3) {
37
+ }
38
+ if ((tag & 7) === 4 || tag === 0) {
39
+ break;
40
+ }
41
+ reader.skipType(tag & 7);
42
+ }
43
+ return message;
44
+ },
45
+
46
+ fromJSON(_: any): getBankAccountDetailsRequest {
47
+ return {};
48
+ },
49
+
50
+ toJSON(_: getBankAccountDetailsRequest): unknown {
51
+ const obj: any = {};
52
+ return obj;
53
+ },
54
+
55
+ create<I extends Exact<DeepPartial<getBankAccountDetailsRequest>, I>>(base?: I): getBankAccountDetailsRequest {
56
+ return getBankAccountDetailsRequest.fromPartial(base ?? ({} as any));
57
+ },
58
+ fromPartial<I extends Exact<DeepPartial<getBankAccountDetailsRequest>, I>>(_: I): getBankAccountDetailsRequest {
59
+ const message = createBasegetBankAccountDetailsRequest();
60
+ return message;
61
+ },
62
+ };
63
+
64
+ function createBasegetBankAccountDetailsResponse(): getBankAccountDetailsResponse {
65
+ return { account_number: "", bank_name: "", ifsc_code: "" };
66
+ }
67
+
68
+ export const getBankAccountDetailsResponse = {
69
+ encode(message: getBankAccountDetailsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
70
+ if (message.account_number !== "") {
71
+ writer.uint32(10).string(message.account_number);
72
+ }
73
+ if (message.bank_name !== "") {
74
+ writer.uint32(18).string(message.bank_name);
75
+ }
76
+ if (message.ifsc_code !== "") {
77
+ writer.uint32(26).string(message.ifsc_code);
78
+ }
79
+ return writer;
80
+ },
81
+
82
+ decode(input: _m0.Reader | Uint8Array, length?: number): getBankAccountDetailsResponse {
83
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
84
+ let end = length === undefined ? reader.len : reader.pos + length;
85
+ const message = createBasegetBankAccountDetailsResponse();
86
+ while (reader.pos < end) {
87
+ const tag = reader.uint32();
88
+ switch (tag >>> 3) {
89
+ case 1:
90
+ if (tag !== 10) {
91
+ break;
92
+ }
93
+
94
+ message.account_number = reader.string();
95
+ continue;
96
+ case 2:
97
+ if (tag !== 18) {
98
+ break;
99
+ }
100
+
101
+ message.bank_name = reader.string();
102
+ continue;
103
+ case 3:
104
+ if (tag !== 26) {
105
+ break;
106
+ }
107
+
108
+ message.ifsc_code = reader.string();
109
+ continue;
110
+ }
111
+ if ((tag & 7) === 4 || tag === 0) {
112
+ break;
113
+ }
114
+ reader.skipType(tag & 7);
115
+ }
116
+ return message;
117
+ },
118
+
119
+ fromJSON(object: any): getBankAccountDetailsResponse {
120
+ return {
121
+ account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
122
+ bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
123
+ ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
124
+ };
125
+ },
126
+
127
+ toJSON(message: getBankAccountDetailsResponse): unknown {
128
+ const obj: any = {};
129
+ if (message.account_number !== "") {
130
+ obj.account_number = message.account_number;
131
+ }
132
+ if (message.bank_name !== "") {
133
+ obj.bank_name = message.bank_name;
134
+ }
135
+ if (message.ifsc_code !== "") {
136
+ obj.ifsc_code = message.ifsc_code;
137
+ }
138
+ return obj;
139
+ },
140
+
141
+ create<I extends Exact<DeepPartial<getBankAccountDetailsResponse>, I>>(base?: I): getBankAccountDetailsResponse {
142
+ return getBankAccountDetailsResponse.fromPartial(base ?? ({} as any));
143
+ },
144
+ fromPartial<I extends Exact<DeepPartial<getBankAccountDetailsResponse>, I>>(
145
+ object: I,
146
+ ): getBankAccountDetailsResponse {
147
+ const message = createBasegetBankAccountDetailsResponse();
148
+ message.account_number = object.account_number ?? "";
149
+ message.bank_name = object.bank_name ?? "";
150
+ message.ifsc_code = object.ifsc_code ?? "";
151
+ return message;
152
+ },
153
+ };
154
+
155
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
156
+
157
+ export type DeepPartial<T> = T extends Builtin ? T
158
+ : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
159
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
160
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
161
+ : Partial<T>;
162
+
163
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
164
+ export type Exact<P, I extends P> = P extends Builtin ? P
165
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
166
+
167
+ function isSet(value: any): boolean {
168
+ return value !== null && value !== undefined;
169
+ }
@@ -0,0 +1,215 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v1.181.0
4
+ // protoc v3.20.3
5
+ // source: customers/getbasicinfo.proto
6
+
7
+ /* eslint-disable */
8
+ import _m0 from "protobufjs/minimal";
9
+
10
+ export const protobufPackage = "customers.getbasicinfo";
11
+
12
+ export interface getBasicInfoRequest {
13
+ }
14
+
15
+ export interface getBasicInfoResponse {
16
+ mobile: string;
17
+ pan: string;
18
+ aadhaar: string;
19
+ personal_email: string;
20
+ curr_address: string;
21
+ permanent_address: string;
22
+ }
23
+
24
+ function createBasegetBasicInfoRequest(): getBasicInfoRequest {
25
+ return {};
26
+ }
27
+
28
+ export const getBasicInfoRequest = {
29
+ encode(_: getBasicInfoRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
30
+ return writer;
31
+ },
32
+
33
+ decode(input: _m0.Reader | Uint8Array, length?: number): getBasicInfoRequest {
34
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
35
+ let end = length === undefined ? reader.len : reader.pos + length;
36
+ const message = createBasegetBasicInfoRequest();
37
+ while (reader.pos < end) {
38
+ const tag = reader.uint32();
39
+ switch (tag >>> 3) {
40
+ }
41
+ if ((tag & 7) === 4 || tag === 0) {
42
+ break;
43
+ }
44
+ reader.skipType(tag & 7);
45
+ }
46
+ return message;
47
+ },
48
+
49
+ fromJSON(_: any): getBasicInfoRequest {
50
+ return {};
51
+ },
52
+
53
+ toJSON(_: getBasicInfoRequest): unknown {
54
+ const obj: any = {};
55
+ return obj;
56
+ },
57
+
58
+ create<I extends Exact<DeepPartial<getBasicInfoRequest>, I>>(base?: I): getBasicInfoRequest {
59
+ return getBasicInfoRequest.fromPartial(base ?? ({} as any));
60
+ },
61
+ fromPartial<I extends Exact<DeepPartial<getBasicInfoRequest>, I>>(_: I): getBasicInfoRequest {
62
+ const message = createBasegetBasicInfoRequest();
63
+ return message;
64
+ },
65
+ };
66
+
67
+ function createBasegetBasicInfoResponse(): getBasicInfoResponse {
68
+ return { mobile: "", pan: "", aadhaar: "", personal_email: "", curr_address: "", permanent_address: "" };
69
+ }
70
+
71
+ export const getBasicInfoResponse = {
72
+ encode(message: getBasicInfoResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
73
+ if (message.mobile !== "") {
74
+ writer.uint32(10).string(message.mobile);
75
+ }
76
+ if (message.pan !== "") {
77
+ writer.uint32(18).string(message.pan);
78
+ }
79
+ if (message.aadhaar !== "") {
80
+ writer.uint32(26).string(message.aadhaar);
81
+ }
82
+ if (message.personal_email !== "") {
83
+ writer.uint32(34).string(message.personal_email);
84
+ }
85
+ if (message.curr_address !== "") {
86
+ writer.uint32(42).string(message.curr_address);
87
+ }
88
+ if (message.permanent_address !== "") {
89
+ writer.uint32(50).string(message.permanent_address);
90
+ }
91
+ return writer;
92
+ },
93
+
94
+ decode(input: _m0.Reader | Uint8Array, length?: number): getBasicInfoResponse {
95
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
96
+ let end = length === undefined ? reader.len : reader.pos + length;
97
+ const message = createBasegetBasicInfoResponse();
98
+ while (reader.pos < end) {
99
+ const tag = reader.uint32();
100
+ switch (tag >>> 3) {
101
+ case 1:
102
+ if (tag !== 10) {
103
+ break;
104
+ }
105
+
106
+ message.mobile = reader.string();
107
+ continue;
108
+ case 2:
109
+ if (tag !== 18) {
110
+ break;
111
+ }
112
+
113
+ message.pan = reader.string();
114
+ continue;
115
+ case 3:
116
+ if (tag !== 26) {
117
+ break;
118
+ }
119
+
120
+ message.aadhaar = reader.string();
121
+ continue;
122
+ case 4:
123
+ if (tag !== 34) {
124
+ break;
125
+ }
126
+
127
+ message.personal_email = reader.string();
128
+ continue;
129
+ case 5:
130
+ if (tag !== 42) {
131
+ break;
132
+ }
133
+
134
+ message.curr_address = reader.string();
135
+ continue;
136
+ case 6:
137
+ if (tag !== 50) {
138
+ break;
139
+ }
140
+
141
+ message.permanent_address = reader.string();
142
+ continue;
143
+ }
144
+ if ((tag & 7) === 4 || tag === 0) {
145
+ break;
146
+ }
147
+ reader.skipType(tag & 7);
148
+ }
149
+ return message;
150
+ },
151
+
152
+ fromJSON(object: any): getBasicInfoResponse {
153
+ return {
154
+ mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
155
+ pan: isSet(object.pan) ? globalThis.String(object.pan) : "",
156
+ aadhaar: isSet(object.aadhaar) ? globalThis.String(object.aadhaar) : "",
157
+ personal_email: isSet(object.personal_email) ? globalThis.String(object.personal_email) : "",
158
+ curr_address: isSet(object.curr_address) ? globalThis.String(object.curr_address) : "",
159
+ permanent_address: isSet(object.permanent_address) ? globalThis.String(object.permanent_address) : "",
160
+ };
161
+ },
162
+
163
+ toJSON(message: getBasicInfoResponse): unknown {
164
+ const obj: any = {};
165
+ if (message.mobile !== "") {
166
+ obj.mobile = message.mobile;
167
+ }
168
+ if (message.pan !== "") {
169
+ obj.pan = message.pan;
170
+ }
171
+ if (message.aadhaar !== "") {
172
+ obj.aadhaar = message.aadhaar;
173
+ }
174
+ if (message.personal_email !== "") {
175
+ obj.personal_email = message.personal_email;
176
+ }
177
+ if (message.curr_address !== "") {
178
+ obj.curr_address = message.curr_address;
179
+ }
180
+ if (message.permanent_address !== "") {
181
+ obj.permanent_address = message.permanent_address;
182
+ }
183
+ return obj;
184
+ },
185
+
186
+ create<I extends Exact<DeepPartial<getBasicInfoResponse>, I>>(base?: I): getBasicInfoResponse {
187
+ return getBasicInfoResponse.fromPartial(base ?? ({} as any));
188
+ },
189
+ fromPartial<I extends Exact<DeepPartial<getBasicInfoResponse>, I>>(object: I): getBasicInfoResponse {
190
+ const message = createBasegetBasicInfoResponse();
191
+ message.mobile = object.mobile ?? "";
192
+ message.pan = object.pan ?? "";
193
+ message.aadhaar = object.aadhaar ?? "";
194
+ message.personal_email = object.personal_email ?? "";
195
+ message.curr_address = object.curr_address ?? "";
196
+ message.permanent_address = object.permanent_address ?? "";
197
+ return message;
198
+ },
199
+ };
200
+
201
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
202
+
203
+ export type DeepPartial<T> = T extends Builtin ? T
204
+ : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
205
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
206
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
207
+ : Partial<T>;
208
+
209
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
210
+ export type Exact<P, I extends P> = P extends Builtin ? P
211
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
212
+
213
+ function isSet(value: any): boolean {
214
+ return value !== null && value !== undefined;
215
+ }