@stashfin/grpc 1.2.602 → 1.2.603
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/banking/aa/getcustomerbank.d.ts +37 -0
- package/ts/banking/aa/getcustomerbank.js +161 -0
- package/ts/banking.d.ts +14 -0
- package/ts/banking.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "banking.aa.getcustomerbank";
|
|
3
|
+
export interface getCustomerBankRequest {
|
|
4
|
+
customer_id: number;
|
|
5
|
+
}
|
|
6
|
+
export interface getCustomerBankResponse {
|
|
7
|
+
account_number: string;
|
|
8
|
+
ifsc_code: string;
|
|
9
|
+
customer_name: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const getCustomerBankRequest: {
|
|
12
|
+
encode(message: getCustomerBankRequest, writer?: _m0.Writer): _m0.Writer;
|
|
13
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerBankRequest;
|
|
14
|
+
fromJSON(object: any): getCustomerBankRequest;
|
|
15
|
+
toJSON(message: getCustomerBankRequest): unknown;
|
|
16
|
+
create<I extends Exact<DeepPartial<getCustomerBankRequest>, I>>(base?: I): getCustomerBankRequest;
|
|
17
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerBankRequest>, I>>(object: I): getCustomerBankRequest;
|
|
18
|
+
};
|
|
19
|
+
export declare const getCustomerBankResponse: {
|
|
20
|
+
encode(message: getCustomerBankResponse, writer?: _m0.Writer): _m0.Writer;
|
|
21
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getCustomerBankResponse;
|
|
22
|
+
fromJSON(object: any): getCustomerBankResponse;
|
|
23
|
+
toJSON(message: getCustomerBankResponse): unknown;
|
|
24
|
+
create<I extends Exact<DeepPartial<getCustomerBankResponse>, I>>(base?: I): getCustomerBankResponse;
|
|
25
|
+
fromPartial<I extends Exact<DeepPartial<getCustomerBankResponse>, I>>(object: I): getCustomerBankResponse;
|
|
26
|
+
};
|
|
27
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
+
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
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
30
|
+
} : Partial<T>;
|
|
31
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
32
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
33
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
34
|
+
} & {
|
|
35
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
36
|
+
};
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,161 @@
|
|
|
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.29.3
|
|
6
|
+
// source: banking/aa/getcustomerbank.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.getCustomerBankResponse = exports.getCustomerBankRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const long_1 = __importDefault(require("long"));
|
|
14
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
|
+
exports.protobufPackage = "banking.aa.getcustomerbank";
|
|
16
|
+
function createBasegetCustomerBankRequest() {
|
|
17
|
+
return { customer_id: 0 };
|
|
18
|
+
}
|
|
19
|
+
exports.getCustomerBankRequest = {
|
|
20
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
|
+
if (message.customer_id !== 0) {
|
|
22
|
+
writer.uint32(8).int64(message.customer_id);
|
|
23
|
+
}
|
|
24
|
+
return writer;
|
|
25
|
+
},
|
|
26
|
+
decode(input, length) {
|
|
27
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
28
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
29
|
+
const message = createBasegetCustomerBankRequest();
|
|
30
|
+
while (reader.pos < end) {
|
|
31
|
+
const tag = reader.uint32();
|
|
32
|
+
switch (tag >>> 3) {
|
|
33
|
+
case 1:
|
|
34
|
+
if (tag !== 8) {
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
message.customer_id = longToNumber(reader.int64());
|
|
38
|
+
continue;
|
|
39
|
+
}
|
|
40
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
reader.skipType(tag & 7);
|
|
44
|
+
}
|
|
45
|
+
return message;
|
|
46
|
+
},
|
|
47
|
+
fromJSON(object) {
|
|
48
|
+
return { customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0 };
|
|
49
|
+
},
|
|
50
|
+
toJSON(message) {
|
|
51
|
+
const obj = {};
|
|
52
|
+
if (message.customer_id !== 0) {
|
|
53
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
54
|
+
}
|
|
55
|
+
return obj;
|
|
56
|
+
},
|
|
57
|
+
create(base) {
|
|
58
|
+
return exports.getCustomerBankRequest.fromPartial(base ?? {});
|
|
59
|
+
},
|
|
60
|
+
fromPartial(object) {
|
|
61
|
+
const message = createBasegetCustomerBankRequest();
|
|
62
|
+
message.customer_id = object.customer_id ?? 0;
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
};
|
|
66
|
+
function createBasegetCustomerBankResponse() {
|
|
67
|
+
return { account_number: "", ifsc_code: "", customer_name: "" };
|
|
68
|
+
}
|
|
69
|
+
exports.getCustomerBankResponse = {
|
|
70
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
71
|
+
if (message.account_number !== "") {
|
|
72
|
+
writer.uint32(10).string(message.account_number);
|
|
73
|
+
}
|
|
74
|
+
if (message.ifsc_code !== "") {
|
|
75
|
+
writer.uint32(18).string(message.ifsc_code);
|
|
76
|
+
}
|
|
77
|
+
if (message.customer_name !== "") {
|
|
78
|
+
writer.uint32(26).string(message.customer_name);
|
|
79
|
+
}
|
|
80
|
+
return writer;
|
|
81
|
+
},
|
|
82
|
+
decode(input, length) {
|
|
83
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
84
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
85
|
+
const message = createBasegetCustomerBankResponse();
|
|
86
|
+
while (reader.pos < end) {
|
|
87
|
+
const tag = reader.uint32();
|
|
88
|
+
switch (tag >>> 3) {
|
|
89
|
+
case 1:
|
|
90
|
+
if (tag !== 10) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
message.account_number = reader.string();
|
|
94
|
+
continue;
|
|
95
|
+
case 2:
|
|
96
|
+
if (tag !== 18) {
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
message.ifsc_code = reader.string();
|
|
100
|
+
continue;
|
|
101
|
+
case 3:
|
|
102
|
+
if (tag !== 26) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
message.customer_name = reader.string();
|
|
106
|
+
continue;
|
|
107
|
+
}
|
|
108
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
reader.skipType(tag & 7);
|
|
112
|
+
}
|
|
113
|
+
return message;
|
|
114
|
+
},
|
|
115
|
+
fromJSON(object) {
|
|
116
|
+
return {
|
|
117
|
+
account_number: isSet(object.account_number) ? globalThis.String(object.account_number) : "",
|
|
118
|
+
ifsc_code: isSet(object.ifsc_code) ? globalThis.String(object.ifsc_code) : "",
|
|
119
|
+
customer_name: isSet(object.customer_name) ? globalThis.String(object.customer_name) : "",
|
|
120
|
+
};
|
|
121
|
+
},
|
|
122
|
+
toJSON(message) {
|
|
123
|
+
const obj = {};
|
|
124
|
+
if (message.account_number !== "") {
|
|
125
|
+
obj.account_number = message.account_number;
|
|
126
|
+
}
|
|
127
|
+
if (message.ifsc_code !== "") {
|
|
128
|
+
obj.ifsc_code = message.ifsc_code;
|
|
129
|
+
}
|
|
130
|
+
if (message.customer_name !== "") {
|
|
131
|
+
obj.customer_name = message.customer_name;
|
|
132
|
+
}
|
|
133
|
+
return obj;
|
|
134
|
+
},
|
|
135
|
+
create(base) {
|
|
136
|
+
return exports.getCustomerBankResponse.fromPartial(base ?? {});
|
|
137
|
+
},
|
|
138
|
+
fromPartial(object) {
|
|
139
|
+
const message = createBasegetCustomerBankResponse();
|
|
140
|
+
message.account_number = object.account_number ?? "";
|
|
141
|
+
message.ifsc_code = object.ifsc_code ?? "";
|
|
142
|
+
message.customer_name = object.customer_name ?? "";
|
|
143
|
+
return message;
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
function longToNumber(long) {
|
|
147
|
+
if (long.gt(globalThis.Number.MAX_SAFE_INTEGER)) {
|
|
148
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
149
|
+
}
|
|
150
|
+
if (long.lt(globalThis.Number.MIN_SAFE_INTEGER)) {
|
|
151
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
152
|
+
}
|
|
153
|
+
return long.toNumber();
|
|
154
|
+
}
|
|
155
|
+
if (minimal_1.default.util.Long !== long_1.default) {
|
|
156
|
+
minimal_1.default.util.Long = long_1.default;
|
|
157
|
+
minimal_1.default.configure();
|
|
158
|
+
}
|
|
159
|
+
function isSet(value) {
|
|
160
|
+
return value !== null && value !== undefined;
|
|
161
|
+
}
|
package/ts/banking.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
2
|
import { getAASupportRequest, getAASupportResponse } from "./banking/aa/getaasupport";
|
|
3
3
|
import { getBankListRequest, getBankListResponse } from "./banking/aa/getbanklist";
|
|
4
|
+
import { getCustomerBankRequest, getCustomerBankResponse } from "./banking/aa/getcustomerbank";
|
|
4
5
|
import { createRpdLinkRequest, createRpdLinkResponse } from "./banking/aa/getrpdlink";
|
|
5
6
|
import { initiateRequest, initiateResponse } from "./banking/aa/initiate";
|
|
6
7
|
import { pennyDropRequest, pennyDropResponse } from "./banking/aa/initiatepennydrop";
|
|
@@ -52,6 +53,15 @@ export declare const bankingService: {
|
|
|
52
53
|
readonly responseSerialize: (value: pennyDropResponse) => Buffer;
|
|
53
54
|
readonly responseDeserialize: (value: Buffer) => pennyDropResponse;
|
|
54
55
|
};
|
|
56
|
+
readonly getCustomerBank: {
|
|
57
|
+
readonly path: "/service.banking/getCustomerBank";
|
|
58
|
+
readonly requestStream: false;
|
|
59
|
+
readonly responseStream: false;
|
|
60
|
+
readonly requestSerialize: (value: getCustomerBankRequest) => Buffer;
|
|
61
|
+
readonly requestDeserialize: (value: Buffer) => getCustomerBankRequest;
|
|
62
|
+
readonly responseSerialize: (value: getCustomerBankResponse) => Buffer;
|
|
63
|
+
readonly responseDeserialize: (value: Buffer) => getCustomerBankResponse;
|
|
64
|
+
};
|
|
55
65
|
};
|
|
56
66
|
export interface bankingServer extends UntypedServiceImplementation {
|
|
57
67
|
getBankList: handleUnaryCall<getBankListRequest, getBankListResponse>;
|
|
@@ -59,6 +69,7 @@ export interface bankingServer extends UntypedServiceImplementation {
|
|
|
59
69
|
getRpdLink: handleUnaryCall<createRpdLinkRequest, createRpdLinkResponse>;
|
|
60
70
|
getAaSupport: handleUnaryCall<getAASupportRequest, getAASupportResponse>;
|
|
61
71
|
initiatePennyDrop: handleUnaryCall<pennyDropRequest, pennyDropResponse>;
|
|
72
|
+
getCustomerBank: handleUnaryCall<getCustomerBankRequest, getCustomerBankResponse>;
|
|
62
73
|
}
|
|
63
74
|
export interface bankingClient extends Client {
|
|
64
75
|
getBankList(request: getBankListRequest, callback: (error: ServiceError | null, response: getBankListResponse) => void): ClientUnaryCall;
|
|
@@ -76,6 +87,9 @@ export interface bankingClient extends Client {
|
|
|
76
87
|
initiatePennyDrop(request: pennyDropRequest, callback: (error: ServiceError | null, response: pennyDropResponse) => void): ClientUnaryCall;
|
|
77
88
|
initiatePennyDrop(request: pennyDropRequest, metadata: Metadata, callback: (error: ServiceError | null, response: pennyDropResponse) => void): ClientUnaryCall;
|
|
78
89
|
initiatePennyDrop(request: pennyDropRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: pennyDropResponse) => void): ClientUnaryCall;
|
|
90
|
+
getCustomerBank(request: getCustomerBankRequest, callback: (error: ServiceError | null, response: getCustomerBankResponse) => void): ClientUnaryCall;
|
|
91
|
+
getCustomerBank(request: getCustomerBankRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getCustomerBankResponse) => void): ClientUnaryCall;
|
|
92
|
+
getCustomerBank(request: getCustomerBankRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCustomerBankResponse) => void): ClientUnaryCall;
|
|
79
93
|
}
|
|
80
94
|
export declare const bankingClient: {
|
|
81
95
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): bankingClient;
|
package/ts/banking.js
CHANGED
|
@@ -10,6 +10,7 @@ exports.bankingClient = exports.bankingService = exports.protobufPackage = void
|
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
11
|
const getaasupport_1 = require("./banking/aa/getaasupport");
|
|
12
12
|
const getbanklist_1 = require("./banking/aa/getbanklist");
|
|
13
|
+
const getcustomerbank_1 = require("./banking/aa/getcustomerbank");
|
|
13
14
|
const getrpdlink_1 = require("./banking/aa/getrpdlink");
|
|
14
15
|
const initiate_1 = require("./banking/aa/initiate");
|
|
15
16
|
const initiatepennydrop_1 = require("./banking/aa/initiatepennydrop");
|
|
@@ -60,5 +61,14 @@ exports.bankingService = {
|
|
|
60
61
|
responseSerialize: (value) => Buffer.from(initiatepennydrop_1.pennyDropResponse.encode(value).finish()),
|
|
61
62
|
responseDeserialize: (value) => initiatepennydrop_1.pennyDropResponse.decode(value),
|
|
62
63
|
},
|
|
64
|
+
getCustomerBank: {
|
|
65
|
+
path: "/service.banking/getCustomerBank",
|
|
66
|
+
requestStream: false,
|
|
67
|
+
responseStream: false,
|
|
68
|
+
requestSerialize: (value) => Buffer.from(getcustomerbank_1.getCustomerBankRequest.encode(value).finish()),
|
|
69
|
+
requestDeserialize: (value) => getcustomerbank_1.getCustomerBankRequest.decode(value),
|
|
70
|
+
responseSerialize: (value) => Buffer.from(getcustomerbank_1.getCustomerBankResponse.encode(value).finish()),
|
|
71
|
+
responseDeserialize: (value) => getcustomerbank_1.getCustomerBankResponse.decode(value),
|
|
72
|
+
},
|
|
63
73
|
};
|
|
64
74
|
exports.bankingClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.bankingService, "service.banking");
|