@stashfin/grpc 1.2.575 → 1.2.577
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.d.ts +0 -14
- package/ts/customers.js +0 -10
- package/ts/payments/nachregistration.d.ts +9 -0
- package/ts/payments/nachregistration.js +55 -1
package/package.json
CHANGED
package/ts/customers.d.ts
CHANGED
|
@@ -53,7 +53,6 @@ import { getBasicInfoRequest, getBasicInfoResponse } from "./customers/getbasici
|
|
|
53
53
|
import { getCitiesRequest, getCitiesResponse } from "./customers/getcities";
|
|
54
54
|
import { getCliStatusRequest, getCliStatusResponse } from "./customers/getclistatus";
|
|
55
55
|
import { getCompanyAccDetailsRequest, getCompanyAccDetailsResponse } from "./customers/getcompanyaccdetails";
|
|
56
|
-
import { getCustomerRequest as getCustomerRequest1, getCustomerResponse as getCustomerResponse2 } from "./customers/getcustomer";
|
|
57
56
|
import { getCustomerByIdRequest, getCustomerByIdResponse } from "./customers/getcustomerbyid";
|
|
58
57
|
import { getCustomerDetailsRequest, getCustomerDetailsResponse } from "./customers/getcustomerdetailsbymobile";
|
|
59
58
|
import { getDashboardRequest, getDashboardResponse } from "./customers/getdashboard";
|
|
@@ -1180,15 +1179,6 @@ export declare const customersService: {
|
|
|
1180
1179
|
readonly responseSerialize: (value: getMessengerModeResponse) => Buffer;
|
|
1181
1180
|
readonly responseDeserialize: (value: Buffer) => getMessengerModeResponse;
|
|
1182
1181
|
};
|
|
1183
|
-
readonly getCustomer: {
|
|
1184
|
-
readonly path: "/service.customers/getCustomer";
|
|
1185
|
-
readonly requestStream: false;
|
|
1186
|
-
readonly responseStream: false;
|
|
1187
|
-
readonly requestSerialize: (value: getCustomerRequest1) => Buffer;
|
|
1188
|
-
readonly requestDeserialize: (value: Buffer) => getCustomerRequest1;
|
|
1189
|
-
readonly responseSerialize: (value: getCustomerResponse2) => Buffer;
|
|
1190
|
-
readonly responseDeserialize: (value: Buffer) => getCustomerResponse2;
|
|
1191
|
-
};
|
|
1192
1182
|
};
|
|
1193
1183
|
export interface customersServer extends UntypedServiceImplementation {
|
|
1194
1184
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -1309,7 +1299,6 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
1309
1299
|
applyLamf: handleUnaryCall<applyLamfRequest, applyLamfResponse>;
|
|
1310
1300
|
updateSanctionAmount: handleUnaryCall<updateSanctionAmountRequest, updateSanctionAmountResponse>;
|
|
1311
1301
|
getMessengerMode: handleUnaryCall<getMessengerModeRequest, getMessengerModeResponse>;
|
|
1312
|
-
getCustomer: handleUnaryCall<getCustomerRequest1, getCustomerResponse2>;
|
|
1313
1302
|
}
|
|
1314
1303
|
export interface customersClient extends Client {
|
|
1315
1304
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -1666,9 +1655,6 @@ export interface customersClient extends Client {
|
|
|
1666
1655
|
getMessengerMode(request: getMessengerModeRequest, callback: (error: ServiceError | null, response: getMessengerModeResponse) => void): ClientUnaryCall;
|
|
1667
1656
|
getMessengerMode(request: getMessengerModeRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getMessengerModeResponse) => void): ClientUnaryCall;
|
|
1668
1657
|
getMessengerMode(request: getMessengerModeRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getMessengerModeResponse) => void): ClientUnaryCall;
|
|
1669
|
-
getCustomer(request: getCustomerRequest1, callback: (error: ServiceError | null, response: getCustomerResponse2) => void): ClientUnaryCall;
|
|
1670
|
-
getCustomer(request: getCustomerRequest1, metadata: Metadata, callback: (error: ServiceError | null, response: getCustomerResponse2) => void): ClientUnaryCall;
|
|
1671
|
-
getCustomer(request: getCustomerRequest1, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getCustomerResponse2) => void): ClientUnaryCall;
|
|
1672
1658
|
}
|
|
1673
1659
|
export declare const customersClient: {
|
|
1674
1660
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -62,7 +62,6 @@ const getbasicinfo_1 = require("./customers/getbasicinfo");
|
|
|
62
62
|
const getcities_1 = require("./customers/getcities");
|
|
63
63
|
const getclistatus_1 = require("./customers/getclistatus");
|
|
64
64
|
const getcompanyaccdetails_1 = require("./customers/getcompanyaccdetails");
|
|
65
|
-
const getcustomer_1 = require("./customers/getcustomer");
|
|
66
65
|
const getcustomerbyid_1 = require("./customers/getcustomerbyid");
|
|
67
66
|
const getcustomerdetailsbymobile_1 = require("./customers/getcustomerdetailsbymobile");
|
|
68
67
|
const getdashboard_1 = require("./customers/getdashboard");
|
|
@@ -1188,14 +1187,5 @@ exports.customersService = {
|
|
|
1188
1187
|
responseSerialize: (value) => Buffer.from(getmessengermode_1.getMessengerModeResponse.encode(value).finish()),
|
|
1189
1188
|
responseDeserialize: (value) => getmessengermode_1.getMessengerModeResponse.decode(value),
|
|
1190
1189
|
},
|
|
1191
|
-
getCustomer: {
|
|
1192
|
-
path: "/service.customers/getCustomer",
|
|
1193
|
-
requestStream: false,
|
|
1194
|
-
responseStream: false,
|
|
1195
|
-
requestSerialize: (value) => Buffer.from(getcustomer_1.getCustomerRequest.encode(value).finish()),
|
|
1196
|
-
requestDeserialize: (value) => getcustomer_1.getCustomerRequest.decode(value),
|
|
1197
|
-
responseSerialize: (value) => Buffer.from(getcustomer_1.getCustomerResponse.encode(value).finish()),
|
|
1198
|
-
responseDeserialize: (value) => getcustomer_1.getCustomerResponse.decode(value),
|
|
1199
|
-
},
|
|
1200
1190
|
};
|
|
1201
1191
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import _m0 from "protobufjs/minimal";
|
|
2
2
|
export declare const protobufPackage = "payments.nachregistration";
|
|
3
|
+
export declare enum MandatePartner {
|
|
4
|
+
INVALID = 0,
|
|
5
|
+
LOTUSPAY = 1,
|
|
6
|
+
DIGIO = 2,
|
|
7
|
+
UNRECOGNIZED = -1
|
|
8
|
+
}
|
|
9
|
+
export declare function mandatePartnerFromJSON(object: any): MandatePartner;
|
|
10
|
+
export declare function mandatePartnerToJSON(object: MandatePartner): string;
|
|
3
11
|
export interface request {
|
|
4
12
|
customer_id: number;
|
|
5
13
|
client_id: string;
|
|
@@ -10,6 +18,7 @@ export interface request {
|
|
|
10
18
|
maximum_amount: number;
|
|
11
19
|
external_order_id: string;
|
|
12
20
|
vpa_id?: string | undefined;
|
|
21
|
+
gatewayIdentifier?: MandatePartner | undefined;
|
|
13
22
|
}
|
|
14
23
|
export interface response {
|
|
15
24
|
status: string;
|
|
@@ -8,11 +8,50 @@ 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.response_Data = exports.response = exports.request = exports.protobufPackage = void 0;
|
|
11
|
+
exports.response_Data = exports.response = exports.request = exports.MandatePartner = exports.protobufPackage = void 0;
|
|
12
|
+
exports.mandatePartnerFromJSON = mandatePartnerFromJSON;
|
|
13
|
+
exports.mandatePartnerToJSON = mandatePartnerToJSON;
|
|
12
14
|
/* eslint-disable */
|
|
13
15
|
const long_1 = __importDefault(require("long"));
|
|
14
16
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
17
|
exports.protobufPackage = "payments.nachregistration";
|
|
18
|
+
var MandatePartner;
|
|
19
|
+
(function (MandatePartner) {
|
|
20
|
+
MandatePartner[MandatePartner["INVALID"] = 0] = "INVALID";
|
|
21
|
+
MandatePartner[MandatePartner["LOTUSPAY"] = 1] = "LOTUSPAY";
|
|
22
|
+
MandatePartner[MandatePartner["DIGIO"] = 2] = "DIGIO";
|
|
23
|
+
MandatePartner[MandatePartner["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
24
|
+
})(MandatePartner || (exports.MandatePartner = MandatePartner = {}));
|
|
25
|
+
function mandatePartnerFromJSON(object) {
|
|
26
|
+
switch (object) {
|
|
27
|
+
case 0:
|
|
28
|
+
case "INVALID":
|
|
29
|
+
return MandatePartner.INVALID;
|
|
30
|
+
case 1:
|
|
31
|
+
case "LOTUSPAY":
|
|
32
|
+
return MandatePartner.LOTUSPAY;
|
|
33
|
+
case 2:
|
|
34
|
+
case "DIGIO":
|
|
35
|
+
return MandatePartner.DIGIO;
|
|
36
|
+
case -1:
|
|
37
|
+
case "UNRECOGNIZED":
|
|
38
|
+
default:
|
|
39
|
+
return MandatePartner.UNRECOGNIZED;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
function mandatePartnerToJSON(object) {
|
|
43
|
+
switch (object) {
|
|
44
|
+
case MandatePartner.INVALID:
|
|
45
|
+
return "INVALID";
|
|
46
|
+
case MandatePartner.LOTUSPAY:
|
|
47
|
+
return "LOTUSPAY";
|
|
48
|
+
case MandatePartner.DIGIO:
|
|
49
|
+
return "DIGIO";
|
|
50
|
+
case MandatePartner.UNRECOGNIZED:
|
|
51
|
+
default:
|
|
52
|
+
return "UNRECOGNIZED";
|
|
53
|
+
}
|
|
54
|
+
}
|
|
16
55
|
function createBaserequest() {
|
|
17
56
|
return {
|
|
18
57
|
customer_id: 0,
|
|
@@ -24,6 +63,7 @@ function createBaserequest() {
|
|
|
24
63
|
maximum_amount: 0,
|
|
25
64
|
external_order_id: "",
|
|
26
65
|
vpa_id: undefined,
|
|
66
|
+
gatewayIdentifier: undefined,
|
|
27
67
|
};
|
|
28
68
|
}
|
|
29
69
|
exports.request = {
|
|
@@ -55,6 +95,9 @@ exports.request = {
|
|
|
55
95
|
if (message.vpa_id !== undefined) {
|
|
56
96
|
writer.uint32(74).string(message.vpa_id);
|
|
57
97
|
}
|
|
98
|
+
if (message.gatewayIdentifier !== undefined) {
|
|
99
|
+
writer.uint32(80).int32(message.gatewayIdentifier);
|
|
100
|
+
}
|
|
58
101
|
return writer;
|
|
59
102
|
},
|
|
60
103
|
decode(input, length) {
|
|
@@ -118,6 +161,12 @@ exports.request = {
|
|
|
118
161
|
}
|
|
119
162
|
message.vpa_id = reader.string();
|
|
120
163
|
continue;
|
|
164
|
+
case 10:
|
|
165
|
+
if (tag !== 80) {
|
|
166
|
+
break;
|
|
167
|
+
}
|
|
168
|
+
message.gatewayIdentifier = reader.int32();
|
|
169
|
+
continue;
|
|
121
170
|
}
|
|
122
171
|
if ((tag & 7) === 4 || tag === 0) {
|
|
123
172
|
break;
|
|
@@ -139,6 +188,7 @@ exports.request = {
|
|
|
139
188
|
maximum_amount: isSet(object.maximum_amount) ? globalThis.Number(object.maximum_amount) : 0,
|
|
140
189
|
external_order_id: isSet(object.external_order_id) ? globalThis.String(object.external_order_id) : "",
|
|
141
190
|
vpa_id: isSet(object.vpa_id) ? globalThis.String(object.vpa_id) : undefined,
|
|
191
|
+
gatewayIdentifier: isSet(object.gatewayIdentifier) ? mandatePartnerFromJSON(object.gatewayIdentifier) : undefined,
|
|
142
192
|
};
|
|
143
193
|
},
|
|
144
194
|
toJSON(message) {
|
|
@@ -170,6 +220,9 @@ exports.request = {
|
|
|
170
220
|
if (message.vpa_id !== undefined) {
|
|
171
221
|
obj.vpa_id = message.vpa_id;
|
|
172
222
|
}
|
|
223
|
+
if (message.gatewayIdentifier !== undefined) {
|
|
224
|
+
obj.gatewayIdentifier = mandatePartnerToJSON(message.gatewayIdentifier);
|
|
225
|
+
}
|
|
173
226
|
return obj;
|
|
174
227
|
},
|
|
175
228
|
create(base) {
|
|
@@ -186,6 +239,7 @@ exports.request = {
|
|
|
186
239
|
message.maximum_amount = object.maximum_amount ?? 0;
|
|
187
240
|
message.external_order_id = object.external_order_id ?? "";
|
|
188
241
|
message.vpa_id = object.vpa_id ?? undefined;
|
|
242
|
+
message.gatewayIdentifier = object.gatewayIdentifier ?? undefined;
|
|
189
243
|
return message;
|
|
190
244
|
},
|
|
191
245
|
};
|