@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,608 @@
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/getdashboardmaincard.proto
6
+
7
+ /* eslint-disable */
8
+ import _m0 from "protobufjs/minimal";
9
+
10
+ export const protobufPackage = "customers.getdashboardmaincard";
11
+
12
+ export interface getDashboardMainCardRequest {
13
+ }
14
+
15
+ export interface getDashboardMainCardResponse {
16
+ block_name: string;
17
+ block_code: string;
18
+ block_data: MainCardData | undefined;
19
+ }
20
+
21
+ export interface MainCardData {
22
+ text: string;
23
+ amount_text: string;
24
+ sub_text: string;
25
+ action_button_text: string;
26
+ action: string;
27
+ action_type: string;
28
+ total_loc: number;
29
+ used_loc: number;
30
+ available_sp_loc: number;
31
+ can_reload_card: boolean;
32
+ disbursed_amount: string;
33
+ remaining_emi: string;
34
+ balance_emi_amount: number;
35
+ comment: string;
36
+ landing_page: string;
37
+ timer: string;
38
+ image: string;
39
+ loc_error: string;
40
+ show_button: boolean;
41
+ total_stash_cash: string;
42
+ supp_title: string;
43
+ supp_loc_status: number;
44
+ supp_sub_title: string;
45
+ }
46
+
47
+ function createBasegetDashboardMainCardRequest(): getDashboardMainCardRequest {
48
+ return {};
49
+ }
50
+
51
+ export const getDashboardMainCardRequest = {
52
+ encode(_: getDashboardMainCardRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
53
+ return writer;
54
+ },
55
+
56
+ decode(input: _m0.Reader | Uint8Array, length?: number): getDashboardMainCardRequest {
57
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
58
+ let end = length === undefined ? reader.len : reader.pos + length;
59
+ const message = createBasegetDashboardMainCardRequest();
60
+ while (reader.pos < end) {
61
+ const tag = reader.uint32();
62
+ switch (tag >>> 3) {
63
+ }
64
+ if ((tag & 7) === 4 || tag === 0) {
65
+ break;
66
+ }
67
+ reader.skipType(tag & 7);
68
+ }
69
+ return message;
70
+ },
71
+
72
+ fromJSON(_: any): getDashboardMainCardRequest {
73
+ return {};
74
+ },
75
+
76
+ toJSON(_: getDashboardMainCardRequest): unknown {
77
+ const obj: any = {};
78
+ return obj;
79
+ },
80
+
81
+ create<I extends Exact<DeepPartial<getDashboardMainCardRequest>, I>>(base?: I): getDashboardMainCardRequest {
82
+ return getDashboardMainCardRequest.fromPartial(base ?? ({} as any));
83
+ },
84
+ fromPartial<I extends Exact<DeepPartial<getDashboardMainCardRequest>, I>>(_: I): getDashboardMainCardRequest {
85
+ const message = createBasegetDashboardMainCardRequest();
86
+ return message;
87
+ },
88
+ };
89
+
90
+ function createBasegetDashboardMainCardResponse(): getDashboardMainCardResponse {
91
+ return { block_name: "", block_code: "", block_data: undefined };
92
+ }
93
+
94
+ export const getDashboardMainCardResponse = {
95
+ encode(message: getDashboardMainCardResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
96
+ if (message.block_name !== "") {
97
+ writer.uint32(10).string(message.block_name);
98
+ }
99
+ if (message.block_code !== "") {
100
+ writer.uint32(18).string(message.block_code);
101
+ }
102
+ if (message.block_data !== undefined) {
103
+ MainCardData.encode(message.block_data, writer.uint32(26).fork()).ldelim();
104
+ }
105
+ return writer;
106
+ },
107
+
108
+ decode(input: _m0.Reader | Uint8Array, length?: number): getDashboardMainCardResponse {
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 = createBasegetDashboardMainCardResponse();
112
+ while (reader.pos < end) {
113
+ const tag = reader.uint32();
114
+ switch (tag >>> 3) {
115
+ case 1:
116
+ if (tag !== 10) {
117
+ break;
118
+ }
119
+
120
+ message.block_name = reader.string();
121
+ continue;
122
+ case 2:
123
+ if (tag !== 18) {
124
+ break;
125
+ }
126
+
127
+ message.block_code = reader.string();
128
+ continue;
129
+ case 3:
130
+ if (tag !== 26) {
131
+ break;
132
+ }
133
+
134
+ message.block_data = MainCardData.decode(reader, reader.uint32());
135
+ continue;
136
+ }
137
+ if ((tag & 7) === 4 || tag === 0) {
138
+ break;
139
+ }
140
+ reader.skipType(tag & 7);
141
+ }
142
+ return message;
143
+ },
144
+
145
+ fromJSON(object: any): getDashboardMainCardResponse {
146
+ return {
147
+ block_name: isSet(object.block_name) ? globalThis.String(object.block_name) : "",
148
+ block_code: isSet(object.block_code) ? globalThis.String(object.block_code) : "",
149
+ block_data: isSet(object.block_data) ? MainCardData.fromJSON(object.block_data) : undefined,
150
+ };
151
+ },
152
+
153
+ toJSON(message: getDashboardMainCardResponse): unknown {
154
+ const obj: any = {};
155
+ if (message.block_name !== "") {
156
+ obj.block_name = message.block_name;
157
+ }
158
+ if (message.block_code !== "") {
159
+ obj.block_code = message.block_code;
160
+ }
161
+ if (message.block_data !== undefined) {
162
+ obj.block_data = MainCardData.toJSON(message.block_data);
163
+ }
164
+ return obj;
165
+ },
166
+
167
+ create<I extends Exact<DeepPartial<getDashboardMainCardResponse>, I>>(base?: I): getDashboardMainCardResponse {
168
+ return getDashboardMainCardResponse.fromPartial(base ?? ({} as any));
169
+ },
170
+ fromPartial<I extends Exact<DeepPartial<getDashboardMainCardResponse>, I>>(object: I): getDashboardMainCardResponse {
171
+ const message = createBasegetDashboardMainCardResponse();
172
+ message.block_name = object.block_name ?? "";
173
+ message.block_code = object.block_code ?? "";
174
+ message.block_data = (object.block_data !== undefined && object.block_data !== null)
175
+ ? MainCardData.fromPartial(object.block_data)
176
+ : undefined;
177
+ return message;
178
+ },
179
+ };
180
+
181
+ function createBaseMainCardData(): MainCardData {
182
+ return {
183
+ text: "",
184
+ amount_text: "",
185
+ sub_text: "",
186
+ action_button_text: "",
187
+ action: "",
188
+ action_type: "",
189
+ total_loc: 0,
190
+ used_loc: 0,
191
+ available_sp_loc: 0,
192
+ can_reload_card: false,
193
+ disbursed_amount: "",
194
+ remaining_emi: "",
195
+ balance_emi_amount: 0,
196
+ comment: "",
197
+ landing_page: "",
198
+ timer: "",
199
+ image: "",
200
+ loc_error: "",
201
+ show_button: false,
202
+ total_stash_cash: "",
203
+ supp_title: "",
204
+ supp_loc_status: 0,
205
+ supp_sub_title: "",
206
+ };
207
+ }
208
+
209
+ export const MainCardData = {
210
+ encode(message: MainCardData, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
211
+ if (message.text !== "") {
212
+ writer.uint32(10).string(message.text);
213
+ }
214
+ if (message.amount_text !== "") {
215
+ writer.uint32(18).string(message.amount_text);
216
+ }
217
+ if (message.sub_text !== "") {
218
+ writer.uint32(26).string(message.sub_text);
219
+ }
220
+ if (message.action_button_text !== "") {
221
+ writer.uint32(34).string(message.action_button_text);
222
+ }
223
+ if (message.action !== "") {
224
+ writer.uint32(42).string(message.action);
225
+ }
226
+ if (message.action_type !== "") {
227
+ writer.uint32(50).string(message.action_type);
228
+ }
229
+ if (message.total_loc !== 0) {
230
+ writer.uint32(56).int32(message.total_loc);
231
+ }
232
+ if (message.used_loc !== 0) {
233
+ writer.uint32(64).int32(message.used_loc);
234
+ }
235
+ if (message.available_sp_loc !== 0) {
236
+ writer.uint32(72).int32(message.available_sp_loc);
237
+ }
238
+ if (message.can_reload_card !== false) {
239
+ writer.uint32(80).bool(message.can_reload_card);
240
+ }
241
+ if (message.disbursed_amount !== "") {
242
+ writer.uint32(90).string(message.disbursed_amount);
243
+ }
244
+ if (message.remaining_emi !== "") {
245
+ writer.uint32(98).string(message.remaining_emi);
246
+ }
247
+ if (message.balance_emi_amount !== 0) {
248
+ writer.uint32(104).int32(message.balance_emi_amount);
249
+ }
250
+ if (message.comment !== "") {
251
+ writer.uint32(114).string(message.comment);
252
+ }
253
+ if (message.landing_page !== "") {
254
+ writer.uint32(122).string(message.landing_page);
255
+ }
256
+ if (message.timer !== "") {
257
+ writer.uint32(130).string(message.timer);
258
+ }
259
+ if (message.image !== "") {
260
+ writer.uint32(138).string(message.image);
261
+ }
262
+ if (message.loc_error !== "") {
263
+ writer.uint32(146).string(message.loc_error);
264
+ }
265
+ if (message.show_button !== false) {
266
+ writer.uint32(152).bool(message.show_button);
267
+ }
268
+ if (message.total_stash_cash !== "") {
269
+ writer.uint32(162).string(message.total_stash_cash);
270
+ }
271
+ if (message.supp_title !== "") {
272
+ writer.uint32(170).string(message.supp_title);
273
+ }
274
+ if (message.supp_loc_status !== 0) {
275
+ writer.uint32(176).int32(message.supp_loc_status);
276
+ }
277
+ if (message.supp_sub_title !== "") {
278
+ writer.uint32(186).string(message.supp_sub_title);
279
+ }
280
+ return writer;
281
+ },
282
+
283
+ decode(input: _m0.Reader | Uint8Array, length?: number): MainCardData {
284
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
285
+ let end = length === undefined ? reader.len : reader.pos + length;
286
+ const message = createBaseMainCardData();
287
+ while (reader.pos < end) {
288
+ const tag = reader.uint32();
289
+ switch (tag >>> 3) {
290
+ case 1:
291
+ if (tag !== 10) {
292
+ break;
293
+ }
294
+
295
+ message.text = reader.string();
296
+ continue;
297
+ case 2:
298
+ if (tag !== 18) {
299
+ break;
300
+ }
301
+
302
+ message.amount_text = reader.string();
303
+ continue;
304
+ case 3:
305
+ if (tag !== 26) {
306
+ break;
307
+ }
308
+
309
+ message.sub_text = reader.string();
310
+ continue;
311
+ case 4:
312
+ if (tag !== 34) {
313
+ break;
314
+ }
315
+
316
+ message.action_button_text = reader.string();
317
+ continue;
318
+ case 5:
319
+ if (tag !== 42) {
320
+ break;
321
+ }
322
+
323
+ message.action = reader.string();
324
+ continue;
325
+ case 6:
326
+ if (tag !== 50) {
327
+ break;
328
+ }
329
+
330
+ message.action_type = reader.string();
331
+ continue;
332
+ case 7:
333
+ if (tag !== 56) {
334
+ break;
335
+ }
336
+
337
+ message.total_loc = reader.int32();
338
+ continue;
339
+ case 8:
340
+ if (tag !== 64) {
341
+ break;
342
+ }
343
+
344
+ message.used_loc = reader.int32();
345
+ continue;
346
+ case 9:
347
+ if (tag !== 72) {
348
+ break;
349
+ }
350
+
351
+ message.available_sp_loc = reader.int32();
352
+ continue;
353
+ case 10:
354
+ if (tag !== 80) {
355
+ break;
356
+ }
357
+
358
+ message.can_reload_card = reader.bool();
359
+ continue;
360
+ case 11:
361
+ if (tag !== 90) {
362
+ break;
363
+ }
364
+
365
+ message.disbursed_amount = reader.string();
366
+ continue;
367
+ case 12:
368
+ if (tag !== 98) {
369
+ break;
370
+ }
371
+
372
+ message.remaining_emi = reader.string();
373
+ continue;
374
+ case 13:
375
+ if (tag !== 104) {
376
+ break;
377
+ }
378
+
379
+ message.balance_emi_amount = reader.int32();
380
+ continue;
381
+ case 14:
382
+ if (tag !== 114) {
383
+ break;
384
+ }
385
+
386
+ message.comment = reader.string();
387
+ continue;
388
+ case 15:
389
+ if (tag !== 122) {
390
+ break;
391
+ }
392
+
393
+ message.landing_page = reader.string();
394
+ continue;
395
+ case 16:
396
+ if (tag !== 130) {
397
+ break;
398
+ }
399
+
400
+ message.timer = reader.string();
401
+ continue;
402
+ case 17:
403
+ if (tag !== 138) {
404
+ break;
405
+ }
406
+
407
+ message.image = reader.string();
408
+ continue;
409
+ case 18:
410
+ if (tag !== 146) {
411
+ break;
412
+ }
413
+
414
+ message.loc_error = reader.string();
415
+ continue;
416
+ case 19:
417
+ if (tag !== 152) {
418
+ break;
419
+ }
420
+
421
+ message.show_button = reader.bool();
422
+ continue;
423
+ case 20:
424
+ if (tag !== 162) {
425
+ break;
426
+ }
427
+
428
+ message.total_stash_cash = reader.string();
429
+ continue;
430
+ case 21:
431
+ if (tag !== 170) {
432
+ break;
433
+ }
434
+
435
+ message.supp_title = reader.string();
436
+ continue;
437
+ case 22:
438
+ if (tag !== 176) {
439
+ break;
440
+ }
441
+
442
+ message.supp_loc_status = reader.int32();
443
+ continue;
444
+ case 23:
445
+ if (tag !== 186) {
446
+ break;
447
+ }
448
+
449
+ message.supp_sub_title = reader.string();
450
+ continue;
451
+ }
452
+ if ((tag & 7) === 4 || tag === 0) {
453
+ break;
454
+ }
455
+ reader.skipType(tag & 7);
456
+ }
457
+ return message;
458
+ },
459
+
460
+ fromJSON(object: any): MainCardData {
461
+ return {
462
+ text: isSet(object.text) ? globalThis.String(object.text) : "",
463
+ amount_text: isSet(object.amount_text) ? globalThis.String(object.amount_text) : "",
464
+ sub_text: isSet(object.sub_text) ? globalThis.String(object.sub_text) : "",
465
+ action_button_text: isSet(object.action_button_text) ? globalThis.String(object.action_button_text) : "",
466
+ action: isSet(object.action) ? globalThis.String(object.action) : "",
467
+ action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
468
+ total_loc: isSet(object.total_loc) ? globalThis.Number(object.total_loc) : 0,
469
+ used_loc: isSet(object.used_loc) ? globalThis.Number(object.used_loc) : 0,
470
+ available_sp_loc: isSet(object.available_sp_loc) ? globalThis.Number(object.available_sp_loc) : 0,
471
+ can_reload_card: isSet(object.can_reload_card) ? globalThis.Boolean(object.can_reload_card) : false,
472
+ disbursed_amount: isSet(object.disbursed_amount) ? globalThis.String(object.disbursed_amount) : "",
473
+ remaining_emi: isSet(object.remaining_emi) ? globalThis.String(object.remaining_emi) : "",
474
+ balance_emi_amount: isSet(object.balance_emi_amount) ? globalThis.Number(object.balance_emi_amount) : 0,
475
+ comment: isSet(object.comment) ? globalThis.String(object.comment) : "",
476
+ landing_page: isSet(object.landing_page) ? globalThis.String(object.landing_page) : "",
477
+ timer: isSet(object.timer) ? globalThis.String(object.timer) : "",
478
+ image: isSet(object.image) ? globalThis.String(object.image) : "",
479
+ loc_error: isSet(object.loc_error) ? globalThis.String(object.loc_error) : "",
480
+ show_button: isSet(object.show_button) ? globalThis.Boolean(object.show_button) : false,
481
+ total_stash_cash: isSet(object.total_stash_cash) ? globalThis.String(object.total_stash_cash) : "",
482
+ supp_title: isSet(object.supp_title) ? globalThis.String(object.supp_title) : "",
483
+ supp_loc_status: isSet(object.supp_loc_status) ? globalThis.Number(object.supp_loc_status) : 0,
484
+ supp_sub_title: isSet(object.supp_sub_title) ? globalThis.String(object.supp_sub_title) : "",
485
+ };
486
+ },
487
+
488
+ toJSON(message: MainCardData): unknown {
489
+ const obj: any = {};
490
+ if (message.text !== "") {
491
+ obj.text = message.text;
492
+ }
493
+ if (message.amount_text !== "") {
494
+ obj.amount_text = message.amount_text;
495
+ }
496
+ if (message.sub_text !== "") {
497
+ obj.sub_text = message.sub_text;
498
+ }
499
+ if (message.action_button_text !== "") {
500
+ obj.action_button_text = message.action_button_text;
501
+ }
502
+ if (message.action !== "") {
503
+ obj.action = message.action;
504
+ }
505
+ if (message.action_type !== "") {
506
+ obj.action_type = message.action_type;
507
+ }
508
+ if (message.total_loc !== 0) {
509
+ obj.total_loc = Math.round(message.total_loc);
510
+ }
511
+ if (message.used_loc !== 0) {
512
+ obj.used_loc = Math.round(message.used_loc);
513
+ }
514
+ if (message.available_sp_loc !== 0) {
515
+ obj.available_sp_loc = Math.round(message.available_sp_loc);
516
+ }
517
+ if (message.can_reload_card !== false) {
518
+ obj.can_reload_card = message.can_reload_card;
519
+ }
520
+ if (message.disbursed_amount !== "") {
521
+ obj.disbursed_amount = message.disbursed_amount;
522
+ }
523
+ if (message.remaining_emi !== "") {
524
+ obj.remaining_emi = message.remaining_emi;
525
+ }
526
+ if (message.balance_emi_amount !== 0) {
527
+ obj.balance_emi_amount = Math.round(message.balance_emi_amount);
528
+ }
529
+ if (message.comment !== "") {
530
+ obj.comment = message.comment;
531
+ }
532
+ if (message.landing_page !== "") {
533
+ obj.landing_page = message.landing_page;
534
+ }
535
+ if (message.timer !== "") {
536
+ obj.timer = message.timer;
537
+ }
538
+ if (message.image !== "") {
539
+ obj.image = message.image;
540
+ }
541
+ if (message.loc_error !== "") {
542
+ obj.loc_error = message.loc_error;
543
+ }
544
+ if (message.show_button !== false) {
545
+ obj.show_button = message.show_button;
546
+ }
547
+ if (message.total_stash_cash !== "") {
548
+ obj.total_stash_cash = message.total_stash_cash;
549
+ }
550
+ if (message.supp_title !== "") {
551
+ obj.supp_title = message.supp_title;
552
+ }
553
+ if (message.supp_loc_status !== 0) {
554
+ obj.supp_loc_status = Math.round(message.supp_loc_status);
555
+ }
556
+ if (message.supp_sub_title !== "") {
557
+ obj.supp_sub_title = message.supp_sub_title;
558
+ }
559
+ return obj;
560
+ },
561
+
562
+ create<I extends Exact<DeepPartial<MainCardData>, I>>(base?: I): MainCardData {
563
+ return MainCardData.fromPartial(base ?? ({} as any));
564
+ },
565
+ fromPartial<I extends Exact<DeepPartial<MainCardData>, I>>(object: I): MainCardData {
566
+ const message = createBaseMainCardData();
567
+ message.text = object.text ?? "";
568
+ message.amount_text = object.amount_text ?? "";
569
+ message.sub_text = object.sub_text ?? "";
570
+ message.action_button_text = object.action_button_text ?? "";
571
+ message.action = object.action ?? "";
572
+ message.action_type = object.action_type ?? "";
573
+ message.total_loc = object.total_loc ?? 0;
574
+ message.used_loc = object.used_loc ?? 0;
575
+ message.available_sp_loc = object.available_sp_loc ?? 0;
576
+ message.can_reload_card = object.can_reload_card ?? false;
577
+ message.disbursed_amount = object.disbursed_amount ?? "";
578
+ message.remaining_emi = object.remaining_emi ?? "";
579
+ message.balance_emi_amount = object.balance_emi_amount ?? 0;
580
+ message.comment = object.comment ?? "";
581
+ message.landing_page = object.landing_page ?? "";
582
+ message.timer = object.timer ?? "";
583
+ message.image = object.image ?? "";
584
+ message.loc_error = object.loc_error ?? "";
585
+ message.show_button = object.show_button ?? false;
586
+ message.total_stash_cash = object.total_stash_cash ?? "";
587
+ message.supp_title = object.supp_title ?? "";
588
+ message.supp_loc_status = object.supp_loc_status ?? 0;
589
+ message.supp_sub_title = object.supp_sub_title ?? "";
590
+ return message;
591
+ },
592
+ };
593
+
594
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
595
+
596
+ export type DeepPartial<T> = T extends Builtin ? T
597
+ : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
598
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
599
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
600
+ : Partial<T>;
601
+
602
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
603
+ export type Exact<P, I extends P> = P extends Builtin ? P
604
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
605
+
606
+ function isSet(value: any): boolean {
607
+ return value !== null && value !== undefined;
608
+ }