@stashfin/grpc 1.2.191 → 1.2.193
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/getcustomerbyid.d.ts +1 -1
- package/ts/customers/getcustomerbyid.js +8 -8
- package/ts/customers/getrpdlink.d.ts +40 -0
- package/ts/customers/getrpdlink.js +190 -0
- package/ts/customers.d.ts +14 -3
- package/ts/customers.js +10 -1
- package/ts/payments/nachpresentation.d.ts +1 -0
- package/ts/payments/nachpresentation.js +22 -8
- package/ts/payments/nachregistration.d.ts +1 -0
- package/ts/payments/nachregistration.js +30 -15
package/package.json
CHANGED
|
@@ -80,7 +80,7 @@ export interface getCustomerByIdResponse {
|
|
|
80
80
|
journey_inactive?: number | undefined;
|
|
81
81
|
repeat_journey?: number | undefined;
|
|
82
82
|
txn_rate?: number | undefined;
|
|
83
|
-
|
|
83
|
+
customer_id: number;
|
|
84
84
|
}
|
|
85
85
|
export interface Address {
|
|
86
86
|
house_flat_no?: string | undefined;
|
|
@@ -141,7 +141,7 @@ function createBasegetCustomerByIdResponse() {
|
|
|
141
141
|
journey_inactive: undefined,
|
|
142
142
|
repeat_journey: undefined,
|
|
143
143
|
txn_rate: undefined,
|
|
144
|
-
|
|
144
|
+
customer_id: 0,
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
147
|
exports.getCustomerByIdResponse = {
|
|
@@ -374,8 +374,8 @@ exports.getCustomerByIdResponse = {
|
|
|
374
374
|
if (message.txn_rate !== undefined) {
|
|
375
375
|
writer.uint32(613).float(message.txn_rate);
|
|
376
376
|
}
|
|
377
|
-
if (message.
|
|
378
|
-
writer.uint32(616).int64(message.
|
|
377
|
+
if (message.customer_id !== 0) {
|
|
378
|
+
writer.uint32(616).int64(message.customer_id);
|
|
379
379
|
}
|
|
380
380
|
return writer;
|
|
381
381
|
},
|
|
@@ -846,7 +846,7 @@ exports.getCustomerByIdResponse = {
|
|
|
846
846
|
if (tag !== 616) {
|
|
847
847
|
break;
|
|
848
848
|
}
|
|
849
|
-
message.
|
|
849
|
+
message.customer_id = longToNumber(reader.int64());
|
|
850
850
|
continue;
|
|
851
851
|
}
|
|
852
852
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -934,7 +934,7 @@ exports.getCustomerByIdResponse = {
|
|
|
934
934
|
journey_inactive: isSet(object.journey_inactive) ? globalThis.Number(object.journey_inactive) : undefined,
|
|
935
935
|
repeat_journey: isSet(object.repeat_journey) ? globalThis.Number(object.repeat_journey) : undefined,
|
|
936
936
|
txn_rate: isSet(object.txn_rate) ? globalThis.Number(object.txn_rate) : undefined,
|
|
937
|
-
|
|
937
|
+
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
938
938
|
};
|
|
939
939
|
},
|
|
940
940
|
toJSON(message) {
|
|
@@ -1167,8 +1167,8 @@ exports.getCustomerByIdResponse = {
|
|
|
1167
1167
|
if (message.txn_rate !== undefined) {
|
|
1168
1168
|
obj.txn_rate = message.txn_rate;
|
|
1169
1169
|
}
|
|
1170
|
-
if (message.
|
|
1171
|
-
obj.
|
|
1170
|
+
if (message.customer_id !== 0) {
|
|
1171
|
+
obj.customer_id = Math.round(message.customer_id);
|
|
1172
1172
|
}
|
|
1173
1173
|
return obj;
|
|
1174
1174
|
},
|
|
@@ -1261,7 +1261,7 @@ exports.getCustomerByIdResponse = {
|
|
|
1261
1261
|
message.journey_inactive = object.journey_inactive ?? undefined;
|
|
1262
1262
|
message.repeat_journey = object.repeat_journey ?? undefined;
|
|
1263
1263
|
message.txn_rate = object.txn_rate ?? undefined;
|
|
1264
|
-
message.
|
|
1264
|
+
message.customer_id = object.customer_id ?? 0;
|
|
1265
1265
|
return message;
|
|
1266
1266
|
},
|
|
1267
1267
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.getrpdlink";
|
|
3
|
+
export interface createRpdLinkRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface createRpdLinkResponse {
|
|
6
|
+
id: string;
|
|
7
|
+
shortUrl: string;
|
|
8
|
+
status: string;
|
|
9
|
+
traceId: string;
|
|
10
|
+
upiBillId: string;
|
|
11
|
+
upiLink: string;
|
|
12
|
+
validUpto: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const createRpdLinkRequest: {
|
|
15
|
+
encode(_: createRpdLinkRequest, writer?: _m0.Writer): _m0.Writer;
|
|
16
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): createRpdLinkRequest;
|
|
17
|
+
fromJSON(_: any): createRpdLinkRequest;
|
|
18
|
+
toJSON(_: createRpdLinkRequest): unknown;
|
|
19
|
+
create<I extends Exact<DeepPartial<createRpdLinkRequest>, I>>(base?: I): createRpdLinkRequest;
|
|
20
|
+
fromPartial<I extends Exact<DeepPartial<createRpdLinkRequest>, I>>(_: I): createRpdLinkRequest;
|
|
21
|
+
};
|
|
22
|
+
export declare const createRpdLinkResponse: {
|
|
23
|
+
encode(message: createRpdLinkResponse, writer?: _m0.Writer): _m0.Writer;
|
|
24
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): createRpdLinkResponse;
|
|
25
|
+
fromJSON(object: any): createRpdLinkResponse;
|
|
26
|
+
toJSON(message: createRpdLinkResponse): unknown;
|
|
27
|
+
create<I extends Exact<DeepPartial<createRpdLinkResponse>, I>>(base?: I): createRpdLinkResponse;
|
|
28
|
+
fromPartial<I extends Exact<DeepPartial<createRpdLinkResponse>, I>>(object: I): createRpdLinkResponse;
|
|
29
|
+
};
|
|
30
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
31
|
+
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 {} ? {
|
|
32
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
33
|
+
} : Partial<T>;
|
|
34
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
35
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
36
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
37
|
+
} & {
|
|
38
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,190 @@
|
|
|
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.28.0
|
|
6
|
+
// source: customers/getrpdlink.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.createRpdLinkResponse = exports.createRpdLinkRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.getrpdlink";
|
|
15
|
+
function createBasecreateRpdLinkRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.createRpdLinkRequest = {
|
|
19
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
20
|
+
return writer;
|
|
21
|
+
},
|
|
22
|
+
decode(input, length) {
|
|
23
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
24
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
25
|
+
const message = createBasecreateRpdLinkRequest();
|
|
26
|
+
while (reader.pos < end) {
|
|
27
|
+
const tag = reader.uint32();
|
|
28
|
+
switch (tag >>> 3) {
|
|
29
|
+
}
|
|
30
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
reader.skipType(tag & 7);
|
|
34
|
+
}
|
|
35
|
+
return message;
|
|
36
|
+
},
|
|
37
|
+
fromJSON(_) {
|
|
38
|
+
return {};
|
|
39
|
+
},
|
|
40
|
+
toJSON(_) {
|
|
41
|
+
const obj = {};
|
|
42
|
+
return obj;
|
|
43
|
+
},
|
|
44
|
+
create(base) {
|
|
45
|
+
return exports.createRpdLinkRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasecreateRpdLinkRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasecreateRpdLinkResponse() {
|
|
53
|
+
return { id: "", shortUrl: "", status: "", traceId: "", upiBillId: "", upiLink: "", validUpto: "" };
|
|
54
|
+
}
|
|
55
|
+
exports.createRpdLinkResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.id !== "") {
|
|
58
|
+
writer.uint32(10).string(message.id);
|
|
59
|
+
}
|
|
60
|
+
if (message.shortUrl !== "") {
|
|
61
|
+
writer.uint32(18).string(message.shortUrl);
|
|
62
|
+
}
|
|
63
|
+
if (message.status !== "") {
|
|
64
|
+
writer.uint32(26).string(message.status);
|
|
65
|
+
}
|
|
66
|
+
if (message.traceId !== "") {
|
|
67
|
+
writer.uint32(34).string(message.traceId);
|
|
68
|
+
}
|
|
69
|
+
if (message.upiBillId !== "") {
|
|
70
|
+
writer.uint32(42).string(message.upiBillId);
|
|
71
|
+
}
|
|
72
|
+
if (message.upiLink !== "") {
|
|
73
|
+
writer.uint32(50).string(message.upiLink);
|
|
74
|
+
}
|
|
75
|
+
if (message.validUpto !== "") {
|
|
76
|
+
writer.uint32(58).string(message.validUpto);
|
|
77
|
+
}
|
|
78
|
+
return writer;
|
|
79
|
+
},
|
|
80
|
+
decode(input, length) {
|
|
81
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
82
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
83
|
+
const message = createBasecreateRpdLinkResponse();
|
|
84
|
+
while (reader.pos < end) {
|
|
85
|
+
const tag = reader.uint32();
|
|
86
|
+
switch (tag >>> 3) {
|
|
87
|
+
case 1:
|
|
88
|
+
if (tag !== 10) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.id = reader.string();
|
|
92
|
+
continue;
|
|
93
|
+
case 2:
|
|
94
|
+
if (tag !== 18) {
|
|
95
|
+
break;
|
|
96
|
+
}
|
|
97
|
+
message.shortUrl = reader.string();
|
|
98
|
+
continue;
|
|
99
|
+
case 3:
|
|
100
|
+
if (tag !== 26) {
|
|
101
|
+
break;
|
|
102
|
+
}
|
|
103
|
+
message.status = reader.string();
|
|
104
|
+
continue;
|
|
105
|
+
case 4:
|
|
106
|
+
if (tag !== 34) {
|
|
107
|
+
break;
|
|
108
|
+
}
|
|
109
|
+
message.traceId = reader.string();
|
|
110
|
+
continue;
|
|
111
|
+
case 5:
|
|
112
|
+
if (tag !== 42) {
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
message.upiBillId = reader.string();
|
|
116
|
+
continue;
|
|
117
|
+
case 6:
|
|
118
|
+
if (tag !== 50) {
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
message.upiLink = reader.string();
|
|
122
|
+
continue;
|
|
123
|
+
case 7:
|
|
124
|
+
if (tag !== 58) {
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
message.validUpto = reader.string();
|
|
128
|
+
continue;
|
|
129
|
+
}
|
|
130
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
reader.skipType(tag & 7);
|
|
134
|
+
}
|
|
135
|
+
return message;
|
|
136
|
+
},
|
|
137
|
+
fromJSON(object) {
|
|
138
|
+
return {
|
|
139
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
140
|
+
shortUrl: isSet(object.shortUrl) ? globalThis.String(object.shortUrl) : "",
|
|
141
|
+
status: isSet(object.status) ? globalThis.String(object.status) : "",
|
|
142
|
+
traceId: isSet(object.traceId) ? globalThis.String(object.traceId) : "",
|
|
143
|
+
upiBillId: isSet(object.upiBillId) ? globalThis.String(object.upiBillId) : "",
|
|
144
|
+
upiLink: isSet(object.upiLink) ? globalThis.String(object.upiLink) : "",
|
|
145
|
+
validUpto: isSet(object.validUpto) ? globalThis.String(object.validUpto) : "",
|
|
146
|
+
};
|
|
147
|
+
},
|
|
148
|
+
toJSON(message) {
|
|
149
|
+
const obj = {};
|
|
150
|
+
if (message.id !== "") {
|
|
151
|
+
obj.id = message.id;
|
|
152
|
+
}
|
|
153
|
+
if (message.shortUrl !== "") {
|
|
154
|
+
obj.shortUrl = message.shortUrl;
|
|
155
|
+
}
|
|
156
|
+
if (message.status !== "") {
|
|
157
|
+
obj.status = message.status;
|
|
158
|
+
}
|
|
159
|
+
if (message.traceId !== "") {
|
|
160
|
+
obj.traceId = message.traceId;
|
|
161
|
+
}
|
|
162
|
+
if (message.upiBillId !== "") {
|
|
163
|
+
obj.upiBillId = message.upiBillId;
|
|
164
|
+
}
|
|
165
|
+
if (message.upiLink !== "") {
|
|
166
|
+
obj.upiLink = message.upiLink;
|
|
167
|
+
}
|
|
168
|
+
if (message.validUpto !== "") {
|
|
169
|
+
obj.validUpto = message.validUpto;
|
|
170
|
+
}
|
|
171
|
+
return obj;
|
|
172
|
+
},
|
|
173
|
+
create(base) {
|
|
174
|
+
return exports.createRpdLinkResponse.fromPartial(base ?? {});
|
|
175
|
+
},
|
|
176
|
+
fromPartial(object) {
|
|
177
|
+
const message = createBasecreateRpdLinkResponse();
|
|
178
|
+
message.id = object.id ?? "";
|
|
179
|
+
message.shortUrl = object.shortUrl ?? "";
|
|
180
|
+
message.status = object.status ?? "";
|
|
181
|
+
message.traceId = object.traceId ?? "";
|
|
182
|
+
message.upiBillId = object.upiBillId ?? "";
|
|
183
|
+
message.upiLink = object.upiLink ?? "";
|
|
184
|
+
message.validUpto = object.validUpto ?? "";
|
|
185
|
+
return message;
|
|
186
|
+
},
|
|
187
|
+
};
|
|
188
|
+
function isSet(value) {
|
|
189
|
+
return value !== null && value !== undefined;
|
|
190
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ import { getLimitRequest, getLimitResponse } from "./customers/getlimit";
|
|
|
31
31
|
import { getOccupationListRequest, getOccupationListResponse } from "./customers/getoccupationlist";
|
|
32
32
|
import { getProfessionalInfoRequest, getProfessionalInfoResponse } from "./customers/getprofessionalinfo";
|
|
33
33
|
import { getCustomerProfileRequest, getCustomerProfileResponse } from "./customers/getprofile";
|
|
34
|
+
import { createRpdLinkRequest, createRpdLinkResponse } from "./customers/getrpdlink";
|
|
34
35
|
import { getSelfieeTxnIdRequest, getSelfieeTxnIdResponse } from "./customers/getselfieetxnid";
|
|
35
36
|
import { getAllStatesRequest, getAllStatesResponse } from "./customers/getstates";
|
|
36
37
|
import { getstepRequest, getstepResponse } from "./customers/getstep";
|
|
@@ -583,7 +584,6 @@ export declare const customersService: {
|
|
|
583
584
|
readonly responseSerialize: (value: getOccupationListResponse) => Buffer;
|
|
584
585
|
readonly responseDeserialize: (value: Buffer) => getOccupationListResponse;
|
|
585
586
|
};
|
|
586
|
-
/** rpc reversePennyDrop(.customers.reversepennydrop.reversePennyDropRequest) returns (.customers.reversepennydrop.reversePennyDropResponse) {} */
|
|
587
587
|
readonly getAddressList: {
|
|
588
588
|
readonly path: "/service.customers/getAddressList";
|
|
589
589
|
readonly requestStream: false;
|
|
@@ -611,6 +611,15 @@ export declare const customersService: {
|
|
|
611
611
|
readonly responseSerialize: (value: getFloatingVideosResponse) => Buffer;
|
|
612
612
|
readonly responseDeserialize: (value: Buffer) => getFloatingVideosResponse;
|
|
613
613
|
};
|
|
614
|
+
readonly getRpdLink: {
|
|
615
|
+
readonly path: "/service.customers/getRpdLink";
|
|
616
|
+
readonly requestStream: false;
|
|
617
|
+
readonly responseStream: false;
|
|
618
|
+
readonly requestSerialize: (value: createRpdLinkRequest) => Buffer;
|
|
619
|
+
readonly requestDeserialize: (value: Buffer) => createRpdLinkRequest;
|
|
620
|
+
readonly responseSerialize: (value: createRpdLinkResponse) => Buffer;
|
|
621
|
+
readonly responseDeserialize: (value: Buffer) => createRpdLinkResponse;
|
|
622
|
+
};
|
|
614
623
|
};
|
|
615
624
|
export interface customersServer extends UntypedServiceImplementation {
|
|
616
625
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -671,10 +680,10 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
671
680
|
bulkSms: handleUnaryCall<bulkSMSRequest, bulkSMSResponse>;
|
|
672
681
|
addFathersName: handleUnaryCall<addFathersNameRequest, addFathersNameResponse>;
|
|
673
682
|
getOccupationList: handleUnaryCall<getOccupationListRequest, getOccupationListResponse>;
|
|
674
|
-
/** rpc reversePennyDrop(.customers.reversepennydrop.reversePennyDropRequest) returns (.customers.reversepennydrop.reversePennyDropResponse) {} */
|
|
675
683
|
getAddressList: handleUnaryCall<getAddressRequest, getAddressResponse>;
|
|
676
684
|
getAppSubmittedScreen: handleUnaryCall<getAppSubmittedRequest, getAppSubmittedResponse>;
|
|
677
685
|
getFloatingVideos: handleUnaryCall<getFloatingVideosRequest, getFloatingVideosResponse>;
|
|
686
|
+
getRpdLink: handleUnaryCall<createRpdLinkRequest, createRpdLinkResponse>;
|
|
678
687
|
}
|
|
679
688
|
export interface customersClient extends Client {
|
|
680
689
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -851,7 +860,6 @@ export interface customersClient extends Client {
|
|
|
851
860
|
getOccupationList(request: getOccupationListRequest, callback: (error: ServiceError | null, response: getOccupationListResponse) => void): ClientUnaryCall;
|
|
852
861
|
getOccupationList(request: getOccupationListRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getOccupationListResponse) => void): ClientUnaryCall;
|
|
853
862
|
getOccupationList(request: getOccupationListRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getOccupationListResponse) => void): ClientUnaryCall;
|
|
854
|
-
/** rpc reversePennyDrop(.customers.reversepennydrop.reversePennyDropRequest) returns (.customers.reversepennydrop.reversePennyDropResponse) {} */
|
|
855
863
|
getAddressList(request: getAddressRequest, callback: (error: ServiceError | null, response: getAddressResponse) => void): ClientUnaryCall;
|
|
856
864
|
getAddressList(request: getAddressRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAddressResponse) => void): ClientUnaryCall;
|
|
857
865
|
getAddressList(request: getAddressRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAddressResponse) => void): ClientUnaryCall;
|
|
@@ -861,6 +869,9 @@ export interface customersClient extends Client {
|
|
|
861
869
|
getFloatingVideos(request: getFloatingVideosRequest, callback: (error: ServiceError | null, response: getFloatingVideosResponse) => void): ClientUnaryCall;
|
|
862
870
|
getFloatingVideos(request: getFloatingVideosRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getFloatingVideosResponse) => void): ClientUnaryCall;
|
|
863
871
|
getFloatingVideos(request: getFloatingVideosRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getFloatingVideosResponse) => void): ClientUnaryCall;
|
|
872
|
+
getRpdLink(request: createRpdLinkRequest, callback: (error: ServiceError | null, response: createRpdLinkResponse) => void): ClientUnaryCall;
|
|
873
|
+
getRpdLink(request: createRpdLinkRequest, metadata: Metadata, callback: (error: ServiceError | null, response: createRpdLinkResponse) => void): ClientUnaryCall;
|
|
874
|
+
getRpdLink(request: createRpdLinkRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: createRpdLinkResponse) => void): ClientUnaryCall;
|
|
864
875
|
}
|
|
865
876
|
export declare const customersClient: {
|
|
866
877
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -40,6 +40,7 @@ const getlimit_1 = require("./customers/getlimit");
|
|
|
40
40
|
const getoccupationlist_1 = require("./customers/getoccupationlist");
|
|
41
41
|
const getprofessionalinfo_1 = require("./customers/getprofessionalinfo");
|
|
42
42
|
const getprofile_1 = require("./customers/getprofile");
|
|
43
|
+
const getrpdlink_1 = require("./customers/getrpdlink");
|
|
43
44
|
const getselfieetxnid_1 = require("./customers/getselfieetxnid");
|
|
44
45
|
const getstates_1 = require("./customers/getstates");
|
|
45
46
|
const getstep_1 = require("./customers/getstep");
|
|
@@ -591,7 +592,6 @@ exports.customersService = {
|
|
|
591
592
|
responseSerialize: (value) => Buffer.from(getoccupationlist_1.getOccupationListResponse.encode(value).finish()),
|
|
592
593
|
responseDeserialize: (value) => getoccupationlist_1.getOccupationListResponse.decode(value),
|
|
593
594
|
},
|
|
594
|
-
/** rpc reversePennyDrop(.customers.reversepennydrop.reversePennyDropRequest) returns (.customers.reversepennydrop.reversePennyDropResponse) {} */
|
|
595
595
|
getAddressList: {
|
|
596
596
|
path: "/service.customers/getAddressList",
|
|
597
597
|
requestStream: false,
|
|
@@ -619,5 +619,14 @@ exports.customersService = {
|
|
|
619
619
|
responseSerialize: (value) => Buffer.from(floatingvideos_1.getFloatingVideosResponse.encode(value).finish()),
|
|
620
620
|
responseDeserialize: (value) => floatingvideos_1.getFloatingVideosResponse.decode(value),
|
|
621
621
|
},
|
|
622
|
+
getRpdLink: {
|
|
623
|
+
path: "/service.customers/getRpdLink",
|
|
624
|
+
requestStream: false,
|
|
625
|
+
responseStream: false,
|
|
626
|
+
requestSerialize: (value) => Buffer.from(getrpdlink_1.createRpdLinkRequest.encode(value).finish()),
|
|
627
|
+
requestDeserialize: (value) => getrpdlink_1.createRpdLinkRequest.decode(value),
|
|
628
|
+
responseSerialize: (value) => Buffer.from(getrpdlink_1.createRpdLinkResponse.encode(value).finish()),
|
|
629
|
+
responseDeserialize: (value) => getrpdlink_1.createRpdLinkResponse.decode(value),
|
|
630
|
+
},
|
|
622
631
|
};
|
|
623
632
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
|
@@ -14,21 +14,24 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "payments.nachpresentation";
|
|
16
16
|
function createBaserequest() {
|
|
17
|
-
return { customer_id: 0, amount: 0, client_id: "", external_order_id: "" };
|
|
17
|
+
return { customer_id: 0, mode: "", amount: 0, client_id: "", external_order_id: "" };
|
|
18
18
|
}
|
|
19
19
|
exports.request = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
21
21
|
if (message.customer_id !== 0) {
|
|
22
22
|
writer.uint32(8).int64(message.customer_id);
|
|
23
23
|
}
|
|
24
|
+
if (message.mode !== "") {
|
|
25
|
+
writer.uint32(18).string(message.mode);
|
|
26
|
+
}
|
|
24
27
|
if (message.amount !== 0) {
|
|
25
|
-
writer.uint32(
|
|
28
|
+
writer.uint32(29).float(message.amount);
|
|
26
29
|
}
|
|
27
30
|
if (message.client_id !== "") {
|
|
28
|
-
writer.uint32(
|
|
31
|
+
writer.uint32(34).string(message.client_id);
|
|
29
32
|
}
|
|
30
33
|
if (message.external_order_id !== "") {
|
|
31
|
-
writer.uint32(
|
|
34
|
+
writer.uint32(42).string(message.external_order_id);
|
|
32
35
|
}
|
|
33
36
|
return writer;
|
|
34
37
|
},
|
|
@@ -46,21 +49,27 @@ exports.request = {
|
|
|
46
49
|
message.customer_id = longToNumber(reader.int64());
|
|
47
50
|
continue;
|
|
48
51
|
case 2:
|
|
49
|
-
if (tag !==
|
|
52
|
+
if (tag !== 18) {
|
|
50
53
|
break;
|
|
51
54
|
}
|
|
52
|
-
message.
|
|
55
|
+
message.mode = reader.string();
|
|
53
56
|
continue;
|
|
54
57
|
case 3:
|
|
55
|
-
if (tag !==
|
|
58
|
+
if (tag !== 29) {
|
|
56
59
|
break;
|
|
57
60
|
}
|
|
58
|
-
message.
|
|
61
|
+
message.amount = reader.float();
|
|
59
62
|
continue;
|
|
60
63
|
case 4:
|
|
61
64
|
if (tag !== 34) {
|
|
62
65
|
break;
|
|
63
66
|
}
|
|
67
|
+
message.client_id = reader.string();
|
|
68
|
+
continue;
|
|
69
|
+
case 5:
|
|
70
|
+
if (tag !== 42) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
64
73
|
message.external_order_id = reader.string();
|
|
65
74
|
continue;
|
|
66
75
|
}
|
|
@@ -74,6 +83,7 @@ exports.request = {
|
|
|
74
83
|
fromJSON(object) {
|
|
75
84
|
return {
|
|
76
85
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
86
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
77
87
|
amount: isSet(object.amount) ? globalThis.Number(object.amount) : 0,
|
|
78
88
|
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
79
89
|
external_order_id: isSet(object.external_order_id) ? globalThis.String(object.external_order_id) : "",
|
|
@@ -84,6 +94,9 @@ exports.request = {
|
|
|
84
94
|
if (message.customer_id !== 0) {
|
|
85
95
|
obj.customer_id = Math.round(message.customer_id);
|
|
86
96
|
}
|
|
97
|
+
if (message.mode !== "") {
|
|
98
|
+
obj.mode = message.mode;
|
|
99
|
+
}
|
|
87
100
|
if (message.amount !== 0) {
|
|
88
101
|
obj.amount = message.amount;
|
|
89
102
|
}
|
|
@@ -101,6 +114,7 @@ exports.request = {
|
|
|
101
114
|
fromPartial(object) {
|
|
102
115
|
const message = createBaserequest();
|
|
103
116
|
message.customer_id = object.customer_id ?? 0;
|
|
117
|
+
message.mode = object.mode ?? "";
|
|
104
118
|
message.amount = object.amount ?? 0;
|
|
105
119
|
message.client_id = object.client_id ?? "";
|
|
106
120
|
message.external_order_id = object.external_order_id ?? "";
|
|
@@ -16,6 +16,7 @@ exports.protobufPackage = "payments.nachregistration";
|
|
|
16
16
|
function createBaserequest() {
|
|
17
17
|
return {
|
|
18
18
|
customer_id: 0,
|
|
19
|
+
mode: "",
|
|
19
20
|
client_id: "",
|
|
20
21
|
mandate_type: "",
|
|
21
22
|
bank_name: undefined,
|
|
@@ -30,26 +31,29 @@ exports.request = {
|
|
|
30
31
|
if (message.customer_id !== 0) {
|
|
31
32
|
writer.uint32(8).int64(message.customer_id);
|
|
32
33
|
}
|
|
34
|
+
if (message.mode !== "") {
|
|
35
|
+
writer.uint32(18).string(message.mode);
|
|
36
|
+
}
|
|
33
37
|
if (message.client_id !== "") {
|
|
34
|
-
writer.uint32(
|
|
38
|
+
writer.uint32(26).string(message.client_id);
|
|
35
39
|
}
|
|
36
40
|
if (message.mandate_type !== "") {
|
|
37
|
-
writer.uint32(
|
|
41
|
+
writer.uint32(34).string(message.mandate_type);
|
|
38
42
|
}
|
|
39
43
|
if (message.bank_name !== undefined) {
|
|
40
|
-
writer.uint32(
|
|
44
|
+
writer.uint32(42).string(message.bank_name);
|
|
41
45
|
}
|
|
42
46
|
if (message.bank_account_number !== undefined) {
|
|
43
|
-
writer.uint32(
|
|
47
|
+
writer.uint32(50).string(message.bank_account_number);
|
|
44
48
|
}
|
|
45
49
|
if (message.bank_ifsc !== undefined) {
|
|
46
|
-
writer.uint32(
|
|
50
|
+
writer.uint32(58).string(message.bank_ifsc);
|
|
47
51
|
}
|
|
48
52
|
if (message.maximum_amount !== 0) {
|
|
49
|
-
writer.uint32(
|
|
53
|
+
writer.uint32(69).float(message.maximum_amount);
|
|
50
54
|
}
|
|
51
55
|
if (message.external_order_id !== "") {
|
|
52
|
-
writer.uint32(
|
|
56
|
+
writer.uint32(74).string(message.external_order_id);
|
|
53
57
|
}
|
|
54
58
|
return writer;
|
|
55
59
|
},
|
|
@@ -70,40 +74,46 @@ exports.request = {
|
|
|
70
74
|
if (tag !== 18) {
|
|
71
75
|
break;
|
|
72
76
|
}
|
|
73
|
-
message.
|
|
77
|
+
message.mode = reader.string();
|
|
74
78
|
continue;
|
|
75
79
|
case 3:
|
|
76
80
|
if (tag !== 26) {
|
|
77
81
|
break;
|
|
78
82
|
}
|
|
79
|
-
message.
|
|
83
|
+
message.client_id = reader.string();
|
|
80
84
|
continue;
|
|
81
85
|
case 4:
|
|
82
86
|
if (tag !== 34) {
|
|
83
87
|
break;
|
|
84
88
|
}
|
|
85
|
-
message.
|
|
89
|
+
message.mandate_type = reader.string();
|
|
86
90
|
continue;
|
|
87
91
|
case 5:
|
|
88
92
|
if (tag !== 42) {
|
|
89
93
|
break;
|
|
90
94
|
}
|
|
91
|
-
message.
|
|
95
|
+
message.bank_name = reader.string();
|
|
92
96
|
continue;
|
|
93
97
|
case 6:
|
|
94
98
|
if (tag !== 50) {
|
|
95
99
|
break;
|
|
96
100
|
}
|
|
97
|
-
message.
|
|
101
|
+
message.bank_account_number = reader.string();
|
|
98
102
|
continue;
|
|
99
103
|
case 7:
|
|
100
|
-
if (tag !==
|
|
104
|
+
if (tag !== 58) {
|
|
101
105
|
break;
|
|
102
106
|
}
|
|
103
|
-
message.
|
|
107
|
+
message.bank_ifsc = reader.string();
|
|
104
108
|
continue;
|
|
105
109
|
case 8:
|
|
106
|
-
if (tag !==
|
|
110
|
+
if (tag !== 69) {
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
message.maximum_amount = reader.float();
|
|
114
|
+
continue;
|
|
115
|
+
case 9:
|
|
116
|
+
if (tag !== 74) {
|
|
107
117
|
break;
|
|
108
118
|
}
|
|
109
119
|
message.external_order_id = reader.string();
|
|
@@ -119,6 +129,7 @@ exports.request = {
|
|
|
119
129
|
fromJSON(object) {
|
|
120
130
|
return {
|
|
121
131
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
132
|
+
mode: isSet(object.mode) ? globalThis.String(object.mode) : "",
|
|
122
133
|
client_id: isSet(object.client_id) ? globalThis.String(object.client_id) : "",
|
|
123
134
|
mandate_type: isSet(object.mandate_type) ? globalThis.String(object.mandate_type) : "",
|
|
124
135
|
bank_name: isSet(object.bank_name) ? globalThis.String(object.bank_name) : undefined,
|
|
@@ -135,6 +146,9 @@ exports.request = {
|
|
|
135
146
|
if (message.customer_id !== 0) {
|
|
136
147
|
obj.customer_id = Math.round(message.customer_id);
|
|
137
148
|
}
|
|
149
|
+
if (message.mode !== "") {
|
|
150
|
+
obj.mode = message.mode;
|
|
151
|
+
}
|
|
138
152
|
if (message.client_id !== "") {
|
|
139
153
|
obj.client_id = message.client_id;
|
|
140
154
|
}
|
|
@@ -164,6 +178,7 @@ exports.request = {
|
|
|
164
178
|
fromPartial(object) {
|
|
165
179
|
const message = createBaserequest();
|
|
166
180
|
message.customer_id = object.customer_id ?? 0;
|
|
181
|
+
message.mode = object.mode ?? "";
|
|
167
182
|
message.client_id = object.client_id ?? "";
|
|
168
183
|
message.mandate_type = object.mandate_type ?? "";
|
|
169
184
|
message.bank_name = object.bank_name ?? undefined;
|