@stashfin/grpc 1.2.59 → 1.2.60
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/deleteprofile.d.ts +34 -0
- package/ts/customers/deleteprofile.js +104 -0
- package/ts/customers.d.ts +14 -0
- package/ts/customers.js +10 -0
- package/ts/payments.d.ts +239 -0
- package/ts/payments.js +1117 -0
package/package.json
CHANGED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "customers.deleteprofile";
|
|
3
|
+
export interface deleteProfileRequest {
|
|
4
|
+
}
|
|
5
|
+
export interface deleteProfileResponse {
|
|
6
|
+
status: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const deleteProfileRequest: {
|
|
9
|
+
encode(_: deleteProfileRequest, writer?: _m0.Writer): _m0.Writer;
|
|
10
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): deleteProfileRequest;
|
|
11
|
+
fromJSON(_: any): deleteProfileRequest;
|
|
12
|
+
toJSON(_: deleteProfileRequest): unknown;
|
|
13
|
+
create<I extends Exact<DeepPartial<deleteProfileRequest>, I>>(base?: I): deleteProfileRequest;
|
|
14
|
+
fromPartial<I extends Exact<DeepPartial<deleteProfileRequest>, I>>(_: I): deleteProfileRequest;
|
|
15
|
+
};
|
|
16
|
+
export declare const deleteProfileResponse: {
|
|
17
|
+
encode(message: deleteProfileResponse, writer?: _m0.Writer): _m0.Writer;
|
|
18
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): deleteProfileResponse;
|
|
19
|
+
fromJSON(object: any): deleteProfileResponse;
|
|
20
|
+
toJSON(message: deleteProfileResponse): unknown;
|
|
21
|
+
create<I extends Exact<DeepPartial<deleteProfileResponse>, I>>(base?: I): deleteProfileResponse;
|
|
22
|
+
fromPartial<I extends Exact<DeepPartial<deleteProfileResponse>, I>>(object: I): deleteProfileResponse;
|
|
23
|
+
};
|
|
24
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
25
|
+
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 {} ? {
|
|
26
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
27
|
+
} : Partial<T>;
|
|
28
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
29
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
30
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
31
|
+
} & {
|
|
32
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
33
|
+
};
|
|
34
|
+
export {};
|
|
@@ -0,0 +1,104 @@
|
|
|
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 v3.20.3
|
|
6
|
+
// source: customers/deleteprofile.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.deleteProfileResponse = exports.deleteProfileRequest = exports.protobufPackage = void 0;
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
14
|
+
exports.protobufPackage = "customers.deleteprofile";
|
|
15
|
+
function createBasedeleteProfileRequest() {
|
|
16
|
+
return {};
|
|
17
|
+
}
|
|
18
|
+
exports.deleteProfileRequest = {
|
|
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 = createBasedeleteProfileRequest();
|
|
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.deleteProfileRequest.fromPartial(base ?? {});
|
|
46
|
+
},
|
|
47
|
+
fromPartial(_) {
|
|
48
|
+
const message = createBasedeleteProfileRequest();
|
|
49
|
+
return message;
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function createBasedeleteProfileResponse() {
|
|
53
|
+
return { status: false };
|
|
54
|
+
}
|
|
55
|
+
exports.deleteProfileResponse = {
|
|
56
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
57
|
+
if (message.status !== false) {
|
|
58
|
+
writer.uint32(8).bool(message.status);
|
|
59
|
+
}
|
|
60
|
+
return writer;
|
|
61
|
+
},
|
|
62
|
+
decode(input, length) {
|
|
63
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
64
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
65
|
+
const message = createBasedeleteProfileResponse();
|
|
66
|
+
while (reader.pos < end) {
|
|
67
|
+
const tag = reader.uint32();
|
|
68
|
+
switch (tag >>> 3) {
|
|
69
|
+
case 1:
|
|
70
|
+
if (tag !== 8) {
|
|
71
|
+
break;
|
|
72
|
+
}
|
|
73
|
+
message.status = reader.bool();
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
reader.skipType(tag & 7);
|
|
80
|
+
}
|
|
81
|
+
return message;
|
|
82
|
+
},
|
|
83
|
+
fromJSON(object) {
|
|
84
|
+
return { status: isSet(object.status) ? globalThis.Boolean(object.status) : false };
|
|
85
|
+
},
|
|
86
|
+
toJSON(message) {
|
|
87
|
+
const obj = {};
|
|
88
|
+
if (message.status !== false) {
|
|
89
|
+
obj.status = message.status;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.deleteProfileResponse.fromPartial(base ?? {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
const message = createBasedeleteProfileResponse();
|
|
98
|
+
message.status = object.status ?? false;
|
|
99
|
+
return message;
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
function isSet(value) {
|
|
103
|
+
return value !== null && value !== undefined;
|
|
104
|
+
}
|
package/ts/customers.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type
|
|
|
2
2
|
import { addAddressRequest, addAddressResponse } from "./customers/addaddress";
|
|
3
3
|
import { addBankAccountDetailsRequest, addBankAccountDetailsResponse } from "./customers/addbankaccountdetails";
|
|
4
4
|
import { createCustomerReferenceRequest, createCustomerReferenceResponse } from "./customers/createcustomerreference";
|
|
5
|
+
import { deleteProfileRequest, deleteProfileResponse } from "./customers/deleteprofile";
|
|
5
6
|
import { forgotMpinRequest, forgotMpinResponse } from "./customers/forgotmpin";
|
|
6
7
|
import { forgotMpinOTPRequest, forgotMpinOTPResponse } from "./customers/forgotmpinotp";
|
|
7
8
|
import { getBankAccountDetailsRequest, getBankAccountDetailsResponse } from "./customers/getbankaccountdetails";
|
|
@@ -416,6 +417,15 @@ export declare const customersService: {
|
|
|
416
417
|
readonly responseSerialize: (value: validatePanResponse) => Buffer;
|
|
417
418
|
readonly responseDeserialize: (value: Buffer) => validatePanResponse;
|
|
418
419
|
};
|
|
420
|
+
readonly deleteProfile: {
|
|
421
|
+
readonly path: "/service.customers/deleteProfile";
|
|
422
|
+
readonly requestStream: false;
|
|
423
|
+
readonly responseStream: false;
|
|
424
|
+
readonly requestSerialize: (value: deleteProfileRequest) => Buffer;
|
|
425
|
+
readonly requestDeserialize: (value: Buffer) => deleteProfileRequest;
|
|
426
|
+
readonly responseSerialize: (value: deleteProfileResponse) => Buffer;
|
|
427
|
+
readonly responseDeserialize: (value: Buffer) => deleteProfileResponse;
|
|
428
|
+
};
|
|
419
429
|
};
|
|
420
430
|
export interface customersServer extends UntypedServiceImplementation {
|
|
421
431
|
sendOtp: handleUnaryCall<sendOtpRequest, sendOtpRespone>;
|
|
@@ -460,6 +470,7 @@ export interface customersServer extends UntypedServiceImplementation {
|
|
|
460
470
|
getKycWebUrl: handleUnaryCall<getKycWebUrlRequest, getKycWebUrlResponse>;
|
|
461
471
|
updateDob: handleUnaryCall<updateDOBRequest, updateDOBResponse>;
|
|
462
472
|
validatePan: handleUnaryCall<validatePanRequest, validatePanResponse>;
|
|
473
|
+
deleteProfile: handleUnaryCall<deleteProfileRequest, deleteProfileResponse>;
|
|
463
474
|
}
|
|
464
475
|
export interface customersClient extends Client {
|
|
465
476
|
sendOtp(request: sendOtpRequest, callback: (error: ServiceError | null, response: sendOtpRespone) => void): ClientUnaryCall;
|
|
@@ -588,6 +599,9 @@ export interface customersClient extends Client {
|
|
|
588
599
|
validatePan(request: validatePanRequest, callback: (error: ServiceError | null, response: validatePanResponse) => void): ClientUnaryCall;
|
|
589
600
|
validatePan(request: validatePanRequest, metadata: Metadata, callback: (error: ServiceError | null, response: validatePanResponse) => void): ClientUnaryCall;
|
|
590
601
|
validatePan(request: validatePanRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: validatePanResponse) => void): ClientUnaryCall;
|
|
602
|
+
deleteProfile(request: deleteProfileRequest, callback: (error: ServiceError | null, response: deleteProfileResponse) => void): ClientUnaryCall;
|
|
603
|
+
deleteProfile(request: deleteProfileRequest, metadata: Metadata, callback: (error: ServiceError | null, response: deleteProfileResponse) => void): ClientUnaryCall;
|
|
604
|
+
deleteProfile(request: deleteProfileRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: deleteProfileResponse) => void): ClientUnaryCall;
|
|
591
605
|
}
|
|
592
606
|
export declare const customersClient: {
|
|
593
607
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): customersClient;
|
package/ts/customers.js
CHANGED
|
@@ -11,6 +11,7 @@ const grpc_js_1 = require("@grpc/grpc-js");
|
|
|
11
11
|
const addaddress_1 = require("./customers/addaddress");
|
|
12
12
|
const addbankaccountdetails_1 = require("./customers/addbankaccountdetails");
|
|
13
13
|
const createcustomerreference_1 = require("./customers/createcustomerreference");
|
|
14
|
+
const deleteprofile_1 = require("./customers/deleteprofile");
|
|
14
15
|
const forgotmpin_1 = require("./customers/forgotmpin");
|
|
15
16
|
const forgotmpinotp_1 = require("./customers/forgotmpinotp");
|
|
16
17
|
const getbankaccountdetails_1 = require("./customers/getbankaccountdetails");
|
|
@@ -424,5 +425,14 @@ exports.customersService = {
|
|
|
424
425
|
responseSerialize: (value) => Buffer.from(validatepan_1.validatePanResponse.encode(value).finish()),
|
|
425
426
|
responseDeserialize: (value) => validatepan_1.validatePanResponse.decode(value),
|
|
426
427
|
},
|
|
428
|
+
deleteProfile: {
|
|
429
|
+
path: "/service.customers/deleteProfile",
|
|
430
|
+
requestStream: false,
|
|
431
|
+
responseStream: false,
|
|
432
|
+
requestSerialize: (value) => Buffer.from(deleteprofile_1.deleteProfileRequest.encode(value).finish()),
|
|
433
|
+
requestDeserialize: (value) => deleteprofile_1.deleteProfileRequest.decode(value),
|
|
434
|
+
responseSerialize: (value) => Buffer.from(deleteprofile_1.deleteProfileResponse.encode(value).finish()),
|
|
435
|
+
responseDeserialize: (value) => deleteprofile_1.deleteProfileResponse.decode(value),
|
|
436
|
+
},
|
|
427
437
|
};
|
|
428
438
|
exports.customersClient = (0, grpc_js_1.makeGenericClientConstructor)(exports.customersService, "service.customers");
|
package/ts/payments.d.ts
ADDED
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import _m0 from "protobufjs/minimal";
|
|
3
|
+
export declare const protobufPackage = "payments.service";
|
|
4
|
+
export interface checkpaymentstatusrequest {
|
|
5
|
+
customer_id: number;
|
|
6
|
+
client: string;
|
|
7
|
+
external_order_id: string;
|
|
8
|
+
}
|
|
9
|
+
export interface checkpaymentstatusresponse {
|
|
10
|
+
status: string;
|
|
11
|
+
statusCode: number;
|
|
12
|
+
data: checkpaymentstatusresponse_Data | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface checkpaymentstatusresponse_Data {
|
|
15
|
+
payment_status: string;
|
|
16
|
+
external_order_id: string;
|
|
17
|
+
}
|
|
18
|
+
export interface getpaymentdetailsrequest {
|
|
19
|
+
checksum: string;
|
|
20
|
+
customer_id: string;
|
|
21
|
+
client: string;
|
|
22
|
+
}
|
|
23
|
+
export interface getpaymentdetailsresponse {
|
|
24
|
+
status: string;
|
|
25
|
+
statusCode: number;
|
|
26
|
+
data: getpaymentdetailsresponse_Data | undefined;
|
|
27
|
+
}
|
|
28
|
+
export interface getpaymentdetailsresponse_Data {
|
|
29
|
+
gateway_id: string;
|
|
30
|
+
gateway_name: string;
|
|
31
|
+
customer_name: string;
|
|
32
|
+
customer_mobile: string;
|
|
33
|
+
customer_email: string;
|
|
34
|
+
gateway_access_key_id: string;
|
|
35
|
+
gateway_checkout_url: string;
|
|
36
|
+
amount: number;
|
|
37
|
+
modes: string[];
|
|
38
|
+
}
|
|
39
|
+
export interface getpaymentoptionsrequest {
|
|
40
|
+
customer_id: string;
|
|
41
|
+
client: string;
|
|
42
|
+
}
|
|
43
|
+
export interface getpaymentoptionsresponse {
|
|
44
|
+
status: string;
|
|
45
|
+
statusCode: number;
|
|
46
|
+
data: getpaymentoptionsresponse_Data | undefined;
|
|
47
|
+
}
|
|
48
|
+
export interface getpaymentoptionsresponse_Data {
|
|
49
|
+
client: string;
|
|
50
|
+
modes: string[];
|
|
51
|
+
}
|
|
52
|
+
export interface initiatepaymentrequest {
|
|
53
|
+
customer_id: number;
|
|
54
|
+
auth_token: string;
|
|
55
|
+
device_id: string;
|
|
56
|
+
client: string;
|
|
57
|
+
mode: string;
|
|
58
|
+
amount: number;
|
|
59
|
+
external_order_id: string;
|
|
60
|
+
}
|
|
61
|
+
export interface initiatepaymentresponse {
|
|
62
|
+
status: string;
|
|
63
|
+
statusCode: number;
|
|
64
|
+
data: initiatepaymentresponse_Data | undefined;
|
|
65
|
+
}
|
|
66
|
+
export interface initiatepaymentresponse_Data {
|
|
67
|
+
redirect_url: string;
|
|
68
|
+
}
|
|
69
|
+
export declare const checkpaymentstatusrequest: {
|
|
70
|
+
encode(message: checkpaymentstatusrequest, writer?: _m0.Writer): _m0.Writer;
|
|
71
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): checkpaymentstatusrequest;
|
|
72
|
+
fromJSON(object: any): checkpaymentstatusrequest;
|
|
73
|
+
toJSON(message: checkpaymentstatusrequest): unknown;
|
|
74
|
+
create<I extends Exact<DeepPartial<checkpaymentstatusrequest>, I>>(base?: I): checkpaymentstatusrequest;
|
|
75
|
+
fromPartial<I extends Exact<DeepPartial<checkpaymentstatusrequest>, I>>(object: I): checkpaymentstatusrequest;
|
|
76
|
+
};
|
|
77
|
+
export declare const checkpaymentstatusresponse: {
|
|
78
|
+
encode(message: checkpaymentstatusresponse, writer?: _m0.Writer): _m0.Writer;
|
|
79
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): checkpaymentstatusresponse;
|
|
80
|
+
fromJSON(object: any): checkpaymentstatusresponse;
|
|
81
|
+
toJSON(message: checkpaymentstatusresponse): unknown;
|
|
82
|
+
create<I extends Exact<DeepPartial<checkpaymentstatusresponse>, I>>(base?: I): checkpaymentstatusresponse;
|
|
83
|
+
fromPartial<I extends Exact<DeepPartial<checkpaymentstatusresponse>, I>>(object: I): checkpaymentstatusresponse;
|
|
84
|
+
};
|
|
85
|
+
export declare const checkpaymentstatusresponse_Data: {
|
|
86
|
+
encode(message: checkpaymentstatusresponse_Data, writer?: _m0.Writer): _m0.Writer;
|
|
87
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): checkpaymentstatusresponse_Data;
|
|
88
|
+
fromJSON(object: any): checkpaymentstatusresponse_Data;
|
|
89
|
+
toJSON(message: checkpaymentstatusresponse_Data): unknown;
|
|
90
|
+
create<I extends Exact<DeepPartial<checkpaymentstatusresponse_Data>, I>>(base?: I): checkpaymentstatusresponse_Data;
|
|
91
|
+
fromPartial<I extends Exact<DeepPartial<checkpaymentstatusresponse_Data>, I>>(object: I): checkpaymentstatusresponse_Data;
|
|
92
|
+
};
|
|
93
|
+
export declare const getpaymentdetailsrequest: {
|
|
94
|
+
encode(message: getpaymentdetailsrequest, writer?: _m0.Writer): _m0.Writer;
|
|
95
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getpaymentdetailsrequest;
|
|
96
|
+
fromJSON(object: any): getpaymentdetailsrequest;
|
|
97
|
+
toJSON(message: getpaymentdetailsrequest): unknown;
|
|
98
|
+
create<I extends Exact<DeepPartial<getpaymentdetailsrequest>, I>>(base?: I): getpaymentdetailsrequest;
|
|
99
|
+
fromPartial<I extends Exact<DeepPartial<getpaymentdetailsrequest>, I>>(object: I): getpaymentdetailsrequest;
|
|
100
|
+
};
|
|
101
|
+
export declare const getpaymentdetailsresponse: {
|
|
102
|
+
encode(message: getpaymentdetailsresponse, writer?: _m0.Writer): _m0.Writer;
|
|
103
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getpaymentdetailsresponse;
|
|
104
|
+
fromJSON(object: any): getpaymentdetailsresponse;
|
|
105
|
+
toJSON(message: getpaymentdetailsresponse): unknown;
|
|
106
|
+
create<I extends Exact<DeepPartial<getpaymentdetailsresponse>, I>>(base?: I): getpaymentdetailsresponse;
|
|
107
|
+
fromPartial<I extends Exact<DeepPartial<getpaymentdetailsresponse>, I>>(object: I): getpaymentdetailsresponse;
|
|
108
|
+
};
|
|
109
|
+
export declare const getpaymentdetailsresponse_Data: {
|
|
110
|
+
encode(message: getpaymentdetailsresponse_Data, writer?: _m0.Writer): _m0.Writer;
|
|
111
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getpaymentdetailsresponse_Data;
|
|
112
|
+
fromJSON(object: any): getpaymentdetailsresponse_Data;
|
|
113
|
+
toJSON(message: getpaymentdetailsresponse_Data): unknown;
|
|
114
|
+
create<I extends Exact<DeepPartial<getpaymentdetailsresponse_Data>, I>>(base?: I): getpaymentdetailsresponse_Data;
|
|
115
|
+
fromPartial<I extends Exact<DeepPartial<getpaymentdetailsresponse_Data>, I>>(object: I): getpaymentdetailsresponse_Data;
|
|
116
|
+
};
|
|
117
|
+
export declare const getpaymentoptionsrequest: {
|
|
118
|
+
encode(message: getpaymentoptionsrequest, writer?: _m0.Writer): _m0.Writer;
|
|
119
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getpaymentoptionsrequest;
|
|
120
|
+
fromJSON(object: any): getpaymentoptionsrequest;
|
|
121
|
+
toJSON(message: getpaymentoptionsrequest): unknown;
|
|
122
|
+
create<I extends Exact<DeepPartial<getpaymentoptionsrequest>, I>>(base?: I): getpaymentoptionsrequest;
|
|
123
|
+
fromPartial<I extends Exact<DeepPartial<getpaymentoptionsrequest>, I>>(object: I): getpaymentoptionsrequest;
|
|
124
|
+
};
|
|
125
|
+
export declare const getpaymentoptionsresponse: {
|
|
126
|
+
encode(message: getpaymentoptionsresponse, writer?: _m0.Writer): _m0.Writer;
|
|
127
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getpaymentoptionsresponse;
|
|
128
|
+
fromJSON(object: any): getpaymentoptionsresponse;
|
|
129
|
+
toJSON(message: getpaymentoptionsresponse): unknown;
|
|
130
|
+
create<I extends Exact<DeepPartial<getpaymentoptionsresponse>, I>>(base?: I): getpaymentoptionsresponse;
|
|
131
|
+
fromPartial<I extends Exact<DeepPartial<getpaymentoptionsresponse>, I>>(object: I): getpaymentoptionsresponse;
|
|
132
|
+
};
|
|
133
|
+
export declare const getpaymentoptionsresponse_Data: {
|
|
134
|
+
encode(message: getpaymentoptionsresponse_Data, writer?: _m0.Writer): _m0.Writer;
|
|
135
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): getpaymentoptionsresponse_Data;
|
|
136
|
+
fromJSON(object: any): getpaymentoptionsresponse_Data;
|
|
137
|
+
toJSON(message: getpaymentoptionsresponse_Data): unknown;
|
|
138
|
+
create<I extends Exact<DeepPartial<getpaymentoptionsresponse_Data>, I>>(base?: I): getpaymentoptionsresponse_Data;
|
|
139
|
+
fromPartial<I extends Exact<DeepPartial<getpaymentoptionsresponse_Data>, I>>(object: I): getpaymentoptionsresponse_Data;
|
|
140
|
+
};
|
|
141
|
+
export declare const initiatepaymentrequest: {
|
|
142
|
+
encode(message: initiatepaymentrequest, writer?: _m0.Writer): _m0.Writer;
|
|
143
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): initiatepaymentrequest;
|
|
144
|
+
fromJSON(object: any): initiatepaymentrequest;
|
|
145
|
+
toJSON(message: initiatepaymentrequest): unknown;
|
|
146
|
+
create<I extends Exact<DeepPartial<initiatepaymentrequest>, I>>(base?: I): initiatepaymentrequest;
|
|
147
|
+
fromPartial<I extends Exact<DeepPartial<initiatepaymentrequest>, I>>(object: I): initiatepaymentrequest;
|
|
148
|
+
};
|
|
149
|
+
export declare const initiatepaymentresponse: {
|
|
150
|
+
encode(message: initiatepaymentresponse, writer?: _m0.Writer): _m0.Writer;
|
|
151
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): initiatepaymentresponse;
|
|
152
|
+
fromJSON(object: any): initiatepaymentresponse;
|
|
153
|
+
toJSON(message: initiatepaymentresponse): unknown;
|
|
154
|
+
create<I extends Exact<DeepPartial<initiatepaymentresponse>, I>>(base?: I): initiatepaymentresponse;
|
|
155
|
+
fromPartial<I extends Exact<DeepPartial<initiatepaymentresponse>, I>>(object: I): initiatepaymentresponse;
|
|
156
|
+
};
|
|
157
|
+
export declare const initiatepaymentresponse_Data: {
|
|
158
|
+
encode(message: initiatepaymentresponse_Data, writer?: _m0.Writer): _m0.Writer;
|
|
159
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): initiatepaymentresponse_Data;
|
|
160
|
+
fromJSON(object: any): initiatepaymentresponse_Data;
|
|
161
|
+
toJSON(message: initiatepaymentresponse_Data): unknown;
|
|
162
|
+
create<I extends Exact<DeepPartial<initiatepaymentresponse_Data>, I>>(base?: I): initiatepaymentresponse_Data;
|
|
163
|
+
fromPartial<I extends Exact<DeepPartial<initiatepaymentresponse_Data>, I>>(object: I): initiatepaymentresponse_Data;
|
|
164
|
+
};
|
|
165
|
+
export type paymentsService = typeof paymentsService;
|
|
166
|
+
export declare const paymentsService: {
|
|
167
|
+
readonly getpaymentoptions: {
|
|
168
|
+
readonly path: "/payments.service.payments/getpaymentoptions";
|
|
169
|
+
readonly requestStream: false;
|
|
170
|
+
readonly responseStream: false;
|
|
171
|
+
readonly requestSerialize: (value: getpaymentoptionsrequest) => Buffer;
|
|
172
|
+
readonly requestDeserialize: (value: Buffer) => getpaymentoptionsrequest;
|
|
173
|
+
readonly responseSerialize: (value: getpaymentoptionsresponse) => Buffer;
|
|
174
|
+
readonly responseDeserialize: (value: Buffer) => getpaymentoptionsresponse;
|
|
175
|
+
};
|
|
176
|
+
readonly initiatepayment: {
|
|
177
|
+
readonly path: "/payments.service.payments/initiatepayment";
|
|
178
|
+
readonly requestStream: false;
|
|
179
|
+
readonly responseStream: false;
|
|
180
|
+
readonly requestSerialize: (value: initiatepaymentrequest) => Buffer;
|
|
181
|
+
readonly requestDeserialize: (value: Buffer) => initiatepaymentrequest;
|
|
182
|
+
readonly responseSerialize: (value: initiatepaymentresponse) => Buffer;
|
|
183
|
+
readonly responseDeserialize: (value: Buffer) => initiatepaymentresponse;
|
|
184
|
+
};
|
|
185
|
+
readonly checkpaymentstatus: {
|
|
186
|
+
readonly path: "/payments.service.payments/checkpaymentstatus";
|
|
187
|
+
readonly requestStream: false;
|
|
188
|
+
readonly responseStream: false;
|
|
189
|
+
readonly requestSerialize: (value: checkpaymentstatusrequest) => Buffer;
|
|
190
|
+
readonly requestDeserialize: (value: Buffer) => checkpaymentstatusrequest;
|
|
191
|
+
readonly responseSerialize: (value: checkpaymentstatusresponse) => Buffer;
|
|
192
|
+
readonly responseDeserialize: (value: Buffer) => checkpaymentstatusresponse;
|
|
193
|
+
};
|
|
194
|
+
readonly getpaymentdetails: {
|
|
195
|
+
readonly path: "/payments.service.payments/getpaymentdetails";
|
|
196
|
+
readonly requestStream: false;
|
|
197
|
+
readonly responseStream: false;
|
|
198
|
+
readonly requestSerialize: (value: getpaymentdetailsrequest) => Buffer;
|
|
199
|
+
readonly requestDeserialize: (value: Buffer) => getpaymentdetailsrequest;
|
|
200
|
+
readonly responseSerialize: (value: getpaymentdetailsresponse) => Buffer;
|
|
201
|
+
readonly responseDeserialize: (value: Buffer) => getpaymentdetailsresponse;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
export interface paymentsServer extends UntypedServiceImplementation {
|
|
205
|
+
getpaymentoptions: handleUnaryCall<getpaymentoptionsrequest, getpaymentoptionsresponse>;
|
|
206
|
+
initiatepayment: handleUnaryCall<initiatepaymentrequest, initiatepaymentresponse>;
|
|
207
|
+
checkpaymentstatus: handleUnaryCall<checkpaymentstatusrequest, checkpaymentstatusresponse>;
|
|
208
|
+
getpaymentdetails: handleUnaryCall<getpaymentdetailsrequest, getpaymentdetailsresponse>;
|
|
209
|
+
}
|
|
210
|
+
export interface paymentsClient extends Client {
|
|
211
|
+
getpaymentoptions(request: getpaymentoptionsrequest, callback: (error: ServiceError | null, response: getpaymentoptionsresponse) => void): ClientUnaryCall;
|
|
212
|
+
getpaymentoptions(request: getpaymentoptionsrequest, metadata: Metadata, callback: (error: ServiceError | null, response: getpaymentoptionsresponse) => void): ClientUnaryCall;
|
|
213
|
+
getpaymentoptions(request: getpaymentoptionsrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getpaymentoptionsresponse) => void): ClientUnaryCall;
|
|
214
|
+
initiatepayment(request: initiatepaymentrequest, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
|
|
215
|
+
initiatepayment(request: initiatepaymentrequest, metadata: Metadata, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
|
|
216
|
+
initiatepayment(request: initiatepaymentrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: initiatepaymentresponse) => void): ClientUnaryCall;
|
|
217
|
+
checkpaymentstatus(request: checkpaymentstatusrequest, callback: (error: ServiceError | null, response: checkpaymentstatusresponse) => void): ClientUnaryCall;
|
|
218
|
+
checkpaymentstatus(request: checkpaymentstatusrequest, metadata: Metadata, callback: (error: ServiceError | null, response: checkpaymentstatusresponse) => void): ClientUnaryCall;
|
|
219
|
+
checkpaymentstatus(request: checkpaymentstatusrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: checkpaymentstatusresponse) => void): ClientUnaryCall;
|
|
220
|
+
getpaymentdetails(request: getpaymentdetailsrequest, callback: (error: ServiceError | null, response: getpaymentdetailsresponse) => void): ClientUnaryCall;
|
|
221
|
+
getpaymentdetails(request: getpaymentdetailsrequest, metadata: Metadata, callback: (error: ServiceError | null, response: getpaymentdetailsresponse) => void): ClientUnaryCall;
|
|
222
|
+
getpaymentdetails(request: getpaymentdetailsrequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: getpaymentdetailsresponse) => void): ClientUnaryCall;
|
|
223
|
+
}
|
|
224
|
+
export declare const paymentsClient: {
|
|
225
|
+
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): paymentsClient;
|
|
226
|
+
service: typeof paymentsService;
|
|
227
|
+
serviceName: string;
|
|
228
|
+
};
|
|
229
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
230
|
+
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 {} ? {
|
|
231
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
232
|
+
} : Partial<T>;
|
|
233
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
234
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
235
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
236
|
+
} & {
|
|
237
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
238
|
+
};
|
|
239
|
+
export {};
|