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.
- package/dist/clients/payment.client.d.ts +18 -0
- package/dist/clients/payment.client.js +145 -0
- package/dist/clients/user.client.d.ts +9 -0
- package/dist/clients/user.client.js +55 -0
- package/dist/generated/auth.d.ts +62 -0
- package/dist/generated/auth.grpc-client.d.ts +28 -0
- package/dist/generated/auth.grpc-client.js +44 -0
- package/dist/generated/auth.js +127 -0
- package/dist/generated/payment.d.ts +575 -0
- package/dist/generated/payment.grpc-client.d.ts +157 -0
- package/dist/generated/payment.grpc-client.js +116 -0
- package/dist/generated/payment.js +1293 -0
- package/dist/generated/user.d.ts +216 -0
- package/dist/generated/user.grpc-client.d.ts +67 -0
- package/dist/generated/user.grpc-client.js +65 -0
- package/dist/generated/user.js +492 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +26 -0
- package/package.json +26 -0
- package/proto/auth.proto +19 -0
- package/proto/payment.proto +148 -0
- package/proto/user.proto +57 -0
- package/src/clients/payment.client.ts +233 -0
- package/src/clients/user.client.ts +57 -0
- package/src/generated/auth.grpc-client.ts +38 -0
- package/src/generated/auth.ts +159 -0
- package/src/generated/payment.grpc-client.ts +197 -0
- package/src/generated/payment.ts +1668 -0
- package/src/generated/user.grpc-client.ts +86 -0
- package/src/generated/user.ts +618 -0
- package/src/index.ts +53 -0
- package/tsconfig.json +30 -0
- package/wash-service-sdk-1.0.0.tgz +0 -0
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter client_grpc1
|
|
2
|
+
// @generated from protobuf file "payment.proto" (package "payment", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
import { PaymentService } from "./payment";
|
|
5
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
6
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
7
|
+
import type { GetPaymentV1Response } from "./payment";
|
|
8
|
+
import type { GetPaymentV1Request } from "./payment";
|
|
9
|
+
import type { ConfirmPaymentResponse } from "./payment";
|
|
10
|
+
import type { ConfirmPaymentRequest } from "./payment";
|
|
11
|
+
import type { GetDailySubscriptionRevenueResponse } from "./payment";
|
|
12
|
+
import type { GetRevenueSubscriptionResponse } from "./payment";
|
|
13
|
+
import type { GetRevenueSubscriptionRequest } from "./payment";
|
|
14
|
+
import type { PaymentPaymentKeyRequest } from "./payment";
|
|
15
|
+
import type { GetPaymentFailuresResponse } from "./payment";
|
|
16
|
+
import type { GetPaymentFailuresRequest } from "./payment";
|
|
17
|
+
import type { IsRegisteredCardResponse } from "./payment";
|
|
18
|
+
import type { IsRegisteredCardRequest } from "./payment";
|
|
19
|
+
import type { CancelRequest } from "./payment";
|
|
20
|
+
import type { PaymentResponse } from "./payment";
|
|
21
|
+
import type { PaymentRequest } from "./payment";
|
|
22
|
+
import type { AddServiceResponse } from "./payment";
|
|
23
|
+
import type { AddServiceRequest } from "./payment";
|
|
24
|
+
import * as grpc from "@grpc/grpc-js";
|
|
25
|
+
/**
|
|
26
|
+
* 결제 서비스 정의
|
|
27
|
+
*
|
|
28
|
+
* @generated from protobuf service payment.PaymentService
|
|
29
|
+
*/
|
|
30
|
+
export interface IPaymentServiceClient {
|
|
31
|
+
/**
|
|
32
|
+
* @generated from protobuf rpc: AddService
|
|
33
|
+
*/
|
|
34
|
+
addService(input: AddServiceRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AddServiceResponse) => void): grpc.ClientUnaryCall;
|
|
35
|
+
addService(input: AddServiceRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: AddServiceResponse) => void): grpc.ClientUnaryCall;
|
|
36
|
+
addService(input: AddServiceRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: AddServiceResponse) => void): grpc.ClientUnaryCall;
|
|
37
|
+
addService(input: AddServiceRequest, callback: (err: grpc.ServiceError | null, value?: AddServiceResponse) => void): grpc.ClientUnaryCall;
|
|
38
|
+
/**
|
|
39
|
+
* @generated from protobuf rpc: ProcessPayment
|
|
40
|
+
*/
|
|
41
|
+
processPayment(input: PaymentRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
42
|
+
processPayment(input: PaymentRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
43
|
+
processPayment(input: PaymentRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
44
|
+
processPayment(input: PaymentRequest, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
45
|
+
/**
|
|
46
|
+
* @generated from protobuf rpc: RetryPayment
|
|
47
|
+
*/
|
|
48
|
+
retryPayment(input: PaymentRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
49
|
+
retryPayment(input: PaymentRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
50
|
+
retryPayment(input: PaymentRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
51
|
+
retryPayment(input: PaymentRequest, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
52
|
+
/**
|
|
53
|
+
* @generated from protobuf rpc: CancelPayment
|
|
54
|
+
*/
|
|
55
|
+
cancelPayment(input: CancelRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
56
|
+
cancelPayment(input: CancelRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
57
|
+
cancelPayment(input: CancelRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
58
|
+
cancelPayment(input: CancelRequest, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
59
|
+
/**
|
|
60
|
+
* @generated from protobuf rpc: IsRegisteredCard
|
|
61
|
+
*/
|
|
62
|
+
isRegisteredCard(input: IsRegisteredCardRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: IsRegisteredCardResponse) => void): grpc.ClientUnaryCall;
|
|
63
|
+
isRegisteredCard(input: IsRegisteredCardRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: IsRegisteredCardResponse) => void): grpc.ClientUnaryCall;
|
|
64
|
+
isRegisteredCard(input: IsRegisteredCardRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: IsRegisteredCardResponse) => void): grpc.ClientUnaryCall;
|
|
65
|
+
isRegisteredCard(input: IsRegisteredCardRequest, callback: (err: grpc.ServiceError | null, value?: IsRegisteredCardResponse) => void): grpc.ClientUnaryCall;
|
|
66
|
+
/**
|
|
67
|
+
* @generated from protobuf rpc: GetPaymentFailures
|
|
68
|
+
*/
|
|
69
|
+
getPaymentFailures(input: GetPaymentFailuresRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetPaymentFailuresResponse) => void): grpc.ClientUnaryCall;
|
|
70
|
+
getPaymentFailures(input: GetPaymentFailuresRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetPaymentFailuresResponse) => void): grpc.ClientUnaryCall;
|
|
71
|
+
getPaymentFailures(input: GetPaymentFailuresRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetPaymentFailuresResponse) => void): grpc.ClientUnaryCall;
|
|
72
|
+
getPaymentFailures(input: GetPaymentFailuresRequest, callback: (err: grpc.ServiceError | null, value?: GetPaymentFailuresResponse) => void): grpc.ClientUnaryCall;
|
|
73
|
+
/**
|
|
74
|
+
* @generated from protobuf rpc: ProcessPaymentBilling
|
|
75
|
+
*/
|
|
76
|
+
processPaymentBilling(input: PaymentPaymentKeyRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
77
|
+
processPaymentBilling(input: PaymentPaymentKeyRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
78
|
+
processPaymentBilling(input: PaymentPaymentKeyRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
79
|
+
processPaymentBilling(input: PaymentPaymentKeyRequest, callback: (err: grpc.ServiceError | null, value?: PaymentResponse) => void): grpc.ClientUnaryCall;
|
|
80
|
+
/**
|
|
81
|
+
* @generated from protobuf rpc: GetRevenueSubscription
|
|
82
|
+
*/
|
|
83
|
+
getRevenueSubscription(input: GetRevenueSubscriptionRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetRevenueSubscriptionResponse) => void): grpc.ClientUnaryCall;
|
|
84
|
+
getRevenueSubscription(input: GetRevenueSubscriptionRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetRevenueSubscriptionResponse) => void): grpc.ClientUnaryCall;
|
|
85
|
+
getRevenueSubscription(input: GetRevenueSubscriptionRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetRevenueSubscriptionResponse) => void): grpc.ClientUnaryCall;
|
|
86
|
+
getRevenueSubscription(input: GetRevenueSubscriptionRequest, callback: (err: grpc.ServiceError | null, value?: GetRevenueSubscriptionResponse) => void): grpc.ClientUnaryCall;
|
|
87
|
+
/**
|
|
88
|
+
* @generated from protobuf rpc: GetDailyRevenueSubscription
|
|
89
|
+
*/
|
|
90
|
+
getDailyRevenueSubscription(input: GetRevenueSubscriptionRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetDailySubscriptionRevenueResponse) => void): grpc.ClientUnaryCall;
|
|
91
|
+
getDailyRevenueSubscription(input: GetRevenueSubscriptionRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetDailySubscriptionRevenueResponse) => void): grpc.ClientUnaryCall;
|
|
92
|
+
getDailyRevenueSubscription(input: GetRevenueSubscriptionRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetDailySubscriptionRevenueResponse) => void): grpc.ClientUnaryCall;
|
|
93
|
+
getDailyRevenueSubscription(input: GetRevenueSubscriptionRequest, callback: (err: grpc.ServiceError | null, value?: GetDailySubscriptionRevenueResponse) => void): grpc.ClientUnaryCall;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from protobuf rpc: ConfirmPayment
|
|
96
|
+
*/
|
|
97
|
+
confirmPayment(input: ConfirmPaymentRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ConfirmPaymentResponse) => void): grpc.ClientUnaryCall;
|
|
98
|
+
confirmPayment(input: ConfirmPaymentRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ConfirmPaymentResponse) => void): grpc.ClientUnaryCall;
|
|
99
|
+
confirmPayment(input: ConfirmPaymentRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ConfirmPaymentResponse) => void): grpc.ClientUnaryCall;
|
|
100
|
+
confirmPayment(input: ConfirmPaymentRequest, callback: (err: grpc.ServiceError | null, value?: ConfirmPaymentResponse) => void): grpc.ClientUnaryCall;
|
|
101
|
+
/**
|
|
102
|
+
* @generated from protobuf rpc: GetPayment
|
|
103
|
+
*/
|
|
104
|
+
getPayment(input: GetPaymentV1Request, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetPaymentV1Response) => void): grpc.ClientUnaryCall;
|
|
105
|
+
getPayment(input: GetPaymentV1Request, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: GetPaymentV1Response) => void): grpc.ClientUnaryCall;
|
|
106
|
+
getPayment(input: GetPaymentV1Request, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: GetPaymentV1Response) => void): grpc.ClientUnaryCall;
|
|
107
|
+
getPayment(input: GetPaymentV1Request, callback: (err: grpc.ServiceError | null, value?: GetPaymentV1Response) => void): grpc.ClientUnaryCall;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* 결제 서비스 정의
|
|
111
|
+
*
|
|
112
|
+
* @generated from protobuf service payment.PaymentService
|
|
113
|
+
*/
|
|
114
|
+
export class PaymentServiceClient extends grpc.Client implements IPaymentServiceClient {
|
|
115
|
+
private readonly _binaryOptions: Partial<BinaryReadOptions & BinaryWriteOptions>;
|
|
116
|
+
constructor(address: string, credentials: grpc.ChannelCredentials, options: grpc.ClientOptions = {}, binaryOptions: Partial<BinaryReadOptions & BinaryWriteOptions> = {}) {
|
|
117
|
+
super(address, credentials, options);
|
|
118
|
+
this._binaryOptions = binaryOptions;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* @generated from protobuf rpc: AddService
|
|
122
|
+
*/
|
|
123
|
+
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 {
|
|
124
|
+
const method = PaymentService.methods[0];
|
|
125
|
+
return this.makeUnaryRequest<AddServiceRequest, AddServiceResponse>(`/${PaymentService.typeName}/${method.name}`, (value: AddServiceRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): AddServiceResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @generated from protobuf rpc: ProcessPayment
|
|
129
|
+
*/
|
|
130
|
+
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 {
|
|
131
|
+
const method = PaymentService.methods[1];
|
|
132
|
+
return this.makeUnaryRequest<PaymentRequest, PaymentResponse>(`/${PaymentService.typeName}/${method.name}`, (value: PaymentRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): PaymentResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* @generated from protobuf rpc: RetryPayment
|
|
136
|
+
*/
|
|
137
|
+
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 {
|
|
138
|
+
const method = PaymentService.methods[2];
|
|
139
|
+
return this.makeUnaryRequest<PaymentRequest, PaymentResponse>(`/${PaymentService.typeName}/${method.name}`, (value: PaymentRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): PaymentResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* @generated from protobuf rpc: CancelPayment
|
|
143
|
+
*/
|
|
144
|
+
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 {
|
|
145
|
+
const method = PaymentService.methods[3];
|
|
146
|
+
return this.makeUnaryRequest<CancelRequest, PaymentResponse>(`/${PaymentService.typeName}/${method.name}`, (value: CancelRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): PaymentResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* @generated from protobuf rpc: IsRegisteredCard
|
|
150
|
+
*/
|
|
151
|
+
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 {
|
|
152
|
+
const method = PaymentService.methods[4];
|
|
153
|
+
return this.makeUnaryRequest<IsRegisteredCardRequest, IsRegisteredCardResponse>(`/${PaymentService.typeName}/${method.name}`, (value: IsRegisteredCardRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): IsRegisteredCardResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* @generated from protobuf rpc: GetPaymentFailures
|
|
157
|
+
*/
|
|
158
|
+
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 {
|
|
159
|
+
const method = PaymentService.methods[5];
|
|
160
|
+
return this.makeUnaryRequest<GetPaymentFailuresRequest, GetPaymentFailuresResponse>(`/${PaymentService.typeName}/${method.name}`, (value: GetPaymentFailuresRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): GetPaymentFailuresResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* @generated from protobuf rpc: ProcessPaymentBilling
|
|
164
|
+
*/
|
|
165
|
+
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 {
|
|
166
|
+
const method = PaymentService.methods[6];
|
|
167
|
+
return this.makeUnaryRequest<PaymentPaymentKeyRequest, PaymentResponse>(`/${PaymentService.typeName}/${method.name}`, (value: PaymentPaymentKeyRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): PaymentResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* @generated from protobuf rpc: GetRevenueSubscription
|
|
171
|
+
*/
|
|
172
|
+
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 {
|
|
173
|
+
const method = PaymentService.methods[7];
|
|
174
|
+
return this.makeUnaryRequest<GetRevenueSubscriptionRequest, GetRevenueSubscriptionResponse>(`/${PaymentService.typeName}/${method.name}`, (value: GetRevenueSubscriptionRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): GetRevenueSubscriptionResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* @generated from protobuf rpc: GetDailyRevenueSubscription
|
|
178
|
+
*/
|
|
179
|
+
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 {
|
|
180
|
+
const method = PaymentService.methods[8];
|
|
181
|
+
return this.makeUnaryRequest<GetRevenueSubscriptionRequest, GetDailySubscriptionRevenueResponse>(`/${PaymentService.typeName}/${method.name}`, (value: GetRevenueSubscriptionRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): GetDailySubscriptionRevenueResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @generated from protobuf rpc: ConfirmPayment
|
|
185
|
+
*/
|
|
186
|
+
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 {
|
|
187
|
+
const method = PaymentService.methods[9];
|
|
188
|
+
return this.makeUnaryRequest<ConfirmPaymentRequest, ConfirmPaymentResponse>(`/${PaymentService.typeName}/${method.name}`, (value: ConfirmPaymentRequest): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): ConfirmPaymentResponse => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* @generated from protobuf rpc: GetPayment
|
|
192
|
+
*/
|
|
193
|
+
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 {
|
|
194
|
+
const method = PaymentService.methods[10];
|
|
195
|
+
return this.makeUnaryRequest<GetPaymentV1Request, GetPaymentV1Response>(`/${PaymentService.typeName}/${method.name}`, (value: GetPaymentV1Request): Buffer => Buffer.from(method.I.toBinary(value, this._binaryOptions)), (value: Buffer): GetPaymentV1Response => method.O.fromBinary(value, this._binaryOptions), input, (metadata as any), (options as any), (callback as any));
|
|
196
|
+
}
|
|
197
|
+
}
|