protobuf-platform 1.2.689 → 1.2.691

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.691",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1002,6 +1002,8 @@ message GetUserFinancialSummaryResponse {
1002
1002
  message ResolveGameWalletContextRequest {
1003
1003
  int32 user_id = 1;
1004
1004
  optional string wallet_currency = 2;
1005
+ // Opt-in authoritative bonus bucket read for terminal/recovery verification.
1006
+ optional bool include_bonus_balance = 3;
1005
1007
  }
1006
1008
  message ResolveGameWalletContextResponse {
1007
1009
  int32 user_id = 1;
@@ -1009,6 +1011,8 @@ message ResolveGameWalletContextResponse {
1009
1011
  int32 currency_scale = 3;
1010
1012
  int64 balance_minor = 4 [jstype = JS_STRING];
1011
1013
  string balance_major = 5;
1014
+ // Exact minor units in wallet_currency. Absent means unavailable; "0" is confirmed zero.
1015
+ optional string bonus_balance_minor = 6;
1012
1016
  }
1013
1017
  //Segmentation
1014
1018
  message SegmentedUserRequest {
@@ -42415,7 +42415,8 @@ proto.payment.ResolveGameWalletContextRequest.prototype.toObject = function(opt_
42415
42415
  proto.payment.ResolveGameWalletContextRequest.toObject = function(includeInstance, msg) {
42416
42416
  var f, obj = {
42417
42417
  userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
42418
- walletCurrency: jspb.Message.getFieldWithDefault(msg, 2, "")
42418
+ walletCurrency: jspb.Message.getFieldWithDefault(msg, 2, ""),
42419
+ includeBonusBalance: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
42419
42420
  };
42420
42421
 
42421
42422
  if (includeInstance) {
@@ -42460,6 +42461,10 @@ proto.payment.ResolveGameWalletContextRequest.deserializeBinaryFromReader = func
42460
42461
  var value = /** @type {string} */ (reader.readString());
42461
42462
  msg.setWalletCurrency(value);
42462
42463
  break;
42464
+ case 3:
42465
+ var value = /** @type {boolean} */ (reader.readBool());
42466
+ msg.setIncludeBonusBalance(value);
42467
+ break;
42463
42468
  default:
42464
42469
  reader.skipField();
42465
42470
  break;
@@ -42503,6 +42508,13 @@ proto.payment.ResolveGameWalletContextRequest.serializeBinaryToWriter = function
42503
42508
  f
42504
42509
  );
42505
42510
  }
42511
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
42512
+ if (f != null) {
42513
+ writer.writeBool(
42514
+ 3,
42515
+ f
42516
+ );
42517
+ }
42506
42518
  };
42507
42519
 
42508
42520
 
@@ -42560,6 +42572,42 @@ proto.payment.ResolveGameWalletContextRequest.prototype.hasWalletCurrency = func
42560
42572
  };
42561
42573
 
42562
42574
 
42575
+ /**
42576
+ * optional bool include_bonus_balance = 3;
42577
+ * @return {boolean}
42578
+ */
42579
+ proto.payment.ResolveGameWalletContextRequest.prototype.getIncludeBonusBalance = function() {
42580
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
42581
+ };
42582
+
42583
+
42584
+ /**
42585
+ * @param {boolean} value
42586
+ * @return {!proto.payment.ResolveGameWalletContextRequest} returns this
42587
+ */
42588
+ proto.payment.ResolveGameWalletContextRequest.prototype.setIncludeBonusBalance = function(value) {
42589
+ return jspb.Message.setField(this, 3, value);
42590
+ };
42591
+
42592
+
42593
+ /**
42594
+ * Clears the field making it undefined.
42595
+ * @return {!proto.payment.ResolveGameWalletContextRequest} returns this
42596
+ */
42597
+ proto.payment.ResolveGameWalletContextRequest.prototype.clearIncludeBonusBalance = function() {
42598
+ return jspb.Message.setField(this, 3, undefined);
42599
+ };
42600
+
42601
+
42602
+ /**
42603
+ * Returns whether this field is set.
42604
+ * @return {boolean}
42605
+ */
42606
+ proto.payment.ResolveGameWalletContextRequest.prototype.hasIncludeBonusBalance = function() {
42607
+ return jspb.Message.getField(this, 3) != null;
42608
+ };
42609
+
42610
+
42563
42611
 
42564
42612
 
42565
42613
 
@@ -42596,7 +42644,8 @@ proto.payment.ResolveGameWalletContextResponse.toObject = function(includeInstan
42596
42644
  walletCurrency: jspb.Message.getFieldWithDefault(msg, 2, ""),
42597
42645
  currencyScale: jspb.Message.getFieldWithDefault(msg, 3, 0),
42598
42646
  balanceMinor: jspb.Message.getFieldWithDefault(msg, 4, "0"),
42599
- balanceMajor: jspb.Message.getFieldWithDefault(msg, 5, "")
42647
+ balanceMajor: jspb.Message.getFieldWithDefault(msg, 5, ""),
42648
+ bonusBalanceMinor: jspb.Message.getFieldWithDefault(msg, 6, "")
42600
42649
  };
42601
42650
 
42602
42651
  if (includeInstance) {
@@ -42653,6 +42702,10 @@ proto.payment.ResolveGameWalletContextResponse.deserializeBinaryFromReader = fun
42653
42702
  var value = /** @type {string} */ (reader.readString());
42654
42703
  msg.setBalanceMajor(value);
42655
42704
  break;
42705
+ case 6:
42706
+ var value = /** @type {string} */ (reader.readString());
42707
+ msg.setBonusBalanceMinor(value);
42708
+ break;
42656
42709
  default:
42657
42710
  reader.skipField();
42658
42711
  break;
@@ -42717,6 +42770,13 @@ proto.payment.ResolveGameWalletContextResponse.serializeBinaryToWriter = functio
42717
42770
  f
42718
42771
  );
42719
42772
  }
