@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
@@ -0,0 +1,310 @@
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/addaddress.proto
6
+
7
+ /* eslint-disable */
8
+ import _m0 from "protobufjs/minimal";
9
+
10
+ export const protobufPackage = "customers.addaddress";
11
+
12
+ export enum AddressType {
13
+ CURRENT = 0,
14
+ PERMANENT = 1,
15
+ OFFICE = 2,
16
+ UNRECOGNIZED = -1,
17
+ }
18
+
19
+ export function addressTypeFromJSON(object: any): AddressType {
20
+ switch (object) {
21
+ case 0:
22
+ case "CURRENT":
23
+ return AddressType.CURRENT;
24
+ case 1:
25
+ case "PERMANENT":
26
+ return AddressType.PERMANENT;
27
+ case 2:
28
+ case "OFFICE":
29
+ return AddressType.OFFICE;
30
+ case -1:
31
+ case "UNRECOGNIZED":
32
+ default:
33
+ return AddressType.UNRECOGNIZED;
34
+ }
35
+ }
36
+
37
+ export function addressTypeToJSON(object: AddressType): string {
38
+ switch (object) {
39
+ case AddressType.CURRENT:
40
+ return "CURRENT";
41
+ case AddressType.PERMANENT:
42
+ return "PERMANENT";
43
+ case AddressType.OFFICE:
44
+ return "OFFICE";
45
+ case AddressType.UNRECOGNIZED:
46
+ default:
47
+ return "UNRECOGNIZED";
48
+ }
49
+ }
50
+
51
+ export interface addAddressRequest {
52
+ address_type: AddressType;
53
+ house_flat_no: string;
54
+ address_line_1: string;
55
+ address_line_2: string;
56
+ landmark: string;
57
+ state_id: number;
58
+ city_id: number;
59
+ pin_code: string;
60
+ }
61
+
62
+ export interface addAddressResponse {
63
+ status: boolean;
64
+ }
65
+
66
+ function createBaseaddAddressRequest(): addAddressRequest {
67
+ return {
68
+ address_type: 0,
69
+ house_flat_no: "",
70
+ address_line_1: "",
71
+ address_line_2: "",
72
+ landmark: "",
73
+ state_id: 0,
74
+ city_id: 0,
75
+ pin_code: "",
76
+ };
77
+ }
78
+
79
+ export const addAddressRequest = {
80
+ encode(message: addAddressRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
81
+ if (message.address_type !== 0) {
82
+ writer.uint32(8).int32(message.address_type);
83
+ }
84
+ if (message.house_flat_no !== "") {
85
+ writer.uint32(18).string(message.house_flat_no);
86
+ }
87
+ if (message.address_line_1 !== "") {
88
+ writer.uint32(26).string(message.address_line_1);
89
+ }
90
+ if (message.address_line_2 !== "") {
91
+ writer.uint32(34).string(message.address_line_2);
92
+ }
93
+ if (message.landmark !== "") {
94
+ writer.uint32(42).string(message.landmark);
95
+ }
96
+ if (message.state_id !== 0) {
97
+ writer.uint32(56).int32(message.state_id);
98
+ }
99
+ if (message.city_id !== 0) {
100
+ writer.uint32(64).int32(message.city_id);
101
+ }
102
+ if (message.pin_code !== "") {
103
+ writer.uint32(74).string(message.pin_code);
104
+ }
105
+ return writer;
106
+ },
107
+
108
+ decode(input: _m0.Reader | Uint8Array, length?: number): addAddressRequest {
109
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
110
+ let end = length === undefined ? reader.len : reader.pos + length;
111
+ const message = createBaseaddAddressRequest();
112
+ while (reader.pos < end) {
113
+ const tag = reader.uint32();
114
+ switch (tag >>> 3) {
115
+ case 1:
116
+ if (tag !== 8) {
117
+ break;
118
+ }
119
+
120
+ message.address_type = reader.int32() as any;
121
+ continue;
122
+ case 2:
123
+ if (tag !== 18) {
124
+ break;
125
+ }
126
+
127
+ message.house_flat_no = reader.string();
128
+ continue;
129
+ case 3:
130
+ if (tag !== 26) {
131
+ break;
132
+ }
133
+
134
+ message.address_line_1 = reader.string();
135
+ continue;
136
+ case 4:
137
+ if (tag !== 34) {
138
+ break;
139
+ }
140
+
141
+ message.address_line_2 = reader.string();
142
+ continue;
143
+ case 5:
144
+ if (tag !== 42) {
145
+ break;
146
+ }
147
+
148
+ message.landmark = reader.string();
149
+ continue;
150
+ case 7:
151
+ if (tag !== 56) {
152
+ break;
153
+ }
154
+
155
+ message.state_id = reader.int32();
156
+ continue;
157
+ case 8:
158
+ if (tag !== 64) {
159
+ break;
160
+ }
161
+
162
+ message.city_id = reader.int32();
163
+ continue;
164
+ case 9:
165
+ if (tag !== 74) {
166
+ break;
167
+ }
168
+
169
+ message.pin_code = reader.string();
170
+ continue;
171
+ }
172
+ if ((tag & 7) === 4 || tag === 0) {
173
+ break;
174
+ }
175
+ reader.skipType(tag & 7);
176
+ }
177
+ return message;
178
+ },
179
+
180
+ fromJSON(object: any): addAddressRequest {
181
+ return {
182
+ address_type: isSet(object.address_type) ? addressTypeFromJSON(object.address_type) : 0,
183
+ house_flat_no: isSet(object.house_flat_no) ? globalThis.String(object.house_flat_no) : "",
184
+ address_line_1: isSet(object.address_line_1) ? globalThis.String(object.address_line_1) : "",
185
+ address_line_2: isSet(object.address_line_2) ? globalThis.String(object.address_line_2) : "",
186
+ landmark: isSet(object.landmark) ? globalThis.String(object.landmark) : "",
187
+ state_id: isSet(object.state_id) ? globalThis.Number(object.state_id) : 0,
188
+ city_id: isSet(object.city_id) ? globalThis.Number(object.city_id) : 0,
189
+ pin_code: isSet(object.pin_code) ? globalThis.String(object.pin_code) : "",
190
+ };
191
+ },
192
+
193
+ toJSON(message: addAddressRequest): unknown {
194
+ const obj: any = {};
195
+ if (message.address_type !== 0) {
196
+ obj.address_type = addressTypeToJSON(message.address_type);
197
+ }
198
+ if (message.house_flat_no !== "") {
199
+ obj.house_flat_no = message.house_flat_no;
200
+ }
201
+ if (message.address_line_1 !== "") {
202
+ obj.address_line_1 = message.address_line_1;
203
+ }
204
+ if (message.address_line_2 !== "") {
205
+ obj.address_line_2 = message.address_line_2;
206
+ }
207
+ if (message.landmark !== "") {
208
+ obj.landmark = message.landmark;
209
+ }
210
+ if (message.state_id !== 0) {
211
+ obj.state_id = Math.round(message.state_id);
212
+ }
213
+ if (message.city_id !== 0) {
214
+ obj.city_id = Math.round(message.city_id);
215
+ }
216
+ if (message.pin_code !== "") {
217
+ obj.pin_code = message.pin_code;
218
+ }
219
+ return obj;
220
+ },
221
+
222
+ create<I extends Exact<DeepPartial<addAddressRequest>, I>>(base?: I): addAddressRequest {
223
+ return addAddressRequest.fromPartial(base ?? ({} as any));
224
+ },
225
+ fromPartial<I extends Exact<DeepPartial<addAddressRequest>, I>>(object: I): addAddressRequest {
226
+ const message = createBaseaddAddressRequest();
227
+ message.address_type = object.address_type ?? 0;
228
+ message.house_flat_no = object.house_flat_no ?? "";
229
+ message.address_line_1 = object.address_line_1 ?? "";
230
+ message.address_line_2 = object.address_line_2 ?? "";
231
+ message.landmark = object.landmark ?? "";
232
+ message.state_id = object.state_id ?? 0;
233
+ message.city_id = object.city_id ?? 0;
234
+ message.pin_code = object.pin_code ?? "";
235
+ return message;
236
+ },
237
+ };
238
+
239
+ function createBaseaddAddressResponse(): addAddressResponse {
240
+ return { status: false };
241
+ }
242
+
243
+ export const addAddressResponse = {
244
+ encode(message: addAddressResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
245
+ if (message.status !== false) {
246
+ writer.uint32(8).bool(message.status);
247
+ }
248
+ return writer;
249
+ },
250
+
251
+ decode(input: _m0.Reader | Uint8Array, length?: number): addAddressResponse {
252
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
253
+ let end = length === undefined ? reader.len : reader.pos + length;
254
+ const message = createBaseaddAddressResponse();
255
+ while (reader.pos < end) {
256
+ const tag = reader.uint32();
257
+ switch (tag >>> 3) {
258
+ case 1:
259
+ if (tag !== 8) {
260
+ break;
261
+ }
262
+
263
+ message.status = reader.bool();
264
+ continue;
265
+ }
266
+ if ((tag & 7) === 4 || tag === 0) {
267
+ break;
268
+ }
269
+ reader.skipType(tag & 7);
270
+ }
271
+ return message;
272
+ },
273
+
274
+ fromJSON(object: any): addAddressResponse {
275
+ return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
276
+ },
277
+
278
+ toJSON(message: addAddressResponse): unknown {
279
+ const obj: any = {};
280
+ if (message.status !== false) {
281
+ obj.status = message.status;
282
+ }
283
+ return obj;
284
+ },
285
+
286
+ create<I extends Exact<DeepPartial<addAddressResponse>, I>>(base?: I): addAddressResponse {
287
+ return addAddressResponse.fromPartial(base ?? ({} as any));
288
+ },
289
+ fromPartial<I extends Exact<DeepPartial<addAddressResponse>, I>>(object: I): addAddressResponse {
290
+ const message = createBaseaddAddressResponse();
291
+ message.status = object.status ?? false;
292
+ return message;
293
+ },
294
+ };
295
+
296
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
297
+
298
+ export type DeepPartial<T> = T extends Builtin ? T
299
+ : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
300
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
301
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
302
+ : Partial<T>;
303
+
304
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
305
+ export type Exact<P, I extends P> = P extends Builtin ? P
306
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
307
+
308
+ function isSet(value: any): boolean {
309
+ return value !== null && value !== undefined;
310
+ }
@@ -0,0 +1,184 @@
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/addbankaccountdetails.proto
6
+
7
+ /* eslint-disable */
8
+ import _m0 from "protobufjs/minimal";
9
+
10
+ export const protobufPackage = "customers.addbankaccountdetails";
11
+
12
+ export interface addBankAccountDetailsRequest {
13
+ account_number: string;
14
+ bank_name: string;
15
+ ifsc_code: string;
16
+ }
17
+
18
+ export interface addBankAccountDetailsResponse {
19
+ id: number;
20
+ }
21
+
22
+ function createBaseaddBankAccountDetailsRequest(): addBankAccountDetailsRequest {
23
+ return { account_number: "", bank_name: "", ifsc_code: "" };
24
+ }
25
+
26
+ export const addBankAccountDetailsRequest = {
27
+ encode(message: addBankAccountDetailsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
28
+ if (message.account_number !== "") {
29
+ writer.uint32(10).string(message.account_number);
30
+ }
31
+ if (message.bank_name !== "") {
32
+ writer.uint32(18).string(message.bank_name);
33
+ }
34
+ if (message.ifsc_code !== "") {
35
+ writer.uint32(26).string(message.ifsc_code);
36
+ }
37
+ return writer;
38
+ },
39
+
40
+ decode(input: _m0.Reader | Uint8Array, length?: number): addBankAccountDetailsRequest {
41
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
42
+ let end = length === undefined ? reader.len : reader.pos + length;
43
+ const message = createBaseaddBankAccountDetailsRequest();
44
+ while (reader.pos < end) {
45
+ const tag = reader.uint32();
46
+ switch (tag >>> 3) {
47
+ case 1:
48
+ if (tag !== 10) {
49
+ break;
50
+ }
51
+
52
+ message.account_number = reader.string();
53
+ continue;
54
+ case 2:
55
+ if (tag !== 18) {
56
+ break;
57
+ }
58
+
59
+ message.bank_name = reader.string();
60
+ continue;
61
+ case 3:
62
+ if (tag !== 26) {
63
+ break;
64
+ }
65
+
66
+ message.ifsc_code = reader.string();
67
+ continue;
68
+ }
69
+ if ((tag & 7) === 4 || tag === 0) {
70
+ break;
71
+ }
72
+ reader.skipType(tag & 7);
73
+ }
74
+ return message;
75
+ },
76
+
77
+ fromJSON(object: any): addBankAccountDetailsRequest {
78
+ return {
79
+ account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
80
+ bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
81
+ ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
82
+ };
83
+ },
84
+
85
+ toJSON(message: addBankAccountDetailsRequest): unknown {
86
+ const obj: any = {};
87
+ if (message.account_number !== "") {
88
+ obj.account_number = message.account_number;
89
+ }
90
+ if (message.bank_name !== "") {
91
+ obj.bank_name = message.bank_name;
92
+ }
93
+ if (message.ifsc_code !== "") {
94
+ obj.ifsc_code = message.ifsc_code;
95
+ }
96
+ return obj;
97
+ },
98
+
99
+ create<I extends Exact<DeepPartial<addBankAccountDetailsRequest>, I>>(base?: I): addBankAccountDetailsRequest {
100
+ return addBankAccountDetailsRequest.fromPartial(base ?? ({} as any));
101
+ },
102
+ fromPartial<I extends Exact<DeepPartial<addBankAccountDetailsRequest>, I>>(object: I): addBankAccountDetailsRequest {
103
+ const message = createBaseaddBankAccountDetailsRequest();
104
+ message.account_number = object.account_number ?? "";
105
+ message.bank_name = object.bank_name ?? "";
106
+ message.ifsc_code = object.ifsc_code ?? "";
107
+ return message;
108
+ },
109
+ };
110
+
111
+ function createBaseaddBankAccountDetailsResponse(): addBankAccountDetailsResponse {
112
+ return { id: 0 };
113
+ }
114
+
115
+ export const addBankAccountDetailsResponse = {
116
+ encode(message: addBankAccountDetailsResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
117
+ if (message.id !== 0) {
118
+ writer.uint32(8).int32(message.id);
119
+ }
120
+ return writer;
121
+ },
122
+
123
+ decode(input: _m0.Reader | Uint8Array, length?: number): addBankAccountDetailsResponse {
124
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
125
+ let end = length === undefined ? reader.len : reader.pos + length;
126
+ const message = createBaseaddBankAccountDetailsResponse();
127
+ while (reader.pos < end) {
128
+ const tag = reader.uint32();
129
+ switch (tag >>> 3) {
130
+ case 1:
131
+ if (tag !== 8) {
132
+ break;
133
+ }
134
+
135
+ message.id = reader.int32();
136
+ continue;
137
+ }
138
+ if ((tag & 7) === 4 || tag === 0) {
139
+ break;
140
+ }
141
+ reader.skipType(tag & 7);
142
+ }
143
+ return message;
144
+ },
145
+
146
+ fromJSON(object: any): addBankAccountDetailsResponse {
147
+ return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
148
+ },
149
+
150
+ toJSON(message: addBankAccountDetailsResponse): unknown {
151
+ const obj: any = {};
152
+ if (message.id !== 0) {
153
+ obj.id = Math.round(message.id);
154
+ }
155
+ return obj;
156
+ },
157
+
158
+ create<I extends Exact<DeepPartial<addBankAccountDetailsResponse>, I>>(base?: I): addBankAccountDetailsResponse {
159
+ return addBankAccountDetailsResponse.fromPartial(base ?? ({} as any));
160
+ },
161
+ fromPartial<I extends Exact<DeepPartial<addBankAccountDetailsResponse>, I>>(
162
+ object: I,
163
+ ): addBankAccountDetailsResponse {
164
+ const message = createBaseaddBankAccountDetailsResponse();
165
+ message.id = object.id ?? 0;
166
+ return message;
167
+ },
168
+ };
169
+
170
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
171
+
172
+ export type DeepPartial<T> = T extends Builtin ? T
173
+ : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
174
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
175
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
176
+ : Partial<T>;
177
+
178
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
179
+ export type Exact<P, I extends P> = P extends Builtin ? P
180
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
181
+
182
+ function isSet(value: any): boolean {
183
+ return value !== null && value !== undefined;
184
+ }