protobuf-platform 1.2.473 → 1.2.475

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.473",
3
+ "version": "1.2.475",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -258,6 +258,7 @@ message UserPromocodeSnapshotItem {
258
258
  optional string currency = 10;
259
259
  optional string snapshot = 11;
260
260
  optional string status = 12;
261
+ optional string promo_code = 13;
261
262
  }
262
263
  message BatchGetUserPromocodeSnapshotsResponse {
263
264
  repeated UserPromocodeSnapshotItem items = 1;
@@ -10106,7 +10106,8 @@ proto.promocode.UserPromocodeSnapshotItem.toObject = function(includeInstance, m
10106
10106
  targetEntityId: jspb.Message.getFieldWithDefault(msg, 9, 0),
10107
10107
  currency: jspb.Message.getFieldWithDefault(msg, 10, ""),
10108
10108
  snapshot: jspb.Message.getFieldWithDefault(msg, 11, ""),
10109
- status: jspb.Message.getFieldWithDefault(msg, 12, "")
10109
+ status: jspb.Message.getFieldWithDefault(msg, 12, ""),
10110
+ promoCode: jspb.Message.getFieldWithDefault(msg, 13, "")
10110
10111
  };
10111
10112
 
10112
10113
  if (includeInstance) {
@@ -10191,6 +10192,10 @@ proto.promocode.UserPromocodeSnapshotItem.deserializeBinaryFromReader = function
10191
10192
  var value = /** @type {string} */ (reader.readString());
10192
10193
  msg.setStatus(value);
10193
10194
  break;
10195
+ case 13:
10196
+ var value = /** @type {string} */ (reader.readString());
10197
+ msg.setPromoCode(value);
10198
+ break;
10194
10199
  default:
10195
10200
  reader.skipField();
10196
10201
  break;
@@ -10304,6 +10309,13 @@ proto.promocode.UserPromocodeSnapshotItem.serializeBinaryToWriter = function(mes
10304
10309
  f
10305
10310
  );
10306
10311
  }
10312
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
10313
+ if (f != null) {
10314
+ writer.writeString(
10315
+ 13,
10316
+ f
10317
+ );
10318
+ }
10307
10319
  };
10308
10320
 
10309
10321
 
@@ -10703,6 +10715,42 @@ proto.promocode.UserPromocodeSnapshotItem.prototype.hasStatus = function() {
10703
10715
  };
10704
10716
 
10705
10717
 
10718
+ /**
10719
+ * optional string promo_code = 13;
10720
+ * @return {string}
10721
+ */
10722
+ proto.promocode.UserPromocodeSnapshotItem.prototype.getPromoCode = function() {
10723
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
10724
+ };
10725
+
10726
+
10727
+ /**
10728
+ * @param {string} value
10729
+ * @return {!proto.promocode.UserPromocodeSnapshotItem} returns this
10730
+ */
10731
+ proto.promocode.UserPromocodeSnapshotItem.prototype.setPromoCode = function(value) {
10732
+ return jspb.Message.setField(this, 13, value);
10733
+ };
10734
+
10735
+
10736
+ /**
10737
+ * Clears the field making it undefined.
10738
+ * @return {!proto.promocode.UserPromocodeSnapshotItem} returns this
10739
+ */
10740
+ proto.promocode.UserPromocodeSnapshotItem.prototype.clearPromoCode = function() {
10741
+ return jspb.Message.setField(this, 13, undefined);
10742
+ };
10743
+
10744
+
10745
+ /**
10746
+ * Returns whether this field is set.
10747
+ * @return {boolean}
10748
+ */
10749
+ proto.promocode.UserPromocodeSnapshotItem.prototype.hasPromoCode = function() {
10750
+ return jspb.Message.getField(this, 13) != null;
10751
+ };
10752
+
10753
+
10706
10754
 
10707
10755
  /**
10708
10756
  * List of repeated fields within this message type.