@sniipwebmaster/payment-methods-client-grpcweb 0.2.584 → 0.2.592

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.
@@ -580,6 +580,62 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
580
580
  };
581
581
 
582
582
 
583
+ /**
584
+ * @const
585
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
586
+ * !proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest,
587
+ * !proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse>}
588
+ */
589
+ const methodInfo_SniipPaymentMethodsServiceAPIService_GetZenithPaymentDetails = new grpc.web.AbstractClientBase.MethodInfo(
590
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse,
591
+ /** @param {!proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest} request */
592
+ function(request) {
593
+ return request.serializeBinary();
594
+ },
595
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.deserializeBinary
596
+ );
597
+
598
+
599
+ /**
600
+ * @param {!proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest} request The
601
+ * request proto
602
+ * @param {!Object<string, string>} metadata User defined
603
+ * call metadata
604
+ * @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse)}
605
+ * callback The callback function(error, response)
606
+ * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse>|undefined}
607
+ * The XHR Node Readable Stream
608
+ */
609
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getZenithPaymentDetails =
610
+ function(request, metadata, callback) {
611
+ return this.client_.rpcCall(this.hostname_ +
612
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetZenithPaymentDetails',
613
+ request,
614
+ metadata,
615
+ methodInfo_SniipPaymentMethodsServiceAPIService_GetZenithPaymentDetails,
616
+ callback);
617
+ };
618
+
619
+
620
+ /**
621
+ * @param {!proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest} request The
622
+ * request proto
623
+ * @param {!Object<string, string>} metadata User defined
624
+ * call metadata
625
+ * @return {!Promise<!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse>}
626
+ * The XHR Node Readable Stream
627
+ */
628
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getZenithPaymentDetails =
629
+ function(request, metadata) {
630
+ return new Promise((resolve, reject) => {
631
+ this.delegateClient_.getZenithPaymentDetails(
632
+ request, metadata, (error, response) => {
633
+ error ? reject(error) : resolve(response);
634
+ });
635
+ });
636
+ };
637
+
638
+
583
639
  /**
584
640
  * @const
585
641
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -34,6 +34,7 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodForPaymen
34
34
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodRequest', null, global);
35
35
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodResponse', null, global);
36
36
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest', null, global);
37
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest', null, global);
37
38
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.MaskedCreditCard', null, global);
38
39
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethod', null, global);
39
40
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodDeleteRequest', null, global);
@@ -43,8 +44,11 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodResponse', n
43
44
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodsResponse', null, global);
44
45
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.RemovePaymentMethodRequest', null, global);
45
46
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ResponseCode', null, global);
47
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdateCreditCard', null, global);
46
48
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest', null, global);
47
49
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest', null, global);
50
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest', null, global);
51
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse', null, global);
48
52
 
49
53
  /**
50
54
  * Generated by JsPbCodeGenerator.
@@ -4377,6 +4381,165 @@ proto.sniippaymentmethodsserviceapi.GetPaymentMethodsRequest.prototype.hasData =
4377
4381
 
4378
4382
 
4379
4383
 
4384
+ /**
4385
+ * Generated by JsPbCodeGenerator.
4386
+ * @param {Array=} opt_data Optional initial data array, typically from a
4387
+ * server response, or constructed directly in Javascript. The array is used
4388
+ * in place and becomes part of the constructed object. It is not cloned.
4389
+ * If no data is provided, the constructed object will be empty, but still
4390
+ * valid.
4391
+ * @extends {jspb.Message}
4392
+ * @constructor
4393
+ */
4394
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest = function(opt_data) {
4395
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
4396
+ };
4397
+ goog.inherits(proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest, jspb.Message);
4398
+ if (goog.DEBUG && !COMPILED) {
4399
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.displayName = 'proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest';
4400
+ }
4401
+
4402
+
4403
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4404
+ /**
4405
+ * Creates an object representation of this proto suitable for use in Soy templates.
4406
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4407
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4408
+ * For the list of reserved names please see:
4409
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
4410
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
4411
+ * for transitional soy proto support: http://goto/soy-param-migration
4412
+ * @return {!Object}
4413
+ */
4414
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.prototype.toObject = function(opt_includeInstance) {
4415
+ return proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.toObject(opt_includeInstance, this);
4416
+ };
4417
+
4418
+
4419
+ /**
4420
+ * Static version of the {@see toObject} method.
4421
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
4422
+ * instance for transitional soy proto support:
4423
+ * http://goto/soy-param-migration
4424
+ * @param {!proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest} msg The msg instance to transform.
4425
+ * @return {!Object}
4426
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4427
+ */
4428
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.toObject = function(includeInstance, msg) {
4429
+ var f, obj = {
4430
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.toObject(includeInstance, f)
4431
+ };
4432
+
4433
+ if (includeInstance) {
4434
+ obj.$jspbMessageInstance = msg;
4435
+ }
4436
+ return obj;
4437
+ };
4438
+ }
4439
+
4440
+
4441
+ /**
4442
+ * Deserializes binary data (in protobuf wire format).
4443
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4444
+ * @return {!proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest}
4445
+ */
4446
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.deserializeBinary = function(bytes) {
4447
+ var reader = new jspb.BinaryReader(bytes);
4448
+ var msg = new proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest;
4449
+ return proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.deserializeBinaryFromReader(msg, reader);
4450
+ };
4451
+
4452
+
4453
+ /**
4454
+ * Deserializes binary data (in protobuf wire format) from the
4455
+ * given reader into the given message object.
4456
+ * @param {!proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest} msg The message object to deserialize into.
4457
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4458
+ * @return {!proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest}
4459
+ */
4460
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.deserializeBinaryFromReader = function(msg, reader) {
4461
+ while (reader.nextField()) {
4462
+ if (reader.isEndGroup()) {
4463
+ break;
4464
+ }
4465
+ var field = reader.getFieldNumber();
4466
+ switch (field) {
4467
+ case 1:
4468
+ var value = new proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest;
4469
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.deserializeBinaryFromReader);
4470
+ msg.setData(value);
4471
+ break;
4472
+ default:
4473
+ reader.skipField();
4474
+ break;
4475
+ }
4476
+ }
4477
+ return msg;
4478
+ };
4479
+
4480
+
4481
+ /**
4482
+ * Serializes the message to binary data (in protobuf wire format).
4483
+ * @return {!Uint8Array}
4484
+ */
4485
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.prototype.serializeBinary = function() {
4486
+ var writer = new jspb.BinaryWriter();
4487
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.serializeBinaryToWriter(this, writer);
4488
+ return writer.getResultBuffer();
4489
+ };
4490
+
4491
+
4492
+ /**
4493
+ * Serializes the given message to binary data (in protobuf wire
4494
+ * format), writing to the given BinaryWriter.
4495
+ * @param {!proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest} message
4496
+ * @param {!jspb.BinaryWriter} writer
4497
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4498
+ */
4499
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.serializeBinaryToWriter = function(message, writer) {
4500
+ var f = undefined;
4501
+ f = message.getData();
4502
+ if (f != null) {
4503
+ writer.writeMessage(
4504
+ 1,
4505
+ f,
4506
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.serializeBinaryToWriter
4507
+ );
4508
+ }
4509
+ };
4510
+
4511
+
4512
+ /**
4513
+ * optional ZenithPaymentDetailsRequest data = 1;
4514
+ * @return {?proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest}
4515
+ */
4516
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.prototype.getData = function() {
4517
+ return /** @type{?proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest} */ (
4518
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest, 1));
4519
+ };
4520
+
4521
+
4522
+ /** @param {?proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest|undefined} value */
4523
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.prototype.setData = function(value) {
4524
+ jspb.Message.setWrapperField(this, 1, value);
4525
+ };
4526
+
4527
+
4528
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.prototype.clearData = function() {
4529
+ this.setData(undefined);
4530
+ };
4531
+
4532
+
4533
+ /**
4534
+ * Returns whether this field is set.
4535
+ * @return {!boolean}
4536
+ */
4537
+ proto.sniippaymentmethodsserviceapi.GetZenithPaymentDetailsRequest.prototype.hasData = function() {
4538
+ return jspb.Message.getField(this, 1) != null;
4539
+ };
4540
+
4541
+
4542
+
4380
4543
  /**
4381
4544
  * Generated by JsPbCodeGenerator.
4382
4545
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -6495,12 +6658,12 @@ proto.sniippaymentmethodsserviceapi.ResponseCode.prototype.setMessage = function
6495
6658
  * @extends {jspb.Message}
6496
6659
  * @constructor
6497
6660
  */
