protobuf-platform 1.2.362 → 1.2.363

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/cms/cms.proto CHANGED
@@ -1229,7 +1229,7 @@ message PresetCashierPaymentOrderGroup {
1229
1229
  repeated int32 method_ids = 2;
1230
1230
  }
1231
1231
  message PresetCashierConfigItem {
1232
- int32 id = 1;
1232
+ optional int32 id = 1;
1233
1233
  int32 preset_id = 2;
1234
1234
  repeated PresetCashierCurrencyAmounts currencies = 3;
1235
1235
  repeated PresetCashierPaymentOrderGroup payment_groups = 4;
package/cms/cms_pb.js CHANGED
@@ -46778,8 +46778,8 @@ proto.cms.PresetCashierConfigItem.prototype.serializeBinary = function() {
46778
46778
  */
46779
46779
  proto.cms.PresetCashierConfigItem.serializeBinaryToWriter = function(message, writer) {
46780
46780
  var f = undefined;
46781
- f = message.getId();
46782
- if (f !== 0) {
46781
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
46782
+ if (f != null) {
46783
46783
  writer.writeInt32(
46784
46784
  1,
46785
46785
  f
@@ -46846,7 +46846,25 @@ proto.cms.PresetCashierConfigItem.prototype.getId = function() {
46846
46846
  * @return {!proto.cms.PresetCashierConfigItem} returns this
46847
46847
  */
46848
46848
  proto.cms.PresetCashierConfigItem.prototype.setId = function(value) {
46849
- return jspb.Message.setProto3IntField(this, 1, value);
46849
+ return jspb.Message.setField(this, 1, value);
46850
+ };
46851
+
46852
+
46853
+ /**
46854
+ * Clears the field making it undefined.
46855
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
46856
+ */
46857
+ proto.cms.PresetCashierConfigItem.prototype.clearId = function() {
46858
+ return jspb.Message.setField(this, 1, undefined);
46859
+ };
46860
+
46861
+
46862
+ /**
46863
+ * Returns whether this field is set.
46864
+ * @return {boolean}
46865
+ */
46866
+ proto.cms.PresetCashierConfigItem.prototype.hasId = function() {
46867
+ return jspb.Message.getField(this, 1) != null;
46850
46868
  };
46851
46869
 
46852
46870
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.362",
3
+ "version": "1.2.363",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {