@stashfin/grpc 1.2.367 → 1.2.369
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/accidentprotectionplan.d.ts +52 -0
- package/ts/customers/accidentprotectionplan.js +256 -0
- package/ts/customers/enach/updatetxnstatus.d.ts +4 -1
- package/ts/customers/enach/updatetxnstatus.js +64 -8
- package/ts/customers/getdashboardmaincard.d.ts +1 -0
- package/ts/customers/getdashboardmaincard.js +15 -0
- package/ts/customers/restoreaccount.d.ts +36 -0
- package/ts/customers/{skipdlrcscreen.js → restoreaccount.js} +46 -30
- package/ts/customers/verifyotp.d.ts +1 -0
- package/ts/customers/verifyotp.js +15 -1
- package/ts/customers.d.ts +28 -0
- package/ts/customers.js +20 -0
- package/ts/loans/creditlimit.d.ts +1 -4
- package/ts/loans/creditlimit.js +18 -71
- package/ts/loans/getvirtualaccountnumber.d.ts +35 -0
- package/ts/{customers/verifyemail.js → loans/getvirtualaccountnumber.js} +32 -32
- package/ts/loans/updatecollectionview.d.ts +42 -0
- package/ts/loans/updatecollectionview.js +226 -0
- package/ts/loans.d.ts +14 -0
- package/ts/loans.js +10 -0
- package/ts/customers/getrpdlink.d.ts +0 -40
- package/ts/customers/getrpdlink.js +0 -190
- package/ts/customers/sendemailtoken.d.ts +0 -35
- package/ts/customers/sendemailtoken.js +0 -117
- package/ts/customers/skipdlrcscreen.d.ts +0 -35
- package/ts/customers/step1.d.ts +0 -69
- package/ts/customers/step1.js +0 -395
- package/ts/customers/step10.d.ts +0 -73
- package/ts/customers/step10.js +0 -459
- package/ts/customers/step2.d.ts +0 -68
- package/ts/customers/step2.js +0 -381
- package/ts/customers/step7.d.ts +0 -68
- package/ts/customers/step7.js +0 -381
- package/ts/customers/step8.d.ts +0 -69
- package/ts/customers/step8.js +0 -395
- package/ts/customers/step9.d.ts +0 -75
- package/ts/customers/step9.js +0 -489
- package/ts/customers/stepstatic.d.ts +0 -66
- package/ts/customers/stepstatic.js +0 -354
- package/ts/customers/verifyemail.d.ts +0 -35
- package/ts/google/protobuf/timestamp.d.ts +0 -127
- package/ts/google/protobuf/timestamp.js +0 -97
|
@@ -2,30 +2,33 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.0
|
|
5
|
-
// protoc v5.
|
|
6
|
-
// source: customers/
|
|
5
|
+
// protoc v5.28.3
|
|
6
|
+
// source: customers/restoreaccount.proto
|
|
7
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.
|
|
11
|
+
exports.restoreAccountResponse = exports.restoreAccountRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
-
exports.protobufPackage = "customers.
|
|
15
|
-
function
|
|
16
|
-
return {
|
|
14
|
+
exports.protobufPackage = "customers.restoreaccount";
|
|
15
|
+
function createBaserestoreAccountRequest() {
|
|
16
|
+
return { mobile: "", deleted_token: "" };
|
|
17
17
|
}
|
|
18
|
-
exports.
|
|
18
|
+
exports.restoreAccountRequest = {
|
|
19
19
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
20
|
-
if (message.
|
|
21
|
-
writer.uint32(10).string(message.
|
|
20
|
+
if (message.mobile !== "") {
|
|
21
|
+
writer.uint32(10).string(message.mobile);
|
|
22
|
+
}
|
|
23
|
+
if (message.deleted_token !== "") {
|
|
24
|
+
writer.uint32(18).string(message.deleted_token);
|
|
22
25
|
}
|
|
23
26
|
return writer;
|
|
24
27
|
},
|
|
25
28
|
decode(input, length) {
|
|
26
29
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
27
30
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
|
-
const message =
|
|
31
|
+
const message = createBaserestoreAccountRequest();
|
|
29
32
|
while (reader.pos < end) {
|
|
30
33
|
const tag = reader.uint32();
|
|
31
34
|
switch (tag >>> 3) {
|
|
@@ -33,7 +36,13 @@ exports.skipDlRcScreenRequest = {
|
|
|
33
36
|
if (tag !== 10) {
|
|
34
37
|
break;
|
|
35
38
|
}
|
|
36
|
-
message.
|
|
39
|
+
message.mobile = reader.string();
|
|
40
|
+
continue;
|
|
41
|
+
case 2:
|
|
42
|
+
if (tag !== 18) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
message.deleted_token = reader.string();
|
|
37
46
|
continue;
|
|
38
47
|
}
|
|
39
48
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -44,38 +53,45 @@ exports.skipDlRcScreenRequest = {
|
|
|
44
53
|
return message;
|
|
45
54
|
},
|
|
46
55
|
fromJSON(object) {
|
|
47
|
-
return {
|
|
56
|
+
return {
|
|
57
|
+
mobile: isSet(object.mobile) ? globalThis.String(object.mobile) : "",
|
|
58
|
+
deleted_token: isSet(object.deleted_token) ? globalThis.String(object.deleted_token) : "",
|
|
59
|
+
};
|
|
48
60
|
},
|
|
49
61
|
toJSON(message) {
|
|
50
62
|
const obj = {};
|
|
51
|
-
if (message.
|
|
52
|
-
obj.
|
|
63
|
+
if (message.mobile !== "") {
|
|
64
|
+
obj.mobile = message.mobile;
|
|
65
|
+
}
|
|
66
|
+
if (message.deleted_token !== "") {
|
|
67
|
+
obj.deleted_token = message.deleted_token;
|
|
53
68
|
}
|
|
54
69
|
return obj;
|
|
55
70
|
},
|
|
56
71
|
create(base) {
|
|
57
|
-
return exports.
|
|
72
|
+
return exports.restoreAccountRequest.fromPartial(base ?? {});
|
|
58
73
|
},
|
|
59
74
|
fromPartial(object) {
|
|
60
|
-
const message =
|
|
61
|
-
message.
|
|
75
|
+
const message = createBaserestoreAccountRequest();
|
|
76
|
+
message.mobile = object.mobile ?? "";
|
|
77
|
+
message.deleted_token = object.deleted_token ?? "";
|
|
62
78
|
return message;
|
|
63
79
|
},
|
|
64
80
|
};
|
|
65
|
-
function
|
|
66
|
-
return {
|
|
81
|
+
function createBaserestoreAccountResponse() {
|
|
82
|
+
return { jwttoken: "" };
|
|
67
83
|
}
|
|
68
|
-
exports.
|
|
84
|
+
exports.restoreAccountResponse = {
|
|
69
85
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
70
|
-
if (message.
|
|
71
|
-
writer.uint32(10).string(message.
|
|
86
|
+
if (message.jwttoken !== "") {
|
|
87
|
+
writer.uint32(10).string(message.jwttoken);
|
|
72
88
|
}
|
|
73
89
|
return writer;
|
|
74
90
|
},
|
|
75
91
|
decode(input, length) {
|
|
76
92
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
77
93
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
78
|
-
const message =
|
|
94
|
+
const message = createBaserestoreAccountResponse();
|
|
79
95
|
while (reader.pos < end) {
|
|
80
96
|
const tag = reader.uint32();
|
|
81
97
|
switch (tag >>> 3) {
|
|
@@ -83,7 +99,7 @@ exports.skipDlRcScreenResponse = {
|
|
|
83
99
|
if (tag !== 10) {
|
|
84
100
|
break;
|
|
85
101
|
}
|
|
86
|
-
message.
|
|
102
|
+
message.jwttoken = reader.string();
|
|
87
103
|
continue;
|
|
88
104
|
}
|
|
89
105
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -94,21 +110,21 @@ exports.skipDlRcScreenResponse = {
|
|
|
94
110
|
return message;
|
|
95
111
|
},
|
|
96
112
|
fromJSON(object) {
|
|
97
|
-
return {
|
|
113
|
+
return { jwttoken: isSet(object.jwttoken) ? globalThis.String(object.jwttoken) : "" };
|
|
98
114
|
},
|
|
99
115
|
toJSON(message) {
|
|
100
116
|
const obj = {};
|
|
101
|
-
if (message.
|
|
102
|
-
obj.
|
|
117
|
+
if (message.jwttoken !== "") {
|
|
118
|
+
obj.jwttoken = message.jwttoken;
|
|
103
119
|
}
|
|
104
120
|
return obj;
|
|
105
121
|
},
|
|
106
122
|
create(base) {
|
|
107
|
-
return exports.
|
|
123
|
+
return exports.restoreAccountResponse.fromPartial(base ?? {});
|
|
108
124
|
},
|
|
109
125
|
fromPartial(object) {
|
|
110
|
-
const message =
|
|
111
|
-
message.
|
|
126
|
+
const message = createBaserestoreAccountResponse();
|
|
127
|
+
message.jwttoken = object.jwttoken ?? "";
|
|
112
128
|
return message;
|
|
113
129
|
},
|
|
114
130
|
};
|
|
@@ -135,7 +135,7 @@ exports.verifyOtpReqeust = {
|
|
|
135
135
|
},
|
|
136
136
|
};
|
|
137
137
|
function createBaseverifyOtpResponse() {
|
|
138
|
-
return { category: "", ismpin: false, jwttoken: "" };
|
|
138
|
+
return { category: "", ismpin: false, jwttoken: "", is_deleted_token: "" };
|
|
139
139
|
}
|
|
140
140
|
exports.verifyOtpResponse = {
|
|
141
141
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -148,6 +148,9 @@ exports.verifyOtpResponse = {
|
|
|
148
148
|
if (message.jwttoken !== "") {
|
|
149
149
|
writer.uint32(26).string(message.jwttoken);
|
|
150
150
|
}
|
|
151
|
+
if (message.is_deleted_token !== "") {
|
|
152
|
+
writer.uint32(34).string(message.is_deleted_token);
|
|
153
|
+
}
|
|
151
154
|
return writer;
|
|
152
155
|
},
|
|
153
156
|
decode(input, length) {
|
|
@@ -175,6 +178,12 @@ exports.verifyOtpResponse = {
|
|
|
175
178
|
}
|
|
176
179
|
message.jwttoken = reader.string();
|
|
177
180
|
continue;
|
|
181
|
+
case 4:
|
|
182
|
+
if (tag !== 34) {
|
|
183
|
+
break;
|
|
184
|
+
}
|
|
185
|
+
message.is_deleted_token = reader.string();
|
|
186
|
+
continue;
|
|
178
187
|
}
|
|
179
188
|
if ((tag & 7) === 4 || tag === 0) {
|
|
180
189
|
break;
|
|
@@ -188,6 +197,7 @@ exports.verifyOtpResponse = {
|
|
|
188
197
|
category: isSet(object.category) ? globalThis.String(object.category) : "",
|
|
189
198
|
ismpin: isSet(object.ismpin) ? globalThis.Boolean(object.ismpin) : false,
|
|
190
199
|
jwttoken: isSet(object.jwttoken) ? globalThis.String(object.jwttoken) : "",
|
|
200
|
+
is_deleted_token: isSet(object.is_deleted_token) ? globalThis.String(object.is_deleted_token) : "",
|
|
191
201
|
};
|
|
192
202
|
},
|
|
193
203
|
toJSON(message) {
|
|
@@ -201,6 +211,9 @@ exports.verifyOtpResponse = {
|
|
|
201
211
|
if (message.jwttoken !== "") {
|
|
202
212
|
obj.jwttoken = message.jwttoken;
|
|
203
213
|
}
|
|
214
|
+
if (message.is_deleted_token !== "") {
|
|
215
|
+
obj.is_deleted_token = message.is_deleted_token;
|
|
216
|
+
}
|
|
204
217
|
return obj;
|
|
205
218
|
},
|
|
206
219
|
create(base) {
|
|
@@ -211,6 +224,7 @@ exports.verifyOtpResponse = {
|
|
|
211
224
|
message.category = object.category ?? "";
|
|
212
225
|
message.ismpin = object.ismpin ?? false;
|
|
213
226
|
message.jwttoken = object.jwttoken ?? "";
|
|
227
|
+
message.is_deleted_token = object.is_deleted_token ?? "";
|
|
214
228
|
return message;
|
|
215
229
|
},
|
|
216
230
|
};
|
package/ts/customers.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type
|
|
|
2
2
|
import { getAATransactionStatusRequest, getAATransactionStatusResponse } from "./customers/aa/getaatxnstatus";
|
|
3
3
|
import { getBankListRequest, getBankListResponse } from "./customers/aa/getbanklist";
|
|
4
4
|
import { initiateRequest, initiateResponse } from "./customers/aa/initiate";
|
|
5
|
+
import { getPocketPersonalAccidentProtectionPlanRequest, getPocketPersonalAccidentProtectionPlanResponse } from "./customers/accidentprotectionplan";
|
|
5
6
|
import { addAddressRequest, addAddressResponse } from "./customers/addaddress";
|
|
6
7
|
import { addBankAccountDetailsRequest, addBankAccountDetailsResponse } from "./customers/addbankaccountdetails";
|
|
7
8
|
import { addFathersNameRequest, addFathersNameResponse } from "./customers/addfathersname";
|
|
@@ -71,6 +72,7 @@ import { getPdBankListRequest, getPdBankListResponse } from "./customers/pd/getb
|
|
|
71
72
|
import { validateBankAccountRequest, validateBankAccountResponse } from "./customers/pd/validatebankaccount";
|
|
72
73
|
import { updateProfileBasicRequest, updateProfileBasicResponse } from "./customers/profilebasic";
|
|
73
74
|
import { updateTncRequest, updateTncResponse } from "./customers/profileupdatetnc";
|
|
75
|
+
import { restoreAccountRequest, restoreAccountResponse } from "./customers/restoreaccount";
|
|
74
76
|
import { createRpdLinkRequest, createRpdLinkResponse } from "./customers/rpd/getrpdlink";
|
|
75
77
|
import { getRpdTransactionStatusRequest, getRpdTransactionStatusResponse } from "./customers/rpd/getrpdtransactionstatus";
|
|
76
78
|
import { mockPaymentRequest, mockPaymentResponse } from "./customers/rpd/mockpayment";
|
|
@@ -1049,6 +1051,24 @@ export declare const customersService: {
|
|
|
1049
1051
|
readonly responseSerialize: (value: applyCliJourneyResponse) => Buffer;
|
|
1050
1052
|
readonly responseDeserialize: (value: Buffer) => applyCliJourneyResponse;
|
|
1051
1053
|
};
|
|
1054
|
+
readonly restoreAccount: {
|
|
1055
|
+
readonly path: "/service.customers/restoreAccount";
|
|
1056
|
+
readonly requestStream: false;
|
|
1057
|
+
readonly responseStream: false;
|
|
1058
|
+
readonly requestSerialize: (value: restoreAccountRequest) => Buffer;
|
|
1059
|
+
readonly requestDeserialize: (value: Buffer) => restoreAccountRequest;
|
|
1060
|
+
readonly responseSerialize: (value: restoreAccountResponse) => Buffer;
|
|
1061
|
+
readonly responseDeserialize: (value: Buffer) => restoreAccountResponse;
|
|
1062
|
+
};
|
|
1063
|
+
readonly getPocketPersonalAccidentProtectionPlan: {
|
|
1064
|
+
readonly path: "/service.customers/getPocketPersonalAccidentProtectionPlan";
|
|
1065
|
+
readonly requestStream: false;
|
|
1066
|
+
readonly responseStream: false;
|
|
1067
|
+
readonly requestSerialize: (value: getPocketPersonalAccidentProtectionPlanRequest) => Buffer;
|
|
1068
|
+
readonly requestDeserialize: (value: Buffer) => getPocketPersonalAccidentProtectionPlanRequest;
|
|
1069
|
+
readonly responseSerialize: (value: getPocketPersonalAccidentProtectionPlanResponse) => Buffer;
|
|
1070
|
+
readonly responseDeserialize: (value: Buffer) => getPocketPersonalAccidentProtectionPlanResponse;
|
|
1071
|
+
};
|
|
1052
1072
|
};
|
|
1053
1073
|
export interface customersServer extends UntypedServiceImplementation {
|
|
1054
1074
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -1156,6 +1176,8 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1156
1176
|
insuranceDetailsStaticScreen: handleUnaryCall<insuranceDetailsRequest, insuranceDetailsResponse>;
|
|
1157
1177
|
getCliStatus: handleUnaryCall<getCliStatusRequest, getCliStatusResponse>;
|
|
1158
1178
|
applyCliJourney: handleUnaryCall<applyCliJourneyRequest, applyCliJourneyResponse>;
|
|
1179
|
+
restoreAccount: handleUnaryCall<restoreAccountRequest, restoreAccountResponse>;
|
|
1180
|
+
getPocketPersonalAccidentProtectionPlan: handleUnaryCall<getPocketPersonalAccidentProtectionPlanRequest, getPocketPersonalAccidentProtectionPlanResponse>;
|
|
1159
1181
|
}
|
|
1160
1182
|
export interface customersClient extends Client {
|
|
1161
1183
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1473,6 +1495,12 @@ export interface customersClient extends Client {
|
|
|
1473
1495
|
applyCliJourney(request: applyCliJourneyRequest, callback: (error: ServiceError | null, response: applyCliJourneyResponse) => void): ClientUnaryCall;
|
|
1474
1496
|
applyCliJourney(request: applyCliJourneyRequest, metadata: Metadata, callback: (error: ServiceError | null, response: applyCliJourneyResponse) => void): ClientUnaryCall;
|
|
1475
1497
|
applyCliJourney(request: applyCliJourneyRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: applyCliJourneyResponse) => void): ClientUnaryCall;
|
|
1498
|
+
restoreAccount(request: restoreAccountRequest, callback: (error: ServiceError | null, response: restoreAccountResponse) => void): ClientUnaryCall;
|
|
1499
|
+
restoreAccount(request: restoreAccountRequest, metadata: Metadata, callback: (error: ServiceError | null, response: restoreAccountResponse) => void): ClientUnaryCall;
|
|
1500
|
+
restoreAccount(request: restoreAccountRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: restoreAccountResponse) => void): ClientUnaryCall;
|
|
1501
|
+
getPocketPersonalAccidentProtectionPlan(request: getPocketPersonalAccidentProtectionPlanRequest, callback: (error: ServiceError | null, response: getPocketPersonalAccidentProtectionPlanResponse) => void): ClientUnaryCall;
|
|
1502
|
+
getPocketPersonalAccidentProtectionPlan(request: getPocketPersonalAccidentProtectionPlanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getPocketPersonalAccidentProtectionPlanResponse) => void): ClientUnaryCall;
|
|
1503
|
+
getPocketPersonalAccidentProtectionPlan(request: getPocketPersonalAccidentProtectionPlanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getPocketPersonalAccidentProtectionPlanResponse) => void): ClientUnaryCall;
|
|
1476
1504
|
}
|
|
1477
1505
|
export declare const customersClient: {
|
|
1478
1506
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -11,6 +11,7 @@ const grpc_js_1 = require("@grpc/grpc-js");
|
|
|
11
11
|
const getaatxnstatus_1 = require("./customers/aa/getaatxnstatus");
|
|
12
12
|
const getbanklist_1 = require("./customers/aa/getbanklist");
|
|
13
13
|
const initiate_1 = require("./customers/aa/initiate");
|
|
14
|
+
const accidentprotectionplan_1 = require("./customers/accidentprotectionplan");
|
|
14
15
|
const addaddress_1 = require("./customers/addaddress");
|
|
15
16
|
const addbankaccountdetails_1 = require("./customers/addbankaccountdetails");
|
|
16
17
|
const addfathersname_1 = require("./customers/addfathersname");
|
|
@@ -80,6 +81,7 @@ const getbanklist_2 = require("./customers/pd/getbanklist");
|
|
|
80
81
|
const validatebankaccount_1 = require("./customers/pd/validatebankaccount");
|
|
81
82
|
const profilebasic_1 = require("./customers/profilebasic");
|
|
82
83
|
const profileupdatetnc_1 = require("./customers/profileupdatetnc");
|
|
84
|
+
const restoreaccount_1 = require("./customers/restoreaccount");
|
|
83
85
|
const getrpdlink_1 = require("./customers/rpd/getrpdlink");
|
|
84
86
|
const getrpdtransactionstatus_1 = require("./customers/rpd/getrpdtransactionstatus");
|
|
85
87
|
const mockpayment_1 = require("./customers/rpd/mockpayment");
|
|
@@ -1057,5 +1059,23 @@ exports.customersService = {
|
|
|
1057
1059
|
responseSerialize: (value) => Buffer.from(applyclijourney_1.applyCliJourneyResponse.encode(value).finish()),
|
|
1058
1060
|
responseDeserialize: (value) => applyclijourney_1.applyCliJourneyResponse.decode(value),
|
|
1059
1061
|
},
|
|
1062
|
+
restoreAccount: {
|
|
1063
|
+
path: "/service.customers/restoreAccount",
|
|
1064
|
+
requestStream: false,
|
|
1065
|
+
responseStream: false,
|
|
1066
|
+
requestSerialize: (value) => Buffer.from(restoreaccount_1.restoreAccountRequest.encode(value).finish()),
|
|
1067
|
+
requestDeserialize: (value) => restoreaccount_1.restoreAccountRequest.decode(value),
|
|
1068
|
+
responseSerialize: (value) => Buffer.from(restoreaccount_1.restoreAccountResponse.encode(value).finish()),
|
|
1069
|
+
responseDeserialize: (value) => restoreaccount_1.restoreAccountResponse.decode(value),
|
|
1070
|
+
},
|
|
1071
|
+
getPocketPersonalAccidentProtectionPlan: {
|
|
1072
|
+
path: "/service.customers/getPocketPersonalAccidentProtectionPlan",
|
|
1073
|
+
requestStream: false,
|
|
1074
|
+
responseStream: false,
|
|
1075
|
+
requestSerialize: (value) => Buffer.from(accidentprotectionplan_1.getPocketPersonalAccidentProtectionPlanRequest.encode(value).finish()),
|
|
1076
|
+
requestDeserialize: (value) => accidentprotectionplan_1.getPocketPersonalAccidentProtectionPlanRequest.decode(value),
|
|
1077
|
+
responseSerialize: (value) => Buffer.from(accidentprotectionplan_1.getPocketPersonalAccidentProtectionPlanResponse.encode(value).finish()),
|
|
1078
|
+
responseDeserialize: (value) => accidentprotectionplan_1.getPocketPersonalAccidentProtectionPlanResponse.decode(value),
|
|
1079
|
+
},
|
|
1060
1080
|
};
|
|
1061
1081
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -15,13 +15,10 @@ export interface creditLimitResponse {
|
|
|
15
15
|
minimum_request_amount: number;
|
|
16
16
|
sanctioned_limit: number;
|
|
17
17
|
remaining_sanctioned_limit: number;
|
|
18
|
-
sanctioned_limit_info_popup_heading: string;
|
|
19
|
-
sanctioned_limit_info_popup_body: string;
|
|
20
|
-
exposure_limit_info_popup_heading: string;
|
|
21
|
-
exposure_limit_info_popup_body: string;
|
|
22
18
|
sanctioned_limit_heading: string;
|
|
23
19
|
exposure_limit_heading: string;
|
|
24
20
|
sanction_upgrade: boolean;
|
|
21
|
+
new_sanctioned_limit: number;
|
|
25
22
|
}
|
|
26
23
|
export declare const creditLimitRequest: {
|
|
27
24
|
encode(_: creditLimitRequest, writer?: _m0.Writer): _m0.Writer;
|
package/ts/loans/creditlimit.js
CHANGED
|
@@ -63,13 +63,10 @@ function createBasecreditLimitResponse() {
|
|
|
63
63
|
minimum_request_amount: 0,
|
|
64
64
|
sanctioned_limit: 0,
|
|
65
65
|
remaining_sanctioned_limit: 0,
|
|
66
|
-
sanctioned_limit_info_popup_heading: "",
|
|
67
|
-
sanctioned_limit_info_popup_body: "",
|
|
68
|
-
exposure_limit_info_popup_heading: "",
|
|
69
|
-
exposure_limit_info_popup_body: "",
|
|
70
66
|
sanctioned_limit_heading: "",
|
|
71
67
|
exposure_limit_heading: "",
|
|
72
68
|
sanction_upgrade: false,
|
|
69
|
+
new_sanctioned_limit: 0,
|
|
73
70
|
};
|
|
74
71
|
}
|
|
75
72
|
exports.creditLimitResponse = {
|
|
@@ -110,26 +107,17 @@ exports.creditLimitResponse = {
|
|
|
110
107
|
if (message.remaining_sanctioned_limit !== 0) {
|
|
111
108
|
writer.uint32(96).int32(message.remaining_sanctioned_limit);
|
|
112
109
|
}
|
|
113
|
-
if (message.sanctioned_limit_info_popup_heading !== "") {
|
|
114
|
-
writer.uint32(106).string(message.sanctioned_limit_info_popup_heading);
|
|
115
|
-
}
|
|
116
|
-
if (message.sanctioned_limit_info_popup_body !== "") {
|
|
117
|
-
writer.uint32(114).string(message.sanctioned_limit_info_popup_body);
|
|
118
|
-
}
|
|
119
|
-
if (message.exposure_limit_info_popup_heading !== "") {
|
|
120
|
-
writer.uint32(122).string(message.exposure_limit_info_popup_heading);
|
|
121
|
-
}
|
|
122
|
-
if (message.exposure_limit_info_popup_body !== "") {
|
|
123
|
-
writer.uint32(130).string(message.exposure_limit_info_popup_body);
|
|
124
|
-
}
|
|
125
110
|
if (message.sanctioned_limit_heading !== "") {
|
|
126
|
-
writer.uint32(
|
|
111
|
+
writer.uint32(106).string(message.sanctioned_limit_heading);
|
|
127
112
|
}
|
|
128
113
|
if (message.exposure_limit_heading !== "") {
|
|
129
|
-
writer.uint32(
|
|
114
|
+
writer.uint32(114).string(message.exposure_limit_heading);
|
|
130
115
|
}
|
|
131
116
|
if (message.sanction_upgrade !== false) {
|
|
132
|
-
writer.uint32(
|
|
117
|
+
writer.uint32(120).bool(message.sanction_upgrade);
|
|
118
|
+
}
|
|
119
|
+
if (message.new_sanctioned_limit !== 0) {
|
|
120
|
+
writer.uint32(128).int32(message.new_sanctioned_limit);
|
|
133
121
|
}
|
|
134
122
|
return writer;
|
|
135
123
|
},
|
|
@@ -216,43 +204,25 @@ exports.creditLimitResponse = {
|
|
|
216
204
|
if (tag !== 106) {
|
|
217
205
|
break;
|
|
218
206
|
}
|
|
219
|
-
message.
|
|
207
|
+
message.sanctioned_limit_heading = reader.string();
|
|
220
208
|
continue;
|
|
221
209
|
case 14:
|
|
222
210
|
if (tag !== 114) {
|
|
223
211
|
break;
|
|
224
212
|
}
|
|
225
|
-
message.
|
|
213
|
+
message.exposure_limit_heading = reader.string();
|
|
226
214
|
continue;
|
|
227
215
|
case 15:
|
|
228
|
-
if (tag !==
|
|
216
|
+
if (tag !== 120) {
|
|
229
217
|
break;
|
|
230
218
|
}
|
|
231
|
-
message.
|
|
219
|
+
message.sanction_upgrade = reader.bool();
|
|
232
220
|
continue;
|
|
233
221
|
case 16:
|
|
234
|
-
if (tag !==
|
|
222
|
+
if (tag !== 128) {
|
|
235
223
|
break;
|
|
236
224
|
}
|
|
237
|
-
message.
|
|
238
|
-
continue;
|
|
239
|
-
case 17:
|
|
240
|
-
if (tag !== 138) {
|
|
241
|
-
break;
|
|
242
|
-
}
|
|
243
|
-
message.sanctioned_limit_heading = reader.string();
|
|
244
|
-
continue;
|
|
245
|
-
case 18:
|
|
246
|
-
if (tag !== 146) {
|
|
247
|
-
break;
|
|
248
|
-
}
|
|
249
|
-
message.exposure_limit_heading = reader.string();
|
|
250
|
-
continue;
|
|
251
|
-
case 19:
|
|
252
|
-
if (tag !== 152) {
|
|
253
|
-
break;
|
|
254
|
-
}
|
|
255
|
-
message.sanction_upgrade = reader.bool();
|
|
225
|
+
message.new_sanctioned_limit = reader.int32();
|
|
256
226
|
continue;
|
|
257
227
|
}
|
|
258
228
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -282,18 +252,6 @@ exports.creditLimitResponse = {
|
|
|
282
252
|
remaining_sanctioned_limit: isSet(object.remaining_sanctioned_limit)
|
|
283
253
|
? globalThis.Number(object.remaining_sanctioned_limit)
|
|
284
254
|
: 0,
|
|
285
|
-
sanctioned_limit_info_popup_heading: isSet(object.sanctioned_limit_info_popup_heading)
|
|
286
|
-
? globalThis.String(object.sanctioned_limit_info_popup_heading)
|
|
287
|
-
: "",
|
|
288
|
-
sanctioned_limit_info_popup_body: isSet(object.sanctioned_limit_info_popup_body)
|
|
289
|
-
? globalThis.String(object.sanctioned_limit_info_popup_body)
|
|
290
|
-
: "",
|
|
291
|
-
exposure_limit_info_popup_heading: isSet(object.exposure_limit_info_popup_heading)
|
|
292
|
-
? globalThis.String(object.exposure_limit_info_popup_heading)
|
|
293
|
-
: "",
|
|
294
|
-
exposure_limit_info_popup_body: isSet(object.exposure_limit_info_popup_body)
|
|
295
|
-
? globalThis.String(object.exposure_limit_info_popup_body)
|
|
296
|
-
: "",
|
|
297
255
|
sanctioned_limit_heading: isSet(object.sanctioned_limit_heading)
|
|
298
256
|
? globalThis.String(object.sanctioned_limit_heading)
|
|
299
257
|
: "",
|
|
@@ -301,6 +259,7 @@ exports.creditLimitResponse = {
|
|
|
301
259
|
? globalThis.String(object.exposure_limit_heading)
|
|
302
260
|
: "",
|
|
303
261
|
sanction_upgrade: isSet(object.sanction_upgrade) ? globalThis.Boolean(object.sanction_upgrade) : false,
|
|
262
|
+
new_sanctioned_limit: isSet(object.new_sanctioned_limit) ? globalThis.Number(object.new_sanctioned_limit) : 0,
|
|
304
263
|
};
|
|
305
264
|
},
|
|
306
265
|
toJSON(message) {
|
|
@@ -341,18 +300,6 @@ exports.creditLimitResponse = {
|
|
|
341
300
|
if (message.remaining_sanctioned_limit !== 0) {
|
|
342
301
|
obj.remaining_sanctioned_limit = Math.round(message.remaining_sanctioned_limit);
|
|
343
302
|
}
|
|
344
|
-
if (message.sanctioned_limit_info_popup_heading !== "") {
|
|
345
|
-
obj.sanctioned_limit_info_popup_heading = message.sanctioned_limit_info_popup_heading;
|
|
346
|
-
}
|
|
347
|
-
if (message.sanctioned_limit_info_popup_body !== "") {
|
|
348
|
-
obj.sanctioned_limit_info_popup_body = message.sanctioned_limit_info_popup_body;
|
|
349
|
-
}
|
|
350
|
-
if (message.exposure_limit_info_popup_heading !== "") {
|
|
351
|
-
obj.exposure_limit_info_popup_heading = message.exposure_limit_info_popup_heading;
|
|
352
|
-
}
|
|
353
|
-
if (message.exposure_limit_info_popup_body !== "") {
|
|
354
|
-
obj.exposure_limit_info_popup_body = message.exposure_limit_info_popup_body;
|
|
355
|
-
}
|
|
356
303
|
if (message.sanctioned_limit_heading !== "") {
|
|
357
304
|
obj.sanctioned_limit_heading = message.sanctioned_limit_heading;
|
|
358
305
|
}
|
|
@@ -362,6 +309,9 @@ exports.creditLimitResponse = {
|
|
|
362
309
|
if (message.sanction_upgrade !== false) {
|
|
363
310
|
obj.sanction_upgrade = message.sanction_upgrade;
|
|
364
311
|
}
|
|
312
|
+
if (message.new_sanctioned_limit !== 0) {
|
|
313
|
+
obj.new_sanctioned_limit = Math.round(message.new_sanctioned_limit);
|
|
314
|
+
}
|
|
365
315
|
return obj;
|
|
366
316
|
},
|
|
367
317
|
create(base) {
|
|
@@ -381,13 +331,10 @@ exports.creditLimitResponse = {
|
|
|
381
331
|
message.minimum_request_amount = object.minimum_request_amount ?? 0;
|
|
382
332
|
message.sanctioned_limit = object.sanctioned_limit ?? 0;
|
|
383
333
|
message.remaining_sanctioned_limit = object.remaining_sanctioned_limit ?? 0;
|
|
384
|
-
message.sanctioned_limit_info_popup_heading = object.sanctioned_limit_info_popup_heading ?? "";
|
|
385
|
-
message.sanctioned_limit_info_popup_body = object.sanctioned_limit_info_popup_body ?? "";
|
|
386
|
-
message.exposure_limit_info_popup_heading = object.exposure_limit_info_popup_heading ?? "";
|
|
387
|
-
message.exposure_limit_info_popup_body = object.exposure_limit_info_popup_body ?? "";
|
|
388
334
|
message.sanctioned_limit_heading = object.sanctioned_limit_heading ?? "";
|
|
389
335
|
message.exposure_limit_heading = object.exposure_limit_heading ?? "";
|
|
390
336
|
message.sanction_upgrade = object.sanction_upgrade ?? false;
|
|
337
|
+
message.new_sanctioned_limit = object.new_sanctioned_limit ?? 0;
|
|
391
338
|
return message;
|
|
392
339
|
},
|
|
393
340
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "loans.getvirtualaccountnumber";
|
|
3
|
+
export interface getVirtualAccountNumberRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface getVirtualAccountNumberResponse {
|
|
7
|
+
account_number: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const getVirtualAccountNumberRequest: {
|
|
10
|
+
encode(message: getVirtualAccountNumberRequest, writer?: _m0.Writer): _m0.Writer;
|
|
11
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberRequest;
|
|
12
|
+
fromJSON(object: any): getVirtualAccountNumberRequest;
|
|
13
|
+
toJSON(message: getVirtualAccountNumberRequest): unknown;
|
|
14
|
+
create<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(base?: I): getVirtualAccountNumberRequest;
|
|
15
|
+
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberRequest>, I>>(object: I): getVirtualAccountNumberRequest;
|
|
16
|
+
};
|
|
17
|
+
export declare const getVirtualAccountNumberResponse: {
|
|
18
|
+
encode(message: getVirtualAccountNumberResponse, writer?: _m0.Writer): _m0.Writer;
|
|
19
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getVirtualAccountNumberResponse;
|
|
20
|
+
fromJSON(object: any): getVirtualAccountNumberResponse;
|
|
21
|
+
toJSON(message: getVirtualAccountNumberResponse): unknown;
|
|
22
|
+
create<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(base?: I): getVirtualAccountNumberResponse;
|
|
23
|
+
fromPartial<I extends Exact<DeepPartial<getVirtualAccountNumberResponse>, I>>(object: I): getVirtualAccountNumberResponse;
|
|
24
|
+
};
|
|
25
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
+
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 {} ? {
|
|
27
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
28
|
+
} : Partial<T>;
|
|
29
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
30
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
31
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
32
|
+
} & {
|
|
33
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
34
|
+
};
|
|
35
|
+
export {};
|