@stashfin/grpc 1.2.54 → 1.2.59

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 (216) hide show
  1. package/package.json +3 -3
  2. package/ts/customers/addaddress.d.ts +50 -0
  3. package/ts/customers/addaddress.js +265 -0
  4. package/ts/customers/addbankaccountdetails.d.ts +37 -0
  5. package/ts/customers/addbankaccountdetails.js +147 -0
  6. package/ts/customers/createcustomerreference.d.ts +43 -0
  7. package/ts/customers/createcustomerreference.js +226 -0
  8. package/ts/customers/forgotmpin.d.ts +36 -0
  9. package/ts/customers/forgotmpin.js +133 -0
  10. package/ts/customers/forgotmpinotp.d.ts +34 -0
  11. package/ts/customers/forgotmpinotp.js +104 -0
  12. package/ts/customers/getbankaccountdetails.d.ts +36 -0
  13. package/ts/customers/getbankaccountdetails.js +134 -0
  14. package/ts/customers/getbasicinfo.d.ts +56 -0
  15. package/ts/customers/getbasicinfo.js +323 -0
  16. package/ts/customers/getcities.d.ts +47 -0
  17. package/ts/customers/getcities.js +183 -0
  18. package/ts/customers/getcustomerbyid.d.ts +55 -0
  19. package/ts/customers/getcustomerbyid.js +421 -0
  20. package/ts/customers/getdashboard.d.ts +91 -0
  21. package/ts/customers/getdashboard.js +618 -0
  22. package/ts/customers/getdashboardmaincard.d.ts +69 -0
  23. package/ts/customers/getdashboardmaincard.js +520 -0
  24. package/ts/customers/getkycweburl.d.ts +34 -0
  25. package/ts/customers/getkycweburl.js +104 -0
  26. package/ts/customers/getprofessionalinfo.d.ts +54 -0
  27. package/ts/customers/getprofessionalinfo.js +286 -0
  28. package/ts/customers/getprofile.d.ts +53 -0
  29. package/ts/customers/getprofile.js +282 -0
  30. package/ts/customers/getstates.d.ts +46 -0
  31. package/ts/customers/getstates.js +170 -0
  32. package/ts/customers/getstep.d.ts +69 -0
  33. package/ts/customers/getstep.js +406 -0
  34. package/ts/customers/profilebasic.d.ts +38 -0
  35. package/ts/customers/profilebasic.js +161 -0
  36. package/ts/customers/profileupdatetnc.d.ts +35 -0
  37. package/ts/customers/profileupdatetnc.js +117 -0
  38. package/ts/customers/resetmpin.d.ts +36 -0
  39. package/ts/customers/resetmpin.js +133 -0
  40. package/ts/customers/savebasicdetails.d.ts +47 -0
  41. package/ts/customers/savebasicdetails.js +185 -0
  42. package/ts/customers/saveunlocklimit.d.ts +34 -0
  43. package/ts/customers/saveunlocklimit.js +104 -0
  44. package/ts/customers/sendemailtoken.d.ts +35 -0
  45. package/ts/customers/sendemailtoken.js +117 -0
  46. package/ts/customers/sendotp.d.ts +38 -0
  47. package/ts/customers/sendotp.js +165 -0
  48. package/ts/customers/setmpin.d.ts +36 -0
  49. package/ts/customers/setmpin.js +133 -0
  50. package/ts/customers/step1.d.ts +71 -0
  51. package/ts/customers/step1.js +423 -0
  52. package/ts/customers/step10.d.ts +73 -0
  53. package/ts/customers/step10.js +459 -0
  54. package/ts/customers/step2.d.ts +67 -0
  55. package/ts/customers/step2.js +366 -0
  56. package/ts/customers/step7.d.ts +68 -0
  57. package/ts/customers/step7.js +381 -0
  58. package/ts/customers/step8.d.ts +69 -0
  59. package/ts/customers/step8.js +395 -0
  60. package/ts/customers/step9.d.ts +75 -0
  61. package/ts/customers/step9.js +489 -0
  62. package/ts/customers/stepstatic.d.ts +66 -0
  63. package/ts/customers/stepstatic.js +354 -0
  64. package/ts/customers/updatedigilockertxn.d.ts +37 -0
  65. package/ts/customers/updatedigilockertxn.js +147 -0
  66. package/ts/customers/updatedob.d.ts +35 -0
  67. package/ts/customers/updatedob.js +117 -0
  68. package/ts/customers/updatehypervergetxn.d.ts +36 -0
  69. package/ts/customers/updatehypervergetxn.js +133 -0
  70. package/ts/customers/validatepan.d.ts +45 -0
  71. package/ts/customers/validatepan.js +274 -0
  72. package/ts/customers/verifyemail.d.ts +35 -0
  73. package/ts/customers/verifyemail.js +117 -0
  74. package/ts/customers/verifympin.d.ts +37 -0
  75. package/ts/customers/verifympin.js +149 -0
  76. package/ts/customers/verifyotp.d.ts +41 -0
  77. package/ts/customers/verifyotp.js +205 -0
  78. package/ts/customers.d.ts +596 -0
  79. package/ts/customers.js +428 -0
  80. package/ts/example.d.ts +78 -0
  81. package/ts/example.js +199 -0
  82. package/{src/ts/google/protobuf/timestamp.ts → ts/google/protobuf/timestamp.d.ts} +30 -126
  83. package/ts/google/protobuf/timestamp.js +97 -0
  84. package/ts/loans/approveloan.d.ts +39 -0
  85. package/ts/loans/approveloan.js +175 -0
  86. package/ts/loans/banklist.d.ts +37 -0
  87. package/ts/loans/banklist.js +148 -0
  88. package/ts/loans/calculateemi.d.ts +51 -0
  89. package/ts/loans/calculateemi.js +243 -0
  90. package/ts/loans/creditlimit.d.ts +43 -0
  91. package/ts/loans/creditlimit.js +247 -0
  92. package/ts/loans/restructureloan.d.ts +36 -0
  93. package/ts/loans/restructureloan.js +133 -0
  94. package/ts/loans/transactionlist.d.ts +50 -0
  95. package/ts/loans/transactionlist.js +229 -0
  96. package/ts/loans/updateinstallments.d.ts +42 -0
  97. package/ts/loans/updateinstallments.js +226 -0
  98. package/ts/loans/updateloan.d.ts +39 -0
  99. package/ts/loans/updateloan.js +175 -0
  100. package/ts/loans.d.ts +126 -0
  101. package/ts/loans.js +94 -0
  102. package/ts/stashcash/creditsc.d.ts +54 -0
  103. package/ts/stashcash/creditsc.js +301 -0
  104. package/ts/stashcash/debitsc.d.ts +59 -0
  105. package/ts/stashcash/debitsc.js +380 -0
  106. package/ts/stashcash/getscbalance.d.ts +53 -0
  107. package/ts/stashcash/getscbalance.js +293 -0
  108. package/ts/stashcash/getschistory.d.ts +73 -0
  109. package/ts/stashcash/getschistory.js +479 -0
  110. package/ts/stashcash/reversesc.d.ts +52 -0
  111. package/ts/stashcash/reversesc.js +273 -0
  112. package/ts/stashcash.d.ts +84 -0
  113. package/ts/stashcash.js +64 -0
  114. package/README.md +0 -74
  115. package/src/proto/customers/addaddress.proto +0 -25
  116. package/src/proto/customers/addbankaccountdetails.proto +0 -13
  117. package/src/proto/customers/createcustomerreference.proto +0 -21
  118. package/src/proto/customers/forgotmpin.proto +0 -12
  119. package/src/proto/customers/forgotmpinotp.proto +0 -10
  120. package/src/proto/customers/getbankaccountdetails.proto +0 -11
  121. package/src/proto/customers/getbasicinfo.proto +0 -24
  122. package/src/proto/customers/getcities.proto +0 -16
  123. package/src/proto/customers/getcustomerbyid.proto +0 -31
  124. package/src/proto/customers/getdashboard.proto +0 -47
  125. package/src/proto/customers/getdashboardmaincard.proto +0 -37
  126. package/src/proto/customers/getkycweburl.proto +0 -10
  127. package/src/proto/customers/getprofessionalinfo.proto +0 -22
  128. package/src/proto/customers/getprofile.proto +0 -22
  129. package/src/proto/customers/getstates.proto +0 -15
  130. package/src/proto/customers/getstep.proto +0 -30
  131. package/src/proto/customers/profilebasic.proto +0 -14
  132. package/src/proto/customers/profileupdatetnc.proto +0 -11
  133. package/src/proto/customers/resetmpin.proto +0 -13
  134. package/src/proto/customers/savebasicdetails.proto +0 -16
  135. package/src/proto/customers/saveunlocklimit.proto +0 -10
  136. package/src/proto/customers/sendemailtoken.proto +0 -11
  137. package/src/proto/customers/sendotp.proto +0 -14
  138. package/src/proto/customers/setmpin.proto +0 -12
  139. package/src/proto/customers/step10.proto +0 -34
  140. package/src/proto/customers/step7.proto +0 -29
  141. package/src/proto/customers/step8.proto +0 -30
  142. package/src/proto/customers/step9.proto +0 -36
  143. package/src/proto/customers/stepstatic.proto +0 -27
  144. package/src/proto/customers/updatedigilockertxn.proto +0 -13
  145. package/src/proto/customers/updatedob.proto +0 -13
  146. package/src/proto/customers/updatehypervergetxn.proto +0 -12
  147. package/src/proto/customers/verifyemail.proto +0 -11
  148. package/src/proto/customers/verifympin.proto +0 -13
  149. package/src/proto/customers/verifyotp.proto +0 -17
  150. package/src/proto/customers.proto +0 -83
  151. package/src/proto/example.proto +0 -20
  152. package/src/proto/loans/approveloan.proto +0 -15
  153. package/src/proto/loans/banklist.proto +0 -12
  154. package/src/proto/loans/calculateemi.proto +0 -20
  155. package/src/proto/loans/creditlimit.proto +0 -18
  156. package/src/proto/loans/restructureloan.proto +0 -12
  157. package/src/proto/loans/transactionlist.proto +0 -18
  158. package/src/proto/loans/updateinstallments.proto +0 -19
  159. package/src/proto/loans/updateloan.proto +0 -15
  160. package/src/proto/loans.proto +0 -23
  161. package/src/proto/stashcash/creditsc.proto +0 -22
  162. package/src/proto/stashcash/debitsc.proto +0 -27
  163. package/src/proto/stashcash/getscbalance.proto +0 -21
  164. package/src/proto/stashcash/getschistory.proto +0 -35
  165. package/src/proto/stashcash/reversesc.proto +0 -20
  166. package/src/proto/stashcash.proto +0 -17
  167. package/src/ts/customers/addaddress.ts +0 -310
  168. package/src/ts/customers/addbankaccountdetails.ts +0 -184
  169. package/src/ts/customers/createcustomerreference.ts +0 -276
  170. package/src/ts/customers/getbankaccountdetails.ts +0 -169
  171. package/src/ts/customers/getbasicinfo.ts +0 -385
  172. package/src/ts/customers/getcities.ts +0 -227
  173. package/src/ts/customers/getcustomerbyid.ts +0 -492
  174. package/src/ts/customers/getdashboard.ts +0 -728
  175. package/src/ts/customers/getdashboardmaincard.ts +0 -608
  176. package/src/ts/customers/getkycweburl.ts +0 -133
  177. package/src/ts/customers/getprofessionalinfo.ts +0 -344
  178. package/src/ts/customers/getprofile.ts +0 -338
  179. package/src/ts/customers/getstates.ts +0 -212
  180. package/src/ts/customers/getstep.ts +0 -483
  181. package/src/ts/customers/profilebasic.ts +0 -198
  182. package/src/ts/customers/profileupdatetnc.ts +0 -148
  183. package/src/ts/customers/resetmpin.ts +0 -166
  184. package/src/ts/customers/savebasicdetails.ts +0 -229
  185. package/src/ts/customers/saveunlocklimit.ts +0 -133
  186. package/src/ts/customers/sendemailtoken.ts +0 -148
  187. package/src/ts/customers/sendotp.ts +0 -202
  188. package/src/ts/customers/setmpin.ts +0 -166
  189. package/src/ts/customers/step10.ts +0 -544
  190. package/src/ts/customers/step7.ts +0 -456
  191. package/src/ts/customers/step8.ts +0 -472
  192. package/src/ts/customers/step9.ts +0 -578
  193. package/src/ts/customers/stepstatic.ts +0 -425
  194. package/src/ts/customers/updatedigilockertxn.ts +0 -182
  195. package/src/ts/customers/updatehypervergetxn.ts +0 -166
  196. package/src/ts/customers/verifyemail.ts +0 -148
  197. package/src/ts/customers/verifympin.ts +0 -184
  198. package/src/ts/customers/verifyotp.ts +0 -232
  199. package/src/ts/customers.ts +0 -1038
  200. package/src/ts/example.ts +0 -294
  201. package/src/ts/loans/approveloan.ts +0 -214
  202. package/src/ts/loans/banklist.ts +0 -183
  203. package/src/ts/loans/calculateemi.ts +0 -295
  204. package/src/ts/loans/creditlimit.ts +0 -294
  205. package/src/ts/loans/restructureloan.ts +0 -166
  206. package/src/ts/loans/transactionlist.ts +0 -281
  207. package/src/ts/loans/updateinstallments.ts +0 -271
  208. package/src/ts/loans/updateloan.ts +0 -214
  209. package/src/ts/loans.ts +0 -221
  210. package/src/ts/stashcash/creditsc.ts +0 -361
  211. package/src/ts/stashcash/debitsc.ts +0 -450
  212. package/src/ts/stashcash/getscbalance.ts +0 -351
  213. package/src/ts/stashcash/getschistory.ts +0 -566
  214. package/src/ts/stashcash/reversesc.ts +0 -329
  215. package/src/ts/stashcash.ts +0 -152
  216. package/tsconfig.json +0 -18
@@ -1,608 +0,0 @@
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
- }