@sniipwebmaster/biller-service-client-grpcweb 0.2.3263 → 0.2.3308

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.
@@ -13,6 +13,7 @@ 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
14
  goog.exportSymbol('proto.sniipbillerapi.AbnLookupRequest', null, global);
15
15
  goog.exportSymbol('proto.sniipbillerapi.AbnLookupResponse', null, global);
16
+ goog.exportSymbol('proto.sniipbillerapi.AcceptedPaymentMethod', null, global);
16
17
  goog.exportSymbol('proto.sniipbillerapi.ActivatePaymentMethodRequest', null, global);
17
18
  goog.exportSymbol('proto.sniipbillerapi.ActivatePaymentMethodToReceivePaymentsRequest', null, global);
18
19
  goog.exportSymbol('proto.sniipbillerapi.AddBillerConfigRequest', null, global);
@@ -38,6 +39,7 @@ goog.exportSymbol('proto.sniipbillerapi.BillerContactDetailsRequest', null, glob
38
39
  goog.exportSymbol('proto.sniipbillerapi.BillerContactDetailsResponse', null, global);
39
40
  goog.exportSymbol('proto.sniipbillerapi.BillerCrnNickname', null, global);
40
41
  goog.exportSymbol('proto.sniipbillerapi.BillerCrnNicknameInternal', null, global);
42
+ goog.exportSymbol('proto.sniipbillerapi.BillerGetOrCreateRequest', null, global);
41
43
  goog.exportSymbol('proto.sniipbillerapi.BillerNameRequest', null, global);
42
44
  goog.exportSymbol('proto.sniipbillerapi.BillerNameResponse', null, global);
43
45
  goog.exportSymbol('proto.sniipbillerapi.BillerNotificationRecipient', null, global);
@@ -489,6 +491,281 @@ proto.sniipbillerapi.AbnLookupResponse.prototype.hasResponsecode = function() {
489
491
 
490
492
 
491
493
 
494
+ /**
495
+ * Generated by JsPbCodeGenerator.
496
+ * @param {Array=} opt_data Optional initial data array, typically from a
497
+ * server response, or constructed directly in Javascript. The array is used
498
+ * in place and becomes part of the constructed object. It is not cloned.
499
+ * If no data is provided, the constructed object will be empty, but still
500
+ * valid.
501
+ * @extends {jspb.Message}
502
+ * @constructor
503
+ */
504
+ proto.sniipbillerapi.AcceptedPaymentMethod = function(opt_data) {
505
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
506
+ };
507
+ goog.inherits(proto.sniipbillerapi.AcceptedPaymentMethod, jspb.Message);
508
+ if (goog.DEBUG && !COMPILED) {
509
+ proto.sniipbillerapi.AcceptedPaymentMethod.displayName = 'proto.sniipbillerapi.AcceptedPaymentMethod';
510
+ }
511
+
512
+
513
+ if (jspb.Message.GENERATE_TO_OBJECT) {
514
+ /**
515
+ * Creates an object representation of this proto suitable for use in Soy templates.
516
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
517
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
518
+ * For the list of reserved names please see:
519
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
520
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
521
+ * for transitional soy proto support: http://goto/soy-param-migration
522
+ * @return {!Object}
523
+ */
524
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.toObject = function(opt_includeInstance) {
525
+ return proto.sniipbillerapi.AcceptedPaymentMethod.toObject(opt_includeInstance, this);
526
+ };
527
+
528
+
529
+ /**
530
+ * Static version of the {@see toObject} method.
531
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
532
+ * instance for transitional soy proto support:
533
+ * http://goto/soy-param-migration
534
+ * @param {!proto.sniipbillerapi.AcceptedPaymentMethod} msg The msg instance to transform.
535
+ * @return {!Object}
536
+ */
537
+ proto.sniipbillerapi.AcceptedPaymentMethod.toObject = function(includeInstance, msg) {
538
+ var f, obj = {
539
+ paymenttype: msg.getPaymenttype(),
540
+ allowdebit: msg.getAllowdebit(),
541
+ allowcredit: msg.getAllowcredit(),
542
+ eftposonly: msg.getEftposonly(),
543
+ internationalonly: msg.getInternationalonly()
544
+ };
545
+
546
+ if (includeInstance) {
547
+ obj.$jspbMessageInstance = msg;
548
+ }
549
+ return obj;
550
+ };
551
+ }
552
+
553
+
554
+ /**
555
+ * Deserializes binary data (in protobuf wire format).
556
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
557
+ * @return {!proto.sniipbillerapi.AcceptedPaymentMethod}
558
+ */
559
+ proto.sniipbillerapi.AcceptedPaymentMethod.deserializeBinary = function(bytes) {
560
+ var reader = new jspb.BinaryReader(bytes);
561
+ var msg = new proto.sniipbillerapi.AcceptedPaymentMethod;
562
+ return proto.sniipbillerapi.AcceptedPaymentMethod.deserializeBinaryFromReader(msg, reader);
563
+ };
564
+
565
+
566
+ /**
567
+ * Deserializes binary data (in protobuf wire format) from the
568
+ * given reader into the given message object.
569
+ * @param {!proto.sniipbillerapi.AcceptedPaymentMethod} msg The message object to deserialize into.
570
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
571
+ * @return {!proto.sniipbillerapi.AcceptedPaymentMethod}
572
+ */
573
+ proto.sniipbillerapi.AcceptedPaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
574
+ while (reader.nextField()) {
575
+ if (reader.isEndGroup()) {
576
+ break;
577
+ }
578
+ var field = reader.getFieldNumber();
579
+ switch (field) {
580
+ case 1:
581
+ var value = /** @type {string} */ (reader.readString());
582
+ msg.setPaymenttype(value);
583
+ break;
584
+ case 2:
585
+ var value = /** @type {boolean} */ (reader.readBool());
586
+ msg.setAllowdebit(value);
587
+ break;
588
+ case 3:
589
+ var value = /** @type {boolean} */ (reader.readBool());
590
+ msg.setAllowcredit(value);
591
+ break;
592
+ case 4:
593
+ var value = /** @type {boolean} */ (reader.readBool());
594
+ msg.setEftposonly(value);
595
+ break;
596
+ case 5:
597
+ var value = /** @type {boolean} */ (reader.readBool());
598
+ msg.setInternationalonly(value);
599
+ break;
600
+ default:
601
+ reader.skipField();
602
+ break;
603
+ }
604
+ }
605
+ return msg;
606
+ };
607
+
608
+
609
+ /**
610
+ * Class method variant: serializes the given message to binary data
611
+ * (in protobuf wire format), writing to the given BinaryWriter.
612
+ * @param {!proto.sniipbillerapi.AcceptedPaymentMethod} message
613
+ * @param {!jspb.BinaryWriter} writer
614
+ */
615
+ proto.sniipbillerapi.AcceptedPaymentMethod.serializeBinaryToWriter = function(message, writer) {
616
+ message.serializeBinaryToWriter(writer);
617
+ };
618
+
619
+
620
+ /**
621
+ * Serializes the message to binary data (in protobuf wire format).
622
+ * @return {!Uint8Array}
623
+ */
624
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.serializeBinary = function() {
625
+ var writer = new jspb.BinaryWriter();
626
+ this.serializeBinaryToWriter(writer);
627
+ return writer.getResultBuffer();
628
+ };
629
+
630
+
631
+ /**
632
+ * Serializes the message to binary data (in protobuf wire format),
633
+ * writing to the given BinaryWriter.
634
+ * @param {!jspb.BinaryWriter} writer
635
+ */
636
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.serializeBinaryToWriter = function (writer) {
637
+ var f = undefined;
638
+ f = this.getPaymenttype();
639
+ if (f.length > 0) {
640
+ writer.writeString(
641
+ 1,
642
+ f
643
+ );
644
+ }
645
+ f = this.getAllowdebit();
646
+ if (f) {
647
+ writer.writeBool(
648
+ 2,
649
+ f
650
+ );
651
+ }
652
+ f = this.getAllowcredit();
653
+ if (f) {
654
+ writer.writeBool(
655
+ 3,
656
+ f
657
+ );
658
+ }
659
+ f = this.getEftposonly();
660
+ if (f) {
661
+ writer.writeBool(
662
+ 4,
663
+ f
664
+ );
665
+ }
666
+ f = this.getInternationalonly();
667
+ if (f) {
668
+ writer.writeBool(
669
+ 5,
670
+ f
671
+ );
672
+ }
673
+ };
674
+
675
+
676
+ /**
677
+ * Creates a deep clone of this proto. No data is shared with the original.
678
+ * @return {!proto.sniipbillerapi.AcceptedPaymentMethod} The clone.
679
+ */
680
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.cloneMessage = function() {
681
+ return /** @type {!proto.sniipbillerapi.AcceptedPaymentMethod} */ (jspb.Message.cloneMessage(this));
682
+ };
683
+
684
+
685
+ /**
686
+ * optional string paymentType = 1;
687
+ * @return {string}
688
+ */
689
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.getPaymenttype = function() {
690
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
691
+ };
692
+
693
+
694
+ /** @param {string} value */
695
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.setPaymenttype = function(value) {
696
+ jspb.Message.setField(this, 1, value);
697
+ };
698
+
699
+
700
+ /**
701
+ * optional bool allowDebit = 2;
702
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
703
+ * You should avoid comparisons like {@code val === true/false} in those cases.
704
+ * @return {boolean}
705
+ */
706
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.getAllowdebit = function() {
707
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 2, false));
708
+ };
709
+
710
+
711
+ /** @param {boolean} value */
712
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.setAllowdebit = function(value) {
713
+ jspb.Message.setField(this, 2, value);
714
+ };
715
+
716
+
717
+ /**
718
+ * optional bool allowCredit = 3;
719
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
720
+ * You should avoid comparisons like {@code val === true/false} in those cases.
721
+ * @return {boolean}
722
+ */
723
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.getAllowcredit = function() {
724
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 3, false));
725
+ };
726
+
727
+
728
+ /** @param {boolean} value */
729
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.setAllowcredit = function(value) {
730
+ jspb.Message.setField(this, 3, value);
731
+ };
732
+
733
+
734
+ /**
735
+ * optional bool eftposOnly = 4;
736
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
737
+ * You should avoid comparisons like {@code val === true/false} in those cases.
738
+ * @return {boolean}
739
+ */
740
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.getEftposonly = function() {
741
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 4, false));
742
+ };
743
+
744
+
745
+ /** @param {boolean} value */
746
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.setEftposonly = function(value) {
747
+ jspb.Message.setField(this, 4, value);
748
+ };
749
+
750
+
751
+ /**
752
+ * optional bool internationalOnly = 5;
753
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
754
+ * You should avoid comparisons like {@code val === true/false} in those cases.
755
+ * @return {boolean}
756
+ */
757
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.getInternationalonly = function() {
758
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 5, false));
759
+ };
760
+
761
+
762
+ /** @param {boolean} value */
763
+ proto.sniipbillerapi.AcceptedPaymentMethod.prototype.setInternationalonly = function(value) {
764
+ jspb.Message.setField(this, 5, value);
765
+ };
766
+
767
+
768
+
492
769
  /**
493
770
  * Generated by JsPbCodeGenerator.
494
771
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5800,7 +6077,8 @@ proto.sniipbillerapi.BillerConfig.prototype.toObject = function(opt_includeInsta
5800
6077
  */
