protobuf-platform 1.2.372 → 1.2.373

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
@@ -1228,6 +1228,11 @@ message PresetCashierPaymentOrderGroup {
1228
1228
  string group_key = 1;
1229
1229
  repeated int32 method_ids = 2;
1230
1230
  }
1231
+ message PresetCashierGeoConfig {
1232
+ string geo = 1;
1233
+ repeated PresetCashierCurrencyAmounts currencies = 2;
1234
+ repeated PresetCashierPaymentOrderGroup payment_groups = 3;
1235
+ }
1231
1236
  message PresetCashierConfigItem {
1232
1237
  optional int32 id = 1;
1233
1238
  int32 preset_id = 2;
@@ -1236,6 +1241,7 @@ message PresetCashierConfigItem {
1236
1241
  optional int32 is_active = 5;
1237
1242
  optional string created_at = 6;
1238
1243
  optional string updated_at = 7;
1244
+ optional string geo = 8;
1239
1245
  }
1240
1246
  message SetPresetCashierConfigRequest {
1241
1247
  optional int32 id = 1;
@@ -1243,6 +1249,7 @@ message SetPresetCashierConfigRequest {
1243
1249
  repeated PresetCashierCurrencyAmounts currencies = 3;
1244
1250
  repeated PresetCashierPaymentOrderGroup payment_groups = 4;
1245
1251
  optional int32 is_active = 5;
1252
+ repeated PresetCashierGeoConfig geo_configs = 6;
1246
1253
  }
1247
1254
  message GetPresetCashierConfigRequest {
1248
1255
  int32 preset_id = 1;
package/cms/cms_pb.js CHANGED
@@ -166,6 +166,7 @@ goog.exportSymbol('proto.cms.PreDepositFormWidgetItem', null, global);
166
166
  goog.exportSymbol('proto.cms.PresetCashierConfigItem', null, global);
167
167
  goog.exportSymbol('proto.cms.PresetCashierConfigsResponse', null, global);
168
168
  goog.exportSymbol('proto.cms.PresetCashierCurrencyAmounts', null, global);
169
+ goog.exportSymbol('proto.cms.PresetCashierGeoConfig', null, global);
169
170
  goog.exportSymbol('proto.cms.PresetCashierPaymentOrderGroup', null, global);
170
171
  goog.exportSymbol('proto.cms.PresetWidgetItem', null, global);
171
172
  goog.exportSymbol('proto.cms.PresetWidgetsResponse', null, global);
@@ -3665,6 +3666,27 @@ if (goog.DEBUG && !COMPILED) {
3665
3666
  */
3666
3667
  proto.cms.PresetCashierPaymentOrderGroup.displayName = 'proto.cms.PresetCashierPaymentOrderGroup';
3667
3668
  }
3669
+ /**
3670
+ * Generated by JsPbCodeGenerator.
3671
+ * @param {Array=} opt_data Optional initial data array, typically from a
3672
+ * server response, or constructed directly in Javascript. The array is used
3673
+ * in place and becomes part of the constructed object. It is not cloned.
3674
+ * If no data is provided, the constructed object will be empty, but still
3675
+ * valid.
3676
+ * @extends {jspb.Message}
3677
+ * @constructor
3678
+ */
3679
+ proto.cms.PresetCashierGeoConfig = function(opt_data) {
3680
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.cms.PresetCashierGeoConfig.repeatedFields_, null);
3681
+ };
3682
+ goog.inherits(proto.cms.PresetCashierGeoConfig, jspb.Message);
3683
+ if (goog.DEBUG && !COMPILED) {
3684
+ /**
3685
+ * @public
3686
+ * @override
3687
+ */
3688
+ proto.cms.PresetCashierGeoConfig.displayName = 'proto.cms.PresetCashierGeoConfig';
3689
+ }
3668
3690
  /**
3669
3691
  * Generated by JsPbCodeGenerator.
3670
3692
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -46636,6 +46658,249 @@ proto.cms.PresetCashierPaymentOrderGroup.prototype.clearMethodIdsList = function
46636
46658
 
46637
46659
 
46638
46660
 
46661
+ /**
46662
+ * List of repeated fields within this message type.
46663
+ * @private {!Array<number>}
46664
+ * @const
46665
+ */
46666
+ proto.cms.PresetCashierGeoConfig.repeatedFields_ = [2,3];
46667
+
46668
+
46669
+
46670
+ if (jspb.Message.GENERATE_TO_OBJECT) {
46671
+ /**
46672
+ * Creates an object representation of this proto.
46673
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
46674
+ * Optional fields that are not set will be set to undefined.
46675
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
46676
+ * For the list of reserved names please see:
46677
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
46678
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
46679
+ * JSPB instance for transitional soy proto support:
46680
+ * http://goto/soy-param-migration
46681
+ * @return {!Object}
46682
+ */
46683
+ proto.cms.PresetCashierGeoConfig.prototype.toObject = function(opt_includeInstance) {
46684
+ return proto.cms.PresetCashierGeoConfig.toObject(opt_includeInstance, this);
46685
+ };
46686
+
46687
+
46688
+ /**
46689
+ * Static version of the {@see toObject} method.
46690
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
46691
+ * the JSPB instance for transitional soy proto support:
46692
+ * http://goto/soy-param-migration
46693
+ * @param {!proto.cms.PresetCashierGeoConfig} msg The msg instance to transform.
46694
+ * @return {!Object}
46695
+ * @suppress {unusedLocalVariables} f is only used for nested messages
46696
+ */
46697
+ proto.cms.PresetCashierGeoConfig.toObject = function(includeInstance, msg) {
46698
+ var f, obj = {
46699
+ geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
46700
+ currenciesList: jspb.Message.toObjectList(msg.getCurrenciesList(),
46701
+ proto.cms.PresetCashierCurrencyAmounts.toObject, includeInstance),
46702
+ paymentGroupsList: jspb.Message.toObjectList(msg.getPaymentGroupsList(),
46703
+ proto.cms.PresetCashierPaymentOrderGroup.toObject, includeInstance)
46704
+ };
46705
+
46706
+ if (includeInstance) {
46707
+ obj.$jspbMessageInstance = msg;
46708
+ }
46709
+ return obj;
46710
+ };
46711
+ }
46712
+
46713
+
46714
+ /**
46715
+ * Deserializes binary data (in protobuf wire format).
46716
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
46717
+ * @return {!proto.cms.PresetCashierGeoConfig}
46718
+ */
46719
+ proto.cms.PresetCashierGeoConfig.deserializeBinary = function(bytes) {
46720
+ var reader = new jspb.BinaryReader(bytes);
46721
+ var msg = new proto.cms.PresetCashierGeoConfig;
46722
+ return proto.cms.PresetCashierGeoConfig.deserializeBinaryFromReader(msg, reader);
46723
+ };
46724
+
46725
+
46726
+ /**
46727
+ * Deserializes binary data (in protobuf wire format) from the
46728
+ * given reader into the given message object.
46729
+ * @param {!proto.cms.PresetCashierGeoConfig} msg The message object to deserialize into.
46730
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
46731
+ * @return {!proto.cms.PresetCashierGeoConfig}
46732
+ */
46733
+ proto.cms.PresetCashierGeoConfig.deserializeBinaryFromReader = function(msg, reader) {
46734
+ while (reader.nextField()) {
46735
+ if (reader.isEndGroup()) {
46736
+ break;
46737
+ }
46738
+ var field = reader.getFieldNumber();
46739
+ switch (field) {
46740
+ case 1:
46741
+ var value = /** @type {string} */ (reader.readString());
46742
+ msg.setGeo(value);
46743
+ break;
46744
+ case 2:
46745
+ var value = new proto.cms.PresetCashierCurrencyAmounts;
46746
+ reader.readMessage(value,proto.cms.PresetCashierCurrencyAmounts.deserializeBinaryFromReader);
46747
+ msg.addCurrencies(value);
46748
+ break;
46749
+ case 3:
46750
+ var value = new proto.cms.PresetCashierPaymentOrderGroup;
46751
+ reader.readMessage(value,proto.cms.PresetCashierPaymentOrderGroup.deserializeBinaryFromReader);
46752
+ msg.addPaymentGroups(value);
46753
+ break;
46754
+ default:
46755
+ reader.skipField();
46756
+ break;
46757
+ }
46758
+ }
46759
+ return msg;
46760
+ };
46761
+
46762
+
46763
+ /**
46764
+ * Serializes the message to binary data (in protobuf wire format).
46765
+ * @return {!Uint8Array}
46766
+ */
46767
+ proto.cms.PresetCashierGeoConfig.prototype.serializeBinary = function() {
46768
+ var writer = new jspb.BinaryWriter();
46769
+ proto.cms.PresetCashierGeoConfig.serializeBinaryToWriter(this, writer);
46770
+ return writer.getResultBuffer();
46771
+ };
46772
+
46773
+
46774
+ /**
46775
+ * Serializes the given message to binary data (in protobuf wire
46776
+ * format), writing to the given BinaryWriter.
46777
+ * @param {!proto.cms.PresetCashierGeoConfig} message
46778
+ * @param {!jspb.BinaryWriter} writer
46779
+ * @suppress {unusedLocalVariables} f is only used for nested messages
46780
+ */
46781
+ proto.cms.PresetCashierGeoConfig.serializeBinaryToWriter = function(message, writer) {
46782
+ var f = undefined;
46783
+ f = message.getGeo();
46784
+ if (f.length > 0) {
46785
+ writer.writeString(
46786
+ 1,
46787
+ f
46788
+ );
46789
+ }
46790
+ f = message.getCurrenciesList();
46791
+ if (f.length > 0) {
46792
+ writer.writeRepeatedMessage(
46793
+ 2,
46794
+ f,
46795
+ proto.cms.PresetCashierCurrencyAmounts.serializeBinaryToWriter
46796
+ );
46797
+ }
46798
+ f = message.getPaymentGroupsList();
46799
+ if (f.length > 0) {
46800
+ writer.writeRepeatedMessage(
46801
+ 3,
46802
+ f,
46803
+ proto.cms.PresetCashierPaymentOrderGroup.serializeBinaryToWriter
46804
+ );
46805
+ }
46806
+ };
46807
+
46808
+
46809
+ /**
46810
+ * optional string geo = 1;
46811
+ * @return {string}
46812
+ */
46813
+ proto.cms.PresetCashierGeoConfig.prototype.getGeo = function() {
46814
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
46815
+ };
46816
+
46817
+
46818
+ /**
46819
+ * @param {string} value
46820
+ * @return {!proto.cms.PresetCashierGeoConfig} returns this
46821
+ */
46822
+ proto.cms.PresetCashierGeoConfig.prototype.setGeo = function(value) {
46823
+ return jspb.Message.setProto3StringField(this, 1, value);
46824
+ };
46825
+
46826
+
46827
+ /**
46828
+ * repeated PresetCashierCurrencyAmounts currencies = 2;
46829
+ * @return {!Array<!proto.cms.PresetCashierCurrencyAmounts>}
46830
+ */
46831
+ proto.cms.PresetCashierGeoConfig.prototype.getCurrenciesList = function() {
46832
+ return /** @type{!Array<!proto.cms.PresetCashierCurrencyAmounts>} */ (
46833
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierCurrencyAmounts, 2));
46834
+ };
46835
+
46836
+
46837
+ /**
46838
+ * @param {!Array<!proto.cms.PresetCashierCurrencyAmounts>} value
46839
+ * @return {!proto.cms.PresetCashierGeoConfig} returns this
46840
+ */
46841
+ proto.cms.PresetCashierGeoConfig.prototype.setCurrenciesList = function(value) {
46842
+ return jspb.Message.setRepeatedWrapperField(this, 2, value);
46843
+ };
46844
+
46845
+
46846
+ /**
46847
+ * @param {!proto.cms.PresetCashierCurrencyAmounts=} opt_value
46848
+ * @param {number=} opt_index
46849
+ * @return {!proto.cms.PresetCashierCurrencyAmounts}
46850
+ */
46851
+ proto.cms.PresetCashierGeoConfig.prototype.addCurrencies = function(opt_value, opt_index) {
46852
+ return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.cms.PresetCashierCurrencyAmounts, opt_index);
46853
+ };
46854
+
46855
+
46856
+ /**
46857
+ * Clears the list making it empty but non-null.
46858
+ * @return {!proto.cms.PresetCashierGeoConfig} returns this
46859
+ */
46860
+ proto.cms.PresetCashierGeoConfig.prototype.clearCurrenciesList = function() {
46861
+ return this.setCurrenciesList([]);
46862
+ };
46863
+
46864
+
46865
+ /**
46866
+ * repeated PresetCashierPaymentOrderGroup payment_groups = 3;
46867
+ * @return {!Array<!proto.cms.PresetCashierPaymentOrderGroup>}
46868
+ */
46869
+ proto.cms.PresetCashierGeoConfig.prototype.getPaymentGroupsList = function() {
46870
+ return /** @type{!Array<!proto.cms.PresetCashierPaymentOrderGroup>} */ (
46871
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierPaymentOrderGroup, 3));
46872
+ };
46873
+
46874
+
46875
+ /**
46876
+ * @param {!Array<!proto.cms.PresetCashierPaymentOrderGroup>} value
46877
+ * @return {!proto.cms.PresetCashierGeoConfig} returns this
46878
+ */
46879
+ proto.cms.PresetCashierGeoConfig.prototype.setPaymentGroupsList = function(value) {
46880
+ return jspb.Message.setRepeatedWrapperField(this, 3, value);
46881
+ };
46882
+
46883
+
46884
+ /**
46885
+ * @param {!proto.cms.PresetCashierPaymentOrderGroup=} opt_value
46886
+ * @param {number=} opt_index
46887
+ * @return {!proto.cms.PresetCashierPaymentOrderGroup}
46888
+ */
46889
+ proto.cms.PresetCashierGeoConfig.prototype.addPaymentGroups = function(opt_value, opt_index) {
46890
+ return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.cms.PresetCashierPaymentOrderGroup, opt_index);
46891
+ };
46892
+
46893
+
46894
+ /**
46895
+ * Clears the list making it empty but non-null.
46896
+ * @return {!proto.cms.PresetCashierGeoConfig} returns this
46897
+ */
46898
+ proto.cms.PresetCashierGeoConfig.prototype.clearPaymentGroupsList = function() {
46899
+ return this.setPaymentGroupsList([]);
46900
+ };
46901
+
46902
+
46903
+
46639
46904
  /**
46640
46905
  * List of repeated fields within this message type.
46641
46906
  * @private {!Array<number>}
@@ -46682,7 +46947,8 @@ proto.cms.PresetCashierConfigItem.toObject = function(includeInstance, msg) {
46682
46947
  proto.cms.PresetCashierPaymentOrderGroup.toObject, includeInstance),
46683
46948
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
46684
46949
  createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
46685
- updatedAt: jspb.Message.getFieldWithDefault(msg, 7, "")
46950
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
46951
+ geo: jspb.Message.getFieldWithDefault(msg, 8, "")
46686
46952
  };
46687
46953
 
46688
46954
  if (includeInstance) {
@@ -46749,6 +47015,10 @@ proto.cms.PresetCashierConfigItem.deserializeBinaryFromReader = function(msg, re
46749
47015
  var value = /** @type {string} */ (reader.readString());
