@stashfin/grpc 1.2.411 → 1.2.413
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.
- package/package.json +1 -1
- package/ts/customers/enach/updatetxnstatus.d.ts +4 -1
- package/ts/customers/enach/updatetxnstatus.js +64 -8
- package/ts/loans/getnextdueamount.d.ts +1 -0
- package/ts/loans/getnextdueamount.js +25 -1
- package/ts/loans/getsummarystaticfields.d.ts +0 -2
- package/ts/loans/getsummarystaticfields.js +1 -31
- package/ts/loans/getvirtualaccountnumber.d.ts +35 -0
- package/ts/{customers/verifyemail.js → loans/getvirtualaccountnumber.js} +32 -32
- package/ts/loans/loansummary.d.ts +2 -0
- package/ts/loans/loansummary.js +30 -0
- package/ts/customers/getrpdlink.d.ts +0 -40
- package/ts/customers/getrpdlink.js +0 -190
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/skipdlrcscreen.d.ts +0 -35
- package/ts/customers/skipdlrcscreen.js +0 -117
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/google/protobuf/timestamp.d.ts +0 -127
- package/ts/google/protobuf/timestamp.js +0 -97
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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 {
|
|
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.
|
|
21
|
-
writer.uint32(10).string(message.
|
|
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.
|
|
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
|
-
|
|
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.
|
|
64
|
-
obj.
|
|
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.
|
|
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
|
}
|
|
@@ -24,6 +24,7 @@ export interface getNextdueAmountResponse_Field {
|
|
|
24
24
|
due_date: string;
|
|
25
25
|
loan_id: number[];
|
|
26
26
|
installment_id: number[];
|
|
27
|
+
already_paid?: boolean | undefined;
|
|
27
28
|
}
|
|
28
29
|
export declare const getNextdueAmountRequest: {
|
|
29
30
|
encode(_: getNextdueAmountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -256,7 +256,17 @@ exports.getNextdueAmountResponse_FcpData = {
|
|
|
256
256
|
},
|
|
257
257
|
};
|
|
258
258
|
function createBasegetNextdueAmountResponse_Field() {
|
|
259
|
-
return {
|
|
259
|
+
return {
|
|
260
|
+
type: "",
|
|
261
|
+
amount: 0,
|
|
262
|
+
principal: 0,
|
|
263
|
+
interest: 0,
|
|
264
|
+
penalty: 0,
|
|
265
|
+
due_date: "",
|
|
266
|
+
loan_id: [],
|
|
267
|
+
installment_id: [],
|
|
268
|
+
already_paid: undefined,
|
|
269
|
+
};
|
|
260
270
|
}
|
|
261
271
|
exports.getNextdueAmountResponse_Field = {
|
|
262
272
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -288,6 +298,9 @@ exports.getNextdueAmountResponse_Field = {
|
|
|
288
298
|
writer.int32(v);
|
|
289
299
|
}
|
|
290
300
|
writer.ldelim();
|
|
301
|
+
if (message.already_paid !== undefined) {
|
|
302
|
+
writer.uint32(72).bool(message.already_paid);
|
|
303
|
+
}
|
|
291
304
|
return writer;
|
|
292
305
|
},
|
|
293
306
|
decode(input, length) {
|
|
@@ -359,6 +372,12 @@ exports.getNextdueAmountResponse_Field = {
|
|
|
359
372
|
continue;
|
|
360
373
|
}
|
|
361
374
|
break;
|
|
375
|
+
case 9:
|
|
376
|
+
if (tag !== 72) {
|
|
377
|
+
break;
|
|
378
|
+
}
|
|
379
|
+
message.already_paid = reader.bool();
|
|
380
|
+
continue;
|
|
362
381
|
}
|
|
363
382
|
if ((tag & 7) === 4 || tag === 0) {
|
|
364
383
|
break;
|
|
@@ -379,6 +398,7 @@ exports.getNextdueAmountResponse_Field = {
|
|
|
379
398
|
installment_id: globalThis.Array.isArray(object?.installment_id)
|
|
380
399
|
? object.installment_id.map((e) => globalThis.Number(e))
|
|
381
400
|
: [],
|
|
401
|
+
already_paid: isSet(object.already_paid) ? globalThis.Boolean(object.already_paid) : undefined,
|
|
382
402
|
};
|
|
383
403
|
},
|
|
384
404
|
toJSON(message) {
|
|
@@ -407,6 +427,9 @@ exports.getNextdueAmountResponse_Field = {
|
|
|
407
427
|
if (message.installment_id?.length) {
|
|
408
428
|
obj.installment_id = message.installment_id.map((e) => Math.round(e));
|
|
409
429
|
}
|
|
430
|
+
if (message.already_paid !== undefined) {
|
|
431
|
+
obj.already_paid = message.already_paid;
|
|
432
|
+
}
|
|
410
433
|
return obj;
|
|
411
434
|
},
|
|
412
435
|
create(base) {
|
|
@@ -422,6 +445,7 @@ exports.getNextdueAmountResponse_Field = {
|
|
|
422
445
|
message.due_date = object.due_date ?? "";
|
|
423
446
|
message.loan_id = object.loan_id?.map((e) => e) || [];
|
|
424
447
|
message.installment_id = object.installment_id?.map((e) => e) || [];
|
|
448
|
+
message.already_paid = object.already_paid ?? undefined;
|
|
425
449
|
return message;
|
|
426
450
|
},
|
|
427
451
|
};
|
|
@@ -39,8 +39,6 @@ export interface getSummaryStaticFieldsResponse {
|
|
|
39
39
|
bill_amount_l: string;
|
|
40
40
|
credit_section: getSummaryStaticFieldsResponse_CreditSection[];
|
|
41
41
|
broken_period: getSummaryStaticFieldsResponse_BrokenPeriod | undefined;
|
|
42
|
-
financing_doc: string;
|
|
43
|
-
sanction_latter: string;
|
|
44
42
|
insaurance_tnc_url: string;
|
|
45
43
|
}
|
|
46
44
|
export interface getSummaryStaticFieldsResponse_Field {
|
|
@@ -87,8 +87,6 @@ function createBasegetSummaryStaticFieldsResponse() {
|
|
|
87
87
|
bill_amount_l: "",
|
|
88
88
|
credit_section: [],
|
|
89
89
|
broken_period: undefined,
|
|
90
|
-
financing_doc: "",
|
|
91
|
-
sanction_latter: "",
|
|
92
90
|
insaurance_tnc_url: "",
|
|
93
91
|
};
|
|
94
92
|
}
|
|
@@ -202,14 +200,8 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
202
200
|
if (message.broken_period !== undefined) {
|
|
203
201
|
exports.getSummaryStaticFieldsResponse_BrokenPeriod.encode(message.broken_period, writer.uint32(290).fork()).ldelim();
|
|
204
202
|
}
|
|
205
|
-
if (message.financing_doc !== "") {
|
|
206
|
-
writer.uint32(298).string(message.financing_doc);
|
|
207
|
-
}
|
|
208
|
-
if (message.sanction_latter !== "") {
|
|
209
|
-
writer.uint32(306).string(message.sanction_latter);
|
|
210
|
-
}
|
|
211
203
|
if (message.insaurance_tnc_url !== "") {
|
|
212
|
-
writer.uint32(
|
|
204
|
+
writer.uint32(298).string(message.insaurance_tnc_url);
|
|
213
205
|
}
|
|
214
206
|
return writer;
|
|
215
207
|
},
|
|
@@ -440,18 +432,6 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
440
432
|
if (tag !== 298) {
|
|
441
433
|
break;
|
|
442
434
|
}
|
|
443
|
-
message.financing_doc = reader.string();
|
|
444
|
-
continue;
|
|
445
|
-
case 38:
|
|
446
|
-
if (tag !== 306) {
|
|
447
|
-
break;
|
|
448
|
-
}
|
|
449
|
-
message.sanction_latter = reader.string();
|
|
450
|
-
continue;
|
|
451
|
-
case 39:
|
|
452
|
-
if (tag !== 314) {
|
|
453
|
-
break;
|
|
454
|
-
}
|
|
455
435
|
message.insaurance_tnc_url = reader.string();
|
|
456
436
|
continue;
|
|
457
437
|
}
|
|
@@ -520,8 +500,6 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
520
500
|
broken_period: isSet(object.broken_period)
|
|
521
501
|
? exports.getSummaryStaticFieldsResponse_BrokenPeriod.fromJSON(object.broken_period)
|
|
522
502
|
: undefined,
|
|
523
|
-
financing_doc: isSet(object.financing_doc) ? globalThis.String(object.financing_doc) : "",
|
|
524
|
-
sanction_latter: isSet(object.sanction_latter) ? globalThis.String(object.sanction_latter) : "",
|
|
525
503
|
insaurance_tnc_url: isSet(object.insaurance_tnc_url) ? globalThis.String(object.insaurance_tnc_url) : "",
|
|
526
504
|
};
|
|
527
505
|
},
|
|
@@ -635,12 +613,6 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
635
613
|
if (message.broken_period !== undefined) {
|
|
636
614
|
obj.broken_period = exports.getSummaryStaticFieldsResponse_BrokenPeriod.toJSON(message.broken_period);
|
|
637
615
|
}
|
|
638
|
-
if (message.financing_doc !== "") {
|
|
639
|
-
obj.financing_doc = message.financing_doc;
|
|
640
|
-
}
|
|
641
|
-
if (message.sanction_latter !== "") {
|
|
642
|
-
obj.sanction_latter = message.sanction_latter;
|
|
643
|
-
}
|
|
644
616
|
if (message.insaurance_tnc_url !== "") {
|
|
645
617
|
obj.insaurance_tnc_url = message.insaurance_tnc_url;
|
|
646
618
|
}
|
|
@@ -691,8 +663,6 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
691
663
|
message.broken_period = (object.broken_period !== undefined && object.broken_period !== null)
|
|
692
664
|
? exports.getSummaryStaticFieldsResponse_BrokenPeriod.fromPartial(object.broken_period)
|
|
693
665
|
: undefined;
|
|
694
|
-
message.financing_doc = object.financing_doc ?? "";
|
|
695
|
-
message.sanction_latter = object.sanction_latter ?? "";
|
|
696
666
|
message.insaurance_tnc_url = object.insaurance_tnc_url ?? "";
|
|
697
667
|
return message;
|
|
698
668
|
},
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getvirtualaccountnumber";
|
|
3
|
+
export interface getVirtualAccountNumberRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface getVirtualAccountNumberResponse {
|
|
7
|
+
account_number: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const getVirtualAccountNumberRequest: {
|
|
10
|
+
encode(message: getVirtualAccountNumberRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberRequest;
|
|
12
|
+
fromJSON(object: any): getVirtualAccountNumberRequest;
|
|
13
|
+
toJSON(message: getVirtualAccountNumberRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(base?: I): getVirtualAccountNumberRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(object: I): getVirtualAccountNumberRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const getVirtualAccountNumberResponse: {
|
|
18
|
+
encode(message: getVirtualAccountNumberResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberResponse;
|
|
20
|
+
fromJSON(object: any): getVirtualAccountNumberResponse;
|
|
21
|
+
toJSON(message: getVirtualAccountNumberResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(base?: I): getVirtualAccountNumberResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(object: I): getVirtualAccountNumberResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -2,38 +2,38 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc
|
|
6
|
-
// source:
|
|
5
|
+
// protoc v5.28.2
|
|
6
|
+
// source: loans/getvirtualaccountnumber.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.
|
|
11
|
+
exports.getVirtualAccountNumberResponse = exports.getVirtualAccountNumberRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "
|
|
15
|
-
function
|
|
16
|
-
return {
|
|
14
|
+
exports.protobufPackage = "loans.getvirtualaccountnumber";
|
|
15
|
+
function createBasegetVirtualAccountNumberRequest() {
|
|
16
|
+
return { customer_id: 0 };
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
18
|
+
exports.getVirtualAccountNumberRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
22
22
|
}
|
|
23
23
|
return writer;
|
|
24
24
|
},
|
|
25
25
|
decode(input, length) {
|
|
26
26
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
27
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message =
|
|
28
|
+
const message = createBasegetVirtualAccountNumberRequest();
|
|
29
29
|
while (reader.pos < end) {
|
|
30
30
|
const tag = reader.uint32();
|
|
31
31
|
switch (tag >>> 3) {
|
|
32
32
|
case 1:
|
|
33
|
-
if (tag !==
|
|
33
|
+
if (tag !== 8) {
|
|
34
34
|
break;
|
|
35
35
|
}
|
|
36
|
-
message.
|
|
36
|
+
message.customer_id = reader.int32();
|
|
37
37
|
continue;
|
|
38
38
|
}
|
|
39
39
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -44,46 +44,46 @@ exports.verifyEmailRequest = {
|
|
|
44
44
|
return message;
|
|
45
45
|
},
|
|
46
46
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
47
|
+
return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
48
48
|
},
|
|
49
49
|
toJSON(message) {
|
|
50
50
|
const obj = {};
|
|
51
|
-
if (message.
|
|
52
|
-
obj.
|
|
51
|
+
if (message.customer_id !== 0) {
|
|
52
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
53
53
|
}
|
|
54
54
|
return obj;
|
|
55
55
|
},
|
|
56
56
|
create(base) {
|
|
57
|
-
return exports.
|
|
57
|
+
return exports.getVirtualAccountNumberRequest.fromPartial(base ?? {});
|
|
58
58
|
},
|
|
59
59
|
fromPartial(object) {
|
|
60
|
-
const message =
|
|
61
|
-
message.
|
|
60
|
+
const message = createBasegetVirtualAccountNumberRequest();
|
|
61
|
+
message.customer_id = object.customer_id ?? 0;
|
|
62
62
|
return message;
|
|
63
63
|
},
|
|
64
64
|
};
|
|
65
|
-
function
|
|
66
|
-
return {
|
|
65
|
+
function createBasegetVirtualAccountNumberResponse() {
|
|
66
|
+
return { account_number: "" };
|
|
67
67
|
}
|
|
68
|
-
exports.
|
|
68
|
+
exports.getVirtualAccountNumberResponse = {
|
|
69
69
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
if (message.
|
|
71
|
-
writer.uint32(
|
|
70
|
+
if (message.account_number !== "") {
|
|
71
|
+
writer.uint32(10).string(message.account_number);
|
|
72
72
|
}
|
|
73
73
|
return writer;
|
|
74
74
|
},
|
|
75
75
|
decode(input, length) {
|
|
76
76
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
77
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
-
const message =
|
|
78
|
+
const message = createBasegetVirtualAccountNumberResponse();
|
|
79
79
|
while (reader.pos < end) {
|
|
80
80
|
const tag = reader.uint32();
|
|
81
81
|
switch (tag >>> 3) {
|
|
82
82
|
case 1:
|
|
83
|
-
if (tag !==
|
|
83
|
+
if (tag !== 10) {
|
|
84
84
|
break;
|
|
85
85
|
}
|
|
86
|
-
message.
|
|
86
|
+
message.account_number = reader.string();
|
|
87
87
|
continue;
|
|
88
88
|
}
|
|
89
89
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -94,21 +94,21 @@ exports.verifyEmailResponse = {
|
|
|
94
94
|
return message;
|
|
95
95
|
},
|
|
96
96
|
fromJSON(object) {
|
|
97
|
-
return {
|
|
97
|
+
return { account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "" };
|
|
98
98
|
},
|
|
99
99
|
toJSON(message) {
|
|
100
100
|
const obj = {};
|
|
101
|
-
if (message.
|
|
102
|
-
obj.
|
|
101
|
+
if (message.account_number !== "") {
|
|
102
|
+
obj.account_number = message.account_number;
|
|
103
103
|
}
|
|
104
104
|
return obj;
|
|
105
105
|
},
|
|
106
106
|
create(base) {
|
|
107
|
-
return exports.
|
|
107
|
+
return exports.getVirtualAccountNumberResponse.fromPartial(base ?? {});
|
|
108
108
|
},
|
|
109
109
|
fromPartial(object) {
|
|
110
|
-
const message =
|
|
111
|
-
message.
|
|
110
|
+
const message = createBasegetVirtualAccountNumberResponse();
|
|
111
|
+
message.account_number = object.account_number ?? "";
|
|
112
112
|
return message;
|
|
113
113
|
},
|
|
114
114
|
};
|
|
@@ -43,6 +43,8 @@ export interface loanSummaryResponse {
|
|
|
43
43
|
plan_id: number;
|
|
44
44
|
approved_amount: number;
|
|
45
45
|
discount: number;
|
|
46
|
+
financing_doc: string;
|
|
47
|
+
sanction_latter: string;
|
|
46
48
|
}
|
|
47
49
|
export declare const loanSummaryRequest: {
|
|
48
50
|
encode(message: loanSummaryRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/loansummary.js
CHANGED
|
@@ -221,6 +221,8 @@ function createBaseloanSummaryResponse() {
|
|
|
221
221
|
plan_id: 0,
|
|
222
222
|
approved_amount: 0,
|
|
223
223
|
discount: 0,
|
|
224
|
+
financing_doc: "",
|
|
225
|
+
sanction_latter: "",
|
|
224
226
|
};
|
|
225
227
|
}
|
|
226
228
|
exports.loanSummaryResponse = {
|
|
@@ -318,6 +320,12 @@ exports.loanSummaryResponse = {
|
|
|
318
320
|
if (message.discount !== 0) {
|
|
319
321
|
writer.uint32(248).int32(message.discount);
|
|
320
322
|
}
|
|
323
|
+
if (message.financing_doc !== "") {
|
|
324
|
+
writer.uint32(258).string(message.financing_doc);
|
|
325
|
+
}
|
|
326
|
+
if (message.sanction_latter !== "") {
|
|
327
|
+
writer.uint32(266).string(message.sanction_latter);
|
|
328
|
+
}
|
|
321
329
|
return writer;
|
|
322
330
|
},
|
|
323
331
|
decode(input, length) {
|
|
@@ -513,6 +521,18 @@ exports.loanSummaryResponse = {
|
|
|
513
521
|
}
|
|
514
522
|
message.discount = reader.int32();
|
|
515
523
|
continue;
|
|
524
|
+
case 32:
|
|
525
|
+
if (tag !== 258) {
|
|
526
|
+
break;
|
|
527
|
+
}
|
|
528
|
+
message.financing_doc = reader.string();
|
|
529
|
+
continue;
|
|
530
|
+
case 33:
|
|
531
|
+
if (tag !== 266) {
|
|
532
|
+
break;
|
|
533
|
+
}
|
|
534
|
+
message.sanction_latter = reader.string();
|
|
535
|
+
continue;
|
|
516
536
|
}
|
|
517
537
|
if ((tag & 7) === 4 || tag === 0) {
|
|
518
538
|
break;
|
|
@@ -562,6 +582,8 @@ exports.loanSummaryResponse = {
|
|
|
562
582
|
plan_id: isSet(object.plan_id) ? globalThis.Number(object.plan_id) : 0,
|
|
563
583
|
approved_amount: isSet(object.approved_amount) ? globalThis.Number(object.approved_amount) : 0,
|
|
564
584
|
discount: isSet(object.discount) ? globalThis.Number(object.discount) : 0,
|
|
585
|
+
financing_doc: isSet(object.financing_doc) ? globalThis.String(object.financing_doc) : "",
|
|
586
|
+
sanction_latter: isSet(object.sanction_latter) ? globalThis.String(object.sanction_latter) : "",
|
|
565
587
|
};
|
|
566
588
|
},
|
|
567
589
|
toJSON(message) {
|
|
@@ -659,6 +681,12 @@ exports.loanSummaryResponse = {
|
|
|
659
681
|
if (message.discount !== 0) {
|
|
660
682
|
obj.discount = Math.round(message.discount);
|
|
661
683
|
}
|
|
684
|
+
if (message.financing_doc !== "") {
|
|
685
|
+
obj.financing_doc = message.financing_doc;
|
|
686
|
+
}
|
|
687
|
+
if (message.sanction_latter !== "") {
|
|
688
|
+
obj.sanction_latter = message.sanction_latter;
|
|
689
|
+
}
|
|
662
690
|
return obj;
|
|
663
691
|
},
|
|
664
692
|
create(base) {
|
|
@@ -697,6 +725,8 @@ exports.loanSummaryResponse = {
|
|
|
697
725
|
message.plan_id = object.plan_id ?? 0;
|
|
698
726
|
message.approved_amount = object.approved_amount ?? 0;
|
|
699
727
|
message.discount = object.discount ?? 0;
|
|
728
|
+
message.financing_doc = object.financing_doc ?? "";
|
|
729
|
+
message.sanction_latter = object.sanction_latter ?? "";
|
|
700
730
|
return message;
|
|
701
731
|
},
|
|
702
732
|
};
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "customers.getrpdlink";
|
|
3
|
-
export interface createRpdLinkRequest {
|
|
4
|
-
}
|
|
5
|
-
export interface createRpdLinkResponse {
|
|
6
|
-
id: string;
|
|
7
|
-
shortUrl: string;
|
|
8
|
-
status: string;
|
|
9
|
-
traceId: string;
|
|
10
|
-
upiBillId: string;
|
|
11
|
-
upiLink: string;
|
|
12
|
-
validUpto: string;
|
|
13
|
-
}
|
|
14
|
-
export declare const createRpdLinkRequest: {
|
|
15
|
-
encode(_: createRpdLinkRequest, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): createRpdLinkRequest;
|
|
17
|
-
fromJSON(_: any): createRpdLinkRequest;
|
|
18
|
-
toJSON(_: createRpdLinkRequest): unknown;
|
|
19
|
-
create<I extends Exact<DeepPartial<createRpdLinkRequest>, I>>(base?: I): createRpdLinkRequest;
|
|
20
|
-
fromPartial<I extends Exact<DeepPartial<createRpdLinkRequest>, I>>(_: I): createRpdLinkRequest;
|
|
21
|
-
};
|
|
22
|
-
export declare const createRpdLinkResponse: {
|
|
23
|
-
encode(message: createRpdLinkResponse, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): createRpdLinkResponse;
|
|
25
|
-
fromJSON(object: any): createRpdLinkResponse;
|
|
26
|
-
toJSON(message: createRpdLinkResponse): unknown;
|
|
27
|
-
create<I extends Exact<DeepPartial<createRpdLinkResponse>, I>>(base?: I): createRpdLinkResponse;
|
|
28
|
-
fromPartial<I extends Exact<DeepPartial<createRpdLinkResponse>, I>>(object: I): createRpdLinkResponse;
|
|
29
|
-
};
|
|
30
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
31
|
-
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 {} ? {
|
|
32
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
33
|
-
} : Partial<T>;
|
|
34
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
35
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
36
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
37
|
-
} & {
|
|
38
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
39
|
-
};
|
|
40
|
-
export {};
|