42773
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
42774
+ if (f != null) {
42775
+ writer.writeString(
42776
+ 6,
42777
+ f
42778
+ );
42779
+ }
42720
42780
  };
42721
42781
 
42722
42782
 
@@ -42810,6 +42870,42 @@ proto.payment.ResolveGameWalletContextResponse.prototype.setBalanceMajor = funct
42810
42870
  };
42811
42871
 
42812
42872
 
42873
+ /**
42874
+ * optional string bonus_balance_minor = 6;
42875
+ * @return {string}
42876
+ */
42877
+ proto.payment.ResolveGameWalletContextResponse.prototype.getBonusBalanceMinor = function() {
42878
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
42879
+ };
42880
+
42881
+
42882
+ /**
42883
+ * @param {string} value
42884
+ * @return {!proto.payment.ResolveGameWalletContextResponse} returns this
42885
+ */
42886
+ proto.payment.ResolveGameWalletContextResponse.prototype.setBonusBalanceMinor = function(value) {
42887
+ return jspb.Message.setField(this, 6, value);
42888
+ };
42889
+
42890
+
42891
+ /**
42892
+ * Clears the field making it undefined.
42893
+ * @return {!proto.payment.ResolveGameWalletContextResponse} returns this
42894
+ */
42895
+ proto.payment.ResolveGameWalletContextResponse.prototype.clearBonusBalanceMinor = function() {
42896
+ return jspb.Message.setField(this, 6, undefined);
42897
+ };
42898
+
42899
+
42900
+ /**
42901
+ * Returns whether this field is set.
42902
+ * @return {boolean}
42903
+ */
42904
+ proto.payment.ResolveGameWalletContextResponse.prototype.hasBonusBalanceMinor = function() {
42905
+ return jspb.Message.getField(this, 6) != null;
42906
+ };
42907
+
42908
+
42813
42909
 
42814
42910
  /**
42815
42911
  * List of repeated fields within this message type.