@sniipwebmaster/payment-methods-client-grpcweb 26.10.9352 → 26.10.9370

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.
@@ -200,6 +200,67 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
200
200
  };
201
201
 
202
202
 
203
+ /**
204
+ * @const
205
+ * @type {!grpc.web.MethodDescriptor<
206
+ * !proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest,
207
+ * !proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse>}
208
+ */
209
+ const methodDescriptor_SniipPaymentMethodsServiceAPIService_AddGuestPaymentMethod = new grpc.web.MethodDescriptor(
210
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddGuestPaymentMethod',
211
+ grpc.web.MethodType.UNARY,
212
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest,
213
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse,
214
+ /**
215
+ * @param {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} request
216
+ * @return {!Uint8Array}
217
+ */
218
+ function(request) {
219
+ return request.serializeBinary();
220
+ },
221
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.deserializeBinary
222
+ );
223
+
224
+
225
+ /**
226
+ * @param {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} request The
227
+ * request proto
228
+ * @param {?Object<string, string>} metadata User defined
229
+ * call metadata
230
+ * @param {function(?grpc.web.RpcError, ?proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse)}
231
+ * callback The callback function(error, response)
232
+ * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse>|undefined}
233
+ * The XHR Node Readable Stream
234
+ */
235
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.addGuestPaymentMethod =
236
+ function(request, metadata, callback) {
237
+ return this.client_.rpcCall(this.hostname_ +
238
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddGuestPaymentMethod',
239
+ request,
240
+ metadata || {},
241
+ methodDescriptor_SniipPaymentMethodsServiceAPIService_AddGuestPaymentMethod,
242
+ callback);
243
+ };
244
+
245
+
246
+ /**
247
+ * @param {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} request The
248
+ * request proto
249
+ * @param {?Object<string, string>=} metadata User defined
250
+ * call metadata
251
+ * @return {!Promise<!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse>}
252
+ * Promise that resolves to the response
253
+ */
254
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.addGuestPaymentMethod =
255
+ function(request, metadata) {
256
+ return this.client_.unaryCall(this.hostname_ +
257
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddGuestPaymentMethod',
258
+ request,
259
+ metadata || {},
260
+ methodDescriptor_SniipPaymentMethodsServiceAPIService_AddGuestPaymentMethod);
261
+ };
262
+
263
+
203
264
  /**
204
265
  * @const
205
266
  * @type {!grpc.web.MethodDescriptor<
@@ -2335,6 +2396,67 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
2335
2396
  };
2336
2397
 
2337
2398
 
2399
+ /**
2400
+ * @const
2401
+ * @type {!grpc.web.MethodDescriptor<
2402
+ * !proto.google.protobuf.Empty,
2403
+ * !proto.sniippaymentmethodsserviceapi.ResponseCode>}
2404
+ */
2405
+ const methodDescriptor_SniipPaymentMethodsServiceAPIService_PurgeGuestPaymentMethods = new grpc.web.MethodDescriptor(
2406
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/PurgeGuestPaymentMethods',
2407
+ grpc.web.MethodType.UNARY,
2408
+ google_protobuf_empty_pb.Empty,
2409
+ proto.sniippaymentmethodsserviceapi.ResponseCode,
2410
+ /**
2411
+ * @param {!proto.google.protobuf.Empty} request
2412
+ * @return {!Uint8Array}
2413
+ */
2414
+ function(request) {
2415
+ return request.serializeBinary();
2416
+ },
2417
+ proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinary
2418
+ );
2419
+
2420
+
2421
+ /**
2422
+ * @param {!proto.google.protobuf.Empty} request The
2423
+ * request proto
2424
+ * @param {?Object<string, string>} metadata User defined
2425
+ * call metadata
2426
+ * @param {function(?grpc.web.RpcError, ?proto.sniippaymentmethodsserviceapi.ResponseCode)}
2427
+ * callback The callback function(error, response)
2428
+ * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.ResponseCode>|undefined}
2429
+ * The XHR Node Readable Stream
2430
+ */
2431
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.purgeGuestPaymentMethods =
2432
+ function(request, metadata, callback) {
2433
+ return this.client_.rpcCall(this.hostname_ +
2434
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/PurgeGuestPaymentMethods',
2435
+ request,
2436
+ metadata || {},
2437
+ methodDescriptor_SniipPaymentMethodsServiceAPIService_PurgeGuestPaymentMethods,
2438
+ callback);
2439
+ };
2440
+
2441
+
2442
+ /**
2443
+ * @param {!proto.google.protobuf.Empty} request The
2444
+ * request proto
2445
+ * @param {?Object<string, string>=} metadata User defined
2446
+ * call metadata
2447
+ * @return {!Promise<!proto.sniippaymentmethodsserviceapi.ResponseCode>}
2448
+ * Promise that resolves to the response
2449
+ */
2450
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.purgeGuestPaymentMethods =
2451
+ function(request, metadata) {
2452
+ return this.client_.unaryCall(this.hostname_ +
2453
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/PurgeGuestPaymentMethods',
2454
+ request,
2455
+ metadata || {},
2456
+ methodDescriptor_SniipPaymentMethodsServiceAPIService_PurgeGuestPaymentMethods);
2457
+ };
2458
+
2459
+
2338
2460
  /**
2339
2461
  * @const
2340
2462
  * @type {!grpc.web.MethodDescriptor<
@@ -27,6 +27,8 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.ActivateRequest', null, g
27
27
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.Activation', null, global);
28
28
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddClick2PayRequest', null, global);
29
29
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddClick2PayResponse', null, global);
30
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest', null, global);
31
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse', null, global);
30
32
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddPaymentMethod', null, global);
31
33
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest', null, global);
32
34
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.AddZenithTokenRequest', null, global);
@@ -396,6 +398,48 @@ if (goog.DEBUG && !COMPILED) {
396
398
  */
