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

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.
@@ -2394,6 +2394,86 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
2394
2394
  };
2395
2395
 
2396
2396
 
2397
+ /**
2398
+ * @const
2399
+ * @type {!grpc.web.MethodDescriptor<
2400
+ * !proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest,
2401
+ * !proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse>}
2402
+ */
2403
+ const methodDescriptor_SniipPaymentMethodsServiceAPIService_ValidatePaymentMethods = new grpc.web.MethodDescriptor(
2404
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/ValidatePaymentMethods',
2405
+ grpc.web.MethodType.UNARY,
2406
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest,
2407
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse,
2408
+ /**
2409
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} request
2410
+ * @return {!Uint8Array}
2411
+ */
2412
+ function(request) {
2413
+ return request.serializeBinary();
2414
+ },
2415
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.deserializeBinary
2416
+ );
2417
+
2418
+
2419
+ /**
2420
+ * @const
2421
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
2422
+ * !proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest,
2423
+ * !proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse>}
2424
+ */
2425
+ const methodInfo_SniipPaymentMethodsServiceAPIService_ValidatePaymentMethods = new grpc.web.AbstractClientBase.MethodInfo(
2426
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse,
2427
+ /**
2428
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} request
2429
+ * @return {!Uint8Array}
2430
+ */
2431
+ function(request) {
2432
+ return request.serializeBinary();
2433
+ },
2434
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.deserializeBinary
2435
+ );
2436
+
2437
+
2438
+ /**
2439
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} request The
2440
+ * request proto
2441
+ * @param {?Object<string, string>} metadata User defined
2442
+ * call metadata
2443
+ * @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse)}
2444
+ * callback The callback function(error, response)
2445
+ * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse>|undefined}
2446
+ * The XHR Node Readable Stream
2447
+ */
2448
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.validatePaymentMethods =
2449
+ function(request, metadata, callback) {
2450
+ return this.client_.rpcCall(this.hostname_ +
2451
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/ValidatePaymentMethods',
2452
+ request,
2453
+ metadata || {},
2454
+ methodDescriptor_SniipPaymentMethodsServiceAPIService_ValidatePaymentMethods,
2455
+ callback);
2456
+ };
2457
+
2458
+
2459
+ /**
2460
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} request The
2461
+ * request proto
2462
+ * @param {?Object<string, string>} metadata User defined
2463
+ * call metadata
2464
+ * @return {!Promise<!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse>}
2465
+ * Promise that resolves to the response
2466
+ */
2467
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.validatePaymentMethods =
2468
+ function(request, metadata) {
2469
+ return this.client_.unaryCall(this.hostname_ +
2470
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/ValidatePaymentMethods',
2471
+ request,
2472
+ metadata || {},
2473
+ methodDescriptor_SniipPaymentMethodsServiceAPIService_ValidatePaymentMethods);
2474
+ };
2475
+
2476
+
2397
2477
  /**
2398
2478
  * @const
2399
2479
  * @type {!grpc.web.MethodDescriptor<
@@ -78,6 +78,9 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdateCreditCard', null,
78
78
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdateMasterBinLookupOverrideRequest', null, global);
79
79
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodGroupRequest', null, global);
80
80
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest', null, global);
81
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest', null, global);
82
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse', null, global);
83
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse', null, global);
81
84
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.VerifyBankAccountRequest', null, global);
82
85
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.VerifyCreditCardForUserRequest', null, global);
83
86
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.VerifyCreditCardRequest', null, global);
@@ -16623,6 +16626,650 @@ proto.sniippaymentmethodsserviceapi.UpdatePaymentMethodRequest.prototype.hasData
16623
16626
 
16624
16627
 
16625
16628
 
16629
+ /**
16630
+ * Generated by JsPbCodeGenerator.
16631
+ * @param {Array=} opt_data Optional initial data array, typically from a
16632
+ * server response, or constructed directly in Javascript. The array is used
16633
+ * in place and becomes part of the constructed object. It is not cloned.
16634
+ * If no data is provided, the constructed object will be empty, but still
16635
+ * valid.
16636
+ * @extends {jspb.Message}
16637
+ * @constructor
16638
+ */
16639
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest = function(opt_data) {
16640
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.repeatedFields_, null);
16641
+ };
16642
+ goog.inherits(proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest, jspb.Message);
16643
+ if (goog.DEBUG && !COMPILED) {
16644
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.displayName = 'proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest';
16645
+ }
16646
+ /**
16647
+ * List of repeated fields within this message type.
16648
+ * @private {!Array<number>}
16649
+ * @const
16650
+ */
16651
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.repeatedFields_ = [2,3];
16652
+
16653
+
16654
+
16655
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16656
+ /**
16657
+ * Creates an object representation of this proto suitable for use in Soy templates.
16658
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16659
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16660
+ * For the list of reserved names please see:
16661
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
16662
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
16663
+ * for transitional soy proto support: http://goto/soy-param-migration
16664
+ * @return {!Object}
16665
+ */
16666
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.toObject = function(opt_includeInstance) {
16667
+ return proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.toObject(opt_includeInstance, this);
16668
+ };
16669
+
16670
+
16671
+ /**
16672
+ * Static version of the {@see toObject} method.
16673
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
16674
+ * instance for transitional soy proto support:
16675
+ * http://goto/soy-param-migration
16676
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} msg The msg instance to transform.
16677
+ * @return {!Object}
16678
+ */
16679
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.toObject = function(includeInstance, msg) {
16680
+ var f, obj = {
16681
+ userid: msg.getUserid(),
16682
+ paymentmethodidsList: jspb.Message.getField(msg, 2),
16683
+ paymentmethodgroupidsList: jspb.Message.getField(msg, 3)
16684
+ };
16685
+
16686
+ if (includeInstance) {
16687
+ obj.$jspbMessageInstance = msg;
16688
+ }
16689
+ return obj;
16690
+ };
16691
+ }
16692
+
16693
+
16694
+ /**
16695
+ * Deserializes binary data (in protobuf wire format).
16696
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16697
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest}
16698
+ */
16699
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.deserializeBinary = function(bytes) {
16700
+ var reader = new jspb.BinaryReader(bytes);
16701
+ var msg = new proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest;
16702
+ return proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.deserializeBinaryFromReader(msg, reader);
16703
+ };
16704
+
16705
+
16706
+ /**
16707
+ * Deserializes binary data (in protobuf wire format) from the
16708
+ * given reader into the given message object.
16709
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} msg The message object to deserialize into.
16710
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16711
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest}
16712
+ */
16713
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.deserializeBinaryFromReader = function(msg, reader) {
16714
+ while (reader.nextField()) {
16715
+ if (reader.isEndGroup()) {
16716
+ break;
16717
+ }
16718
+ var field = reader.getFieldNumber();
16719
+ switch (field) {
16720
+ case 1:
16721
+ var value = /** @type {number} */ (reader.readInt64());
16722
+ msg.setUserid(value);
16723
+ break;
16724
+ case 2:
16725
+ var value = /** @type {!Array.<number>} */ (reader.readPackedInt64());
16726
+ msg.setPaymentmethodidsList(value);
16727
+ break;
16728
+ case 3:
16729
+ var value = /** @type {!Array.<number>} */ (reader.readPackedInt64());
16730
+ msg.setPaymentmethodgroupidsList(value);
16731
+ break;
16732
+ default:
16733
+ reader.skipField();
16734
+ break;
16735
+ }
16736
+ }
16737
+ return msg;
16738
+ };
16739
+
16740
+
16741
+ /**
16742
+ * Class method variant: serializes the given message to binary data
16743
+ * (in protobuf wire format), writing to the given BinaryWriter.
16744
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} message
16745
+ * @param {!jspb.BinaryWriter} writer
16746
+ */
16747
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.serializeBinaryToWriter = function(message, writer) {
16748
+ message.serializeBinaryToWriter(writer);
16749
+ };
16750
+
16751
+
16752
+ /**
16753
+ * Serializes the message to binary data (in protobuf wire format).
16754
+ * @return {!Uint8Array}
16755
+ */
16756
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.serializeBinary = function() {
16757
+ var writer = new jspb.BinaryWriter();
16758
+ this.serializeBinaryToWriter(writer);
16759
+ return writer.getResultBuffer();
16760
+ };
16761
+
16762
+
16763
+ /**
16764
+ * Serializes the message to binary data (in protobuf wire format),
16765
+ * writing to the given BinaryWriter.
16766
+ * @param {!jspb.BinaryWriter} writer
16767
+ */
16768
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.serializeBinaryToWriter = function (writer) {
16769
+ var f = undefined;
16770
+ f = this.getUserid();
16771
+ if (f !== 0) {
16772
+ writer.writeInt64(
16773
+ 1,
16774
+ f
16775
+ );
16776
+ }
16777
+ f = this.getPaymentmethodidsList();
16778
+ if (f.length > 0) {
16779
+ writer.writePackedInt64(
16780
+ 2,
16781
+ f
16782
+ );
16783
+ }
16784
+ f = this.getPaymentmethodgroupidsList();
16785
+ if (f.length > 0) {
16786
+ writer.writePackedInt64(
16787
+ 3,
16788
+ f
16789
+ );
16790
+ }
16791
+ };
16792
+
16793
+
16794
+ /**
16795
+ * Creates a deep clone of this proto. No data is shared with the original.
16796
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} The clone.
16797
+ */
16798
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.cloneMessage = function() {
16799
+ return /** @type {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest} */ (jspb.Message.cloneMessage(this));
16800
+ };
16801
+
16802
+
16803
+ /**
16804
+ * optional int64 userId = 1;
16805
+ * @return {number}
16806
+ */
16807
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.getUserid = function() {
16808
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
16809
+ };
16810
+
16811
+
16812
+ /** @param {number} value */
16813
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.setUserid = function(value) {
16814
+ jspb.Message.setField(this, 1, value);
16815
+ };
16816
+
16817
+
16818
+ /**
16819
+ * repeated int64 paymentMethodIds = 2;
16820
+ * If you change this array by adding, removing or replacing elements, or if you
16821
+ * replace the array itself, then you must call the setter to update it.
16822
+ * @return {!Array.<number>}
16823
+ */
16824
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.getPaymentmethodidsList = function() {
16825
+ return /** @type {!Array.<number>} */ (jspb.Message.getField(this, 2));
16826
+ };
16827
+
16828
+
16829
+ /** @param {Array.<number>} value */
16830
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.setPaymentmethodidsList = function(value) {
16831
+ jspb.Message.setField(this, 2, value || []);
16832
+ };
16833
+
16834
+
16835
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.clearPaymentmethodidsList = function() {
16836
+ jspb.Message.setField(this, 2, []);
16837
+ };
16838
+
16839
+
16840
+ /**
16841
+ * repeated int64 paymentMethodGroupIds = 3;
16842
+ * If you change this array by adding, removing or replacing elements, or if you
16843
+ * replace the array itself, then you must call the setter to update it.
16844
+ * @return {!Array.<number>}
16845
+ */
16846
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.getPaymentmethodgroupidsList = function() {
16847
+ return /** @type {!Array.<number>} */ (jspb.Message.getField(this, 3));
16848
+ };
16849
+
16850
+
16851
+ /** @param {Array.<number>} value */
16852
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.setPaymentmethodgroupidsList = function(value) {
16853
+ jspb.Message.setField(this, 3, value || []);
16854
+ };
16855
+
16856
+
16857
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsRequest.prototype.clearPaymentmethodgroupidsList = function() {
16858
+ jspb.Message.setField(this, 3, []);
16859
+ };
16860
+
16861
+
16862
+
16863
+ /**
16864
+ * Generated by JsPbCodeGenerator.
16865
+ * @param {Array=} opt_data Optional initial data array, typically from a
16866
+ * server response, or constructed directly in Javascript. The array is used
16867
+ * in place and becomes part of the constructed object. It is not cloned.
16868
+ * If no data is provided, the constructed object will be empty, but still
16869
+ * valid.
16870
+ * @extends {jspb.Message}
16871
+ * @constructor
16872
+ */
16873
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse = function(opt_data) {
16874
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.repeatedFields_, null);
16875
+ };
16876
+ goog.inherits(proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse, jspb.Message);
16877
+ if (goog.DEBUG && !COMPILED) {
16878
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.displayName = 'proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse';
16879
+ }
16880
+ /**
16881
+ * List of repeated fields within this message type.
16882
+ * @private {!Array<number>}
16883
+ * @const
16884
+ */
16885
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.repeatedFields_ = [2];
16886
+
16887
+
16888
+
16889
+ if (jspb.Message.GENERATE_TO_OBJECT) {
16890
+ /**
16891
+ * Creates an object representation of this proto suitable for use in Soy templates.
16892
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
16893
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
16894
+ * For the list of reserved names please see:
16895
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
16896
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
16897
+ * for transitional soy proto support: http://goto/soy-param-migration
16898
+ * @return {!Object}
16899
+ */
16900
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.prototype.toObject = function(opt_includeInstance) {
16901
+ return proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.toObject(opt_includeInstance, this);
16902
+ };
16903
+
16904
+
16905
+ /**
16906
+ * Static version of the {@see toObject} method.
16907
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
16908
+ * instance for transitional soy proto support:
16909
+ * http://goto/soy-param-migration
16910
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse} msg The msg instance to transform.
16911
+ * @return {!Object}
16912
+ */
16913
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.toObject = function(includeInstance, msg) {
16914
+ var f, obj = {
16915
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
16916
+ paymentmethodsList: jspb.Message.toObjectList(msg.getPaymentmethodsList(),
16917
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.toObject, includeInstance)
16918
+ };
16919
+
16920
+ if (includeInstance) {
16921
+ obj.$jspbMessageInstance = msg;
16922
+ }
16923
+ return obj;
16924
+ };
16925
+ }
16926
+
16927
+
16928
+ /**
16929
+ * Deserializes binary data (in protobuf wire format).
16930
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
16931
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse}
16932
+ */
16933
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.deserializeBinary = function(bytes) {
16934
+ var reader = new jspb.BinaryReader(bytes);
16935
+ var msg = new proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse;
16936
+ return proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.deserializeBinaryFromReader(msg, reader);
16937
+ };
16938
+
16939
+
16940
+ /**
16941
+ * Deserializes binary data (in protobuf wire format) from the
16942
+ * given reader into the given message object.
16943
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse} msg The message object to deserialize into.
16944
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
16945
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse}
16946
+ */
16947
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.deserializeBinaryFromReader = function(msg, reader) {
16948
+ while (reader.nextField()) {
16949
+ if (reader.isEndGroup()) {
16950
+ break;
16951
+ }
16952
+ var field = reader.getFieldNumber();
16953
+ switch (field) {
16954
+ case 1:
16955
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
16956
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
16957
+ msg.setResponsecode(value);
16958
+ break;
16959
+ case 2:
16960
+ var value = new proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse;
16961
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.deserializeBinaryFromReader);
16962
+ msg.getPaymentmethodsList().push(value);
16963
+ msg.setPaymentmethodsList(msg.getPaymentmethodsList());
16964
+ break;
16965
+ default:
16966
+ reader.skipField();
16967
+ break;
16968
+ }
16969
+ }
16970
+ return msg;
16971
+ };
16972
+
16973
+
16974
+ /**
16975
+ * Class method variant: serializes the given message to binary data
16976
+ * (in protobuf wire format), writing to the given BinaryWriter.
16977
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse} message
16978
+ * @param {!jspb.BinaryWriter} writer
16979
+ */
16980
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.serializeBinaryToWriter = function(message, writer) {
16981
+ message.serializeBinaryToWriter(writer);
16982
+ };
16983
+
16984
+
16985
+ /**
16986
+ * Serializes the message to binary data (in protobuf wire format).
16987
+ * @return {!Uint8Array}
16988
+ */
16989
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.prototype.serializeBinary = function() {
16990
+ var writer = new jspb.BinaryWriter();
16991
+ this.serializeBinaryToWriter(writer);
16992
+ return writer.getResultBuffer();
16993
+ };
16994
+
16995
+
16996
+ /**
16997
+ * Serializes the message to binary data (in protobuf wire format),
16998
+ * writing to the given BinaryWriter.
16999
+ * @param {!jspb.BinaryWriter} writer
17000
+ */
17001
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.prototype.serializeBinaryToWriter = function (writer) {
17002
+ var f = undefined;
17003
+ f = this.getResponsecode();
17004
+ if (f != null) {
17005
+ writer.writeMessage(
17006
+ 1,
17007
+ f,
17008
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
17009
+ );
17010
+ }
17011
+ f = this.getPaymentmethodsList();
17012
+ if (f.length > 0) {
17013
+ writer.writeRepeatedMessage(
17014
+ 2,
17015
+ f,
17016
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.serializeBinaryToWriter
17017
+ );
17018
+ }
17019
+ };
17020
+
17021
+
17022
+ /**
17023
+ * Creates a deep clone of this proto. No data is shared with the original.
17024
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse} The clone.
17025
+ */
17026
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.prototype.cloneMessage = function() {
17027
+ return /** @type {!proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse} */ (jspb.Message.cloneMessage(this));
17028
+ };
17029
+
17030
+
17031
+ /**
17032
+ * optional ResponseCode responseCode = 1;
17033
+ * @return {proto.sniippaymentmethodsserviceapi.ResponseCode}
17034
+ */
17035
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.prototype.getResponsecode = function() {
17036
+ return /** @type{proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
17037
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
17038
+ };
17039
+
17040
+
17041
+ /** @param {proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
17042
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.prototype.setResponsecode = function(value) {
17043
+ jspb.Message.setWrapperField(this, 1, value);
17044
+ };
17045
+
17046
+
17047
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.prototype.clearResponsecode = function() {
17048
+ this.setResponsecode(undefined);
17049
+ };
17050
+
17051
+
17052
+ /**
17053
+ * Returns whether this field is set.
17054
+ * @return{!boolean}
17055
+ */
17056
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.prototype.hasResponsecode = function() {
17057
+ return jspb.Message.getField(this, 1) != null;
17058
+ };
17059
+
17060
+
17061
+ /**
17062
+ * repeated ValidatedPaymentMethodsResponse paymentMethods = 2;
17063
+ * If you change this array by adding, removing or replacing elements, or if you
17064
+ * replace the array itself, then you must call the setter to update it.
17065
+ * @return {!Array.<!proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse>}
17066
+ */
17067
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.prototype.getPaymentmethodsList = function() {
17068
+ return /** @type{!Array.<!proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse>} */ (
17069
+ jspb.Message.getRepeatedWrapperField(this, proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse, 2));
17070
+ };
17071
+
17072
+
17073
+ /** @param {Array.<!proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse>} value */
17074
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.prototype.setPaymentmethodsList = function(value) {
17075
+ jspb.Message.setRepeatedWrapperField(this, 2, value);
17076
+ };
17077
+
17078
+
17079
+ proto.sniippaymentmethodsserviceapi.ValidatePaymentMethodsResponse.prototype.clearPaymentmethodsList = function() {
17080
+ this.setPaymentmethodsList([]);
17081
+ };
17082
+
17083
+
17084
+
17085
+ /**
17086
+ * Generated by JsPbCodeGenerator.
17087
+ * @param {Array=} opt_data Optional initial data array, typically from a
17088
+ * server response, or constructed directly in Javascript. The array is used
17089
+ * in place and becomes part of the constructed object. It is not cloned.
17090
+ * If no data is provided, the constructed object will be empty, but still
17091
+ * valid.
17092
+ * @extends {jspb.Message}
17093
+ * @constructor
17094
+ */
17095
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse = function(opt_data) {
17096
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
17097
+ };
17098
+ goog.inherits(proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse, jspb.Message);
17099
+ if (goog.DEBUG && !COMPILED) {
17100
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.displayName = 'proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse';
17101
+ }
17102
+
17103
+
17104
+ if (jspb.Message.GENERATE_TO_OBJECT) {
17105
+ /**
17106
+ * Creates an object representation of this proto suitable for use in Soy templates.
17107
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
17108
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
17109
+ * For the list of reserved names please see:
17110
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
17111
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
17112
+ * for transitional soy proto support: http://goto/soy-param-migration
17113
+ * @return {!Object}
17114
+ */
17115
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.prototype.toObject = function(opt_includeInstance) {
17116
+ return proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.toObject(opt_includeInstance, this);
17117
+ };
17118
+
17119
+
17120
+ /**
17121
+ * Static version of the {@see toObject} method.
17122
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
17123
+ * instance for transitional soy proto support:
17124
+ * http://goto/soy-param-migration
17125
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse} msg The msg instance to transform.
17126
+ * @return {!Object}
17127
+ */
17128
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.toObject = function(includeInstance, msg) {
17129
+ var f, obj = {
17130
+ paymentmethodid: msg.getPaymentmethodid(),
17131
+ accepted: msg.getAccepted()
17132
+ };
17133
+
17134
+ if (includeInstance) {
17135
+ obj.$jspbMessageInstance = msg;
17136
+ }
17137
+ return obj;
17138
+ };
17139
+ }
17140
+
17141
+
17142
+ /**
17143
+ * Deserializes binary data (in protobuf wire format).
17144
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
17145
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse}
17146
+ */
17147
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.deserializeBinary = function(bytes) {
17148
+ var reader = new jspb.BinaryReader(bytes);
17149
+ var msg = new proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse;
17150
+ return proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.deserializeBinaryFromReader(msg, reader);
17151
+ };
17152
+
17153
+
17154
+ /**
17155
+ * Deserializes binary data (in protobuf wire format) from the
17156
+ * given reader into the given message object.
17157
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse} msg The message object to deserialize into.
17158
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
17159
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse}
17160
+ */
17161
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.deserializeBinaryFromReader = function(msg, reader) {
17162
+ while (reader.nextField()) {
17163
+ if (reader.isEndGroup()) {
17164
+ break;
17165
+ }
17166
+ var field = reader.getFieldNumber();
17167
+ switch (field) {
17168
+ case 1:
17169
+ var value = /** @type {number} */ (reader.readInt64());
17170
+ msg.setPaymentmethodid(value);
17171
+ break;
17172
+ case 2:
17173
+ var value = /** @type {boolean} */ (reader.readBool());
17174
+ msg.setAccepted(value);
17175
+ break;
17176
+ default:
17177
+ reader.skipField();
17178
+ break;
17179
+ }
17180
+ }
17181
+ return msg;
17182
+ };
17183
+
17184
+
17185
+ /**
17186
+ * Class method variant: serializes the given message to binary data
17187
+ * (in protobuf wire format), writing to the given BinaryWriter.
17188
+ * @param {!proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse} message
17189
+ * @param {!jspb.BinaryWriter} writer
17190
+ */
17191
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.serializeBinaryToWriter = function(message, writer) {
17192
+ message.serializeBinaryToWriter(writer);
17193
+ };
17194
+
17195
+
17196
+ /**
17197
+ * Serializes the message to binary data (in protobuf wire format).
17198
+ * @return {!Uint8Array}
17199
+ */
17200
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.prototype.serializeBinary = function() {
17201
+ var writer = new jspb.BinaryWriter();
17202
+ this.serializeBinaryToWriter(writer);
17203
+ return writer.getResultBuffer();
17204
+ };
17205
+
17206
+
17207
+ /**
17208
+ * Serializes the message to binary data (in protobuf wire format),
17209
+ * writing to the given BinaryWriter.
17210
+ * @param {!jspb.BinaryWriter} writer
17211
+ */
17212
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.prototype.serializeBinaryToWriter = function (writer) {
17213
+ var f = undefined;
17214
+ f = this.getPaymentmethodid();
17215
+ if (f !== 0) {
17216
+ writer.writeInt64(
17217
+ 1,
17218
+ f
17219
+ );
17220
+ }
17221
+ f = this.getAccepted();
17222
+ if (f) {
17223
+ writer.writeBool(
17224
+ 2,
17225
+ f
17226
+ );
17227
+ }
17228
+ };
17229
+
17230
+
17231
+ /**
17232
+ * Creates a deep clone of this proto. No data is shared with the original.
17233
+ * @return {!proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse} The clone.
17234
+ */
17235
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.prototype.cloneMessage = function() {
17236
+ return /** @type {!proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse} */ (jspb.Message.cloneMessage(this));
17237
+ };
17238
+
17239
+
17240
+ /**
17241
+ * optional int64 paymentMethodId = 1;
17242
+ * @return {number}
17243
+ */
17244
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.prototype.getPaymentmethodid = function() {
17245
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
17246
+ };
17247
+
17248
+
17249
+ /** @param {number} value */
17250
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.prototype.setPaymentmethodid = function(value) {
17251
+ jspb.Message.setField(this, 1, value);
17252
+ };
17253
+
17254
+
17255
+ /**
17256
+ * optional bool accepted = 2;
17257
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
17258
+ * You should avoid comparisons like {@code val === true/false} in those cases.
17259
+ * @return {boolean}
17260
+ */
17261
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.prototype.getAccepted = function() {
17262
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 2, false));
17263
+ };
17264
+
17265
+
17266
+ /** @param {boolean} value */
17267
+ proto.sniippaymentmethodsserviceapi.ValidatedPaymentMethodsResponse.prototype.setAccepted = function(value) {
17268
+ jspb.Message.setField(this, 2, value);
17269
+ };
17270
+
17271
+
17272
+
16626
17273
  /**
16627
17274
  * Generated by JsPbCodeGenerator.
16628
17275
  * @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.12.4673",
3
+ "version": "22.13.4699",
4
4
  "description": "payment-methods-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",