protobuf-platform 1.2.499 → 1.2.500

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.500",
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