protobuf-platform 1.2.672 → 1.2.673

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.672",
3
+ "version": "1.2.673",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -853,6 +853,7 @@ message UserPaymentMethodItem {
853
853
  optional int32 is_top = 26;
854
854
  optional int32 is_popular = 27;
855
855
  optional int32 is_new = 28;
856
+ optional bool allow_zero_amount = 29;
856
857
  }
857
858
  message UserPaymentMethodsResponse {
858
859
  repeated UserPaymentMethodItem items = 1;
@@ -35802,7 +35802,8 @@ proto.payment.UserPaymentMethodItem.toObject = function(includeInstance, msg) {
35802
35802
  isVip: jspb.Message.getFieldWithDefault(msg, 25, 0),
35803
35803
  isTop: jspb.Message.getFieldWithDefault(msg, 26, 0),
35804
35804
  isPopular: jspb.Message.getFieldWithDefault(msg, 27, 0),
35805
- isNew: jspb.Message.getFieldWithDefault(msg, 28, 0)
35805
+ isNew: jspb.Message.getFieldWithDefault(msg, 28, 0),
35806
+ allowZeroAmount: jspb.Message.getBooleanFieldWithDefault(msg, 29, false)
35806
35807
  };
35807
35808
 
35808
35809
  if (includeInstance) {
@@ -35952,6 +35953,10 @@ proto.payment.UserPaymentMethodItem.deserializeBinaryFromReader = function(msg,
35952
35953
  var value = /** @type {number} */ (reader.readInt32());
35953
35954
  msg.setIsNew(value);
35954
35955
  break;
35956
+ case 29:
35957
+ var value = /** @type {boolean} */ (reader.readBool());
35958
+ msg.setAllowZeroAmount(value);
35959
+ break;
35955
35960
  default:
35956
35961
  reader.skipField();
35957
35962
  break;
@@ -36178,6 +36183,13 @@ proto.payment.UserPaymentMethodItem.serializeBinaryToWriter = function(message,
36178
36183
  f
36179
36184
  );
36180
36185
  }
36186
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 29));
36187
+ if (f != null) {
36188
+ writer.writeBool(
36189
+ 29,
36190
+ f
36191
+ );
36192
+ }
36181
36193
  };
36182
36194
 
36183
36195
 
@@ -37011,6 +37023,42 @@ proto.payment.UserPaymentMethodItem.prototype.hasIsNew = function() {
37011
37023
  };
37012
37024
 
37013
37025
 
37026
+ /**
37027
+ * optional bool allow_zero_amount = 29;
37028
+ * @return {boolean}
37029
+ */
37030
+ proto.payment.UserPaymentMethodItem.prototype.getAllowZeroAmount = function() {
37031
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 29, false));
37032
+ };
37033
+
37034
+
37035
+ /**
37036
+ * @param {boolean} value
37037
+ * @return {!proto.payment.UserPaymentMethodItem} returns this
37038
+ */
37039
+ proto.payment.UserPaymentMethodItem.prototype.setAllowZeroAmount = function(value) {
37040
+ return jspb.Message.setField(this, 29, value);
37041
+ };
37042
+
37043
+
37044
+ /**
37045
+ * Clears the field making it undefined.
37046
+ * @return {!proto.payment.UserPaymentMethodItem} returns this
37047
+ */
37048
+ proto.payment.UserPaymentMethodItem.prototype.clearAllowZeroAmount = function() {
37049
+ return jspb.Message.setField(this, 29, undefined);
37050
+ };
37051
+
37052
+
37053
+ /**
37054
+ * Returns whether this field is set.
37055
+ * @return {boolean}
37056
+ */
37057
+ proto.payment.UserPaymentMethodItem.prototype.hasAllowZeroAmount = function() {
37058
+ return jspb.Message.getField(this, 29) != null;
37059
+ };
37060
+
37061
+
37014
37062
 
37015
37063
  /**
37016
37064
  * List of repeated fields within this message type.