@stashfin/grpc 1.2.393 → 1.2.395
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/lamf/updatelamfjourney.d.ts +34 -0
- package/ts/customers/lamf/updatelamfjourney.js +104 -0
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
- package/ts/loans/getnextdueamount.d.ts +31 -0
- package/ts/loans/getnextdueamount.js +236 -2
- package/ts/loans/getsummarystaticfields.d.ts +27 -0
- package/ts/loans/getsummarystaticfields.js +184 -1
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.lamf.updatelamfjourney";
|
|
3
|
+
export interface updateLamfJourneyRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface updateLamfJourneyResponse {
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const updateLamfJourneyRequest: {
|
|
9
|
+
encode(_: updateLamfJourneyRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateLamfJourneyRequest;
|
|
11
|
+
fromJSON(_: any): updateLamfJourneyRequest;
|
|
12
|
+
toJSON(_: updateLamfJourneyRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<updateLamfJourneyRequest>, I>>(base?: I): updateLamfJourneyRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<updateLamfJourneyRequest>, I>>(_: I): updateLamfJourneyRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const updateLamfJourneyResponse: {
|
|
17
|
+
encode(message: updateLamfJourneyResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateLamfJourneyResponse;
|
|
19
|
+
fromJSON(object: any): updateLamfJourneyResponse;
|
|
20
|
+
toJSON(message: updateLamfJourneyResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<updateLamfJourneyResponse>, I>>(base?: I): updateLamfJourneyResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<updateLamfJourneyResponse>, I>>(object: I): updateLamfJourneyResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
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 v5.28.3
|
|
6
|
+
// source: customers/lamf/updatelamfjourney.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.updateLamfJourneyResponse = exports.updateLamfJourneyRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.lamf.updatelamfjourney";
|
|
15
|
+
function createBaseupdateLamfJourneyRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.updateLamfJourneyRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBaseupdateLamfJourneyRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.updateLamfJourneyRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaseupdateLamfJourneyRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseupdateLamfJourneyResponse() {
|
|
53
|
+
return { status: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.updateLamfJourneyResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.status !== "") {
|
|
58
|
+
writer.uint32(10).string(message.status);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBaseupdateLamfJourneyResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 10) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.status = reader.string();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return { status: isSet(object.status) ? globalThis.String(object.status) : "" };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.status !== "") {
|
|
89
|
+
obj.status = message.status;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.updateLamfJourneyResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBaseupdateLamfJourneyResponse();
|
|
98
|
+
message.status = object.status ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -72,6 +72,7 @@ import { getSyncStatusRequest, getSyncStatusResponse } from "./customers/getsync
|
|
|
72
72
|
import { getVaNumberRequest, getVaNumberResponse } from "./customers/getvanumber";
|
|
73
73
|
import { sendLamfOtpRequest, sendLamfOtpResponse } from "./customers/lamf/sendlamfotp";
|
|
74
74
|
import { sendLamfPledgeOtpRequest, sendLamfPledgeOtpResponse } from "./customers/lamf/sendlamfpledgeotp";
|
|
75
|
+
import { updateLamfJourneyRequest, updateLamfJourneyResponse } from "./customers/lamf/updatelamfjourney";
|
|
75
76
|
import { verifyLamfOtpRequest, verifyLamfOtpResponse } from "./customers/lamf/verifylamfotp";
|
|
76
77
|
import { verifyLamfPledgeOtpRequest, verifyLamfPledgeOtpResponse } from "./customers/lamf/verifylamfpledgeotp";
|
|
77
78
|
import { logoutRequest, logoutResponse } from "./customers/logout";
|
|
@@ -1150,6 +1151,15 @@ export declare const customersService: {
|
|
|
1150
1151
|
readonly responseSerialize: (value: verifyLamfPledgeOtpResponse) => Buffer;
|
|
1151
1152
|
readonly responseDeserialize: (value: Buffer) => verifyLamfPledgeOtpResponse;
|
|
1152
1153
|
};
|
|
1154
|
+
readonly updateLamfJourney: {
|
|
1155
|
+
readonly path: "/service.customers/updateLamfJourney";
|
|
1156
|
+
readonly requestStream: false;
|
|
1157
|
+
readonly responseStream: false;
|
|
1158
|
+
readonly requestSerialize: (value: updateLamfJourneyRequest) => Buffer;
|
|
1159
|
+
readonly requestDeserialize: (value: Buffer) => updateLamfJourneyRequest;
|
|
1160
|
+
readonly responseSerialize: (value: updateLamfJourneyResponse) => Buffer;
|
|
1161
|
+
readonly responseDeserialize: (value: Buffer) => updateLamfJourneyResponse;
|
|
1162
|
+
};
|
|
1153
1163
|
readonly updateSanctionAmount: {
|
|
1154
1164
|
readonly path: "/service.customers/updateSanctionAmount";
|
|
1155
1165
|
readonly requestStream: false;
|
|
@@ -1276,6 +1286,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1276
1286
|
verifyLamfOtp: handleUnaryCall<verifyLamfOtpRequest, verifyLamfOtpResponse>;
|
|
1277
1287
|
sendLamfPledgeOtp: handleUnaryCall<sendLamfPledgeOtpRequest, sendLamfPledgeOtpResponse>;
|
|
1278
1288
|
verifyLamfPledgeOtp: handleUnaryCall<verifyLamfPledgeOtpRequest, verifyLamfPledgeOtpResponse>;
|
|
1289
|
+
updateLamfJourney: handleUnaryCall<updateLamfJourneyRequest, updateLamfJourneyResponse>;
|
|
1279
1290
|
updateSanctionAmount: handleUnaryCall<updateSanctionAmountRequest, updateSanctionAmountResponse>;
|
|
1280
1291
|
}
|
|
1281
1292
|
export interface customersClient extends Client {
|
|
@@ -1624,6 +1635,9 @@ export interface customersClient extends Client {
|
|
|
1624
1635
|
verifyLamfPledgeOtp(request: verifyLamfPledgeOtpRequest, callback: (error: ServiceError | null, response: verifyLamfPledgeOtpResponse) => void): ClientUnaryCall;
|
|
1625
1636
|
verifyLamfPledgeOtp(request: verifyLamfPledgeOtpRequest, metadata: Metadata, callback: (error: ServiceError | null, response: verifyLamfPledgeOtpResponse) => void): ClientUnaryCall;
|
|
1626
1637
|
verifyLamfPledgeOtp(request: verifyLamfPledgeOtpRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: verifyLamfPledgeOtpResponse) => void): ClientUnaryCall;
|
|
1638
|
+
updateLamfJourney(request: updateLamfJourneyRequest, callback: (error: ServiceError | null, response: updateLamfJourneyResponse) => void): ClientUnaryCall;
|
|
1639
|
+
updateLamfJourney(request: updateLamfJourneyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateLamfJourneyResponse) => void): ClientUnaryCall;
|
|
1640
|
+
updateLamfJourney(request: updateLamfJourneyRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateLamfJourneyResponse) => void): ClientUnaryCall;
|
|
1627
1641
|
updateSanctionAmount(request: updateSanctionAmountRequest, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
|
1628
1642
|
updateSanctionAmount(request: updateSanctionAmountRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
|
1629
1643
|
updateSanctionAmount(request: updateSanctionAmountRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateSanctionAmountResponse) => void): ClientUnaryCall;
|
package/ts/customers.js
CHANGED
|
@@ -81,6 +81,7 @@ const getsyncstatus_1 = require("./customers/getsyncstatus");
|
|
|
81
81
|
const getvanumber_1 = require("./customers/getvanumber");
|
|
82
82
|
const sendlamfotp_1 = require("./customers/lamf/sendlamfotp");
|
|
83
83
|
const sendlamfpledgeotp_1 = require("./customers/lamf/sendlamfpledgeotp");
|
|
84
|
+
const updatelamfjourney_1 = require("./customers/lamf/updatelamfjourney");
|
|
84
85
|
const verifylamfotp_1 = require("./customers/lamf/verifylamfotp");
|
|
85
86
|
const verifylamfpledgeotp_1 = require("./customers/lamf/verifylamfpledgeotp");
|
|
86
87
|
const logout_1 = require("./customers/logout");
|
|
@@ -1158,6 +1159,15 @@ exports.customersService = {
|
|
|
1158
1159
|
responseSerialize: (value) => Buffer.from(verifylamfpledgeotp_1.verifyLamfPledgeOtpResponse.encode(value).finish()),
|
|
1159
1160
|
responseDeserialize: (value) => verifylamfpledgeotp_1.verifyLamfPledgeOtpResponse.decode(value),
|
|
1160
1161
|
},
|
|
1162
|
+
updateLamfJourney: {
|
|
1163
|
+
path: "/service.customers/updateLamfJourney",
|
|
1164
|
+
requestStream: false,
|
|
1165
|
+
responseStream: false,
|
|
1166
|
+
requestSerialize: (value) => Buffer.from(updatelamfjourney_1.updateLamfJourneyRequest.encode(value).finish()),
|
|
1167
|
+
requestDeserialize: (value) => updatelamfjourney_1.updateLamfJourneyRequest.decode(value),
|
|
1168
|
+
responseSerialize: (value) => Buffer.from(updatelamfjourney_1.updateLamfJourneyResponse.encode(value).finish()),
|
|
1169
|
+
responseDeserialize: (value) => updatelamfjourney_1.updateLamfJourneyResponse.decode(value),
|
|
1170
|
+
},
|
|
1161
1171
|
updateSanctionAmount: {
|
|
1162
1172
|
path: "/service.customers/updateSanctionAmount",
|
|
1163
1173
|
requestStream: false,
|
|
@@ -7,6 +7,21 @@ export interface getNextdueAmountResponse {
|
|
|
7
7
|
current_due: number;
|
|
8
8
|
advance_payment: number;
|
|
9
9
|
future_payment: number;
|
|
10
|
+
fcp: getNextdueAmountResponse_FcpData[];
|
|
11
|
+
data: getNextdueAmountResponse_Field[];
|
|
12
|
+
}
|
|
13
|
+
export interface getNextdueAmountResponse_FcpData {
|
|
14
|
+
loan_id: number;
|
|
15
|
+
bill_amount: number;
|
|
16
|
+
bill_date: number;
|
|
17
|
+
}
|
|
18
|
+
export interface getNextdueAmountResponse_Field {
|
|
19
|
+
type: string;
|
|
20
|
+
amount: number;
|
|
21
|
+
principal: number;
|
|
22
|
+
interest: number;
|
|
23
|
+
penalty: number;
|
|
24
|
+
due_date: string;
|
|
10
25
|
}
|
|
11
26
|
export declare const getNextdueAmountRequest: {
|
|
12
27
|
encode(_: getNextdueAmountRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -24,6 +39,22 @@ export declare const getNextdueAmountResponse: {
|
|
|
24
39
|
create<I extends Exact<DeepPartial<getNextdueAmountResponse>, I>>(base?: I): getNextdueAmountResponse;
|
|
25
40
|
fromPartial<I extends Exact<DeepPartial<getNextdueAmountResponse>, I>>(object: I): getNextdueAmountResponse;
|
|
26
41
|
};
|
|
42
|
+
export declare const getNextdueAmountResponse_FcpData: {
|
|
43
|
+
encode(message: getNextdueAmountResponse_FcpData, writer?: _m0.Writer): _m0.Writer;
|
|
44
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getNextdueAmountResponse_FcpData;
|
|
45
|
+
fromJSON(object: any): getNextdueAmountResponse_FcpData;
|
|
46
|
+
toJSON(message: getNextdueAmountResponse_FcpData): unknown;
|
|
47
|
+
create<I extends Exact<DeepPartial<getNextdueAmountResponse_FcpData>, I>>(base?: I): getNextdueAmountResponse_FcpData;
|
|
48
|
+
fromPartial<I extends Exact<DeepPartial<getNextdueAmountResponse_FcpData>, I>>(object: I): getNextdueAmountResponse_FcpData;
|
|
49
|
+
};
|
|
50
|
+
export declare const getNextdueAmountResponse_Field: {
|
|
51
|
+
encode(message: getNextdueAmountResponse_Field, writer?: _m0.Writer): _m0.Writer;
|
|
52
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getNextdueAmountResponse_Field;
|
|
53
|
+
fromJSON(object: any): getNextdueAmountResponse_Field;
|
|
54
|
+
toJSON(message: getNextdueAmountResponse_Field): unknown;
|
|
55
|
+
create<I extends Exact<DeepPartial<getNextdueAmountResponse_Field>, I>>(base?: I): getNextdueAmountResponse_Field;
|
|
56
|
+
fromPartial<I extends Exact<DeepPartial<getNextdueAmountResponse_Field>, I>>(object: I): getNextdueAmountResponse_Field;
|
|
57
|
+
};
|
|
27
58
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
59
|
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 {} ? {
|
|
29
60
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,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.getNextdueAmountResponse = exports.getNextdueAmountRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.getNextdueAmountResponse_Field = exports.getNextdueAmountResponse_FcpData = exports.getNextdueAmountResponse = exports.getNextdueAmountRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.getnextdueamount";
|
|
@@ -50,7 +50,7 @@ exports.getNextdueAmountRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetNextdueAmountResponse() {
|
|
53
|
-
return { overdue_amount: 0, current_due: 0, advance_payment: 0, future_payment: 0 };
|
|
53
|
+
return { overdue_amount: 0, current_due: 0, advance_payment: 0, future_payment: 0, fcp: [], data: [] };
|
|
54
54
|
}
|
|
55
55
|
exports.getNextdueAmountResponse = {
|
|
56
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -66,6 +66,12 @@ exports.getNextdueAmountResponse = {
|
|
|
66
66
|
if (message.future_payment !== 0) {
|
|
67
67
|
writer.uint32(32).int32(message.future_payment);
|
|
68
68
|
}
|
|
69
|
+
for (const v of message.fcp) {
|
|
70
|
+
exports.getNextdueAmountResponse_FcpData.encode(v, writer.uint32(42).fork()).ldelim();
|
|
71
|
+
}
|
|
72
|
+
for (const v of message.data) {
|
|
73
|
+
exports.getNextdueAmountResponse_Field.encode(v, writer.uint32(50).fork()).ldelim();
|
|
74
|
+
}
|
|
69
75
|
return writer;
|
|
70
76
|
},
|
|
71
77
|
decode(input, length) {
|
|
@@ -99,6 +105,18 @@ exports.getNextdueAmountResponse = {
|
|
|
99
105
|
}
|
|
100
106
|
message.future_payment = reader.int32();
|
|
101
107
|
continue;
|
|
108
|
+
case 5:
|
|
109
|
+
if (tag !== 42) {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
message.fcp.push(exports.getNextdueAmountResponse_FcpData.decode(reader, reader.uint32()));
|
|
113
|
+
continue;
|
|
114
|
+
case 6:
|
|
115
|
+
if (tag !== 50) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.data.push(exports.getNextdueAmountResponse_Field.decode(reader, reader.uint32()));
|
|
119
|
+
continue;
|
|
102
120
|
}
|
|
103
121
|
if ((tag & 7) === 4 || tag === 0) {
|
|
104
122
|
break;
|
|
@@ -113,6 +131,12 @@ exports.getNextdueAmountResponse = {
|
|
|
113
131
|
current_due: isSet(object.current_due) ? globalThis.Number(object.current_due) : 0,
|
|
114
132
|
advance_payment: isSet(object.advance_payment) ? globalThis.Number(object.advance_payment) : 0,
|
|
115
133
|
future_payment: isSet(object.future_payment) ? globalThis.Number(object.future_payment) : 0,
|
|
134
|
+
fcp: globalThis.Array.isArray(object?.fcp)
|
|
135
|
+
? object.fcp.map((e) => exports.getNextdueAmountResponse_FcpData.fromJSON(e))
|
|
136
|
+
: [],
|
|
137
|
+
data: globalThis.Array.isArray(object?.data)
|
|
138
|
+
? object.data.map((e) => exports.getNextdueAmountResponse_Field.fromJSON(e))
|
|
139
|
+
: [],
|
|
116
140
|
};
|
|
117
141
|
},
|
|
118
142
|
toJSON(message) {
|
|
@@ -129,6 +153,12 @@ exports.getNextdueAmountResponse = {
|
|
|
129
153
|
if (message.future_payment !== 0) {
|
|
130
154
|
obj.future_payment = Math.round(message.future_payment);
|
|
131
155
|
}
|
|
156
|
+
if (message.fcp?.length) {
|
|
157
|
+
obj.fcp = message.fcp.map((e) => exports.getNextdueAmountResponse_FcpData.toJSON(e));
|
|
158
|
+
}
|
|
159
|
+
if (message.data?.length) {
|
|
160
|
+
obj.data = message.data.map((e) => exports.getNextdueAmountResponse_Field.toJSON(e));
|
|
161
|
+
}
|
|
132
162
|
return obj;
|
|
133
163
|
},
|
|
134
164
|
create(base) {
|
|
@@ -140,6 +170,210 @@ exports.getNextdueAmountResponse = {
|
|
|
140
170
|
message.current_due = object.current_due ?? 0;
|
|
141
171
|
message.advance_payment = object.advance_payment ?? 0;
|
|
142
172
|
message.future_payment = object.future_payment ?? 0;
|
|
173
|
+
message.fcp = object.fcp?.map((e) => exports.getNextdueAmountResponse_FcpData.fromPartial(e)) || [];
|
|
174
|
+
message.data = object.data?.map((e) => exports.getNextdueAmountResponse_Field.fromPartial(e)) || [];
|
|
175
|
+
return message;
|
|
176
|
+
},
|
|
177
|
+
};
|
|
178
|
+
function createBasegetNextdueAmountResponse_FcpData() {
|
|
179
|
+
return { loan_id: 0, bill_amount: 0, bill_date: 0 };
|
|
180
|
+
}
|
|
181
|
+
exports.getNextdueAmountResponse_FcpData = {
|
|
182
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
183
|
+
if (message.loan_id !== 0) {
|
|
184
|
+
writer.uint32(8).int32(message.loan_id);
|
|
185
|
+
}
|
|
186
|
+
if (message.bill_amount !== 0) {
|
|
187
|
+
writer.uint32(16).int32(message.bill_amount);
|
|
188
|
+
}
|
|
189
|
+
if (message.bill_date !== 0) {
|
|
190
|
+
writer.uint32(24).int32(message.bill_date);
|
|
191
|
+
}
|
|
192
|
+
return writer;
|
|
193
|
+
},
|
|
194
|
+
decode(input, length) {
|
|
195
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
196
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
197
|
+
const message = createBasegetNextdueAmountResponse_FcpData();
|
|
198
|
+
while (reader.pos < end) {
|
|
199
|
+
const tag = reader.uint32();
|
|
200
|
+
switch (tag >>> 3) {
|
|
201
|
+
case 1:
|
|
202
|
+
if (tag !== 8) {
|
|
203
|
+
break;
|
|
204
|
+
}
|
|
205
|
+
message.loan_id = reader.int32();
|
|
206
|
+
continue;
|
|
207
|
+
case 2:
|
|
208
|
+
if (tag !== 16) {
|
|
209
|
+
break;
|
|
210
|
+
}
|
|
211
|
+
message.bill_amount = reader.int32();
|
|
212
|
+
continue;
|
|
213
|
+
case 3:
|
|
214
|
+
if (tag !== 24) {
|
|
215
|
+
break;
|
|
216
|
+
}
|
|
217
|
+
message.bill_date = reader.int32();
|
|
218
|
+
continue;
|
|
219
|
+
}
|
|
220
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
reader.skipType(tag & 7);
|
|
224
|
+
}
|
|
225
|
+
return message;
|
|
226
|
+
},
|
|
227
|
+
fromJSON(object) {
|
|
228
|
+
return {
|
|
229
|
+
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
230
|
+
bill_amount: isSet(object.bill_amount) ? globalThis.Number(object.bill_amount) : 0,
|
|
231
|
+
bill_date: isSet(object.bill_date) ? globalThis.Number(object.bill_date) : 0,
|
|
232
|
+
};
|
|
233
|
+
},
|
|
234
|
+
toJSON(message) {
|
|
235
|
+
const obj = {};
|
|
236
|
+
if (message.loan_id !== 0) {
|
|
237
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
238
|
+
}
|
|
239
|
+
if (message.bill_amount !== 0) {
|
|
240
|
+
obj.bill_amount = Math.round(message.bill_amount);
|
|
241
|
+
}
|
|
242
|
+
if (message.bill_date !== 0) {
|
|
243
|
+
obj.bill_date = Math.round(message.bill_date);
|
|
244
|
+
}
|
|
245
|
+
return obj;
|
|
246
|
+
},
|
|
247
|
+
create(base) {
|
|
248
|
+
return exports.getNextdueAmountResponse_FcpData.fromPartial(base ?? {});
|
|
249
|
+
},
|
|
250
|
+
fromPartial(object) {
|
|
251
|
+
const message = createBasegetNextdueAmountResponse_FcpData();
|
|
252
|
+
message.loan_id = object.loan_id ?? 0;
|
|
253
|
+
message.bill_amount = object.bill_amount ?? 0;
|
|
254
|
+
message.bill_date = object.bill_date ?? 0;
|
|
255
|
+
return message;
|
|
256
|
+
},
|
|
257
|
+
};
|
|
258
|
+
function createBasegetNextdueAmountResponse_Field() {
|
|
259
|
+
return { type: "", amount: 0, principal: 0, interest: 0, penalty: 0, due_date: "" };
|
|
260
|
+
}
|
|
261
|
+
exports.getNextdueAmountResponse_Field = {
|
|
262
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
263
|
+
if (message.type !== "") {
|
|
264
|
+
writer.uint32(10).string(message.type);
|
|
265
|
+
}
|
|
266
|
+
if (message.amount !== 0) {
|
|
267
|
+
writer.uint32(16).int32(message.amount);
|
|
268
|
+
}
|
|
269
|
+
if (message.principal !== 0) {
|
|
270
|
+
writer.uint32(24).int32(message.principal);
|
|
271
|
+
}
|
|
272
|
+
if (message.interest !== 0) {
|
|
273
|
+
writer.uint32(32).int32(message.interest);
|
|
274
|
+
}
|
|
275
|
+
if (message.penalty !== 0) {
|
|
276
|
+
writer.uint32(40).int32(message.penalty);
|
|
277
|
+
}
|
|
278
|
+
if (message.due_date !== "") {
|
|
279
|
+
writer.uint32(50).string(message.due_date);
|
|
280
|
+
}
|
|
281
|
+
return writer;
|
|
282
|
+
},
|
|
283
|
+
decode(input, length) {
|
|
284
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
285
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
286
|
+
const message = createBasegetNextdueAmountResponse_Field();
|
|
287
|
+
while (reader.pos < end) {
|
|
288
|
+
const tag = reader.uint32();
|
|
289
|
+
switch (tag >>> 3) {
|
|
290
|
+
case 1:
|
|
291
|
+
if (tag !== 10) {
|
|
292
|
+
break;
|
|
293
|
+
}
|
|
294
|
+
message.type = reader.string();
|
|
295
|
+
continue;
|
|
296
|
+
case 2:
|
|
297
|
+
if (tag !== 16) {
|
|
298
|
+
break;
|
|
299
|
+
}
|
|
300
|
+
message.amount = reader.int32();
|
|
301
|
+
continue;
|
|
302
|
+
case 3:
|
|
303
|
+
if (tag !== 24) {
|
|
304
|
+
break;
|
|
305
|
+
}
|
|
306
|
+
message.principal = reader.int32();
|
|
307
|
+
continue;
|
|
308
|
+
case 4:
|
|
309
|
+
if (tag !== 32) {
|
|
310
|
+
break;
|
|
311
|
+
}
|
|
312
|
+
message.interest = reader.int32();
|
|
313
|
+
continue;
|
|
314
|
+
case 5:
|
|
315
|
+
if (tag !== 40) {
|
|
316
|
+
break;
|
|
317
|
+
}
|
|
318
|
+
message.penalty = reader.int32();
|
|
319
|
+
continue;
|
|
320
|
+
case 6:
|
|
321
|
+
if (tag !== 50) {
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
message.due_date = reader.string();
|
|
325
|
+
continue;
|
|
326
|
+
}
|
|
327
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
328
|
+
break;
|
|
329
|
+
}
|
|
330
|
+
reader.skipType(tag & 7);
|
|
331
|
+
}
|
|
332
|
+
return message;
|
|
333
|
+
},
|
|
334
|
+
fromJSON(object) {
|
|
335
|
+
return {
|
|
336
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
337
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
338
|
+
principal: isSet(object.principal) ? globalThis.Number(object.principal) : 0,
|
|
339
|
+
interest: isSet(object.interest) ? globalThis.Number(object.interest) : 0,
|
|
340
|
+
penalty: isSet(object.penalty) ? globalThis.Number(object.penalty) : 0,
|
|
341
|
+
due_date: isSet(object.due_date) ? globalThis.String(object.due_date) : "",
|
|
342
|
+
};
|
|
343
|
+
},
|
|
344
|
+
toJSON(message) {
|
|
345
|
+
const obj = {};
|
|
346
|
+
if (message.type !== "") {
|
|
347
|
+
obj.type = message.type;
|
|
348
|
+
}
|
|
349
|
+
if (message.amount !== 0) {
|
|
350
|
+
obj.amount = Math.round(message.amount);
|
|
351
|
+
}
|
|
352
|
+
if (message.principal !== 0) {
|
|
353
|
+
obj.principal = Math.round(message.principal);
|
|
354
|
+
}
|
|
355
|
+
if (message.interest !== 0) {
|
|
356
|
+
obj.interest = Math.round(message.interest);
|
|
357
|
+
}
|
|
358
|
+
if (message.penalty !== 0) {
|
|
359
|
+
obj.penalty = Math.round(message.penalty);
|
|
360
|
+
}
|
|
361
|
+
if (message.due_date !== "") {
|
|
362
|
+
obj.due_date = message.due_date;
|
|
363
|
+
}
|
|
364
|
+
return obj;
|
|
365
|
+
},
|
|
366
|
+
create(base) {
|
|
367
|
+
return exports.getNextdueAmountResponse_Field.fromPartial(base ?? {});
|
|
368
|
+
},
|
|
369
|
+
fromPartial(object) {
|
|
370
|
+
const message = createBasegetNextdueAmountResponse_Field();
|
|
371
|
+
message.type = object.type ?? "";
|
|
372
|
+
message.amount = object.amount ?? 0;
|
|
373
|
+
message.principal = object.principal ?? 0;
|
|
374
|
+
message.interest = object.interest ?? 0;
|
|
375
|
+
message.penalty = object.penalty ?? 0;
|
|
376
|
+
message.due_date = object.due_date ?? "";
|
|
143
377
|
return message;
|
|
144
378
|
},
|
|
145
379
|
};
|
|
@@ -37,12 +37,23 @@ export interface getSummaryStaticFieldsResponse {
|
|
|
37
37
|
insurance_title: string;
|
|
38
38
|
upfront_interest_description: string;
|
|
39
39
|
bill_amount_l: string;
|
|
40
|
+
credit_section: getSummaryStaticFieldsResponse_CreditSection[];
|
|
41
|
+
broken_period: getSummaryStaticFieldsResponse_BrokenPeriod | undefined;
|
|
40
42
|
}
|
|
41
43
|
export interface getSummaryStaticFieldsResponse_Field {
|
|
42
44
|
title: string;
|
|
43
45
|
desc: string;
|
|
44
46
|
icon: string;
|
|
45
47
|
}
|
|
48
|
+
export interface getSummaryStaticFieldsResponse_CreditSection {
|
|
49
|
+
title: string;
|
|
50
|
+
description: string;
|
|
51
|
+
}
|
|
52
|
+
export interface getSummaryStaticFieldsResponse_BrokenPeriod {
|
|
53
|
+
title: string;
|
|
54
|
+
description: string;
|
|
55
|
+
amount: number;
|
|
56
|
+
}
|
|
46
57
|
export declare const getSummaryStaticFieldsRequest: {
|
|
47
58
|
encode(_: getSummaryStaticFieldsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
48
59
|
decode(input: _m0.Reader | Uint8Array, length?: number): getSummaryStaticFieldsRequest;
|
|
@@ -67,6 +78,22 @@ export declare const getSummaryStaticFieldsResponse_Field: {
|
|
|
67
78
|
create<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse_Field>, I>>(base?: I): getSummaryStaticFieldsResponse_Field;
|
|
68
79
|
fromPartial<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse_Field>, I>>(object: I): getSummaryStaticFieldsResponse_Field;
|
|
69
80
|
};
|
|
81
|
+
export declare const getSummaryStaticFieldsResponse_CreditSection: {
|
|
82
|
+
encode(message: getSummaryStaticFieldsResponse_CreditSection, writer?: _m0.Writer): _m0.Writer;
|
|
83
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSummaryStaticFieldsResponse_CreditSection;
|
|
84
|
+
fromJSON(object: any): getSummaryStaticFieldsResponse_CreditSection;
|
|
85
|
+
toJSON(message: getSummaryStaticFieldsResponse_CreditSection): unknown;
|
|
86
|
+
create<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse_CreditSection>, I>>(base?: I): getSummaryStaticFieldsResponse_CreditSection;
|
|
87
|
+
fromPartial<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse_CreditSection>, I>>(object: I): getSummaryStaticFieldsResponse_CreditSection;
|
|
88
|
+
};
|
|
89
|
+
export declare const getSummaryStaticFieldsResponse_BrokenPeriod: {
|
|
90
|
+
encode(message: getSummaryStaticFieldsResponse_BrokenPeriod, writer?: _m0.Writer): _m0.Writer;
|
|
91
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getSummaryStaticFieldsResponse_BrokenPeriod;
|
|
92
|
+
fromJSON(object: any): getSummaryStaticFieldsResponse_BrokenPeriod;
|
|
93
|
+
toJSON(message: getSummaryStaticFieldsResponse_BrokenPeriod): unknown;
|
|
94
|
+
create<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse_BrokenPeriod>, I>>(base?: I): getSummaryStaticFieldsResponse_BrokenPeriod;
|
|
95
|
+
fromPartial<I extends Exact<DeepPartial<getSummaryStaticFieldsResponse_BrokenPeriod>, I>>(object: I): getSummaryStaticFieldsResponse_BrokenPeriod;
|
|
96
|
+
};
|
|
70
97
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
71
98
|
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 {} ? {
|
|
72
99
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,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.getSummaryStaticFieldsResponse_Field = exports.getSummaryStaticFieldsResponse = exports.getSummaryStaticFieldsRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.getSummaryStaticFieldsResponse_BrokenPeriod = exports.getSummaryStaticFieldsResponse_CreditSection = exports.getSummaryStaticFieldsResponse_Field = exports.getSummaryStaticFieldsResponse = exports.getSummaryStaticFieldsRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.getsummarystaticfields";
|
|
@@ -85,6 +85,8 @@ function createBasegetSummaryStaticFieldsResponse() {
|
|
|
85
85
|
insurance_title: "",
|
|
86
86
|
upfront_interest_description: "",
|
|
87
87
|
bill_amount_l: "",
|
|
88
|
+
credit_section: [],
|
|
89
|
+
broken_period: undefined,
|
|
88
90
|
};
|
|
89
91
|
}
|
|
90
92
|
exports.getSummaryStaticFieldsResponse = {
|
|
@@ -191,6 +193,12 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
191
193
|
if (message.bill_amount_l !== "") {
|
|
192
194
|
writer.uint32(274).string(message.bill_amount_l);
|
|
193
195
|
}
|
|
196
|
+
for (const v of message.credit_section) {
|
|
197
|
+
exports.getSummaryStaticFieldsResponse_CreditSection.encode(v, writer.uint32(282).fork()).ldelim();
|
|
198
|
+
}
|
|
199
|
+
if (message.broken_period !== undefined) {
|
|
200
|
+
exports.getSummaryStaticFieldsResponse_BrokenPeriod.encode(message.broken_period, writer.uint32(290).fork()).ldelim();
|
|
201
|
+
}
|
|
194
202
|
return writer;
|
|
195
203
|
},
|
|
196
204
|
decode(input, length) {
|
|
@@ -404,6 +412,18 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
404
412
|
}
|
|
405
413
|
message.bill_amount_l = reader.string();
|
|
406
414
|
continue;
|
|
415
|
+
case 35:
|
|
416
|
+
if (tag !== 282) {
|
|
417
|
+
break;
|
|
418
|
+
}
|
|
419
|
+
message.credit_section.push(exports.getSummaryStaticFieldsResponse_CreditSection.decode(reader, reader.uint32()));
|
|
420
|
+
continue;
|
|
421
|
+
case 36:
|
|
422
|
+
if (tag !== 290) {
|
|
423
|
+
break;
|
|
424
|
+
}
|
|
425
|
+
message.broken_period = exports.getSummaryStaticFieldsResponse_BrokenPeriod.decode(reader, reader.uint32());
|
|
426
|
+
continue;
|
|
407
427
|
}
|
|
408
428
|
if ((tag & 7) === 4 || tag === 0) {
|
|
409
429
|
break;
|
|
@@ -464,6 +484,12 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
464
484
|
? globalThis.String(object.upfront_interest_description)
|
|
465
485
|
: "",
|
|
466
486
|
bill_amount_l: isSet(object.bill_amount_l) ? globalThis.String(object.bill_amount_l) : "",
|
|
487
|
+
credit_section: globalThis.Array.isArray(object?.credit_section)
|
|
488
|
+
? object.credit_section.map((e) => exports.getSummaryStaticFieldsResponse_CreditSection.fromJSON(e))
|
|
489
|
+
: [],
|
|
490
|
+
broken_period: isSet(object.broken_period)
|
|
491
|
+
? exports.getSummaryStaticFieldsResponse_BrokenPeriod.fromJSON(object.broken_period)
|
|
492
|
+
: undefined,
|
|
467
493
|
};
|
|
468
494
|
},
|
|
469
495
|
toJSON(message) {
|
|
@@ -570,6 +596,12 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
570
596
|
if (message.bill_amount_l !== "") {
|
|
571
597
|
obj.bill_amount_l = message.bill_amount_l;
|
|
572
598
|
}
|
|
599
|
+
if (message.credit_section?.length) {
|
|
600
|
+
obj.credit_section = message.credit_section.map((e) => exports.getSummaryStaticFieldsResponse_CreditSection.toJSON(e));
|
|
601
|
+
}
|
|
602
|
+
if (message.broken_period !== undefined) {
|
|
603
|
+
obj.broken_period = exports.getSummaryStaticFieldsResponse_BrokenPeriod.toJSON(message.broken_period);
|
|
604
|
+
}
|
|
573
605
|
return obj;
|
|
574
606
|
},
|
|
575
607
|
create(base) {
|
|
@@ -612,6 +644,11 @@ exports.getSummaryStaticFieldsResponse = {
|
|
|
612
644
|
message.insurance_title = object.insurance_title ?? "";
|
|
613
645
|
message.upfront_interest_description = object.upfront_interest_description ?? "";
|
|
614
646
|
message.bill_amount_l = object.bill_amount_l ?? "";
|
|
647
|
+
message.credit_section =
|
|
648
|
+
object.credit_section?.map((e) => exports.getSummaryStaticFieldsResponse_CreditSection.fromPartial(e)) || [];
|
|
649
|
+
message.broken_period = (object.broken_period !== undefined && object.broken_period !== null)
|
|
650
|
+
? exports.getSummaryStaticFieldsResponse_BrokenPeriod.fromPartial(object.broken_period)
|
|
651
|
+
: undefined;
|
|
615
652
|
return message;
|
|
616
653
|
},
|
|
617
654
|
};
|
|
@@ -695,6 +732,152 @@ exports.getSummaryStaticFieldsResponse_Field = {
|
|
|
695
732
|
return message;
|
|
696
733
|
},
|
|
697
734
|
};
|
|
735
|
+
function createBasegetSummaryStaticFieldsResponse_CreditSection() {
|
|
736
|
+
return { title: "", description: "" };
|
|
737
|
+
}
|
|
738
|
+
exports.getSummaryStaticFieldsResponse_CreditSection = {
|
|
739
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
740
|
+
if (message.title !== "") {
|
|
741
|
+
writer.uint32(10).string(message.title);
|
|
742
|
+
}
|
|
743
|
+
if (message.description !== "") {
|
|
744
|
+
writer.uint32(18).string(message.description);
|
|
745
|
+
}
|
|
746
|
+
return writer;
|
|
747
|
+
},
|
|
748
|
+
decode(input, length) {
|
|
749
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
750
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
751
|
+
const message = createBasegetSummaryStaticFieldsResponse_CreditSection();
|
|
752
|
+
while (reader.pos < end) {
|
|
753
|
+
const tag = reader.uint32();
|
|
754
|
+
switch (tag >>> 3) {
|
|
755
|
+
case 1:
|
|
756
|
+
if (tag !== 10) {
|
|
757
|
+
break;
|
|
758
|
+
}
|
|
759
|
+
message.title = reader.string();
|
|
760
|
+
continue;
|
|
761
|
+
case 2:
|
|
762
|
+
if (tag !== 18) {
|
|
763
|
+
break;
|
|
764
|
+
}
|
|
765
|
+
message.description = reader.string();
|
|
766
|
+
continue;
|
|
767
|
+
}
|
|
768
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
769
|
+
break;
|
|
770
|
+
}
|
|
771
|
+
reader.skipType(tag & 7);
|
|
772
|
+
}
|
|
773
|
+
return message;
|
|
774
|
+
},
|
|
775
|
+
fromJSON(object) {
|
|
776
|
+
return {
|
|
777
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
778
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
779
|
+
};
|
|
780
|
+
},
|
|
781
|
+
toJSON(message) {
|
|
782
|
+
const obj = {};
|
|
783
|
+
if (message.title !== "") {
|
|
784
|
+
obj.title = message.title;
|
|
785
|
+
}
|
|
786
|
+
if (message.description !== "") {
|
|
787
|
+
obj.description = message.description;
|
|
788
|
+
}
|
|
789
|
+
return obj;
|
|
790
|
+
},
|
|
791
|
+
create(base) {
|
|
792
|
+
return exports.getSummaryStaticFieldsResponse_CreditSection.fromPartial(base ?? {});
|
|
793
|
+
},
|
|
794
|
+
fromPartial(object) {
|
|
795
|
+
const message = createBasegetSummaryStaticFieldsResponse_CreditSection();
|
|
796
|
+
message.title = object.title ?? "";
|
|
797
|
+
message.description = object.description ?? "";
|
|
798
|
+
return message;
|
|
799
|
+
},
|
|
800
|
+
};
|
|
801
|
+
function createBasegetSummaryStaticFieldsResponse_BrokenPeriod() {
|
|
802
|
+
return { title: "", description: "", amount: 0 };
|
|
803
|
+
}
|
|
804
|
+
exports.getSummaryStaticFieldsResponse_BrokenPeriod = {
|
|
805
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
806
|
+
if (message.title !== "") {
|
|
807
|
+
writer.uint32(10).string(message.title);
|
|
808
|
+
}
|
|
809
|
+
if (message.description !== "") {
|
|
810
|
+
writer.uint32(18).string(message.description);
|
|
811
|
+
}
|
|
812
|
+
if (message.amount !== 0) {
|
|
813
|
+
writer.uint32(24).int32(message.amount);
|
|
814
|
+
}
|
|
815
|
+
return writer;
|
|
816
|
+
},
|
|
817
|
+
decode(input, length) {
|
|
818
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
819
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
820
|
+
const message = createBasegetSummaryStaticFieldsResponse_BrokenPeriod();
|
|
821
|
+
while (reader.pos < end) {
|
|
822
|
+
const tag = reader.uint32();
|
|
823
|
+
switch (tag >>> 3) {
|
|
824
|
+
case 1:
|
|
825
|
+
if (tag !== 10) {
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
message.title = reader.string();
|
|
829
|
+
continue;
|
|
830
|
+
case 2:
|
|
831
|
+
if (tag !== 18) {
|
|
832
|
+
break;
|
|
833
|
+
}
|
|
834
|
+
message.description = reader.string();
|
|
835
|
+
continue;
|
|
836
|
+
case 3:
|
|
837
|
+
if (tag !== 24) {
|
|
838
|
+
break;
|
|
839
|
+
}
|
|
840
|
+
message.amount = reader.int32();
|
|
841
|
+
continue;
|
|
842
|
+
}
|
|
843
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
844
|
+
break;
|
|
845
|
+
}
|
|
846
|
+
reader.skipType(tag & 7);
|
|
847
|
+
}
|
|
848
|
+
return message;
|
|
849
|
+
},
|
|
850
|
+
fromJSON(object) {
|
|
851
|
+
return {
|
|
852
|
+
title: isSet(object.title) ? globalThis.String(object.title) : "",
|
|
853
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
854
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
855
|
+
};
|
|
856
|
+
},
|
|
857
|
+
toJSON(message) {
|
|
858
|
+
const obj = {};
|
|
859
|
+
if (message.title !== "") {
|
|
860
|
+
obj.title = message.title;
|
|
861
|
+
}
|
|
862
|
+
if (message.description !== "") {
|
|
863
|
+
obj.description = message.description;
|
|
864
|
+
}
|
|
865
|
+
if (message.amount !== 0) {
|
|
866
|
+
obj.amount = Math.round(message.amount);
|
|
867
|
+
}
|
|
868
|
+
return obj;
|
|
869
|
+
},
|
|
870
|
+
create(base) {
|
|
871
|
+
return exports.getSummaryStaticFieldsResponse_BrokenPeriod.fromPartial(base ?? {});
|
|
872
|
+
},
|
|
873
|
+
fromPartial(object) {
|
|
874
|
+
const message = createBasegetSummaryStaticFieldsResponse_BrokenPeriod();
|
|
875
|
+
message.title = object.title ?? "";
|
|
876
|
+
message.description = object.description ?? "";
|
|
877
|
+
message.amount = object.amount ?? 0;
|
|
878
|
+
return message;
|
|
879
|
+
},
|
|
880
|
+
};
|
|
698
881
|
function isSet(value) {
|
|
699
882
|
return value !== null && value !== undefined;
|
|
700
883
|
}
|