@sniipwebmaster/payment-methods-client-grpcweb-ts 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.
@@ -126,6 +126,49 @@ export class SniipPaymentMethodsServiceAPIServiceClient {
126
126
  this.methodDescriptorAddPaymentMethod);
127
127
  }
128
128
 
129
+ methodDescriptorAddGuestPaymentMethod = new grpcWeb.MethodDescriptor(
130
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddGuestPaymentMethod',
131
+ grpcWeb.MethodType.UNARY,
132
+ service_pb.AddGuestPaymentMethodRequest,
133
+ service_pb.AddGuestPaymentMethodResponse,
134
+ (request: service_pb.AddGuestPaymentMethodRequest) => {
135
+ return request.serializeBinary();
136
+ },
137
+ service_pb.AddGuestPaymentMethodResponse.deserializeBinary
138
+ );
139
+
140
+ addGuestPaymentMethod(
141
+ request: service_pb.AddGuestPaymentMethodRequest,
142
+ metadata?: grpcWeb.Metadata | null): Promise<service_pb.AddGuestPaymentMethodResponse>;
143
+
144
+ addGuestPaymentMethod(
145
+ request: service_pb.AddGuestPaymentMethodRequest,
146
+ metadata: grpcWeb.Metadata | null,
147
+ callback: (err: grpcWeb.RpcError,
148
+ response: service_pb.AddGuestPaymentMethodResponse) => void): grpcWeb.ClientReadableStream<service_pb.AddGuestPaymentMethodResponse>;
149
+
150
+ addGuestPaymentMethod(
151
+ request: service_pb.AddGuestPaymentMethodRequest,
152
+ metadata?: grpcWeb.Metadata | null,
153
+ callback?: (err: grpcWeb.RpcError,
154
+ response: service_pb.AddGuestPaymentMethodResponse) => void) {
155
+ if (callback !== undefined) {
156
+ return this.client_.rpcCall(
157
+ this.hostname_ +
158
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddGuestPaymentMethod',
159
+ request,
160
+ metadata || {},
161
+ this.methodDescriptorAddGuestPaymentMethod,
162
+ callback);
163
+ }
164
+ return this.client_.unaryCall(
165
+ this.hostname_ +
166
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddGuestPaymentMethod',
167
+ request,
168
+ metadata || {},
169
+ this.methodDescriptorAddGuestPaymentMethod);
170
+ }
171
+
129
172
  methodDescriptorAddZenithToken = new grpcWeb.MethodDescriptor(
130
173
  '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/AddZenithToken',
131
174
  grpcWeb.MethodType.UNARY,
@@ -1631,6 +1674,49 @@ export class SniipPaymentMethodsServiceAPIServiceClient {
1631
1674
  this.methodDescriptorSendPaymentMethodExpiredNotification);
1632
1675
  }
1633
1676
 