6498
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest = function(opt_data) {
6661
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard = function(opt_data) {
6499
6662
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
6500
6663
  };
6501
- goog.inherits(proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest, jspb.Message);
6664
+ goog.inherits(proto.sniippaymentmethodsserviceapi.UpdateCreditCard, jspb.Message);
6502
6665
  if (goog.DEBUG && !COMPILED) {
6503
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.displayName = 'proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest';
6666
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.displayName = 'proto.sniippaymentmethodsserviceapi.UpdateCreditCard';
6504
6667
  }
6505
6668
 
6506
6669
 
@@ -6515,8 +6678,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
6515
6678
  * for transitional soy proto support: http://goto/soy-param-migration
6516
6679
  * @return {!Object}
6517
6680
  */
6518
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.toObject = function(opt_includeInstance) {
6519
- return proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.toObject(opt_includeInstance, this);
6681
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.prototype.toObject = function(opt_includeInstance) {
6682
+ return proto.sniippaymentmethodsserviceapi.UpdateCreditCard.toObject(opt_includeInstance, this);
6520
6683
  };
6521
6684
 
6522
6685
 
@@ -6525,13 +6688,16 @@ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.toO
6525
6688
  * @param {boolean|undefined} includeInstance Whether to include the JSPB
6526
6689
  * instance for transitional soy proto support:
6527
6690
  * http://goto/soy-param-migration
6528
- * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} msg The msg instance to transform.
6691
+ * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCard} msg The msg instance to transform.
6529
6692
  * @return {!Object}
6530
6693
  * @suppress {unusedLocalVariables} f is only used for nested messages
6531
6694
  */
