@stashfin/grpc 1.2.10 → 1.2.12
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/getbankaccountdetails.d.ts +36 -0
- package/ts/customers/getbankaccountdetails.js +134 -0
- package/ts/customers/getdashboard.d.ts +1 -1
- package/ts/customers/getdashboard.js +8 -8
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
- package/ts/loans/updateinstallments.d.ts +7 -3
- package/ts/loans/updateinstallments.js +87 -22
package/package.json
CHANGED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getbankaccountdetails";
|
|
3
|
+
export interface getBankAccountDetailsRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface getBankAccountDetailsResponse {
|
|
6
|
+
account_number: string;
|
|
7
|
+
bank_name: string;
|
|
8
|
+
ifsc_code: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const getBankAccountDetailsRequest: {
|
|
11
|
+
encode(_: getBankAccountDetailsRequest, writer?: _m0.Writer): _m0.Writer;
|
|
12
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getBankAccountDetailsRequest;
|
|
13
|
+
fromJSON(_: any): getBankAccountDetailsRequest;
|
|
14
|
+
toJSON(_: getBankAccountDetailsRequest): unknown;
|
|
15
|
+
create<I extends Exact<DeepPartial<getBankAccountDetailsRequest>, I>>(base?: I): getBankAccountDetailsRequest;
|
|
16
|
+
fromPartial<I extends Exact<DeepPartial<getBankAccountDetailsRequest>, I>>(_: I): getBankAccountDetailsRequest;
|
|
17
|
+
};
|
|
18
|
+
export declare const getBankAccountDetailsResponse: {
|
|
19
|
+
encode(message: getBankAccountDetailsResponse, writer?: _m0.Writer): _m0.Writer;
|
|
20
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getBankAccountDetailsResponse;
|
|
21
|
+
fromJSON(object: any): getBankAccountDetailsResponse;
|
|
22
|
+
toJSON(message: getBankAccountDetailsResponse): unknown;
|
|
23
|
+
create<I extends Exact<DeepPartial<getBankAccountDetailsResponse>, I>>(base?: I): getBankAccountDetailsResponse;
|
|
24
|
+
fromPartial<I extends Exact<DeepPartial<getBankAccountDetailsResponse>, I>>(object: I): getBankAccountDetailsResponse;
|
|
25
|
+
};
|
|
26
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
27
|
+
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 {} ? {
|
|
28
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
29
|
+
} : Partial<T>;
|
|
30
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
31
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
32
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
33
|
+
} & {
|
|
34
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
35
|
+
};
|
|
36
|
+
export {};
|
|
@@ -0,0 +1,134 @@
|
|
|
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: customers/getbankaccountdetails.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.getBankAccountDetailsResponse = exports.getBankAccountDetailsRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getbankaccountdetails";
|
|
15
|
+
function createBasegetBankAccountDetailsRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.getBankAccountDetailsRequest = {
|
|
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 = createBasegetBankAccountDetailsRequest();
|
|
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.getBankAccountDetailsRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasegetBankAccountDetailsRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasegetBankAccountDetailsResponse() {
|
|
53
|
+
return { account_number: "", bank_name: "", ifsc_code: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.getBankAccountDetailsResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.account_number !== "") {
|
|
58
|
+
writer.uint32(10).string(message.account_number);
|
|
59
|
+
}
|
|
60
|
+
if (message.bank_name !== "") {
|
|
61
|
+
writer.uint32(18).string(message.bank_name);
|
|
62
|
+
}
|
|
63
|
+
if (message.ifsc_code !== "") {
|
|
64
|
+
writer.uint32(26).string(message.ifsc_code);
|
|
65
|
+
}
|
|
66
|
+
return writer;
|
|
67
|
+
},
|
|
68
|
+
decode(input, length) {
|
|
69
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
70
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
71
|
+
const message = createBasegetBankAccountDetailsResponse();
|
|
72
|
+
while (reader.pos < end) {
|
|
73
|
+
const tag = reader.uint32();
|
|
74
|
+
switch (tag >>> 3) {
|
|
75
|
+
case 1:
|
|
76
|
+
if (tag !== 10) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
message.account_number = reader.string();
|
|
80
|
+
continue;
|
|
81
|
+
case 2:
|
|
82
|
+
if (tag !== 18) {
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
message.bank_name = reader.string();
|
|
86
|
+
continue;
|
|
87
|
+
case 3:
|
|
88
|
+
if (tag !== 26) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.ifsc_code = reader.string();
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
reader.skipType(tag & 7);
|
|
98
|
+
}
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
fromJSON(object) {
|
|
102
|
+
return {
|
|
103
|
+
account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
|
|
104
|
+
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : "",
|
|
105
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
|
|
106
|
+
};
|
|
107
|
+
},
|
|
108
|
+
toJSON(message) {
|
|
109
|
+
const obj = {};
|
|
110
|
+
if (message.account_number !== "") {
|
|
111
|
+
obj.account_number = message.account_number;
|
|
112
|
+
}
|
|
113
|
+
if (message.bank_name !== "") {
|
|
114
|
+
obj.bank_name = message.bank_name;
|
|
115
|
+
}
|
|
116
|
+
if (message.ifsc_code !== "") {
|
|
117
|
+
obj.ifsc_code = message.ifsc_code;
|
|
118
|
+
}
|
|
119
|
+
return obj;
|
|
120
|
+
},
|
|
121
|
+
create(base) {
|
|
122
|
+
return exports.getBankAccountDetailsResponse.fromPartial(base ?? {});
|
|
123
|
+
},
|
|
124
|
+
fromPartial(object) {
|
|
125
|
+
const message = createBasegetBankAccountDetailsResponse();
|
|
126
|
+
message.account_number = object.account_number ?? "";
|
|
127
|
+
message.bank_name = object.bank_name ?? "";
|
|
128
|
+
message.ifsc_code = object.ifsc_code ?? "";
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
function isSet(value) {
|
|
133
|
+
return value !== null && value !== undefined;
|
|
134
|
+
}
|
|
@@ -254,7 +254,7 @@ function createBaseBlockData() {
|
|
|
254
254
|
action_type: "",
|
|
255
255
|
color1: "",
|
|
256
256
|
color2: "",
|
|
257
|
-
image_trailing:
|
|
257
|
+
image_trailing: "",
|
|
258
258
|
tag: undefined,
|
|
259
259
|
overlay_image: "",
|
|
260
260
|
};
|
|
@@ -300,8 +300,8 @@ exports.BlockData = {
|
|
|
300
300
|
if (message.color2 !== "") {
|
|
301
301
|
writer.uint32(106).string(message.color2);
|
|
302
302
|
}
|
|
303
|
-
if (message.image_trailing !==
|
|
304
|
-
writer.uint32(
|
|
303
|
+
if (message.image_trailing !== "") {
|
|
304
|
+
writer.uint32(114).string(message.image_trailing);
|
|
305
305
|
}
|
|
306
306
|
if (message.tag !== undefined) {
|
|
307
307
|
exports.Tag.encode(message.tag, writer.uint32(122).fork()).ldelim();
|
|
@@ -397,10 +397,10 @@ exports.BlockData = {
|
|
|
397
397
|
message.color2 = reader.string();
|
|
398
398
|
continue;
|
|
399
399
|
case 14:
|
|
400
|
-
if (tag !==
|
|
400
|
+
if (tag !== 114) {
|
|
401
401
|
break;
|
|
402
402
|
}
|
|
403
|
-
message.image_trailing = reader.
|
|
403
|
+
message.image_trailing = reader.string();
|
|
404
404
|
continue;
|
|
405
405
|
case 15:
|
|
406
406
|
if (tag !== 122) {
|
|
@@ -437,7 +437,7 @@ exports.BlockData = {
|
|
|
437
437
|
action_type: isSet(object.action_type) ? globalThis.String(object.action_type) : "",
|
|
438
438
|
color1: isSet(object.color1) ? globalThis.String(object.color1) : "",
|
|
439
439
|
color2: isSet(object.color2) ? globalThis.String(object.color2) : "",
|
|
440
|
-
image_trailing: isSet(object.image_trailing) ? globalThis.
|
|
440
|
+
image_trailing: isSet(object.image_trailing) ? globalThis.String(object.image_trailing) : "",
|
|
441
441
|
tag: isSet(object.tag) ? exports.Tag.fromJSON(object.tag) : undefined,
|
|
442
442
|
overlay_image: isSet(object.overlay_image) ? globalThis.String(object.overlay_image) : "",
|
|
443
443
|
};
|
|
@@ -483,7 +483,7 @@ exports.BlockData = {
|
|
|
483
483
|
if (message.color2 !== "") {
|
|
484
484
|
obj.color2 = message.color2;
|
|
485
485
|
}
|
|
486
|
-
if (message.image_trailing !==
|
|
486
|
+
if (message.image_trailing !== "") {
|
|
487
487
|
obj.image_trailing = message.image_trailing;
|
|
488
488
|
}
|
|
489
489
|
if (message.tag !== undefined) {
|
|
@@ -512,7 +512,7 @@ exports.BlockData = {
|
|
|
512
512
|
message.action_type = object.action_type ?? "";
|
|
513
513
|
message.color1 = object.color1 ?? "";
|
|
514
514
|
message.color2 = object.color2 ?? "";
|
|
515
|
-
message.image_trailing = object.image_trailing ??
|
|
515
|
+
message.image_trailing = object.image_trailing ?? "";
|
|
516
516
|
message.tag = (object.tag !== undefined && object.tag !== null) ? exports.Tag.fromPartial(object.tag) : undefined;
|
|
517
517
|
message.overlay_image = object.overlay_image ?? "";
|
|
518
518
|
return message;
|
package/ts/customers.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
|
|
2
3
|
import { getCustomerByIdRequest, getCustomerByIdResponse } from "./customers/getcustomerbyid";
|
|
3
4
|
import { getDashboardRequest, getDashboardResponse } from "./customers/getdashboard";
|
|
4
5
|
import { getDashboardMainCardRequest, getDashboardMainCardResponse } from "./customers/getdashboardmaincard";
|
|
@@ -238,6 +239,15 @@ export declare const customersService: {
|
|
|
238
239
|
readonly responseSerialize: (value: getDashboardMainCardResponse) => Buffer;
|
|
239
240
|
readonly responseDeserialize: (value: Buffer) => getDashboardMainCardResponse;
|
|
240
241
|
};
|
|
242
|
+
readonly getBankAccountDetails: {
|
|
243
|
+
readonly path: "/service.customers/getBankAccountDetails";
|
|
244
|
+
readonly requestStream: false;
|
|
245
|
+
readonly responseStream: false;
|
|
246
|
+
readonly requestSerialize: (value: getBankAccountDetailsRequest) => Buffer;
|
|
247
|
+
readonly requestDeserialize: (value: Buffer) => getBankAccountDetailsRequest;
|
|
248
|
+
readonly responseSerialize: (value: getBankAccountDetailsResponse) => Buffer;
|
|
249
|
+
readonly responseDeserialize: (value: Buffer) => getBankAccountDetailsResponse;
|
|
250
|
+
};
|
|
241
251
|
};
|
|
242
252
|
export interface customersServer extends UntypedServiceImplementation {
|
|
243
253
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -264,6 +274,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
264
274
|
getCustomerById: handleUnaryCall<getCustomerByIdRequest, getCustomerByIdResponse>;
|
|
265
275
|
getDashboard: handleUnaryCall<getDashboardRequest, getDashboardResponse>;
|
|
266
276
|
getDashboardMainCard: handleUnaryCall<getDashboardMainCardRequest, getDashboardMainCardResponse>;
|
|
277
|
+
getBankAccountDetails: handleUnaryCall<getBankAccountDetailsRequest, getBankAccountDetailsResponse>;
|
|
267
278
|
}
|
|
268
279
|
export interface customersClient extends Client {
|
|
269
280
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -338,6 +349,9 @@ export interface customersClient extends Client {
|
|
|
338
349
|
getDashboardMainCard(request: getDashboardMainCardRequest, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
|
|
339
350
|
getDashboardMainCard(request: getDashboardMainCardRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
|
|
340
351
|
getDashboardMainCard(request: getDashboardMainCardRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getDashboardMainCardResponse) => void): ClientUnaryCall;
|
|
352
|
+
getBankAccountDetails(request: getBankAccountDetailsRequest, callback: (error: ServiceError | null, response: getBankAccountDetailsResponse) => void): ClientUnaryCall;
|
|
353
|
+
getBankAccountDetails(request: getBankAccountDetailsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getBankAccountDetailsResponse) => void): ClientUnaryCall;
|
|
354
|
+
getBankAccountDetails(request: getBankAccountDetailsRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getBankAccountDetailsResponse) => void): ClientUnaryCall;
|
|
341
355
|
}
|
|
342
356
|
export declare const customersClient: {
|
|
343
357
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
8
8
|
exports.customersClient = exports.customersService = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
|
+
const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
|
|
11
12
|
const getcustomerbyid_1 = require("./customers/getcustomerbyid");
|
|
12
13
|
const getdashboard_1 = require("./customers/getdashboard");
|
|
13
14
|
const getdashboardmaincard_1 = require("./customers/getdashboardmaincard");
|
|
@@ -246,5 +247,14 @@ exports.customersService = {
|
|
|
246
247
|
responseSerialize: (value) => Buffer.from(getdashboardmaincard_1.getDashboardMainCardResponse.encode(value).finish()),
|
|
247
248
|
responseDeserialize: (value) => getdashboardmaincard_1.getDashboardMainCardResponse.decode(value),
|
|
248
249
|
},
|
|
250
|
+
getBankAccountDetails: {
|
|
251
|
+
path: "/service.customers/getBankAccountDetails",
|
|
252
|
+
requestStream: false,
|
|
253
|
+
responseStream: false,
|
|
254
|
+
requestSerialize: (value) => Buffer.from(getbankaccountdetails_1.getBankAccountDetailsRequest.encode(value).finish()),
|
|
255
|
+
requestDeserialize: (value) => getbankaccountdetails_1.getBankAccountDetailsRequest.decode(value),
|
|
256
|
+
responseSerialize: (value) => Buffer.from(getbankaccountdetails_1.getBankAccountDetailsResponse.encode(value).finish()),
|
|
257
|
+
responseDeserialize: (value) => getbankaccountdetails_1.getBankAccountDetailsResponse.decode(value),
|
|
258
|
+
},
|
|
249
259
|
};
|
|
250
260
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -2,9 +2,13 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "loans.updateinstallments";
|
|
3
3
|
export interface updateInstallmentsRequest {
|
|
4
4
|
installment_id: number;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
principal: number;
|
|
6
|
+
interest: number;
|
|
7
|
+
penalty: number;
|
|
8
|
+
r_pif_principal: number;
|
|
9
|
+
r_pif_interest: number;
|
|
10
|
+
r_pif_penalty: number;
|
|
11
|
+
amount: number;
|
|
8
12
|
}
|
|
9
13
|
export interface updateInstallmentsResponse {
|
|
10
14
|
id: number;
|
|
@@ -13,21 +13,42 @@ exports.updateInstallmentsResponse = exports.updateInstallmentsRequest = exports
|
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
14
|
exports.protobufPackage = "loans.updateinstallments";
|
|
15
15
|
function createBaseupdateInstallmentsRequest() {
|
|
16
|
-
return {
|
|
16
|
+
return {
|
|
17
|
+
installment_id: 0,
|
|
18
|
+
principal: 0,
|
|
19
|
+
interest: 0,
|
|
20
|
+
penalty: 0,
|
|
21
|
+
r_pif_principal: 0,
|
|
22
|
+
r_pif_interest: 0,
|
|
23
|
+
r_pif_penalty: 0,
|
|
24
|
+
amount: 0,
|
|
25
|
+
};
|
|
17
26
|
}
|
|
18
27
|
exports.updateInstallmentsRequest = {
|
|
19
28
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
29
|
if (message.installment_id !== 0) {
|
|
21
30
|
writer.uint32(8).int32(message.installment_id);
|
|
22
31
|
}
|
|
23
|
-
if (message.
|
|
24
|
-
writer.uint32(16).int32(message.
|
|
32
|
+
if (message.principal !== 0) {
|
|
33
|
+
writer.uint32(16).int32(message.principal);
|
|
25
34
|
}
|
|
26
|
-
if (message.
|
|
27
|
-
writer.uint32(24).int32(message.
|
|
35
|
+
if (message.interest !== 0) {
|
|
36
|
+
writer.uint32(24).int32(message.interest);
|
|
28
37
|
}
|
|
29
|
-
if (message.
|
|
30
|
-
writer.uint32(32).int32(message.
|
|
38
|
+
if (message.penalty !== 0) {
|
|
39
|
+
writer.uint32(32).int32(message.penalty);
|
|
40
|
+
}
|
|
41
|
+
if (message.r_pif_principal !== 0) {
|
|
42
|
+
writer.uint32(40).int32(message.r_pif_principal);
|
|
43
|
+
}
|
|
44
|
+
if (message.r_pif_interest !== 0) {
|
|
45
|
+
writer.uint32(48).int32(message.r_pif_interest);
|
|
46
|
+
}
|
|
47
|
+
if (message.r_pif_penalty !== 0) {
|
|
48
|
+
writer.uint32(56).int32(message.r_pif_penalty);
|
|
49
|
+
}
|
|
50
|
+
if (message.amount !== 0) {
|
|
51
|
+
writer.uint32(64).int32(message.amount);
|
|
31
52
|
}
|
|
32
53
|
return writer;
|
|
33
54
|
},
|
|
@@ -48,19 +69,43 @@ exports.updateInstallmentsRequest = {
|
|
|
48
69
|
if (tag !== 16) {
|
|
49
70
|
break;
|
|
50
71
|
}
|
|
51
|
-
message.
|
|
72
|
+
message.principal = reader.int32();
|
|
52
73
|
continue;
|
|
53
74
|
case 3:
|
|
54
75
|
if (tag !== 24) {
|
|
55
76
|
break;
|
|
56
77
|
}
|
|
57
|
-
message.
|
|
78
|
+
message.interest = reader.int32();
|
|
58
79
|
continue;
|
|
59
80
|
case 4:
|
|
60
81
|
if (tag !== 32) {
|
|
61
82
|
break;
|
|
62
83
|
}
|
|
63
|
-
message.
|
|
84
|
+
message.penalty = reader.int32();
|
|
85
|
+
continue;
|
|
86
|
+
case 5:
|
|
87
|
+
if (tag !== 40) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.r_pif_principal = reader.int32();
|
|
91
|
+
continue;
|
|
92
|
+
case 6:
|
|
93
|
+
if (tag !== 48) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
message.r_pif_interest = reader.int32();
|
|
97
|
+
continue;
|
|
98
|
+
case 7:
|
|
99
|
+
if (tag !== 56) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
message.r_pif_penalty = reader.int32();
|
|
103
|
+
continue;
|
|
104
|
+
case 8:
|
|
105
|
+
if (tag !== 64) {
|
|
106
|
+
break;
|
|
107
|
+
}
|
|
108
|
+
message.amount = reader.int32();
|
|
64
109
|
continue;
|
|
65
110
|
}
|
|
66
111
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -73,9 +118,13 @@ exports.updateInstallmentsRequest = {
|
|
|
73
118
|
fromJSON(object) {
|
|
74
119
|
return {
|
|
75
120
|
installment_id: isSet(object.installment_id) ? globalThis.Number(object.installment_id) : 0,
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
121
|
+
principal: isSet(object.principal) ? globalThis.Number(object.principal) : 0,
|
|
122
|
+
interest: isSet(object.interest) ? globalThis.Number(object.interest) : 0,
|
|
123
|
+
penalty: isSet(object.penalty) ? globalThis.Number(object.penalty) : 0,
|
|
124
|
+
r_pif_principal: isSet(object.r_pif_principal) ? globalThis.Number(object.r_pif_principal) : 0,
|
|
125
|
+
r_pif_interest: isSet(object.r_pif_interest) ? globalThis.Number(object.r_pif_interest) : 0,
|
|
126
|
+
r_pif_penalty: isSet(object.r_pif_penalty) ? globalThis.Number(object.r_pif_penalty) : 0,
|
|
127
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
79
128
|
};
|
|
80
129
|
},
|
|
81
130
|
toJSON(message) {
|
|
@@ -83,14 +132,26 @@ exports.updateInstallmentsRequest = {
|
|
|
83
132
|
if (message.installment_id !== 0) {
|
|
84
133
|
obj.installment_id = Math.round(message.installment_id);
|
|
85
134
|
}
|
|
86
|
-
if (message.
|
|
87
|
-
obj.
|
|
135
|
+
if (message.principal !== 0) {
|
|
136
|
+
obj.principal = Math.round(message.principal);
|
|
137
|
+
}
|
|
138
|
+
if (message.interest !== 0) {
|
|
139
|
+
obj.interest = Math.round(message.interest);
|
|
140
|
+
}
|
|
141
|
+
if (message.penalty !== 0) {
|
|
142
|
+
obj.penalty = Math.round(message.penalty);
|
|
143
|
+
}
|
|
144
|
+
if (message.r_pif_principal !== 0) {
|
|
145
|
+
obj.r_pif_principal = Math.round(message.r_pif_principal);
|
|
146
|
+
}
|
|
147
|
+
if (message.r_pif_interest !== 0) {
|
|
148
|
+
obj.r_pif_interest = Math.round(message.r_pif_interest);
|
|
88
149
|
}
|
|
89
|
-
if (message.
|
|
90
|
-
obj.
|
|
150
|
+
if (message.r_pif_penalty !== 0) {
|
|
151
|
+
obj.r_pif_penalty = Math.round(message.r_pif_penalty);
|
|
91
152
|
}
|
|
92
|
-
if (message.
|
|
93
|
-
obj.
|
|
153
|
+
if (message.amount !== 0) {
|
|
154
|
+
obj.amount = Math.round(message.amount);
|
|
94
155
|
}
|
|
95
156
|
return obj;
|
|
96
157
|
},
|
|
@@ -100,9 +161,13 @@ exports.updateInstallmentsRequest = {
|
|
|
100
161
|
fromPartial(object) {
|
|
101
162
|
const message = createBaseupdateInstallmentsRequest();
|
|
102
163
|
message.installment_id = object.installment_id ?? 0;
|
|
103
|
-
message.
|
|
104
|
-
message.
|
|
105
|
-
message.
|
|
164
|
+
message.principal = object.principal ?? 0;
|
|
165
|
+
message.interest = object.interest ?? 0;
|
|
166
|
+
message.penalty = object.penalty ?? 0;
|
|
167
|
+
message.r_pif_principal = object.r_pif_principal ?? 0;
|
|
168
|
+
message.r_pif_interest = object.r_pif_interest ?? 0;
|
|
169
|
+
message.r_pif_penalty = object.r_pif_penalty ?? 0;
|
|
170
|
+
message.amount = object.amount ?? 0;
|
|
106
171
|
return message;
|
|
107
172
|
},
|
|
108
173
|
};
|