@stashfin/grpc 1.2.375 → 1.2.377
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
|
@@ -5,15 +5,14 @@ export interface getForecloseAmountRequest {
|
|
|
5
5
|
loan_id: number[];
|
|
6
6
|
}
|
|
7
7
|
export interface getForecloseAmountResponse {
|
|
8
|
-
foreclosed_amount: number;
|
|
9
|
-
loan_amount: number;
|
|
10
|
-
charges: number;
|
|
11
8
|
date: string;
|
|
12
9
|
loan_details: getForecloseAmountResponse_Field[];
|
|
13
10
|
}
|
|
14
11
|
export interface getForecloseAmountResponse_Field {
|
|
15
12
|
loan_id: number;
|
|
16
|
-
|
|
13
|
+
foreclosed_amount: number;
|
|
14
|
+
loan_amount: number;
|
|
15
|
+
charges: number;
|
|
17
16
|
}
|
|
18
17
|
export declare const getForecloseAmountRequest: {
|
|
19
18
|
encode(message: getForecloseAmountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -88,19 +88,10 @@ exports.getForecloseAmountRequest = {
|
|
|
88
88
|
},
|
|
89
89
|
};
|
|
90
90
|
function createBasegetForecloseAmountResponse() {
|
|
91
|
-
return {
|
|
91
|
+
return { date: "", loan_details: [] };
|
|
92
92
|
}
|
|
93
93
|
exports.getForecloseAmountResponse = {
|
|
94
94
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
95
|
-
if (message.foreclosed_amount !== 0) {
|
|
96
|
-
writer.uint32(8).int32(message.foreclosed_amount);
|
|
97
|
-
}
|
|
98
|
-
if (message.loan_amount !== 0) {
|
|
99
|
-
writer.uint32(16).int32(message.loan_amount);
|
|
100
|
-
}
|
|
101
|
-
if (message.charges !== 0) {
|
|
102
|
-
writer.uint32(24).int32(message.charges);
|
|
103
|
-
}
|
|
104
95
|
if (message.date !== "") {
|
|
105
96
|
writer.uint32(34).string(message.date);
|
|
106
97
|
}
|
|
@@ -116,24 +107,6 @@ exports.getForecloseAmountResponse = {
|
|
|
116
107
|
while (reader.pos < end) {
|
|
117
108
|
const tag = reader.uint32();
|
|
118
109
|
switch (tag >>> 3) {
|
|
119
|
-
case 1:
|
|
120
|
-
if (tag !== 8) {
|
|
121
|
-
break;
|
|
122
|
-
}
|
|
123
|
-
message.foreclosed_amount = reader.int32();
|
|
124
|
-
continue;
|
|
125
|
-
case 2:
|
|
126
|
-
if (tag !== 16) {
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
message.loan_amount = reader.int32();
|
|
130
|
-
continue;
|
|
131
|
-
case 3:
|
|
132
|
-
if (tag !== 24) {
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
message.charges = reader.int32();
|
|
136
|
-
continue;
|
|
137
110
|
case 4:
|
|
138
111
|
if (tag !== 34) {
|
|
139
112
|
break;
|
|
@@ -156,9 +129,6 @@ exports.getForecloseAmountResponse = {
|
|
|
156
129
|
},
|
|
157
130
|
fromJSON(object) {
|
|
158
131
|
return {
|
|
159
|
-
foreclosed_amount: isSet(object.foreclosed_amount) ? globalThis.Number(object.foreclosed_amount) : 0,
|
|
160
|
-
loan_amount: isSet(object.loan_amount) ? globalThis.Number(object.loan_amount) : 0,
|
|
161
|
-
charges: isSet(object.charges) ? globalThis.Number(object.charges) : 0,
|
|
162
132
|
date: isSet(object.date) ? globalThis.String(object.date) : "",
|
|
163
133
|
loan_details: globalThis.Array.isArray(object?.loan_details)
|
|
164
134
|
? object.loan_details.map((e) => exports.getForecloseAmountResponse_Field.fromJSON(e))
|
|
@@ -167,15 +137,6 @@ exports.getForecloseAmountResponse = {
|
|
|
167
137
|
},
|
|
168
138
|
toJSON(message) {
|
|
169
139
|
const obj = {};
|
|
170
|
-
if (message.foreclosed_amount !== 0) {
|
|
171
|
-
obj.foreclosed_amount = Math.round(message.foreclosed_amount);
|
|
172
|
-
}
|
|
173
|
-
if (message.loan_amount !== 0) {
|
|
174
|
-
obj.loan_amount = Math.round(message.loan_amount);
|
|
175
|
-
}
|
|
176
|
-
if (message.charges !== 0) {
|
|
177
|
-
obj.charges = Math.round(message.charges);
|
|
178
|
-
}
|
|
179
140
|
if (message.date !== "") {
|
|
180
141
|
obj.date = message.date;
|
|
181
142
|
}
|
|
@@ -189,24 +150,27 @@ exports.getForecloseAmountResponse = {
|
|
|
189
150
|
},
|
|
190
151
|
fromPartial(object) {
|
|
191
152
|
const message = createBasegetForecloseAmountResponse();
|
|
192
|
-
message.foreclosed_amount = object.foreclosed_amount ?? 0;
|
|
193
|
-
message.loan_amount = object.loan_amount ?? 0;
|
|
194
|
-
message.charges = object.charges ?? 0;
|
|
195
153
|
message.date = object.date ?? "";
|
|
196
154
|
message.loan_details = object.loan_details?.map((e) => exports.getForecloseAmountResponse_Field.fromPartial(e)) || [];
|
|
197
155
|
return message;
|
|
198
156
|
},
|
|
199
157
|
};
|
|
200
158
|
function createBasegetForecloseAmountResponse_Field() {
|
|
201
|
-
return { loan_id: 0,
|
|
159
|
+
return { loan_id: 0, foreclosed_amount: 0, loan_amount: 0, charges: 0 };
|
|
202
160
|
}
|
|
203
161
|
exports.getForecloseAmountResponse_Field = {
|
|
204
162
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
205
163
|
if (message.loan_id !== 0) {
|
|
206
164
|
writer.uint32(8).int32(message.loan_id);
|
|
207
165
|
}
|
|
208
|
-
if (message.
|
|
209
|
-
writer.uint32(16).int32(message.
|
|
166
|
+
if (message.foreclosed_amount !== 0) {
|
|
167
|
+
writer.uint32(16).int32(message.foreclosed_amount);
|
|
168
|
+
}
|
|
169
|
+
if (message.loan_amount !== 0) {
|
|
170
|
+
writer.uint32(24).int32(message.loan_amount);
|
|
171
|
+
}
|
|
172
|
+
if (message.charges !== 0) {
|
|
173
|
+
writer.uint32(32).int32(message.charges);
|
|
210
174
|
}
|
|
211
175
|
return writer;
|
|
212
176
|
},
|
|
@@ -227,7 +191,19 @@ exports.getForecloseAmountResponse_Field = {
|
|
|
227
191
|
if (tag !== 16) {
|
|
228
192
|
break;
|
|
229
193
|
}
|
|
230
|
-
message.
|
|
194
|
+
message.foreclosed_amount = reader.int32();
|
|
195
|
+
continue;
|
|
196
|
+
case 3:
|
|
197
|
+
if (tag !== 24) {
|
|
198
|
+
break;
|
|
199
|
+
}
|
|
200
|
+
message.loan_amount = reader.int32();
|
|
201
|
+
continue;
|
|
202
|
+
case 4:
|
|
203
|
+
if (tag !== 32) {
|
|
204
|
+
break;
|
|
205
|
+
}
|
|
206
|
+
message.charges = reader.int32();
|
|
231
207
|
continue;
|
|
232
208
|
}
|
|
233
209
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -240,7 +216,9 @@ exports.getForecloseAmountResponse_Field = {
|
|
|
240
216
|
fromJSON(object) {
|
|
241
217
|
return {
|
|
242
218
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
243
|
-
|
|
219
|
+
foreclosed_amount: isSet(object.foreclosed_amount) ? globalThis.Number(object.foreclosed_amount) : 0,
|
|
220
|
+
loan_amount: isSet(object.loan_amount) ? globalThis.Number(object.loan_amount) : 0,
|
|
221
|
+
charges: isSet(object.charges) ? globalThis.Number(object.charges) : 0,
|
|
244
222
|
};
|
|
245
223
|
},
|
|
246
224
|
toJSON(message) {
|
|
@@ -248,8 +226,14 @@ exports.getForecloseAmountResponse_Field = {
|
|
|
248
226
|
if (message.loan_id !== 0) {
|
|
249
227
|
obj.loan_id = Math.round(message.loan_id);
|
|
250
228
|
}
|
|
251
|
-
if (message.
|
|
252
|
-
obj.
|
|
229
|
+
if (message.foreclosed_amount !== 0) {
|
|
230
|
+
obj.foreclosed_amount = Math.round(message.foreclosed_amount);
|
|
231
|
+
}
|
|
232
|
+
if (message.loan_amount !== 0) {
|
|
233
|
+
obj.loan_amount = Math.round(message.loan_amount);
|
|
234
|
+
}
|
|
235
|
+
if (message.charges !== 0) {
|
|
236
|
+
obj.charges = Math.round(message.charges);
|
|
253
237
|
}
|
|
254
238
|
return obj;
|
|
255
239
|
},
|
|
@@ -259,7 +243,9 @@ exports.getForecloseAmountResponse_Field = {
|
|
|
259
243
|
fromPartial(object) {
|
|
260
244
|
const message = createBasegetForecloseAmountResponse_Field();
|
|
261
245
|
message.loan_id = object.loan_id ?? 0;
|
|
262
|
-
message.
|
|
246
|
+
message.foreclosed_amount = object.foreclosed_amount ?? 0;
|
|
247
|
+
message.loan_amount = object.loan_amount ?? 0;
|
|
248
|
+
message.charges = object.charges ?? 0;
|
|
263
249
|
return message;
|
|
264
250
|
},
|
|
265
251
|
};
|