@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,450 +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: stashcash/debitsc.proto
6
-
7
- /* eslint-disable */
8
- import Long from "long";
9
- import _m0 from "protobufjs/minimal";
10
-
11
- export const protobufPackage = "stashcash.debitsc";
12
-
13
- export interface request {
14
- customer_id: number;
15
- flag: number;
16
- campaign_id: number;
17
- amount?: number | undefined;
18
- sc_type?: string | undefined;
19
- txn_id?: string | undefined;
20
- }
21
-
22
- export interface response {
23
- status: string;
24
- data?: response_Data | undefined;
25
- }
26
-
27
- export interface response_Data {
28
- locked?: number | undefined;
29
- unlocked?: number | undefined;
30
- balance?: number | undefined;
31
- rupee_balance?: number | undefined;
32
- txn_id: string;
33
- conversion_factor?: number | undefined;
34
- txn_status: string;
35
- txn_sc?: number | undefined;
36
- }
37
-
38
- function createBaserequest(): request {
39
- return { customer_id: 0, flag: 0, campaign_id: 0, amount: undefined, sc_type: undefined, txn_id: undefined };
40
- }
41
-
42
- export const request = {
43
- encode(message: request, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
44
- if (message.customer_id !== 0) {
45
- writer.uint32(8).int64(message.customer_id);
46
- }
47
- if (message.flag !== 0) {
48
- writer.uint32(16).int32(message.flag);
49
- }
50
- if (message.campaign_id !== 0) {
51
- writer.uint32(24).int64(message.campaign_id);
52
- }
53
- if (message.amount !== undefined) {
54
- writer.uint32(37).float(message.amount);
55
- }
56
- if (message.sc_type !== undefined) {
57
- writer.uint32(42).string(message.sc_type);
58
- }
59
- if (message.txn_id !== undefined) {
60
- writer.uint32(50).string(message.txn_id);
61
- }
62
- return writer;
63
- },
64
-
65
- decode(input: _m0.Reader | Uint8Array, length?: number): request {
66
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
67
- let end = length === undefined ? reader.len : reader.pos + length;
68
- const message = createBaserequest();
69
- while (reader.pos < end) {
70
- const tag = reader.uint32();
71
- switch (tag >>> 3) {
72
- case 1:
73
- if (tag !== 8) {
74
- break;
75
- }
76
-
77
- message.customer_id = longToNumber(reader.int64() as Long);
78
- continue;
79
- case 2:
80
- if (tag !== 16) {
81
- break;
82
- }
83
-
84
- message.flag = reader.int32();
85
- continue;
86
- case 3:
87
- if (tag !== 24) {
88
- break;
89
- }
90
-
91
- message.campaign_id = longToNumber(reader.int64() as Long);
92
- continue;
93
- case 4:
94
- if (tag !== 37) {
95
- break;
96
- }
97
-
98
- message.amount = reader.float();
99
- continue;
100
- case 5:
101
- if (tag !== 42) {
102
- break;
103
- }
104
-
105
- message.sc_type = reader.string();
106
- continue;
107
- case 6:
108
- if (tag !== 50) {
109
- break;
110
- }
111
-
112
- message.txn_id = reader.string();
113
- continue;
114
- }
115
- if ((tag & 7) === 4 || tag === 0) {
116
- break;
117
- }
118
- reader.skipType(tag & 7);
119
- }
120
- return message;
121
- },
122
-
123
- fromJSON(object: any): request {
124
- return {
125
- customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
126
- flag: isSet(object.flag) ? globalThis.Number(object.flag) : 0,
127
- campaign_id: isSet(object.campaign_id) ? globalThis.Number(object.campaign_id) : 0,
128
- amount: isSet(object.amount) ? globalThis.Number(object.amount) : undefined,
129
- sc_type: isSet(object.sc_type) ? globalThis.String(object.sc_type) : undefined,
130
- txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : undefined,
131
- };
132
- },
133
-
134
- toJSON(message: request): unknown {
135
- const obj: any = {};
136
- if (message.customer_id !== 0) {
137
- obj.customer_id = Math.round(message.customer_id);
138
- }
139
- if (message.flag !== 0) {
140
- obj.flag = Math.round(message.flag);
141
- }
142
- if (message.campaign_id !== 0) {
143
- obj.campaign_id = Math.round(message.campaign_id);
144
- }
145
- if (message.amount !== undefined) {
146
- obj.amount = message.amount;
147
- }
148
- if (message.sc_type !== undefined) {
149
- obj.sc_type = message.sc_type;
150
- }
151
- if (message.txn_id !== undefined) {
152
- obj.txn_id = message.txn_id;
153
- }
154
- return obj;
155
- },
156
-
157
- create<I extends Exact<DeepPartial<request>, I>>(base?: I): request {
158
- return request.fromPartial(base ?? ({} as any));
159
- },
160
- fromPartial<I extends Exact<DeepPartial<request>, I>>(object: I): request {
161
- const message = createBaserequest();
162
- message.customer_id = object.customer_id ?? 0;
163
- message.flag = object.flag ?? 0;
164
- message.campaign_id = object.campaign_id ?? 0;
165
- message.amount = object.amount ?? undefined;
166
- message.sc_type = object.sc_type ?? undefined;
167
- message.txn_id = object.txn_id ?? undefined;
168
- return message;
169
- },
170
- };
171
-
172
- function createBaseresponse(): response {
173
- return { status: "", data: undefined };
174
- }
175
-
176
- export const response = {
177
- encode(message: response, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
178
- if (message.status !== "") {
179
- writer.uint32(10).string(message.status);
180
- }
181
- if (message.data !== undefined) {
182
- response_Data.encode(message.data, writer.uint32(18).fork()).ldelim();
183
- }
184
- return writer;
185
- },
186
-
187
- decode(input: _m0.Reader | Uint8Array, length?: number): response {
188
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
189
- let end = length === undefined ? reader.len : reader.pos + length;
190
- const message = createBaseresponse();
191
- while (reader.pos < end) {
192
- const tag = reader.uint32();
193
- switch (tag >>> 3) {
194
- case 1:
195
- if (tag !== 10) {
196
- break;
197
- }
198
-
199
- message.status = reader.string();
200
- continue;
201
- case 2:
202
- if (tag !== 18) {
203
- break;
204
- }
205
-
206
- message.data = response_Data.decode(reader, reader.uint32());
207
- continue;
208
- }
209
- if ((tag & 7) === 4 || tag === 0) {
210
- break;
211
- }
212
- reader.skipType(tag & 7);
213
- }
214
- return message;
215
- },
216
-
217
- fromJSON(object: any): response {
218
- return {
219
- status: isSet(object.status) ? globalThis.String(object.status) : "",
220
- data: isSet(object.data) ? response_Data.fromJSON(object.data) : undefined,
221
- };
222
- },
223
-
224
- toJSON(message: response): unknown {
225
- const obj: any = {};
226
- if (message.status !== "") {
227
- obj.status = message.status;
228
- }
229
- if (message.data !== undefined) {
230
- obj.data = response_Data.toJSON(message.data);
231
- }
232
- return obj;
233
- },
234
-
235
- create<I extends Exact<DeepPartial<response>, I>>(base?: I): response {
236
- return response.fromPartial(base ?? ({} as any));
237
- },
238
- fromPartial<I extends Exact<DeepPartial<response>, I>>(object: I): response {
239
- const message = createBaseresponse();
240
- message.status = object.status ?? "";
241
- message.data = (object.data !== undefined && object.data !== null)
242
- ? response_Data.fromPartial(object.data)
243
- : undefined;
244
- return message;
245
- },
246
- };
247
-
248
- function createBaseresponse_Data(): response_Data {
249
- return {
250
- locked: undefined,
251
- unlocked: undefined,
252
- balance: undefined,
253
- rupee_balance: undefined,
254
- txn_id: "",
255
- conversion_factor: undefined,
256
- txn_status: "",
257
- txn_sc: undefined,
258
- };
259
- }
260
-
261
- export const response_Data = {
262
- encode(message: response_Data, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
263
- if (message.locked !== undefined) {
264
- writer.uint32(13).float(message.locked);
265
- }
266
- if (message.unlocked !== undefined) {
267
- writer.uint32(21).float(message.unlocked);
268
- }
269
- if (message.balance !== undefined) {
270
- writer.uint32(29).float(message.balance);
271
- }
272
- if (message.rupee_balance !== undefined) {
273
- writer.uint32(37).float(message.rupee_balance);
274
- }
275
- if (message.txn_id !== "") {
276
- writer.uint32(42).string(message.txn_id);
277
- }
278
- if (message.conversion_factor !== undefined) {
279
- writer.uint32(48).int32(message.conversion_factor);
280
- }
281
- if (message.txn_status !== "") {
282
- writer.uint32(58).string(message.txn_status);
283
- }
284
- if (message.txn_sc !== undefined) {
285
- writer.uint32(69).float(message.txn_sc);
286
- }
287
- return writer;
288
- },
289
-
290
- decode(input: _m0.Reader | Uint8Array, length?: number): response_Data {
291
- const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
292
- let end = length === undefined ? reader.len : reader.pos + length;
293
- const message = createBaseresponse_Data();
294
- while (reader.pos < end) {
295
- const tag = reader.uint32();
296
- switch (tag >>> 3) {
297
- case 1:
298
- if (tag !== 13) {
299
- break;
300
- }
301
-
302
- message.locked = reader.float();
303
- continue;
304
- case 2:
305
- if (tag !== 21) {
306
- break;
307
- }
308
-
309
- message.unlocked = reader.float();
310
- continue;
311
- case 3:
312
- if (tag !== 29) {
313
- break;
314
- }
315
-
316
- message.balance = reader.float();
317
- continue;
318
- case 4:
319
- if (tag !== 37) {
320
- break;
321
- }
322
-
323
- message.rupee_balance = reader.float();
324
- continue;
325
- case 5:
326
- if (tag !== 42) {
327
- break;
328
- }
329
-
330
- message.txn_id = reader.string();
331
- continue;
332
- case 6:
333
- if (tag !== 48) {
334
- break;
335
- }
336
-
337
- message.conversion_factor = reader.int32();
338
- continue;
339
- case 7:
340
- if (tag !== 58) {
341
- break;
342
- }
343
-
344
- message.txn_status = reader.string();
345
- continue;
346
- case 8:
347
- if (tag !== 69) {
348
- break;
349
- }
350
-
351
- message.txn_sc = reader.float();
352
- continue;
353
- }
354
- if ((tag & 7) === 4 || tag === 0) {
355
- break;
356
- }
357
- reader.skipType(tag & 7);
358
- }
359
- return message;
360
- },
361
-
362
- fromJSON(object: any): response_Data {
363
- return {
364
- locked: isSet(object.locked) ? globalThis.Number(object.locked) : undefined,
365
- unlocked: isSet(object.unlocked) ? globalThis.Number(object.unlocked) : undefined,
366
- balance: isSet(object.balance) ? globalThis.Number(object.balance) : undefined,
367
- rupee_balance: isSet(object.rupee_balance) ? globalThis.Number(object.rupee_balance) : undefined,
368
- txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
369
- conversion_factor: isSet(object.conversion_factor) ? globalThis.Number(object.conversion_factor) : undefined,
370
- txn_status: isSet(object.txn_status) ? globalThis.String(object.txn_status) : "",
371
- txn_sc: isSet(object.txn_sc) ? globalThis.Number(object.txn_sc) : undefined,
372
- };
373
- },
374
-
375
- toJSON(message: response_Data): unknown {
376
- const obj: any = {};
377
- if (message.locked !== undefined) {
378
- obj.locked = message.locked;
379
- }
380
- if (message.unlocked !== undefined) {
381
- obj.unlocked = message.unlocked;
382
- }
383
- if (message.balance !== undefined) {
384
- obj.balance = message.balance;
385
- }
386
- if (message.rupee_balance !== undefined) {
387
- obj.rupee_balance = message.rupee_balance;
388
- }
389
- if (message.txn_id !== "") {
390
- obj.txn_id = message.txn_id;
391
- }
392
- if (message.conversion_factor !== undefined) {
393
- obj.conversion_factor = Math.round(message.conversion_factor);
394
- }
395
- if (message.txn_status !== "") {
396
- obj.txn_status = message.txn_status;
397
- }
398
- if (message.txn_sc !== undefined) {
399
- obj.txn_sc = message.txn_sc;
400
- }
401
- return obj;
402
- },
403
-
404
- create<I extends Exact<DeepPartial<response_Data>, I>>(base?: I): response_Data {
405
- return response_Data.fromPartial(base ?? ({} as any));
406
- },
407
- fromPartial<I extends Exact<DeepPartial<response_Data>, I>>(object: I): response_Data {
408
- const message = createBaseresponse_Data();
409
- message.locked = object.locked ?? undefined;
410
- message.unlocked = object.unlocked ?? undefined;
411
- message.balance = object.balance ?? undefined;
412
- message.rupee_balance = object.rupee_balance ?? undefined;
413
- message.txn_id = object.txn_id ?? "";
414
- message.conversion_factor = object.conversion_factor ?? undefined;
415
- message.txn_status = object.txn_status ?? "";
416
- message.txn_sc = object.txn_sc ?? undefined;
417
- return message;
418
- },
419
- };
420
-
421
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
422
-
423
- export type DeepPartial<T> = T extends Builtin ? T
424
- : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
425
- : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
426
- : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
427
- : Partial<T>;
428
-
429
- type KeysOfUnion<T> = T extends T ? keyof T : never;
430
- export type Exact<P, I extends P> = P extends Builtin ? P
431
- : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
432
-
433
- function longToNumber(long: Long): number {
434
- if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
435
- throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
436
- }
437
- if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
438
- throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
439
- }
440
- return long.toNumber();
441
- }
442
-
443
- if (_m0.util.Long !== Long) {
444
- _m0.util.Long = Long as any;
445
- _m0.configure();
446
- }
447
-
448
- function isSet(value: any): boolean {
449
- return value !== null && value !== undefined;
450
- }