@stashfin/grpc 1.2.367 → 1.2.369

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 (43) hide show
  1. package/package.json +1 -1
  2. package/ts/customers/accidentprotectionplan.d.ts +52 -0
  3. package/ts/customers/accidentprotectionplan.js +256 -0
  4. package/ts/customers/enach/updatetxnstatus.d.ts +4 -1
  5. package/ts/customers/enach/updatetxnstatus.js +64 -8
  6. package/ts/customers/getdashboardmaincard.d.ts +1 -0
  7. package/ts/customers/getdashboardmaincard.js +15 -0
  8. package/ts/customers/restoreaccount.d.ts +36 -0
  9. package/ts/customers/{skipdlrcscreen.js → restoreaccount.js} +46 -30
  10. package/ts/customers/verifyotp.d.ts +1 -0
  11. package/ts/customers/verifyotp.js +15 -1
  12. package/ts/customers.d.ts +28 -0
  13. package/ts/customers.js +20 -0
  14. package/ts/loans/creditlimit.d.ts +1 -4
  15. package/ts/loans/creditlimit.js +18 -71
  16. package/ts/loans/getvirtualaccountnumber.d.ts +35 -0
  17. package/ts/{customers/verifyemail.js → loans/getvirtualaccountnumber.js} +32 -32
  18. package/ts/loans/updatecollectionview.d.ts +42 -0
  19. package/ts/loans/updatecollectionview.js +226 -0
  20. package/ts/loans.d.ts +14 -0
  21. package/ts/loans.js +10 -0
  22. package/ts/customers/getrpdlink.d.ts +0 -40
  23. package/ts/customers/getrpdlink.js +0 -190
  24. package/ts/customers/sendemailtoken.d.ts +0 -35
  25. package/ts/customers/sendemailtoken.js +0 -117
  26. package/ts/customers/skipdlrcscreen.d.ts +0 -35
  27. package/ts/customers/step1.d.ts +0 -69
  28. package/ts/customers/step1.js +0 -395
  29. package/ts/customers/step10.d.ts +0 -73
  30. package/ts/customers/step10.js +0 -459
  31. package/ts/customers/step2.d.ts +0 -68
  32. package/ts/customers/step2.js +0 -381
  33. package/ts/customers/step7.d.ts +0 -68
  34. package/ts/customers/step7.js +0 -381
  35. package/ts/customers/step8.d.ts +0 -69
  36. package/ts/customers/step8.js +0 -395
  37. package/ts/customers/step9.d.ts +0 -75
  38. package/ts/customers/step9.js +0 -489
  39. package/ts/customers/stepstatic.d.ts +0 -66
  40. package/ts/customers/stepstatic.js +0 -354
  41. package/ts/customers/verifyemail.d.ts +0 -35
  42. package/ts/google/protobuf/timestamp.d.ts +0 -127
  43. package/ts/google/protobuf/timestamp.js +0 -97
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stashfin/grpc",
3
- "version": "1.2.367",
3
+ "version": "1.2.369",
4
4
  "description": "Grpc proto manger",