6532
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.toObject = function(includeInstance, msg) {
6695
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.toObject = function(includeInstance, msg) {
6533
6696
  var f, obj = {
6534
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.toObject(includeInstance, f)
6697
+ nameoncard: jspb.Message.getFieldWithDefault(msg, 1, ""),
6698
+ monthexpiry: jspb.Message.getFieldWithDefault(msg, 2, 0),
6699
+ yearexpiry: jspb.Message.getFieldWithDefault(msg, 3, 0),
6700
+ nickname: jspb.Message.getFieldWithDefault(msg, 4, "")
6535
6701
  };
6536
6702
 
6537
6703
  if (includeInstance) {
@@ -6545,23 +6711,23 @@ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.toObject = fu
6545
6711
  /**
6546
6712
  * Deserializes binary data (in protobuf wire format).
6547
6713
  * @param {jspb.ByteSource} bytes The bytes to deserialize.
6548
- * @return {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest}
6714
+ * @return {!proto.sniippaymentmethodsserviceapi.UpdateCreditCard}
6549
6715
  */
6550
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.deserializeBinary = function(bytes) {
6716
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.deserializeBinary = function(bytes) {
6551
6717
  var reader = new jspb.BinaryReader(bytes);
6552
- var msg = new proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest;
6553
- return proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.deserializeBinaryFromReader(msg, reader);
6718
+ var msg = new proto.sniippaymentmethodsserviceapi.UpdateCreditCard;
6719
+ return proto.sniippaymentmethodsserviceapi.UpdateCreditCard.deserializeBinaryFromReader(msg, reader);
6554
6720
  };
6555
6721
 
6556
6722
 
6557
6723
  /**
6558
6724
  * Deserializes binary data (in protobuf wire format) from the
6559
6725
  * given reader into the given message object.
6560
- * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} msg The message object to deserialize into.
6726
+ * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCard} msg The message object to deserialize into.
6561
6727
  * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6562
- * @return {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest}
6728
+ * @return {!proto.sniippaymentmethodsserviceapi.UpdateCreditCard}
6563
6729
  */
6564
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.deserializeBinaryFromReader = function(msg, reader) {
6730
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.deserializeBinaryFromReader = function(msg, reader) {
6565
6731
  while (reader.nextField()) {
6566
6732
  if (reader.isEndGroup()) {
6567
6733
  break;
@@ -6569,9 +6735,20 @@ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.deserializeBi
6569
6735
  var field = reader.getFieldNumber();
6570
6736
  switch (field) {
6571
6737
  case 1:
6572
- var value = new proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest;
6573
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.deserializeBinaryFromReader);
6574
- msg.setData(value);
6738
+ var value = /** @type {string} */ (reader.readString());
6739
+ msg.setNameoncard(value);
6740
+ break;
6741
+ case 2:
6742
+ var value = /** @type {number} */ (reader.readInt32());
6743
+ msg.setMonthexpiry(value);
6744
+ break;
6745
+ case 3:
6746
+ var value = /** @type {number} */ (reader.readInt32());
6747
+ msg.setYearexpiry(value);
6748
+ break;
6749
+ case 4:
6750
+ var value = /** @type {string} */ (reader.readString());
6751
+ msg.setNickname(value);
6575
6752
  break;
6576
6753
  default:
6577
6754
  reader.skipField();
@@ -6586,9 +6763,9 @@ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.deserializeBi
6586
6763
  * Serializes the message to binary data (in protobuf wire format).
6587
6764
  * @return {!Uint8Array}
6588
6765
  */
6589
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.serializeBinary = function() {
6766
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.prototype.serializeBinary = function() {
6590
6767
  var writer = new jspb.BinaryWriter();
6591
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.serializeBinaryToWriter(this, writer);
6768
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.serializeBinaryToWriter(this, writer);
6592
6769
  return writer.getResultBuffer();
6593
6770
  };
6594
6771
 
@@ -6596,50 +6773,100 @@ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.ser
6596
6773
  /**
6597
6774
  * Serializes the given message to binary data (in protobuf wire
6598
6775
  * format), writing to the given BinaryWriter.
6599
- * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} message
6776
+ * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCard} message
6600
6777
  * @param {!jspb.BinaryWriter} writer
6601
6778
  * @suppress {unusedLocalVariables} f is only used for nested messages
6602
6779
  */
6603
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.serializeBinaryToWriter = function(message, writer) {
6780
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.serializeBinaryToWriter = function(message, writer) {
6604
6781
  var f = undefined;
6605
- f = message.getData();
6606
- if (f != null) {
6607
- writer.writeMessage(
6782
+ f = message.getNameoncard();
6783
+ if (f.length > 0) {
6784
+ writer.writeString(
6608
6785
  1,
6609
- f,
6610
- proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.serializeBinaryToWriter
6786
+ f
6787
+ );
6788
+ }
6789
+ f = message.getMonthexpiry();
6790
+ if (f !== 0) {
6791
+ writer.writeInt32(
6792
+ 2,
6793
+ f
6794
+ );
6795
+ }
6796
+ f = message.getYearexpiry();
6797
+ if (f !== 0) {
6798
+ writer.writeInt32(
6799
+ 3,
6800
+ f
6801
+ );
6802
+ }
6803
+ f = message.getNickname();
6804
+ if (f.length > 0) {
6805
+ writer.writeString(
6806
+ 4,
6807
+ f
6611
6808
  );
6612
6809
  }
6613
6810
  };
6614
6811
 
6615
6812
 
6616
6813
  /**
6617
- * optional CreditCardDetailsUpdateRequest data = 1;
6618
- * @return {?proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest}
6814
+ * optional string nameOnCard = 1;
6815
+ * @return {string}
6619
6816
  */
6620
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.getData = function() {
6621
- return /** @type{?proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest} */ (
6622
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest, 1));
6817
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.prototype.getNameoncard = function() {
6818
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6623
6819
  };
6624
6820
 
6625
6821
 
6626
- /** @param {?proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest|undefined} value */
6627
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.setData = function(value) {
6628
- jspb.Message.setWrapperField(this, 1, value);
6822
+ /** @param {string} value */
6823
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.prototype.setNameoncard = function(value) {
6824
+ jspb.Message.setProto3StringField(this, 1, value);
6629
6825
  };
6630
6826
 
6631
6827
 
6632
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.clearData = function() {
6633
- this.setData(undefined);
6828
+ /**
6829
+ * optional int32 monthExpiry = 2;
6830
+ * @return {number}
6831
+ */
6832
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.prototype.getMonthexpiry = function() {
6833
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
6834
+ };
6835
+
6836
+
6837
+ /** @param {number} value */
6838
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.prototype.setMonthexpiry = function(value) {
6839
+ jspb.Message.setProto3IntField(this, 2, value);
6634
6840
  };
6635
6841
 
6636
6842
 
6637
6843
  /**
6638
- * Returns whether this field is set.
6639
- * @return {!boolean}
6844
+ * optional int32 yearExpiry = 3;
6845
+ * @return {number}
6640
6846
  */
6641
- proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.hasData = function() {
6642
- return jspb.Message.getField(this, 1) != null;
6847
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.prototype.getYearexpiry = function() {
6848
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6849
+ };
6850
+
6851
+
6852
+ /** @param {number} value */
6853
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.prototype.setYearexpiry = function(value) {
6854
+ jspb.Message.setProto3IntField(this, 3, value);
6855
+ };
6856
+
6857
+
6858
+ /**
6859
+ * optional string nickname = 4;
6860
+ * @return {string}
6861
+ */
6862
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.prototype.getNickname = function() {
6863
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6864
+ };
6865
+
6866
+
6867
+ /** @param {string} value */
6868
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.prototype.setNickname = function(value) {
6869
+ jspb.Message.setProto3StringField(this, 4, value);
6643
6870
  };
6644
6871
 
6645
6872
 
@@ -6654,12 +6881,12 @@ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.has
6654
6881
  * @extends {jspb.Message}
6655
6882
  * @constructor
6656
6883
  */
6657
- proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest = function(opt_data) {
6884
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest = function(opt_data) {
6658
6885
  jspb.Message.initialize(this, opt_data, 0, -1, null, null);
6659
6886
  };
6660
- goog.inherits(proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest, jspb.Message);
6887
+ goog.inherits(proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest, jspb.Message);
6661
6888
  if (goog.DEBUG && !COMPILED) {
6662
- proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.displayName = 'proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest';
6889
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.displayName = 'proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest';
6663
6890
  }
6664
6891
 
6665
6892
 
@@ -6674,9 +6901,168 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
6674
6901
  * for transitional soy proto support: http://goto/soy-param-migration
6675
6902
  * @return {!Object}
6676
6903
  */
6677
- proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.toObject = function(opt_includeInstance) {
6678
- return proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.toObject(opt_includeInstance, this);
6679
- };
6904
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.toObject = function(opt_includeInstance) {
6905
+ return proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.toObject(opt_includeInstance, this);
6906
+ };
6907
+
6908
+
6909
+ /**
6910
+ * Static version of the {@see toObject} method.
6911
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
6912
+ * instance for transitional soy proto support:
6913
+ * http://goto/soy-param-migration
6914
+ * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} msg The msg instance to transform.
6915
+ * @return {!Object}
6916
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6917
+ */
6918
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.toObject = function(includeInstance, msg) {
6919
+ var f, obj = {
6920
+ data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.toObject(includeInstance, f)
6921
+ };
6922
+
6923
+ if (includeInstance) {
6924
+ obj.$jspbMessageInstance = msg;
6925
+ }
6926
+ return obj;
6927
+ };
6928
+ }
6929
+
6930
+
6931
+ /**
6932
+ * Deserializes binary data (in protobuf wire format).
6933
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6934
+ * @return {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest}
6935
+ */
6936
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.deserializeBinary = function(bytes) {
6937
+ var reader = new jspb.BinaryReader(bytes);
6938
+ var msg = new proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest;
6939
+ return proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.deserializeBinaryFromReader(msg, reader);
6940
+ };
6941
+
6942
+
6943
+ /**
6944
+ * Deserializes binary data (in protobuf wire format) from the
6945
+ * given reader into the given message object.
6946
+ * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} msg The message object to deserialize into.
6947
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6948
+ * @return {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest}
6949
+ */
6950
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.deserializeBinaryFromReader = function(msg, reader) {
6951
+ while (reader.nextField()) {
6952
+ if (reader.isEndGroup()) {
6953
+ break;
6954
+ }
6955
+ var field = reader.getFieldNumber();
6956
+ switch (field) {
6957
+ case 1:
6958
+ var value = new proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest;
6959
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.deserializeBinaryFromReader);
6960
+ msg.setData(value);
6961
+ break;
6962
+ default:
6963
+ reader.skipField();
6964
+ break;
6965
+ }
6966
+ }
6967
+ return msg;
6968
+ };
6969
+
6970
+
6971
+ /**
6972
+ * Serializes the message to binary data (in protobuf wire format).
6973
+ * @return {!Uint8Array}
6974
+ */
6975
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.serializeBinary = function() {
6976
+ var writer = new jspb.BinaryWriter();
6977
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.serializeBinaryToWriter(this, writer);
6978
+ return writer.getResultBuffer();
6979
+ };
6980
+
6981
+
6982
+ /**
6983
+ * Serializes the given message to binary data (in protobuf wire
6984
+ * format), writing to the given BinaryWriter.
6985
+ * @param {!proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest} message
6986
+ * @param {!jspb.BinaryWriter} writer
6987
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6988
+ */
6989
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.serializeBinaryToWriter = function(message, writer) {
6990
+ var f = undefined;
6991
+ f = message.getData();
6992
+ if (f != null) {
6993
+ writer.writeMessage(
6994
+ 1,
6995
+ f,
6996
+ proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest.serializeBinaryToWriter
6997
+ );
6998
+ }
6999
+ };
7000
+
7001
+
7002
+ /**
7003
+ * optional CreditCardDetailsUpdateRequest data = 1;
7004
+ * @return {?proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest}
7005
+ */
7006
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.getData = function() {
7007
+ return /** @type{?proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest} */ (
7008
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest, 1));
7009
+ };
7010
+
7011
+
7012
+ /** @param {?proto.sniippaymentmethodsserviceapi.CreditCardDetailsUpdateRequest|undefined} value */
7013
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.setData = function(value) {
7014
+ jspb.Message.setWrapperField(this, 1, value);
7015
+ };
7016
+
7017
+
7018
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.clearData = function() {
7019
+ this.setData(undefined);
7020
+ };
7021
+
7022
+
7023
+ /**
7024
+ * Returns whether this field is set.
7025
+ * @return {!boolean}
7026
+ */
7027
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCardDetailsRequest.prototype.hasData = function() {
7028
+ return jspb.Message.getField(this, 1) != null;
7029
+ };
7030
+
7031
+
7032
+
7033
+ /**
7034
+ * Generated by JsPbCodeGenerator.
7035
+ * @param {Array=} opt_data Optional initial data array, typically from a
7036
+ * server response, or constructed directly in Javascript. The array is used
7037
+ * in place and becomes part of the constructed object. It is not cloned.
7038
+ * If no data is provided, the constructed object will be empty, but still
7039
+ * valid.
7040
+ * @extends {jspb.Message}
7041
+ * @constructor
7042
+ */
7043
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest = function(opt_data) {
7044
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7045
+ };
7046
+ goog.inherits(proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest, jspb.Message);
7047
+ if (goog.DEBUG && !COMPILED) {
7048
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.displayName = 'proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest';
7049
+ }
7050
+
7051
+
7052
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7053
+ /**
7054
+ * Creates an object representation of this proto suitable for use in Soy templates.
7055
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7056
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7057
+ * For the list of reserved names please see:
7058
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
7059
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
7060
+ * for transitional soy proto support: http://goto/soy-param-migration
7061
+ * @return {!Object}
7062
+ */
7063
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.toObject = function(opt_includeInstance) {
7064
+ return proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.toObject(opt_includeInstance, this);
7065
+ };
6680
7066
 
6681
7067
 
6682
7068
  /**
@@ -6690,7 +7076,11 @@ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.toObjec
6690
7076
  */
6691
7077
  proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.toObject = function(includeInstance, msg) {
6692
7078
  var f, obj = {
6693
- data: (f = msg.getData()) && proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject(includeInstance, f)
7079
+ paymentmethodid: jspb.Message.getFieldWithDefault(msg, 1, 0),
7080
+ paymenttype: jspb.Message.getFieldWithDefault(msg, 2, ""),
7081
+ maskedcreditcard: (f = msg.getMaskedcreditcard()) && proto.sniippaymentmethodsserviceapi.UpdateCreditCard.toObject(includeInstance, f),
7082
+ bankaccount: (f = msg.getBankaccount()) && proto.sniippaymentmethodsserviceapi.BankAccount.toObject(includeInstance, f),
7083
+ accesstoken: jspb.Message.getFieldWithDefault(msg, 5, "")
6694
7084
  };
6695
7085
 
6696
7086
  if (includeInstance) {
@@ -6728,9 +7118,26 @@ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.deserializeBinary
6728
7118
  var field = reader.getFieldNumber();
6729
7119
  switch (field) {
6730
7120
  case 1:
6731
- var value = new proto.sniippaymentmethodsserviceapi.PaymentMethod;
6732
- reader.readMessage(value,proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader);
6733
- msg.setData(value);
7121
+ var value = /** @type {number} */ (reader.readInt64());
7122
+ msg.setPaymentmethodid(value);
7123
+ break;
7124
+ case 2:
7125
+ var value = /** @type {string} */ (reader.readString());
7126
+ msg.setPaymenttype(value);
7127
+ break;
7128
+ case 3:
7129
+ var value = new proto.sniippaymentmethodsserviceapi.UpdateCreditCard;
7130
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.UpdateCreditCard.deserializeBinaryFromReader);
7131
+ msg.setMaskedcreditcard(value);
7132
+ break;
7133
+ case 4:
7134
+ var value = new proto.sniippaymentmethodsserviceapi.BankAccount;
7135
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.BankAccount.deserializeBinaryFromReader);
7136
+ msg.setBankaccount(value);
7137
+ break;
7138
+ case 5:
7139
+ var value = /** @type {string} */ (reader.readString());
7140
+ msg.setAccesstoken(value);
6734
7141
  break;
6735
7142
  default:
6736
7143
  reader.skipField();
@@ -6761,35 +7168,94 @@ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.seriali
6761
7168
  */
6762
7169
  proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.serializeBinaryToWriter = function(message, writer) {
6763
7170
  var f = undefined;
6764
- f = message.getData();
7171
+ f = message.getPaymentmethodid();
7172
+ if (f !== 0) {
7173
+ writer.writeInt64(
7174
+ 1,
7175
+ f
7176
+ );
7177
+ }
7178
+ f = message.getPaymenttype();
7179
+ if (f.length > 0) {
7180
+ writer.writeString(
7181
+ 2,
7182
+ f
7183
+ );
7184
+ }
7185
+ f = message.getMaskedcreditcard();
6765
7186
  if (f != null) {
6766
7187
  writer.writeMessage(
6767
- 1,
7188
+ 3,
6768
7189
  f,
6769
- proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter
7190
+ proto.sniippaymentmethodsserviceapi.UpdateCreditCard.serializeBinaryToWriter
7191
+ );
7192
+ }
7193
+ f = message.getBankaccount();
7194
+ if (f != null) {
7195
+ writer.writeMessage(
7196
+ 4,
7197
+ f,
7198
+ proto.sniippaymentmethodsserviceapi.BankAccount.serializeBinaryToWriter
7199
+ );
7200
+ }
7201
+ f = message.getAccesstoken();
7202
+ if (f.length > 0) {
7203
+ writer.writeString(
7204
+ 5,
7205
+ f
6770
7206
  );
6771
7207
  }
6772
7208
  };
6773
7209
 
6774
7210
 
6775
7211
  /**
6776
- * optional PaymentMethod data = 1;
6777
- * @return {?proto.sniippaymentmethodsserviceapi.PaymentMethod}
7212
+ * optional int64 paymentMethodId = 1;
7213
+ * @return {number}
6778
7214
  */
6779
- proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.getData = function() {
6780
- return /** @type{?proto.sniippaymentmethodsserviceapi.PaymentMethod} */ (
6781
- jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.PaymentMethod, 1));
7215
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.getPaymentmethodid = function() {
7216
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6782
7217
  };
6783
7218
 
6784
7219
 
6785
- /** @param {?proto.sniippaymentmethodsserviceapi.PaymentMethod|undefined} value */
6786
- proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.setData = function(value) {
6787
- jspb.Message.setWrapperField(this, 1, value);
7220
+ /** @param {number} value */
7221
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.setPaymentmethodid = function(value) {
7222
+ jspb.Message.setProto3IntField(this, 1, value);
6788
7223
  };
6789
7224
 
6790
7225
 
6791
- proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.clearData = function() {
6792
- this.setData(undefined);
7226
+ /**
7227
+ * optional string paymentType = 2;
7228
+ * @return {string}
7229
+ */
7230
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.getPaymenttype = function() {
7231
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7232
+ };
7233
+
7234
+
7235
+ /** @param {string} value */
7236
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.setPaymenttype = function(value) {
7237
+ jspb.Message.setProto3StringField(this, 2, value);
7238
+ };
7239
+
7240
+
7241
+ /**
7242
+ * optional UpdateCreditCard maskedCreditCard = 3;
7243
+ * @return {?proto.sniippaymentmethodsserviceapi.UpdateCreditCard}
7244
+ */
7245
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.getMaskedcreditcard = function() {
7246
+ return /** @type{?proto.sniippaymentmethodsserviceapi.UpdateCreditCard} */ (
7247
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.UpdateCreditCard, 3));
7248
+ };
7249
+
7250
+
7251
+ /** @param {?proto.sniippaymentmethodsserviceapi.UpdateCreditCard|undefined} value */
7252
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.setMaskedcreditcard = function(value) {
7253
+ jspb.Message.setWrapperField(this, 3, value);
7254
+ };
7255
+
7256
+
7257
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.clearMaskedcreditcard = function() {
7258
+ this.setMaskedcreditcard(undefined);
6793
7259
  };
6794
7260
 
6795
7261
 
@@ -6797,8 +7263,408 @@ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.clearDa
6797
7263
  * Returns whether this field is set.
6798
7264
  * @return {!boolean}
6799
7265
  */
6800
- proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.hasData = function() {
6801
- return jspb.Message.getField(this, 1) != null;
7266
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.hasMaskedcreditcard = function() {
7267
+ return jspb.Message.getField(this, 3) != null;
7268
+ };
7269
+
7270
+
7271
+ /**
7272
+ * optional BankAccount bankAccount = 4;
7273
+ * @return {?proto.sniippaymentmethodsserviceapi.BankAccount}
7274
+ */
7275
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.getBankaccount = function() {
7276
+ return /** @type{?proto.sniippaymentmethodsserviceapi.BankAccount} */ (
7277
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.BankAccount, 4));
7278
+ };
7279
+
7280
+
7281
+ /** @param {?proto.sniippaymentmethodsserviceapi.BankAccount|undefined} value */
7282
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.setBankaccount = function(value) {
7283
+ jspb.Message.setWrapperField(this, 4, value);
7284
+ };
7285
+
7286
+
7287
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.clearBankaccount = function() {
7288
+ this.setBankaccount(undefined);
7289
+ };
7290
+
7291
+
7292
+ /**
7293
+ * Returns whether this field is set.
7294
+ * @return {!boolean}
7295
+ */
7296
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.hasBankaccount = function() {
7297
+ return jspb.Message.getField(this, 4) != null;
7298
+ };
7299
+
7300
+
7301
+ /**
7302
+ * optional string accessToken = 5;
7303
+ * @return {string}
7304
+ */
7305
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.getAccesstoken = function() {
7306
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
7307
+ };
7308
+
7309
+
7310
+ /** @param {string} value */
7311
+ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.setAccesstoken = function(value) {
7312
+ jspb.Message.setProto3StringField(this, 5, value);
7313
+ };
7314
+
7315
+
7316
+
7317
+ /**
7318
+ * Generated by JsPbCodeGenerator.
7319
+ * @param {Array=} opt_data Optional initial data array, typically from a
7320
+ * server response, or constructed directly in Javascript. The array is used
7321
+ * in place and becomes part of the constructed object. It is not cloned.
7322
+ * If no data is provided, the constructed object will be empty, but still
7323
+ * valid.
7324
+ * @extends {jspb.Message}
7325
+ * @constructor
7326
+ */
7327
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest = function(opt_data) {
7328
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7329
+ };
7330
+ goog.inherits(proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest, jspb.Message);
7331
+ if (goog.DEBUG && !COMPILED) {
7332
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.displayName = 'proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest';
7333
+ }
7334
+
7335
+
7336
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7337
+ /**
7338
+ * Creates an object representation of this proto suitable for use in Soy templates.
7339
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7340
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7341
+ * For the list of reserved names please see:
7342
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
7343
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
7344
+ * for transitional soy proto support: http://goto/soy-param-migration
7345
+ * @return {!Object}
7346
+ */
7347
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.prototype.toObject = function(opt_includeInstance) {
7348
+ return proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.toObject(opt_includeInstance, this);
7349
+ };
7350
+
7351
+
7352
+ /**
7353
+ * Static version of the {@see toObject} method.
7354
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
7355
+ * instance for transitional soy proto support:
7356
+ * http://goto/soy-param-migration
7357
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest} msg The msg instance to transform.
7358
+ * @return {!Object}
7359
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7360
+ */
7361
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.toObject = function(includeInstance, msg) {
7362
+ var f, obj = {
7363
+ userid: jspb.Message.getFieldWithDefault(msg, 1, 0),
7364
+ paymentmethodid: jspb.Message.getFieldWithDefault(msg, 2, 0)
7365
+ };
7366
+
7367
+ if (includeInstance) {
7368
+ obj.$jspbMessageInstance = msg;
7369
+ }
7370
+ return obj;
7371
+ };
7372
+ }
7373
+
7374
+
7375
+ /**
7376
+ * Deserializes binary data (in protobuf wire format).
7377
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7378
+ * @return {!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest}
7379
+ */
7380
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.deserializeBinary = function(bytes) {
7381
+ var reader = new jspb.BinaryReader(bytes);
7382
+ var msg = new proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest;
7383
+ return proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.deserializeBinaryFromReader(msg, reader);
7384
+ };
7385
+
7386
+
7387
+ /**
7388
+ * Deserializes binary data (in protobuf wire format) from the
7389
+ * given reader into the given message object.
7390
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest} msg The message object to deserialize into.
7391
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7392
+ * @return {!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest}
7393
+ */
7394
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.deserializeBinaryFromReader = function(msg, reader) {
7395
+ while (reader.nextField()) {
7396
+ if (reader.isEndGroup()) {
7397
+ break;
7398
+ }
7399
+ var field = reader.getFieldNumber();
7400
+ switch (field) {
7401
+ case 1:
7402
+ var value = /** @type {number} */ (reader.readInt64());
7403
+ msg.setUserid(value);
7404
+ break;
7405
+ case 2:
7406
+ var value = /** @type {number} */ (reader.readInt64());
7407
+ msg.setPaymentmethodid(value);
7408
+ break;
7409
+ default:
7410
+ reader.skipField();
7411
+ break;
7412
+ }
7413
+ }
7414
+ return msg;
7415
+ };
7416
+
7417
+
7418
+ /**
7419
+ * Serializes the message to binary data (in protobuf wire format).
7420
+ * @return {!Uint8Array}
7421
+ */
7422
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.prototype.serializeBinary = function() {
7423
+ var writer = new jspb.BinaryWriter();
7424
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.serializeBinaryToWriter(this, writer);
7425
+ return writer.getResultBuffer();
7426
+ };
7427
+
7428
+
7429
+ /**
7430
+ * Serializes the given message to binary data (in protobuf wire
7431
+ * format), writing to the given BinaryWriter.
7432
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest} message
7433
+ * @param {!jspb.BinaryWriter} writer
7434
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7435
+ */
7436
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.serializeBinaryToWriter = function(message, writer) {
7437
+ var f = undefined;
7438
+ f = message.getUserid();
7439
+ if (f !== 0) {
7440
+ writer.writeInt64(
7441
+ 1,
7442
+ f
7443
+ );
7444
+ }
7445
+ f = message.getPaymentmethodid();
7446
+ if (f !== 0) {
7447
+ writer.writeInt64(
7448
+ 2,
7449
+ f
7450
+ );
7451
+ }
7452
+ };
7453
+
7454
+
7455
+ /**
7456
+ * optional int64 userId = 1;
7457
+ * @return {number}
7458
+ */
7459
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.prototype.getUserid = function() {
7460
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7461
+ };
7462
+
7463
+
7464
+ /** @param {number} value */
7465
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.prototype.setUserid = function(value) {
7466
+ jspb.Message.setProto3IntField(this, 1, value);
7467
+ };
7468
+
7469
+
7470
+ /**
7471
+ * optional int64 paymentMethodId = 2;
7472
+ * @return {number}
7473
+ */
7474
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.prototype.getPaymentmethodid = function() {
7475
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7476
+ };
7477
+
7478
+
7479
+ /** @param {number} value */
7480
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsRequest.prototype.setPaymentmethodid = function(value) {
7481
+ jspb.Message.setProto3IntField(this, 2, value);
7482
+ };
7483
+
7484
+
7485
+
7486
+ /**
7487
+ * Generated by JsPbCodeGenerator.
7488
+ * @param {Array=} opt_data Optional initial data array, typically from a
7489
+ * server response, or constructed directly in Javascript. The array is used
7490
+ * in place and becomes part of the constructed object. It is not cloned.
7491
+ * If no data is provided, the constructed object will be empty, but still
7492
+ * valid.
7493
+ * @extends {jspb.Message}
7494
+ * @constructor
7495
+ */
7496
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse = function(opt_data) {
7497
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
7498
+ };
7499
+ goog.inherits(proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse, jspb.Message);
7500
+ if (goog.DEBUG && !COMPILED) {
7501
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.displayName = 'proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse';
7502
+ }
7503
+
7504
+
7505
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7506
+ /**
7507
+ * Creates an object representation of this proto suitable for use in Soy templates.
7508
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7509
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7510
+ * For the list of reserved names please see:
7511
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
7512
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
7513
+ * for transitional soy proto support: http://goto/soy-param-migration
7514
+ * @return {!Object}
7515
+ */
7516
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.prototype.toObject = function(opt_includeInstance) {
7517
+ return proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.toObject(opt_includeInstance, this);
7518
+ };
7519
+
7520
+
7521
+ /**
7522
+ * Static version of the {@see toObject} method.
7523
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
7524
+ * instance for transitional soy proto support:
7525
+ * http://goto/soy-param-migration
7526
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse} msg The msg instance to transform.
7527
+ * @return {!Object}
7528
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7529
+ */
7530
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.toObject = function(includeInstance, msg) {
7531
+ var f, obj = {
7532
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
7533
+ zenithtoken: jspb.Message.getFieldWithDefault(msg, 2, "")
7534
+ };
7535
+
7536
+ if (includeInstance) {
7537
+ obj.$jspbMessageInstance = msg;
7538
+ }
7539
+ return obj;
7540
+ };
7541
+ }
7542
+
7543
+
7544
+ /**
7545
+ * Deserializes binary data (in protobuf wire format).
7546
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7547
+ * @return {!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse}
7548
+ */
7549
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.deserializeBinary = function(bytes) {
7550
+ var reader = new jspb.BinaryReader(bytes);
7551
+ var msg = new proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse;
7552
+ return proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.deserializeBinaryFromReader(msg, reader);
7553
+ };
7554
+
7555
+
7556
+ /**
7557
+ * Deserializes binary data (in protobuf wire format) from the
7558
+ * given reader into the given message object.
7559
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse} msg The message object to deserialize into.
7560
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7561
+ * @return {!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse}
7562
+ */
7563
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.deserializeBinaryFromReader = function(msg, reader) {
7564
+ while (reader.nextField()) {
7565
+ if (reader.isEndGroup()) {
7566
+ break;
7567
+ }
7568
+ var field = reader.getFieldNumber();
7569
+ switch (field) {
7570
+ case 1:
7571
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
7572
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
7573
+ msg.setResponsecode(value);
7574
+ break;
7575
+ case 2:
7576
+ var value = /** @type {string} */ (reader.readString());
7577
+ msg.setZenithtoken(value);
7578
+ break;
7579
+ default:
7580
+ reader.skipField();
7581
+ break;
7582
+ }
7583
+ }
7584
+ return msg;
7585
+ };
7586
+
7587
+
7588
+ /**
7589
+ * Serializes the message to binary data (in protobuf wire format).
7590
+ * @return {!Uint8Array}
7591
+ */
7592
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.prototype.serializeBinary = function() {
7593
+ var writer = new jspb.BinaryWriter();
7594
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.serializeBinaryToWriter(this, writer);
7595
+ return writer.getResultBuffer();
7596
+ };
7597
+
7598
+
7599
+ /**
7600
+ * Serializes the given message to binary data (in protobuf wire
7601
+ * format), writing to the given BinaryWriter.
7602
+ * @param {!proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse} message
7603
+ * @param {!jspb.BinaryWriter} writer
7604
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7605
+ */
7606
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.serializeBinaryToWriter = function(message, writer) {
7607
+ var f = undefined;
7608
+ f = message.getResponsecode();
7609
+ if (f != null) {
7610
+ writer.writeMessage(
7611
+ 1,
7612
+ f,
7613
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
7614
+ );
7615
+ }
7616
+ f = message.getZenithtoken();
7617
+ if (f.length > 0) {
7618
+ writer.writeString(
7619
+ 2,
7620
+ f
7621
+ );
7622
+ }
7623
+ };
7624
+
7625
+
7626
+ /**
7627
+ * optional ResponseCode responseCode = 1;
7628
+ * @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
7629
+ */
7630
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.prototype.getResponsecode = function() {
7631
+ return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
7632
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
7633
+ };
7634
+
7635
+
7636
+ /** @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
7637
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.prototype.setResponsecode = function(value) {
7638
+ jspb.Message.setWrapperField(this, 1, value);
7639
+ };
7640
+
7641
+
7642
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.prototype.clearResponsecode = function() {
7643
+ this.setResponsecode(undefined);
7644
+ };
7645
+
7646
+
7647
+ /**
7648
+ * Returns whether this field is set.
7649
+ * @return {!boolean}
7650
+ */
7651
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.prototype.hasResponsecode = function() {
7652
+ return jspb.Message.getField(this, 1) != null;
7653
+ };
7654
+
7655
+
7656
+ /**
7657
+ * optional string zenithToken = 2;
7658
+ * @return {string}
7659
+ */
7660
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.prototype.getZenithtoken = function() {
7661
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7662
+ };
7663
+
7664
+
7665
+ /** @param {string} value */
7666
+ proto.sniippaymentmethodsserviceapi.ZenithPaymentDetailsResponse.prototype.setZenithtoken = function(value) {
7667
+ jspb.Message.setProto3StringField(this, 2, value);
6802
7668
  };
6803
7669
 
6804
7670
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/payment-methods-client-grpcweb",
3
- "version": "0.2.584",
3
+ "version": "0.2.592",
4
4
  "description": "payment-methods-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",