protobuf-platform 1.2.262 → 1.2.264

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.262",
3
+ "version": "1.2.264",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -239,6 +239,9 @@ message UserBalanceRequest {
239
239
  int32 id = 1;
240
240
  float amount = 2;
241
241
  optional string balance_type = 3;
242
+ optional string currency = 4;
243
+ optional int64 delta_minor = 5;
244
+ optional int32 currency_scale = 6;
242
245
  }
243
246
  message UserPasswordRequest {
244
247
  int32 id = 1;
package/user/user_pb.js CHANGED
@@ -9516,7 +9516,10 @@ proto.user.UserBalanceRequest.toObject = function(includeInstance, msg) {
9516
9516
  var f, obj = {
9517
9517
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
9518
9518
  amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
9519
- balanceType: jspb.Message.getFieldWithDefault(msg, 3, "")
9519
+ balanceType: jspb.Message.getFieldWithDefault(msg, 3, ""),
9520
+ currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
9521
+ deltaMinor: jspb.Message.getFieldWithDefault(msg, 5, 0),
9522
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 6, 0)
9520
9523
  };
9521
9524
 
9522
9525
  if (includeInstance) {
@@ -9565,6 +9568,18 @@ proto.user.UserBalanceRequest.deserializeBinaryFromReader = function(msg, reader
9565
9568
  var value = /** @type {string} */ (reader.readString());
9566
9569
  msg.setBalanceType(value);
9567
9570
  break;
9571
+ case 4:
9572
+ var value = /** @type {string} */ (reader.readString());
9573
+ msg.setCurrency(value);
9574
+ break;
9575
+ case 5:
9576
+ var value = /** @type {number} */ (reader.readInt64());
9577
+ msg.setDeltaMinor(value);
9578
+ break;
9579
+ case 6:
9580
+ var value = /** @type {number} */ (reader.readInt32());
9581
+ msg.setCurrencyScale(value);
9582
+ break;
9568
9583
  default:
9569
9584
  reader.skipField();
9570
9585
  break;
@@ -9615,6 +9630,27 @@ proto.user.UserBalanceRequest.serializeBinaryToWriter = function(message, writer
9615
9630
  f
9616
9631
  );
9617
9632
  }
9633
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
9634
+ if (f != null) {
9635
+ writer.writeString(
9636
+ 4,
9637
+ f
9638
+ );
9639
+ }
9640
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
9641
+ if (f != null) {
9642
+ writer.writeInt64(
9643
+ 5,
9644
+ f
9645
+ );
9646
+ }
9647
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
9648
+ if (f != null) {
9649
+ writer.writeInt32(
9650
+ 6,
9651
+ f
9652
+ );
9653
+ }
9618
9654
  };
9619
9655
 
9620
9656
 
@@ -9690,6 +9726,114 @@ proto.user.UserBalanceRequest.prototype.hasBalanceType = function() {
9690
9726
  };
9691
9727
 
9692
9728
 
9729
+ /**
9730
+ * optional string currency = 4;
9731
+ * @return {string}
9732
+ */
9733
+ proto.user.UserBalanceRequest.prototype.getCurrency = function() {
9734
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
9735
+ };
9736
+
9737
+
9738
+ /**
9739
+ * @param {string} value
9740
+ * @return {!proto.user.UserBalanceRequest} returns this
9741
+ */
9742
+ proto.user.UserBalanceRequest.prototype.setCurrency = function(value) {
9743
+ return jspb.Message.setField(this, 4, value);
9744
+ };
9745
+
9746
+
9747
+ /**
9748
+ * Clears the field making it undefined.
9749
+ * @return {!proto.user.UserBalanceRequest} returns this
9750
+ */
9751
+ proto.user.UserBalanceRequest.prototype.clearCurrency = function() {
9752
+ return jspb.Message.setField(this, 4, undefined);
9753
+ };
9754
+
9755
+
9756
+ /**
9757
+ * Returns whether this field is set.
9758
+ * @return {boolean}
9759
+ */
9760
+ proto.user.UserBalanceRequest.prototype.hasCurrency = function() {
9761
+ return jspb.Message.getField(this, 4) != null;
9762
+ };
9763
+
9764
+
9765
+ /**
9766
+ * optional int64 delta_minor = 5;
9767
+ * @return {number}
9768
+ */
9769
+ proto.user.UserBalanceRequest.prototype.getDeltaMinor = function() {
9770
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
9771
+ };
9772
+
9773
+
9774
+ /**
9775
+ * @param {number} value
9776
+ * @return {!proto.user.UserBalanceRequest} returns this
9777
+ */
9778
+ proto.user.UserBalanceRequest.prototype.setDeltaMinor = function(value) {
9779
+ return jspb.Message.setField(this, 5, value);
9780
+ };
9781
+
9782
+
9783
+ /**
9784
+ * Clears the field making it undefined.
9785
+ * @return {!proto.user.UserBalanceRequest} returns this
9786
+ */
9787
+ proto.user.UserBalanceRequest.prototype.clearDeltaMinor = function() {
9788
+ return jspb.Message.setField(this, 5, undefined);
9789
+ };
9790
+
9791
+
9792
+ /**
9793
+ * Returns whether this field is set.
9794
+ * @return {boolean}
9795
+ */
9796
+ proto.user.UserBalanceRequest.prototype.hasDeltaMinor = function() {
9797
+ return jspb.Message.getField(this, 5) != null;
9798
+ };
9799
+
9800
+
9801
+ /**
9802
+ * optional int32 currency_scale = 6;
9803
+ * @return {number}
9804
+ */
9805
+ proto.user.UserBalanceRequest.prototype.getCurrencyScale = function() {
9806
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
9807
+ };
9808
+
9809
+
9810
+ /**
9811
+ * @param {number} value
9812
+ * @return {!proto.user.UserBalanceRequest} returns this
9813
+ */
9814
+ proto.user.UserBalanceRequest.prototype.setCurrencyScale = function(value) {
9815
+ return jspb.Message.setField(this, 6, value);
9816
+ };
9817
+
9818
+
9819
+ /**
9820
+ * Clears the field making it undefined.
9821
+ * @return {!proto.user.UserBalanceRequest} returns this
9822
+ */
9823
+ proto.user.UserBalanceRequest.prototype.clearCurrencyScale = function() {
9824
+ return jspb.Message.setField(this, 6, undefined);
9825
+ };
9826
+
9827
+
9828
+ /**
9829
+ * Returns whether this field is set.
9830
+ * @return {boolean}
9831
+ */
9832
+ proto.user.UserBalanceRequest.prototype.hasCurrencyScale = function() {
9833
+ return jspb.Message.getField(this, 6) != null;
9834
+ };
9835
+
9836
+
9693
9837
 
9694
9838
 
9695
9839