5
5
  "scripts": {
6
6
  "prebuild": "rimraf src/ts && mkdirp src/ts && mkdirp dist",
@@ -0,0 +1,52 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.accidentprotectionplan";
3
+ export interface Benefit {
4
+ title: string;
5
+ description: string;
6
+ icon: string;
7
+ }
8
+ export interface getPocketPersonalAccidentProtectionPlanRequest {
9
+ }
10
+ export interface getPocketPersonalAccidentProtectionPlanResponse {
11
+ title: string;
12
+ benefits: Benefit[];
13
+ terms_description: string;
14
+ terms_link: string;
15
+ button_name: string;
16
+ status: string;
17
+ }
18
+ export declare const Benefit: {
19
+ encode(message: Benefit, writer?: _m0.Writer): _m0.Writer;
20
+ decode(input: _m0.Reader | Uint8Array, length?: number): Benefit;
21
+ fromJSON(object: any): Benefit;
22
+ toJSON(message: Benefit): unknown;
23
+ create<I extends Exact<DeepPartial<Benefit>, I>>(base?: I): Benefit;
24
+ fromPartial<I extends Exact<DeepPartial<Benefit>, I>>(object: I): Benefit;
25
+ };
26
+ export declare const getPocketPersonalAccidentProtectionPlanRequest: {
27
+ encode(_: getPocketPersonalAccidentProtectionPlanRequest, writer?: _m0.Writer): _m0.Writer;
28
+ decode(input: _m0.Reader | Uint8Array, length?: number): getPocketPersonalAccidentProtectionPlanRequest;
29
+ fromJSON(_: any): getPocketPersonalAccidentProtectionPlanRequest;
30
+ toJSON(_: getPocketPersonalAccidentProtectionPlanRequest): unknown;
31
+ create<I extends Exact<DeepPartial<getPocketPersonalAccidentProtectionPlanRequest>, I>>(base?: I): getPocketPersonalAccidentProtectionPlanRequest;
32
+ fromPartial<I extends Exact<DeepPartial<getPocketPersonalAccidentProtectionPlanRequest>, I>>(_: I): getPocketPersonalAccidentProtectionPlanRequest;
33
+ };
34
+ export declare const getPocketPersonalAccidentProtectionPlanResponse: {
35
+ encode(message: getPocketPersonalAccidentProtectionPlanResponse, writer?: _m0.Writer): _m0.Writer;
36
+ decode(input: _m0.Reader | Uint8Array, length?: number): getPocketPersonalAccidentProtectionPlanResponse;
37
+ fromJSON(object: any): getPocketPersonalAccidentProtectionPlanResponse;
38
+ toJSON(message: getPocketPersonalAccidentProtectionPlanResponse): unknown;
39
+ create<I extends Exact<DeepPartial<getPocketPersonalAccidentProtectionPlanResponse>, I>>(base?: I): getPocketPersonalAccidentProtectionPlanResponse;
40
+ fromPartial<I extends Exact<DeepPartial<getPocketPersonalAccidentProtectionPlanResponse>, I>>(object: I): getPocketPersonalAccidentProtectionPlanResponse;
41
+ };
42
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
43
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
44
+ [K in keyof T]?: DeepPartial<T[K]>;
45
+ } : Partial<T>;
46
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
47
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
48
+ [K in keyof P]: Exact<P[K], I[K]>;
49
+ } & {
50
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
51
+ };
52
+ export {};
@@ -0,0 +1,256 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v1.181.0
5
+ // protoc v5.28.3
6
+ // source: customers/accidentprotectionplan.proto
7
+ var __importDefault = (this && this.__importDefault) || function (mod) {
8
+ return (mod && mod.__esModule) ? mod : { "default": mod };
9
+ };
10
+ Object.defineProperty(exports, "__esModule", { value: true });
11
+ exports.getPocketPersonalAccidentProtectionPlanResponse = exports.getPocketPersonalAccidentProtectionPlanRequest = exports.Benefit = exports.protobufPackage = void 0;
12
+ /* eslint-disable */
13
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
+ exports.protobufPackage = "customers.accidentprotectionplan";
15
+ function createBaseBenefit() {
16
+ return { title: "", description: "", icon: "" };
17
+ }
18
+ exports.Benefit = {
19
+ encode(message, writer = minimal_1.default.Writer.create()) {
20
+ if (message.title !== "") {
21
+ writer.uint32(10).string(message.title);
22
+ }
23
+ if (message.description !== "") {
24
+ writer.uint32(18).string(message.description);
25
+ }
26
+ if (message.icon !== "") {
27
+ writer.uint32(26).string(message.icon);
28
+ }
29
+ return writer;
30
+ },
31
+ decode(input, length) {
32
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
33
+ let end = length === undefined ? reader.len : reader.pos + length;
34
+ const message = createBaseBenefit();
35
+ while (reader.pos < end) {
36
+ const tag = reader.uint32();
37
+ switch (tag >>> 3) {
38
+ case 1:
39
+ if (tag !== 10) {
40
+ break;
41
+ }
42
+ message.title = reader.string();
43
+ continue;
44
+ case 2:
45
+ if (tag !== 18) {
46
+ break;
47
+ }
48
+ message.description = reader.string();
49
+ continue;
50
+ case 3:
51
+ if (tag !== 26) {
52
+ break;
53
+ }
54
+ message.icon = reader.string();
55
+ continue;
56
+ }
57
+ if ((tag & 7) === 4 || tag === 0) {
58
+ break;
59
+ }
60
+ reader.skipType(tag & 7);
61
+ }
62
+ return message;
63
+ },
64
+ fromJSON(object) {
65
+ return {
66
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
67
+ description: isSet(object.description) ? globalThis.String(object.description) : "",
68
+ icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
69
+ };
70
+ },
71
+ toJSON(message) {
72
+ const obj = {};
73
+ if (message.title !== "") {
74
+ obj.title = message.title;
75
+ }
76
+ if (message.description !== "") {
77
+ obj.description = message.description;
78
+ }
79
+ if (message.icon !== "") {
80
+ obj.icon = message.icon;
81
+ }
82
+ return obj;
83
+ },
84
+ create(base) {
85
+ return exports.Benefit.fromPartial(base ?? {});
86
+ },
87
+ fromPartial(object) {
88
+ const message = createBaseBenefit();
89
+ message.title = object.title ?? "";
90
+ message.description = object.description ?? "";
91
+ message.icon = object.icon ?? "";
92
+ return message;
93
+ },
94
+ };
95
+ function createBasegetPocketPersonalAccidentProtectionPlanRequest() {
96
+ return {};
97
+ }
98
+ exports.getPocketPersonalAccidentProtectionPlanRequest = {
99
+ encode(_, writer = minimal_1.default.Writer.create()) {
100
+ return writer;
101
+ },
102
+ decode(input, length) {
103
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
104
+ let end = length === undefined ? reader.len : reader.pos + length;
105
+ const message = createBasegetPocketPersonalAccidentProtectionPlanRequest();
106
+ while (reader.pos < end) {
107
+ const tag = reader.uint32();
108
+ switch (tag >>> 3) {
109
+ }
110
+ if ((tag & 7) === 4 || tag === 0) {
111
+ break;
112
+ }
113
+ reader.skipType(tag & 7);
114
+ }
115
+ return message;
116
+ },
117
+ fromJSON(_) {
118
+ return {};
119
+ },
120
+ toJSON(_) {
121
+ const obj = {};
122
+ return obj;
123
+ },
124
+ create(base) {
125
+ return exports.getPocketPersonalAccidentProtectionPlanRequest.fromPartial(base ?? {});
126
+ },
127
+ fromPartial(_) {
128
+ const message = createBasegetPocketPersonalAccidentProtectionPlanRequest();
129
+ return message;
130
+ },
131
+ };
132
+ function createBasegetPocketPersonalAccidentProtectionPlanResponse() {
133
+ return { title: "", benefits: [], terms_description: "", terms_link: "", button_name: "", status: "" };
134
+ }
135
+ exports.getPocketPersonalAccidentProtectionPlanResponse = {
136
+ encode(message, writer = minimal_1.default.Writer.create()) {
137
+ if (message.title !== "") {
138
+ writer.uint32(10).string(message.title);
139
+ }
140
+ for (const v of message.benefits) {
141
+ exports.Benefit.encode(v, writer.uint32(18).fork()).ldelim();
142
+ }
143
+ if (message.terms_description !== "") {
144
+ writer.uint32(26).string(message.terms_description);
145
+ }
146
+ if (message.terms_link !== "") {
147
+ writer.uint32(34).string(message.terms_link);
148
+ }
149
+ if (message.button_name !== "") {
150
+ writer.uint32(42).string(message.button_name);
151
+ }
152
+ if (message.status !== "") {
153
+ writer.uint32(50).string(message.status);
154
+ }
155
+ return writer;
156
+ },
157
+ decode(input, length) {
158
+ const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
159
+ let end = length === undefined ? reader.len : reader.pos + length;
160
+ const message = createBasegetPocketPersonalAccidentProtectionPlanResponse();
161
+ while (reader.pos < end) {
162
+ const tag = reader.uint32();
163
+ switch (tag >>> 3) {
164
+ case 1:
165
+ if (tag !== 10) {
166
+ break;
167
+ }
168
+ message.title = reader.string();
169
+ continue;
170
+ case 2:
171
+ if (tag !== 18) {
172
+ break;
173
+ }
174
+ message.benefits.push(exports.Benefit.decode(reader, reader.uint32()));
175
+ continue;
176
+ case 3:
177
+ if (tag !== 26) {
178
+ break;
179
+ }
180
+ message.terms_description = reader.string();
181
+ continue;
182
+ case 4:
183
+ if (tag !== 34) {
184
+ break;
185
+ }
186
+ message.terms_link = reader.string();
187
+ continue;
188
+ case 5:
189
+ if (tag !== 42) {
190
+ break;
191
+ }
192
+ message.button_name = reader.string();
193
+ continue;
194
+ case 6:
195
+ if (tag !== 50) {
196
+ break;
197
+ }
198
+ message.status = reader.string();
199
+ continue;
200
+ }
201
+ if ((tag & 7) === 4 || tag === 0) {
202
+ break;
203
+ }
204
+ reader.skipType(tag & 7);
205
+ }
206
+ return message;
207
+ },
208
+ fromJSON(object) {
209
+ return {
210
+ title: isSet(object.title) ? globalThis.String(object.title) : "",
211
+ benefits: globalThis.Array.isArray(object?.benefits) ? object.benefits.map((e) => exports.Benefit.fromJSON(e)) : [],
212
+ terms_description: isSet(object.terms_description) ? globalThis.String(object.terms_description) : "",
213
+ terms_link: isSet(object.terms_link) ? globalThis.String(object.terms_link) : "",
214
+ button_name: isSet(object.button_name) ? globalThis.String(object.button_name) : "",
215
+ status: isSet(object.status) ? globalThis.String(object.status) : "",
216
+ };
217
+ },
218
+ toJSON(message) {
219
+ const obj = {};
220
+ if (message.title !== "") {
221
+ obj.title = message.title;
222
+ }
223
+ if (message.benefits?.length) {
224
+ obj.benefits = message.benefits.map((e) => exports.Benefit.toJSON(e));
225
+ }
226
+ if (message.terms_description !== "") {
227
+ obj.terms_description = message.terms_description;
228
+ }
229
+ if (message.terms_link !== "") {
230
+ obj.terms_link = message.terms_link;
231
+ }
232
+ if (message.button_name !== "") {
233
+ obj.button_name = message.button_name;
234
+ }
235
+ if (message.status !== "") {
236
+ obj.status = message.status;
237
+ }
238
+ return obj;
239
+ },
240
+ create(base) {
241
+ return exports.getPocketPersonalAccidentProtectionPlanResponse.fromPartial(base ?? {});
242
+ },
243
+ fromPartial(object) {
244
+ const message = createBasegetPocketPersonalAccidentProtectionPlanResponse();
245
+ message.title = object.title ?? "";
246
+ message.benefits = object.benefits?.map((e) => exports.Benefit.fromPartial(e)) || [];
247
+ message.terms_description = object.terms_description ?? "";
248
+ message.terms_link = object.terms_link ?? "";
249
+ message.button_name = object.button_name ?? "";
250
+ message.status = object.status ?? "";
251
+ return message;
252
+ },
253
+ };
254
+ function isSet(value) {
255
+ return value !== null && value !== undefined;
256
+ }
@@ -1,8 +1,11 @@
1
1
  import _m0 from "protobufjs/minimal";
