@stashfin/grpc 1.5.15 → 1.5.17
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/bbps.d.ts +7 -21
- package/ts/bbps.js +0 -10
- package/ts/bureau/getreport.d.ts +2 -0
- package/ts/bureau/getreport.js +32 -0
- package/ts/eqxpayments.d.ts +0 -59
- package/ts/eqxpayments.js +0 -41
- package/ts/kyc/getselfieurl.d.ts +1 -0
- package/ts/kyc/getselfieurl.js +15 -1
- package/ts/bbps/processwebhookv2.d.ts +0 -157
- package/ts/bbps/processwebhookv2.js +0 -1175
- package/ts/eqxpayments/createmerchant.d.ts +0 -73
- package/ts/eqxpayments/createmerchant.js +0 -397
- package/ts/eqxpayments/createorderv2.d.ts +0 -50
- package/ts/eqxpayments/createorderv2.js +0 -334
- package/ts/eqxpayments/createpaymentcategoryclient.d.ts +0 -74
- package/ts/eqxpayments/createpaymentcategoryclient.js +0 -411
- package/ts/eqxpayments/createpaymentgateway.d.ts +0 -71
- package/ts/eqxpayments/createpaymentgateway.js +0 -369
- package/ts/eqxpayments/getgatewayconfiguration.d.ts +0 -92
- package/ts/eqxpayments/getgatewayconfiguration.js +0 -430
- package/ts/eqxpayments/getmerchantmodeconfigfees.d.ts +0 -106
- package/ts/eqxpayments/getmerchantmodeconfigfees.js +0 -627
- package/ts/eqxpayments/getorderv2.d.ts +0 -41
- package/ts/eqxpayments/getorderv2.js +0 -211
- package/ts/eqxpayments/initiateattemptv2.d.ts +0 -58
- package/ts/eqxpayments/initiateattemptv2.js +0 -374
- package/ts/eqxpayments/listcheckoutoptionsv2.d.ts +0 -96
- package/ts/eqxpayments/listcheckoutoptionsv2.js +0 -489
- package/ts/eqxpayments/listmerchants.d.ts +0 -68
- package/ts/eqxpayments/listmerchants.js +0 -331
- package/ts/eqxpayments/listpaymentcategoryclients.d.ts +0 -87
- package/ts/eqxpayments/listpaymentcategoryclients.js +0 -477
- package/ts/eqxpayments/listpaymentgateways.d.ts +0 -84
- package/ts/eqxpayments/listpaymentgateways.js +0 -433
- package/ts/eqxpayments/updatemerchant.d.ts +0 -73
- package/ts/eqxpayments/updatemerchant.js +0 -397
- package/ts/eqxpayments/updatemerchantmodeconfigfee.d.ts +0 -75
- package/ts/eqxpayments/updatemerchantmodeconfigfee.js +0 -417
- package/ts/eqxpayments/updatepaymentcategoryclient.d.ts +0 -75
- package/ts/eqxpayments/updatepaymentcategoryclient.js +0 -425
- package/ts/eqxpayments/updatepaymentgateway.d.ts +0 -71
- package/ts/eqxpayments/updatepaymentgateway.js +0 -369
package/package.json
CHANGED
package/ts/bbps.d.ts
CHANGED
|
@@ -4,9 +4,8 @@ import { getAllCategoryRequest, getAllCategoryResponse } from "./bbps/getallcate
|
|
|
4
4
|
import { BillFetchRequest, BillFetchResponse } from "./bbps/getbillforreminder";
|
|
5
5
|
import { getBillsRequest, getBillsResponse } from "./bbps/getbills";
|
|
6
6
|
import { getOrderDetailsRequest, getOrderDetailsResponse } from "./bbps/getorderdetails";
|
|
7
|
-
import { BDTransactionRequest as
|
|
7
|
+
import { BDTransactionRequest as BDTransactionRequest1, BDTransactionResponse as BDTransactionResponse2 } from "./bbps/processdecryptedrudata";
|
|
8
8
|
import { BDTransactionRequest, BDTransactionResponse } from "./bbps/processwebhook";
|
|
9
|
-
import { BDTransactionRequest as BDTransactionRequest1, BDTransactionResponse as BDTransactionResponse2 } from "./bbps/processwebhookv2";
|
|
10
9
|
import { BillTransactionUpdateEvent, StatusResponse } from "./bbps/sendremindercall";
|
|
11
10
|
import { updateTxnsStatusRequest, updateTxnsStatusResponse } from "./bbps/updatetxnsstatus";
|
|
12
11
|
export declare const protobufPackage = "service";
|
|
@@ -30,8 +29,8 @@ export declare const bbpsService: {
|
|
|
30
29
|
readonly responseSerialize: (value: BDTransactionResponse) => Buffer<ArrayBuffer>;
|
|
31
30
|
readonly responseDeserialize: (value: Buffer) => BDTransactionResponse;
|
|
32
31
|
};
|
|
33
|
-
readonly
|
|
34
|
-
readonly path: "/service.bbps/
|
|
32
|
+
readonly processDecryptedRuData: {
|
|
33
|
+
readonly path: "/service.bbps/processDecryptedRUData";
|
|
35
34
|
readonly requestStream: false;
|
|
36
35
|
readonly responseStream: false;
|
|
37
36
|
readonly requestSerialize: (value: BDTransactionRequest1) => Buffer<ArrayBuffer>;
|
|
@@ -39,15 +38,6 @@ export declare const bbpsService: {
|
|
|
39
38
|
readonly responseSerialize: (value: BDTransactionResponse2) => Buffer<ArrayBuffer>;
|
|
40
39
|
readonly responseDeserialize: (value: Buffer) => BDTransactionResponse2;
|
|
41
40
|
};
|
|
42
|
-
readonly processDecryptedRuData: {
|
|
43
|
-
readonly path: "/service.bbps/processDecryptedRUData";
|
|
44
|
-
readonly requestStream: false;
|
|
45
|
-
readonly responseStream: false;
|
|
46
|
-
readonly requestSerialize: (value: BDTransactionRequest3) => Buffer<ArrayBuffer>;
|
|
47
|
-
readonly requestDeserialize: (value: Buffer) => BDTransactionRequest3;
|
|
48
|
-
readonly responseSerialize: (value: BDTransactionResponse4) => Buffer<ArrayBuffer>;
|
|
49
|
-
readonly responseDeserialize: (value: Buffer) => BDTransactionResponse4;
|
|
50
|
-
};
|
|
51
41
|
readonly getAllBbpsTnxs: {
|
|
52
42
|
readonly path: "/service.bbps/getAllBbpsTnxs";
|
|
53
43
|
readonly requestStream: false;
|
|
@@ -106,8 +96,7 @@ export declare const bbpsService: {
|
|
|
106
96
|
export interface bbpsServer extends UntypedServiceImplementation {
|
|
107
97
|
getBillList: handleUnaryCall<getBillsRequest, getBillsResponse>;
|
|
108
98
|
processWebhook: handleUnaryCall<BDTransactionRequest, BDTransactionResponse>;
|
|
109
|
-
|
|
110
|
-
processDecryptedRuData: handleUnaryCall<BDTransactionRequest3, BDTransactionResponse4>;
|
|
99
|
+
processDecryptedRuData: handleUnaryCall<BDTransactionRequest1, BDTransactionResponse2>;
|
|
111
100
|
getAllBbpsTnxs: handleUnaryCall<getAllBbpsTnxRequest, getAllBbpsTnxResponse>;
|
|
112
101
|
getAllBbpsCategory: handleUnaryCall<getAllCategoryRequest, getAllCategoryResponse>;
|
|
113
102
|
updateBbpsTxnsStatus: handleUnaryCall<updateTxnsStatusRequest, updateTxnsStatusResponse>;
|
|
@@ -122,12 +111,9 @@ export interface bbpsClient extends Client {
|
|
|
122
111
|
processWebhook(request: BDTransactionRequest, callback: (error: ServiceError | null, response: BDTransactionResponse) => void): ClientUnaryCall;
|
|
123
112
|
processWebhook(request: BDTransactionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: BDTransactionResponse) => void): ClientUnaryCall;
|
|
124
113
|
processWebhook(request: BDTransactionRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: BDTransactionResponse) => void): ClientUnaryCall;
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
processDecryptedRuData(request: BDTransactionRequest3, callback: (error: ServiceError | null, response: BDTransactionResponse4) => void): ClientUnaryCall;
|
|
129
|
-
processDecryptedRuData(request: BDTransactionRequest3, metadata: Metadata, callback: (error: ServiceError | null, response: BDTransactionResponse4) => void): ClientUnaryCall;
|
|
130
|
-
processDecryptedRuData(request: BDTransactionRequest3, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: BDTransactionResponse4) => void): ClientUnaryCall;
|
|
114
|
+
processDecryptedRuData(request: BDTransactionRequest1, callback: (error: ServiceError | null, response: BDTransactionResponse2) => void): ClientUnaryCall;
|
|
115
|
+
processDecryptedRuData(request: BDTransactionRequest1, metadata: Metadata, callback: (error: ServiceError | null, response: BDTransactionResponse2) => void): ClientUnaryCall;
|
|
116
|
+
processDecryptedRuData(request: BDTransactionRequest1, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: BDTransactionResponse2) => void): ClientUnaryCall;
|
|
131
117
|
getAllBbpsTnxs(request: getAllBbpsTnxRequest, callback: (error: ServiceError | null, response: getAllBbpsTnxResponse) => void): ClientUnaryCall;
|
|
132
118
|
getAllBbpsTnxs(request: getAllBbpsTnxRequest, metadata: Metadata, callback: (error: ServiceError | null, response: getAllBbpsTnxResponse) => void): ClientUnaryCall;
|
|
133
119
|
getAllBbpsTnxs(request: getAllBbpsTnxRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getAllBbpsTnxResponse) => void): ClientUnaryCall;
|
package/ts/bbps.js
CHANGED
|
@@ -15,7 +15,6 @@ const getbills_1 = require("./bbps/getbills");
|
|
|
15
15
|
const getorderdetails_1 = require("./bbps/getorderdetails");
|
|
16
16
|
const processdecryptedrudata_1 = require("./bbps/processdecryptedrudata");
|
|
17
17
|
const processwebhook_1 = require("./bbps/processwebhook");
|
|
18
|
-
const processwebhookv2_1 = require("./bbps/processwebhookv2");
|
|
19
18
|
const sendremindercall_1 = require("./bbps/sendremindercall");
|
|
20
19
|
const updatetxnsstatus_1 = require("./bbps/updatetxnsstatus");
|
|
21
20
|
exports.protobufPackage = "service";
|
|
@@ -38,15 +37,6 @@ exports.bbpsService = {
|
|
|
38
37
|
responseSerialize: (value) => Buffer.from(processwebhook_1.BDTransactionResponse.encode(value).finish()),
|
|
39
38
|
responseDeserialize: (value) => processwebhook_1.BDTransactionResponse.decode(value),
|
|
40
39
|
},
|
|
41
|
-
processWebhookv2: {
|
|
42
|
-
path: "/service.bbps/processWebhookv2",
|
|
43
|
-
requestStream: false,
|
|
44
|
-
responseStream: false,
|
|
45
|
-
requestSerialize: (value) => Buffer.from(processwebhookv2_1.BDTransactionRequest.encode(value).finish()),
|
|
46
|
-
requestDeserialize: (value) => processwebhookv2_1.BDTransactionRequest.decode(value),
|
|
47
|
-
responseSerialize: (value) => Buffer.from(processwebhookv2_1.BDTransactionResponse.encode(value).finish()),
|
|
48
|
-
responseDeserialize: (value) => processwebhookv2_1.BDTransactionResponse.decode(value),
|
|
49
|
-
},
|
|
50
40
|
processDecryptedRuData: {
|
|
51
41
|
path: "/service.bbps/processDecryptedRUData",
|
|
52
42
|
requestStream: false,
|
package/ts/bureau/getreport.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export interface bureauRequest {
|
|
|
9
9
|
short_pull?: boolean | undefined;
|
|
10
10
|
request_id?: string | undefined;
|
|
11
11
|
customer_details?: customerDetails | undefined;
|
|
12
|
+
bureau_data_validity_days?: string | undefined;
|
|
13
|
+
should_pull_bureau?: boolean | undefined;
|
|
12
14
|
}
|
|
13
15
|
export interface customerDetails {
|
|
14
16
|
mobile?: string | undefined;
|
package/ts/bureau/getreport.js
CHANGED
|
@@ -23,6 +23,8 @@ function createBasebureauRequest() {
|
|
|
23
23
|
short_pull: undefined,
|
|
24
24
|
request_id: undefined,
|
|
25
25
|
customer_details: undefined,
|
|
26
|
+
bureau_data_validity_days: undefined,
|
|
27
|
+
should_pull_bureau: undefined,
|
|
26
28
|
};
|
|
27
29
|
}
|
|
28
30
|
exports.bureauRequest = {
|
|
@@ -51,6 +53,12 @@ exports.bureauRequest = {
|
|
|
51
53
|
if (message.customer_details !== undefined) {
|
|
52
54
|
exports.customerDetails.encode(message.customer_details, writer.uint32(66).fork()).ldelim();
|
|
53
55
|
}
|
|
56
|
+
if (message.bureau_data_validity_days !== undefined) {
|
|
57
|
+
writer.uint32(74).string(message.bureau_data_validity_days);
|
|
58
|
+
}
|
|
59
|
+
if (message.should_pull_bureau !== undefined) {
|
|
60
|
+
writer.uint32(80).bool(message.should_pull_bureau);
|
|
61
|
+
}
|
|
54
62
|
return writer;
|
|
55
63
|
},
|
|
56
64
|
decode(input, length) {
|
|
@@ -108,6 +116,18 @@ exports.bureauRequest = {
|
|
|
108
116
|
}
|
|
109
117
|
message.customer_details = exports.customerDetails.decode(reader, reader.uint32());
|
|
110
118
|
continue;
|
|
119
|
+
case 9:
|
|
120
|
+
if (tag !== 74) {
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
message.bureau_data_validity_days = reader.string();
|
|
124
|
+
continue;
|
|
125
|
+
case 10:
|
|
126
|
+
if (tag !== 80) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
message.should_pull_bureau = reader.bool();
|
|
130
|
+
continue;
|
|
111
131
|
}
|
|
112
132
|
if ((tag & 7) === 4 || tag === 0) {
|
|
113
133
|
break;
|
|
@@ -126,6 +146,10 @@ exports.bureauRequest = {
|
|
|
126
146
|
short_pull: isSet(object.short_pull) ? globalThis.Boolean(object.short_pull) : undefined,
|
|
127
147
|
request_id: isSet(object.request_id) ? globalThis.String(object.request_id) : undefined,
|
|
128
148
|
customer_details: isSet(object.customer_details) ? exports.customerDetails.fromJSON(object.customer_details) : undefined,
|
|
149
|
+
bureau_data_validity_days: isSet(object.bureau_data_validity_days)
|
|
150
|
+
? globalThis.String(object.bureau_data_validity_days)
|
|
151
|
+
: undefined,
|
|
152
|
+
should_pull_bureau: isSet(object.should_pull_bureau) ? globalThis.Boolean(object.should_pull_bureau) : undefined,
|
|
129
153
|
};
|
|
130
154
|
},
|
|
131
155
|
toJSON(message) {
|
|
@@ -154,6 +178,12 @@ exports.bureauRequest = {
|
|
|
154
178
|
if (message.customer_details !== undefined) {
|
|
155
179
|
obj.customer_details = exports.customerDetails.toJSON(message.customer_details);
|
|
156
180
|
}
|
|
181
|
+
if (message.bureau_data_validity_days !== undefined) {
|
|
182
|
+
obj.bureau_data_validity_days = message.bureau_data_validity_days;
|
|
183
|
+
}
|
|
184
|
+
if (message.should_pull_bureau !== undefined) {
|
|
185
|
+
obj.should_pull_bureau = message.should_pull_bureau;
|
|
186
|
+
}
|
|
157
187
|
return obj;
|
|
158
188
|
},
|
|
159
189
|
create(base) {
|
|
@@ -171,6 +201,8 @@ exports.bureauRequest = {
|
|
|
171
201
|
message.customer_details = (object.customer_details !== undefined && object.customer_details !== null)
|
|
172
202
|
? exports.customerDetails.fromPartial(object.customer_details)
|
|
173
203
|
: undefined;
|
|
204
|
+
message.bureau_data_validity_days = object.bureau_data_validity_days ?? undefined;
|
|
205
|
+
message.should_pull_bureau = object.should_pull_bureau ?? undefined;
|
|
174
206
|
return message;
|
|
175
207
|
},
|
|
176
208
|
};
|
package/ts/eqxpayments.d.ts
CHANGED
|
@@ -1,16 +1,12 @@
|
|
|
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 { request as request3, response as response4 } from "./eqxpayments/checkpaymentstatus";
|
|
3
3
|
import { request as request63, response as response64 } from "./eqxpayments/createorder";
|
|
4
|
-
import { request as request65, response as response66 } from "./eqxpayments/createorderv2";
|
|
5
4
|
import { createTransactionRequest, createTransactionResponse } from "./eqxpayments/createtransaction";
|
|
6
5
|
import { request as request9, response as response10 } from "./eqxpayments/fundtransfer";
|
|
7
|
-
import { request as request67, response as response68 } from "./eqxpayments/getorderv2";
|
|
8
6
|
import { request, response } from "./eqxpayments/getpaymentoptions";
|
|
9
7
|
import { PaymentTypeRequest, PaymentTypeResponse } from "./eqxpayments/getpaymenttypes";
|
|
10
|
-
import { InitiateAttemptRequestV2, InitiateAttemptResponseV2 } from "./eqxpayments/initiateattemptv2";
|
|
11
8
|
import { request as request1, response as response2 } from "./eqxpayments/initiatepayment";
|
|
12
9
|
import { request as request11, response as response12 } from "./eqxpayments/initiaterefund";
|
|
13
|
-
import { ListCheckoutOptionsRequestV2, ListCheckoutOptionsResponseV2 } from "./eqxpayments/listcheckoutoptionsv2";
|
|
14
10
|
import { request as request27, response as response28 } from "./eqxpayments/merchants_create";
|
|
15
11
|
import { request as request33, response as response34 } from "./eqxpayments/merchants_credentials_rotate";
|
|
16
12
|
import { request as request29, response as response30 } from "./eqxpayments/merchants_get";
|
|
@@ -357,43 +353,6 @@ export declare const eqxpaymentsService: {
|
|
|
357
353
|
readonly responseSerialize: (value: response64) => Buffer<ArrayBuffer>;
|
|
358
354
|
readonly responseDeserialize: (value: Buffer) => response64;
|
|
359
355
|
};
|
|
360
|
-
/** V2 APIs */
|
|
361
|
-
readonly createOrderV2: {
|
|
362
|
-
readonly path: "/service.eqxpayments/CreateOrderV2";
|
|
363
|
-
readonly requestStream: false;
|
|
364
|
-
readonly responseStream: false;
|
|
365
|
-
readonly requestSerialize: (value: request65) => Buffer<ArrayBuffer>;
|
|
366
|
-
readonly requestDeserialize: (value: Buffer) => request65;
|
|
367
|
-
readonly responseSerialize: (value: response66) => Buffer<ArrayBuffer>;
|
|
368
|
-
readonly responseDeserialize: (value: Buffer) => response66;
|
|
369
|
-
};
|
|
370
|
-
readonly listCheckoutOptionsV2: {
|
|
371
|
-
readonly path: "/service.eqxpayments/ListCheckoutOptionsV2";
|
|
372
|
-
readonly requestStream: false;
|
|
373
|
-
readonly responseStream: false;
|
|
374
|
-
readonly requestSerialize: (value: ListCheckoutOptionsRequestV2) => Buffer<ArrayBuffer>;
|
|
375
|
-
readonly requestDeserialize: (value: Buffer) => ListCheckoutOptionsRequestV2;
|
|
376
|
-
readonly responseSerialize: (value: ListCheckoutOptionsResponseV2) => Buffer<ArrayBuffer>;
|
|
377
|
-
readonly responseDeserialize: (value: Buffer) => ListCheckoutOptionsResponseV2;
|
|
378
|
-
};
|
|
379
|
-
readonly initiateAttemptV2: {
|
|
380
|
-
readonly path: "/service.eqxpayments/InitiateAttemptV2";
|
|
381
|
-
readonly requestStream: false;
|
|
382
|
-
readonly responseStream: false;
|
|
383
|
-
readonly requestSerialize: (value: InitiateAttemptRequestV2) => Buffer<ArrayBuffer>;
|
|
384
|
-
readonly requestDeserialize: (value: Buffer) => InitiateAttemptRequestV2;
|
|
385
|
-
readonly responseSerialize: (value: InitiateAttemptResponseV2) => Buffer<ArrayBuffer>;
|
|
386
|
-
readonly responseDeserialize: (value: Buffer) => InitiateAttemptResponseV2;
|
|
387
|
-
};
|
|
388
|
-
readonly getOrderV2: {
|
|
389
|
-
readonly path: "/service.eqxpayments/GetOrderV2";
|
|
390
|
-
readonly requestStream: false;
|
|
391
|
-
readonly responseStream: false;
|
|
392
|
-
readonly requestSerialize: (value: request67) => Buffer<ArrayBuffer>;
|
|
393
|
-
readonly requestDeserialize: (value: Buffer) => request67;
|
|
394
|
-
readonly responseSerialize: (value: response68) => Buffer<ArrayBuffer>;
|
|
395
|
-
readonly responseDeserialize: (value: Buffer) => response68;
|
|
396
|
-
};
|
|
397
356
|
};
|
|
398
357
|
export interface eqxpaymentsServer extends UntypedServiceImplementation {
|
|
399
358
|
getpaymentoptions: handleUnaryCall<request, response>;
|
|
@@ -432,11 +391,6 @@ export interface eqxpaymentsServer extends UntypedServiceImplementation {
|
|
|
432
391
|
createRoute: handleUnaryCall<request59, response60>;
|
|
433
392
|
updateRoute: handleUnaryCall<request61, response62>;
|
|
434
393
|
createorder: handleUnaryCall<request63, response64>;
|
|
435
|
-
/** V2 APIs */
|
|
436
|
-
createOrderV2: handleUnaryCall<request65, response66>;
|
|
437
|
-
listCheckoutOptionsV2: handleUnaryCall<ListCheckoutOptionsRequestV2, ListCheckoutOptionsResponseV2>;
|
|
438
|
-
initiateAttemptV2: handleUnaryCall<InitiateAttemptRequestV2, InitiateAttemptResponseV2>;
|
|
439
|
-
getOrderV2: handleUnaryCall<request67, response68>;
|
|
440
394
|
}
|
|
441
395
|
export interface eqxpaymentsClient extends Client {
|
|
442
396
|
getpaymentoptions(request: request, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
@@ -545,19 +499,6 @@ export interface eqxpaymentsClient extends Client {
|
|
|
545
499
|
createorder(request: request63, callback: (error: ServiceError | null, response: response64) => void): ClientUnaryCall;
|
|
546
500
|
createorder(request: request63, metadata: Metadata, callback: (error: ServiceError | null, response: response64) => void): ClientUnaryCall;
|
|
547
501
|
createorder(request: request63, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response64) => void): ClientUnaryCall;
|
|
548
|
-
/** V2 APIs */
|
|
549
|
-
createOrderV2(request: request65, callback: (error: ServiceError | null, response: response66) => void): ClientUnaryCall;
|
|
550
|
-
createOrderV2(request: request65, metadata: Metadata, callback: (error: ServiceError | null, response: response66) => void): ClientUnaryCall;
|
|
551
|
-
createOrderV2(request: request65, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response66) => void): ClientUnaryCall;
|
|
552
|
-
listCheckoutOptionsV2(request: ListCheckoutOptionsRequestV2, callback: (error: ServiceError | null, response: ListCheckoutOptionsResponseV2) => void): ClientUnaryCall;
|
|
553
|
-
listCheckoutOptionsV2(request: ListCheckoutOptionsRequestV2, metadata: Metadata, callback: (error: ServiceError | null, response: ListCheckoutOptionsResponseV2) => void): ClientUnaryCall;
|
|
554
|
-
listCheckoutOptionsV2(request: ListCheckoutOptionsRequestV2, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ListCheckoutOptionsResponseV2) => void): ClientUnaryCall;
|
|
555
|
-
initiateAttemptV2(request: InitiateAttemptRequestV2, callback: (error: ServiceError | null, response: InitiateAttemptResponseV2) => void): ClientUnaryCall;
|
|
556
|
-
initiateAttemptV2(request: InitiateAttemptRequestV2, metadata: Metadata, callback: (error: ServiceError | null, response: InitiateAttemptResponseV2) => void): ClientUnaryCall;
|
|
557
|
-
initiateAttemptV2(request: InitiateAttemptRequestV2, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: InitiateAttemptResponseV2) => void): ClientUnaryCall;
|
|
558
|
-
getOrderV2(request: request67, callback: (error: ServiceError | null, response: response68) => void): ClientUnaryCall;
|
|
559
|
-
getOrderV2(request: request67, metadata: Metadata, callback: (error: ServiceError | null, response: response68) => void): ClientUnaryCall;
|
|
560
|
-
getOrderV2(request: request67, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: response68) => void): ClientUnaryCall;
|
|
561
502
|
}
|
|
562
503
|
export declare const eqxpaymentsClient: {
|
|
563
504
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxpaymentsClient;
|
package/ts/eqxpayments.js
CHANGED
|
@@ -10,16 +10,12 @@ exports.eqxpaymentsClient = exports.eqxpaymentsService = exports.protobufPackage
|
|
|
10
10
|
const grpc_js_1 = require("@grpc/grpc-js");
|
|
11
11
|
const checkpaymentstatus_1 = require("./eqxpayments/checkpaymentstatus");
|
|
12
12
|
const createorder_1 = require("./eqxpayments/createorder");
|
|
13
|
-
const createorderv2_1 = require("./eqxpayments/createorderv2");
|
|
14
13
|
const createtransaction_1 = require("./eqxpayments/createtransaction");
|
|
15
14
|
const fundtransfer_1 = require("./eqxpayments/fundtransfer");
|
|
16
|
-
const getorderv2_1 = require("./eqxpayments/getorderv2");
|
|
17
15
|
const getpaymentoptions_1 = require("./eqxpayments/getpaymentoptions");
|
|
18
16
|
const getpaymenttypes_1 = require("./eqxpayments/getpaymenttypes");
|
|
19
|
-
const initiateattemptv2_1 = require("./eqxpayments/initiateattemptv2");
|
|
20
17
|
const initiatepayment_1 = require("./eqxpayments/initiatepayment");
|
|
21
18
|
const initiaterefund_1 = require("./eqxpayments/initiaterefund");
|
|
22
|
-
const listcheckoutoptionsv2_1 = require("./eqxpayments/listcheckoutoptionsv2");
|
|
23
19
|
const merchants_create_1 = require("./eqxpayments/merchants_create");
|
|
24
20
|
const merchants_credentials_rotate_1 = require("./eqxpayments/merchants_credentials_rotate");
|
|
25
21
|
const merchants_get_1 = require("./eqxpayments/merchants_get");
|
|
@@ -365,42 +361,5 @@ exports.eqxpaymentsService = {
|
|
|
365
361
|
responseSerialize: (value) => Buffer.from(createorder_1.response.encode(value).finish()),
|
|
366
362
|
responseDeserialize: (value) => createorder_1.response.decode(value),
|
|
367
363
|
},
|
|
368
|
-
/** V2 APIs */
|
|
369
|
-
createOrderV2: {
|
|
370
|
-
path: "/service.eqxpayments/CreateOrderV2",
|
|
371
|
-
requestStream: false,
|
|
372
|
-
responseStream: false,
|
|
373
|
-
requestSerialize: (value) => Buffer.from(createorderv2_1.request.encode(value).finish()),
|
|
374
|
-
requestDeserialize: (value) => createorderv2_1.request.decode(value),
|
|
375
|
-
responseSerialize: (value) => Buffer.from(createorderv2_1.response.encode(value).finish()),
|
|
376
|
-
responseDeserialize: (value) => createorderv2_1.response.decode(value),
|
|
377
|
-
},
|
|
378
|
-
listCheckoutOptionsV2: {
|
|
379
|
-
path: "/service.eqxpayments/ListCheckoutOptionsV2",
|
|
380
|
-
requestStream: false,
|
|
381
|
-
responseStream: false,
|
|
382
|
-
requestSerialize: (value) => Buffer.from(listcheckoutoptionsv2_1.ListCheckoutOptionsRequestV2.encode(value).finish()),
|
|
383
|
-
requestDeserialize: (value) => listcheckoutoptionsv2_1.ListCheckoutOptionsRequestV2.decode(value),
|
|
384
|
-
responseSerialize: (value) => Buffer.from(listcheckoutoptionsv2_1.ListCheckoutOptionsResponseV2.encode(value).finish()),
|
|
385
|
-
responseDeserialize: (value) => listcheckoutoptionsv2_1.ListCheckoutOptionsResponseV2.decode(value),
|
|
386
|
-
},
|
|
387
|
-
initiateAttemptV2: {
|
|
388
|
-
path: "/service.eqxpayments/InitiateAttemptV2",
|
|
389
|
-
requestStream: false,
|
|
390
|
-
responseStream: false,
|
|
391
|
-
requestSerialize: (value) => Buffer.from(initiateattemptv2_1.InitiateAttemptRequestV2.encode(value).finish()),
|
|
392
|
-
requestDeserialize: (value) => initiateattemptv2_1.InitiateAttemptRequestV2.decode(value),
|
|
393
|
-
responseSerialize: (value) => Buffer.from(initiateattemptv2_1.InitiateAttemptResponseV2.encode(value).finish()),
|
|
394
|
-
responseDeserialize: (value) => initiateattemptv2_1.InitiateAttemptResponseV2.decode(value),
|
|
395
|
-
},
|
|
396
|
-
getOrderV2: {
|
|
397
|
-
path: "/service.eqxpayments/GetOrderV2",
|
|
398
|
-
requestStream: false,
|
|
399
|
-
responseStream: false,
|
|
400
|
-
requestSerialize: (value) => Buffer.from(getorderv2_1.request.encode(value).finish()),
|
|
401
|
-
requestDeserialize: (value) => getorderv2_1.request.decode(value),
|
|
402
|
-
responseSerialize: (value) => Buffer.from(getorderv2_1.response.encode(value).finish()),
|
|
403
|
-
responseDeserialize: (value) => getorderv2_1.response.decode(value),
|
|
404
|
-
},
|
|
405
364
|
};
|
|
406
365
|
exports.eqxpaymentsClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxpaymentsService, "service.eqxpayments");
|
package/ts/kyc/getselfieurl.d.ts
CHANGED
package/ts/kyc/getselfieurl.js
CHANGED
|
@@ -14,7 +14,7 @@ const long_1 = __importDefault(require("long"));
|
|
|
14
14
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
15
15
|
exports.protobufPackage = "kyc.getselfieurl";
|
|
16
16
|
function createBaseGetSelfieRedirectionUrlRequest() {
|
|
17
|
-
return { redirect_url: "", customer_id: 0 };
|
|
17
|
+
return { redirect_url: "", customer_id: 0, kyc_type: undefined };
|
|
18
18
|
}
|
|
19
19
|
exports.GetSelfieRedirectionUrlRequest = {
|
|
20
20
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -24,6 +24,9 @@ exports.GetSelfieRedirectionUrlRequest = {
|
|
|
24
24
|
if (message.customer_id !== 0) {
|
|
25
25
|
writer.uint32(16).int64(message.customer_id);
|
|
26
26
|
}
|
|
27
|
+
if (message.kyc_type !== undefined) {
|
|
28
|
+
writer.uint32(26).string(message.kyc_type);
|
|
29
|
+
}
|
|
27
30
|
return writer;
|
|
28
31
|
},
|
|
29
32
|
decode(input, length) {
|
|
@@ -45,6 +48,12 @@ exports.GetSelfieRedirectionUrlRequest = {
|
|
|
45
48
|
}
|
|
46
49
|
message.customer_id = longToNumber(reader.int64());
|
|
47
50
|
continue;
|
|
51
|
+
case 3:
|
|
52
|
+
if (tag !== 26) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.kyc_type = reader.string();
|
|
56
|
+
continue;
|
|
48
57
|
}
|
|
49
58
|
if ((tag & 7) === 4 || tag === 0) {
|
|
50
59
|
break;
|
|
@@ -57,6 +66,7 @@ exports.GetSelfieRedirectionUrlRequest = {
|
|
|
57
66
|
return {
|
|
58
67
|
redirect_url: isSet(object.redirect_url) ? globalThis.String(object.redirect_url) : "",
|
|
59
68
|
customer_id: isSet(object.customer_id) ? globalThis.Number(object.customer_id) : 0,
|
|
69
|
+
kyc_type: isSet(object.kyc_type) ? globalThis.String(object.kyc_type) : undefined,
|
|
60
70
|
};
|
|
61
71
|
},
|
|
62
72
|
toJSON(message) {
|
|
@@ -67,6 +77,9 @@ exports.GetSelfieRedirectionUrlRequest = {
|
|
|
67
77
|
if (message.customer_id !== 0) {
|
|
68
78
|
obj.customer_id = Math.round(message.customer_id);
|
|
69
79
|
}
|
|
80
|
+
if (message.kyc_type !== undefined) {
|
|
81
|
+
obj.kyc_type = message.kyc_type;
|
|
82
|
+
}
|
|
70
83
|
return obj;
|
|
71
84
|
},
|
|
72
85
|
create(base) {
|
|
@@ -76,6 +89,7 @@ exports.GetSelfieRedirectionUrlRequest = {
|
|
|
76
89
|
const message = createBaseGetSelfieRedirectionUrlRequest();
|
|
77
90
|
message.redirect_url = object.redirect_url ?? "";
|
|
78
91
|
message.customer_id = object.customer_id ?? 0;
|
|
92
|
+
message.kyc_type = object.kyc_type ?? undefined;
|
|
79
93
|
return message;
|
|
80
94
|
},
|
|
81
95
|
};
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import _m0 from "protobufjs/minimal";
|
|
2
|
-
export declare const protobufPackage = "bbps.processwebhookv2";
|
|
3
|
-
export interface PaymentDetails {
|
|
4
|
-
method: string;
|
|
5
|
-
pg_txn_id: string;
|
|
6
|
-
bank_ref_no?: string | undefined;
|
|
7
|
-
settled_at?: string | undefined;
|
|
8
|
-
remitter_name?: string | undefined;
|
|
9
|
-
upi_vpa?: string | undefined;
|
|
10
|
-
upi_masked_vpa?: string | undefined;
|
|
11
|
-
txn_process_type?: string | undefined;
|
|
12
|
-
bank_id?: string | undefined;
|
|
13
|
-
payment_category?: string | undefined;
|
|
14
|
-
item_code?: string | undefined;
|
|
15
|
-
additional_info: {
|
|
16
|
-
[key: string]: string;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface PaymentDetails_AdditionalInfoEntry {
|
|
20
|
-
key: string;
|
|
21
|
-
value: string;
|
|
22
|
-
}
|
|
23
|
-
export interface BDTransactionRequest {
|
|
24
|
-
event_type: string;
|
|
25
|
-
transaction_id: number;
|
|
26
|
-
subscriber_id: string;
|
|
27
|
-
order_ref: string;
|
|
28
|
-
amount_minor: number;
|
|
29
|
-
charged_total_minor: number;
|
|
30
|
-
currency: string;
|
|
31
|
-
status: string;
|
|
32
|
-
final: boolean;
|
|
33
|
-
transaction_date: string;
|
|
34
|
-
payment_details: PaymentDetails | undefined;
|
|
35
|
-
customer_ctx: {
|
|
36
|
-
[key: string]: string;
|
|
37
|
-
};
|
|
38
|
-
metadata: {
|
|
39
|
-
[key: string]: string;
|
|
40
|
-
};
|
|
41
|
-
timestamp: string;
|
|
42
|
-
signature: string;
|
|
43
|
-
}
|
|
44
|
-
export interface BDTransactionRequest_CustomerCtxEntry {
|
|
45
|
-
key: string;
|
|
46
|
-
value: string;
|
|
47
|
-
}
|
|
48
|
-
export interface BDTransactionRequest_MetadataEntry {
|
|
49
|
-
key: string;
|
|
50
|
-
value: string;
|
|
51
|
-
}
|
|
52
|
-
export interface TxnResponse {
|
|
53
|
-
id: number;
|
|
54
|
-
customer_id: number;
|
|
55
|
-
utility_name: string;
|
|
56
|
-
provider_name: string;
|
|
57
|
-
/** optional / nullable */
|
|
58
|
-
provider_logo?: string | undefined;
|
|
59
|
-
/** nullable */
|
|
60
|
-
account_no?: string | undefined;
|
|
61
|
-
final_amount: number;
|
|
62
|
-
status: string;
|
|
63
|
-
txn_id: string;
|
|
64
|
-
order_id: string;
|
|
65
|
-
/** optional / nullable */
|
|
66
|
-
bbps_ref_no?: string | undefined;
|
|
67
|
-
/** optional */
|
|
68
|
-
source_ref_no?: string | undefined;
|
|
69
|
-
/** use ISO 8601 string or Timestamp */
|
|
70
|
-
paid_at: string;
|
|
71
|
-
/** optional / nullable */
|
|
72
|
-
biller_status?: string | undefined;
|
|
73
|
-
}
|
|
74
|
-
export interface AuthSessionResponse {
|
|
75
|
-
customer_id: number;
|
|
76
|
-
auth_token?: string | undefined;
|
|
77
|
-
device_id?: string | undefined;
|
|
78
|
-
}
|
|
79
|
-
export interface BDTransactionResponse {
|
|
80
|
-
txnResponse: TxnResponse | undefined;
|
|
81
|
-
authSessionResponse: AuthSessionResponse | undefined;
|
|
82
|
-
}
|
|
83
|
-
export declare const PaymentDetails: {
|
|
84
|
-
encode(message: PaymentDetails, writer?: _m0.Writer): _m0.Writer;
|
|
85
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PaymentDetails;
|
|
86
|
-
fromJSON(object: any): PaymentDetails;
|
|
87
|
-
toJSON(message: PaymentDetails): unknown;
|
|
88
|
-
create<I extends Exact<DeepPartial<PaymentDetails>, I>>(base?: I): PaymentDetails;
|
|
89
|
-
fromPartial<I extends Exact<DeepPartial<PaymentDetails>, I>>(object: I): PaymentDetails;
|
|
90
|
-
};
|
|
91
|
-
export declare const PaymentDetails_AdditionalInfoEntry: {
|
|
92
|
-
encode(message: PaymentDetails_AdditionalInfoEntry, writer?: _m0.Writer): _m0.Writer;
|
|
93
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PaymentDetails_AdditionalInfoEntry;
|
|
94
|
-
fromJSON(object: any): PaymentDetails_AdditionalInfoEntry;
|
|
95
|
-
toJSON(message: PaymentDetails_AdditionalInfoEntry): unknown;
|
|
96
|
-
create<I extends Exact<DeepPartial<PaymentDetails_AdditionalInfoEntry>, I>>(base?: I): PaymentDetails_AdditionalInfoEntry;
|
|
97
|
-
fromPartial<I extends Exact<DeepPartial<PaymentDetails_AdditionalInfoEntry>, I>>(object: I): PaymentDetails_AdditionalInfoEntry;
|
|
98
|
-
};
|
|
99
|
-
export declare const BDTransactionRequest: {
|
|
100
|
-
encode(message: BDTransactionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
101
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionRequest;
|
|
102
|
-
fromJSON(object: any): BDTransactionRequest;
|
|
103
|
-
toJSON(message: BDTransactionRequest): unknown;
|
|
104
|
-
create<I extends Exact<DeepPartial<BDTransactionRequest>, I>>(base?: I): BDTransactionRequest;
|
|
105
|
-
fromPartial<I extends Exact<DeepPartial<BDTransactionRequest>, I>>(object: I): BDTransactionRequest;
|
|
106
|
-
};
|
|
107
|
-
export declare const BDTransactionRequest_CustomerCtxEntry: {
|
|
108
|
-
encode(message: BDTransactionRequest_CustomerCtxEntry, writer?: _m0.Writer): _m0.Writer;
|
|
109
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionRequest_CustomerCtxEntry;
|
|
110
|
-
fromJSON(object: any): BDTransactionRequest_CustomerCtxEntry;
|
|
111
|
-
toJSON(message: BDTransactionRequest_CustomerCtxEntry): unknown;
|
|
112
|
-
create<I extends Exact<DeepPartial<BDTransactionRequest_CustomerCtxEntry>, I>>(base?: I): BDTransactionRequest_CustomerCtxEntry;
|
|
113
|
-
fromPartial<I extends Exact<DeepPartial<BDTransactionRequest_CustomerCtxEntry>, I>>(object: I): BDTransactionRequest_CustomerCtxEntry;
|
|
114
|
-
};
|
|
115
|
-
export declare const BDTransactionRequest_MetadataEntry: {
|
|
116
|
-
encode(message: BDTransactionRequest_MetadataEntry, writer?: _m0.Writer): _m0.Writer;
|
|
117
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionRequest_MetadataEntry;
|
|
118
|
-
fromJSON(object: any): BDTransactionRequest_MetadataEntry;
|
|
119
|
-
toJSON(message: BDTransactionRequest_MetadataEntry): unknown;
|
|
120
|
-
create<I extends Exact<DeepPartial<BDTransactionRequest_MetadataEntry>, I>>(base?: I): BDTransactionRequest_MetadataEntry;
|
|
121
|
-
fromPartial<I extends Exact<DeepPartial<BDTransactionRequest_MetadataEntry>, I>>(object: I): BDTransactionRequest_MetadataEntry;
|
|
122
|
-
};
|
|
123
|
-
export declare const TxnResponse: {
|
|
124
|
-
encode(message: TxnResponse, writer?: _m0.Writer): _m0.Writer;
|
|
125
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): TxnResponse;
|
|
126
|
-
fromJSON(object: any): TxnResponse;
|
|
127
|
-
toJSON(message: TxnResponse): unknown;
|
|
128
|
-
create<I extends Exact<DeepPartial<TxnResponse>, I>>(base?: I): TxnResponse;
|
|
129
|
-
fromPartial<I extends Exact<DeepPartial<TxnResponse>, I>>(object: I): TxnResponse;
|
|
130
|
-
};
|
|
131
|
-
export declare const AuthSessionResponse: {
|
|
132
|
-
encode(message: AuthSessionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
133
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): AuthSessionResponse;
|
|
134
|
-
fromJSON(object: any): AuthSessionResponse;
|
|
135
|
-
toJSON(message: AuthSessionResponse): unknown;
|
|
136
|
-
create<I extends Exact<DeepPartial<AuthSessionResponse>, I>>(base?: I): AuthSessionResponse;
|
|
137
|
-
fromPartial<I extends Exact<DeepPartial<AuthSessionResponse>, I>>(object: I): AuthSessionResponse;
|
|
138
|
-
};
|
|
139
|
-
export declare const BDTransactionResponse: {
|
|
140
|
-
encode(message: BDTransactionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
141
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionResponse;
|
|
142
|
-
fromJSON(object: any): BDTransactionResponse;
|
|
143
|
-
toJSON(message: BDTransactionResponse): unknown;
|
|
144
|
-
create<I extends Exact<DeepPartial<BDTransactionResponse>, I>>(base?: I): BDTransactionResponse;
|
|
145
|
-
fromPartial<I extends Exact<DeepPartial<BDTransactionResponse>, I>>(object: I): BDTransactionResponse;
|
|
146
|
-
};
|
|
147
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
148
|
-
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 {} ? {
|
|
149
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
150
|
-
} : Partial<T>;
|
|
151
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
152
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
153
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
154
|
-
} & {
|
|
155
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
156
|
-
};
|
|
157
|
-
export {};
|