@sniipwebmaster/payment-methods-client-grpcweb 22.13.4699 → 22.13.4720

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.
@@ -714,6 +714,86 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
714
714
  };
715
715
 
716
716
 
717
+ /**
718
+ * @const
719
+ * @type {!grpc.web.MethodDescriptor<
720
+ * !proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest,
721
+ * !proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse>}
722
+ */
723
+ const methodDescriptor_SniipPaymentMethodsServiceAPIService_GetAcceptedPaymentMethodsByGroupId = new grpc.web.MethodDescriptor(
724
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetAcceptedPaymentMethodsByGroupId',
725
+ grpc.web.MethodType.UNARY,
726
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest,
727
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse,
728
+ /**
729
+ * @param {!proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest} request
730
+ * @return {!Uint8Array}
731
+ */
732
+ function(request) {
733
+ return request.serializeBinary();
734
+ },
735
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.deserializeBinary
736
+ );
737
+
738
+
739
+ /**
740
+ * @const
741
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
742
+ * !proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest,
743
+ * !proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse>}
744
+ */
745
+ const methodInfo_SniipPaymentMethodsServiceAPIService_GetAcceptedPaymentMethodsByGroupId = new grpc.web.AbstractClientBase.MethodInfo(
746
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse,
747
+ /**
748
+ * @param {!proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest} request
749
+ * @return {!Uint8Array}
750
+ */
751
+ function(request) {
752
+ return request.serializeBinary();
753
+ },
754
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.deserializeBinary
755
+ );
756
+
757
+
758
+ /**
759
+ * @param {!proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest} request The
760
+ * request proto
761
+ * @param {?Object<string, string>} metadata User defined
762
+ * call metadata
763
+ * @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse)}
764
+ * callback The callback function(error, response)
765
+ * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse>|undefined}
766
+ * The XHR Node Readable Stream
767
+ */
768
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getAcceptedPaymentMethodsByGroupId =
769
+ function(request, metadata, callback) {
770
+ return this.client_.rpcCall(this.hostname_ +
771
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetAcceptedPaymentMethodsByGroupId',
772
+ request,
773
+ metadata || {},
774
+ methodDescriptor_SniipPaymentMethodsServiceAPIService_GetAcceptedPaymentMethodsByGroupId,
775
+ callback);
776
+ };
777
+
778
+
779
+ /**
780
+ * @param {!proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest} request The
781
+ * request proto
782
+ * @param {?Object<string, string>} metadata User defined
783
+ * call metadata
784
+ * @return {!Promise<!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse>}
785
+ * Promise that resolves to the response
786
+ */
787
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getAcceptedPaymentMethodsByGroupId =
788
+ function(request, metadata) {
789
+ return this.client_.unaryCall(this.hostname_ +
790
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetAcceptedPaymentMethodsByGroupId',
791
+ request,
792
+ metadata || {},
793
+ methodDescriptor_SniipPaymentMethodsServiceAPIService_GetAcceptedPaymentMethodsByGroupId);
794
+ };
795
+
796
+
717
797
  /**
718
798
  * @const
719
799
  * @type {!grpc.web.MethodDescriptor<
@@ -11,6 +11,8 @@ var global = Function('return this')();
11
11
 
12
12
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
13
13
  var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
14
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod', null, global);
15
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse', null, global);
14
16
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AccessToken', null, global);
15
17
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ActivatePaymentDetailRequest', null, global);
16
18
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ActivateRequest', null, global);
@@ -34,6 +36,7 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCard', null, global
34
36
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardForPaymentRequest', null, global);
35
37
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.CreditCardVerifyRequest', null, global);
36
38
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.Gateway', null, global);
39
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest', null, global);
37
40
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetActivatedPaymentMethodRequest', null, global);
38
41
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetBankVerifyCodeRequest', null, global);
39
42
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetCardHashRequest', null, global);
@@ -89,6 +92,561 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRespo
89
92
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithTokenAddRequest', null, global);
90
93
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithTokenAddResponse', null, global);
91
94
 
95
+ /**
96
+ * Generated by JsPbCodeGenerator.
97
+ * @param {Array=} opt_data Optional initial data array, typically from a
98
+ * server response, or constructed directly in Javascript. The array is used
99
+ * in place and becomes part of the constructed object. It is not cloned.
100
+ * If no data is provided, the constructed object will be empty, but still
101
+ * valid.
102
+ * @extends {jspb.Message}
103
+ * @constructor
104
+ */
105
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod = function(opt_data) {
106
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
107
+ };
108
+ goog.inherits(proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod, jspb.Message);
109
+ if (goog.DEBUG && !COMPILED) {
110
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.displayName = 'proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod';
111
+ }
112
+
113
+
114
+ if (jspb.Message.GENERATE_TO_OBJECT) {
115
+ /**
116
+ * Creates an object representation of this proto suitable for use in Soy templates.
117
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
118
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
119
+ * For the list of reserved names please see:
120
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
121
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
122
+ * for transitional soy proto support: http://goto/soy-param-migration
123
+ * @return {!Object}
124
+ */
125
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.toObject = function(opt_includeInstance) {
126
+ return proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.toObject(opt_includeInstance, this);
127
+ };
128
+
129
+
130
+ /**
131
+ * Static version of the {@see toObject} method.
132
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
133
+ * instance for transitional soy proto support:
134
+ * http://goto/soy-param-migration
135
+ * @param {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod} msg The msg instance to transform.
136
+ * @return {!Object}
137
+ */
138
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.toObject = function(includeInstance, msg) {
139
+ var f, obj = {
140
+ paymenttype: msg.getPaymenttype(),
141
+ allowdebit: msg.getAllowdebit(),
142
+ allowcredit: msg.getAllowcredit(),
143
+ eftposonly: msg.getEftposonly(),
144
+ allowinternational: msg.getAllowinternational(),
145
+ allowprepaid: msg.getAllowprepaid(),
146
+ allowcryptocom: msg.getAllowcryptocom()
147
+ };
148
+
149
+ if (includeInstance) {
150
+ obj.$jspbMessageInstance = msg;
151
+ }
152
+ return obj;
153
+ };
154
+ }
155
+
156
+
157
+ /**
158
+ * Deserializes binary data (in protobuf wire format).
159
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
160
+ * @return {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod}
161
+ */
162
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.deserializeBinary = function(bytes) {
163
+ var reader = new jspb.BinaryReader(bytes);
164
+ var msg = new proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod;
165
+ return proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.deserializeBinaryFromReader(msg, reader);
166
+ };
167
+
168
+
169
+ /**
170
+ * Deserializes binary data (in protobuf wire format) from the
171
+ * given reader into the given message object.
172
+ * @param {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod} msg The message object to deserialize into.
173
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
174
+ * @return {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod}
175
+ */
176
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
177
+ while (reader.nextField()) {
178
+ if (reader.isEndGroup()) {
179
+ break;
180
+ }
181
+ var field = reader.getFieldNumber();
182
+ switch (field) {
183
+ case 1:
184
+ var value = /** @type {string} */ (reader.readString());
185
+ msg.setPaymenttype(value);
186
+ break;
187
+ case 2:
188
+ var value = /** @type {boolean} */ (reader.readBool());
189
+ msg.setAllowdebit(value);
190
+ break;
191
+ case 3:
192
+ var value = /** @type {boolean} */ (reader.readBool());
193
+ msg.setAllowcredit(value);
194
+ break;
195
+ case 4:
196
+ var value = /** @type {boolean} */ (reader.readBool());
197
+ msg.setEftposonly(value);
198
+ break;
199
+ case 5:
200
+ var value = /** @type {boolean} */ (reader.readBool());
201
+ msg.setAllowinternational(value);
202
+ break;
203
+ case 6:
204
+ var value = /** @type {boolean} */ (reader.readBool());
205
+ msg.setAllowprepaid(value);
206
+ break;
207
+ case 7:
208
+ var value = /** @type {boolean} */ (reader.readBool());
209
+ msg.setAllowcryptocom(value);
210
+ break;
211
+ default:
212
+ reader.skipField();
213
+ break;
214
+ }
215
+ }
216
+ return msg;
217
+ };
218
+
219
+
220
+ /**
221
+ * Class method variant: serializes the given message to binary data
222
+ * (in protobuf wire format), writing to the given BinaryWriter.
223
+ * @param {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod} message
224
+ * @param {!jspb.BinaryWriter} writer
225
+ */
226
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.serializeBinaryToWriter = function(message, writer) {
227
+ message.serializeBinaryToWriter(writer);
228
+ };
229
+
230
+
231
+ /**
232
+ * Serializes the message to binary data (in protobuf wire format).
233
+ * @return {!Uint8Array}
234
+ */
235
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.serializeBinary = function() {
236
+ var writer = new jspb.BinaryWriter();
237
+ this.serializeBinaryToWriter(writer);
238
+ return writer.getResultBuffer();
239
+ };
240
+
241
+
242
+ /**
243
+ * Serializes the message to binary data (in protobuf wire format),
244
+ * writing to the given BinaryWriter.
245
+ * @param {!jspb.BinaryWriter} writer
246
+ */
247
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.serializeBinaryToWriter = function (writer) {
248
+ var f = undefined;
249
+ f = this.getPaymenttype();
250
+ if (f.length > 0) {
251
+ writer.writeString(
252
+ 1,
253
+ f
254
+ );
255
+ }
256
+ f = this.getAllowdebit();
257
+ if (f) {
258
+ writer.writeBool(
259
+ 2,
260
+ f
261
+ );
262
+ }
263
+ f = this.getAllowcredit();
264
+ if (f) {
265
+ writer.writeBool(
266
+ 3,
267
+ f
268
+ );
269
+ }
270
+ f = this.getEftposonly();
271
+ if (f) {
272
+ writer.writeBool(
273
+ 4,
274
+ f
275
+ );
276
+ }
277
+ f = this.getAllowinternational();
278
+ if (f) {
279
+ writer.writeBool(
280
+ 5,
281
+ f
282
+ );
283
+ }
284
+ f = this.getAllowprepaid();
285
+ if (f) {
286
+ writer.writeBool(
287
+ 6,
288
+ f
289
+ );
290
+ }
291
+ f = this.getAllowcryptocom();
292
+ if (f) {
293
+ writer.writeBool(
294
+ 7,
295
+ f
296
+ );
297
+ }
298
+ };
299
+
300
+
301
+ /**
302
+ * Creates a deep clone of this proto. No data is shared with the original.
303
+ * @return {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod} The clone.
304
+ */
305
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.cloneMessage = function() {
306
+ return /** @type {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod} */ (jspb.Message.cloneMessage(this));
307
+ };
308
+
309
+
310
+ /**
311
+ * optional string paymentType = 1;
312
+ * @return {string}
313
+ */
314
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.getPaymenttype = function() {
315
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
316
+ };
317
+
318
+
319
+ /** @param {string} value */
320
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.setPaymenttype = function(value) {
321
+ jspb.Message.setField(this, 1, value);
322
+ };
323
+
324
+
325
+ /**
326
+ * optional bool allowDebit = 2;
327
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
328
+ * You should avoid comparisons like {@code val === true/false} in those cases.
329
+ * @return {boolean}
330
+ */
331
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.getAllowdebit = function() {
332
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 2, false));
333
+ };
334
+
335
+
336
+ /** @param {boolean} value */
337
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.setAllowdebit = function(value) {
338
+ jspb.Message.setField(this, 2, value);
339
+ };
340
+
341
+
342
+ /**
343
+ * optional bool allowCredit = 3;
344
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
345
+ * You should avoid comparisons like {@code val === true/false} in those cases.
346
+ * @return {boolean}
347
+ */
348
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.getAllowcredit = function() {
349
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 3, false));
350
+ };
351
+
352
+
353
+ /** @param {boolean} value */
354
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.setAllowcredit = function(value) {
355
+ jspb.Message.setField(this, 3, value);
356
+ };
357
+
358
+
359
+ /**
360
+ * optional bool eftposOnly = 4;
361
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
362
+ * You should avoid comparisons like {@code val === true/false} in those cases.
363
+ * @return {boolean}
364
+ */
365
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.getEftposonly = function() {
366
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 4, false));
367
+ };
368
+
369
+
370
+ /** @param {boolean} value */
371
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.setEftposonly = function(value) {
372
+ jspb.Message.setField(this, 4, value);
373
+ };
374
+
375
+
376
+ /**
377
+ * optional bool allowInternational = 5;
378
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
379
+ * You should avoid comparisons like {@code val === true/false} in those cases.
380
+ * @return {boolean}
381
+ */
382
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.getAllowinternational = function() {
383
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
384
+ };
385
+
386
+
387
+ /** @param {boolean} value */
388
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.setAllowinternational = function(value) {
389
+ jspb.Message.setField(this, 5, value);
390
+ };
391
+
392
+
393
+ /**
394
+ * optional bool allowPrepaid = 6;
395
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
396
+ * You should avoid comparisons like {@code val === true/false} in those cases.
397
+ * @return {boolean}
398
+ */
399
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.getAllowprepaid = function() {
400
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 6, false));
401
+ };
402
+
403
+
404
+ /** @param {boolean} value */
405
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.setAllowprepaid = function(value) {
406
+ jspb.Message.setField(this, 6, value);
407
+ };
408
+
409
+
410
+ /**
411
+ * optional bool allowCryptoCom = 7;
412
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
413
+ * You should avoid comparisons like {@code val === true/false} in those cases.
414
+ * @return {boolean}
415
+ */
416
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.getAllowcryptocom = function() {
417
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 7, false));
418
+ };
419
+
420
+
421
+ /** @param {boolean} value */
422
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.prototype.setAllowcryptocom = function(value) {
423
+ jspb.Message.setField(this, 7, value);
424
+ };
425
+
426
+
427
+
428
+ /**
429
+ * Generated by JsPbCodeGenerator.
430
+ * @param {Array=} opt_data Optional initial data array, typically from a
431
+ * server response, or constructed directly in Javascript. The array is used
432
+ * in place and becomes part of the constructed object. It is not cloned.
433
+ * If no data is provided, the constructed object will be empty, but still
434
+ * valid.
435
+ * @extends {jspb.Message}
436
+ * @constructor
437
+ */
438
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse = function(opt_data) {
439
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.repeatedFields_, null);
440
+ };
441
+ goog.inherits(proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse, jspb.Message);
442
+ if (goog.DEBUG && !COMPILED) {
443
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.displayName = 'proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse';
444
+ }
445
+ /**
446
+ * List of repeated fields within this message type.
447
+ * @private {!Array<number>}
448
+ * @const
449
+ */
450
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.repeatedFields_ = [2];
451
+
452
+
453
+
454
+ if (jspb.Message.GENERATE_TO_OBJECT) {
455
+ /**
456
+ * Creates an object representation of this proto suitable for use in Soy templates.
457
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
458
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
459
+ * For the list of reserved names please see:
460
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
461
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
462
+ * for transitional soy proto support: http://goto/soy-param-migration
463
+ * @return {!Object}
464
+ */
465
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.prototype.toObject = function(opt_includeInstance) {
466
+ return proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.toObject(opt_includeInstance, this);
467
+ };
468
+
469
+
470
+ /**
471
+ * Static version of the {@see toObject} method.
472
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
473
+ * instance for transitional soy proto support:
474
+ * http://goto/soy-param-migration
475
+ * @param {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse} msg The msg instance to transform.
476
+ * @return {!Object}
477
+ */
478
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.toObject = function(includeInstance, msg) {
479
+ var f, obj = {
480
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
481
+ acceptedpaymentmethodsList: jspb.Message.toObjectList(msg.getAcceptedpaymentmethodsList(),
482
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.toObject, includeInstance)
483
+ };
484
+
485
+ if (includeInstance) {
486
+ obj.$jspbMessageInstance = msg;
487
+ }
488
+ return obj;
489
+ };
490
+ }
491
+
492
+
493
+ /**
494
+ * Deserializes binary data (in protobuf wire format).
495
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
496
+ * @return {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse}
497
+ */
498
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.deserializeBinary = function(bytes) {
499
+ var reader = new jspb.BinaryReader(bytes);
500
+ var msg = new proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse;
501
+ return proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.deserializeBinaryFromReader(msg, reader);
502
+ };
503
+
504
+
505
+ /**
506
+ * Deserializes binary data (in protobuf wire format) from the
507
+ * given reader into the given message object.
508
+ * @param {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse} msg The message object to deserialize into.
509
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
510
+ * @return {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse}
511
+ */
512
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.deserializeBinaryFromReader = function(msg, reader) {
513
+ while (reader.nextField()) {
514
+ if (reader.isEndGroup()) {
515
+ break;
516
+ }
517
+ var field = reader.getFieldNumber();
518
+ switch (field) {
519
+ case 1:
520
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
521
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
522
+ msg.setResponsecode(value);
523
+ break;
524
+ case 2:
525
+ var value = new proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod;
526
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.deserializeBinaryFromReader);
527
+ msg.getAcceptedpaymentmethodsList().push(value);
528
+ msg.setAcceptedpaymentmethodsList(msg.getAcceptedpaymentmethodsList());
529
+ break;
530
+ default:
531
+ reader.skipField();
532
+ break;
533
+ }
534
+ }
535
+ return msg;
536
+ };
537
+
538
+
539
+ /**
540
+ * Class method variant: serializes the given message to binary data
541
+ * (in protobuf wire format), writing to the given BinaryWriter.
542
+ * @param {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse} message
543
+ * @param {!jspb.BinaryWriter} writer
544
+ */
545
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.serializeBinaryToWriter = function(message, writer) {
546
+ message.serializeBinaryToWriter(writer);
547
+ };
548
+
549
+
550
+ /**
551
+ * Serializes the message to binary data (in protobuf wire format).
552
+ * @return {!Uint8Array}
553
+ */
554
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.prototype.serializeBinary = function() {
555
+ var writer = new jspb.BinaryWriter();
556
+ this.serializeBinaryToWriter(writer);
557
+ return writer.getResultBuffer();
558
+ };
559
+
560
+
561
+ /**
562
+ * Serializes the message to binary data (in protobuf wire format),
563
+ * writing to the given BinaryWriter.
564
+ * @param {!jspb.BinaryWriter} writer
565
+ */
566
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.prototype.serializeBinaryToWriter = function (writer) {
567
+ var f = undefined;
568
+ f = this.getResponsecode();
569
+ if (f != null) {
570
+ writer.writeMessage(
571
+ 1,
572
+ f,
573
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
574
+ );
575
+ }
576
+ f = this.getAcceptedpaymentmethodsList();
577
+ if (f.length > 0) {
578
+ writer.writeRepeatedMessage(
579
+ 2,
580
+ f,
581
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod.serializeBinaryToWriter
582
+ );
583
+ }
584
+ };
585
+
586
+
587
+ /**
588
+ * Creates a deep clone of this proto. No data is shared with the original.
589
+ * @return {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse} The clone.
590
+ */
591
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.prototype.cloneMessage = function() {
592
+ return /** @type {!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse} */ (jspb.Message.cloneMessage(this));
593
+ };
594
+
595
+
596
+ /**
597
+ * optional ResponseCode responseCode = 1;
598
+ * @return {proto.sniippaymentmethodsserviceapi.ResponseCode}
599
+ */
600
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.prototype.getResponsecode = function() {
601
+ return /** @type{proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
602
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
603
+ };
604
+
605
+
606
+ /** @param {proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
607
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.prototype.setResponsecode = function(value) {
608
+ jspb.Message.setWrapperField(this, 1, value);
609
+ };
610
+
611
+
612
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.prototype.clearResponsecode = function() {
613
+ this.setResponsecode(undefined);
614
+ };
615
+
616
+
617
+ /**
618
+ * Returns whether this field is set.
619
+ * @return{!boolean}
620
+ */
621
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.prototype.hasResponsecode = function() {
622
+ return jspb.Message.getField(this, 1) != null;
623
+ };
624
+
625
+
626
+ /**
627
+ * repeated AcceptedPaymentMethod acceptedPaymentMethods = 2;
628
+ * If you change this array by adding, removing or replacing elements, or if you
629
+ * replace the array itself, then you must call the setter to update it.
630
+ * @return {!Array.<!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod>}
631
+ */
632
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.prototype.getAcceptedpaymentmethodsList = function() {
633
+ return /** @type{!Array.<!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod>} */ (
634
+ jspb.Message.getRepeatedWrapperField(this, proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod, 2));
635
+ };
636
+
637
+
638
+ /** @param {Array.<!proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethod>} value */
639
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.prototype.setAcceptedpaymentmethodsList = function(value) {
640
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
641
+ };
642
+
643
+
644
+ proto.sniippaymentmethodsserviceapi.AcceptedPaymentMethodResponse.prototype.clearAcceptedpaymentmethodsList = function() {
645
+ this.setAcceptedpaymentmethodsList([]);
646
+ };
647
+
648
+
649
+
92
650
  /**
93
651
  * Generated by JsPbCodeGenerator.
94
652
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5826,6 +6384,165 @@ proto.sniippaymentmethodsserviceapi.CreditCardVerifyRequest.prototype.setAccesst
5826
6384
 
5827
6385
 
5828
6386
 
6387
+ /**
6388
+ * Generated by JsPbCodeGenerator.
6389
+ * @param {Array=} opt_data Optional initial data array, typically from a
6390
+ * server response, or constructed directly in Javascript. The array is used
6391
+ * in place and becomes part of the constructed object. It is not cloned.
6392
+ * If no data is provided, the constructed object will be empty, but still
6393
+ * valid.
6394
+ * @extends {jspb.Message}
6395
+ * @constructor
6396
+ */
6397
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest = function(opt_data) {
6398
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
6399
+ };
6400
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest, jspb.Message);
6401
+ if (goog.DEBUG && !COMPILED) {
6402
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest';
6403
+ }
6404
+
6405
+
6406
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6407
+ /**
6408
+ * Creates an object representation of this proto suitable for use in Soy templates.
6409
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6410
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6411
+ * For the list of reserved names please see:
6412
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
6413
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
6414
+ * for transitional soy proto support: http://goto/soy-param-migration
6415
+ * @return {!Object}
6416
+ */
6417
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.prototype.toObject = function(opt_includeInstance) {
6418
+ return proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.toObject(opt_includeInstance, this);
6419
+ };
6420
+
6421
+
6422
+ /**
6423
+ * Static version of the {@see toObject} method.
6424
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
6425
+ * instance for transitional soy proto support:
6426
+ * http://goto/soy-param-migration
6427
+ * @param {!proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest} msg The msg instance to transform.
6428
+ * @return {!Object}
6429
+ */
6430
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.toObject = function(includeInstance, msg) {
6431
+ var f, obj = {
6432
+ groupid: msg.getGroupid()
6433
+ };
6434
+
6435
+ if (includeInstance) {
6436
+ obj.$jspbMessageInstance = msg;
6437
+ }
6438
+ return obj;
6439
+ };
6440
+ }
6441
+
6442
+
6443
+ /**
6444
+ * Deserializes binary data (in protobuf wire format).
6445
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6446
+ * @return {!proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest}
6447
+ */
6448
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.deserializeBinary = function(bytes) {
6449
+ var reader = new jspb.BinaryReader(bytes);
6450
+ var msg = new proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest;
6451
+ return proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.deserializeBinaryFromReader(msg, reader);
6452
+ };
6453
+
6454
+
6455
+ /**
6456
+ * Deserializes binary data (in protobuf wire format) from the
6457
+ * given reader into the given message object.
6458
+ * @param {!proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest} msg The message object to deserialize into.
6459
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6460
+ * @return {!proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest}
6461
+ */
6462
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.deserializeBinaryFromReader = function(msg, reader) {
6463
+ while (reader.nextField()) {
6464
+ if (reader.isEndGroup()) {
6465
+ break;
6466
+ }
6467
+ var field = reader.getFieldNumber();
6468
+ switch (field) {
6469
+ case 1:
6470
+ var value = /** @type {number} */ (reader.readInt64());
6471
+ msg.setGroupid(value);
6472
+ break;
6473
+ default:
6474
+ reader.skipField();
6475
+ break;
6476
+ }
6477
+ }
6478
+ return msg;
6479
+ };
6480
+
6481
+
6482
+ /**
6483
+ * Class method variant: serializes the given message to binary data
6484
+ * (in protobuf wire format), writing to the given BinaryWriter.
6485
+ * @param {!proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest} message
6486
+ * @param {!jspb.BinaryWriter} writer
6487
+ */
6488
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.serializeBinaryToWriter = function(message, writer) {
6489
+ message.serializeBinaryToWriter(writer);
6490
+ };
6491
+
6492
+
6493
+ /**
6494
+ * Serializes the message to binary data (in protobuf wire format).
6495
+ * @return {!Uint8Array}
6496
+ */
6497
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.prototype.serializeBinary = function() {
6498
+ var writer = new jspb.BinaryWriter();
6499
+ this.serializeBinaryToWriter(writer);
6500
+ return writer.getResultBuffer();
6501
+ };
6502
+
6503
+
6504
+ /**
6505
+ * Serializes the message to binary data (in protobuf wire format),
6506
+ * writing to the given BinaryWriter.
6507
+ * @param {!jspb.BinaryWriter} writer
6508
+ */
6509
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.prototype.serializeBinaryToWriter = function (writer) {
6510
+ var f = undefined;
6511
+ f = this.getGroupid();
6512
+ if (f !== 0) {
6513
+ writer.writeInt64(
6514
+ 1,
6515
+ f
6516
+ );
6517
+ }
6518
+ };
6519
+
6520
+
6521
+ /**
6522
+ * Creates a deep clone of this proto. No data is shared with the original.
6523
+ * @return {!proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest} The clone.
6524
+ */
6525
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.prototype.cloneMessage = function() {
6526
+ return /** @type {!proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest} */ (jspb.Message.cloneMessage(this));
6527
+ };
6528
+
6529
+
6530
+ /**
6531
+ * optional int64 groupId = 1;
6532
+ * @return {number}
6533
+ */
6534
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.prototype.getGroupid = function() {
6535
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
6536
+ };
6537
+
6538
+
6539
+ /** @param {number} value */
6540
+ proto.sniippaymentmethodsserviceapi.GetAcceptedPaymentMethodsByGroupIdRequest.prototype.setGroupid = function(value) {
6541
+ jspb.Message.setField(this, 1, value);
6542
+ };
6543
+
6544
+
6545
+
5829
6546
  /**
5830
6547
  * Generated by JsPbCodeGenerator.
5831
6548
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/payment-methods-client-grpcweb",
3
- "version": "22.13.4699",
3
+ "version": "22.13.4720",
4
4
  "description": "payment-methods-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",