protobuf-platform 1.2.45 → 1.2.46

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.45",
3
+ "version": "1.2.46",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -219,6 +219,7 @@ message DepositItemsResponse {
219
219
  message DepositWebHookRequest {
220
220
  string method = 1;
221
221
  string data = 2;
222
+ optional string headers = 3;
222
223
  }
223
224
  message ProcessedDepositResponse {
224
225
  string status = 1;
@@ -9418,7 +9418,8 @@ proto.payment.DepositWebHookRequest.prototype.toObject = function(opt_includeIns
9418
9418
  proto.payment.DepositWebHookRequest.toObject = function(includeInstance, msg) {
9419
9419
  var f, obj = {
9420
9420
  method: jspb.Message.getFieldWithDefault(msg, 1, ""),
9421
- data: jspb.Message.getFieldWithDefault(msg, 2, "")
9421
+ data: jspb.Message.getFieldWithDefault(msg, 2, ""),
9422
+ headers: jspb.Message.getFieldWithDefault(msg, 3, "")
9422
9423
  };
9423
9424
 
9424
9425
  if (includeInstance) {
@@ -9463,6 +9464,10 @@ proto.payment.DepositWebHookRequest.deserializeBinaryFromReader = function(msg,
9463
9464
  var value = /** @type {string} */ (reader.readString());
9464
9465
  msg.setData(value);
9465
9466
  break;
9467
+ case 3:
9468
+ var value = /** @type {string} */ (reader.readString());
9469
+ msg.setHeaders(value);
9470
+ break;
9466
9471
  default:
9467
9472
  reader.skipField();
9468
9473
  break;
@@ -9506,6 +9511,13 @@ proto.payment.DepositWebHookRequest.serializeBinaryToWriter = function(message,
9506
9511
  f
9507
9512
  );
9508
9513
  }
9514
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
9515
+ if (f != null) {
9516
+ writer.writeString(
9517
+ 3,
9518
+ f
9519
+ );
9520
+ }
9509
9521
  };
9510
9522
 
9511
9523
 
@@ -9545,6 +9557,42 @@ proto.payment.DepositWebHookRequest.prototype.setData = function(value) {
9545
9557
  };
9546
9558
 
9547
9559
 
9560
+ /**
9561
+ * optional string headers = 3;
9562
+ * @return {string}
9563
+ */
9564
+ proto.payment.DepositWebHookRequest.prototype.getHeaders = function() {
9565
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9566
+ };
9567
+
9568
+
9569
+ /**
9570
+ * @param {string} value
9571
+ * @return {!proto.payment.DepositWebHookRequest} returns this
9572
+ */
9573
+ proto.payment.DepositWebHookRequest.prototype.setHeaders = function(value) {
9574
+ return jspb.Message.setField(this, 3, value);
9575
+ };
9576
+
9577
+
9578
+ /**
9579
+ * Clears the field making it undefined.
9580
+ * @return {!proto.payment.DepositWebHookRequest} returns this
9581
+ */
9582
+ proto.payment.DepositWebHookRequest.prototype.clearHeaders = function() {
9583
+ return jspb.Message.setField(this, 3, undefined);
9584
+ };
9585
+
9586
+
9587
+ /**
9588
+ * Returns whether this field is set.
9589
+ * @return {boolean}
9590
+ */
9591
+ proto.payment.DepositWebHookRequest.prototype.hasHeaders = function() {
9592
+ return jspb.Message.getField(this, 3) != null;
9593
+ };
9594
+
9595
+
9548
9596
 
9549
9597
 
9550
9598