@stashfin/grpc 1.3.11 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
|
-
// protoc v6.
|
|
5
|
+
// protoc v6.33.0
|
|
6
6
|
// source: eqxpayments/createorderv2.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
|
-
// protoc v6.
|
|
5
|
+
// protoc v6.33.0
|
|
6
6
|
// source: eqxpayments/getorderv2.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
|
-
// protoc v6.
|
|
5
|
+
// protoc v6.33.0
|
|
6
6
|
// source: eqxpayments/initiateattemptv2.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v1.181.2
|
|
5
|
-
// protoc v6.
|
|
5
|
+
// protoc v6.33.0
|
|
6
6
|
// source: eqxpayments/listcheckoutoptionsv2.proto
|
|
7
7
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
8
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
package/ts/eqxpayments.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
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";
|
|
4
5
|
import { createTransactionRequest, createTransactionResponse } from "./eqxpayments/createtransaction";
|
|
5
6
|
import { request as request9, response as response10 } from "./eqxpayments/fundtransfer";
|
|
7
|
+
import { request as request67, response as response68 } from "./eqxpayments/getorderv2";
|
|
6
8
|
import { request, response } from "./eqxpayments/getpaymentoptions";
|
|
7
9
|
import { PaymentTypeRequest, PaymentTypeResponse } from "./eqxpayments/getpaymenttypes";
|
|
10
|
+
import { InitiateAttemptRequestV2, InitiateAttemptResponseV2 } from "./eqxpayments/initiateattemptv2";
|
|
8
11
|
import { request as request1, response as response2 } from "./eqxpayments/initiatepayment";
|
|
9
12
|
import { request as request11, response as response12 } from "./eqxpayments/initiaterefund";
|
|
13
|
+
import { ListCheckoutOptionsRequestV2, ListCheckoutOptionsResponseV2 } from "./eqxpayments/listcheckoutoptionsv2";
|
|
10
14
|
import { request as request27, response as response28 } from "./eqxpayments/merchants_create";
|
|
11
15
|
import { request as request33, response as response34 } from "./eqxpayments/merchants_credentials_rotate";
|
|
12
16
|
import { request as request29, response as response30 } from "./eqxpayments/merchants_get";
|
|
@@ -353,6 +357,43 @@ export declare const eqxpaymentsService: {
|
|
|
353
357
|
readonly responseSerialize: (value: response64) => Buffer<ArrayBuffer>;
|
|
354
358
|
readonly responseDeserialize: (value: Buffer) => response64;
|
|
355
359
|
};
|
|
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
|
+
};
|
|
356
397
|
};
|
|
357
398
|
export interface eqxpaymentsServer extends UntypedServiceImplementation {
|
|
358
399
|
getpaymentoptions: handleUnaryCall<request, response>;
|
|
@@ -391,6 +432,11 @@ export interface eqxpaymentsServer extends UntypedServiceImplementation {
|
|
|
391
432
|
createRoute: handleUnaryCall<request59, response60>;
|
|
392
433
|
updateRoute: handleUnaryCall<request61, response62>;
|
|
393
434
|
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>;
|
|
394
440
|
}
|
|
395
441
|
export interface eqxpaymentsClient extends Client {
|
|
396
442
|
getpaymentoptions(request: request, callback: (error: ServiceError | null, response: response) => void): ClientUnaryCall;
|
|
@@ -499,6 +545,19 @@ export interface eqxpaymentsClient extends Client {
|
|
|
499
545
|
createorder(request: request63, callback: (error: ServiceError | null, response: response64) => void): ClientUnaryCall;
|
|
500
546
|
createorder(request: request63, metadata: Metadata, callback: (error: ServiceError | null, response: response64) => void): ClientUnaryCall;
|
|
501
547
|
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;
|
|
502
561
|
}
|
|
503
562
|
export declare const eqxpaymentsClient: {
|
|
504
563
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): eqxpaymentsClient;
|
package/ts/eqxpayments.js
CHANGED
|
@@ -10,12 +10,16 @@ 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");
|
|
13
14
|
const createtransaction_1 = require("./eqxpayments/createtransaction");
|
|
14
15
|
const fundtransfer_1 = require("./eqxpayments/fundtransfer");
|
|
16
|
+
const getorderv2_1 = require("./eqxpayments/getorderv2");
|
|
15
17
|
const getpaymentoptions_1 = require("./eqxpayments/getpaymentoptions");
|
|
16
18
|
const getpaymenttypes_1 = require("./eqxpayments/getpaymenttypes");
|
|
19
|
+
const initiateattemptv2_1 = require("./eqxpayments/initiateattemptv2");
|
|
17
20
|
const initiatepayment_1 = require("./eqxpayments/initiatepayment");
|
|
18
21
|
const initiaterefund_1 = require("./eqxpayments/initiaterefund");
|
|
22
|
+
const listcheckoutoptionsv2_1 = require("./eqxpayments/listcheckoutoptionsv2");
|
|
19
23
|
const merchants_create_1 = require("./eqxpayments/merchants_create");
|
|
20
24
|
const merchants_credentials_rotate_1 = require("./eqxpayments/merchants_credentials_rotate");
|
|
21
25
|
const merchants_get_1 = require("./eqxpayments/merchants_get");
|
|
@@ -361,5 +365,42 @@ exports.eqxpaymentsService = {
|
|
|
361
365
|
responseSerialize: (value) => Buffer.from(createorder_1.response.encode(value).finish()),
|
|
362
366
|
responseDeserialize: (value) => createorder_1.response.decode(value),
|
|
363
367
|
},
|
|
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
|
+
},
|
|
364
405
|
};
|
|
365
406
|
exports.eqxpaymentsClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.eqxpaymentsService, "service.eqxpayments");
|