@stashfin/grpc 1.2.598 → 1.2.600
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -8,7 +8,6 @@ export interface getBankListResponse {
|
|
|
8
8
|
error_message?: string | undefined;
|
|
9
9
|
error_code?: string | undefined;
|
|
10
10
|
netbanking_url?: string | undefined;
|
|
11
|
-
is_popular?: boolean | undefined;
|
|
12
11
|
}
|
|
13
12
|
export interface BankData {
|
|
14
13
|
id: string;
|
|
@@ -16,6 +15,7 @@ export interface BankData {
|
|
|
16
15
|
logo_url?: string | undefined;
|
|
17
16
|
net_banking_enabled: boolean;
|
|
18
17
|
pdf_journey_enabled: boolean;
|
|
18
|
+
is_popular: boolean;
|
|
19
19
|
}
|
|
20
20
|
export declare const getBankListRequest: {
|
|
21
21
|
encode(_: getBankListRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -50,14 +50,7 @@ exports.getBankListRequest = {
|
|
|
50
50
|
},
|
|
51
51
|
};
|
|
52
52
|
function createBasegetBankListResponse() {
|
|
53
|
-
return {
|
|
54
|
-
success: undefined,
|
|
55
|
-
data: [],
|
|
56
|
-
error_message: undefined,
|
|
57
|
-
error_code: undefined,
|
|
58
|
-
netbanking_url: undefined,
|
|
59
|
-
is_popular: undefined,
|
|
60
|
-
};
|
|
53
|
+
return { success: undefined, data: [], error_message: undefined, error_code: undefined, netbanking_url: undefined };
|
|
61
54
|
}
|
|
62
55
|
exports.getBankListResponse = {
|
|
63
56
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -76,9 +69,6 @@ exports.getBankListResponse = {
|
|
|
76
69
|
if (message.netbanking_url !== undefined) {
|
|
77
70
|
writer.uint32(42).string(message.netbanking_url);
|
|
78
71
|
}
|
|
79
|
-
if (message.is_popular !== undefined) {
|
|
80
|
-
writer.uint32(48).bool(message.is_popular);
|
|
81
|
-
}
|
|
82
72
|
return writer;
|
|
83
73
|
},
|
|
84
74
|
decode(input, length) {
|
|
@@ -118,12 +108,6 @@ exports.getBankListResponse = {
|
|
|
118
108
|
}
|
|
119
109
|
message.netbanking_url = reader.string();
|
|
120
110
|
continue;
|
|
121
|
-
case 6:
|
|
122
|
-
if (tag !== 48) {
|
|
123
|
-
break;
|
|
124
|
-
}
|
|
125
|
-
message.is_popular = reader.bool();
|
|
126
|
-
continue;
|
|
127
111
|
}
|
|
128
112
|
if ((tag & 7) === 4 || tag === 0) {
|
|
129
113
|
break;
|
|
@@ -139,7 +123,6 @@ exports.getBankListResponse = {
|
|
|
139
123
|
error_message: isSet(object.error_message) ? globalThis.String(object.error_message) : undefined,
|
|
140
124
|
error_code: isSet(object.error_code) ? globalThis.String(object.error_code) : undefined,
|
|
141
125
|
netbanking_url: isSet(object.netbanking_url) ? globalThis.String(object.netbanking_url) : undefined,
|
|
142
|
-
is_popular: isSet(object.is_popular) ? globalThis.Boolean(object.is_popular) : undefined,
|
|
143
126
|
};
|
|
144
127
|
},
|
|
145
128
|
toJSON(message) {
|
|
@@ -159,9 +142,6 @@ exports.getBankListResponse = {
|
|
|
159
142
|
if (message.netbanking_url !== undefined) {
|
|
160
143
|
obj.netbanking_url = message.netbanking_url;
|
|
161
144
|
}
|
|
162
|
-
if (message.is_popular !== undefined) {
|
|
163
|
-
obj.is_popular = message.is_popular;
|
|
164
|
-
}
|
|
165
145
|
return obj;
|
|
166
146
|
},
|
|
167
147
|
create(base) {
|
|
@@ -174,12 +154,18 @@ exports.getBankListResponse = {
|
|
|
174
154
|
message.error_message = object.error_message ?? undefined;
|
|
175
155
|
message.error_code = object.error_code ?? undefined;
|
|
176
156
|
message.netbanking_url = object.netbanking_url ?? undefined;
|
|
177
|
-
message.is_popular = object.is_popular ?? undefined;
|
|
178
157
|
return message;
|
|
179
158
|
},
|
|
180
159
|
};
|
|
181
160
|
function createBaseBankData() {
|
|
182
|
-
return {
|
|
161
|
+
return {
|
|
162
|
+
id: "",
|
|
163
|
+
name: "",
|
|
164
|
+
logo_url: undefined,
|
|
165
|
+
net_banking_enabled: false,
|
|
166
|
+
pdf_journey_enabled: false,
|
|
167
|
+
is_popular: false,
|
|
168
|
+
};
|
|
183
169
|
}
|
|
184
170
|
exports.BankData = {
|
|
185
171
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -198,6 +184,9 @@ exports.BankData = {
|
|
|
198
184
|
if (message.pdf_journey_enabled !== false) {
|
|
199
185
|
writer.uint32(40).bool(message.pdf_journey_enabled);
|
|
200
186
|
}
|
|
187
|
+
if (message.is_popular !== false) {
|
|
188
|
+
writer.uint32(48).bool(message.is_popular);
|
|
189
|
+
}
|
|
201
190
|
return writer;
|
|
202
191
|
},
|
|
203
192
|
decode(input, length) {
|
|
@@ -237,6 +226,12 @@ exports.BankData = {
|
|
|
237
226
|
}
|
|
238
227
|
message.pdf_journey_enabled = reader.bool();
|
|
239
228
|
continue;
|
|
229
|
+
case 6:
|
|
230
|
+
if (tag !== 48) {
|
|
231
|
+
break;
|
|
232
|
+
}
|
|
233
|
+
message.is_popular = reader.bool();
|
|
234
|
+
continue;
|
|
240
235
|
}
|
|
241
236
|
if ((tag & 7) === 4 || tag === 0) {
|
|
242
237
|
break;
|
|
@@ -252,6 +247,7 @@ exports.BankData = {
|
|
|
252
247
|
logo_url: isSet(object.logo_url) ? globalThis.String(object.logo_url) : undefined,
|
|
253
248
|
net_banking_enabled: isSet(object.net_banking_enabled) ? globalThis.Boolean(object.net_banking_enabled) : false,
|
|
254
249
|
pdf_journey_enabled: isSet(object.pdf_journey_enabled) ? globalThis.Boolean(object.pdf_journey_enabled) : false,
|
|
250
|
+
is_popular: isSet(object.is_popular) ? globalThis.Boolean(object.is_popular) : false,
|
|
255
251
|
};
|
|
256
252
|
},
|
|
257
253
|
toJSON(message) {
|
|
@@ -271,6 +267,9 @@ exports.BankData = {
|
|
|
271
267
|
if (message.pdf_journey_enabled !== false) {
|
|
272
268
|
obj.pdf_journey_enabled = message.pdf_journey_enabled;
|
|
273
269
|
}
|
|
270
|
+
if (message.is_popular !== false) {
|
|
271
|
+
obj.is_popular = message.is_popular;
|
|
272
|
+
}
|
|
274
273
|
return obj;
|
|
275
274
|
},
|
|
276
275
|
create(base) {
|
|
@@ -283,6 +282,7 @@ exports.BankData = {
|
|
|
283
282
|
message.logo_url = object.logo_url ?? undefined;
|
|
284
283
|
message.net_banking_enabled = object.net_banking_enabled ?? false;
|
|
285
284
|
message.pdf_journey_enabled = object.pdf_journey_enabled ?? false;
|
|
285
|
+
message.is_popular = object.is_popular ?? false;
|
|
286
286
|
return message;
|
|
287
287
|
},
|
|
288
288
|
};
|
|
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "banking.aa.initiate";
|
|
16
16
|
function createBaseinitiateRequest() {
|
|
17
|
-
return { loan_id: 0, journey_type: "",
|
|
17
|
+
return { loan_id: 0, journey_type: "", bank_ids: [], customer_id: 0 };
|
|
18
18
|
}
|
|
19
19
|
exports.initiateRequest = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -24,7 +24,7 @@ exports.initiateRequest = {
|
|
|
24
24
|
if (message.journey_type !== "") {
|
|
25
25
|
writer.uint32(18).string(message.journey_type);
|
|
26
26
|
}
|
|
27
|
-
for (const v of message.
|
|
27
|
+
for (const v of message.bank_ids) {
|
|
28
28
|
writer.uint32(26).string(v);
|
|
29
29
|
}
|
|
30
30
|
if (message.customer_id !== 0) {
|
|
@@ -55,7 +55,7 @@ exports.initiateRequest = {
|
|
|
55
55
|
if (tag !== 26) {
|
|
56
56
|
break;
|
|
57
57
|
}
|
|
58
|
-
message.
|
|
58
|
+
message.bank_ids.push(reader.string());
|
|
59
59
|
continue;
|
|
60
60
|
case 4:
|
|
61
61
|
if (tag !== 32) {
|
|
@@ -75,7 +75,7 @@ exports.initiateRequest = {
|
|
|
75
75
|
return {
|
|
76
76
|
loan_id: isSet(object.loan_id) ? globalThis.Number(object.loan_id) : 0,
|
|
77
77
|
journey_type: isSet(object.journey_type) ? globalThis.String(object.journey_type) : "",
|
|
78
|
-
|
|
78
|
+
bank_ids: globalThis.Array.isArray(object?.bank_ids) ? object.bank_ids.map((e) => globalThis.String(e)) : [],
|
|
79
79
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
80
80
|
};
|
|
81
81
|
},
|
|
@@ -87,8 +87,8 @@ exports.initiateRequest = {
|
|
|
87
87
|
if (message.journey_type !== "") {
|
|
88
88
|
obj.journey_type = message.journey_type;
|
|
89
89
|
}
|
|
90
|
-
if (message.
|
|
91
|
-
obj.
|
|
90
|
+
if (message.bank_ids?.length) {
|
|
91
|
+
obj.bank_ids = message.bank_ids;
|
|
92
92
|
}
|
|
93
93
|
if (message.customer_id !== 0) {
|
|
94
94
|
obj.customer_id = Math.round(message.customer_id);
|
|
@@ -102,7 +102,7 @@ exports.initiateRequest = {
|
|
|
102
102
|
const message = createBaseinitiateRequest();
|
|
103
103
|
message.loan_id = object.loan_id ?? 0;
|
|
104
104
|
message.journey_type = object.journey_type ?? "";
|
|
105
|
-
message.
|
|
105
|
+
message.bank_ids = object.bank_ids?.map((e) => e) || [];
|
|
106
106
|
message.customer_id = object.customer_id ?? 0;
|
|
107
107
|
return message;
|
|
108
108
|
},
|