46750
47016
  msg.setUpdatedAt(value);
46751
47017
  break;
47018
+ case 8:
47019
+ var value = /** @type {string} */ (reader.readString());
47020
+ msg.setGeo(value);
47021
+ break;
46752
47022
  default:
46753
47023
  reader.skipField();
46754
47024
  break;
@@ -46829,6 +47099,13 @@ proto.cms.PresetCashierConfigItem.serializeBinaryToWriter = function(message, wr
46829
47099
  f
46830
47100
  );
46831
47101
  }
47102
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
47103
+ if (f != null) {
47104
+ writer.writeString(
47105
+ 8,
47106
+ f
47107
+ );
47108
+ }
46832
47109
  };
46833
47110
 
46834
47111
 
@@ -47070,13 +47347,49 @@ proto.cms.PresetCashierConfigItem.prototype.hasUpdatedAt = function() {
47070
47347
  };
47071
47348
 
47072
47349
 
47350
+ /**
47351
+ * optional string geo = 8;
47352
+ * @return {string}
47353
+ */
47354
+ proto.cms.PresetCashierConfigItem.prototype.getGeo = function() {
47355
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
47356
+ };
47357
+
47358
+
47359
+ /**
47360
+ * @param {string} value
47361
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
47362
+ */
47363
+ proto.cms.PresetCashierConfigItem.prototype.setGeo = function(value) {
47364
+ return jspb.Message.setField(this, 8, value);
47365
+ };
47366
+
47367
+
47368
+ /**
47369
+ * Clears the field making it undefined.
47370
+ * @return {!proto.cms.PresetCashierConfigItem} returns this
47371
+ */
47372
+ proto.cms.PresetCashierConfigItem.prototype.clearGeo = function() {
47373
+ return jspb.Message.setField(this, 8, undefined);
47374
+ };
47375
+
47376
+
47377
+ /**
47378
+ * Returns whether this field is set.
47379
+ * @return {boolean}
47380
+ */
47381
+ proto.cms.PresetCashierConfigItem.prototype.hasGeo = function() {
47382
+ return jspb.Message.getField(this, 8) != null;
47383
+ };
47384
+
47385
+
47073
47386
 