5801
6078
  proto.sniipbillerapi.BillerConfig.toObject = function(includeInstance, msg) {
5802
6079
  var f, obj = {
5803
- acceptedpaymentmethodsList: jspb.Message.getField(msg, 1),
6080
+ acceptedpaymentmethodsList: jspb.Message.toObjectList(msg.getAcceptedpaymentmethodsList(),
6081
+ proto.sniipbillerapi.AcceptedPaymentMethod.toObject, includeInstance),
5804
6082
  bankaccount: (f = msg.getBankaccount()) && proto.sniipbillerapi.BankAccount.toObject(includeInstance, f),
5805
6083
  billerid: msg.getBillerid(),
5806
6084
  code: msg.getCode(),
@@ -5855,7 +6133,8 @@ proto.sniipbillerapi.BillerConfig.deserializeBinaryFromReader = function(msg, re
5855
6133
  var field = reader.getFieldNumber();
5856
6134
  switch (field) {
5857
6135
  case 1:
5858
- var value = /** @type {string} */ (reader.readString());
6136
+ var value = new proto.sniipbillerapi.AcceptedPaymentMethod;
6137
+ reader.readMessage(value,proto.sniipbillerapi.AcceptedPaymentMethod.deserializeBinaryFromReader);
5859
6138
  msg.getAcceptedpaymentmethodsList().push(value);
5860
6139
  msg.setAcceptedpaymentmethodsList(msg.getAcceptedpaymentmethodsList());
5861
6140
  break;
@@ -5970,9 +6249,10 @@ proto.sniipbillerapi.BillerConfig.prototype.serializeBinaryToWriter = function (
5970
6249
  var f = undefined;
5971
6250
  f = this.getAcceptedpaymentmethodsList();
5972
6251
  if (f.length > 0) {
5973
- writer.writeRepeatedString(
6252
+ writer.writeRepeatedMessage(
5974
6253
  1,
5975
- f
6254
+ f,
6255
+ proto.sniipbillerapi.AcceptedPaymentMethod.serializeBinaryToWriter
5976
6256
  );
5977
6257
  }
5978
6258
  f = this.getBankaccount();
@@ -6110,24 +6390,25 @@ proto.sniipbillerapi.BillerConfig.prototype.cloneMessage = function() {
6110
6390
 
6111
6391
 
6112
6392
  /**
6113
- * repeated string acceptedPaymentMethods = 1;
6393
+ * repeated AcceptedPaymentMethod acceptedPaymentMethods = 1;
6114
6394
  * If you change this array by adding, removing or replacing elements, or if you
6115
6395
  * replace the array itself, then you must call the setter to update it.
6116
- * @return {!Array.<string>}
6396
+ * @return {!Array.<!proto.sniipbillerapi.AcceptedPaymentMethod>}
6117
6397
  */
6118
6398
  proto.sniipbillerapi.BillerConfig.prototype.getAcceptedpaymentmethodsList = function() {
6119
- return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 1));
6399
+ return /** @type{!Array.<!proto.sniipbillerapi.AcceptedPaymentMethod>} */ (
6400
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipbillerapi.AcceptedPaymentMethod, 1));
6120
6401
  };
6121
6402
 
6122
6403
 
6123
- /** @param {Array.<string>} value */
6404
+ /** @param {Array.<!proto.sniipbillerapi.AcceptedPaymentMethod>} value */
6124
6405
  proto.sniipbillerapi.BillerConfig.prototype.setAcceptedpaymentmethodsList = function(value) {
6125
- jspb.Message.setField(this, 1, value || []);
6406
+ jspb.Message.setRepeatedWrapperField(this, 1, value);
6126
6407
  };
6127
6408
 
6128
6409
 
6129
6410
  proto.sniipbillerapi.BillerConfig.prototype.clearAcceptedpaymentmethodsList = function() {
6130
- jspb.Message.setField(this, 1, []);
6411
+ this.setAcceptedpaymentmethodsList([]);
6131
6412
  };
6132
6413
 
6133
6414
 
@@ -8005,6 +8286,209 @@ proto.sniipbillerapi.BillerCrnNicknameInternal.prototype.setUserid = function(va
8005
8286
 
8006
8287
 
8007
8288
 
8289
+ /**
8290
+ * Generated by JsPbCodeGenerator.
8291
+ * @param {Array=} opt_data Optional initial data array, typically from a
8292
+ * server response, or constructed directly in Javascript. The array is used
8293
+ * in place and becomes part of the constructed object. It is not cloned.
8294
+ * If no data is provided, the constructed object will be empty, but still
8295
+ * valid.
8296
+ * @extends {jspb.Message}
8297
+ * @constructor
8298
+ */
8299
+ proto.sniipbillerapi.BillerGetOrCreateRequest = function(opt_data) {
8300
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8301
+ };
8302
+ goog.inherits(proto.sniipbillerapi.BillerGetOrCreateRequest, jspb.Message);
8303
+ if (goog.DEBUG && !COMPILED) {
8304
+ proto.sniipbillerapi.BillerGetOrCreateRequest.displayName = 'proto.sniipbillerapi.BillerGetOrCreateRequest';
8305
+ }
8306
+
8307
+
8308
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8309
+ /**
8310
+ * Creates an object representation of this proto suitable for use in Soy templates.
8311
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8312
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8313
+ * For the list of reserved names please see:
8314
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
8315
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
8316
+ * for transitional soy proto support: http://goto/soy-param-migration
8317
+ * @return {!Object}
8318
+ */
8319
+ proto.sniipbillerapi.BillerGetOrCreateRequest.prototype.toObject = function(opt_includeInstance) {
8320
+ return proto.sniipbillerapi.BillerGetOrCreateRequest.toObject(opt_includeInstance, this);
8321
+ };
8322
+
8323
+
8324
+ /**
8325
+ * Static version of the {@see toObject} method.
8326
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
8327
+ * instance for transitional soy proto support:
8328
+ * http://goto/soy-param-migration
8329
+ * @param {!proto.sniipbillerapi.BillerGetOrCreateRequest} msg The msg instance to transform.
8330
+ * @return {!Object}
8331
+ */
8332
+ proto.sniipbillerapi.BillerGetOrCreateRequest.toObject = function(includeInstance, msg) {
8333
+ var f, obj = {
8334
+ biller: (f = msg.getBiller()) && proto.sniipbillerapi.Biller.toObject(includeInstance, f),
8335
+ userid: msg.getUserid()
8336
+ };
8337
+
8338
+ if (includeInstance) {
8339
+ obj.$jspbMessageInstance = msg;
8340
+ }
8341
+ return obj;
8342
+ };
8343
+ }
8344
+
8345
+
8346
+ /**
8347
+ * Deserializes binary data (in protobuf wire format).
8348
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8349
+ * @return {!proto.sniipbillerapi.BillerGetOrCreateRequest}
8350
+ */
8351
+ proto.sniipbillerapi.BillerGetOrCreateRequest.deserializeBinary = function(bytes) {
8352
+ var reader = new jspb.BinaryReader(bytes);
8353
+ var msg = new proto.sniipbillerapi.BillerGetOrCreateRequest;
8354
+ return proto.sniipbillerapi.BillerGetOrCreateRequest.deserializeBinaryFromReader(msg, reader);
8355
+ };
8356
+
8357
+
8358
+ /**
8359
+ * Deserializes binary data (in protobuf wire format) from the
8360
+ * given reader into the given message object.
8361
+ * @param {!proto.sniipbillerapi.BillerGetOrCreateRequest} msg The message object to deserialize into.
8362
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8363
+ * @return {!proto.sniipbillerapi.BillerGetOrCreateRequest}
8364
+ */
8365
+ proto.sniipbillerapi.BillerGetOrCreateRequest.deserializeBinaryFromReader = function(msg, reader) {
8366
+ while (reader.nextField()) {
8367
+ if (reader.isEndGroup()) {
8368
+ break;
8369
+ }
8370
+ var field = reader.getFieldNumber();
8371
+ switch (field) {
8372
+ case 1:
8373
+ var value = new proto.sniipbillerapi.Biller;
8374
+ reader.readMessage(value,proto.sniipbillerapi.Biller.deserializeBinaryFromReader);
8375
+ msg.setBiller(value);
8376
+ break;
8377
+ case 2:
8378
+ var value = /** @type {number} */ (reader.readInt64());
8379
+ msg.setUserid(value);
8380
+ break;
8381
+ default:
8382
+ reader.skipField();
8383
+ break;
8384
+ }
8385
+ }
8386
+ return msg;
8387
+ };
8388
+
8389
+
8390
+ /**
8391
+ * Class method variant: serializes the given message to binary data
8392
+ * (in protobuf wire format), writing to the given BinaryWriter.
8393
+ * @param {!proto.sniipbillerapi.BillerGetOrCreateRequest} message
8394
+ * @param {!jspb.BinaryWriter} writer
8395
+ */
8396
+ proto.sniipbillerapi.BillerGetOrCreateRequest.serializeBinaryToWriter = function(message, writer) {
8397
+ message.serializeBinaryToWriter(writer);
8398
+ };
8399
+
8400
+
8401
+ /**
8402
+ * Serializes the message to binary data (in protobuf wire format).
8403
+ * @return {!Uint8Array}
8404
+ */
8405
+ proto.sniipbillerapi.BillerGetOrCreateRequest.prototype.serializeBinary = function() {
8406
+ var writer = new jspb.BinaryWriter();
8407
+ this.serializeBinaryToWriter(writer);
8408
+ return writer.getResultBuffer();
8409
+ };
8410
+
8411
+
8412
+ /**
8413
+ * Serializes the message to binary data (in protobuf wire format),
8414
+ * writing to the given BinaryWriter.
8415
+ * @param {!jspb.BinaryWriter} writer
8416
+ */
8417
+ proto.sniipbillerapi.BillerGetOrCreateRequest.prototype.serializeBinaryToWriter = function (writer) {
8418
+ var f = undefined;
8419
+ f = this.getBiller();
8420
+ if (f != null) {
8421
+ writer.writeMessage(
8422
+ 1,
8423
+ f,
8424
+ proto.sniipbillerapi.Biller.serializeBinaryToWriter
8425
+ );
8426
+ }
8427
+ f = this.getUserid();
8428
+ if (f !== 0) {
8429
+ writer.writeInt64(
8430
+ 2,
8431
+ f
8432
+ );
8433
+ }
8434
+ };
8435
+
8436
+
8437
+ /**
8438
+ * Creates a deep clone of this proto. No data is shared with the original.
8439
+ * @return {!proto.sniipbillerapi.BillerGetOrCreateRequest} The clone.
8440
+ */
8441
+ proto.sniipbillerapi.BillerGetOrCreateRequest.prototype.cloneMessage = function() {
8442
+ return /** @type {!proto.sniipbillerapi.BillerGetOrCreateRequest} */ (jspb.Message.cloneMessage(this));
8443
+ };
8444
+
8445
+
8446
+ /**
8447
+ * optional Biller biller = 1;
8448
+ * @return {proto.sniipbillerapi.Biller}
8449
+ */
8450
+ proto.sniipbillerapi.BillerGetOrCreateRequest.prototype.getBiller = function() {
8451
+ return /** @type{proto.sniipbillerapi.Biller} */ (
8452
+ jspb.Message.getWrapperField(this, proto.sniipbillerapi.Biller, 1));
8453
+ };
8454
+
8455
+
8456
+ /** @param {proto.sniipbillerapi.Biller|undefined} value */
8457
+ proto.sniipbillerapi.BillerGetOrCreateRequest.prototype.setBiller = function(value) {
8458
+ jspb.Message.setWrapperField(this, 1, value);
8459
+ };
8460
+
8461
+
8462
+ proto.sniipbillerapi.BillerGetOrCreateRequest.prototype.clearBiller = function() {
8463
+ this.setBiller(undefined);
8464
+ };
8465
+
8466
+
8467
+ /**
8468
+ * Returns whether this field is set.
8469
+ * @return{!boolean}
8470
+ */
8471
+ proto.sniipbillerapi.BillerGetOrCreateRequest.prototype.hasBiller = function() {
8472
+ return jspb.Message.getField(this, 1) != null;
8473
+ };
8474
+
8475
+
8476
+ /**
8477
+ * optional int64 userId = 2;
8478
+ * @return {number}
8479
+ */
8480
+ proto.sniipbillerapi.BillerGetOrCreateRequest.prototype.getUserid = function() {
8481
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
8482
+ };
8483
+
8484
+
8485
+ /** @param {number} value */
8486
+ proto.sniipbillerapi.BillerGetOrCreateRequest.prototype.setUserid = function(value) {
8487
+ jspb.Message.setField(this, 2, value);
8488
+ };
8489
+
8490
+
8491
+
8008
8492
  /**
8009
8493
  * Generated by JsPbCodeGenerator.
8010
8494
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -16238,7 +16722,7 @@ proto.sniipbillerapi.GetOrCreateBillerRequest.prototype.toObject = function(opt_
16238
16722
  */
16239
16723
  proto.sniipbillerapi.GetOrCreateBillerRequest.toObject = function(includeInstance, msg) {
16240
16724
  var f, obj = {
16241
- data: (f = msg.getData()) && proto.sniipbillerapi.Biller.toObject(includeInstance, f)
16725
+ data: (f = msg.getData()) && proto.sniipbillerapi.BillerGetOrCreateRequest.toObject(includeInstance, f)
16242
16726
  };
16243
16727
 
16244
16728
  if (includeInstance) {
@@ -16276,8 +16760,8 @@ proto.sniipbillerapi.GetOrCreateBillerRequest.deserializeBinaryFromReader = func
16276
16760
  var field = reader.getFieldNumber();
16277
16761
  switch (field) {
16278
16762
  case 1:
16279
- var value = new proto.sniipbillerapi.Biller;
16280
- reader.readMessage(value,proto.sniipbillerapi.Biller.deserializeBinaryFromReader);
16763
+ var value = new proto.sniipbillerapi.BillerGetOrCreateRequest;
16764
+ reader.readMessage(value,proto.sniipbillerapi.BillerGetOrCreateRequest.deserializeBinaryFromReader);
16281
16765
  msg.setData(value);
16282
16766
  break;
16283
16767
  default:
@@ -16323,7 +16807,7 @@ proto.sniipbillerapi.GetOrCreateBillerRequest.prototype.serializeBinaryToWriter
16323
16807
  writer.writeMessage(
16324
16808
  1,
16325
16809
  f,
16326
- proto.sniipbillerapi.Biller.serializeBinaryToWriter
16810
+ proto.sniipbillerapi.BillerGetOrCreateRequest.serializeBinaryToWriter
16327
16811
  );
16328
16812
  }
16329
16813
  };
@@ -16339,16 +16823,16 @@ proto.sniipbillerapi.GetOrCreateBillerRequest.prototype.cloneMessage = function(
16339
16823
 
16340
16824
 
16341
16825
  /**
16342
- * optional Biller data = 1;
16343
- * @return {proto.sniipbillerapi.Biller}
16826
+ * optional BillerGetOrCreateRequest data = 1;
16827
+ * @return {proto.sniipbillerapi.BillerGetOrCreateRequest}
16344
16828
  */
16345
16829
  proto.sniipbillerapi.GetOrCreateBillerRequest.prototype.getData = function() {
16346
- return /** @type{proto.sniipbillerapi.Biller} */ (
16347
- jspb.Message.getWrapperField(this, proto.sniipbillerapi.Biller, 1));
16830
+ return /** @type{proto.sniipbillerapi.BillerGetOrCreateRequest} */ (
16831
+ jspb.Message.getWrapperField(this, proto.sniipbillerapi.BillerGetOrCreateRequest, 1));
16348
16832
  };
16349
16833
 
16350
16834
 
16351
- /** @param {proto.sniipbillerapi.Biller|undefined} value */
16835
+ /** @param {proto.sniipbillerapi.BillerGetOrCreateRequest|undefined} value */
16352
16836
  proto.sniipbillerapi.GetOrCreateBillerRequest.prototype.setData = function(value) {
16353
16837
  jspb.Message.setWrapperField(this, 1, value);
16354
16838
  };
@@ -17740,7 +18224,8 @@ proto.sniipbillerapi.Organisation.toObject = function(includeInstance, msg) {
17740
18224
  description: msg.getDescription(),
17741
18225
  maxamountpermitted: msg.getMaxamountpermitted(),
17742
18226
  minamountpermitted: msg.getMinamountpermitted(),
17743
- acceptedpaymentmethodsList: jspb.Message.getField(msg, 7),
18227
+ acceptedpaymentmethodsList: jspb.Message.toObjectList(msg.getAcceptedpaymentmethodsList(),
18228
+ proto.sniipbillerapi.AcceptedPaymentMethod.toObject, includeInstance),
17744
18229
  userhasvalidpaymentmethods: msg.getUserhasvalidpaymentmethods(),
17745
18230
  billertimezone: msg.getBillertimezone(),
17746
18231
  billertimezoneabbr: msg.getBillertimezoneabbr()
@@ -17805,7 +18290,8 @@ proto.sniipbillerapi.Organisation.deserializeBinaryFromReader = function(msg, re
17805
18290
  msg.setMinamountpermitted(value);
17806
18291
  break;
17807
18292
  case 7:
17808
- var value = /** @type {string} */ (reader.readString());
18293
+ var value = new proto.sniipbillerapi.AcceptedPaymentMethod;
18294
+ reader.readMessage(value,proto.sniipbillerapi.AcceptedPaymentMethod.deserializeBinaryFromReader);
17809
18295
  msg.getAcceptedpaymentmethodsList().push(value);
17810
18296
  msg.setAcceptedpaymentmethodsList(msg.getAcceptedpaymentmethodsList());
17811
18297
  break;
@@ -17903,9 +18389,10 @@ proto.sniipbillerapi.Organisation.prototype.serializeBinaryToWriter = function (
17903
18389
  }
17904
18390
  f = this.getAcceptedpaymentmethodsList();
17905
18391
  if (f.length > 0) {
17906
- writer.writeRepeatedString(
18392
+ writer.writeRepeatedMessage(
17907
18393
  7,
17908
- f
18394
+ f,
18395
+ proto.sniipbillerapi.AcceptedPaymentMethod.serializeBinaryToWriter
17909
18396
  );
17910
18397
  }
17911
18398
  f = this.getUserhasvalidpaymentmethods();
@@ -18032,24 +18519,25 @@ proto.sniipbillerapi.Organisation.prototype.setMinamountpermitted = function(val
18032
18519
 
18033
18520
 
18034
18521
  /**
18035
- * repeated string acceptedPaymentMethods = 7;
18522
+ * repeated AcceptedPaymentMethod acceptedPaymentMethods = 7;
18036
18523
  * If you change this array by adding, removing or replacing elements, or if you
18037
18524
  * replace the array itself, then you must call the setter to update it.
18038
- * @return {!Array.<string>}
18525
+ * @return {!Array.<!proto.sniipbillerapi.AcceptedPaymentMethod>}
18039
18526
  */
18040
18527
  proto.sniipbillerapi.Organisation.prototype.getAcceptedpaymentmethodsList = function() {
18041
- return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 7));
18528
+ return /** @type{!Array.<!proto.sniipbillerapi.AcceptedPaymentMethod>} */ (
18529
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipbillerapi.AcceptedPaymentMethod, 7));
18042
18530
  };
18043
18531
 
18044
18532
 
18045
- /** @param {Array.<string>} value */
18533
+ /** @param {Array.<!proto.sniipbillerapi.AcceptedPaymentMethod>} value */
18046
18534
  proto.sniipbillerapi.Organisation.prototype.setAcceptedpaymentmethodsList = function(value) {
18047
- jspb.Message.setField(this, 7, value || []);
18535
+ jspb.Message.setRepeatedWrapperField(this, 7, value);
18048
18536
  };
18049
18537
 
18050
18538
 
18051
18539
  proto.sniipbillerapi.Organisation.prototype.clearAcceptedpaymentmethodsList = function() {
18052
- jspb.Message.setField(this, 7, []);
18540
+ this.setAcceptedpaymentmethodsList([]);
18053
18541
  };
18054
18542
 
18055
18543
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/biller-service-client-grpcweb",
3
- "version": "0.2.3263",
3
+ "version": "0.2.3308",
4
4
  "description": "biller-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",