@sniipwebmaster/payment-methods-client-grpcweb 0.2.2351 → 0.2.2369

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.
@@ -805,6 +805,61 @@ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseC
805
805
  };
806
806
 
807
807
 
808
+ /**
809
+ * @const
810
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
811
+ * !proto.google.protobuf.Empty,
812
+ * !proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse>}
813
+ */
814
+ const methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethodTypes = new grpc.web.AbstractClientBase.MethodInfo(
815
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse,
816
+ /** @param {!proto.google.protobuf.Empty} request */
817
+ function(request) {
818
+ return request.serializeBinary();
819
+ },
820
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.deserializeBinary
821
+ );
822
+
823
+
824
+ /**
825
+ * @param {!proto.google.protobuf.Empty} request The
826
+ * request proto
827
+ * @param {?Object<string, string>} metadata User defined
828
+ * call metadata
829
+ * @param {function(?grpc.web.Error, ?proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse)}
830
+ * callback The callback function(error, response)
831
+ * @return {!grpc.web.ClientReadableStream<!proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse>|undefined}
832
+ * The XHR Node Readable Stream
833
+ */
834
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServiceClient.prototype.getPaymentMethodTypes =
835
+ function(request, metadata, callback) {
836
+ return this.client_.rpcCall(this.hostname_ +
837
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethodTypes',
838
+ request,
839
+ metadata || {},
840
+ methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethodTypes,
841
+ callback);
842
+ };
843
+
844
+
845
+ /**
846
+ * @param {!proto.google.protobuf.Empty} request The
847
+ * request proto
848
+ * @param {?Object<string, string>} metadata User defined
849
+ * call metadata
850
+ * @return {!Promise<!proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse>}
851
+ * A native promise that resolves to the response
852
+ */
853
+ proto.sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIServicePromiseClient.prototype.getPaymentMethodTypes =
854
+ function(request, metadata) {
855
+ return this.client_.unaryCall(this.hostname_ +
856
+ '/sniippaymentmethodsserviceapi.SniipPaymentMethodsServiceAPIService/GetPaymentMethodTypes',
857
+ request,
858
+ metadata || {},
859
+ methodInfo_SniipPaymentMethodsServiceAPIService_GetPaymentMethodTypes);
860
+ };
861
+
862
+
808
863
  /**
809
864
  * @const
810
865
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -47,6 +47,7 @@ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodGroup', null
47
47
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodGroupGetResponse', null, global);
48
48
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodGroupsResponse', null, global);
49
49
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodResponse', null, global);
50
+ goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse', null, global);
50
51
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodUpdateRequest', null, global);
51
52
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodsForAuditRequest', null, global);
52
53
  goog.exportSymbol('proto.sniippaymentmethodsserviceapi.PaymentMethodsInternalGetRequest', null, global);
@@ -8413,6 +8414,224 @@ proto.sniippaymentmethodsserviceapi.PaymentMethodResponse.prototype.hasResponsec
8413
8414
 
8414
8415
 
8415
8416
 
8417
+ /**
8418
+ * Generated by JsPbCodeGenerator.
8419
+ * @param {Array=} opt_data Optional initial data array, typically from a
8420
+ * server response, or constructed directly in Javascript. The array is used
8421
+ * in place and becomes part of the constructed object. It is not cloned.
8422
+ * If no data is provided, the constructed object will be empty, but still
8423
+ * valid.
8424
+ * @extends {jspb.Message}
8425
+ * @constructor
8426
+ */
8427
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse = function(opt_data) {
8428
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.repeatedFields_, null);
8429
+ };
8430
+ goog.inherits(proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse, jspb.Message);
8431
+ if (goog.DEBUG && !COMPILED) {
8432
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.displayName = 'proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse';
8433
+ }
8434
+ /**
8435
+ * List of repeated fields within this message type.
8436
+ * @private {!Array<number>}
8437
+ * @const
8438
+ */
8439
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.repeatedFields_ = [2];
8440
+
8441
+
8442
+
8443
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8444
+ /**
8445
+ * Creates an object representation of this proto suitable for use in Soy templates.
8446
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8447
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8448
+ * For the list of reserved names please see:
8449
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
8450
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
8451
+ * for transitional soy proto support: http://goto/soy-param-migration
8452
+ * @return {!Object}
8453
+ */
8454
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.prototype.toObject = function(opt_includeInstance) {
8455
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.toObject(opt_includeInstance, this);
8456
+ };
8457
+
8458
+
8459
+ /**
8460
+ * Static version of the {@see toObject} method.
8461
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
8462
+ * instance for transitional soy proto support:
8463
+ * http://goto/soy-param-migration
8464
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse} msg The msg instance to transform.
8465
+ * @return {!Object}
8466
+ */
8467
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.toObject = function(includeInstance, msg) {
8468
+ var f, obj = {
8469
+ responsecode: (f = msg.getResponsecode()) && proto.sniippaymentmethodsserviceapi.ResponseCode.toObject(includeInstance, f),
8470
+ typesList: jspb.Message.getField(msg, 2)
8471
+ };
8472
+
8473
+ if (includeInstance) {
8474
+ obj.$jspbMessageInstance = msg;
8475
+ }
8476
+ return obj;
8477
+ };
8478
+ }
8479
+
8480
+
8481
+ /**
8482
+ * Deserializes binary data (in protobuf wire format).
8483
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8484
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse}
8485
+ */
8486
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.deserializeBinary = function(bytes) {
8487
+ var reader = new jspb.BinaryReader(bytes);
8488
+ var msg = new proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse;
8489
+ return proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.deserializeBinaryFromReader(msg, reader);
8490
+ };
8491
+
8492
+
8493
+ /**
8494
+ * Deserializes binary data (in protobuf wire format) from the
8495
+ * given reader into the given message object.
8496
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse} msg The message object to deserialize into.
8497
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8498
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse}
8499
+ */
8500
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.deserializeBinaryFromReader = function(msg, reader) {
8501
+ while (reader.nextField()) {
8502
+ if (reader.isEndGroup()) {
8503
+ break;
8504
+ }
8505
+ var field = reader.getFieldNumber();
8506
+ switch (field) {
8507
+ case 1:
8508
+ var value = new proto.sniippaymentmethodsserviceapi.ResponseCode;
8509
+ reader.readMessage(value,proto.sniippaymentmethodsserviceapi.ResponseCode.deserializeBinaryFromReader);
8510
+ msg.setResponsecode(value);
8511
+ break;
8512
+ case 2:
8513
+ var value = /** @type {string} */ (reader.readString());
8514
+ msg.getTypesList().push(value);
8515
+ msg.setTypesList(msg.getTypesList());
8516
+ break;
8517
+ default:
8518
+ reader.skipField();
8519
+ break;
8520
+ }
8521
+ }
8522
+ return msg;
8523
+ };
8524
+
8525
+
8526
+ /**
8527
+ * Class method variant: serializes the given message to binary data
8528
+ * (in protobuf wire format), writing to the given BinaryWriter.
8529
+ * @param {!proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse} message
8530
+ * @param {!jspb.BinaryWriter} writer
8531
+ */
8532
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.serializeBinaryToWriter = function(message, writer) {
8533
+ message.serializeBinaryToWriter(writer);
8534
+ };
8535
+
8536
+
8537
+ /**
8538
+ * Serializes the message to binary data (in protobuf wire format).
8539
+ * @return {!Uint8Array}
8540
+ */
8541
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.prototype.serializeBinary = function() {
8542
+ var writer = new jspb.BinaryWriter();
8543
+ this.serializeBinaryToWriter(writer);
8544
+ return writer.getResultBuffer();
8545
+ };
8546
+
8547
+
8548
+ /**
8549
+ * Serializes the message to binary data (in protobuf wire format),
8550
+ * writing to the given BinaryWriter.
8551
+ * @param {!jspb.BinaryWriter} writer
8552
+ */
8553
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.prototype.serializeBinaryToWriter = function (writer) {
8554
+ var f = undefined;
8555
+ f = this.getResponsecode();
8556
+ if (f != null) {
8557
+ writer.writeMessage(
8558
+ 1,
8559
+ f,
8560
+ proto.sniippaymentmethodsserviceapi.ResponseCode.serializeBinaryToWriter
8561
+ );
8562
+ }
8563
+ f = this.getTypesList();
8564
+ if (f.length > 0) {
8565
+ writer.writeRepeatedString(
8566
+ 2,
8567
+ f
8568
+ );
8569
+ }
8570
+ };
8571
+
8572
+
8573
+ /**
8574
+ * Creates a deep clone of this proto. No data is shared with the original.
8575
+ * @return {!proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse} The clone.
8576
+ */
8577
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.prototype.cloneMessage = function() {
8578
+ return /** @type {!proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse} */ (jspb.Message.cloneMessage(this));
8579
+ };
8580
+
8581
+
8582
+ /**
8583
+ * optional ResponseCode responseCode = 1;
8584
+ * @return {proto.sniippaymentmethodsserviceapi.ResponseCode}
8585
+ */
8586
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.prototype.getResponsecode = function() {
8587
+ return /** @type{proto.sniippaymentmethodsserviceapi.ResponseCode} */ (
8588
+ jspb.Message.getWrapperField(this, proto.sniippaymentmethodsserviceapi.ResponseCode, 1));
8589
+ };
8590
+
8591
+
8592
+ /** @param {proto.sniippaymentmethodsserviceapi.ResponseCode|undefined} value */
8593
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.prototype.setResponsecode = function(value) {
8594
+ jspb.Message.setWrapperField(this, 1, value);
8595
+ };
8596
+
8597
+
8598
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.prototype.clearResponsecode = function() {
8599
+ this.setResponsecode(undefined);
8600
+ };
8601
+
8602
+
8603
+ /**
8604
+ * Returns whether this field is set.
8605
+ * @return{!boolean}
8606
+ */
8607
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.prototype.hasResponsecode = function() {
8608
+ return jspb.Message.getField(this, 1) != null;
8609
+ };
8610
+
8611
+
8612
+ /**
8613
+ * repeated string types = 2;
8614
+ * If you change this array by adding, removing or replacing elements, or if you
8615
+ * replace the array itself, then you must call the setter to update it.
8616
+ * @return {!Array.<string>}
8617
+ */
8618
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.prototype.getTypesList = function() {
8619
+ return /** @type {!Array.<string>} */ (jspb.Message.getField(this, 2));
8620
+ };
8621
+
8622
+
8623
+ /** @param {Array.<string>} value */
8624
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.prototype.setTypesList = function(value) {
8625
+ jspb.Message.setField(this, 2, value || []);
8626
+ };
8627
+
8628
+
8629
+ proto.sniippaymentmethodsserviceapi.PaymentMethodTypesResponse.prototype.clearTypesList = function() {
8630
+ jspb.Message.setField(this, 2, []);
8631
+ };
8632
+
8633
+
8634
+
8416
8635
  /**
8417
8636
  * Generated by JsPbCodeGenerator.
8418
8637
  * @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": "0.2.2351",
3
+ "version": "0.2.2369",
4
4
  "description": "payment-methods-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",