@stashfin/grpc 1.2.324 → 1.2.326
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,7 +2,7 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "customers.uploaddocuments";
|
|
3
3
|
export interface uploadDocumentsRequest {
|
|
4
4
|
title: string;
|
|
5
|
-
file:
|
|
5
|
+
file: string;
|
|
6
6
|
fileType: string;
|
|
7
7
|
}
|
|
8
8
|
export interface uploadDocumentsResponse {
|
|
@@ -13,15 +13,15 @@ exports.uploadDocumentsResponse = exports.uploadDocumentsRequest = exports.proto
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "customers.uploaddocuments";
|
|
15
15
|
function createBaseuploadDocumentsRequest() {
|
|
16
|
-
return { title: "", file:
|
|
16
|
+
return { title: "", file: "", fileType: "" };
|
|
17
17
|
}
|
|
18
18
|
exports.uploadDocumentsRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
20
|
if (message.title !== "") {
|
|
21
21
|
writer.uint32(10).string(message.title);
|
|
22
22
|
}
|
|
23
|
-
if (message.file
|
|
24
|
-
writer.uint32(18).
|
|
23
|
+
if (message.file !== "") {
|
|
24
|
+
writer.uint32(18).string(message.file);
|
|
25
25
|
}
|
|
26
26
|
if (message.fileType !== "") {
|
|
27
27
|
writer.uint32(26).string(message.fileType);
|
|
@@ -45,7 +45,7 @@ exports.uploadDocumentsRequest = {
|
|
|
45
45
|
if (tag !== 18) {
|
|
46
46
|
break;
|
|
47
47
|
}
|
|
48
|
-
message.file = reader.
|
|
48
|
+
message.file = reader.string();
|
|
49
49
|
continue;
|
|
50
50
|
case 3:
|
|
51
51
|
if (tag !== 26) {
|
|
@@ -64,7 +64,7 @@ exports.uploadDocumentsRequest = {
|
|
|
64
64
|
fromJSON(object) {
|
|
65
65
|
return {
|
|
66
66
|
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
67
|
-
file: isSet(object.file) ?
|
|
67
|
+
file: isSet(object.file) ? globalThis.String(object.file) : "",
|
|
68
68
|
fileType: isSet(object.fileType) ? globalThis.String(object.fileType) : "",
|
|
69
69
|
};
|
|
70
70
|
},
|
|
@@ -73,8 +73,8 @@ exports.uploadDocumentsRequest = {
|
|
|
73
73
|
if (message.title !== "") {
|
|
74
74
|
obj.title = message.title;
|
|
75
75
|
}
|
|
76
|
-
if (message.file
|
|
77
|
-
obj.file =
|
|
76
|
+
if (message.file !== "") {
|
|
77
|
+
obj.file = message.file;
|
|
78
78
|
}
|
|
79
79
|
if (message.fileType !== "") {
|
|
80
80
|
obj.fileType = message.fileType;
|
|
@@ -87,7 +87,7 @@ exports.uploadDocumentsRequest = {
|
|
|
87
87
|
fromPartial(object) {
|
|
88
88
|
const message = createBaseuploadDocumentsRequest();
|
|
89
89
|
message.title = object.title ?? "";
|
|
90
|
-
message.file = object.file ??
|
|
90
|
+
message.file = object.file ?? "";
|
|
91
91
|
message.fileType = object.fileType ?? "";
|
|
92
92
|
return message;
|
|
93
93
|
},
|
|
@@ -142,31 +142,6 @@ exports.uploadDocumentsResponse = {
|
|
|
142
142
|
return message;
|
|
143
143
|
},
|
|
144
144
|
};
|
|
145
|
-
function bytesFromBase64(b64) {
|
|
146
|
-
if (globalThis.Buffer) {
|
|
147
|
-
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
const bin = globalThis.atob(b64);
|
|
151
|
-
const arr = new Uint8Array(bin.length);
|
|
152
|
-
for (let i = 0; i < bin.length; ++i) {
|
|
153
|
-
arr[i] = bin.charCodeAt(i);
|
|
154
|
-
}
|
|
155
|
-
return arr;
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
function base64FromBytes(arr) {
|
|
159
|
-
if (globalThis.Buffer) {
|
|
160
|
-
return globalThis.Buffer.from(arr).toString("base64");
|
|
161
|
-
}
|
|
162
|
-
else {
|
|
163
|
-
const bin = [];
|
|
164
|
-
arr.forEach((byte) => {
|
|
165
|
-
bin.push(globalThis.String.fromCharCode(byte));
|
|
166
|
-
});
|
|
167
|
-
return globalThis.btoa(bin.join(""));
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
145
|
function isSet(value) {
|
|
171
146
|
return value !== null && value !== undefined;
|
|
172
147
|
}
|
|
@@ -21,6 +21,7 @@ export interface creditLimitResponse {
|
|
|
21
21
|
exposure_limit_info_popup_body: string;
|
|
22
22
|
sanctioned_limit_heading: string;
|
|
23
23
|
exposure_limit_heading: string;
|
|
24
|
+
sanction_upgrade: boolean;
|
|
24
25
|
}
|
|
25
26
|
export declare const creditLimitRequest: {
|
|
26
27
|
encode(_: creditLimitRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/creditlimit.js
CHANGED
|
@@ -69,6 +69,7 @@ function createBasecreditLimitResponse() {
|
|
|
69
69
|
exposure_limit_info_popup_body: "",
|
|
70
70
|
sanctioned_limit_heading: "",
|
|
71
71
|
exposure_limit_heading: "",
|
|
72
|
+
sanction_upgrade: false,
|
|
72
73
|
};
|
|
73
74
|
}
|
|
74
75
|
exports.creditLimitResponse = {
|
|
@@ -127,6 +128,9 @@ exports.creditLimitResponse = {
|
|
|
127
128
|
if (message.exposure_limit_heading !== "") {
|
|
128
129
|
writer.uint32(146).string(message.exposure_limit_heading);
|
|
129
130
|
}
|
|
131
|
+
if (message.sanction_upgrade !== false) {
|
|
132
|
+
writer.uint32(152).bool(message.sanction_upgrade);
|
|
133
|
+
}
|
|
130
134
|
return writer;
|
|
131
135
|
},
|
|
132
136
|
decode(input, length) {
|
|
@@ -244,6 +248,12 @@ exports.creditLimitResponse = {
|
|
|
244
248
|
}
|
|
245
249
|
message.exposure_limit_heading = reader.string();
|
|
246
250
|
continue;
|
|
251
|
+
case 19:
|
|
252
|
+
if (tag !== 152) {
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
message.sanction_upgrade = reader.bool();
|
|
256
|
+
continue;
|
|
247
257
|
}
|
|
248
258
|
if ((tag & 7) === 4 || tag === 0) {
|
|
249
259
|
break;
|
|
@@ -290,6 +300,7 @@ exports.creditLimitResponse = {
|
|
|
290
300
|
exposure_limit_heading: isSet(object.exposure_limit_heading)
|
|
291
301
|
? globalThis.String(object.exposure_limit_heading)
|
|
292
302
|
: "",
|
|
303
|
+
sanction_upgrade: isSet(object.sanction_upgrade) ? globalThis.Boolean(object.sanction_upgrade) : false,
|
|
293
304
|
};
|
|
294
305
|
},
|
|
295
306
|
toJSON(message) {
|
|
@@ -348,6 +359,9 @@ exports.creditLimitResponse = {
|
|
|
348
359
|
if (message.exposure_limit_heading !== "") {
|
|
349
360
|
obj.exposure_limit_heading = message.exposure_limit_heading;
|
|
350
361
|
}
|
|
362
|
+
if (message.sanction_upgrade !== false) {
|
|
363
|
+
obj.sanction_upgrade = message.sanction_upgrade;
|
|
364
|
+
}
|
|
351
365
|
return obj;
|
|
352
366
|
},
|
|
353
367
|
create(base) {
|
|
@@ -373,6 +387,7 @@ exports.creditLimitResponse = {
|
|
|
373
387
|
message.exposure_limit_info_popup_body = object.exposure_limit_info_popup_body ?? "";
|
|
374
388
|
message.sanctioned_limit_heading = object.sanctioned_limit_heading ?? "";
|
|
375
389
|
message.exposure_limit_heading = object.exposure_limit_heading ?? "";
|
|
390
|
+
message.sanction_upgrade = object.sanction_upgrade ?? false;
|
|
376
391
|
return message;
|
|
377
392
|
},
|
|
378
393
|
};
|
|
@@ -3,7 +3,9 @@ export declare const protobufPackage = "loans.getnextdueamount";
|
|
|
3
3
|
export interface getNextdueAmountRequest {
|
|
4
4
|
}
|
|
5
5
|
export interface getNextdueAmountResponse {
|
|
6
|
-
|
|
6
|
+
overdue_amount: number;
|
|
7
|
+
current_due: number;
|
|
8
|
+
advance_payment: number;
|
|
7
9
|
}
|
|
8
10
|
export declare const getNextdueAmountRequest: {
|
|
9
11
|
encode(_: getNextdueAmountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -50,12 +50,18 @@ exports.getNextdueAmountRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetNextdueAmountResponse() {
|
|
53
|
-
return {
|
|
53
|
+
return { overdue_amount: 0, current_due: 0, advance_payment: 0 };
|
|
54
54
|
}
|
|
55
55
|
exports.getNextdueAmountResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
-
if (message.
|
|
58
|
-
writer.uint32(8).int32(message.
|
|
57
|
+
if (message.overdue_amount !== 0) {
|
|
58
|
+
writer.uint32(8).int32(message.overdue_amount);
|
|
59
|
+
}
|
|
60
|
+
if (message.current_due !== 0) {
|
|
61
|
+
writer.uint32(16).int32(message.current_due);
|
|
62
|
+
}
|
|
63
|
+
if (message.advance_payment !== 0) {
|
|
64
|
+
writer.uint32(24).int32(message.advance_payment);
|
|
59
65
|
}
|
|
60
66
|
return writer;
|
|
61
67
|
},
|
|
@@ -70,7 +76,19 @@ exports.getNextdueAmountResponse = {
|
|
|
70
76
|
if (tag !== 8) {
|
|
71
77
|
break;
|
|
72
78
|
}
|
|
73
|
-
message.
|
|
79
|
+
message.overdue_amount = reader.int32();
|
|
80
|
+
continue;
|
|
81
|
+
case 2:
|
|
82
|
+
if (tag !== 16) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.current_due = reader.int32();
|
|
86
|
+
continue;
|
|
87
|
+
case 3:
|
|
88
|
+
if (tag !== 24) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.advance_payment = reader.int32();
|
|
74
92
|
continue;
|
|
75
93
|
}
|
|
76
94
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -81,12 +99,22 @@ exports.getNextdueAmountResponse = {
|
|
|
81
99
|
return message;
|
|
82
100
|
},
|
|
83
101
|
fromJSON(object) {
|
|
84
|
-
return {
|
|
102
|
+
return {
|
|
103
|
+
overdue_amount: isSet(object.overdue_amount) ? globalThis.Number(object.overdue_amount) : 0,
|
|
104
|
+
current_due: isSet(object.current_due) ? globalThis.Number(object.current_due) : 0,
|
|
105
|
+
advance_payment: isSet(object.advance_payment) ? globalThis.Number(object.advance_payment) : 0,
|
|
106
|
+
};
|
|
85
107
|
},
|
|
86
108
|
toJSON(message) {
|
|
87
109
|
const obj = {};
|
|
88
|
-
if (message.
|
|
89
|
-
obj.
|
|
110
|
+
if (message.overdue_amount !== 0) {
|
|
111
|
+
obj.overdue_amount = Math.round(message.overdue_amount);
|
|
112
|
+
}
|
|
113
|
+
if (message.current_due !== 0) {
|
|
114
|
+
obj.current_due = Math.round(message.current_due);
|
|
115
|
+
}
|
|
116
|
+
if (message.advance_payment !== 0) {
|
|
117
|
+
obj.advance_payment = Math.round(message.advance_payment);
|
|
90
118
|
}
|
|
91
119
|
return obj;
|
|
92
120
|
},
|
|
@@ -95,7 +123,9 @@ exports.getNextdueAmountResponse = {
|
|
|
95
123
|
},
|
|
96
124
|
fromPartial(object) {
|
|
97
125
|
const message = createBasegetNextdueAmountResponse();
|
|
98
|
-
message.
|
|
126
|
+
message.overdue_amount = object.overdue_amount ?? 0;
|
|
127
|
+
message.current_due = object.current_due ?? 0;
|
|
128
|
+
message.advance_payment = object.advance_payment ?? 0;
|
|
99
129
|
return message;
|
|
100
130
|
},
|
|
101
131
|
};
|