1677
+ methodDescriptorPurgeGuestPaymentMethods = new grpcWeb.MethodDescriptor(
1678
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/PurgeGuestPaymentMethods',
1679
+ grpcWeb.MethodType.UNARY,
1680
+ google_protobuf_empty_pb.Empty,
1681
+ service_pb.ResponseCode,
1682
+ (request: google_protobuf_empty_pb.Empty) => {
1683
+ return request.serializeBinary();
1684
+ },
1685
+ service_pb.ResponseCode.deserializeBinary
1686
+ );
1687
+
1688
+ purgeGuestPaymentMethods(
1689
+ request: google_protobuf_empty_pb.Empty,
1690
+ metadata?: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
1691
+
1692
+ purgeGuestPaymentMethods(
1693
+ request: google_protobuf_empty_pb.Empty,
1694
+ metadata: grpcWeb.Metadata | null,
1695
+ callback: (err: grpcWeb.RpcError,
1696
+ response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
1697
+
1698
+ purgeGuestPaymentMethods(
1699
+ request: google_protobuf_empty_pb.Empty,
1700
+ metadata?: grpcWeb.Metadata | null,
1701
+ callback?: (err: grpcWeb.RpcError,
1702
+ response: service_pb.ResponseCode) => void) {
1703
+ if (callback !== undefined) {
1704
+ return this.client_.rpcCall(
1705
+ this.hostname_ +
1706
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/PurgeGuestPaymentMethods',
1707
+ request,
1708
+ metadata || {},
1709
+ this.methodDescriptorPurgeGuestPaymentMethods,
1710
+ callback);
1711
+ }
1712
+ return this.client_.unaryCall(
1713
+ this.hostname_ +
1714
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/PurgeGuestPaymentMethods',
1715
+ request,
1716
+ metadata || {},
1717
+ this.methodDescriptorPurgeGuestPaymentMethods);
1718
+ }
1719
+
1634
1720
  methodDescriptorSendPaymentMethodExpiringForScheduledPaymentsNotification = new grpcWeb.MethodDescriptor(
1635
1721
  '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/SendPaymentMethodExpiringForScheduledPaymentsNotification',
1636
1722
  grpcWeb.MethodType.UNARY,
@@ -342,6 +342,74 @@ export namespace AddPaymentMethodRequest {
342
342
  }
343
343
  }
344
344
 
345
+ export class AddGuestPaymentMethodRequest extends jspb.Message {
346
+ getCapabilitytoken(): string;
347
+ setCapabilitytoken(value: string): AddGuestPaymentMethodRequest;
348
+
349
+ getBillid(): number;
350
+ setBillid(value: number): AddGuestPaymentMethodRequest;
351
+
352
+ getCreditcard(): CreditCard | undefined;
353
+ setCreditcard(value?: CreditCard): AddGuestPaymentMethodRequest;
354
+ hasCreditcard(): boolean;
355
+ clearCreditcard(): AddGuestPaymentMethodRequest;
356
+
357
+ getPlatform(): string;
358
+ setPlatform(value: string): AddGuestPaymentMethodRequest;
359
+
360
+ getBrowserinfo(): BrowserInfo | undefined;
361
+ setBrowserinfo(value?: BrowserInfo): AddGuestPaymentMethodRequest;
362
+ hasBrowserinfo(): boolean;
363
+ clearBrowserinfo(): AddGuestPaymentMethodRequest;
364
+
365
+ serializeBinary(): Uint8Array;
366
+ toObject(includeInstance?: boolean): AddGuestPaymentMethodRequest.AsObject;
367
+ static toObject(includeInstance: boolean, msg: AddGuestPaymentMethodRequest): AddGuestPaymentMethodRequest.AsObject;
368
+ static serializeBinaryToWriter(message: AddGuestPaymentMethodRequest, writer: jspb.BinaryWriter): void;
369
+ static deserializeBinary(bytes: Uint8Array): AddGuestPaymentMethodRequest;
370
+ static deserializeBinaryFromReader(message: AddGuestPaymentMethodRequest, reader: jspb.BinaryReader): AddGuestPaymentMethodRequest;
371
+ }
372
+
373
+ export namespace AddGuestPaymentMethodRequest {
374
+ export type AsObject = {
375
+ capabilitytoken: string,
376
+ billid: number,
377
+ creditcard?: CreditCard.AsObject,
378
+ platform: string,
379
+ browserinfo?: BrowserInfo.AsObject,
380
+ }
381
+ }
382
+
383
+ export class AddGuestPaymentMethodResponse extends jspb.Message {
384
+ getPaymentmethod(): PaymentMethod | undefined;
385
+ setPaymentmethod(value?: PaymentMethod): AddGuestPaymentMethodResponse;
386
+ hasPaymentmethod(): boolean;
387
+ clearPaymentmethod(): AddGuestPaymentMethodResponse;
388
+
389
+ getResponsecode(): ResponseCode | undefined;
390
+ setResponsecode(value?: ResponseCode): AddGuestPaymentMethodResponse;
391
+ hasResponsecode(): boolean;
392
+ clearResponsecode(): AddGuestPaymentMethodResponse;
393
+
394
+ getPaymentmethodaccesskey(): string;
395
+ setPaymentmethodaccesskey(value: string): AddGuestPaymentMethodResponse;
396
+
397
+ serializeBinary(): Uint8Array;
398
+ toObject(includeInstance?: boolean): AddGuestPaymentMethodResponse.AsObject;
399
+ static toObject(includeInstance: boolean, msg: AddGuestPaymentMethodResponse): AddGuestPaymentMethodResponse.AsObject;
400
+ static serializeBinaryToWriter(message: AddGuestPaymentMethodResponse, writer: jspb.BinaryWriter): void;
401
+ static deserializeBinary(bytes: Uint8Array): AddGuestPaymentMethodResponse;
402
+ static deserializeBinaryFromReader(message: AddGuestPaymentMethodResponse, reader: jspb.BinaryReader): AddGuestPaymentMethodResponse;
403
+ }
404
+
405
+ export namespace AddGuestPaymentMethodResponse {
406
+ export type AsObject = {
407
+ paymentmethod?: PaymentMethod.AsObject,
408
+ responsecode?: ResponseCode.AsObject,
409
+ paymentmethodaccesskey: string,
410
+ }
411
+ }
412
+
345
413
  export class AddZenithTokenRequest extends jspb.Message {
346
414
  getData(): ZenithTokenAddRequest | undefined;
347
415
  setData(value?: ZenithTokenAddRequest): AddZenithTokenRequest;
@@ -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-ts",
3
- "version": "26.10.9352",
3
+ "version": "26.10.9370",
4
4
  "description": "payment-methods-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",