@sniipwebmaster/payment-methods-client-grpcweb 0.2.168 → 0.2.177
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/dependancies/service_grpc_web_pb.js +699 -0
- package/dependancies/service_pb.js +6491 -0
- package/package.json +1 -1
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview gRPC-Web generated client stub for sniippaymentmethodsserviceapi
|
|
3
|
+
* @enhanceable
|
|
4
|
+
* @public
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
const grpc = {};
|
|
12
|
+
grpc.web = require('grpc-web');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var google_api_annotations_pb = require('./google/api/annotations_pb.js')
|
|
16
|
+
|
|
17
|
+
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
|
|
18
|
+
const proto = {};
|
|
19
|
+
proto.sniippaymentmethodsserviceapi = require('./service_pb.js');
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @param {string} hostname
|
|
23
|
+
* @param {?Object} credentials
|
|
24
|
+
* @param {?Object} options
|
|
25
|
+
* @constructor
|
|
26
|
+
* @struct
|
|
27
|
+
* @final
|
|
28
|
+
*/
|
|
29
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient =
|
|
30
|
+
function(hostname, credentials, options) {
|
|
31
|
+
if (!options) options = {};
|
|
32
|
+
options['format'] = 'text';
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
36
|
+
*/
|
|
37
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* @private @const {string} The hostname
|
|
41
|
+
*/
|
|
42
|
+
this.hostname_ = hostname;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @private @const {?Object} The credentials to be used to connect
|
|
46
|
+
* to the server
|
|
47
|
+
*/
|
|
48
|
+
this.credentials_ = credentials;
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* @private @const {?Object} Options for the client
|
|
52
|
+
*/
|
|
53
|
+
this.options_ = options;
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* @param {string} hostname
|
|
59
|
+
* @param {?Object} credentials
|
|
60
|
+
* @param {?Object} options
|
|
61
|
+
* @constructor
|
|
62
|
+
* @struct
|
|
63
|
+
* @final
|
|
64
|
+
*/
|
|
65
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient =
|
|
66
|
+
function(hostname, credentials, options) {
|
|
67
|
+
if (!options) options = {};
|
|
68
|
+
options['format'] = 'text';
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @private @const {!grpc.web.GrpcWebClientBase} The client
|
|
72
|
+
*/
|
|
73
|
+
this.client_ = new grpc.web.GrpcWebClientBase(options);
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* @private @const {string} The hostname
|
|
77
|
+
*/
|
|
78
|
+
this.hostname_ = hostname;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* @private @const {?Object} The credentials to be used to connect
|
|
82
|
+
* to the server
|
|
83
|
+
*/
|
|
84
|
+
this.credentials_ = credentials;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* @private @const {?Object} Options for the client
|
|
88
|
+
*/
|
|
89
|
+
this.options_ = options;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* @const
|
|
95
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
96
|
+
* !proto.sniippaymentmethodsserviceapi.ActivatePaymentDetailRequest,
|
|
97
|
+
* !proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
98
|
+
*/
|
|
99
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_ActivatePaymentDetail = new grpc.web.AbstractClientBase.MethodInfo(
|
|
100
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode,
|
|
101
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.ActivatePaymentDetailRequest} request */
|
|
102
|
+
function(request) {
|
|
103
|
+
return request.serializeBinary();
|
|
104
|
+
},
|
|
105
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinary
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @param {!proto.sniippaymentmethodsserviceapi.ActivatePaymentDetailRequest} request The
|
|
111
|
+
* request proto
|
|
112
|
+
* @param {?Object<string, string>} metadata User defined
|
|
113
|
+
* call metadata
|
|
114
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.ResponseCode)}
|
|
115
|
+
* callback The callback function(error, response)
|
|
116
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.ResponseCode>|undefined}
|
|
117
|
+
* The XHR Node Readable Stream
|
|
118
|
+
*/
|
|
119
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.activatePaymentDetail =
|
|
120
|
+
function(request, metadata, callback) {
|
|
121
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
122
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/ActivatePaymentDetail',
|
|
123
|
+
request,
|
|
124
|
+
metadata || {},
|
|
125
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_ActivatePaymentDetail,
|
|
126
|
+
callback);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @param {!proto.sniippaymentmethodsserviceapi.ActivatePaymentDetailRequest} request The
|
|
132
|
+
* request proto
|
|
133
|
+
* @param {?Object<string, string>} metadata User defined
|
|
134
|
+
* call metadata
|
|
135
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
136
|
+
* A native promise that resolves to the response
|
|
137
|
+
*/
|
|
138
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.activatePaymentDetail =
|
|
139
|
+
function(request, metadata) {
|
|
140
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
141
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/ActivatePaymentDetail',
|
|
142
|
+
request,
|
|
143
|
+
metadata || {},
|
|
144
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_ActivatePaymentDetail);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* @const
|
|
150
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
151
|
+
* !proto.sniippaymentmethodsserviceapi.AddCreditCardRequest,
|
|
152
|
+
* !proto.sniippaymentmethodsserviceapi.AddCreditCardResponse>}
|
|
153
|
+
*/
|
|
154
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_AddCreditCard = new grpc.web.AbstractClientBase.MethodInfo(
|
|
155
|
+
proto.sniippaymentmethodsserviceapi.AddCreditCardResponse,
|
|
156
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.AddCreditCardRequest} request */
|
|
157
|
+
function(request) {
|
|
158
|
+
return request.serializeBinary();
|
|
159
|
+
},
|
|
160
|
+
proto.sniippaymentmethodsserviceapi.AddCreditCardResponse.deserializeBinary
|
|
161
|
+
);
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* @param {!proto.sniippaymentmethodsserviceapi.AddCreditCardRequest} request The
|
|
166
|
+
* request proto
|
|
167
|
+
* @param {?Object<string, string>} metadata User defined
|
|
168
|
+
* call metadata
|
|
169
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.AddCreditCardResponse)}
|
|
170
|
+
* callback The callback function(error, response)
|
|
171
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.AddCreditCardResponse>|undefined}
|
|
172
|
+
* The XHR Node Readable Stream
|
|
173
|
+
*/
|
|
174
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.addCreditCard =
|
|
175
|
+
function(request, metadata, callback) {
|
|
176
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
177
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddCreditCard',
|
|
178
|
+
request,
|
|
179
|
+
metadata || {},
|
|
180
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_AddCreditCard,
|
|
181
|
+
callback);
|
|
182
|
+
};
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* @param {!proto.sniippaymentmethodsserviceapi.AddCreditCardRequest} request The
|
|
187
|
+
* request proto
|
|
188
|
+
* @param {?Object<string, string>} metadata User defined
|
|
189
|
+
* call metadata
|
|
190
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.AddCreditCardResponse>}
|
|
191
|
+
* A native promise that resolves to the response
|
|
192
|
+
*/
|
|
193
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.addCreditCard =
|
|
194
|
+
function(request, metadata) {
|
|
195
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
196
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddCreditCard',
|
|
197
|
+
request,
|
|
198
|
+
metadata || {},
|
|
199
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_AddCreditCard);
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* @const
|
|
205
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
206
|
+
* !proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest,
|
|
207
|
+
* !proto.sniippaymentmethodsserviceapi.PaymentMethodResponse>}
|
|
208
|
+
*/
|
|
209
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_AddPaymentMethod = new grpc.web.AbstractClientBase.MethodInfo(
|
|
210
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodResponse,
|
|
211
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} request */
|
|
212
|
+
function(request) {
|
|
213
|
+
return request.serializeBinary();
|
|
214
|
+
},
|
|
215
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodResponse.deserializeBinary
|
|
216
|
+
);
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} request The
|
|
221
|
+
* request proto
|
|
222
|
+
* @param {?Object<string, string>} metadata User defined
|
|
223
|
+
* call metadata
|
|
224
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.PaymentMethodResponse)}
|
|
225
|
+
* callback The callback function(error, response)
|
|
226
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.PaymentMethodResponse>|undefined}
|
|
227
|
+
* The XHR Node Readable Stream
|
|
228
|
+
*/
|
|
229
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.addPaymentMethod =
|
|
230
|
+
function(request, metadata, callback) {
|
|
231
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
232
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddPaymentMethod',
|
|
233
|
+
request,
|
|
234
|
+
metadata || {},
|
|
235
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_AddPaymentMethod,
|
|
236
|
+
callback);
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* @param {!proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest} request The
|
|
242
|
+
* request proto
|
|
243
|
+
* @param {?Object<string, string>} metadata User defined
|
|
244
|
+
* call metadata
|
|
245
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.PaymentMethodResponse>}
|
|
246
|
+
* A native promise that resolves to the response
|
|
247
|
+
*/
|
|
248
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.addPaymentMethod =
|
|
249
|
+
function(request, metadata) {
|
|
250
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
251
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddPaymentMethod',
|
|
252
|
+
request,
|
|
253
|
+
metadata || {},
|
|
254
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_AddPaymentMethod);
|
|
255
|
+
};
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* @const
|
|
260
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
261
|
+
* !proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest,
|
|
262
|
+
* !proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
263
|
+
*/
|
|
264
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_DeleteCreditCard = new grpc.web.AbstractClientBase.MethodInfo(
|
|
265
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode,
|
|
266
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} request */
|
|
267
|
+
function(request) {
|
|
268
|
+
return request.serializeBinary();
|
|
269
|
+
},
|
|
270
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinary
|
|
271
|
+
);
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} request The
|
|
276
|
+
* request proto
|
|
277
|
+
* @param {?Object<string, string>} metadata User defined
|
|
278
|
+
* call metadata
|
|
279
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.ResponseCode)}
|
|
280
|
+
* callback The callback function(error, response)
|
|
281
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.ResponseCode>|undefined}
|
|
282
|
+
* The XHR Node Readable Stream
|
|
283
|
+
*/
|
|
284
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.deleteCreditCard =
|
|
285
|
+
function(request, metadata, callback) {
|
|
286
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
287
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/DeleteCreditCard',
|
|
288
|
+
request,
|
|
289
|
+
metadata || {},
|
|
290
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_DeleteCreditCard,
|
|
291
|
+
callback);
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* @param {!proto.sniippaymentmethodsserviceapi.DeleteCreditCardRequest} request The
|
|
297
|
+
* request proto
|
|
298
|
+
* @param {?Object<string, string>} metadata User defined
|
|
299
|
+
* call metadata
|
|
300
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
301
|
+
* A native promise that resolves to the response
|
|
302
|
+
*/
|
|
303
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.deleteCreditCard =
|
|
304
|
+
function(request, metadata) {
|
|
305
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
306
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/DeleteCreditCard',
|
|
307
|
+
request,
|
|
308
|
+
metadata || {},
|
|
309
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_DeleteCreditCard);
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
/**
|
|
314
|
+
* @const
|
|
315
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
316
|
+
* !proto.google.protobuf.Empty,
|
|
317
|
+
* !proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
318
|
+
*/
|
|
319
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_Echo = new grpc.web.AbstractClientBase.MethodInfo(
|
|
320
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode,
|
|
321
|
+
/** @param {!proto.google.protobuf.Empty} request */
|
|
322
|
+
function(request) {
|
|
323
|
+
return request.serializeBinary();
|
|
324
|
+
},
|
|
325
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinary
|
|
326
|
+
);
|
|
327
|
+
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
331
|
+
* request proto
|
|
332
|
+
* @param {?Object<string, string>} metadata User defined
|
|
333
|
+
* call metadata
|
|
334
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.ResponseCode)}
|
|
335
|
+
* callback The callback function(error, response)
|
|
336
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.ResponseCode>|undefined}
|
|
337
|
+
* The XHR Node Readable Stream
|
|
338
|
+
*/
|
|
339
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.echo =
|
|
340
|
+
function(request, metadata, callback) {
|
|
341
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
342
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/Echo',
|
|
343
|
+
request,
|
|
344
|
+
metadata || {},
|
|
345
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_Echo,
|
|
346
|
+
callback);
|
|
347
|
+
};
|
|
348
|
+
|
|
349
|
+
|
|
350
|
+
/**
|
|
351
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
352
|
+
* request proto
|
|
353
|
+
* @param {?Object<string, string>} metadata User defined
|
|
354
|
+
* call metadata
|
|
355
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
356
|
+
* A native promise that resolves to the response
|
|
357
|
+
*/
|
|
358
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.echo =
|
|
359
|
+
function(request, metadata) {
|
|
360
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
361
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/Echo',
|
|
362
|
+
request,
|
|
363
|
+
metadata || {},
|
|
364
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_Echo);
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* @const
|
|
370
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
371
|
+
* !proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest,
|
|
372
|
+
* !proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse>}
|
|
373
|
+
*/
|
|
374
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_GetActivatedPaymentMethod = new grpc.web.AbstractClientBase.MethodInfo(
|
|
375
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse,
|
|
376
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest} request */
|
|
377
|
+
function(request) {
|
|
378
|
+
return request.serializeBinary();
|
|
379
|
+
},
|
|
380
|
+
proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse.deserializeBinary
|
|
381
|
+
);
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest} request The
|
|
386
|
+
* request proto
|
|
387
|
+
* @param {?Object<string, string>} metadata User defined
|
|
388
|
+
* call metadata
|
|
389
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse)}
|
|
390
|
+
* callback The callback function(error, response)
|
|
391
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse>|undefined}
|
|
392
|
+
* The XHR Node Readable Stream
|
|
393
|
+
*/
|
|
394
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getActivatedPaymentMethod =
|
|
395
|
+
function(request, metadata, callback) {
|
|
396
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
397
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetActivatedPaymentMethod',
|
|
398
|
+
request,
|
|
399
|
+
metadata || {},
|
|
400
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_GetActivatedPaymentMethod,
|
|
401
|
+
callback);
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest} request The
|
|
407
|
+
* request proto
|
|
408
|
+
* @param {?Object<string, string>} metadata User defined
|
|
409
|
+
* call metadata
|
|
410
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse>}
|
|
411
|
+
* A native promise that resolves to the response
|
|
412
|
+
*/
|
|
413
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getActivatedPaymentMethod =
|
|
414
|
+
function(request, metadata) {
|
|
415
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
416
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetActivatedPaymentMethod',
|
|
417
|
+
request,
|
|
418
|
+
metadata || {},
|
|
419
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_GetActivatedPaymentMethod);
|
|
420
|
+
};
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
/**
|
|
424
|
+
* @const
|
|
425
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
426
|
+
* !proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest,
|
|
427
|
+
* !proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse>}
|
|
428
|
+
*/
|
|
429
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethods = new grpc.web.AbstractClientBase.MethodInfo(
|
|
430
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse,
|
|
431
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} request */
|
|
432
|
+
function(request) {
|
|
433
|
+
return request.serializeBinary();
|
|
434
|
+
},
|
|
435
|
+
proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse.deserializeBinary
|
|
436
|
+
);
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
/**
|
|
440
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} request The
|
|
441
|
+
* request proto
|
|
442
|
+
* @param {?Object<string, string>} metadata User defined
|
|
443
|
+
* call metadata
|
|
444
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse)}
|
|
445
|
+
* callback The callback function(error, response)
|
|
446
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse>|undefined}
|
|
447
|
+
* The XHR Node Readable Stream
|
|
448
|
+
*/
|
|
449
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getPaymentMethods =
|
|
450
|
+
function(request, metadata, callback) {
|
|
451
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
452
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethods',
|
|
453
|
+
request,
|
|
454
|
+
metadata || {},
|
|
455
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethods,
|
|
456
|
+
callback);
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* @param {!proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest} request The
|
|
462
|
+
* request proto
|
|
463
|
+
* @param {?Object<string, string>} metadata User defined
|
|
464
|
+
* call metadata
|
|
465
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse>}
|
|
466
|
+
* A native promise that resolves to the response
|
|
467
|
+
*/
|
|
468
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getPaymentMethods =
|
|
469
|
+
function(request, metadata) {
|
|
470
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
471
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethods',
|
|
472
|
+
request,
|
|
473
|
+
metadata || {},
|
|
474
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethods);
|
|
475
|
+
};
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
/**
|
|
479
|
+
* @const
|
|
480
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
481
|
+
* !proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest,
|
|
482
|
+
* !proto.sniippaymentmethodsserviceapi.GetCreditCardResponse>}
|
|
483
|
+
*/
|
|
484
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_InternalGetCreditCard = new grpc.web.AbstractClientBase.MethodInfo(
|
|
485
|
+
proto.sniippaymentmethodsserviceapi.GetCreditCardResponse,
|
|
486
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} request */
|
|
487
|
+
function(request) {
|
|
488
|
+
return request.serializeBinary();
|
|
489
|
+
},
|
|
490
|
+
proto.sniippaymentmethodsserviceapi.GetCreditCardResponse.deserializeBinary
|
|
491
|
+
);
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} request The
|
|
496
|
+
* request proto
|
|
497
|
+
* @param {?Object<string, string>} metadata User defined
|
|
498
|
+
* call metadata
|
|
499
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.GetCreditCardResponse)}
|
|
500
|
+
* callback The callback function(error, response)
|
|
501
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse>|undefined}
|
|
502
|
+
* The XHR Node Readable Stream
|
|
503
|
+
*/
|
|
504
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.internalGetCreditCard =
|
|
505
|
+
function(request, metadata, callback) {
|
|
506
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
507
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/InternalGetCreditCard',
|
|
508
|
+
request,
|
|
509
|
+
metadata || {},
|
|
510
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_InternalGetCreditCard,
|
|
511
|
+
callback);
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* @param {!proto.sniippaymentmethodsserviceapi.InternalGetCreditCardRequest} request The
|
|
517
|
+
* request proto
|
|
518
|
+
* @param {?Object<string, string>} metadata User defined
|
|
519
|
+
* call metadata
|
|
520
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.GetCreditCardResponse>}
|
|
521
|
+
* A native promise that resolves to the response
|
|
522
|
+
*/
|
|
523
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.internalGetCreditCard =
|
|
524
|
+
function(request, metadata) {
|
|
525
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
526
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/InternalGetCreditCard',
|
|
527
|
+
request,
|
|
528
|
+
metadata || {},
|
|
529
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_InternalGetCreditCard);
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* @const
|
|
535
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
536
|
+
* !proto.sniippaymentmethodsserviceapi.RemovePaymentMethodRequest,
|
|
537
|
+
* !proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
538
|
+
*/
|
|
539
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_RemovePaymentMethod = new grpc.web.AbstractClientBase.MethodInfo(
|
|
540
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode,
|
|
541
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.RemovePaymentMethodRequest} request */
|
|
542
|
+
function(request) {
|
|
543
|
+
return request.serializeBinary();
|
|
544
|
+
},
|
|
545
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinary
|
|
546
|
+
);
|
|
547
|
+
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* @param {!proto.sniippaymentmethodsserviceapi.RemovePaymentMethodRequest} request The
|
|
551
|
+
* request proto
|
|
552
|
+
* @param {?Object<string, string>} metadata User defined
|
|
553
|
+
* call metadata
|
|
554
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.ResponseCode)}
|
|
555
|
+
* callback The callback function(error, response)
|
|
556
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.ResponseCode>|undefined}
|
|
557
|
+
* The XHR Node Readable Stream
|
|
558
|
+
*/
|
|
559
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.removePaymentMethod =
|
|
560
|
+
function(request, metadata, callback) {
|
|
561
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
562
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/RemovePaymentMethod',
|
|
563
|
+
request,
|
|
564
|
+
metadata || {},
|
|
565
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_RemovePaymentMethod,
|
|
566
|
+
callback);
|
|
567
|
+
};
|
|
568
|
+
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* @param {!proto.sniippaymentmethodsserviceapi.RemovePaymentMethodRequest} request The
|
|
572
|
+
* request proto
|
|
573
|
+
* @param {?Object<string, string>} metadata User defined
|
|
574
|
+
* call metadata
|
|
575
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
576
|
+
* A native promise that resolves to the response
|
|
577
|
+
*/
|
|
578
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.removePaymentMethod =
|
|
579
|
+
function(request, metadata) {
|
|
580
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
581
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/RemovePaymentMethod',
|
|
582
|
+
request,
|
|
583
|
+
metadata || {},
|
|
584
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_RemovePaymentMethod);
|
|
585
|
+
};
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* @const
|
|
590
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
591
|
+
* !proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest,
|
|
592
|
+
* !proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
593
|
+
*/
|
|
594
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_UpdateCreditCardDetails = new grpc.web.AbstractClientBase.MethodInfo(
|
|
595
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode,
|
|
596
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} request */
|
|
597
|
+
function(request) {
|
|
598
|
+
return request.serializeBinary();
|
|
599
|
+
},
|
|
600
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinary
|
|
601
|
+
);
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} request The
|
|
606
|
+
* request proto
|
|
607
|
+
* @param {?Object<string, string>} metadata User defined
|
|
608
|
+
* call metadata
|
|
609
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.ResponseCode)}
|
|
610
|
+
* callback The callback function(error, response)
|
|
611
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.ResponseCode>|undefined}
|
|
612
|
+
* The XHR Node Readable Stream
|
|
613
|
+
*/
|
|
614
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.updateCreditCardDetails =
|
|
615
|
+
function(request, metadata, callback) {
|
|
616
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
617
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/UpdateCreditCardDetails',
|
|
618
|
+
request,
|
|
619
|
+
metadata || {},
|
|
620
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_UpdateCreditCardDetails,
|
|
621
|
+
callback);
|
|
622
|
+
};
|
|
623
|
+
|
|
624
|
+
|
|
625
|
+
/**
|
|
626
|
+
* @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} request The
|
|
627
|
+
* request proto
|
|
628
|
+
* @param {?Object<string, string>} metadata User defined
|
|
629
|
+
* call metadata
|
|
630
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
631
|
+
* A native promise that resolves to the response
|
|
632
|
+
*/
|
|
633
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.updateCreditCardDetails =
|
|
634
|
+
function(request, metadata) {
|
|
635
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
636
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/UpdateCreditCardDetails',
|
|
637
|
+
request,
|
|
638
|
+
metadata || {},
|
|
639
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_UpdateCreditCardDetails);
|
|
640
|
+
};
|
|
641
|
+
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* @const
|
|
645
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
646
|
+
* !proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest,
|
|
647
|
+
* !proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
648
|
+
*/
|
|
649
|
+
const methodInfo_SniipPaymentMethodsServiceAPIService_UpdatePaymentMethod = new grpc.web.AbstractClientBase.MethodInfo(
|
|
650
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode,
|
|
651
|
+
/** @param {!proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest} request */
|
|
652
|
+
function(request) {
|
|
653
|
+
return request.serializeBinary();
|
|
654
|
+
},
|
|
655
|
+
proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinary
|
|
656
|
+
);
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* @param {!proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest} request The
|
|
661
|
+
* request proto
|
|
662
|
+
* @param {?Object<string, string>} metadata User defined
|
|
663
|
+
* call metadata
|
|
664
|
+
* @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.ResponseCode)}
|
|
665
|
+
* callback The callback function(error, response)
|
|
666
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.ResponseCode>|undefined}
|
|
667
|
+
* The XHR Node Readable Stream
|
|
668
|
+
*/
|
|
669
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.updatePaymentMethod =
|
|
670
|
+
function(request, metadata, callback) {
|
|
671
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
672
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/UpdatePaymentMethod',
|
|
673
|
+
request,
|
|
674
|
+
metadata || {},
|
|
675
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_UpdatePaymentMethod,
|
|
676
|
+
callback);
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* @param {!proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest} request The
|
|
682
|
+
* request proto
|
|
683
|
+
* @param {?Object<string, string>} metadata User defined
|
|
684
|
+
* call metadata
|
|
685
|
+
* @return {!Promise<!proto.sniippaymentmethodsserviceapi.ResponseCode>}
|
|
686
|
+
* A native promise that resolves to the response
|
|
687
|
+
*/
|
|
688
|
+
proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.updatePaymentMethod =
|
|
689
|
+
function(request, metadata) {
|
|
690
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
691
|
+
'/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/UpdatePaymentMethod',
|
|
692
|
+
request,
|
|
693
|
+
metadata || {},
|
|
694
|
+
methodInfo_SniipPaymentMethodsServiceAPIService_UpdatePaymentMethod);
|
|
695
|
+
};
|
|
696
|
+
|
|
697
|
+
|
|
698
|
+
module.exports = proto.sniippaymentmethodsserviceapi;
|
|
699
|
+
|