47074
47387
  /**
47075
47388
  * List of repeated fields within this message type.
47076
47389
  * @private {!Array<number>}
47077
47390
  * @const
47078
47391
  */
47079
- proto.cms.SetPresetCashierConfigRequest.repeatedFields_ = [3,4];
47392
+ proto.cms.SetPresetCashierConfigRequest.repeatedFields_ = [3,4,6];
47080
47393
 
47081
47394
 
47082
47395
 
@@ -47115,7 +47428,9 @@ proto.cms.SetPresetCashierConfigRequest.toObject = function(includeInstance, msg
47115
47428
  proto.cms.PresetCashierCurrencyAmounts.toObject, includeInstance),
47116
47429
  paymentGroupsList: jspb.Message.toObjectList(msg.getPaymentGroupsList(),
47117
47430
  proto.cms.PresetCashierPaymentOrderGroup.toObject, includeInstance),
47118
- isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
47431
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
47432
+ geoConfigsList: jspb.Message.toObjectList(msg.getGeoConfigsList(),
47433
+ proto.cms.PresetCashierGeoConfig.toObject, includeInstance)
47119
47434
  };
47120
47435
 
47121
47436
  if (includeInstance) {
@@ -47174,6 +47489,11 @@ proto.cms.SetPresetCashierConfigRequest.deserializeBinaryFromReader = function(m
47174
47489
  var value = /** @type {number} */ (reader.readInt32());
47175
47490
  msg.setIsActive(value);
47176
47491
  break;
47492
+ case 6:
47493
+ var value = new proto.cms.PresetCashierGeoConfig;
47494
+ reader.readMessage(value,proto.cms.PresetCashierGeoConfig.deserializeBinaryFromReader);
47495
+ msg.addGeoConfigs(value);
47496
+ break;
47177
47497
  default:
47178
47498
  reader.skipField();
47179
47499
  break;
@@ -47240,6 +47560,14 @@ proto.cms.SetPresetCashierConfigRequest.serializeBinaryToWriter = function(messa
47240
47560
  f
47241
47561
  );
47242
47562
  }
47563
+ f = message.getGeoConfigsList();
47564
+ if (f.length > 0) {
47565
+ writer.writeRepeatedMessage(
47566
+ 6,
47567
+ f,
47568
+ proto.cms.PresetCashierGeoConfig.serializeBinaryToWriter
47569
+ );
47570
+ }
47243
47571
  };
