protobuf-platform 1.2.262 → 1.2.266

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.266",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -171,6 +171,7 @@ message MethodItemRequest {
171
171
  optional string transaction_type = 7;
172
172
  optional string processing_type = 8;
173
173
  optional string code = 9;
174
+ optional string currency_type = 10;
174
175
  }
175
176
  message GetMethodRequest {
176
177
  int32 id = 1;
@@ -7001,7 +7001,8 @@ proto.payment.MethodItemRequest.toObject = function(includeInstance, msg) {
7001
7001
  providerId: jspb.Message.getFieldWithDefault(msg, 6, 0),
7002
7002
  transactionType: jspb.Message.getFieldWithDefault(msg, 7, ""),
7003
7003
  processingType: jspb.Message.getFieldWithDefault(msg, 8, ""),
7004
- code: jspb.Message.getFieldWithDefault(msg, 9, "")
7004
+ code: jspb.Message.getFieldWithDefault(msg, 9, ""),
7005
+ currencyType: jspb.Message.getFieldWithDefault(msg, 10, "")
7005
7006
  };
7006
7007
 
7007
7008
  if (includeInstance) {
@@ -7070,6 +7071,10 @@ proto.payment.MethodItemRequest.deserializeBinaryFromReader = function(msg, read
7070
7071
  var value = /** @type {string} */ (reader.readString());
7071
7072
  msg.setCode(value);
7072
7073
  break;
7074
+ case 10:
7075
+ var value = /** @type {string} */ (reader.readString());
7076
+ msg.setCurrencyType(value);
7077
+ break;
7073
7078
  default:
7074
7079
  reader.skipField();
7075
7080
  break;
@@ -7155,6 +7160,13 @@ proto.payment.MethodItemRequest.serializeBinaryToWriter = function(message, writ
7155
7160
  f
7156
7161
  );
7157
7162
  }
7163
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
7164
+ if (f != null) {
7165
+ writer.writeString(
7166
+ 10,
7167
+ f
7168
+ );
7169
+ }
7158
7170
  };
7159
7171
 
7160
7172
 
@@ -7446,6 +7458,42 @@ proto.payment.MethodItemRequest.prototype.hasCode = function() {
7446
7458
  };
7447
7459
 
7448
7460
 
7461
+ /**
7462
+ * optional string currency_type = 10;
7463
+ * @return {string}
7464
+ */
7465
+ proto.payment.MethodItemRequest.prototype.getCurrencyType = function() {
7466
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
7467
+ };
7468
+
7469
+
7470
+ /**
7471
+ * @param {string} value
7472
+ * @return {!proto.payment.MethodItemRequest} returns this
7473
+ */
7474
+ proto.payment.MethodItemRequest.prototype.setCurrencyType = function(value) {
7475
+ return jspb.Message.setField(this, 10, value);
7476
+ };
7477
+
7478
+
7479
+ /**
7480
+ * Clears the field making it undefined.
7481
+ * @return {!proto.payment.MethodItemRequest} returns this
7482
+ */
7483
+ proto.payment.MethodItemRequest.prototype.clearCurrencyType = function() {
7484
+ return jspb.Message.setField(this, 10, undefined);
7485
+ };
7486
+
7487
+
7488
+ /**
7489
+ * Returns whether this field is set.
7490
+ * @return {boolean}
7491
+ */
7492
+ proto.payment.MethodItemRequest.prototype.hasCurrencyType = function() {
7493
+ return jspb.Message.getField(this, 10) != null;
7494
+ };
7495
+
7496
+
7449
7497
 
7450
7498
 
7451
7499
 
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