2
2
  export declare const protobufPackage = "customers.enach.updatetxnstatus";
3
3
  export interface updateTxnStatusRequest {
4
- txn_id: string;
4
+ order_id: string;
5
5
  status: string;
6
+ mode?: string | undefined;
7
+ customer_id?: number | undefined;
8
+ clint_id?: string | undefined;
6
9
  }
7
10
  export interface updateTxnStatusResponse {
8
11
  status: string;
@@ -10,19 +10,29 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
11
  exports.updateTxnStatusResponse = exports.updateTxnStatusRequest = exports.protobufPackage = void 0;
12
12
  /* eslint-disable */
13
+ const long_1 = __importDefault(require("long"));
13
14
  const minimal_1 = __importDefault(require("protobufjs/minimal"));
14
15
  exports.protobufPackage = "customers.enach.updatetxnstatus";
15
16
  function createBaseupdateTxnStatusRequest() {
16
- return { txn_id: "", status: "" };
17
+ return { order_id: "", status: "", mode: undefined, customer_id: undefined, clint_id: undefined };
17
18
  }
18
19
  exports.updateTxnStatusRequest = {
19
20
  encode(message, writer = minimal_1.default.Writer.create()) {
20
- if (message.txn_id !== "") {
21
- writer.uint32(10).string(message.txn_id);
21
+ if (message.order_id !== "") {
22
+ writer.uint32(10).string(message.order_id);
22
23
  }
23
24
  if (message.status !== "") {
24
25
  writer.uint32(18).string(message.status);
25
26
  }
27
+ if (message.mode !== undefined) {
28
+ writer.uint32(26).string(message.mode);
29
+ }
30
+ if (message.customer_id !== undefined) {
31
+ writer.uint32(32).int64(message.customer_id);
32
+ }
33
+ if (message.clint_id !== undefined) {
34
+ writer.uint32(42).string(message.clint_id);
35
+ }
26
36
  return writer;
27
37
  },
28
38
  decode(input, length) {
@@ -36,7 +46,7 @@ exports.updateTxnStatusRequest = {
36
46
  if (tag !== 10) {
37
47
  break;
38
48
  }
39
- message.txn_id = reader.string();
49
+ message.order_id = reader.string();
40
50
  continue;
41
51
  case 2:
42
52
  if (tag !== 18) {
@@ -44,6 +54,24 @@ exports.updateTxnStatusRequest = {
44
54
  }
45
55
  message.status = reader.string();
46
56
  continue;
57
+ case 3:
58
+ if (tag !== 26) {
59
+ break;
60
+ }
61
+ message.mode = reader.string();
62
+ continue;
63
+ case 4:
64
+ if (tag !== 32) {
65
+ break;
66
+ }
67
+ message.customer_id = longToNumber(reader.int64());
68
+ continue;
69
+ case 5:
70
+ if (tag !== 42) {
71
+ break;
72
+ }
73
+ message.clint_id = reader.string();
74
+ continue;
47
75
  }
48
76
  if ((tag & 7) === 4 || tag === 0) {
49
77
  break;
@@ -54,18 +82,30 @@ exports.updateTxnStatusRequest = {
54
82
  },
55
83
  fromJSON(object) {
56
84
  return {
57
- txn_id: isSet(object.txn_id) ? globalThis.String(object.txn_id) : "",
85
+ order_id: isSet(object.order_id) ? globalThis.String(object.order_id) : "",
58
86
  status: isSet(object.status) ? globalThis.String(object.status) : "",
87
+ mode: isSet(object.mode) ? globalThis.String(object.mode) : undefined,
88
+ customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : undefined,
89
+ clint_id: isSet(object.clint_id) ? globalThis.String(object.clint_id) : undefined,
59
90
  };
60
91
  },
61
92
  toJSON(message) {
62
93
  const obj = {};
63
- if (message.txn_id !== "") {
64
- obj.txn_id = message.txn_id;
94
+ if (message.order_id !== "") {
95
+ obj.order_id = message.order_id;
65
96
  }
66
97
  if (message.status !== "") {
67
98
  obj.status = message.status;
68
99
  }
100
+ if (message.mode !== undefined) {
101
+ obj.mode = message.mode;
102
+ }
103
+ if (message.customer_id !== undefined) {
104
+ obj.customer_id = Math.round(message.customer_id);
105
+ }
106
+ if (message.clint_id !== undefined) {
107
+ obj.clint_id = message.clint_id;
108
+ }
69
109
  return obj;
70
110
  },
71
111
  create(base) {
@@ -73,8 +113,11 @@ exports.updateTxnStatusRequest = {
73
113
  },
74
114
  fromPartial(object) {
75
115
  const message = createBaseupdateTxnStatusRequest();
76
- message.txn_id = object.txn_id ?? "";
116
+ message.order_id = object.order_id ?? "";
77
117
  message.status = object.status ?? "";
118
+ message.mode = object.mode ?? undefined;
119
+ message.customer_id = object.customer_id ?? undefined;
120
+ message.clint_id = object.clint_id ?? undefined;
78
121
  return message;
79
122
  },
80
123
  };
@@ -128,6 +171,19 @@ exports.updateTxnStatusResponse = {
128
171
  return message;
129
172
  },
130
173
  };
174
+ function longToNumber(long) {
175
+ if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
176
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
177
+ }
178
+ if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
179
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
180
+ }
181
+ return long.toNumber();
182
+ }
183
+ if (minimal_1.default.util.Long !== long_1.default) {
184
+ minimal_1.default.util.Long = long_1.default;
185
+ minimal_1.default.configure();
186
+ }
131
187
  function isSet(value) {
132
188
  return value !== null && value !== undefined;
133
189
  }
@@ -33,6 +33,7 @@ export interface MainCardData {
33
33
  supp_loc_status: number;
34
34
  supp_sub_title: string;
35
35
  card_type: string;
36
+ sanction_amount: number;
36
37
  }
37
38
  export declare const getDashboardMainCardRequest: {
38
39
  encode(_: getDashboardMainCardRequest, writer?: _m0.Writer): _m0.Writer;
@@ -171,6 +171,7 @@ function createBaseMainCardData() {
171
171
  supp_loc_status: 0,
172
172
  supp_sub_title: "",
173
173
  card_type: "",
174
+ sanction_amount: 0,
174
175
  };
175
176
  }
176
177
  exports.MainCardData = {
@@ -247,6 +248,9 @@ exports.MainCardData = {
247
248
  if (message.card_type !== "") {
248
249
  writer.uint32(194).string(message.card_type);
249
250
  }
251
+ if (message.sanction_amount !== 0) {
252
+ writer.uint32(205).float(message.sanction_amount);
253
+ }
250
254
  return writer;
251
255
  },
252
256
  decode(input, length) {
@@ -400,6 +404,12 @@ exports.MainCardData = {
400
404
  }
401
405
  message.card_type = reader.string();
402
406
  continue;
407
+ case 25:
408
+ if (tag !== 205) {
409
+ break;
410
+ }
411
+ message.sanction_amount = reader.float();
412
+ continue;
403
413
  }
404
414
  if ((tag & 7) === 4 || tag === 0) {
405
415
  break;
@@ -434,6 +444,7 @@ exports.MainCardData = {
434
444
  supp_loc_status: isSet(object.supp_loc_status) ? globalThis.Number(object.supp_loc_status) : 0,
435
445
  supp_sub_title: isSet(object.supp_sub_title) ? globalThis.String(object.supp_sub_title) : "",
436
446
  card_type: isSet(object.card_type) ? globalThis.String(object.card_type) : "",
447
+ sanction_amount: isSet(object.sanction_amount) ? globalThis.Number(object.sanction_amount) : 0,
437
448
  };
438
449
  },
439
450
  toJSON(message) {
@@ -510,6 +521,9 @@ exports.MainCardData = {
510
521
  if (message.card_type !== "") {
511
522
  obj.card_type = message.card_type;
512
523
  }
524
+ if (message.sanction_amount !== 0) {
525
+ obj.sanction_amount = message.sanction_amount;
526
+ }
513
527
  return obj;
514
528
  },
515
529
  create(base) {
@@ -541,6 +555,7 @@ exports.MainCardData = {
541
555
  message.supp_loc_status = object.supp_loc_status ?? 0;
542
556
  message.supp_sub_title = object.supp_sub_title ?? "";
543
557
  message.card_type = object.card_type ?? "";
558
+ message.sanction_amount = object.sanction_amount ?? 0;
544
559
  return message;
545
560
  },
546
561
  };
@@ -0,0 +1,36 @@
1
+ import _m0 from "protobufjs/minimal";
2
+ export declare const protobufPackage = "customers.restoreaccount";
3
+ export interface restoreAccountRequest {
4
+ mobile: string;
5
+ deleted_token: string;
6
+ }
7
+ export interface restoreAccountResponse {
8
+ jwttoken: string;
9
+ }
10
+ export declare const restoreAccountRequest: {
11
+ encode(message: restoreAccountRequest, writer?: _m0.Writer): _m0.Writer;
12
+ decode(input: _m0.Reader | Uint8Array, length?: number): restoreAccountRequest;
13
+ fromJSON(object: any): restoreAccountRequest;
14
+ toJSON(message: restoreAccountRequest): unknown;
15
+ create<I extends Exact<DeepPartial<restoreAccountRequest>, I>>(base?: I): restoreAccountRequest;
16
+ fromPartial<I extends Exact<DeepPartial<restoreAccountRequest>, I>>(object: I): restoreAccountRequest;
17
+ };
18
+ export declare const restoreAccountResponse: {
19
+ encode(message: restoreAccountResponse, writer?: _m0.Writer): _m0.Writer;
20
+ decode(input: _m0.Reader | Uint8Array, length?: number): restoreAccountResponse;
21
+ fromJSON(object: any): restoreAccountResponse;
22
+ toJSON(message: restoreAccountResponse): unknown;
23
+ create<I extends Exact<DeepPartial<restoreAccountResponse>, I>>(base?: I): restoreAccountResponse;
24
+ fromPartial<I extends Exact<DeepPartial<restoreAccountResponse>, I>>(object: I): restoreAccountResponse;
25
+ };
26
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
27
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
28
+ [K in keyof T]?: DeepPartial<T[K]>;
29
+ } : Partial<T>;
30
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
31
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
32
+ [K in keyof P]: Exact<P[K], I[K]>;
33
+ } & {
34
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
35
+ };
36
+ export {};