protobuf-platform 1.2.499 → 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.499",
3
+ "version": "1.2.501",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -431,7 +431,7 @@ message DepositRedirectFormResponse {
431
431
  message AttemptWithdrawalRequest {
432
432
  int32 payment_method_id = 1;
433
433
  int32 user_id = 2;
434
- float amount = 3;
434
+ string amount = 3;
435
435
  optional string user_currency = 4;
436
436
  optional string user_country = 5;
437
437
  optional string origin_country = 6;
@@ -18460,7 +18460,7 @@ proto.payment.AttemptWithdrawalRequest.toObject = function(includeInstance, msg)
18460
18460
  var f, obj = {
18461
18461
  paymentMethodId: jspb.Message.getFieldWithDefault(msg, 1, 0),
18462
18462
  userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
18463
- amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
18463
+ amount: jspb.Message.getFieldWithDefault(msg, 3, ""),
18464
18464
  userCurrency: jspb.Message.getFieldWithDefault(msg, 4, ""),
18465
18465
  userCountry: jspb.Message.getFieldWithDefault(msg, 5, ""),
18466
18466
  originCountry: jspb.Message.getFieldWithDefault(msg, 6, ""),
@@ -18542,7 +18542,7 @@ proto.payment.AttemptWithdrawalRequest.deserializeBinaryFromReader = function(ms
18542
18542
  msg.setUserId(value);
18543
18543
  break;
18544
18544
  case 3:
18545
- var value = /** @type {number} */ (reader.readFloat());
18545
+ var value = /** @type {string} */ (reader.readString());
18546
18546
  msg.setAmount(value);
18547
18547
  break;
18548
18548
  case 4:
@@ -18733,8 +18733,8 @@ proto.payment.AttemptWithdrawalRequest.serializeBinaryToWriter = function(messag
18733
18733
  );
18734
18734
  }
18735
18735
  f = message.getAmount();
18736
- if (f !== 0.0) {
18737
- writer.writeFloat(
18736
+ if (f.length > 0) {
18737
+ writer.writeString(
18738
18738
  3,
18739
18739
  f
18740
18740
  );
@@ -19031,20 +19031,20 @@ proto.payment.AttemptWithdrawalRequest.prototype.setUserId = function(value) {
19031
19031
 
19032
19032
 
19033
19033
  /**
19034
- * optional float amount = 3;
19035
- * @return {number}
19034
+ * optional string amount = 3;
19035
+ * @return {string}
19036
19036
  */
19037
19037
  proto.payment.AttemptWithdrawalRequest.prototype.getAmount = function() {
19038
- return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
19038
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
19039
19039
  };
19040
19040
 
19041
19041
 
19042
19042
  /**
19043
- * @param {number} value
19043
+ * @param {string} value
19044
19044
  * @return {!proto.payment.AttemptWithdrawalRequest} returns this
19045
19045
  */
19046
19046
  proto.payment.AttemptWithdrawalRequest.prototype.setAmount = function(value) {
19047
- return jspb.Message.setProto3FloatField(this, 3, value);
19047
+ return jspb.Message.setProto3StringField(this, 3, value);
19048
19048
  };
19049
19049
 
19050
19050
 
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