@stashfin/grpc 1.2.370 → 1.2.372
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/cb/updatecbstandalonecancellation.d.ts +34 -0
- package/ts/customers/cb/updatecbstandalonecancellation.js +104 -0
- package/ts/customers/cb/updatecbstandaloneconfirmation.d.ts +34 -0
- package/ts/customers/cb/updatecbstandaloneconfirmation.js +104 -0
- package/ts/customers.d.ts +28 -0
- package/ts/customers.js +20 -0
- package/ts/loans/createpenalty.d.ts +42 -0
- package/ts/loans/createpenalty.js +219 -0
- package/ts/loans/updatecollectionview.d.ts +10 -8
- package/ts/loans/updatecollectionview.js +75 -44
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.cb.updatecbstandalonecancellation";
|
|
3
|
+
export interface updateCbStandAloneCancellationRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface updateCbStandAloneCancellationResponse {
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const updateCbStandAloneCancellationRequest: {
|
|
9
|
+
encode(_: updateCbStandAloneCancellationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCbStandAloneCancellationRequest;
|
|
11
|
+
fromJSON(_: any): updateCbStandAloneCancellationRequest;
|
|
12
|
+
toJSON(_: updateCbStandAloneCancellationRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<updateCbStandAloneCancellationRequest>, I>>(base?: I): updateCbStandAloneCancellationRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<updateCbStandAloneCancellationRequest>, I>>(_: I): updateCbStandAloneCancellationRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const updateCbStandAloneCancellationResponse: {
|
|
17
|
+
encode(message: updateCbStandAloneCancellationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCbStandAloneCancellationResponse;
|
|
19
|
+
fromJSON(object: any): updateCbStandAloneCancellationResponse;
|
|
20
|
+
toJSON(message: updateCbStandAloneCancellationResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<updateCbStandAloneCancellationResponse>, I>>(base?: I): updateCbStandAloneCancellationResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<updateCbStandAloneCancellationResponse>, I>>(object: I): updateCbStandAloneCancellationResponse;
|
|
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/cb/updatecbstandalonecancellation.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.updateCbStandAloneCancellationResponse = exports.updateCbStandAloneCancellationRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.cb.updatecbstandalonecancellation";
|
|
15
|
+
function createBaseupdateCbStandAloneCancellationRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.updateCbStandAloneCancellationRequest = {
|
|
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 = createBaseupdateCbStandAloneCancellationRequest();
|
|
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.updateCbStandAloneCancellationRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaseupdateCbStandAloneCancellationRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseupdateCbStandAloneCancellationResponse() {
|
|
53
|
+
return { status: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.updateCbStandAloneCancellationResponse = {
|
|
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 = createBaseupdateCbStandAloneCancellationResponse();
|
|
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.updateCbStandAloneCancellationResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBaseupdateCbStandAloneCancellationResponse();
|
|
98
|
+
message.status = object.status ?? "";
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.cb.updatecbstandaloneconfirmation";
|
|
3
|
+
export interface updateCbStandAloneConfirmationRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface updateCbStandAloneConfirmationResponse {
|
|
6
|
+
status: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const updateCbStandAloneConfirmationRequest: {
|
|
9
|
+
encode(_: updateCbStandAloneConfirmationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCbStandAloneConfirmationRequest;
|
|
11
|
+
fromJSON(_: any): updateCbStandAloneConfirmationRequest;
|
|
12
|
+
toJSON(_: updateCbStandAloneConfirmationRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<updateCbStandAloneConfirmationRequest>, I>>(base?: I): updateCbStandAloneConfirmationRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<updateCbStandAloneConfirmationRequest>, I>>(_: I): updateCbStandAloneConfirmationRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const updateCbStandAloneConfirmationResponse: {
|
|
17
|
+
encode(message: updateCbStandAloneConfirmationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): updateCbStandAloneConfirmationResponse;
|
|
19
|
+
fromJSON(object: any): updateCbStandAloneConfirmationResponse;
|
|
20
|
+
toJSON(message: updateCbStandAloneConfirmationResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<updateCbStandAloneConfirmationResponse>, I>>(base?: I): updateCbStandAloneConfirmationResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<updateCbStandAloneConfirmationResponse>, I>>(object: I): updateCbStandAloneConfirmationResponse;
|
|
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/cb/updatecbstandaloneconfirmation.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.updateCbStandAloneConfirmationResponse = exports.updateCbStandAloneConfirmationRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.cb.updatecbstandaloneconfirmation";
|
|
15
|
+
function createBaseupdateCbStandAloneConfirmationRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.updateCbStandAloneConfirmationRequest = {
|
|
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 = createBaseupdateCbStandAloneConfirmationRequest();
|
|
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.updateCbStandAloneConfirmationRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBaseupdateCbStandAloneConfirmationRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBaseupdateCbStandAloneConfirmationResponse() {
|
|
53
|
+
return { status: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.updateCbStandAloneConfirmationResponse = {
|
|
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 = createBaseupdateCbStandAloneConfirmationResponse();
|
|
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.updateCbStandAloneConfirmationResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBaseupdateCbStandAloneConfirmationResponse();
|
|
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
|
@@ -22,6 +22,8 @@ import { insuranceDetailsRequest, insuranceDetailsResponse } from "./customers/c
|
|
|
22
22
|
import { lessCsImproveRequest, lessCsImproveResponse } from "./customers/cb/lesscsimprove";
|
|
23
23
|
import { moreCsImproveRequest, moreCsImproveResponse } from "./customers/cb/morecsimprove";
|
|
24
24
|
import { saveCreditBuilderRequest, saveCreditBuilderResponse } from "./customers/cb/savecreditbuilder";
|
|
25
|
+
import { updateCbStandAloneCancellationRequest, updateCbStandAloneCancellationResponse } from "./customers/cb/updatecbstandalonecancellation";
|
|
26
|
+
import { updateCbStandAloneConfirmationRequest, updateCbStandAloneConfirmationResponse } from "./customers/cb/updatecbstandaloneconfirmation";
|
|
25
27
|
import { updateCbStandAloneJourneyRequest, updateCbStandAloneJourneyResponse } from "./customers/cb/updatecbstandalonejourney";
|
|
26
28
|
import { updateCBTxnStatusRequest, updateCBTxnStatusResponse } from "./customers/cb/updatecbtxnstatus";
|
|
27
29
|
import { changeMpinRequest, changeMpinResponse } from "./customers/changempin";
|
|
@@ -1069,6 +1071,24 @@ export declare const customersService: {
|
|
|
1069
1071
|
readonly responseSerialize: (value: getPocketPersonalAccidentProtectionPlanResponse) => Buffer;
|
|
1070
1072
|
readonly responseDeserialize: (value: Buffer) => getPocketPersonalAccidentProtectionPlanResponse;
|
|
1071
1073
|
};
|
|
1074
|
+
readonly updateCbStandAloneConfirmation: {
|
|
1075
|
+
readonly path: "/service.customers/updateCbStandAloneConfirmation";
|
|
1076
|
+
readonly requestStream: false;
|
|
1077
|
+
readonly responseStream: false;
|
|
1078
|
+
readonly requestSerialize: (value: updateCbStandAloneConfirmationRequest) => Buffer;
|
|
1079
|
+
readonly requestDeserialize: (value: Buffer) => updateCbStandAloneConfirmationRequest;
|
|
1080
|
+
readonly responseSerialize: (value: updateCbStandAloneConfirmationResponse) => Buffer;
|
|
1081
|
+
readonly responseDeserialize: (value: Buffer) => updateCbStandAloneConfirmationResponse;
|
|
1082
|
+
};
|
|
1083
|
+
readonly updateCbStandAloneCancellation: {
|
|
1084
|
+
readonly path: "/service.customers/updateCbStandAloneCancellation";
|
|
1085
|
+
readonly requestStream: false;
|
|
1086
|
+
readonly responseStream: false;
|
|
1087
|
+
readonly requestSerialize: (value: updateCbStandAloneCancellationRequest) => Buffer;
|
|
1088
|
+
readonly requestDeserialize: (value: Buffer) => updateCbStandAloneCancellationRequest;
|
|
1089
|
+
readonly responseSerialize: (value: updateCbStandAloneCancellationResponse) => Buffer;
|
|
1090
|
+
readonly responseDeserialize: (value: Buffer) => updateCbStandAloneCancellationResponse;
|
|
1091
|
+
};
|
|
1072
1092
|
};
|
|
1073
1093
|
export interface customersServer extends UntypedServiceImplementation {
|
|
1074
1094
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -1178,6 +1198,8 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1178
1198
|
applyCliJourney: handleUnaryCall<applyCliJourneyRequest, applyCliJourneyResponse>;
|
|
1179
1199
|
restoreAccount: handleUnaryCall<restoreAccountRequest, restoreAccountResponse>;
|
|
1180
1200
|
getPocketPersonalAccidentProtectionPlan: handleUnaryCall<getPocketPersonalAccidentProtectionPlanRequest, getPocketPersonalAccidentProtectionPlanResponse>;
|
|
1201
|
+
updateCbStandAloneConfirmation: handleUnaryCall<updateCbStandAloneConfirmationRequest, updateCbStandAloneConfirmationResponse>;
|
|
1202
|
+
updateCbStandAloneCancellation: handleUnaryCall<updateCbStandAloneCancellationRequest, updateCbStandAloneCancellationResponse>;
|
|
1181
1203
|
}
|
|
1182
1204
|
export interface customersClient extends Client {
|
|
1183
1205
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1501,6 +1523,12 @@ export interface customersClient extends Client {
|
|
|
1501
1523
|
getPocketPersonalAccidentProtectionPlan(request: getPocketPersonalAccidentProtectionPlanRequest, callback: (error: ServiceError | null, response: getPocketPersonalAccidentProtectionPlanResponse) => void): ClientUnaryCall;
|
|
1502
1524
|
getPocketPersonalAccidentProtectionPlan(request: getPocketPersonalAccidentProtectionPlanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getPocketPersonalAccidentProtectionPlanResponse) => void): ClientUnaryCall;
|
|
1503
1525
|
getPocketPersonalAccidentProtectionPlan(request: getPocketPersonalAccidentProtectionPlanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getPocketPersonalAccidentProtectionPlanResponse) => void): ClientUnaryCall;
|
|
1526
|
+
updateCbStandAloneConfirmation(request: updateCbStandAloneConfirmationRequest, callback: (error: ServiceError | null, response: updateCbStandAloneConfirmationResponse) => void): ClientUnaryCall;
|
|
1527
|
+
updateCbStandAloneConfirmation(request: updateCbStandAloneConfirmationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCbStandAloneConfirmationResponse) => void): ClientUnaryCall;
|
|
1528
|
+
updateCbStandAloneConfirmation(request: updateCbStandAloneConfirmationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCbStandAloneConfirmationResponse) => void): ClientUnaryCall;
|
|
1529
|
+
updateCbStandAloneCancellation(request: updateCbStandAloneCancellationRequest, callback: (error: ServiceError | null, response: updateCbStandAloneCancellationResponse) => void): ClientUnaryCall;
|
|
1530
|
+
updateCbStandAloneCancellation(request: updateCbStandAloneCancellationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCbStandAloneCancellationResponse) => void): ClientUnaryCall;
|
|
1531
|
+
updateCbStandAloneCancellation(request: updateCbStandAloneCancellationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCbStandAloneCancellationResponse) => void): ClientUnaryCall;
|
|
1504
1532
|
}
|
|
1505
1533
|
export declare const customersClient: {
|
|
1506
1534
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -31,6 +31,8 @@ const insurancedetails_1 = require("./customers/cb/insurancedetails");
|
|
|
31
31
|
const lesscsimprove_1 = require("./customers/cb/lesscsimprove");
|
|
32
32
|
const morecsimprove_1 = require("./customers/cb/morecsimprove");
|
|
33
33
|
const savecreditbuilder_1 = require("./customers/cb/savecreditbuilder");
|
|
34
|
+
const updatecbstandalonecancellation_1 = require("./customers/cb/updatecbstandalonecancellation");
|
|
35
|
+
const updatecbstandaloneconfirmation_1 = require("./customers/cb/updatecbstandaloneconfirmation");
|
|
34
36
|
const updatecbstandalonejourney_1 = require("./customers/cb/updatecbstandalonejourney");
|
|
35
37
|
const updatecbtxnstatus_1 = require("./customers/cb/updatecbtxnstatus");
|
|
36
38
|
const changempin_1 = require("./customers/changempin");
|
|
@@ -1077,5 +1079,23 @@ exports.customersService = {
|
|
|
1077
1079
|
responseSerialize: (value) => Buffer.from(accidentprotectionplan_1.getPocketPersonalAccidentProtectionPlanResponse.encode(value).finish()),
|
|
1078
1080
|
responseDeserialize: (value) => accidentprotectionplan_1.getPocketPersonalAccidentProtectionPlanResponse.decode(value),
|
|
1079
1081
|
},
|
|
1082
|
+
updateCbStandAloneConfirmation: {
|
|
1083
|
+
path: "/service.customers/updateCbStandAloneConfirmation",
|
|
1084
|
+
requestStream: false,
|
|
1085
|
+
responseStream: false,
|
|
1086
|
+
requestSerialize: (value) => Buffer.from(updatecbstandaloneconfirmation_1.updateCbStandAloneConfirmationRequest.encode(value).finish()),
|
|
1087
|
+
requestDeserialize: (value) => updatecbstandaloneconfirmation_1.updateCbStandAloneConfirmationRequest.decode(value),
|
|
1088
|
+
responseSerialize: (value) => Buffer.from(updatecbstandaloneconfirmation_1.updateCbStandAloneConfirmationResponse.encode(value).finish()),
|
|
1089
|
+
responseDeserialize: (value) => updatecbstandaloneconfirmation_1.updateCbStandAloneConfirmationResponse.decode(value),
|
|
1090
|
+
},
|
|
1091
|
+
updateCbStandAloneCancellation: {
|
|
1092
|
+
path: "/service.customers/updateCbStandAloneCancellation",
|
|
1093
|
+
requestStream: false,
|
|
1094
|
+
responseStream: false,
|
|
1095
|
+
requestSerialize: (value) => Buffer.from(updatecbstandalonecancellation_1.updateCbStandAloneCancellationRequest.encode(value).finish()),
|
|
1096
|
+
requestDeserialize: (value) => updatecbstandalonecancellation_1.updateCbStandAloneCancellationRequest.decode(value),
|
|
1097
|
+
responseSerialize: (value) => Buffer.from(updatecbstandalonecancellation_1.updateCbStandAloneCancellationResponse.encode(value).finish()),
|
|
1098
|
+
responseDeserialize: (value) => updatecbstandalonecancellation_1.updateCbStandAloneCancellationResponse.decode(value),
|
|
1099
|
+
},
|
|
1080
1100
|
};
|
|
1081
1101
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.createpenalty";
|
|
3
|
+
export interface createPenaltyRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
loan_id?: number | undefined;
|
|
6
|
+
installment_id: number;
|
|
7
|
+
type_id: string;
|
|
8
|
+
amount: number;
|
|
9
|
+
pif_amount: number;
|
|
10
|
+
status: string;
|
|
11
|
+
}
|
|
12
|
+
export interface createPenaltyResponse {
|
|
13
|
+
status: string;
|
|
14
|
+
id: number;
|
|
15
|
+
}
|
|
16
|
+
export declare const createPenaltyRequest: {
|
|
17
|
+
encode(message: createPenaltyRequest, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): createPenaltyRequest;
|
|
19
|
+
fromJSON(object: any): createPenaltyRequest;
|
|
20
|
+
toJSON(message: createPenaltyRequest): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<createPenaltyRequest>, I>>(base?: I): createPenaltyRequest;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<createPenaltyRequest>, I>>(object: I): createPenaltyRequest;
|
|
23
|
+
};
|
|
24
|
+
export declare const createPenaltyResponse: {
|
|
25
|
+
encode(message: createPenaltyResponse, writer?: _m0.Writer): _m0.Writer;
|
|
26
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): createPenaltyResponse;
|
|
27
|
+
fromJSON(object: any): createPenaltyResponse;
|
|
28
|
+
toJSON(message: createPenaltyResponse): unknown;
|
|
29
|
+
create<I extends Exact<DeepPartial<createPenaltyResponse>, I>>(base?: I): createPenaltyResponse;
|
|
30
|
+
fromPartial<I extends Exact<DeepPartial<createPenaltyResponse>, I>>(object: I): createPenaltyResponse;
|
|
31
|
+
};
|
|
32
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
33
|
+
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 {} ? {
|
|
34
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
35
|
+
} : Partial<T>;
|
|
36
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
37
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
38
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
39
|
+
} & {
|
|
40
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
41
|
+
};
|
|
42
|
+
export {};
|
|
@@ -0,0 +1,219 @@
|
|
|
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: loans/createpenalty.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.createPenaltyResponse = exports.createPenaltyRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "loans.createpenalty";
|
|
15
|
+
function createBasecreatePenaltyRequest() {
|
|
16
|
+
return { customer_id: 0, loan_id: undefined, installment_id: 0, type_id: "", amount: 0, pif_amount: 0, status: "" };
|
|
17
|
+
}
|
|
18
|
+
exports.createPenaltyRequest = {
|
|
19
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
if (message.customer_id !== 0) {
|
|
21
|
+
writer.uint32(8).int32(message.customer_id);
|
|
22
|
+
}
|
|
23
|
+
if (message.loan_id !== undefined) {
|
|
24
|
+
writer.uint32(16).int32(message.loan_id);
|
|
25
|
+
}
|
|
26
|
+
if (message.installment_id !== 0) {
|
|
27
|
+
writer.uint32(24).int32(message.installment_id);
|
|
28
|
+
}
|
|
29
|
+
if (message.type_id !== "") {
|
|
30
|
+
writer.uint32(34).string(message.type_id);
|
|
31
|
+
}
|
|
32
|
+
if (message.amount !== 0) {
|
|
33
|
+
writer.uint32(40).int32(message.amount);
|
|
34
|
+
}
|
|
35
|
+
if (message.pif_amount !== 0) {
|
|
36
|
+
writer.uint32(48).int32(message.pif_amount);
|
|
37
|
+
}
|
|
38
|
+
if (message.status !== "") {
|
|
39
|
+
writer.uint32(58).string(message.status);
|
|
40
|
+
}
|
|
41
|
+
return writer;
|
|
42
|
+
},
|
|
43
|
+
decode(input, length) {
|
|
44
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
45
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
46
|
+
const message = createBasecreatePenaltyRequest();
|
|
47
|
+
while (reader.pos < end) {
|
|
48
|
+
const tag = reader.uint32();
|
|
49
|
+
switch (tag >>> 3) {
|
|
50
|
+
case 1:
|
|
51
|
+
if (tag !== 8) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.customer_id = reader.int32();
|
|
55
|
+
continue;
|
|
56
|
+
case 2:
|
|
57
|
+
if (tag !== 16) {
|
|
58
|
+
break;
|
|
59
|
+
}
|
|
60
|
+
message.loan_id = reader.int32();
|
|
61
|
+
continue;
|
|
62
|
+
case 3:
|
|
63
|
+
if (tag !== 24) {
|
|
64
|
+
break;
|
|
65
|
+
}
|
|
66
|
+
message.installment_id = reader.int32();
|
|
67
|
+
continue;
|
|
68
|
+
case 4:
|
|
69
|
+
if (tag !== 34) {
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
message.type_id = reader.string();
|
|
73
|
+
continue;
|
|
74
|
+
case 5:
|
|
75
|
+
if (tag !== 40) {
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
message.amount = reader.int32();
|
|
79
|
+
continue;
|
|
80
|
+
case 6:
|
|
81
|
+
if (tag !== 48) {
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
message.pif_amount = reader.int32();
|
|
85
|
+
continue;
|
|
86
|
+
case 7:
|
|
87
|
+
if (tag !== 58) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.status = reader.string();
|
|
91
|
+
continue;
|
|
92
|
+
}
|
|
93
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
reader.skipType(tag & 7);
|
|
97
|
+
}
|
|
98
|
+
return message;
|
|
99
|
+
},
|
|
100
|
+
fromJSON(object) {
|
|
101
|
+
return {
|
|
102
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
103
|
+
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : undefined,
|
|
104
|
+
installment_id: isSet(object.installment_id) ? globalThis.Number(object.installment_id) : 0,
|
|
105
|
+
type_id: isSet(object.type_id) ? globalThis.String(object.type_id) : "",
|
|
106
|
+
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
107
|
+
pif_amount: isSet(object.pif_amount) ? globalThis.Number(object.pif_amount) : 0,
|
|
108
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
109
|
+
};
|
|
110
|
+
},
|
|
111
|
+
toJSON(message) {
|
|
112
|
+
const obj = {};
|
|
113
|
+
if (message.customer_id !== 0) {
|
|
114
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
115
|
+
}
|
|
116
|
+
if (message.loan_id !== undefined) {
|
|
117
|
+
obj.loan_id = Math.round(message.loan_id);
|
|
118
|
+
}
|
|
119
|
+
if (message.installment_id !== 0) {
|
|
120
|
+
obj.installment_id = Math.round(message.installment_id);
|
|
121
|
+
}
|
|
122
|
+
if (message.type_id !== "") {
|
|
123
|
+
obj.type_id = message.type_id;
|
|
124
|
+
}
|
|
125
|
+
if (message.amount !== 0) {
|
|
126
|
+
obj.amount = Math.round(message.amount);
|
|
127
|
+
}
|
|
128
|
+
if (message.pif_amount !== 0) {
|
|
129
|
+
obj.pif_amount = Math.round(message.pif_amount);
|
|
130
|
+
}
|
|
131
|
+
if (message.status !== "") {
|
|
132
|
+
obj.status = message.status;
|
|
133
|
+
}
|
|
134
|
+
return obj;
|
|
135
|
+
},
|
|
136
|
+
create(base) {
|
|
137
|
+
return exports.createPenaltyRequest.fromPartial(base ?? {});
|
|
138
|
+
},
|
|
139
|
+
fromPartial(object) {
|
|
140
|
+
const message = createBasecreatePenaltyRequest();
|
|
141
|
+
message.customer_id = object.customer_id ?? 0;
|
|
142
|
+
message.loan_id = object.loan_id ?? undefined;
|
|
143
|
+
message.installment_id = object.installment_id ?? 0;
|
|
144
|
+
message.type_id = object.type_id ?? "";
|
|
145
|
+
message.amount = object.amount ?? 0;
|
|
146
|
+
message.pif_amount = object.pif_amount ?? 0;
|
|
147
|
+
message.status = object.status ?? "";
|
|
148
|
+
return message;
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
function createBasecreatePenaltyResponse() {
|
|
152
|
+
return { status: "", id: 0 };
|
|
153
|
+
}
|
|
154
|
+
exports.createPenaltyResponse = {
|
|
155
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
156
|
+
if (message.status !== "") {
|
|
157
|
+
writer.uint32(10).string(message.status);
|
|
158
|
+
}
|
|
159
|
+
if (message.id !== 0) {
|
|
160
|
+
writer.uint32(16).int32(message.id);
|
|
161
|
+
}
|
|
162
|
+
return writer;
|
|
163
|
+
},
|
|
164
|
+
decode(input, length) {
|
|
165
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
166
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
167
|
+
const message = createBasecreatePenaltyResponse();
|
|
168
|
+
while (reader.pos < end) {
|
|
169
|
+
const tag = reader.uint32();
|
|
170
|
+
switch (tag >>> 3) {
|
|
171
|
+
case 1:
|
|
172
|
+
if (tag !== 10) {
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
message.status = reader.string();
|
|
176
|
+
continue;
|
|
177
|
+
case 2:
|
|
178
|
+
if (tag !== 16) {
|
|
179
|
+
break;
|
|
180
|
+
}
|
|
181
|
+
message.id = reader.int32();
|
|
182
|
+
continue;
|
|
183
|
+
}
|
|
184
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
reader.skipType(tag & 7);
|
|
188
|
+
}
|
|
189
|
+
return message;
|
|
190
|
+
},
|
|
191
|
+
fromJSON(object) {
|
|
192
|
+
return {
|
|
193
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
194
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
195
|
+
};
|
|
196
|
+
},
|
|
197
|
+
toJSON(message) {
|
|
198
|
+
const obj = {};
|
|
199
|
+
if (message.status !== "") {
|
|
200
|
+
obj.status = message.status;
|
|
201
|
+
}
|
|
202
|
+
if (message.id !== 0) {
|
|
203
|
+
obj.id = Math.round(message.id);
|
|
204
|
+
}
|
|
205
|
+
return obj;
|
|
206
|
+
},
|
|
207
|
+
create(base) {
|
|
208
|
+
return exports.createPenaltyResponse.fromPartial(base ?? {});
|
|
209
|
+
},
|
|
210
|
+
fromPartial(object) {
|
|
211
|
+
const message = createBasecreatePenaltyResponse();
|
|
212
|
+
message.status = object.status ?? "";
|
|
213
|
+
message.id = object.id ?? 0;
|
|
214
|
+
return message;
|
|
215
|
+
},
|
|
216
|
+
};
|
|
217
|
+
function isSet(value) {
|
|
218
|
+
return value !== null && value !== undefined;
|
|
219
|
+
}
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "loans.updatecollectionview";
|
|
3
3
|
export interface updateCollectionViewRequest {
|
|
4
|
-
status
|
|
5
|
-
bounce_reason
|
|
6
|
-
ptp_date
|
|
7
|
-
agent_name
|
|
8
|
-
fos_agent
|
|
9
|
-
cl_lead_assign_id
|
|
10
|
-
level
|
|
11
|
-
assigned_level
|
|
4
|
+
status?: string | undefined;
|
|
5
|
+
bounce_reason?: string | undefined;
|
|
6
|
+
ptp_date?: string | undefined;
|
|
7
|
+
agent_name?: string | undefined;
|
|
8
|
+
fos_agent?: string | undefined;
|
|
9
|
+
cl_lead_assign_id?: number | undefined;
|
|
10
|
+
level?: number | undefined;
|
|
11
|
+
assigned_level?: number | undefined;
|
|
12
|
+
customer_id: number;
|
|
12
13
|
}
|
|
13
14
|
export interface updateCollectionViewResponse {
|
|
15
|
+
status: string;
|
|
14
16
|
id: number;
|
|
15
17
|
}
|
|
16
18
|
export declare const updateCollectionViewRequest: {
|
|
@@ -14,42 +14,46 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
|
14
14
|
exports.protobufPackage = "loans.updatecollectionview";
|
|
15
15
|
function createBaseupdateCollectionViewRequest() {
|
|
16
16
|
return {
|
|
17
|
-
status:
|
|
18
|
-
bounce_reason:
|
|
19
|
-
ptp_date:
|
|
20
|
-
agent_name:
|
|
21
|
-
fos_agent:
|
|
22
|
-
cl_lead_assign_id:
|
|
23
|
-
level:
|
|
24
|
-
assigned_level:
|
|
17
|
+
status: undefined,
|
|
18
|
+
bounce_reason: undefined,
|
|
19
|
+
ptp_date: undefined,
|
|
20
|
+
agent_name: undefined,
|
|
21
|
+
fos_agent: undefined,
|
|
22
|
+
cl_lead_assign_id: undefined,
|
|
23
|
+
level: undefined,
|
|
24
|
+
assigned_level: undefined,
|
|
25
|
+
customer_id: 0,
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
exports.updateCollectionViewRequest = {
|
|
28
29
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
29
|
-
if (message.status !==
|
|
30
|
+
if (message.status !== undefined) {
|
|
30
31
|
writer.uint32(10).string(message.status);
|
|
31
32
|
}
|
|
32
|
-
if (message.bounce_reason !==
|
|
33
|
+
if (message.bounce_reason !== undefined) {
|
|
33
34
|
writer.uint32(18).string(message.bounce_reason);
|
|
34
35
|
}
|
|
35
|
-
if (message.ptp_date !==
|
|
36
|
+
if (message.ptp_date !== undefined) {
|
|
36
37
|
writer.uint32(26).string(message.ptp_date);
|
|
37
38
|
}
|
|
38
|
-
if (message.agent_name !==
|
|
39
|
+
if (message.agent_name !== undefined) {
|
|
39
40
|
writer.uint32(34).string(message.agent_name);
|
|
40
41
|
}
|
|
41
|
-
if (message.fos_agent !==
|
|
42
|
+
if (message.fos_agent !== undefined) {
|
|
42
43
|
writer.uint32(42).string(message.fos_agent);
|
|
43
44
|
}
|
|
44
|
-
if (message.cl_lead_assign_id !==
|
|
45
|
+
if (message.cl_lead_assign_id !== undefined) {
|
|
45
46
|
writer.uint32(48).int32(message.cl_lead_assign_id);
|
|
46
47
|
}
|
|
47
|
-
if (message.level !==
|
|
48
|
+
if (message.level !== undefined) {
|
|
48
49
|
writer.uint32(56).int32(message.level);
|
|
49
50
|
}
|
|
50
|
-
if (message.assigned_level !==
|
|
51
|
+
if (message.assigned_level !== undefined) {
|
|
51
52
|
writer.uint32(64).int32(message.assigned_level);
|
|
52
53
|
}
|
|
54
|
+
if (message.customer_id !== 0) {
|
|
55
|
+
writer.uint32(72).int32(message.customer_id);
|
|
56
|
+
}
|
|
53
57
|
return writer;
|
|
54
58
|
},
|
|
55
59
|
decode(input, length) {
|
|
@@ -107,6 +111,12 @@ exports.updateCollectionViewRequest = {
|
|
|
107
111
|
}
|
|
108
112
|
message.assigned_level = reader.int32();
|
|
109
113
|
continue;
|
|
114
|
+
case 9:
|
|
115
|
+
if (tag !== 72) {
|
|
116
|
+
break;
|
|
117
|
+
}
|
|
118
|
+
message.customer_id = reader.int32();
|
|
119
|
+
continue;
|
|
110
120
|
}
|
|
111
121
|
if ((tag & 7) === 4 || tag === 0) {
|
|
112
122
|
break;
|
|
@@ -117,42 +127,46 @@ exports.updateCollectionViewRequest = {
|
|
|
117
127
|
},
|
|
118
128
|
fromJSON(object) {
|
|
119
129
|
return {
|
|
120
|
-
status: isSet(object.status) ? globalThis.String(object.status) :
|
|
121
|
-
bounce_reason: isSet(object.bounce_reason) ? globalThis.String(object.bounce_reason) :
|
|
122
|
-
ptp_date: isSet(object.ptp_date) ? globalThis.String(object.ptp_date) :
|
|
123
|
-
agent_name: isSet(object.agent_name) ? globalThis.String(object.agent_name) :
|
|
124
|
-
fos_agent: isSet(object.fos_agent) ? globalThis.String(object.fos_agent) :
|
|
125
|
-
cl_lead_assign_id: isSet(object.cl_lead_assign_id) ? globalThis.Number(object.cl_lead_assign_id) :
|
|
126
|
-
level: isSet(object.level) ? globalThis.Number(object.level) :
|
|
127
|
-
assigned_level: isSet(object.assigned_level) ? globalThis.Number(object.assigned_level) :
|
|
130
|
+
status: isSet(object.status) ? globalThis.String(object.status) : undefined,
|
|
131
|
+
bounce_reason: isSet(object.bounce_reason) ? globalThis.String(object.bounce_reason) : undefined,
|
|
132
|
+
ptp_date: isSet(object.ptp_date) ? globalThis.String(object.ptp_date) : undefined,
|
|
133
|
+
agent_name: isSet(object.agent_name) ? globalThis.String(object.agent_name) : undefined,
|
|
134
|
+
fos_agent: isSet(object.fos_agent) ? globalThis.String(object.fos_agent) : undefined,
|
|
135
|
+
cl_lead_assign_id: isSet(object.cl_lead_assign_id) ? globalThis.Number(object.cl_lead_assign_id) : undefined,
|
|
136
|
+
level: isSet(object.level) ? globalThis.Number(object.level) : undefined,
|
|
137
|
+
assigned_level: isSet(object.assigned_level) ? globalThis.Number(object.assigned_level) : undefined,
|
|
138
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
128
139
|
};
|
|
129
140
|
},
|
|
130
141
|
toJSON(message) {
|
|
131
142
|
const obj = {};
|
|
132
|
-
if (message.status !==
|
|
143
|
+
if (message.status !== undefined) {
|
|
133
144
|
obj.status = message.status;
|
|
134
145
|
}
|
|
135
|
-
if (message.bounce_reason !==
|
|
146
|
+
if (message.bounce_reason !== undefined) {
|
|
136
147
|
obj.bounce_reason = message.bounce_reason;
|
|
137
148
|
}
|
|
138
|
-
if (message.ptp_date !==
|
|
149
|
+
if (message.ptp_date !== undefined) {
|
|
139
150
|
obj.ptp_date = message.ptp_date;
|
|
140
151
|
}
|
|
141
|
-
if (message.agent_name !==
|
|
152
|
+
if (message.agent_name !== undefined) {
|
|
142
153
|
obj.agent_name = message.agent_name;
|
|
143
154
|
}
|
|
144
|
-
if (message.fos_agent !==
|
|
155
|
+
if (message.fos_agent !== undefined) {
|
|
145
156
|
obj.fos_agent = message.fos_agent;
|
|
146
157
|
}
|
|
147
|
-
if (message.cl_lead_assign_id !==
|
|
158
|
+
if (message.cl_lead_assign_id !== undefined) {
|
|
148
159
|
obj.cl_lead_assign_id = Math.round(message.cl_lead_assign_id);
|
|
149
160
|
}
|
|
150
|
-
if (message.level !==
|
|
161
|
+
if (message.level !== undefined) {
|
|
151
162
|
obj.level = Math.round(message.level);
|
|
152
163
|
}
|
|
153
|
-
if (message.assigned_level !==
|
|
164
|
+
if (message.assigned_level !== undefined) {
|
|
154
165
|
obj.assigned_level = Math.round(message.assigned_level);
|
|
155
166
|
}
|
|
167
|
+
if (message.customer_id !== 0) {
|
|
168
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
169
|
+
}
|
|
156
170
|
return obj;
|
|
157
171
|
},
|
|
158
172
|
create(base) {
|
|
@@ -160,24 +174,28 @@ exports.updateCollectionViewRequest = {
|
|
|
160
174
|
},
|
|
161
175
|
fromPartial(object) {
|
|
162
176
|
const message = createBaseupdateCollectionViewRequest();
|
|
163
|
-
message.status = object.status ??
|
|
164
|
-
message.bounce_reason = object.bounce_reason ??
|
|
165
|
-
message.ptp_date = object.ptp_date ??
|
|
166
|
-
message.agent_name = object.agent_name ??
|
|
167
|
-
message.fos_agent = object.fos_agent ??
|
|
168
|
-
message.cl_lead_assign_id = object.cl_lead_assign_id ??
|
|
169
|
-
message.level = object.level ??
|
|
170
|
-
message.assigned_level = object.assigned_level ??
|
|
177
|
+
message.status = object.status ?? undefined;
|
|
178
|
+
message.bounce_reason = object.bounce_reason ?? undefined;
|
|
179
|
+
message.ptp_date = object.ptp_date ?? undefined;
|
|
180
|
+
message.agent_name = object.agent_name ?? undefined;
|
|
181
|
+
message.fos_agent = object.fos_agent ?? undefined;
|
|
182
|
+
message.cl_lead_assign_id = object.cl_lead_assign_id ?? undefined;
|
|
183
|
+
message.level = object.level ?? undefined;
|
|
184
|
+
message.assigned_level = object.assigned_level ?? undefined;
|
|
185
|
+
message.customer_id = object.customer_id ?? 0;
|
|
171
186
|
return message;
|
|
172
187
|
},
|
|
173
188
|
};
|
|
174
189
|
function createBaseupdateCollectionViewResponse() {
|
|
175
|
-
return { id: 0 };
|
|
190
|
+
return { status: "", id: 0 };
|
|
176
191
|
}
|
|
177
192
|
exports.updateCollectionViewResponse = {
|
|
178
193
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
194
|
+
if (message.status !== "") {
|
|
195
|
+
writer.uint32(10).string(message.status);
|
|
196
|
+
}
|
|
179
197
|
if (message.id !== 0) {
|
|
180
|
-
writer.uint32(
|
|
198
|
+
writer.uint32(16).int32(message.id);
|
|
181
199
|
}
|
|
182
200
|
return writer;
|
|
183
201
|
},
|
|
@@ -189,7 +207,13 @@ exports.updateCollectionViewResponse = {
|
|
|
189
207
|
const tag = reader.uint32();
|
|
190
208
|
switch (tag >>> 3) {
|
|
191
209
|
case 1:
|
|
192
|
-
if (tag !==
|
|
210
|
+
if (tag !== 10) {
|
|
211
|
+
break;
|
|
212
|
+
}
|
|
213
|
+
message.status = reader.string();
|
|
214
|
+
continue;
|
|
215
|
+
case 2:
|
|
216
|
+
if (tag !== 16) {
|
|
193
217
|
break;
|
|
194
218
|
}
|
|
195
219
|
message.id = reader.int32();
|
|
@@ -203,10 +227,16 @@ exports.updateCollectionViewResponse = {
|
|
|
203
227
|
return message;
|
|
204
228
|
},
|
|
205
229
|
fromJSON(object) {
|
|
206
|
-
return {
|
|
230
|
+
return {
|
|
231
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
232
|
+
id: isSet(object.id) ? globalThis.Number(object.id) : 0,
|
|
233
|
+
};
|
|
207
234
|
},
|
|
208
235
|
toJSON(message) {
|
|
209
236
|
const obj = {};
|
|
237
|
+
if (message.status !== "") {
|
|
238
|
+
obj.status = message.status;
|
|
239
|
+
}
|
|
210
240
|
if (message.id !== 0) {
|
|
211
241
|
obj.id = Math.round(message.id);
|
|
212
242
|
}
|
|
@@ -217,6 +247,7 @@ exports.updateCollectionViewResponse = {
|
|
|
217
247
|
},
|
|
218
248
|
fromPartial(object) {
|
|
219
249
|
const message = createBaseupdateCollectionViewResponse();
|
|
250
|
+
message.status = object.status ?? "";
|
|
220
251
|
message.id = object.id ?? 0;
|
|
221
252
|
return message;
|
|
222
253
|
},
|
package/ts/loans.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { approveLoanRequest, approveLoanResponse } from "./loans/approveloan";
|
|
|
4
4
|
import { bankListRequest, bankListResponse } from "./loans/banklist";
|
|
5
5
|
import { calculateEmiRequest, calculateEmiResponse } from "./loans/calculateemi";
|
|
6
6
|
import { cbLoanRequest, cbLoanResponse } from "./loans/cbloan";
|
|
7
|
+
import { createPenaltyRequest, createPenaltyResponse } from "./loans/createpenalty";
|
|
7
8
|
import { creditLimitRequest, creditLimitResponse } from "./loans/creditlimit";
|
|
8
9
|
import { fcpPaymentRequest, fcpPaymentResponse } from "./loans/fcppayment";
|
|
9
10
|
import { foreclosePaymentRequest, foreclosePaymentResponse } from "./loans/foreclosepayment";
|
|
@@ -372,6 +373,15 @@ export declare const loansService: {
|
|
|
372
373
|
readonly responseSerialize: (value: updateCollectionViewResponse) => Buffer;
|
|
373
374
|
readonly responseDeserialize: (value: Buffer) => updateCollectionViewResponse;
|
|
374
375
|
};
|
|
376
|
+
readonly createPenalty: {
|
|
377
|
+
readonly path: "/service.loans/createPenalty";
|
|
378
|
+
readonly requestStream: false;
|
|
379
|
+
readonly responseStream: false;
|
|
380
|
+
readonly requestSerialize: (value: createPenaltyRequest) => Buffer;
|
|
381
|
+
readonly requestDeserialize: (value: Buffer) => createPenaltyRequest;
|
|
382
|
+
readonly responseSerialize: (value: createPenaltyResponse) => Buffer;
|
|
383
|
+
readonly responseDeserialize: (value: Buffer) => createPenaltyResponse;
|
|
384
|
+
};
|
|
375
385
|
};
|
|
376
386
|
export interface loansServer extends UntypedServiceImplementation {
|
|
377
387
|
creditlimit: handleUnaryCall<creditLimitRequest, creditLimitResponse>;
|
|
@@ -411,6 +421,7 @@ export interface loansServer extends UntypedServiceImplementation {
|
|
|
411
421
|
cbLoan: handleUnaryCall<cbLoanRequest, cbLoanResponse>;
|
|
412
422
|
getAddonsList: handleUnaryCall<getAddonsListRequest, getAddonsListResponse>;
|
|
413
423
|
updateCollectionview: handleUnaryCall<updateCollectionViewRequest, updateCollectionViewResponse>;
|
|
424
|
+
createPenalty: handleUnaryCall<createPenaltyRequest, createPenaltyResponse>;
|
|
414
425
|
}
|
|
415
426
|
export interface loansClient extends Client {
|
|
416
427
|
creditlimit(request: creditLimitRequest, callback: (error: ServiceError | null, response: creditLimitResponse) => void): ClientUnaryCall;
|
|
@@ -524,6 +535,9 @@ export interface loansClient extends Client {
|
|
|
524
535
|
updateCollectionview(request: updateCollectionViewRequest, callback: (error: ServiceError | null, response: updateCollectionViewResponse) => void): ClientUnaryCall;
|
|
525
536
|
updateCollectionview(request: updateCollectionViewRequest, metadata: Metadata, callback: (error: ServiceError | null, response: updateCollectionViewResponse) => void): ClientUnaryCall;
|
|
526
537
|
updateCollectionview(request: updateCollectionViewRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: updateCollectionViewResponse) => void): ClientUnaryCall;
|
|
538
|
+
createPenalty(request: createPenaltyRequest, callback: (error: ServiceError | null, response: createPenaltyResponse) => void): ClientUnaryCall;
|
|
539
|
+
createPenalty(request: createPenaltyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: createPenaltyResponse) => void): ClientUnaryCall;
|
|
540
|
+
createPenalty(request: createPenaltyRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: createPenaltyResponse) => void): ClientUnaryCall;
|
|
527
541
|
}
|
|
528
542
|
export declare const loansClient: {
|
|
529
543
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): loansClient;
|
package/ts/loans.js
CHANGED
|
@@ -13,6 +13,7 @@ const approveloan_1 = require("./loans/approveloan");
|
|
|
13
13
|
const banklist_1 = require("./loans/banklist");
|
|
14
14
|
const calculateemi_1 = require("./loans/calculateemi");
|
|
15
15
|
const cbloan_1 = require("./loans/cbloan");
|
|
16
|
+
const createpenalty_1 = require("./loans/createpenalty");
|
|
16
17
|
const creditlimit_1 = require("./loans/creditlimit");
|
|
17
18
|
const fcppayment_1 = require("./loans/fcppayment");
|
|
18
19
|
const foreclosepayment_1 = require("./loans/foreclosepayment");
|
|
@@ -380,5 +381,14 @@ exports.loansService = {
|
|
|
380
381
|
responseSerialize: (value) => Buffer.from(updatecollectionview_1.updateCollectionViewResponse.encode(value).finish()),
|
|
381
382
|
responseDeserialize: (value) => updatecollectionview_1.updateCollectionViewResponse.decode(value),
|
|
382
383
|
},
|
|
384
|
+
createPenalty: {
|
|
385
|
+
path: "/service.loans/createPenalty",
|
|
386
|
+
requestStream: false,
|
|
387
|
+
responseStream: false,
|
|
388
|
+
requestSerialize: (value) => Buffer.from(createpenalty_1.createPenaltyRequest.encode(value).finish()),
|
|
389
|
+
requestDeserialize: (value) => createpenalty_1.createPenaltyRequest.decode(value),
|
|
390
|
+
responseSerialize: (value) => Buffer.from(createpenalty_1.createPenaltyResponse.encode(value).finish()),
|
|
391
|
+
responseDeserialize: (value) => createpenalty_1.createPenaltyResponse.decode(value),
|
|
392
|
+
},
|
|
383
393
|
};
|
|
384
394
|
exports.loansClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.loansService, "service.loans");
|