protobuf-platform 1.2.420 → 1.2.422

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.
@@ -153,6 +153,8 @@ message WagerPoint {
153
153
  string currency = 1;
154
154
  double multiplier = 2;
155
155
  optional int32 is_active = 3;
156
+ optional int32 is_real_balance_allowed = 4;
157
+ optional int32 is_bonus_balance_allowed = 5;
156
158
  }
157
159
  message PointItem {
158
160
  optional int32 id = 1;
@@ -202,12 +204,14 @@ message UserLoyaltyResponse {
202
204
  optional int32 points_to_complete = 5;
203
205
  optional string image = 6;
204
206
  optional int32 current_points = 7;
207
+ optional double current_points_decimal = 8;
205
208
  }
206
209
  message UserLoyaltyPoint {
207
210
  int32 user_point_id = 1;
208
211
  string type = 2;
209
212
  int32 points = 3;
210
213
  optional string created = 4;
214
+ optional double points_decimal = 5;
211
215
  }
212
216
  message UserLoyaltyPointsResponse {
213
217
  repeated UserLoyaltyPoint items = 1;
@@ -6571,7 +6571,9 @@ proto.loyalty.WagerPoint.toObject = function(includeInstance, msg) {
6571
6571
  var f, obj = {
6572
6572
  currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
6573
6573
  multiplier: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
6574
- isActive: jspb.Message.getFieldWithDefault(msg, 3, 0)
6574
+ isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
6575
+ isRealBalanceAllowed: jspb.Message.getFieldWithDefault(msg, 4, 0),
6576
+ isBonusBalanceAllowed: jspb.Message.getFieldWithDefault(msg, 5, 0)
6575
6577
  };
6576
6578
 
6577
6579
  if (includeInstance) {
@@ -6620,6 +6622,14 @@ proto.loyalty.WagerPoint.deserializeBinaryFromReader = function(msg, reader) {
6620
6622
  var value = /** @type {number} */ (reader.readInt32());
6621
6623
  msg.setIsActive(value);
6622
6624
  break;
6625
+ case 4:
6626
+ var value = /** @type {number} */ (reader.readInt32());
6627
+ msg.setIsRealBalanceAllowed(value);
6628
+ break;
6629
+ case 5:
6630
+ var value = /** @type {number} */ (reader.readInt32());
6631
+ msg.setIsBonusBalanceAllowed(value);
6632
+ break;
6623
6633
  default:
6624
6634
  reader.skipField();
6625
6635
  break;
@@ -6670,6 +6680,20 @@ proto.loyalty.WagerPoint.serializeBinaryToWriter = function(message, writer) {
6670
6680
  f
6671
6681
  );
6672
6682
  }
6683
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
6684
+ if (f != null) {
6685
+ writer.writeInt32(
6686
+ 4,
6687
+ f
6688
+ );
6689
+ }
6690
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
6691
+ if (f != null) {
6692
+ writer.writeInt32(
6693
+ 5,
6694
+ f
6695
+ );
6696
+ }
6673
6697
  };
6674
6698
 
6675
6699
 
@@ -6745,6 +6769,78 @@ proto.loyalty.WagerPoint.prototype.hasIsActive = function() {
6745
6769
  };
6746
6770
 
6747
6771
 
6772
+ /**
6773
+ * optional int32 is_real_balance_allowed = 4;
6774
+ * @return {number}
6775
+ */
6776
+ proto.loyalty.WagerPoint.prototype.getIsRealBalanceAllowed = function() {
6777
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
6778
+ };
6779
+
6780
+
6781
+ /**
6782
+ * @param {number} value
6783
+ * @return {!proto.loyalty.WagerPoint} returns this
6784
+ */
6785
+ proto.loyalty.WagerPoint.prototype.setIsRealBalanceAllowed = function(value) {
6786
+ return jspb.Message.setField(this, 4, value);
6787
+ };
6788
+
6789
+
6790
+ /**
6791
+ * Clears the field making it undefined.
6792
+ * @return {!proto.loyalty.WagerPoint} returns this
6793
+ */
6794
+ proto.loyalty.WagerPoint.prototype.clearIsRealBalanceAllowed = function() {
6795
+ return jspb.Message.setField(this, 4, undefined);
6796
+ };
6797
+
6798
+
6799
+ /**
6800
+ * Returns whether this field is set.
6801
+ * @return {boolean}
6802
+ */
6803
+ proto.loyalty.WagerPoint.prototype.hasIsRealBalanceAllowed = function() {
6804
+ return jspb.Message.getField(this, 4) != null;
6805
+ };
6806
+
6807
+
6808
+ /**
6809
+ * optional int32 is_bonus_balance_allowed = 5;
6810
+ * @return {number}
6811
+ */
6812
+ proto.loyalty.WagerPoint.prototype.getIsBonusBalanceAllowed = function() {
6813
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
6814
+ };
6815
+
6816
+
6817
+ /**
6818
+ * @param {number} value
6819
+ * @return {!proto.loyalty.WagerPoint} returns this
6820
+ */
6821
+ proto.loyalty.WagerPoint.prototype.setIsBonusBalanceAllowed = function(value) {
6822
+ return jspb.Message.setField(this, 5, value);
6823
+ };
6824
+
6825
+
6826
+ /**
6827
+ * Clears the field making it undefined.
6828
+ * @return {!proto.loyalty.WagerPoint} returns this
6829
+ */
6830
+ proto.loyalty.WagerPoint.prototype.clearIsBonusBalanceAllowed = function() {
6831
+ return jspb.Message.setField(this, 5, undefined);
6832
+ };
6833
+
6834
+
6835
+ /**
6836
+ * Returns whether this field is set.
6837
+ * @return {boolean}
6838
+ */
6839
+ proto.loyalty.WagerPoint.prototype.hasIsBonusBalanceAllowed = function() {
6840
+ return jspb.Message.getField(this, 5) != null;
6841
+ };
6842
+
6843
+
6748
6844
 
6749
6845
 
6750
6846
 
@@ -8554,7 +8650,8 @@ proto.loyalty.UserLoyaltyResponse.toObject = function(includeInstance, msg) {
8554
8650
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
8555
8651
  pointsToComplete: jspb.Message.getFieldWithDefault(msg, 5, 0),
8556
8652
  image: jspb.Message.getFieldWithDefault(msg, 6, ""),
8557
- currentPoints: jspb.Message.getFieldWithDefault(msg, 7, 0)
8653
+ currentPoints: jspb.Message.getFieldWithDefault(msg, 7, 0),
8654
+ currentPointsDecimal: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0)
8558
8655
  };
8559
8656
 
8560
8657
  if (includeInstance) {
@@ -8619,6 +8716,10 @@ proto.loyalty.UserLoyaltyResponse.deserializeBinaryFromReader = function(msg, re
8619
8716
  var value = /** @type {number} */ (reader.readInt32());
8620
8717
  msg.setCurrentPoints(value);
8621
8718
  break;
8719
+ case 8:
8720
+ var value = /** @type {number} */ (reader.readDouble());
8721
+ msg.setCurrentPointsDecimal(value);
8722
+ break;
8622
8723
  default:
8623
8724
  reader.skipField();
8624
8725
  break;
@@ -8697,6 +8798,13 @@ proto.loyalty.UserLoyaltyResponse.serializeBinaryToWriter = function(message, wr
8697
8798
  f
8698
8799
  );
8699
8800
  }
8801
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
8802
+ if (f != null) {
8803
+ writer.writeDouble(
8804
+ 8,
8805
+ f
8806
+ );
8807
+ }
8700
8808
  };
8701
8809
 
8702
8810
 
@@ -8952,6 +9060,42 @@ proto.loyalty.UserLoyaltyResponse.prototype.hasCurrentPoints = function() {
8952
9060
  };
8953
9061
 
8954
9062
 
9063
+ /**
9064
+ * optional double current_points_decimal = 8;
9065
+ * @return {number}
9066
+ */
9067
+ proto.loyalty.UserLoyaltyResponse.prototype.getCurrentPointsDecimal = function() {
9068
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
9069
+ };
9070
+
9071
+
9072
+ /**
9073
+ * @param {number} value
9074
+ * @return {!proto.loyalty.UserLoyaltyResponse} returns this
9075
+ */
9076
+ proto.loyalty.UserLoyaltyResponse.prototype.setCurrentPointsDecimal = function(value) {
9077
+ return jspb.Message.setField(this, 8, value);
9078
+ };
9079
+
9080
+
9081
+ /**
9082
+ * Clears the field making it undefined.
9083
+ * @return {!proto.loyalty.UserLoyaltyResponse} returns this
9084
+ */
9085
+ proto.loyalty.UserLoyaltyResponse.prototype.clearCurrentPointsDecimal = function() {
9086
+ return jspb.Message.setField(this, 8, undefined);
9087
+ };
9088
+
9089
+
9090
+ /**
9091
+ * Returns whether this field is set.
9092
+ * @return {boolean}
9093
+ */
9094
+ proto.loyalty.UserLoyaltyResponse.prototype.hasCurrentPointsDecimal = function() {
9095
+ return jspb.Message.getField(this, 8) != null;
9096
+ };
9097
+
9098
+
8955
9099
 
8956
9100
 
8957
9101
 
@@ -8987,7 +9131,8 @@ proto.loyalty.UserLoyaltyPoint.toObject = function(includeInstance, msg) {
8987
9131
  userPointId: jspb.Message.getFieldWithDefault(msg, 1, 0),
8988
9132
  type: jspb.Message.getFieldWithDefault(msg, 2, ""),
8989
9133
  points: jspb.Message.getFieldWithDefault(msg, 3, 0),
8990
- created: jspb.Message.getFieldWithDefault(msg, 4, "")
9134
+ created: jspb.Message.getFieldWithDefault(msg, 4, ""),
9135
+ pointsDecimal: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
8991
9136
  };
8992
9137
 
8993
9138
  if (includeInstance) {
@@ -9040,6 +9185,10 @@ proto.loyalty.UserLoyaltyPoint.deserializeBinaryFromReader = function(msg, reade
9040
9185
  var value = /** @type {string} */ (reader.readString());
9041
9186
  msg.setCreated(value);
9042
9187
  break;
9188
+ case 5:
9189
+ var value = /** @type {number} */ (reader.readDouble());
9190
+ msg.setPointsDecimal(value);
9191
+ break;
9043
9192
  default:
9044
9193
  reader.skipField();
9045
9194
  break;
@@ -9097,6 +9246,13 @@ proto.loyalty.UserLoyaltyPoint.serializeBinaryToWriter = function(message, write
9097
9246
  f
9098
9247
  );
9099
9248
  }
9249
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
9250
+ if (f != null) {
9251
+ writer.writeDouble(
9252
+ 5,
9253
+ f
9254
+ );
9255
+ }
9100
9256
  };
9101
9257
 
9102
9258
 
@@ -9190,6 +9346,42 @@ proto.loyalty.UserLoyaltyPoint.prototype.hasCreated = function() {
9190
9346
  };
9191
9347
 
9192
9348
 
9349
+ /**
9350
+ * optional double points_decimal = 5;
9351
+ * @return {number}
9352
+ */
9353
+ proto.loyalty.UserLoyaltyPoint.prototype.getPointsDecimal = function() {
9354
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
9355
+ };
9356
+
9357
+
9358
+ /**
9359
+ * @param {number} value
9360
+ * @return {!proto.loyalty.UserLoyaltyPoint} returns this
9361
+ */
9362
+ proto.loyalty.UserLoyaltyPoint.prototype.setPointsDecimal = function(value) {
9363
+ return jspb.Message.setField(this, 5, value);
9364
+ };
9365
+
9366
+
9367
+ /**
9368
+ * Clears the field making it undefined.
9369
+ * @return {!proto.loyalty.UserLoyaltyPoint} returns this
9370
+ */
9371
+ proto.loyalty.UserLoyaltyPoint.prototype.clearPointsDecimal = function() {
9372
+ return jspb.Message.setField(this, 5, undefined);
9373
+ };
9374
+
9375
+
9376
+ /**
9377
+ * Returns whether this field is set.
9378
+ * @return {boolean}
9379
+ */
9380
+ proto.loyalty.UserLoyaltyPoint.prototype.hasPointsDecimal = function() {
9381
+ return jspb.Message.getField(this, 5) != null;
9382
+ };
9383
+
9384
+
9193
9385
 
9194
9386
  /**
9195
9387
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.420",
3
+ "version": "1.2.422",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {