@stashfin/grpc 1.2.744 → 1.2.745
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
CHANGED
|
@@ -2,6 +2,15 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "loans.getlocdetails";
|
|
3
3
|
export interface GetLocDetailsRequest {
|
|
4
4
|
customer_id: number;
|
|
5
|
+
pcr_enable: boolean;
|
|
6
|
+
credit_shield_enable: boolean;
|
|
7
|
+
credit_shield_opt: boolean;
|
|
8
|
+
pcr_opt: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface InsuranceDescItem {
|
|
11
|
+
title: string;
|
|
12
|
+
desc: string;
|
|
13
|
+
icon: string;
|
|
5
14
|
}
|
|
6
15
|
export interface GetLocDetailsResponse {
|
|
7
16
|
matched: boolean;
|
|
@@ -73,6 +82,13 @@ export interface GetLocDetailsResponse {
|
|
|
73
82
|
key_fact_statement: string;
|
|
74
83
|
sanction_letter: string;
|
|
75
84
|
financing_documents: string;
|
|
85
|
+
max_amount: number;
|
|
86
|
+
credit_report_fees: number;
|
|
87
|
+
credit_report_actual_fees: number;
|
|
88
|
+
plan_id: string;
|
|
89
|
+
insurance_title: string;
|
|
90
|
+
insurance_desc: InsuranceDescItem[];
|
|
91
|
+
upfront_interest_description: string;
|
|
76
92
|
}
|
|
77
93
|
export declare const GetLocDetailsRequest: {
|
|
78
94
|
encode(message: GetLocDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -82,6 +98,14 @@ export declare const GetLocDetailsRequest: {
|
|
|
82
98
|
create<I extends Exact<DeepPartial<GetLocDetailsRequest>, I>>(base?: I): GetLocDetailsRequest;
|
|
83
99
|
fromPartial<I extends Exact<DeepPartial<GetLocDetailsRequest>, I>>(object: I): GetLocDetailsRequest;
|
|
84
100
|
};
|
|
101
|
+
export declare const InsuranceDescItem: {
|
|
102
|
+
encode(message: InsuranceDescItem, writer?: _m0.Writer): _m0.Writer;
|
|
103
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): InsuranceDescItem;
|
|
104
|
+
fromJSON(object: any): InsuranceDescItem;
|
|
105
|
+
toJSON(message: InsuranceDescItem): unknown;
|
|
106
|
+
create<I extends Exact<DeepPartial<InsuranceDescItem>, I>>(base?: I): InsuranceDescItem;
|
|
107
|
+
fromPartial<I extends Exact<DeepPartial<InsuranceDescItem>, I>>(object: I): InsuranceDescItem;
|
|
108
|
+
};
|
|
85
109
|
export declare const GetLocDetailsResponse: {
|
|
86
110
|
encode(message: GetLocDetailsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
87
111
|
decode(input: _m0.Reader | Uint8Array, length?: number): GetLocDetailsResponse;
|
|
@@ -8,18 +8,30 @@ 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.GetLocDetailsResponse = exports.GetLocDetailsRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.GetLocDetailsResponse = exports.InsuranceDescItem = exports.GetLocDetailsRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.getlocdetails";
|
|
15
15
|
function createBaseGetLocDetailsRequest() {
|
|
16
|
-
return { customer_id: 0 };
|
|
16
|
+
return { customer_id: 0, pcr_enable: false, credit_shield_enable: false, credit_shield_opt: false, pcr_opt: false };
|
|
17
17
|
}
|
|
18
18
|
exports.GetLocDetailsRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
20
|
if (message.customer_id !== 0) {
|
|
21
21
|
writer.uint32(8).int32(message.customer_id);
|
|
22
22
|
}
|
|
23
|
+
if (message.pcr_enable !== false) {
|
|
24
|
+
writer.uint32(16).bool(message.pcr_enable);
|
|
25
|
+
}
|
|
26
|
+
if (message.credit_shield_enable !== false) {
|
|
27
|
+
writer.uint32(24).bool(message.credit_shield_enable);
|
|
28
|
+
}
|
|
29
|
+
if (message.credit_shield_opt !== false) {
|
|
30
|
+
writer.uint32(32).bool(message.credit_shield_opt);
|
|
31
|
+
}
|
|
32
|
+
if (message.pcr_opt !== false) {
|
|
33
|
+
writer.uint32(40).bool(message.pcr_opt);
|
|
34
|
+
}
|
|
23
35
|
return writer;
|
|
24
36
|
},
|
|
25
37
|
decode(input, length) {
|
|
@@ -35,6 +47,30 @@ exports.GetLocDetailsRequest = {
|
|
|
35
47
|
}
|
|
36
48
|
message.customer_id = reader.int32();
|
|
37
49
|
continue;
|
|
50
|
+
case 2:
|
|
51
|
+
if (tag !== 16) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.pcr_enable = reader.bool();
|
|
55
|
+
continue;
|
|
56
|
+
case 3:
|
|
57
|
+
if (tag !== 24) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
message.credit_shield_enable = reader.bool();
|
|
61
|
+
continue;
|
|
62
|
+
case 4:
|
|
63
|
+
if (tag !== 32) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.credit_shield_opt = reader.bool();
|
|
67
|
+
continue;
|
|
68
|
+
case 5:
|
|
69
|
+
if (tag !== 40) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.pcr_opt = reader.bool();
|
|
73
|
+
continue;
|
|
38
74
|
}
|
|
39
75
|
if ((tag & 7) === 4 || tag === 0) {
|
|
40
76
|
break;
|
|
@@ -44,13 +80,33 @@ exports.GetLocDetailsRequest = {
|
|
|
44
80
|
return message;
|
|
45
81
|
},
|
|
46
82
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
83
|
+
return {
|
|
84
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
85
|
+
pcr_enable: isSet(object.pcr_enable) ? globalThis.Boolean(object.pcr_enable) : false,
|
|
86
|
+
credit_shield_enable: isSet(object.credit_shield_enable)
|
|
87
|
+
? globalThis.Boolean(object.credit_shield_enable)
|
|
88
|
+
: false,
|
|
89
|
+
credit_shield_opt: isSet(object.credit_shield_opt) ? globalThis.Boolean(object.credit_shield_opt) : false,
|
|
90
|
+
pcr_opt: isSet(object.pcr_opt) ? globalThis.Boolean(object.pcr_opt) : false,
|
|
91
|
+
};
|
|
48
92
|
},
|
|
49
93
|
toJSON(message) {
|
|
50
94
|
const obj = {};
|
|
51
95
|
if (message.customer_id !== 0) {
|
|
52
96
|
obj.customer_id = Math.round(message.customer_id);
|
|
53
97
|
}
|
|
98
|
+
if (message.pcr_enable !== false) {
|
|
99
|
+
obj.pcr_enable = message.pcr_enable;
|
|
100
|
+
}
|
|
101
|
+
if (message.credit_shield_enable !== false) {
|
|
102
|
+
obj.credit_shield_enable = message.credit_shield_enable;
|
|
103
|
+
}
|
|
104
|
+
if (message.credit_shield_opt !== false) {
|
|
105
|
+
obj.credit_shield_opt = message.credit_shield_opt;
|
|
106
|
+
}
|
|
107
|
+
if (message.pcr_opt !== false) {
|
|
108
|
+
obj.pcr_opt = message.pcr_opt;
|
|
109
|
+
}
|
|
54
110
|
return obj;
|
|
55
111
|
},
|
|
56
112
|
create(base) {
|
|
@@ -59,6 +115,90 @@ exports.GetLocDetailsRequest = {
|
|
|
59
115
|
fromPartial(object) {
|
|
60
116
|
const message = createBaseGetLocDetailsRequest();
|
|
61
117
|
message.customer_id = object.customer_id ?? 0;
|
|
118
|
+
message.pcr_enable = object.pcr_enable ?? false;
|
|
119
|
+
message.credit_shield_enable = object.credit_shield_enable ?? false;
|
|
120
|
+
message.credit_shield_opt = object.credit_shield_opt ?? false;
|
|
121
|
+
message.pcr_opt = object.pcr_opt ?? false;
|
|
122
|
+
return message;
|
|
123
|
+
},
|
|
124
|
+
};
|
|
125
|
+
function createBaseInsuranceDescItem() {
|
|
126
|
+
return { title: "", desc: "", icon: "" };
|
|
127
|
+
}
|
|
128
|
+
exports.InsuranceDescItem = {
|
|
129
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
130
|
+
if (message.title !== "") {
|
|
131
|
+
writer.uint32(10).string(message.title);
|
|
132
|
+
}
|
|
133
|
+
if (message.desc !== "") {
|
|
134
|
+
writer.uint32(18).string(message.desc);
|
|
135
|
+
}
|
|
136
|
+
if (message.icon !== "") {
|
|
137
|
+
writer.uint32(26).string(message.icon);
|
|
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 = createBaseInsuranceDescItem();
|
|
145
|
+
while (reader.pos < end) {
|
|
146
|
+
const tag = reader.uint32();
|
|
147
|
+
switch (tag >>> 3) {
|
|
148
|
+
case 1:
|
|
149
|
+
if (tag !== 10) {
|
|
150
|
+
break;
|
|
151
|
+
}
|
|
152
|
+
message.title = reader.string();
|
|
153
|
+
continue;
|
|
154
|
+
case 2:
|
|
155
|
+
if (tag !== 18) {
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
message.desc = reader.string();
|
|
159
|
+
continue;
|
|
160
|
+
case 3:
|
|
161
|
+
if (tag !== 26) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
message.icon = reader.string();
|
|
165
|
+
continue;
|
|
166
|
+
}
|
|
167
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
168
|
+
break;
|
|
169
|
+
}
|
|
170
|
+
reader.skipType(tag & 7);
|
|
171
|
+
}
|
|
172
|
+
return message;
|
|
173
|
+
},
|
|
174
|
+
fromJSON(object) {
|
|
175
|
+
return {
|
|
176
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
177
|
+
desc: isSet(object.desc) ? globalThis.String(object.desc) : "",
|
|
178
|
+
icon: isSet(object.icon) ? globalThis.String(object.icon) : "",
|
|
179
|
+
};
|
|
180
|
+
},
|
|
181
|
+
toJSON(message) {
|
|
182
|
+
const obj = {};
|
|
183
|
+
if (message.title !== "") {
|
|
184
|
+
obj.title = message.title;
|
|
185
|
+
}
|
|
186
|
+
if (message.desc !== "") {
|
|
187
|
+
obj.desc = message.desc;
|
|
188
|
+
}
|
|
189
|
+
if (message.icon !== "") {
|
|
190
|
+
obj.icon = message.icon;
|
|
191
|
+
}
|
|
192
|
+
return obj;
|
|
193
|
+
},
|
|
194
|
+
create(base) {
|
|
195
|
+
return exports.InsuranceDescItem.fromPartial(base ?? {});
|
|
196
|
+
},
|
|
197
|
+
fromPartial(object) {
|
|
198
|
+
const message = createBaseInsuranceDescItem();
|
|
199
|
+
message.title = object.title ?? "";
|
|
200
|
+
message.desc = object.desc ?? "";
|
|
201
|
+
message.icon = object.icon ?? "";
|
|
62
202
|
return message;
|
|
63
203
|
},
|
|
64
204
|
};
|
|
@@ -133,6 +273,13 @@ function createBaseGetLocDetailsResponse() {
|
|
|
133
273
|
key_fact_statement: "",
|
|
134
274
|
sanction_letter: "",
|
|
135
275
|
financing_documents: "",
|
|
276
|
+
max_amount: 0,
|
|
277
|
+
credit_report_fees: 0,
|
|
278
|
+
credit_report_actual_fees: 0,
|
|
279
|
+
plan_id: "",
|
|
280
|
+
insurance_title: "",
|
|
281
|
+
insurance_desc: [],
|
|
282
|
+
upfront_interest_description: "",
|
|
136
283
|
};
|
|
137
284
|
}
|
|
138
285
|
exports.GetLocDetailsResponse = {
|
|
@@ -344,6 +491,27 @@ exports.GetLocDetailsResponse = {
|
|
|
344
491
|
if (message.financing_documents !== "") {
|
|
345
492
|
writer.uint32(554).string(message.financing_documents);
|
|
346
493
|
}
|
|
494
|
+
if (message.max_amount !== 0) {
|
|
495
|
+
writer.uint32(560).int32(message.max_amount);
|
|
496
|
+
}
|
|
497
|
+
if (message.credit_report_fees !== 0) {
|
|
498
|
+
writer.uint32(568).int32(message.credit_report_fees);
|
|
499
|
+
}
|
|
500
|
+
if (message.credit_report_actual_fees !== 0) {
|
|
501
|
+
writer.uint32(576).int32(message.credit_report_actual_fees);
|
|
502
|
+
}
|
|
503
|
+
if (message.plan_id !== "") {
|
|
504
|
+
writer.uint32(586).string(message.plan_id);
|
|
505
|
+
}
|
|
506
|
+
if (message.insurance_title !== "") {
|
|
507
|
+
writer.uint32(594).string(message.insurance_title);
|
|
508
|
+
}
|
|
509
|
+
for (const v of message.insurance_desc) {
|
|
510
|
+
exports.InsuranceDescItem.encode(v, writer.uint32(602).fork()).ldelim();
|
|
511
|
+
}
|
|
512
|
+
if (message.upfront_interest_description !== "") {
|
|
513
|
+
writer.uint32(610).string(message.upfront_interest_description);
|
|
514
|
+
}
|
|
347
515
|
return writer;
|
|
348
516
|
},
|
|
349
517
|
decode(input, length) {
|
|
@@ -767,6 +935,48 @@ exports.GetLocDetailsResponse = {
|
|
|
767
935
|
}
|
|
768
936
|
message.financing_documents = reader.string();
|
|
769
937
|
continue;
|
|
938
|
+
case 70:
|
|
939
|
+
if (tag !== 560) {
|
|
940
|
+
break;
|
|
941
|
+
}
|
|
942
|
+
message.max_amount = reader.int32();
|
|
943
|
+
continue;
|
|
944
|
+
case 71:
|
|
945
|
+
if (tag !== 568) {
|
|
946
|
+
break;
|
|
947
|
+
}
|
|
948
|
+
message.credit_report_fees = reader.int32();
|
|
949
|
+
continue;
|
|
950
|
+
case 72:
|
|
951
|
+
if (tag !== 576) {
|
|
952
|
+
break;
|
|
953
|
+
}
|
|
954
|
+
message.credit_report_actual_fees = reader.int32();
|
|
955
|
+
continue;
|
|
956
|
+
case 73:
|
|
957
|
+
if (tag !== 586) {
|
|
958
|
+
break;
|
|
959
|
+
}
|
|
960
|
+
message.plan_id = reader.string();
|
|
961
|
+
continue;
|
|
962
|
+
case 74:
|
|
963
|
+
if (tag !== 594) {
|
|
964
|
+
break;
|
|
965
|
+
}
|
|
966
|
+
message.insurance_title = reader.string();
|
|
967
|
+
continue;
|
|
968
|
+
case 75:
|
|
969
|
+
if (tag !== 602) {
|
|
970
|
+
break;
|
|
971
|
+
}
|
|
972
|
+
message.insurance_desc.push(exports.InsuranceDescItem.decode(reader, reader.uint32()));
|
|
973
|
+
continue;
|
|
974
|
+
case 76:
|
|
975
|
+
if (tag !== 610) {
|
|
976
|
+
break;
|
|
977
|
+
}
|
|
978
|
+
message.upfront_interest_description = reader.string();
|
|
979
|
+
continue;
|
|
770
980
|
}
|
|
771
981
|
if ((tag & 7) === 4 || tag === 0) {
|
|
772
982
|
break;
|
|
@@ -868,6 +1078,19 @@ exports.GetLocDetailsResponse = {
|
|
|
868
1078
|
key_fact_statement: isSet(object.key_fact_statement) ? globalThis.String(object.key_fact_statement) : "",
|
|
869
1079
|
sanction_letter: isSet(object.sanction_letter) ? globalThis.String(object.sanction_letter) : "",
|
|
870
1080
|
financing_documents: isSet(object.financing_documents) ? globalThis.String(object.financing_documents) : "",
|
|
1081
|
+
max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
|
|
1082
|
+
credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : 0,
|
|
1083
|
+
credit_report_actual_fees: isSet(object.credit_report_actual_fees)
|
|
1084
|
+
? globalThis.Number(object.credit_report_actual_fees)
|
|
1085
|
+
: 0,
|
|
1086
|
+
plan_id: isSet(object.plan_id) ? globalThis.String(object.plan_id) : "",
|
|
1087
|
+
insurance_title: isSet(object.insurance_title) ? globalThis.String(object.insurance_title) : "",
|
|
1088
|
+
insurance_desc: globalThis.Array.isArray(object?.insurance_desc)
|
|
1089
|
+
? object.insurance_desc.map((e) => exports.InsuranceDescItem.fromJSON(e))
|
|
1090
|
+
: [],
|
|
1091
|
+
upfront_interest_description: isSet(object.upfront_interest_description)
|
|
1092
|
+
? globalThis.String(object.upfront_interest_description)
|
|
1093
|
+
: "",
|
|
871
1094
|
};
|
|
872
1095
|
},
|
|
873
1096
|
toJSON(message) {
|
|
@@ -1079,6 +1302,27 @@ exports.GetLocDetailsResponse = {
|
|
|
1079
1302
|
if (message.financing_documents !== "") {
|
|
1080
1303
|
obj.financing_documents = message.financing_documents;
|
|
1081
1304
|
}
|
|
1305
|
+
if (message.max_amount !== 0) {
|
|
1306
|
+
obj.max_amount = Math.round(message.max_amount);
|
|
1307
|
+
}
|
|
1308
|
+
if (message.credit_report_fees !== 0) {
|
|
1309
|
+
obj.credit_report_fees = Math.round(message.credit_report_fees);
|
|
1310
|
+
}
|
|
1311
|
+
if (message.credit_report_actual_fees !== 0) {
|
|
1312
|
+
obj.credit_report_actual_fees = Math.round(message.credit_report_actual_fees);
|
|
1313
|
+
}
|
|
1314
|
+
if (message.plan_id !== "") {
|
|
1315
|
+
obj.plan_id = message.plan_id;
|
|
1316
|
+
}
|
|
1317
|
+
if (message.insurance_title !== "") {
|
|
1318
|
+
obj.insurance_title = message.insurance_title;
|
|
1319
|
+
}
|
|
1320
|
+
if (message.insurance_desc?.length) {
|
|
1321
|
+
obj.insurance_desc = message.insurance_desc.map((e) => exports.InsuranceDescItem.toJSON(e));
|
|
1322
|
+
}
|
|
1323
|
+
if (message.upfront_interest_description !== "") {
|
|
1324
|
+
obj.upfront_interest_description = message.upfront_interest_description;
|
|
1325
|
+
}
|
|
1082
1326
|
return obj;
|
|
1083
1327
|
},
|
|
1084
1328
|
create(base) {
|
|
@@ -1155,6 +1399,13 @@ exports.GetLocDetailsResponse = {
|
|
|
1155
1399
|
message.key_fact_statement = object.key_fact_statement ?? "";
|
|
1156
1400
|
message.sanction_letter = object.sanction_letter ?? "";
|
|
1157
1401
|
message.financing_documents = object.financing_documents ?? "";
|
|
1402
|
+
message.max_amount = object.max_amount ?? 0;
|
|
1403
|
+
message.credit_report_fees = object.credit_report_fees ?? 0;
|
|
1404
|
+
message.credit_report_actual_fees = object.credit_report_actual_fees ?? 0;
|
|
1405
|
+
message.plan_id = object.plan_id ?? "";
|
|
1406
|
+
message.insurance_title = object.insurance_title ?? "";
|
|
1407
|
+
message.insurance_desc = object.insurance_desc?.map((e) => exports.InsuranceDescItem.fromPartial(e)) || [];
|
|
1408
|
+
message.upfront_interest_description = object.upfront_interest_description ?? "";
|
|
1158
1409
|
return message;
|
|
1159
1410
|
},
|
|
1160
1411
|
};
|
|
@@ -2,6 +2,9 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "loans.getlocdisburse";
|
|
3
3
|
export interface GetLocDisburseRequest {
|
|
4
4
|
customer_id: number;
|
|
5
|
+
credit_report_fees: number;
|
|
6
|
+
max_amount: number;
|
|
7
|
+
plan_id: string;
|
|
5
8
|
}
|
|
6
9
|
export interface GetLocDisburseResponse {
|
|
7
10
|
msg?: string | undefined;
|
|
@@ -13,13 +13,22 @@ exports.GetLocDisburseResponse = exports.GetLocDisburseRequest = exports.protobu
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.getlocdisburse";
|
|
15
15
|
function createBaseGetLocDisburseRequest() {
|
|
16
|
-
return { customer_id: 0 };
|
|
16
|
+
return { customer_id: 0, credit_report_fees: 0, max_amount: 0, plan_id: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.GetLocDisburseRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
20
|
if (message.customer_id !== 0) {
|
|
21
21
|
writer.uint32(8).int32(message.customer_id);
|
|
22
22
|
}
|
|
23
|
+
if (message.credit_report_fees !== 0) {
|
|
24
|
+
writer.uint32(16).int32(message.credit_report_fees);
|
|
25
|
+
}
|
|
26
|
+
if (message.max_amount !== 0) {
|
|
27
|
+
writer.uint32(24).int32(message.max_amount);
|
|
28
|
+
}
|
|
29
|
+
if (message.plan_id !== "") {
|
|
30
|
+
writer.uint32(34).string(message.plan_id);
|
|
31
|
+
}
|
|
23
32
|
return writer;
|
|
24
33
|
},
|
|
25
34
|
decode(input, length) {
|
|
@@ -35,6 +44,24 @@ exports.GetLocDisburseRequest = {
|
|
|
35
44
|
}
|
|
36
45
|
message.customer_id = reader.int32();
|
|
37
46
|
continue;
|
|
47
|
+
case 2:
|
|
48
|
+
if (tag !== 16) {
|
|
49
|
+
break;
|
|
50
|
+
}
|
|
51
|
+
message.credit_report_fees = reader.int32();
|
|
52
|
+
continue;
|
|
53
|
+
case 3:
|
|
54
|
+
if (tag !== 24) {
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
message.max_amount = reader.int32();
|
|
58
|
+
continue;
|
|
59
|
+
case 4:
|
|
60
|
+
if (tag !== 34) {
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
message.plan_id = reader.string();
|
|
64
|
+
continue;
|
|
38
65
|
}
|
|
39
66
|
if ((tag & 7) === 4 || tag === 0) {
|
|
40
67
|
break;
|
|
@@ -44,13 +71,27 @@ exports.GetLocDisburseRequest = {
|
|
|
44
71
|
return message;
|
|
45
72
|
},
|
|
46
73
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
74
|
+
return {
|
|
75
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
76
|
+
credit_report_fees: isSet(object.credit_report_fees) ? globalThis.Number(object.credit_report_fees) : 0,
|
|
77
|
+
max_amount: isSet(object.max_amount) ? globalThis.Number(object.max_amount) : 0,
|
|
78
|
+
plan_id: isSet(object.plan_id) ? globalThis.String(object.plan_id) : "",
|
|
79
|
+
};
|
|
48
80
|
},
|
|
49
81
|
toJSON(message) {
|
|
50
82
|
const obj = {};
|
|
51
83
|
if (message.customer_id !== 0) {
|
|
52
84
|
obj.customer_id = Math.round(message.customer_id);
|
|
53
85
|
}
|
|
86
|
+
if (message.credit_report_fees !== 0) {
|
|
87
|
+
obj.credit_report_fees = Math.round(message.credit_report_fees);
|
|
88
|
+
}
|
|
89
|
+
if (message.max_amount !== 0) {
|
|
90
|
+
obj.max_amount = Math.round(message.max_amount);
|
|
91
|
+
}
|
|
92
|
+
if (message.plan_id !== "") {
|
|
93
|
+
obj.plan_id = message.plan_id;
|
|
94
|
+
}
|
|
54
95
|
return obj;
|
|
55
96
|
},
|
|
56
97
|
create(base) {
|
|
@@ -59,6 +100,9 @@ exports.GetLocDisburseRequest = {
|
|
|
59
100
|
fromPartial(object) {
|
|
60
101
|
const message = createBaseGetLocDisburseRequest();
|
|
61
102
|
message.customer_id = object.customer_id ?? 0;
|
|
103
|
+
message.credit_report_fees = object.credit_report_fees ?? 0;
|
|
104
|
+
message.max_amount = object.max_amount ?? 0;
|
|
105
|
+
message.plan_id = object.plan_id ?? "";
|
|
62
106
|
return message;
|
|
63
107
|
},
|
|
64
108
|
};
|