397
399
  proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.displayName = 'proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest';
398
400
  }
401
+ /**
402
+ * Generated by JsPbCodeGenerator.
403
+ * @param {Array=} opt_data Optional initial data array, typically from a
404
+ * server response, or constructed directly in Javascript. The array is used
405
+ * in place and becomes part of the constructed object. It is not cloned.
406
+ * If no data is provided, the constructed object will be empty, but still
407
+ * valid.
408
+ * @extends {jspb.Message}
409
+ * @constructor
410
+ */
411
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest = function(opt_data) {
412
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
413
+ };
414
+ goog.inherits(proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest, jspb.Message);
415
+ if (goog.DEBUG && !COMPILED) {
416
+ /**
417
+ * @public
418
+ * @override
419
+ */
420
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.displayName = 'proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest';
421
+ }
422
+ /**
423
+ * Generated by JsPbCodeGenerator.
424
+ * @param {Array=} opt_data Optional initial data array, typically from a
425
+ * server response, or constructed directly in Javascript. The array is used
426
+ * in place and becomes part of the constructed object. It is not cloned.
427
+ * If no data is provided, the constructed object will be empty, but still
428
+ * valid.
429
+ * @extends {jspb.Message}
430
+ * @constructor
431
+ */
432
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse = function(opt_data) {
433
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
434
+ };
435
+ goog.inherits(proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse, jspb.Message);
436
+ if (goog.DEBUG && !COMPILED) {
437
+ /**
438
+ * @public
439
+ * @override
440
+ */
441
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.displayName = 'proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse';
442
+ }
399
443
  /**
400
444
  * Generated by JsPbCodeGenerator.
401
445
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -5621,6 +5665,530 @@ proto.sniippaymentmethodsserviceapi.AddPaymentMethodRequest.prototype.hasData =
5621
5665
 
5622
5666
 
5623
5667
 
5668
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5669
+ /**
5670
+ * Creates an object representation of this proto.
5671
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5672
+ * Optional fields that are not set will be set to undefined.
5673
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5674
+ * For the list of reserved names please see:
5675
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5676
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5677
+ * JSPB instance for transitional soy proto support:
5678
+ * http://goto/soy-param-migration
5679
+ * @return {!Object}
5680
+ */
5681
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.toObject = function(opt_includeInstance) {
5682
+ return proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.toObject(opt_includeInstance, this);
5683
+ };
5684
+
5685
+
5686
+ /**
5687
+ * Static version of the {@see toObject} method.
5688
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5689
+ * the JSPB instance for transitional soy proto support:
5690
+ * http://goto/soy-param-migration
5691
+ * @param {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} msg The msg instance to transform.
5692
+ * @return {!Object}
5693
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5694
+ */
5695
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.toObject = function(includeInstance, msg) {
5696
+ var f, obj = {
5697
+ capabilitytoken: jspb.Message.getFieldWithDefault(msg, 1, ""),
5698
+ billid: jspb.Message.getFieldWithDefault(msg, 2, 0),
5699
+ creditcard: (f = msg.getCreditcard()) && proto.sniippaymentmethodsserviceapi.CreditCard.toObject(includeInstance, f),
5700
+ platform: jspb.Message.getFieldWithDefault(msg, 4, ""),
5701
+ browserinfo: (f = msg.getBrowserinfo()) && proto.sniippaymentmethodsserviceapi.BrowserInfo.toObject(includeInstance, f)
5702
+ };
5703
+
5704
+ if (includeInstance) {
5705
+ obj.$jspbMessageInstance = msg;
5706
+ }
5707
+ return obj;
5708
+ };
5709
+ }
5710
+
5711
+
5712
+ /**
5713
+ * Deserializes binary data (in protobuf wire format).
5714
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5715
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest}
5716
+ */
5717
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.deserializeBinary = function(bytes) {
5718
+ var reader = new jspb.BinaryReader(bytes);
5719
+ var msg = new proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest;
5720
+ return proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.deserializeBinaryFromReader(msg, reader);
5721
+ };
5722
+
5723
+
5724
+ /**
5725
+ * Deserializes binary data (in protobuf wire format) from the
5726
+ * given reader into the given message object.
5727
+ * @param {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} msg The message object to deserialize into.
5728
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5729
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest}
5730
+ */
5731
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.deserializeBinaryFromReader = function(msg, reader) {
5732
+ while (reader.nextField()) {
5733
+ if (reader.isEndGroup()) {
5734
+ break;
5735
+ }
5736
+ var field = reader.getFieldNumber();
5737
+ switch (field) {
5738
+ case 1:
5739
+ var value = /** @type {string} */ (reader.readString());
5740
+ msg.setCapabilitytoken(value);
5741
+ break;
5742
+ case 2:
5743
+ var value = /** @type {number} */ (reader.readInt64());
5744
+ msg.setBillid(value);
5745
+ break;
5746
+ case 3:
5747
+ var value = new proto.sniippaymentmethodsserviceapi.CreditCard;
5748
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.CreditCard.deserializeBinaryFromReader);
5749
+ msg.setCreditcard(value);
5750
+ break;
5751
+ case 4:
5752
+ var value = /** @type {string} */ (reader.readString());
5753
+ msg.setPlatform(value);
5754
+ break;
5755
+ case 5:
5756
+ var value = new proto.sniippaymentmethodsserviceapi.BrowserInfo;
5757
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.BrowserInfo.deserializeBinaryFromReader);
5758
+ msg.setBrowserinfo(value);
5759
+ break;
5760
+ default:
5761
+ reader.skipField();
5762
+ break;
5763
+ }
5764
+ }
5765
+ return msg;
5766
+ };
5767
+
5768
+
5769
+ /**
5770
+ * Serializes the message to binary data (in protobuf wire format).
5771
+ * @return {!Uint8Array}
5772
+ */
5773
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.serializeBinary = function() {
5774
+ var writer = new jspb.BinaryWriter();
5775
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.serializeBinaryToWriter(this, writer);
5776
+ return writer.getResultBuffer();
5777
+ };
5778
+
5779
+
5780
+ /**
5781
+ * Serializes the given message to binary data (in protobuf wire
5782
+ * format), writing to the given BinaryWriter.
5783
+ * @param {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} message
5784
+ * @param {!jspb.BinaryWriter} writer
5785
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5786
+ */
5787
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.serializeBinaryToWriter = function(message, writer) {
5788
+ var f = undefined;
5789
+ f = message.getCapabilitytoken();
5790
+ if (f.length > 0) {
5791
+ writer.writeString(
5792
+ 1,
5793
+ f
5794
+ );
5795
+ }
5796
+ f = message.getBillid();
5797
+ if (f !== 0) {
5798
+ writer.writeInt64(
5799
+ 2,
5800
+ f
5801
+ );
5802
+ }
5803
+ f = message.getCreditcard();
5804
+ if (f != null) {
5805
+ writer.writeMessage(
5806
+ 3,
5807
+ f,
5808
+ proto.sniippaymentmethodsserviceapi.CreditCard.serializeBinaryToWriter
5809
+ );
5810
+ }
5811
+ f = message.getPlatform();
5812
+ if (f.length > 0) {
5813
+ writer.writeString(
5814
+ 4,
5815
+ f
5816
+ );
5817
+ }
5818
+ f = message.getBrowserinfo();
5819
+ if (f != null) {
5820
+ writer.writeMessage(
5821
+ 5,
5822
+ f,
5823
+ proto.sniippaymentmethodsserviceapi.BrowserInfo.serializeBinaryToWriter
5824
+ );
5825
+ }
5826
+ };
5827
+
5828
+
5829
+ /**
5830
+ * optional string capabilityToken = 1;
5831
+ * @return {string}
5832
+ */
5833
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.getCapabilitytoken = function() {
5834
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
5835
+ };
5836
+
5837
+
5838
+ /**
5839
+ * @param {string} value
5840
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} returns this
5841
+ */
5842
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.setCapabilitytoken = function(value) {
5843
+ return jspb.Message.setProto3StringField(this, 1, value);
5844
+ };
5845
+
5846
+
5847
+ /**
5848
+ * optional int64 billId = 2;
5849
+ * @return {number}
5850
+ */
5851
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.getBillid = function() {
5852
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5853
+ };
5854
+
5855
+
5856
+ /**
5857
+ * @param {number} value
5858
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} returns this
5859
+ */
5860
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.setBillid = function(value) {
5861
+ return jspb.Message.setProto3IntField(this, 2, value);
5862
+ };
5863
+
5864
+
5865
+ /**
5866
+ * optional CreditCard creditCard = 3;
5867
+ * @return {?proto.sniippaymentmethodsserviceapi.CreditCard}
5868
+ */
5869
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.getCreditcard = function() {
5870
+ return /** @type{?proto.sniippaymentmethodsserviceapi.CreditCard} */ (
5871
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.CreditCard, 3));
5872
+ };
5873
+
5874
+
5875
+ /**
5876
+ * @param {?proto.sniippaymentmethodsserviceapi.CreditCard|undefined} value
5877
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} returns this
5878
+ */
5879
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.setCreditcard = function(value) {
5880
+ return jspb.Message.setWrapperField(this, 3, value);
5881
+ };
5882
+
5883
+
5884
+ /**
5885
+ * Clears the message field making it undefined.
5886
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} returns this
5887
+ */
5888
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.clearCreditcard = function() {
5889
+ return this.setCreditcard(undefined);
5890
+ };
5891
+
5892
+
5893
+ /**
5894
+ * Returns whether this field is set.
5895
+ * @return {boolean}
5896
+ */
5897
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.hasCreditcard = function() {
5898
+ return jspb.Message.getField(this, 3) != null;
5899
+ };
5900
+
5901
+
5902
+ /**
5903
+ * optional string platform = 4;
5904
+ * @return {string}
5905
+ */
5906
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.getPlatform = function() {
5907
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5908
+ };
5909
+
5910
+
5911
+ /**
5912
+ * @param {string} value
5913
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} returns this
5914
+ */
5915
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.setPlatform = function(value) {
5916
+ return jspb.Message.setProto3StringField(this, 4, value);
5917
+ };
5918
+
5919
+
5920
+ /**
5921
+ * optional BrowserInfo browserInfo = 5;
5922
+ * @return {?proto.sniippaymentmethodsserviceapi.BrowserInfo}
5923
+ */
5924
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.getBrowserinfo = function() {
5925
+ return /** @type{?proto.sniippaymentmethodsserviceapi.BrowserInfo} */ (
5926
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.BrowserInfo, 5));
5927
+ };
5928
+
5929
+
5930
+ /**
5931
+ * @param {?proto.sniippaymentmethodsserviceapi.BrowserInfo|undefined} value
5932
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} returns this
5933
+ */
5934
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.setBrowserinfo = function(value) {
5935
+ return jspb.Message.setWrapperField(this, 5, value);
5936
+ };
5937
+
5938
+
5939
+ /**
5940
+ * Clears the message field making it undefined.
5941
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest} returns this
5942
+ */
5943
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.clearBrowserinfo = function() {
5944
+ return this.setBrowserinfo(undefined);
5945
+ };
5946
+
5947
+
5948
+ /**
5949
+ * Returns whether this field is set.
5950
+ * @return {boolean}
5951
+ */
5952
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodRequest.prototype.hasBrowserinfo = function() {
5953
+ return jspb.Message.getField(this, 5) != null;
5954
+ };
5955
+
5956
+
5957
+
5958
+
5959
+
5960
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5961
+ /**
5962
+ * Creates an object representation of this proto.
5963
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5964
+ * Optional fields that are not set will be set to undefined.
5965
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5966
+ * For the list of reserved names please see:
5967
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5968
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5969
+ * JSPB instance for transitional soy proto support:
5970
+ * http://goto/soy-param-migration
5971
+ * @return {!Object}
5972
+ */
5973
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.toObject = function(opt_includeInstance) {
5974
+ return proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.toObject(opt_includeInstance, this);
5975
+ };
5976
+
5977
+
5978
+ /**
5979
+ * Static version of the {@see toObject} method.
5980
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5981
+ * the JSPB instance for transitional soy proto support:
5982
+ * http://goto/soy-param-migration
5983
+ * @param {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse} msg The msg instance to transform.
5984
+ * @return {!Object}
5985
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5986
+ */
5987
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.toObject = function(includeInstance, msg) {
5988
+ var f, obj = {
5989
+ paymentmethod: (f = msg.getPaymentmethod()) && proto.sniippaymentmethodsserviceapi.PaymentMethod.toObject(includeInstance, f),
5990
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
5991
+ paymentmethodaccesskey: jspb.Message.getFieldWithDefault(msg, 3, "")
5992
+ };
5993
+
5994
+ if (includeInstance) {
5995
+ obj.$jspbMessageInstance = msg;
5996
+ }
5997
+ return obj;
5998
+ };
5999
+ }
6000
+
6001
+
6002
+ /**
6003
+ * Deserializes binary data (in protobuf wire format).
6004
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6005
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse}
6006
+ */
6007
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.deserializeBinary = function(bytes) {
6008
+ var reader = new jspb.BinaryReader(bytes);
6009
+ var msg = new proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse;
6010
+ return proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.deserializeBinaryFromReader(msg, reader);
6011
+ };
6012
+
6013
+
6014
+ /**
6015
+ * Deserializes binary data (in protobuf wire format) from the
6016
+ * given reader into the given message object.
6017
+ * @param {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse} msg The message object to deserialize into.
6018
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6019
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse}
6020
+ */
6021
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.deserializeBinaryFromReader = function(msg, reader) {
6022
+ while (reader.nextField()) {
6023
+ if (reader.isEndGroup()) {
6024
+ break;
6025
+ }
6026
+ var field = reader.getFieldNumber();
6027
+ switch (field) {
6028
+ case 1:
6029
+ var value = new proto.sniippaymentmethodsserviceapi.PaymentMethod;
6030
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.PaymentMethod.deserializeBinaryFromReader);
6031
+ msg.setPaymentmethod(value);
6032
+ break;
6033
+ case 2:
6034
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
6035
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
6036
+ msg.setResponsecode(value);
6037
+ break;
6038
+ case 3:
6039
+ var value = /** @type {string} */ (reader.readString());
6040
+ msg.setPaymentmethodaccesskey(value);
6041
+ break;
6042
+ default:
6043
+ reader.skipField();
6044
+ break;
6045
+ }
6046
+ }
6047
+ return msg;
6048
+ };
6049
+
6050
+
6051
+ /**
6052
+ * Serializes the message to binary data (in protobuf wire format).
6053
+ * @return {!Uint8Array}
6054
+ */
6055
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.serializeBinary = function() {
6056
+ var writer = new jspb.BinaryWriter();
6057
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.serializeBinaryToWriter(this, writer);
6058
+ return writer.getResultBuffer();
6059
+ };
6060
+
6061
+
6062
+ /**
6063
+ * Serializes the given message to binary data (in protobuf wire
6064
+ * format), writing to the given BinaryWriter.
6065
+ * @param {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse} message
6066
+ * @param {!jspb.BinaryWriter} writer
6067
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6068
+ */
6069
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.serializeBinaryToWriter = function(message, writer) {
6070
+ var f = undefined;
6071
+ f = message.getPaymentmethod();
6072
+ if (f != null) {
6073
+ writer.writeMessage(
6074
+ 1,
6075
+ f,
6076
+ proto.sniippaymentmethodsserviceapi.PaymentMethod.serializeBinaryToWriter
6077
+ );
6078
+ }
6079
+ f = message.getResponsecode();
6080
+ if (f != null) {
6081
+ writer.writeMessage(
6082
+ 2,
6083
+ f,
6084
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
6085
+ );
6086
+ }
6087
+ f = message.getPaymentmethodaccesskey();
6088
+ if (f.length > 0) {
6089
+ writer.writeString(
6090
+ 3,
6091
+ f
6092
+ );
6093
+ }
6094
+ };
6095
+
6096
+
6097
+ /**
6098
+ * optional PaymentMethod paymentMethod = 1;
6099
+ * @return {?proto.sniippaymentmethodsserviceapi.PaymentMethod}
6100
+ */
6101
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.getPaymentmethod = function() {
6102
+ return /** @type{?proto.sniippaymentmethodsserviceapi.PaymentMethod} */ (
6103
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.PaymentMethod, 1));
6104
+ };
6105
+
6106
+
6107
+ /**
6108
+ * @param {?proto.sniippaymentmethodsserviceapi.PaymentMethod|undefined} value
6109
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse} returns this
6110
+ */
6111
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.setPaymentmethod = function(value) {
6112
+ return jspb.Message.setWrapperField(this, 1, value);
6113
+ };
6114
+
6115
+
6116
+ /**
6117
+ * Clears the message field making it undefined.
6118
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse} returns this
6119
+ */
6120
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.clearPaymentmethod = function() {
6121
+ return this.setPaymentmethod(undefined);
6122
+ };
6123
+
6124
+
6125
+ /**
6126
+ * Returns whether this field is set.
6127
+ * @return {boolean}
6128
+ */
6129
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.hasPaymentmethod = function() {
6130
+ return jspb.Message.getField(this, 1) != null;
6131
+ };
6132
+
6133
+
6134
+ /**
6135
+ * optional ResponseCode responseCode = 2;
6136
+ * @return {?proto.sniippaymentmethodsserviceapi.ResponseCode}
6137
+ */
6138
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.getResponsecode = function() {
6139
+ return /** @type{?proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
6140
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 2));
6141
+ };
6142
+
6143
+
6144
+ /**
6145
+ * @param {?proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value
6146
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse} returns this
6147
+ */
6148
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.setResponsecode = function(value) {
6149
+ return jspb.Message.setWrapperField(this, 2, value);
6150
+ };
6151
+
6152
+
6153
+ /**
6154
+ * Clears the message field making it undefined.
6155
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse} returns this
6156
+ */
6157
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.clearResponsecode = function() {
6158
+ return this.setResponsecode(undefined);
6159
+ };
6160
+
6161
+
6162
+ /**
6163
+ * Returns whether this field is set.
6164
+ * @return {boolean}
6165
+ */
6166
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.hasResponsecode = function() {
6167
+ return jspb.Message.getField(this, 2) != null;
6168
+ };
6169
+
6170
+
6171
+ /**
6172
+ * optional string paymentMethodAccessKey = 3;
6173
+ * @return {string}
6174
+ */
6175
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.getPaymentmethodaccesskey = function() {
6176
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6177
+ };
6178
+
6179
+
6180
+ /**
6181
+ * @param {string} value
6182
+ * @return {!proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse} returns this
6183
+ */
6184
+ proto.sniippaymentmethodsserviceapi.AddGuestPaymentMethodResponse.prototype.setPaymentmethodaccesskey = function(value) {
6185
+ return jspb.Message.setProto3StringField(this, 3, value);
6186
+ };
6187
+
6188
+
6189
+
6190
+
6191
+
5624
6192
  if (jspb.Message.GENERATE_TO_OBJECT) {
5625
6193
  /**
5626
6194
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/payment-methods-client-grpcweb",
3
- "version": "26.10.9352",
3
+ "version": "26.10.9370",
4
4
  "description": "payment-methods-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",