protobuf-platform 1.2.689 → 1.2.690

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/game/game.proto CHANGED
@@ -489,6 +489,8 @@ message ProviderItem {
489
489
  repeated GameEntityTranslationItem translations = 13;
490
490
  repeated string effective_currencies = 14;
491
491
  repeated ProviderCurrencyCapability provider_currencies = 15;
492
+ // ISO 3166-1 alpha-2 codes where the provider is restricted. Empty means none.
493
+ repeated string geo_restrictions = 16;
492
494
  }
493
495
  message ProviderCurrencyCapability {
494
496
  string currency = 1;
package/game/game_pb.js CHANGED
@@ -18554,7 +18554,7 @@ proto.game.TagGamesRequest.prototype.hasGeo = function() {
18554
18554
  * @private {!Array<number>}
18555
18555
  * @const
18556
18556
  */
18557
- proto.game.ProviderItem.repeatedFields_ = [13,14,15];
18557
+ proto.game.ProviderItem.repeatedFields_ = [13,14,15,16];
18558
18558
 
18559
18559
 
18560
18560
 
@@ -18603,7 +18603,8 @@ proto.game.ProviderItem.toObject = function(includeInstance, msg) {
18603
18603
  proto.game.GameEntityTranslationItem.toObject, includeInstance),
18604
18604
  effectiveCurrenciesList: (f = jspb.Message.getRepeatedField(msg, 14)) == null ? undefined : f,
18605
18605
  providerCurrenciesList: jspb.Message.toObjectList(msg.getProviderCurrenciesList(),
18606
- proto.game.ProviderCurrencyCapability.toObject, includeInstance)
18606
+ proto.game.ProviderCurrencyCapability.toObject, includeInstance),
18607
+ geoRestrictionsList: (f = jspb.Message.getRepeatedField(msg, 16)) == null ? undefined : f
18607
18608
  };
18608
18609
 
18609
18610
  if (includeInstance) {
@@ -18702,6 +18703,10 @@ proto.game.ProviderItem.deserializeBinaryFromReader = function(msg, reader) {
18702
18703
  reader.readMessage(value,proto.game.ProviderCurrencyCapability.deserializeBinaryFromReader);
18703
18704
  msg.addProviderCurrencies(value);
18704
18705
  break;
18706
+ case 16:
18707
+ var value = /** @type {string} */ (reader.readString());
18708
+ msg.addGeoRestrictions(value);
18709
+ break;
18705
18710
  default:
18706
18711
  reader.skipField();
18707
18712
  break;
@@ -18838,6 +18843,13 @@ proto.game.ProviderItem.serializeBinaryToWriter = function(message, writer) {
18838
18843
  proto.game.ProviderCurrencyCapability.serializeBinaryToWriter
18839
18844
  );
18840
18845
  }
18846
+ f = message.getGeoRestrictionsList();
18847
+ if (f.length > 0) {
18848
+ writer.writeRepeatedString(
18849
+ 16,
18850
+ f
18851
+ );
18852
+ }
18841
18853
  };
18842
18854
 
18843
18855
 
@@ -19386,6 +19398,43 @@ proto.game.ProviderItem.prototype.clearProviderCurrenciesList = function() {
19386
19398
  };
19387
19399
 
19388
19400
 
19401
+ /**
19402
+ * repeated string geo_restrictions = 16;
19403
+ * @return {!Array<string>}
19404
+ */
19405
+ proto.game.ProviderItem.prototype.getGeoRestrictionsList = function() {
19406
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 16));
19407
+ };
19408
+
19409
+
19410
+ /**
19411
+ * @param {!Array<string>} value
19412
+ * @return {!proto.game.ProviderItem} returns this
19413
+ */
19414
+ proto.game.ProviderItem.prototype.setGeoRestrictionsList = function(value) {
19415
+ return jspb.Message.setField(this, 16, value || []);
19416
+ };
19417
+
19418
+
19419
+ /**
19420
+ * @param {string} value
19421
+ * @param {number=} opt_index
19422
+ * @return {!proto.game.ProviderItem} returns this
19423
+ */
19424
+ proto.game.ProviderItem.prototype.addGeoRestrictions = function(value, opt_index) {
19425
+ return jspb.Message.addToRepeatedField(this, 16, value, opt_index);
19426
+ };
19427
+
19428
+
19429
+ /**
19430
+ * Clears the list making it empty but non-null.
19431
+ * @return {!proto.game.ProviderItem} returns this
19432
+ */
19433
+ proto.game.ProviderItem.prototype.clearGeoRestrictionsList = function() {
19434
+ return this.setGeoRestrictionsList([]);
19435
+ };
19436
+
19437
+
19389
19438
 
19390
19439
 
19391
19440
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.689",
3
+ "version": "1.2.690",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {