@stashfin/grpc 1.2.51 → 1.2.52
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/customer/getprofile.d.ts +38 -0
- package/ts/customer/getprofile.js +162 -0
- package/ts/customer/getstep.d.ts +78 -0
- package/ts/customer/getstep.js +420 -0
- package/ts/customer/profileupdatetnc.d.ts +35 -0
- package/ts/{customers/saveunlocklimit.js → customer/profileupdatetnc.js} +33 -20
- package/ts/customer/sendotp.d.ts +36 -0
- package/ts/{customers/resetmpin.js → customer/sendotp.js} +47 -47
- package/ts/customer/setmpin.d.ts +36 -0
- package/ts/{customers/updatehypervergetxn.js → customer/setmpin.js} +30 -30
- package/ts/customer/step1.d.ts +69 -0
- package/ts/customer/step1.js +395 -0
- package/ts/customer/step10.d.ts +73 -0
- package/ts/customer/step10.js +459 -0
- package/ts/customer/step2.d.ts +68 -0
- package/ts/customer/step2.js +381 -0
- package/ts/customer/step7.d.ts +68 -0
- package/ts/customer/step7.js +381 -0
- package/ts/customer/step8.d.ts +69 -0
- package/ts/customer/step8.js +395 -0
- package/ts/customer/step9.d.ts +75 -0
- package/ts/customer/step9.js +489 -0
- package/ts/customer/stepstatic.d.ts +66 -0
- package/ts/customer/stepstatic.js +352 -0
- package/ts/customer/verifympin.d.ts +37 -0
- package/ts/{customers/updatedigilockertxn.js → customer/verifympin.js} +48 -46
- package/ts/customer/verifyotp.d.ts +39 -0
- package/ts/customer/verifyotp.js +177 -0
- package/ts/customer.d.ts +262 -0
- package/ts/customer.js +190 -0
- package/ts/customers/getbankaccountdetails.js +1 -1
- package/ts/customers/getbasicinfo.d.ts +3 -20
- package/ts/customers/getbasicinfo.js +24 -171
- package/ts/customers/getcustomerbyid.d.ts +0 -5
- package/ts/customers/getcustomerbyid.js +1 -76
- package/ts/customers/getdashboard.d.ts +0 -1
- package/ts/customers/getdashboard.js +34 -49
- package/ts/customers/getdashboardmaincard.js +1 -1
- package/ts/customers/getprofessionalinfo.d.ts +1 -18
- package/ts/customers/getprofessionalinfo.js +10 -148
- package/ts/customers/getprofile.d.ts +2 -17
- package/ts/customers/getprofile.js +26 -146
- package/ts/customers/getstep.d.ts +28 -19
- package/ts/customers/getstep.js +173 -159
- package/ts/customers/profilebasic.js +1 -1
- package/ts/customers/profileupdatetnc.js +1 -1
- package/ts/customers/sendemailtoken.js +1 -1
- package/ts/customers/sendotp.js +1 -1
- package/ts/customers/setmpin.js +1 -1
- package/ts/customers/step1.d.ts +0 -2
- package/ts/customers/step1.js +4 -32
- package/ts/customers/step10.js +1 -1
- package/ts/customers/step2.d.ts +6 -5
- package/ts/customers/step2.js +37 -22
- package/ts/customers/step7.js +1 -1
- package/ts/customers/step8.js +1 -1
- package/ts/customers/step9.js +1 -1
- package/ts/customers/stepstatic.js +1 -1
- package/ts/customers/verifyemail.js +1 -1
- package/ts/customers/verifympin.js +1 -1
- package/ts/customers/verifyotp.js +1 -1
- package/ts/customers.d.ts +28 -180
- package/ts/customers.js +17 -125
- package/ts/example.js +1 -1
- package/ts/google/protobuf/any.d.ts +138 -0
- package/ts/google/protobuf/any.js +108 -0
- package/ts/google/protobuf/timestamp.js +1 -1
- package/ts/loans/approveloan.js +1 -1
- package/ts/loans/banklist.d.ts +11 -0
- package/ts/loans/banklist.js +60 -6
- package/ts/loans/calculateemi.d.ts +2 -16
- package/ts/loans/calculateemi.js +19 -115
- package/ts/loans/creditlimit.d.ts +0 -8
- package/ts/loans/creditlimit.js +2 -129
- package/ts/loans/updateinstallments.js +1 -1
- package/ts/loans/updateloan.js +1 -1
- package/ts/loans.d.ts +0 -14
- package/ts/loans.js +1 -11
- package/ts/payments/checkpaymentstatus.d.ts +51 -0
- package/ts/payments/checkpaymentstatus.js +259 -0
- package/ts/payments/createorder.d.ts +39 -0
- package/ts/payments/createorder.js +191 -0
- package/ts/payments/getpaymentdetails.d.ts +58 -0
- package/ts/payments/getpaymentdetails.js +367 -0
- package/ts/payments/getpaymentoptions.d.ts +50 -0
- package/ts/payments/getpaymentoptions.js +231 -0
- package/ts/payments/initiatepayment.d.ts +54 -0
- package/ts/payments/initiatepayment.js +299 -0
- package/ts/payments.d.ts +70 -0
- package/ts/payments.js +54 -0
- package/ts/stashcash/creditsc.js +1 -1
- package/ts/stashcash/debitsc.js +1 -1
- package/ts/stashcash/getscbalance.js +1 -1
- package/ts/stashcash/getschistory.js +1 -1
- package/ts/stashcash/reversesc.js +1 -1
- package/ts/stashcash.js +1 -1
- package/ts/customers/addaddress.d.ts +0 -50
- package/ts/customers/addaddress.js +0 -265
- package/ts/customers/addbankaccountdetails.d.ts +0 -37
- package/ts/customers/addbankaccountdetails.js +0 -147
- package/ts/customers/createcustomerreference.d.ts +0 -43
- package/ts/customers/createcustomerreference.js +0 -226
- package/ts/customers/getcities.d.ts +0 -47
- package/ts/customers/getcities.js +0 -183
- package/ts/customers/getkycweburl.d.ts +0 -34
- package/ts/customers/getkycweburl.js +0 -104
- package/ts/customers/getstates.d.ts +0 -46
- package/ts/customers/getstates.js +0 -170
- package/ts/customers/resetmpin.d.ts +0 -36
- package/ts/customers/savebasicdetails.d.ts +0 -47
- package/ts/customers/savebasicdetails.js +0 -185
- package/ts/customers/saveunlocklimit.d.ts +0 -34
- package/ts/customers/updatedigilockertxn.d.ts +0 -37
- package/ts/customers/updatehypervergetxn.d.ts +0 -36
- package/ts/loans/restructureloan.d.ts +0 -36
- package/ts/loans/restructureloan.js +0 -133
- package/ts/loans/transactionlist.d.ts +0 -50
- package/ts/loans/transactionlist.js +0 -229
|
@@ -1,133 +0,0 @@
|
|
|
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 v3.20.3
|
|
6
|
-
// source: loans/restructureloan.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.restructureLoanResponse = exports.restructureLoanRequest = exports.protobufPackage = void 0;
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "loans.restructureloan";
|
|
15
|
-
function createBaserestructureLoanRequest() {
|
|
16
|
-
return { loan_id: 0, tenure: 0 };
|
|
17
|
-
}
|
|
18
|
-
exports.restructureLoanRequest = {
|
|
19
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.loan_id !== 0) {
|
|
21
|
-
writer.uint32(8).int32(message.loan_id);
|
|
22
|
-
}
|
|
23
|
-
if (message.tenure !== 0) {
|
|
24
|
-
writer.uint32(16).int32(message.tenure);
|
|
25
|
-
}
|
|
26
|
-
return writer;
|
|
27
|
-
},
|
|
28
|
-
decode(input, length) {
|
|
29
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
30
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
31
|
-
const message = createBaserestructureLoanRequest();
|
|
32
|
-
while (reader.pos < end) {
|
|
33
|
-
const tag = reader.uint32();
|
|
34
|
-
switch (tag >>> 3) {
|
|
35
|
-
case 1:
|
|
36
|
-
if (tag !== 8) {
|
|
37
|
-
break;
|
|
38
|
-
}
|
|
39
|
-
message.loan_id = reader.int32();
|
|
40
|
-
continue;
|
|
41
|
-
case 2:
|
|
42
|
-
if (tag !== 16) {
|
|
43
|
-
break;
|
|
44
|
-
}
|
|
45
|
-
message.tenure = reader.int32();
|
|
46
|
-
continue;
|
|
47
|
-
}
|
|
48
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
49
|
-
break;
|
|
50
|
-
}
|
|
51
|
-
reader.skipType(tag & 7);
|
|
52
|
-
}
|
|
53
|
-
return message;
|
|
54
|
-
},
|
|
55
|
-
fromJSON(object) {
|
|
56
|
-
return {
|
|
57
|
-
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
58
|
-
tenure: isSet(object.tenure) ? globalThis.Number(object.tenure) : 0,
|
|
59
|
-
};
|
|
60
|
-
},
|
|
61
|
-
toJSON(message) {
|
|
62
|
-
const obj = {};
|
|
63
|
-
if (message.loan_id !== 0) {
|
|
64
|
-
obj.loan_id = Math.round(message.loan_id);
|
|
65
|
-
}
|
|
66
|
-
if (message.tenure !== 0) {
|
|
67
|
-
obj.tenure = Math.round(message.tenure);
|
|
68
|
-
}
|
|
69
|
-
return obj;
|
|
70
|
-
},
|
|
71
|
-
create(base) {
|
|
72
|
-
return exports.restructureLoanRequest.fromPartial(base ?? {});
|
|
73
|
-
},
|
|
74
|
-
fromPartial(object) {
|
|
75
|
-
const message = createBaserestructureLoanRequest();
|
|
76
|
-
message.loan_id = object.loan_id ?? 0;
|
|
77
|
-
message.tenure = object.tenure ?? 0;
|
|
78
|
-
return message;
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
function createBaserestructureLoanResponse() {
|
|
82
|
-
return { id: 0 };
|
|
83
|
-
}
|
|
84
|
-
exports.restructureLoanResponse = {
|
|
85
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
86
|
-
if (message.id !== 0) {
|
|
87
|
-
writer.uint32(8).int32(message.id);
|
|
88
|
-
}
|
|
89
|
-
return writer;
|
|
90
|
-
},
|
|
91
|
-
decode(input, length) {
|
|
92
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
93
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
|
-
const message = createBaserestructureLoanResponse();
|
|
95
|
-
while (reader.pos < end) {
|
|
96
|
-
const tag = reader.uint32();
|
|
97
|
-
switch (tag >>> 3) {
|
|
98
|
-
case 1:
|
|
99
|
-
if (tag !== 8) {
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
message.id = reader.int32();
|
|
103
|
-
continue;
|
|
104
|
-
}
|
|
105
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
106
|
-
break;
|
|
107
|
-
}
|
|
108
|
-
reader.skipType(tag & 7);
|
|
109
|
-
}
|
|
110
|
-
return message;
|
|
111
|
-
},
|
|
112
|
-
fromJSON(object) {
|
|
113
|
-
return { id: isSet(object.id) ? globalThis.Number(object.id) : 0 };
|
|
114
|
-
},
|
|
115
|
-
toJSON(message) {
|
|
116
|
-
const obj = {};
|
|
117
|
-
if (message.id !== 0) {
|
|
118
|
-
obj.id = Math.round(message.id);
|
|
119
|
-
}
|
|
120
|
-
return obj;
|
|
121
|
-
},
|
|
122
|
-
create(base) {
|
|
123
|
-
return exports.restructureLoanResponse.fromPartial(base ?? {});
|
|
124
|
-
},
|
|
125
|
-
fromPartial(object) {
|
|
126
|
-
const message = createBaserestructureLoanResponse();
|
|
127
|
-
message.id = object.id ?? 0;
|
|
128
|
-
return message;
|
|
129
|
-
},
|
|
130
|
-
};
|
|
131
|
-
function isSet(value) {
|
|
132
|
-
return value !== null && value !== undefined;
|
|
133
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "loans.transactionlist";
|
|
3
|
-
export interface transactionListRequest {
|
|
4
|
-
filter_by: string;
|
|
5
|
-
}
|
|
6
|
-
export interface transactionListResponse {
|
|
7
|
-
data: transactionListResponse_Field[];
|
|
8
|
-
}
|
|
9
|
-
export interface transactionListResponse_Field {
|
|
10
|
-
id: number;
|
|
11
|
-
loan_amount: number;
|
|
12
|
-
emi_amount: number;
|
|
13
|
-
start_date: string;
|
|
14
|
-
close_date: string;
|
|
15
|
-
}
|
|
16
|
-
export declare const transactionListRequest: {
|
|
17
|
-
encode(message: transactionListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListRequest;
|
|
19
|
-
fromJSON(object: any): transactionListRequest;
|
|
20
|
-
toJSON(message: transactionListRequest): unknown;
|
|
21
|
-
create<I extends Exact<DeepPartial<transactionListRequest>, I>>(base?: I): transactionListRequest;
|
|
22
|
-
fromPartial<I extends Exact<DeepPartial<transactionListRequest>, I>>(object: I): transactionListRequest;
|
|
23
|
-
};
|
|
24
|
-
export declare const transactionListResponse: {
|
|
25
|
-
encode(message: transactionListResponse, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListResponse;
|
|
27
|
-
fromJSON(object: any): transactionListResponse;
|
|
28
|
-
toJSON(message: transactionListResponse): unknown;
|
|
29
|
-
create<I extends Exact<DeepPartial<transactionListResponse>, I>>(base?: I): transactionListResponse;
|
|
30
|
-
fromPartial<I extends Exact<DeepPartial<transactionListResponse>, I>>(object: I): transactionListResponse;
|
|
31
|
-
};
|
|
32
|
-
export declare const transactionListResponse_Field: {
|
|
33
|
-
encode(message: transactionListResponse_Field, writer?: _m0.Writer): _m0.Writer;
|
|
34
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): transactionListResponse_Field;
|
|
35
|
-
fromJSON(object: any): transactionListResponse_Field;
|
|
36
|
-
toJSON(message: transactionListResponse_Field): unknown;
|
|
37
|
-
create<I extends Exact<DeepPartial<transactionListResponse_Field>, I>>(base?: I): transactionListResponse_Field;
|
|
38
|
-
fromPartial<I extends Exact<DeepPartial<transactionListResponse_Field>, I>>(object: I): transactionListResponse_Field;
|
|
39
|
-
};
|
|
40
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
-
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 {} ? {
|
|
42
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
43
|
-
} : Partial<T>;
|
|
44
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
45
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
46
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
47
|
-
} & {
|
|
48
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
49
|
-
};
|
|
50
|
-
export {};
|
|
@@ -1,229 +0,0 @@
|
|
|
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 v3.20.3
|
|
6
|
-
// source: loans/transactionlist.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.transactionListResponse_Field = exports.transactionListResponse = exports.transactionListRequest = exports.protobufPackage = void 0;
|
|
12
|
-
/* eslint-disable */
|
|
13
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "loans.transactionlist";
|
|
15
|
-
function createBasetransactionListRequest() {
|
|
16
|
-
return { filter_by: "" };
|
|
17
|
-
}
|
|
18
|
-
exports.transactionListRequest = {
|
|
19
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.filter_by !== "") {
|
|
21
|
-
writer.uint32(10).string(message.filter_by);
|
|
22
|
-
}
|
|
23
|
-
return writer;
|
|
24
|
-
},
|
|
25
|
-
decode(input, length) {
|
|
26
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message = createBasetransactionListRequest();
|
|
29
|
-
while (reader.pos < end) {
|
|
30
|
-
const tag = reader.uint32();
|
|
31
|
-
switch (tag >>> 3) {
|
|
32
|
-
case 1:
|
|
33
|
-
if (tag !== 10) {
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
message.filter_by = reader.string();
|
|
37
|
-
continue;
|
|
38
|
-
}
|
|
39
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
reader.skipType(tag & 7);
|
|
43
|
-
}
|
|
44
|
-
return message;
|
|
45
|
-
},
|
|
46
|
-
fromJSON(object) {
|
|
47
|
-
return { filter_by: isSet(object.filter_by) ? globalThis.String(object.filter_by) : "" };
|
|
48
|
-
},
|
|
49
|
-
toJSON(message) {
|
|
50
|
-
const obj = {};
|
|
51
|
-
if (message.filter_by !== "") {
|
|
52
|
-
obj.filter_by = message.filter_by;
|
|
53
|
-
}
|
|
54
|
-
return obj;
|
|
55
|
-
},
|
|
56
|
-
create(base) {
|
|
57
|
-
return exports.transactionListRequest.fromPartial(base ?? {});
|
|
58
|
-
},
|
|
59
|
-
fromPartial(object) {
|
|
60
|
-
const message = createBasetransactionListRequest();
|
|
61
|
-
message.filter_by = object.filter_by ?? "";
|
|
62
|
-
return message;
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
function createBasetransactionListResponse() {
|
|
66
|
-
return { data: [] };
|
|
67
|
-
}
|
|
68
|
-
exports.transactionListResponse = {
|
|
69
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
for (const v of message.data) {
|
|
71
|
-
exports.transactionListResponse_Field.encode(v, writer.uint32(10).fork()).ldelim();
|
|
72
|
-
}
|
|
73
|
-
return writer;
|
|
74
|
-
},
|
|
75
|
-
decode(input, length) {
|
|
76
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
-
const message = createBasetransactionListResponse();
|
|
79
|
-
while (reader.pos < end) {
|
|
80
|
-
const tag = reader.uint32();
|
|
81
|
-
switch (tag >>> 3) {
|
|
82
|
-
case 1:
|
|
83
|
-
if (tag !== 10) {
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
message.data.push(exports.transactionListResponse_Field.decode(reader, reader.uint32()));
|
|
87
|
-
continue;
|
|
88
|
-
}
|
|
89
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
90
|
-
break;
|
|
91
|
-
}
|
|
92
|
-
reader.skipType(tag & 7);
|
|
93
|
-
}
|
|
94
|
-
return message;
|
|
95
|
-
},
|
|
96
|
-
fromJSON(object) {
|
|
97
|
-
return {
|
|
98
|
-
data: globalThis.Array.isArray(object?.data)
|
|
99
|
-
? object.data.map((e) => exports.transactionListResponse_Field.fromJSON(e))
|
|
100
|
-
: [],
|
|
101
|
-
};
|
|
102
|
-
},
|
|
103
|
-
toJSON(message) {
|
|
104
|
-
const obj = {};
|
|
105
|
-
if (message.data?.length) {
|
|
106
|
-
obj.data = message.data.map((e) => exports.transactionListResponse_Field.toJSON(e));
|
|
107
|
-
}
|
|
108
|
-
return obj;
|
|
109
|
-
},
|
|
110
|
-
create(base) {
|
|
111
|
-
return exports.transactionListResponse.fromPartial(base ?? {});
|
|
112
|
-
},
|
|
113
|
-
fromPartial(object) {
|
|
114
|
-
const message = createBasetransactionListResponse();
|
|
115
|
-
message.data = object.data?.map((e) => exports.transactionListResponse_Field.fromPartial(e)) || [];
|
|
116
|
-
return message;
|
|
117
|
-
},
|
|
118
|
-
};
|
|
119
|
-
function createBasetransactionListResponse_Field() {
|
|
120
|
-
return { id: 0, loan_amount: 0, emi_amount: 0, start_date: "", close_date: "" };
|
|
121
|
-
}
|
|
122
|
-
exports.transactionListResponse_Field = {
|
|
123
|
-
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
124
|
-
if (message.id !== 0) {
|
|
125
|
-
writer.uint32(8).int32(message.id);
|
|
126
|
-
}
|
|
127
|
-
if (message.loan_amount !== 0) {
|
|
128
|
-
writer.uint32(16).int32(message.loan_amount);
|
|
129
|
-
}
|
|
130
|
-
if (message.emi_amount !== 0) {
|
|
131
|
-
writer.uint32(24).int32(message.emi_amount);
|
|
132
|
-
}
|
|
133
|
-
if (message.start_date !== "") {
|
|
134
|
-
writer.uint32(34).string(message.start_date);
|
|
135
|
-
}
|
|
136
|
-
if (message.close_date !== "") {
|
|
137
|
-
writer.uint32(42).string(message.close_date);
|
|
138
|
-
}
|
|
139
|
-
return writer;
|
|
140
|
-
},
|
|
141
|
-
decode(input, length) {
|
|
142
|
-
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
143
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
144
|
-
const message = createBasetransactionListResponse_Field();
|
|
145
|
-
while (reader.pos < end) {
|
|
146
|
-
const tag = reader.uint32();
|
|
147
|
-
switch (tag >>> 3) {
|
|
148
|
-
case 1:
|
|
149
|
-
if (tag !== 8) {
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
message.id = reader.int32();
|
|
153
|
-
continue;
|
|
154
|
-
case 2:
|
|
155
|
-
if (tag !== 16) {
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
message.loan_amount = reader.int32();
|
|
159
|
-
continue;
|
|
160
|
-
case 3:
|
|
161
|
-
if (tag !== 24) {
|
|
162
|
-
break;
|
|
163
|
-
}
|
|
164
|
-
message.emi_amount = reader.int32();
|
|
165
|
-
continue;
|
|
166
|
-
case 4:
|
|
167
|
-
if (tag !== 34) {
|
|
168
|
-
break;
|
|
169
|
-
}
|
|
170
|
-
message.start_date = reader.string();
|
|
171
|
-
continue;
|
|
172
|
-
case 5:
|
|
173
|
-
if (tag !== 42) {
|
|
174
|
-
break;
|
|
175
|
-
}
|
|
176
|
-
message.close_date = reader.string();
|
|
177
|
-
continue;
|
|
178
|
-
}
|
|
179
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
180
|
-
break;
|
|
181
|
-
}
|
|
182
|
-
reader.skipType(tag & 7);
|
|
183
|
-
}
|
|
184
|
-
return message;
|
|
185
|
-
},
|
|
186
|
-
fromJSON(object) {
|
|
187
|
-
return {
|
|
188
|
-
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
189
|
-
loan_amount: isSet(object.loan_amount) ? globalThis.Number(object.loan_amount) : 0,
|
|
190
|
-
emi_amount: isSet(object.emi_amount) ? globalThis.Number(object.emi_amount) : 0,
|
|
191
|
-
start_date: isSet(object.start_date) ? globalThis.String(object.start_date) : "",
|
|
192
|
-
close_date: isSet(object.close_date) ? globalThis.String(object.close_date) : "",
|
|
193
|
-
};
|
|
194
|
-
},
|
|
195
|
-
toJSON(message) {
|
|
196
|
-
const obj = {};
|
|
197
|
-
if (message.id !== 0) {
|
|
198
|
-
obj.id = Math.round(message.id);
|
|
199
|
-
}
|
|
200
|
-
if (message.loan_amount !== 0) {
|
|
201
|
-
obj.loan_amount = Math.round(message.loan_amount);
|
|
202
|
-
}
|
|
203
|
-
if (message.emi_amount !== 0) {
|
|
204
|
-
obj.emi_amount = Math.round(message.emi_amount);
|
|
205
|
-
}
|
|
206
|
-
if (message.start_date !== "") {
|
|
207
|
-
obj.start_date = message.start_date;
|
|
208
|
-
}
|
|
209
|
-
if (message.close_date !== "") {
|
|
210
|
-
obj.close_date = message.close_date;
|
|
211
|
-
}
|
|
212
|
-
return obj;
|
|
213
|
-
},
|
|
214
|
-
create(base) {
|
|
215
|
-
return exports.transactionListResponse_Field.fromPartial(base ?? {});
|
|
216
|
-
},
|
|
217
|
-
fromPartial(object) {
|
|
218
|
-
const message = createBasetransactionListResponse_Field();
|
|
219
|
-
message.id = object.id ?? 0;
|
|
220
|
-
message.loan_amount = object.loan_amount ?? 0;
|
|
221
|
-
message.emi_amount = object.emi_amount ?? 0;
|
|
222
|
-
message.start_date = object.start_date ?? "";
|
|
223
|
-
message.close_date = object.close_date ?? "";
|
|
224
|
-
return message;
|
|
225
|
-
},
|
|
226
|
-
};
|
|
227
|
-
function isSet(value) {
|
|
228
|
-
return value !== null && value !== undefined;
|
|
229
|
-
}
|