protobuf-platform 1.2.500 → 1.2.501

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.500",
3
+ "version": "1.2.501",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -476,7 +476,8 @@ message UserBalanceRequest {
476
476
  message CheckWithdrawalEligibilityRequest {
477
477
  int32 user_id = 1;
478
478
  string currency = 2;
479
- int64 amount_minor = 3;
479
+ optional int64 amount_minor = 3;
480
+ optional string amount = 4;
480
481
  }
481
482
  message CheckWithdrawalEligibilityResponse {
482
483
  bool allowed = 1;
package/user/user_pb.js CHANGED
@@ -18255,7 +18255,8 @@ proto.user.CheckWithdrawalEligibilityRequest.toObject = function(includeInstance
18255
18255
  var f, obj = {
18256
18256
  userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
18257
18257
  currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
18258
- amountMinor: jspb.Message.getFieldWithDefault(msg, 3, 0)
18258
+ amountMinor: jspb.Message.getFieldWithDefault(msg, 3, 0),
18259
+ amount: jspb.Message.getFieldWithDefault(msg, 4, "")
18259
18260
  };
18260
18261
 
18261
18262
  if (includeInstance) {
@@ -18304,6 +18305,10 @@ proto.user.CheckWithdrawalEligibilityRequest.deserializeBinaryFromReader = funct
18304
18305
  var value = /** @type {number} */ (reader.readInt64());
18305
18306
  msg.setAmountMinor(value);
18306
18307
  break;
18308
+ case 4:
18309
+ var value = /** @type {string} */ (reader.readString());
18310
+ msg.setAmount(value);
18311
+ break;
18307
18312
  default:
18308
18313
  reader.skipField();
18309
18314
  break;
@@ -18347,13 +18352,20 @@ proto.user.CheckWithdrawalEligibilityRequest.serializeBinaryToWriter = function(
18347
18352
  f
18348
18353
  );
18349
18354
  }
18350
- f = message.getAmountMinor();
18351
- if (f !== 0) {
18355
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
18356
+ if (f != null) {
18352
18357
  writer.writeInt64(
18353
18358
  3,
18354
18359
  f
18355
18360
  );
18356
18361
  }
18362
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
18363
+ if (f != null) {
18364
+ writer.writeString(
18365
+ 4,
18366
+ f
18367
+ );
18368
+ }
18357
18369
  };
18358
18370
 
18359
18371
 
@@ -18407,7 +18419,61 @@ proto.user.CheckWithdrawalEligibilityRequest.prototype.getAmountMinor = function
18407
18419
  * @return {!proto.user.CheckWithdrawalEligibilityRequest} returns this
18408
18420
  */
18409
18421
  proto.user.CheckWithdrawalEligibilityRequest.prototype.setAmountMinor = function(value) {
18410
- return jspb.Message.setProto3IntField(this, 3, value);
18422
+ return jspb.Message.setField(this, 3, value);
18423
+ };
18424
+
18425
+
18426
+ /**
18427
+ * Clears the field making it undefined.
18428
+ * @return {!proto.user.CheckWithdrawalEligibilityRequest} returns this
18429
+ */
18430
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.clearAmountMinor = function() {
18431
+ return jspb.Message.setField(this, 3, undefined);
18432
+ };
18433
+
18434
+
18435
+ /**
18436
+ * Returns whether this field is set.
18437
+ * @return {boolean}
18438
+ */
18439
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.hasAmountMinor = function() {
18440
+ return jspb.Message.getField(this, 3) != null;
18441
+ };
18442
+
18443
+
18444
+ /**
18445
+ * optional string amount = 4;
18446
+ * @return {string}
18447
+ */
18448
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.getAmount = function() {
18449
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
18450
+ };
18451
+
18452
+
18453
+ /**
18454
+ * @param {string} value
18455
+ * @return {!proto.user.CheckWithdrawalEligibilityRequest} returns this
18456
+ */
18457
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.setAmount = function(value) {
18458
+ return jspb.Message.setField(this, 4, value);
18459
+ };
18460
+
18461
+
18462
+ /**
18463
+ * Clears the field making it undefined.
18464
+ * @return {!proto.user.CheckWithdrawalEligibilityRequest} returns this
18465
+ */
18466
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.clearAmount = function() {
18467
+ return jspb.Message.setField(this, 4, undefined);
18468
+ };
18469
+
18470
+
18471
+ /**
18472
+ * Returns whether this field is set.
18473
+ * @return {boolean}
18474
+ */
18475
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.hasAmount = function() {
18476
+ return jspb.Message.getField(this, 4) != null;
18411
18477
  };
18412
18478
 
18413
18479