@sniipwebmaster/worldpay-service-client-grpcweb 25.5.22 → 25.5.29

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,452 @@
1
+ /**
2
+ * @fileoverview gRPC-Web generated client stub for worldpayserviceapi
3
+ * @enhanceable
4
+ * @public
5
+ */
6
+
7
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
8
+ // versions:
9
+ // protoc-gen-grpc-web v1.5.0
10
+ // protoc v3.20.1
11
+ // source: service.proto
12
+
13
+
14
+ /* eslint-disable */
15
+ // @ts-nocheck
16
+
17
+
18
+
19
+ const grpc = {};
20
+ grpc.web = require('grpc-web');
21
+
22
+
23
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js')
24
+
25
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
26
+
27
+ var google_type_decimal_pb = require('./google/type/decimal_pb.js')
28
+
29
+ var protoc$gen$openapiv2_options_annotations_pb = require('./protoc-gen-openapiv2/options/annotations_pb.js')
30
+ const proto = {};
31
+ proto.worldpayserviceapi = require('./service_pb.js');
32
+
33
+ /**
34
+ * @param {string} hostname
35
+ * @param {?Object} credentials
36
+ * @param {?grpc.web.ClientOptions} options
37
+ * @constructor
38
+ * @struct
39
+ * @final
40
+ */
41
+ proto.worldpayserviceapi.WorldPayServiceClient =
42
+ function(hostname, credentials, options) {
43
+ if (!options) options = {};
44
+ options.format = 'text';
45
+
46
+ /**
47
+ * @private @const {!grpc.web.GrpcWebClientBase} The client
48
+ */
49
+ this.client_ = new grpc.web.GrpcWebClientBase(options);
50
+
51
+ /**
52
+ * @private @const {string} The hostname
53
+ */
54
+ this.hostname_ = hostname.replace(/\/+$/, '');
55
+
56
+ };
57
+
58
+
59
+ /**
60
+ * @param {string} hostname
61
+ * @param {?Object} credentials
62
+ * @param {?grpc.web.ClientOptions} options
63
+ * @constructor
64
+ * @struct
65
+ * @final
66
+ */
67
+ proto.worldpayserviceapi.WorldPayServicePromiseClient =
68
+ function(hostname, credentials, options) {
69
+ if (!options) options = {};
70
+ options.format = 'text';
71
+
72
+ /**
73
+ * @private @const {!grpc.web.GrpcWebClientBase} The client
74
+ */
75
+ this.client_ = new grpc.web.GrpcWebClientBase(options);
76
+
77
+ /**
78
+ * @private @const {string} The hostname
79
+ */
80
+ this.hostname_ = hostname.replace(/\/+$/, '');
81
+
82
+ };
83
+
84
+
85
+ /**
86
+ * @const
87
+ * @type {!grpc.web.MethodDescriptor<
88
+ * !proto.google.protobuf.Empty,
89
+ * !proto.worldpayserviceapi.ResponseCode>}
90
+ */
91
+ const methodDescriptor_WorldPayService_AuthUserExample = new grpc.web.MethodDescriptor(
92
+ '/worldpayserviceapi.WorldPayService/AuthUserExample',
93
+ grpc.web.MethodType.UNARY,
94
+ google_protobuf_empty_pb.Empty,
95
+ proto.worldpayserviceapi.ResponseCode,
96
+ /**
97
+ * @param {!proto.google.protobuf.Empty} request
98
+ * @return {!Uint8Array}
99
+ */
100
+ function(request) {
101
+ return request.serializeBinary();
102
+ },
103
+ proto.worldpayserviceapi.ResponseCode.deserializeBinary
104
+ );
105
+
106
+
107
+ /**
108
+ * @param {!proto.google.protobuf.Empty} request The
109
+ * request proto
110
+ * @param {?Object<string, string>} metadata User defined
111
+ * call metadata
112
+ * @param {function(?grpc.web.RpcError, ?proto.worldpayserviceapi.ResponseCode)}
113
+ * callback The callback function(error, response)
114
+ * @return {!grpc.web.ClientReadableStream<!proto.worldpayserviceapi.ResponseCode>|undefined}
115
+ * The XHR Node Readable Stream
116
+ */
117
+ proto.worldpayserviceapi.WorldPayServiceClient.prototype.authUserExample =
118
+ function(request, metadata, callback) {
119
+ return this.client_.rpcCall(this.hostname_ +
120
+ '/worldpayserviceapi.WorldPayService/AuthUserExample',
121
+ request,
122
+ metadata || {},
123
+ methodDescriptor_WorldPayService_AuthUserExample,
124
+ callback);
125
+ };
126
+
127
+
128
+ /**
129
+ * @param {!proto.google.protobuf.Empty} request The
130
+ * request proto
131
+ * @param {?Object<string, string>=} metadata User defined
132
+ * call metadata
133
+ * @return {!Promise<!proto.worldpayserviceapi.ResponseCode>}
134
+ * Promise that resolves to the response
135
+ */
136
+ proto.worldpayserviceapi.WorldPayServicePromiseClient.prototype.authUserExample =
137
+ function(request, metadata) {
138
+ return this.client_.unaryCall(this.hostname_ +
139
+ '/worldpayserviceapi.WorldPayService/AuthUserExample',
140
+ request,
141
+ metadata || {},
142
+ methodDescriptor_WorldPayService_AuthUserExample);
143
+ };
144
+
145
+
146
+ /**
147
+ * @const
148
+ * @type {!grpc.web.MethodDescriptor<
149
+ * !proto.worldpayserviceapi.PaymentStatusRequest,
150
+ * !proto.worldpayserviceapi.PaymentStatusResponse>}
151
+ */
152
+ const methodDescriptor_WorldPayService_GetPaymentStatus = new grpc.web.MethodDescriptor(
153
+ '/worldpayserviceapi.WorldPayService/GetPaymentStatus',
154
+ grpc.web.MethodType.UNARY,
155
+ proto.worldpayserviceapi.PaymentStatusRequest,
156
+ proto.worldpayserviceapi.PaymentStatusResponse,
157
+ /**
158
+ * @param {!proto.worldpayserviceapi.PaymentStatusRequest} request
159
+ * @return {!Uint8Array}
160
+ */
161
+ function(request) {
162
+ return request.serializeBinary();
163
+ },
164
+ proto.worldpayserviceapi.PaymentStatusResponse.deserializeBinary
165
+ );
166
+
167
+
168
+ /**
169
+ * @param {!proto.worldpayserviceapi.PaymentStatusRequest} request The
170
+ * request proto
171
+ * @param {?Object<string, string>} metadata User defined
172
+ * call metadata
173
+ * @param {function(?grpc.web.RpcError, ?proto.worldpayserviceapi.PaymentStatusResponse)}
174
+ * callback The callback function(error, response)
175
+ * @return {!grpc.web.ClientReadableStream<!proto.worldpayserviceapi.PaymentStatusResponse>|undefined}
176
+ * The XHR Node Readable Stream
177
+ */
178
+ proto.worldpayserviceapi.WorldPayServiceClient.prototype.getPaymentStatus =
179
+ function(request, metadata, callback) {
180
+ return this.client_.rpcCall(this.hostname_ +
181
+ '/worldpayserviceapi.WorldPayService/GetPaymentStatus',
182
+ request,
183
+ metadata || {},
184
+ methodDescriptor_WorldPayService_GetPaymentStatus,
185
+ callback);
186
+ };
187
+
188
+
189
+ /**
190
+ * @param {!proto.worldpayserviceapi.PaymentStatusRequest} request The
191
+ * request proto
192
+ * @param {?Object<string, string>=} metadata User defined
193
+ * call metadata
194
+ * @return {!Promise<!proto.worldpayserviceapi.PaymentStatusResponse>}
195
+ * Promise that resolves to the response
196
+ */
197
+ proto.worldpayserviceapi.WorldPayServicePromiseClient.prototype.getPaymentStatus =
198
+ function(request, metadata) {
199
+ return this.client_.unaryCall(this.hostname_ +
200
+ '/worldpayserviceapi.WorldPayService/GetPaymentStatus',
201
+ request,
202
+ metadata || {},
203
+ methodDescriptor_WorldPayService_GetPaymentStatus);
204
+ };
205
+
206
+
207
+ /**
208
+ * @const
209
+ * @type {!grpc.web.MethodDescriptor<
210
+ * !proto.worldpayserviceapi.PaymentRequest,
211
+ * !proto.worldpayserviceapi.PaymentResponse>}
212
+ */
213
+ const methodDescriptor_WorldPayService_MakePayment = new grpc.web.MethodDescriptor(
214
+ '/worldpayserviceapi.WorldPayService/MakePayment',
215
+ grpc.web.MethodType.UNARY,
216
+ proto.worldpayserviceapi.PaymentRequest,
217
+ proto.worldpayserviceapi.PaymentResponse,
218
+ /**
219
+ * @param {!proto.worldpayserviceapi.PaymentRequest} request
220
+ * @return {!Uint8Array}
221
+ */
222
+ function(request) {
223
+ return request.serializeBinary();
224
+ },
225
+ proto.worldpayserviceapi.PaymentResponse.deserializeBinary
226
+ );
227
+
228
+
229
+ /**
230
+ * @param {!proto.worldpayserviceapi.PaymentRequest} request The
231
+ * request proto
232
+ * @param {?Object<string, string>} metadata User defined
233
+ * call metadata
234
+ * @param {function(?grpc.web.RpcError, ?proto.worldpayserviceapi.PaymentResponse)}
235
+ * callback The callback function(error, response)
236
+ * @return {!grpc.web.ClientReadableStream<!proto.worldpayserviceapi.PaymentResponse>|undefined}
237
+ * The XHR Node Readable Stream
238
+ */
239
+ proto.worldpayserviceapi.WorldPayServiceClient.prototype.makePayment =
240
+ function(request, metadata, callback) {
241
+ return this.client_.rpcCall(this.hostname_ +
242
+ '/worldpayserviceapi.WorldPayService/MakePayment',
243
+ request,
244
+ metadata || {},
245
+ methodDescriptor_WorldPayService_MakePayment,
246
+ callback);
247
+ };
248
+
249
+
250
+ /**
251
+ * @param {!proto.worldpayserviceapi.PaymentRequest} request The
252
+ * request proto
253
+ * @param {?Object<string, string>=} metadata User defined
254
+ * call metadata
255
+ * @return {!Promise<!proto.worldpayserviceapi.PaymentResponse>}
256
+ * Promise that resolves to the response
257
+ */
258
+ proto.worldpayserviceapi.WorldPayServicePromiseClient.prototype.makePayment =
259
+ function(request, metadata) {
260
+ return this.client_.unaryCall(this.hostname_ +
261
+ '/worldpayserviceapi.WorldPayService/MakePayment',
262
+ request,
263
+ metadata || {},
264
+ methodDescriptor_WorldPayService_MakePayment);
265
+ };
266
+
267
+
268
+ /**
269
+ * @const
270
+ * @type {!grpc.web.MethodDescriptor<
271
+ * !proto.worldpayserviceapi.PostRequest,
272
+ * !proto.worldpayserviceapi.ResponseCode>}
273
+ */
274
+ const methodDescriptor_WorldPayService_SaveToDatabase = new grpc.web.MethodDescriptor(
275
+ '/worldpayserviceapi.WorldPayService/SaveToDatabase',
276
+ grpc.web.MethodType.UNARY,
277
+ proto.worldpayserviceapi.PostRequest,
278
+ proto.worldpayserviceapi.ResponseCode,
279
+ /**
280
+ * @param {!proto.worldpayserviceapi.PostRequest} request
281
+ * @return {!Uint8Array}
282
+ */
283
+ function(request) {
284
+ return request.serializeBinary();
285
+ },
286
+ proto.worldpayserviceapi.ResponseCode.deserializeBinary
287
+ );
288
+
289
+
290
+ /**
291
+ * @param {!proto.worldpayserviceapi.PostRequest} request The
292
+ * request proto
293
+ * @param {?Object<string, string>} metadata User defined
294
+ * call metadata
295
+ * @param {function(?grpc.web.RpcError, ?proto.worldpayserviceapi.ResponseCode)}
296
+ * callback The callback function(error, response)
297
+ * @return {!grpc.web.ClientReadableStream<!proto.worldpayserviceapi.ResponseCode>|undefined}
298
+ * The XHR Node Readable Stream
299
+ */
300
+ proto.worldpayserviceapi.WorldPayServiceClient.prototype.saveToDatabase =
301
+ function(request, metadata, callback) {
302
+ return this.client_.rpcCall(this.hostname_ +
303
+ '/worldpayserviceapi.WorldPayService/SaveToDatabase',
304
+ request,
305
+ metadata || {},
306
+ methodDescriptor_WorldPayService_SaveToDatabase,
307
+ callback);
308
+ };
309
+
310
+
311
+ /**
312
+ * @param {!proto.worldpayserviceapi.PostRequest} request The
313
+ * request proto
314
+ * @param {?Object<string, string>=} metadata User defined
315
+ * call metadata
316
+ * @return {!Promise<!proto.worldpayserviceapi.ResponseCode>}
317
+ * Promise that resolves to the response
318
+ */
319
+ proto.worldpayserviceapi.WorldPayServicePromiseClient.prototype.saveToDatabase =
320
+ function(request, metadata) {
321
+ return this.client_.unaryCall(this.hostname_ +
322
+ '/worldpayserviceapi.WorldPayService/SaveToDatabase',
323
+ request,
324
+ metadata || {},
325
+ methodDescriptor_WorldPayService_SaveToDatabase);
326
+ };
327
+
328
+
329
+ /**
330
+ * @const
331
+ * @type {!grpc.web.MethodDescriptor<
332
+ * !proto.google.protobuf.Empty,
333
+ * !proto.worldpayserviceapi.ResponseCode>}
334
+ */
335
+ const methodDescriptor_WorldPayService_Health = new grpc.web.MethodDescriptor(
336
+ '/worldpayserviceapi.WorldPayService/Health',
337
+ grpc.web.MethodType.UNARY,
338
+ google_protobuf_empty_pb.Empty,
339
+ proto.worldpayserviceapi.ResponseCode,
340
+ /**
341
+ * @param {!proto.google.protobuf.Empty} request
342
+ * @return {!Uint8Array}
343
+ */
344
+ function(request) {
345
+ return request.serializeBinary();
346
+ },
347
+ proto.worldpayserviceapi.ResponseCode.deserializeBinary
348
+ );
349
+
350
+
351
+ /**
352
+ * @param {!proto.google.protobuf.Empty} request The
353
+ * request proto
354
+ * @param {?Object<string, string>} metadata User defined
355
+ * call metadata
356
+ * @param {function(?grpc.web.RpcError, ?proto.worldpayserviceapi.ResponseCode)}
357
+ * callback The callback function(error, response)
358
+ * @return {!grpc.web.ClientReadableStream<!proto.worldpayserviceapi.ResponseCode>|undefined}
359
+ * The XHR Node Readable Stream
360
+ */
361
+ proto.worldpayserviceapi.WorldPayServiceClient.prototype.health =
362
+ function(request, metadata, callback) {
363
+ return this.client_.rpcCall(this.hostname_ +
364
+ '/worldpayserviceapi.WorldPayService/Health',
365
+ request,
366
+ metadata || {},
367
+ methodDescriptor_WorldPayService_Health,
368
+ callback);
369
+ };
370
+
371
+
372
+ /**
373
+ * @param {!proto.google.protobuf.Empty} request The
374
+ * request proto
375
+ * @param {?Object<string, string>=} metadata User defined
376
+ * call metadata
377
+ * @return {!Promise<!proto.worldpayserviceapi.ResponseCode>}
378
+ * Promise that resolves to the response
379
+ */
380
+ proto.worldpayserviceapi.WorldPayServicePromiseClient.prototype.health =
381
+ function(request, metadata) {
382
+ return this.client_.unaryCall(this.hostname_ +
383
+ '/worldpayserviceapi.WorldPayService/Health',
384
+ request,
385
+ metadata || {},
386
+ methodDescriptor_WorldPayService_Health);
387
+ };
388
+
389
+
390
+ /**
391
+ * @const
392
+ * @type {!grpc.web.MethodDescriptor<
393
+ * !proto.google.protobuf.Empty,
394
+ * !proto.worldpayserviceapi.ResponseCode>}
395
+ */
396
+ const methodDescriptor_WorldPayService_LocalHealth = new grpc.web.MethodDescriptor(
397
+ '/worldpayserviceapi.WorldPayService/LocalHealth',
398
+ grpc.web.MethodType.UNARY,
399
+ google_protobuf_empty_pb.Empty,
400
+ proto.worldpayserviceapi.ResponseCode,
401
+ /**
402
+ * @param {!proto.google.protobuf.Empty} request
403
+ * @return {!Uint8Array}
404
+ */
405
+ function(request) {
406
+ return request.serializeBinary();
407
+ },
408
+ proto.worldpayserviceapi.ResponseCode.deserializeBinary
409
+ );
410
+
411
+
412
+ /**
413
+ * @param {!proto.google.protobuf.Empty} request The
414
+ * request proto
415
+ * @param {?Object<string, string>} metadata User defined
416
+ * call metadata
417
+ * @param {function(?grpc.web.RpcError, ?proto.worldpayserviceapi.ResponseCode)}
418
+ * callback The callback function(error, response)
419
+ * @return {!grpc.web.ClientReadableStream<!proto.worldpayserviceapi.ResponseCode>|undefined}
420
+ * The XHR Node Readable Stream
421
+ */
422
+ proto.worldpayserviceapi.WorldPayServiceClient.prototype.localHealth =
423
+ function(request, metadata, callback) {
424
+ return this.client_.rpcCall(this.hostname_ +
425
+ '/worldpayserviceapi.WorldPayService/LocalHealth',
426
+ request,
427
+ metadata || {},
428
+ methodDescriptor_WorldPayService_LocalHealth,
429
+ callback);
430
+ };
431
+
432
+
433
+ /**
434
+ * @param {!proto.google.protobuf.Empty} request The
435
+ * request proto
436
+ * @param {?Object<string, string>=} metadata User defined
437
+ * call metadata
438
+ * @return {!Promise<!proto.worldpayserviceapi.ResponseCode>}
439
+ * Promise that resolves to the response
440
+ */
441
+ proto.worldpayserviceapi.WorldPayServicePromiseClient.prototype.localHealth =
442
+ function(request, metadata) {
443
+ return this.client_.unaryCall(this.hostname_ +
444
+ '/worldpayserviceapi.WorldPayService/LocalHealth',
445
+ request,
446
+ metadata || {},
447
+ methodDescriptor_WorldPayService_LocalHealth);
448
+ };
449
+
450
+
451
+ module.exports = proto.worldpayserviceapi;
452
+