@stashfin/grpc 1.2.615 → 1.2.617
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
|
@@ -4,9 +4,15 @@ export interface getCustomerBankRequest {
|
|
|
4
4
|
customer_id: number;
|
|
5
5
|
}
|
|
6
6
|
export interface getCustomerBankResponse {
|
|
7
|
+
status: string;
|
|
8
|
+
data: BankData[];
|
|
9
|
+
}
|
|
10
|
+
export interface BankData {
|
|
7
11
|
account_number: string;
|
|
8
12
|
ifsc_code: string;
|
|
9
13
|
customer_name: string;
|
|
14
|
+
is_primary: boolean;
|
|
15
|
+
bank_logo_url: string;
|
|
10
16
|
}
|
|
11
17
|
export declare const getCustomerBankRequest: {
|
|
12
18
|
encode(message: getCustomerBankRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -24,6 +30,14 @@ export declare const getCustomerBankResponse: {
|
|
|
24
30
|
create<I extends Exact<DeepPartial<getCustomerBankResponse>, I>>(base?: I): getCustomerBankResponse;
|
|
25
31
|
fromPartial<I extends Exact<DeepPartial<getCustomerBankResponse>, I>>(object: I): getCustomerBankResponse;
|
|
26
32
|
};
|
|
33
|
+
export declare const BankData: {
|
|
34
|
+
encode(message: BankData, writer?: _m0.Writer): _m0.Writer;
|
|
35
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BankData;
|
|
36
|
+
fromJSON(object: any): BankData;
|
|
37
|
+
toJSON(message: BankData): unknown;
|
|
38
|
+
create<I extends Exact<DeepPartial<BankData>, I>>(base?: I): BankData;
|
|
39
|
+
fromPartial<I extends Exact<DeepPartial<BankData>, I>>(object: I): BankData;
|
|
40
|
+
};
|
|
27
41
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
42
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
29
43
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
9
|
};
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.getCustomerBankResponse = exports.getCustomerBankRequest = exports.protobufPackage = void 0;
|
|
11
|
+
exports.BankData = exports.getCustomerBankResponse = exports.getCustomerBankRequest = exports.protobufPackage = void 0;
|
|
12
12
|
/* eslint-disable */
|
|
13
13
|
const long_1 = __importDefault(require("long"));
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -64,9 +64,75 @@ exports.getCustomerBankRequest = {
|
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
66
|
function createBasegetCustomerBankResponse() {
|
|
67
|
-
return {
|
|
67
|
+
return { status: "", data: [] };
|
|
68
68
|
}
|
|
69
69
|
exports.getCustomerBankResponse = {
|
|
70
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
71
|
+
if (message.status !== "") {
|
|
72
|
+
writer.uint32(10).string(message.status);
|
|
73
|
+
}
|
|
74
|
+
for (const v of message.data) {
|
|
75
|
+
exports.BankData.encode(v, writer.uint32(18).fork()).ldelim();
|
|
76
|
+
}
|
|
77
|
+
return writer;
|
|
78
|
+
},
|
|
79
|
+
decode(input, length) {
|
|
80
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
81
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
82
|
+
const message = createBasegetCustomerBankResponse();
|
|
83
|
+
while (reader.pos < end) {
|
|
84
|
+
const tag = reader.uint32();
|
|
85
|
+
switch (tag >>> 3) {
|
|
86
|
+
case 1:
|
|
87
|
+
if (tag !== 10) {
|
|
88
|
+
break;
|
|
89
|
+
}
|
|
90
|
+
message.status = reader.string();
|
|
91
|
+
continue;
|
|
92
|
+
case 2:
|
|
93
|
+
if (tag !== 18) {
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
message.data.push(exports.BankData.decode(reader, reader.uint32()));
|
|
97
|
+
continue;
|
|
98
|
+
}
|
|
99
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
100
|
+
break;
|
|
101
|
+
}
|
|
102
|
+
reader.skipType(tag & 7);
|
|
103
|
+
}
|
|
104
|
+
return message;
|
|
105
|
+
},
|
|
106
|
+
fromJSON(object) {
|
|
107
|
+
return {
|
|
108
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
109
|
+
data: globalThis.Array.isArray(object?.data) ? object.data.map((e) => exports.BankData.fromJSON(e)) : [],
|
|
110
|
+
};
|
|
111
|
+
},
|
|
112
|
+
toJSON(message) {
|
|
113
|
+
const obj = {};
|
|
114
|
+
if (message.status !== "") {
|
|
115
|
+
obj.status = message.status;
|
|
116
|
+
}
|
|
117
|
+
if (message.data?.length) {
|
|
118
|
+
obj.data = message.data.map((e) => exports.BankData.toJSON(e));
|
|
119
|
+
}
|
|
120
|
+
return obj;
|
|
121
|
+
},
|
|
122
|
+
create(base) {
|
|
123
|
+
return exports.getCustomerBankResponse.fromPartial(base ?? {});
|
|
124
|
+
},
|
|
125
|
+
fromPartial(object) {
|
|
126
|
+
const message = createBasegetCustomerBankResponse();
|
|
127
|
+
message.status = object.status ?? "";
|
|
128
|
+
message.data = object.data?.map((e) => exports.BankData.fromPartial(e)) || [];
|
|
129
|
+
return message;
|
|
130
|
+
},
|
|
131
|
+
};
|
|
132
|
+
function createBaseBankData() {
|
|
133
|
+
return { account_number: "", ifsc_code: "", customer_name: "", is_primary: false, bank_logo_url: "" };
|
|
134
|
+
}
|
|
135
|
+
exports.BankData = {
|
|
70
136
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
71
137
|
if (message.account_number !== "") {
|
|
72
138
|
writer.uint32(10).string(message.account_number);
|
|
@@ -77,12 +143,18 @@ exports.getCustomerBankResponse = {
|
|
|
77
143
|
if (message.customer_name !== "") {
|
|
78
144
|
writer.uint32(26).string(message.customer_name);
|
|
79
145
|
}
|
|
146
|
+
if (message.is_primary !== false) {
|
|
147
|
+
writer.uint32(32).bool(message.is_primary);
|
|
148
|
+
}
|
|
149
|
+
if (message.bank_logo_url !== "") {
|
|
150
|
+
writer.uint32(42).string(message.bank_logo_url);
|
|
151
|
+
}
|
|
80
152
|
return writer;
|
|
81
153
|
},
|
|
82
154
|
decode(input, length) {
|
|
83
155
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
84
156
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
85
|
-
const message =
|
|
157
|
+
const message = createBaseBankData();
|
|
86
158
|
while (reader.pos < end) {
|
|
87
159
|
const tag = reader.uint32();
|
|
88
160
|
switch (tag >>> 3) {
|
|
@@ -104,6 +176,18 @@ exports.getCustomerBankResponse = {
|
|
|
104
176
|
}
|
|
105
177
|
message.customer_name = reader.string();
|
|
106
178
|
continue;
|
|
179
|
+
case 4:
|
|
180
|
+
if (tag !== 32) {
|
|
181
|
+
break;
|
|
182
|
+
}
|
|
183
|
+
message.is_primary = reader.bool();
|
|
184
|
+
continue;
|
|
185
|
+
case 5:
|
|
186
|
+
if (tag !== 42) {
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
message.bank_logo_url = reader.string();
|
|
190
|
+
continue;
|
|
107
191
|
}
|
|
108
192
|
if ((tag & 7) === 4 || tag === 0) {
|
|
109
193
|
break;
|
|
@@ -117,6 +201,8 @@ exports.getCustomerBankResponse = {
|
|
|
117
201
|
account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
|
|
118
202
|
ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
|
|
119
203
|
customer_name: isSet(object.customer_name) ? globalThis.String(object.customer_name) : "",
|
|
204
|
+
is_primary: isSet(object.is_primary) ? globalThis.Boolean(object.is_primary) : false,
|
|
205
|
+
bank_logo_url: isSet(object.bank_logo_url) ? globalThis.String(object.bank_logo_url) : "",
|
|
120
206
|
};
|
|
121
207
|
},
|
|
122
208
|
toJSON(message) {
|
|
@@ -130,16 +216,24 @@ exports.getCustomerBankResponse = {
|
|
|
130
216
|
if (message.customer_name !== "") {
|
|
131
217
|
obj.customer_name = message.customer_name;
|
|
132
218
|
}
|
|
219
|
+
if (message.is_primary !== false) {
|
|
220
|
+
obj.is_primary = message.is_primary;
|
|
221
|
+
}
|
|
222
|
+
if (message.bank_logo_url !== "") {
|
|
223
|
+
obj.bank_logo_url = message.bank_logo_url;
|
|
224
|
+
}
|
|
133
225
|
return obj;
|
|
134
226
|
},
|
|
135
227
|
create(base) {
|
|
136
|
-
return exports.
|
|
228
|
+
return exports.BankData.fromPartial(base ?? {});
|
|
137
229
|
},
|
|
138
230
|
fromPartial(object) {
|
|
139
|
-
const message =
|
|
231
|
+
const message = createBaseBankData();
|
|
140
232
|
message.account_number = object.account_number ?? "";
|
|
141
233
|
message.ifsc_code = object.ifsc_code ?? "";
|
|
142
234
|
message.customer_name = object.customer_name ?? "";
|
|
235
|
+
message.is_primary = object.is_primary ?? false;
|
|
236
|
+
message.bank_logo_url = object.bank_logo_url ?? "";
|
|
143
237
|
return message;
|
|
144
238
|
},
|
|
145
239
|
};
|
|
@@ -64,7 +64,7 @@ exports.inputPerfiosRequest = {
|
|
|
64
64
|
},
|
|
65
65
|
};
|
|
66
66
|
function createBaseOutputPerfiosResponse() {
|
|
67
|
-
return { payload: "", signature: "", url: "" };
|
|
67
|
+
return { payload: "", signature: "", url: "", transaction_id: "" };
|
|
68
68
|
}
|
|
69
69
|
exports.OutputPerfiosResponse = {
|
|
70
70
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -77,6 +77,9 @@ exports.OutputPerfiosResponse = {
|
|
|
77
77
|
if (message.url !== "") {
|
|
78
78
|
writer.uint32(26).string(message.url);
|
|
79
79
|
}
|
|
80
|
+
if (message.transaction_id !== "") {
|
|
81
|
+
writer.uint32(34).string(message.transaction_id);
|
|
82
|
+
}
|
|
80
83
|
return writer;
|
|
81
84
|
},
|
|
82
85
|
decode(input, length) {
|
|
@@ -104,6 +107,12 @@ exports.OutputPerfiosResponse = {
|
|
|
104
107
|
}
|
|
105
108
|
message.url = reader.string();
|
|
106
109
|
continue;
|
|
110
|
+
case 4:
|
|
111
|
+
if (tag !== 34) {
|
|
112
|
+
break;
|
|
113
|
+
}
|
|
114
|
+
message.transaction_id = reader.string();
|
|
115
|
+
continue;
|
|
107
116
|
}
|
|
108
117
|
if ((tag & 7) === 4 || tag === 0) {
|
|
109
118
|
break;
|
|
@@ -117,6 +126,7 @@ exports.OutputPerfiosResponse = {
|
|
|
117
126
|
payload: isSet(object.payload) ? globalThis.String(object.payload) : "",
|
|
118
127
|
signature: isSet(object.signature) ? globalThis.String(object.signature) : "",
|
|
119
128
|
url: isSet(object.url) ? globalThis.String(object.url) : "",
|
|
129
|
+
transaction_id: isSet(object.transaction_id) ? globalThis.String(object.transaction_id) : "",
|
|
120
130
|
};
|
|
121
131
|
},
|
|
122
132
|
toJSON(message) {
|
|
@@ -130,6 +140,9 @@ exports.OutputPerfiosResponse = {
|
|
|
130
140
|
if (message.url !== "") {
|
|
131
141
|
obj.url = message.url;
|
|
132
142
|
}
|
|
143
|
+
if (message.transaction_id !== "") {
|
|
144
|
+
obj.transaction_id = message.transaction_id;
|
|
145
|
+
}
|
|
133
146
|
return obj;
|
|
134
147
|
},
|
|
135
148
|
create(base) {
|
|
@@ -140,6 +153,7 @@ exports.OutputPerfiosResponse = {
|
|
|
140
153
|
message.payload = object.payload ?? "";
|
|
141
154
|
message.signature = object.signature ?? "";
|
|
142
155
|
message.url = object.url ?? "";
|
|
156
|
+
message.transaction_id = object.transaction_id ?? "";
|
|
143
157
|
return message;
|
|
144
158
|
},
|
|
145
159
|
};
|