wash-service-sdk 1.0.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.
@@ -0,0 +1,157 @@
1
+ import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
2
+ import type { BinaryReadOptions } from "@protobuf-ts/runtime";
3
+ import type { GetPaymentV1Response } from "./payment";
4
+ import type { GetPaymentV1Request } from "./payment";
5
+ import type { ConfirmPaymentResponse } from "./payment";
6
+ import type { ConfirmPaymentRequest } from "./payment";
7
+ import type { GetDailySubscriptionRevenueResponse } from "./payment";
8
+ import type { GetRevenueSubscriptionResponse } from "./payment";
9
+ import type { GetRevenueSubscriptionRequest } from "./payment";
10
+ import type { PaymentPaymentKeyRequest } from "./payment";
11
+ import type { GetPaymentFailuresResponse } from "./payment";
12
+ import type { GetPaymentFailuresRequest } from "./payment";
13
+ import type { IsRegisteredCardResponse } from "./payment";
14
+ import type { IsRegisteredCardRequest } from "./payment";
15
+ import type { CancelRequest } from "./payment";
16
+ import type { PaymentResponse } from "./payment";
17
+ import type { PaymentRequest } from "./payment";
18
+ import type { AddServiceResponse } from "./payment";
19
+ import type { AddServiceRequest } from "./payment";
20
+ import * as grpc from "@grpc/grpc-js";
21
+ /**
22
+ * 결제 서비스 정의
23
+ *
24
+ * @generated from protobuf service payment.PaymentService
25
+ */
26
+ export interface IPaymentServiceClient {
27
+ /**
28
+ * @generated from protobuf rpc: AddService
29
+ */
30
+ addService(input: AddServiceRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AddServiceResponse) => void): grpc.ClientUnaryCall;
31
+ addService(input: AddServiceRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: AddServiceResponse) => void): grpc.ClientUnaryCall;
32
+ addService(input: AddServiceRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AddServiceResponse) => void): grpc.ClientUnaryCall;
33
+ addService(input: AddServiceRequest, callback: (err: grpc.ServiceError | null, value?: AddServiceResponse) => void): grpc.ClientUnaryCall;
34
+ /**
35
+ * @generated from protobuf rpc: ProcessPayment
36
+ */
37
+ processPayment(input: PaymentRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
38
+ processPayment(input: PaymentRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
39
+ processPayment(input: PaymentRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
40
+ processPayment(input: PaymentRequest, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
41
+ /**
42
+ * @generated from protobuf rpc: RetryPayment
43
+ */
44
+ retryPayment(input: PaymentRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
45
+ retryPayment(input: PaymentRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
46
+ retryPayment(input: PaymentRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
47
+ retryPayment(input: PaymentRequest, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
48
+ /**
49
+ * @generated from protobuf rpc: CancelPayment
50
+ */
51
+ cancelPayment(input: CancelRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
52
+ cancelPayment(input: CancelRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
53
+ cancelPayment(input: CancelRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
54
+ cancelPayment(input: CancelRequest, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
55
+ /**
56
+ * @generated from protobuf rpc: IsRegisteredCard
57
+ */
58
+ isRegisteredCard(input: IsRegisteredCardRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: IsRegisteredCardResponse) => void): grpc.ClientUnaryCall;
59
+ isRegisteredCard(input: IsRegisteredCardRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: IsRegisteredCardResponse) => void): grpc.ClientUnaryCall;
60
+ isRegisteredCard(input: IsRegisteredCardRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: IsRegisteredCardResponse) => void): grpc.ClientUnaryCall;
61
+ isRegisteredCard(input: IsRegisteredCardRequest, callback: (err: grpc.ServiceError | null, value?: IsRegisteredCardResponse) => void): grpc.ClientUnaryCall;
62
+ /**
63
+ * @generated from protobuf rpc: GetPaymentFailures
64
+ */
65
+ getPaymentFailures(input: GetPaymentFailuresRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetPaymentFailuresResponse) => void): grpc.ClientUnaryCall;
66
+ getPaymentFailures(input: GetPaymentFailuresRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetPaymentFailuresResponse) => void): grpc.ClientUnaryCall;
67
+ getPaymentFailures(input: GetPaymentFailuresRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetPaymentFailuresResponse) => void): grpc.ClientUnaryCall;
68
+ getPaymentFailures(input: GetPaymentFailuresRequest, callback: (err: grpc.ServiceError | null, value?: GetPaymentFailuresResponse) => void): grpc.ClientUnaryCall;
69
+ /**
70
+ * @generated from protobuf rpc: ProcessPaymentBilling
71
+ */
72
+ processPaymentBilling(input: PaymentPaymentKeyRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
73
+ processPaymentBilling(input: PaymentPaymentKeyRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
74
+ processPaymentBilling(input: PaymentPaymentKeyRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
75
+ processPaymentBilling(input: PaymentPaymentKeyRequest, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
76
+ /**
77
+ * @generated from protobuf rpc: GetRevenueSubscription
78
+ */
79
+ getRevenueSubscription(input: GetRevenueSubscriptionRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetRevenueSubscriptionResponse) => void): grpc.ClientUnaryCall;
80
+ getRevenueSubscription(input: GetRevenueSubscriptionRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetRevenueSubscriptionResponse) => void): grpc.ClientUnaryCall;
81
+ getRevenueSubscription(input: GetRevenueSubscriptionRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetRevenueSubscriptionResponse) => void): grpc.ClientUnaryCall;
82
+ getRevenueSubscription(input: GetRevenueSubscriptionRequest, callback: (err: grpc.ServiceError | null, value?: GetRevenueSubscriptionResponse) => void): grpc.ClientUnaryCall;
83
+ /**
84
+ * @generated from protobuf rpc: GetDailyRevenueSubscription
85
+ */
86
+ getDailyRevenueSubscription(input: GetRevenueSubscriptionRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetDailySubscriptionRevenueResponse) => void): grpc.ClientUnaryCall;
87
+ getDailyRevenueSubscription(input: GetRevenueSubscriptionRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetDailySubscriptionRevenueResponse) => void): grpc.ClientUnaryCall;
88
+ getDailyRevenueSubscription(input: GetRevenueSubscriptionRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetDailySubscriptionRevenueResponse) => void): grpc.ClientUnaryCall;
89
+ getDailyRevenueSubscription(input: GetRevenueSubscriptionRequest, callback: (err: grpc.ServiceError | null, value?: GetDailySubscriptionRevenueResponse) => void): grpc.ClientUnaryCall;
90
+ /**
91
+ * @generated from protobuf rpc: ConfirmPayment
92
+ */
93
+ confirmPayment(input: ConfirmPaymentRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ConfirmPaymentResponse) => void): grpc.ClientUnaryCall;
94
+ confirmPayment(input: ConfirmPaymentRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ConfirmPaymentResponse) => void): grpc.ClientUnaryCall;
95
+ confirmPayment(input: ConfirmPaymentRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ConfirmPaymentResponse) => void): grpc.ClientUnaryCall;
96
+ confirmPayment(input: ConfirmPaymentRequest, callback: (err: grpc.ServiceError | null, value?: ConfirmPaymentResponse) => void): grpc.ClientUnaryCall;
97
+ /**
98
+ * @generated from protobuf rpc: GetPayment
99
+ */
100
+ getPayment(input: GetPaymentV1Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetPaymentV1Response) => void): grpc.ClientUnaryCall;
101
+ getPayment(input: GetPaymentV1Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetPaymentV1Response) => void): grpc.ClientUnaryCall;
102
+ getPayment(input: GetPaymentV1Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetPaymentV1Response) => void): grpc.ClientUnaryCall;
103
+ getPayment(input: GetPaymentV1Request, callback: (err: grpc.ServiceError | null, value?: GetPaymentV1Response) => void): grpc.ClientUnaryCall;
104
+ }
105
+ /**
106
+ * 결제 서비스 정의
107
+ *
108
+ * @generated from protobuf service payment.PaymentService
109
+ */
110
+ export declare class PaymentServiceClient extends grpc.Client implements IPaymentServiceClient {
111
+ private readonly _binaryOptions;
112
+ constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial<BinaryReadOptions & BinaryWriteOptions>);
113
+ /**
114
+ * @generated from protobuf rpc: AddService
115
+ */
116
+ addService(input: AddServiceRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: AddServiceResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: AddServiceResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: AddServiceResponse) => void)): grpc.ClientUnaryCall;
117
+ /**
118
+ * @generated from protobuf rpc: ProcessPayment
119
+ */
120
+ processPayment(input: PaymentRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: PaymentResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: PaymentResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: PaymentResponse) => void)): grpc.ClientUnaryCall;
121
+ /**
122
+ * @generated from protobuf rpc: RetryPayment
123
+ */
124
+ retryPayment(input: PaymentRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: PaymentResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: PaymentResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: PaymentResponse) => void)): grpc.ClientUnaryCall;
125
+ /**
126
+ * @generated from protobuf rpc: CancelPayment
127
+ */
128
+ cancelPayment(input: CancelRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: PaymentResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: PaymentResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: PaymentResponse) => void)): grpc.ClientUnaryCall;
129
+ /**
130
+ * @generated from protobuf rpc: IsRegisteredCard
131
+ */
132
+ isRegisteredCard(input: IsRegisteredCardRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: IsRegisteredCardResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: IsRegisteredCardResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: IsRegisteredCardResponse) => void)): grpc.ClientUnaryCall;
133
+ /**
134
+ * @generated from protobuf rpc: GetPaymentFailures
135
+ */
136
+ getPaymentFailures(input: GetPaymentFailuresRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetPaymentFailuresResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetPaymentFailuresResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: GetPaymentFailuresResponse) => void)): grpc.ClientUnaryCall;
137
+ /**
138
+ * @generated from protobuf rpc: ProcessPaymentBilling
139
+ */
140
+ processPaymentBilling(input: PaymentPaymentKeyRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: PaymentResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: PaymentResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: PaymentResponse) => void)): grpc.ClientUnaryCall;
141
+ /**
142
+ * @generated from protobuf rpc: GetRevenueSubscription
143
+ */
144
+ getRevenueSubscription(input: GetRevenueSubscriptionRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetRevenueSubscriptionResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetRevenueSubscriptionResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: GetRevenueSubscriptionResponse) => void)): grpc.ClientUnaryCall;
145
+ /**
146
+ * @generated from protobuf rpc: GetDailyRevenueSubscription
147
+ */
148
+ getDailyRevenueSubscription(input: GetRevenueSubscriptionRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetDailySubscriptionRevenueResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetDailySubscriptionRevenueResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: GetDailySubscriptionRevenueResponse) => void)): grpc.ClientUnaryCall;
149
+ /**
150
+ * @generated from protobuf rpc: ConfirmPayment
151
+ */
152
+ confirmPayment(input: ConfirmPaymentRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ConfirmPaymentResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ConfirmPaymentResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ConfirmPaymentResponse) => void)): grpc.ClientUnaryCall;
153
+ /**
154
+ * @generated from protobuf rpc: GetPayment
155
+ */
156
+ getPayment(input: GetPaymentV1Request, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetPaymentV1Response) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: GetPaymentV1Response) => void), callback?: ((err: grpc.ServiceError | null, value?: GetPaymentV1Response) => void)): grpc.ClientUnaryCall;
157
+ }
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ Object.defineProperty(exports, "__esModule", { value: true });
22
+ exports.PaymentServiceClient = void 0;
23
+ // @generated by protobuf-ts 2.11.1 with parameter client_grpc1
24
+ // @generated from protobuf file "payment.proto" (package "payment", syntax proto3)
25
+ // tslint:disable
26
+ const payment_1 = require("./payment");
27
+ const grpc = __importStar(require("@grpc/grpc-js"));
28
+ /**
29
+ * 결제 서비스 정의
30
+ *
31
+ * @generated from protobuf service payment.PaymentService
32
+ */
33
+ class PaymentServiceClient extends grpc.Client {
34
+ constructor(address, credentials, options = {}, binaryOptions = {}) {
35
+ super(address, credentials, options);
36
+ this._binaryOptions = binaryOptions;
37
+ }
38
+ /**
39
+ * @generated from protobuf rpc: AddService
40
+ */
41
+ addService(input, metadata, options, callback) {
42
+ const method = payment_1.PaymentService.methods[0];
43
+ return this.makeUnaryRequest(`/${payment_1.PaymentService.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback);
44
+ }
45
+ /**
46
+ * @generated from protobuf rpc: ProcessPayment
47
+ */
48
+ processPayment(input, metadata, options, callback) {
49
+ const method = payment_1.PaymentService.methods[1];
50
+ return this.makeUnaryRequest(`/${payment_1.PaymentService.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback);
51
+ }
52
+ /**
53
+ * @generated from protobuf rpc: RetryPayment
54
+ */
55
+ retryPayment(input, metadata, options, callback) {
56
+ const method = payment_1.PaymentService.methods[2];
57
+ return this.makeUnaryRequest(`/${payment_1.PaymentService.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback);
58
+ }
59
+ /**
60
+ * @generated from protobuf rpc: CancelPayment
61
+ */
62
+ cancelPayment(input, metadata, options, callback) {
63
+ const method = payment_1.PaymentService.methods[3];
64
+ return this.makeUnaryRequest(`/${payment_1.PaymentService.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback);
65
+ }
66
+ /**
67
+ * @generated from protobuf rpc: IsRegisteredCard
68
+ */
69
+ isRegisteredCard(input, metadata, options, callback) {
70
+ const method = payment_1.PaymentService.methods[4];
71
+ return this.makeUnaryRequest(`/${payment_1.PaymentService.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback);
72
+ }
73
+ /**
74
+ * @generated from protobuf rpc: GetPaymentFailures
75
+ */
76
+ getPaymentFailures(input, metadata, options, callback) {
77
+ const method = payment_1.PaymentService.methods[5];
78
+ return this.makeUnaryRequest(`/${payment_1.PaymentService.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback);
79
+ }
80
+ /**
81
+ * @generated from protobuf rpc: ProcessPaymentBilling
82
+ */
83
+ processPaymentBilling(input, metadata, options, callback) {
84
+ const method = payment_1.PaymentService.methods[6];
85
+ return this.makeUnaryRequest(`/${payment_1.PaymentService.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback);
86
+ }
87
+ /**
88
+ * @generated from protobuf rpc: GetRevenueSubscription
89
+ */
90
+ getRevenueSubscription(input, metadata, options, callback) {
91
+ const method = payment_1.PaymentService.methods[7];
92
+ return this.makeUnaryRequest(`/${payment_1.PaymentService.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback);
93
+ }
94
+ /**
95
+ * @generated from protobuf rpc: GetDailyRevenueSubscription
96
+ */
97
+ getDailyRevenueSubscription(input, metadata, options, callback) {
98
+ const method = payment_1.PaymentService.methods[8];
99
+ return this.makeUnaryRequest(`/${payment_1.PaymentService.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback);
100
+ }
101
+ /**
102
+ * @generated from protobuf rpc: ConfirmPayment
103
+ */
104
+ confirmPayment(input, metadata, options, callback) {
105
+ const method = payment_1.PaymentService.methods[9];
106
+ return this.makeUnaryRequest(`/${payment_1.PaymentService.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback);
107
+ }
108
+ /**
109
+ * @generated from protobuf rpc: GetPayment
110
+ */
111
+ getPayment(input, metadata, options, callback) {
112
+ const method = payment_1.PaymentService.methods[10];
113
+ return this.makeUnaryRequest(`/${payment_1.PaymentService.typeName}/${method.name}`, (value) => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value) => method.O.fromBinary(value, this._binaryOptions), input, metadata, options, callback);
114
+ }
115
+ }
116
+ exports.PaymentServiceClient = PaymentServiceClient;