47244
47572
 
47245
47573
 
@@ -47409,6 +47737,44 @@ proto.cms.SetPresetCashierConfigRequest.prototype.hasIsActive = function() {
47409
47737
  };
47410
47738
 
47411
47739
 
47740
+ /**
47741
+ * repeated PresetCashierGeoConfig geo_configs = 6;
47742
+ * @return {!Array<!proto.cms.PresetCashierGeoConfig>}
47743
+ */
47744
+ proto.cms.SetPresetCashierConfigRequest.prototype.getGeoConfigsList = function() {
47745
+ return /** @type{!Array<!proto.cms.PresetCashierGeoConfig>} */ (
47746
+ jspb.Message.getRepeatedWrapperField(this, proto.cms.PresetCashierGeoConfig, 6));
47747
+ };
47748
+
47749
+
47750
+ /**
47751
+ * @param {!Array<!proto.cms.PresetCashierGeoConfig>} value
47752
+ * @return {!proto.cms.SetPresetCashierConfigRequest} returns this
47753
+ */
47754
+ proto.cms.SetPresetCashierConfigRequest.prototype.setGeoConfigsList = function(value) {
47755
+ return jspb.Message.setRepeatedWrapperField(this, 6, value);
47756
+ };
47757
+
47758
+
47759
+ /**
47760
+ * @param {!proto.cms.PresetCashierGeoConfig=} opt_value
47761
+ * @param {number=} opt_index
47762
+ * @return {!proto.cms.PresetCashierGeoConfig}
47763
+ */
47764
+ proto.cms.SetPresetCashierConfigRequest.prototype.addGeoConfigs = function(opt_value, opt_index) {
47765
+ return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.cms.PresetCashierGeoConfig, opt_index);
47766
+ };
47767
+
47768
+
47769
+ /**
47770
+ * Clears the list making it empty but non-null.
47771
+ * @return {!proto.cms.SetPresetCashierConfigRequest} returns this
47772
+ */
47773
+ proto.cms.SetPresetCashierConfigRequest.prototype.clearGeoConfigsList = function() {
47774
+ return this.setGeoConfigsList([]);
47775
+ };
47776
+
47777
+
47412
47778
 
47413
47779
 
47414
47780
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.372",
3
+ "version": "1.2.373",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {