protobuf-platform 1.2.748 → 1.2.749

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.748",
3
+ "version": "1.2.749",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1472,6 +1472,7 @@ message AdjustmentItemsResponse {
1472
1472
  optional int32 total_items = 3;
1473
1473
  }
1474
1474
  // confiscation_type values: fund_confiscation, other_debit, balance_transfer_debit
1475
+ // balance_source values: real, bonus. Missing or empty means real.
1475
1476
  message ConfiscationRequest {
1476
1477
  int32 user_id = 1;
1477
1478
  int64 amount_minor = 2;
@@ -1482,6 +1483,7 @@ message ConfiscationRequest {
1482
1483
  string internal_comment = 7;
1483
1484
  string amount = 8;
1484
1485
  string confiscation_type = 9;
1486
+ optional string balance_source = 10;
1485
1487
  }
1486
1488
  message ConfiscationSearchRequest {
1487
1489
  optional int32 operation_id = 1;
@@ -1515,6 +1517,8 @@ message ConfiscationItem {
1515
1517
  optional string player_email = 15;
1516
1518
  optional string operator_name = 16;
1517
1519
  optional string operator_email = 17;
1520
+ // real or bonus. Missing or empty means real.
1521
+ optional string balance_source = 18;
1518
1522
  }
1519
1523
  message ConfiscationItemsResponse {
1520
1524
  repeated ConfiscationItem items = 1;
@@ -60261,7 +60261,8 @@ proto.payment.ConfiscationRequest.toObject = function(includeInstance, msg) {
60261
60261
  transactionCode: jspb.Message.getFieldWithDefault(msg, 6, ""),
60262
60262
  internalComment: jspb.Message.getFieldWithDefault(msg, 7, ""),
60263
60263
  amount: jspb.Message.getFieldWithDefault(msg, 8, ""),
60264
- confiscationType: jspb.Message.getFieldWithDefault(msg, 9, "")
60264
+ confiscationType: jspb.Message.getFieldWithDefault(msg, 9, ""),
60265
+ balanceSource: jspb.Message.getFieldWithDefault(msg, 10, "")
60265
60266
  };
60266
60267
 
60267
60268
  if (includeInstance) {
@@ -60334,6 +60335,10 @@ proto.payment.ConfiscationRequest.deserializeBinaryFromReader = function(msg, re
60334
60335
  var value = /** @type {string} */ (reader.readString());
60335
60336
  msg.setConfiscationType(value);
60336
60337
  break;
60338
+ case 10:
60339
+ var value = /** @type {string} */ (reader.readString());
60340
+ msg.setBalanceSource(value);
60341
+ break;
60337
60342
  default:
60338
60343
  reader.skipField();
60339
60344
  break;
@@ -60426,6 +60431,13 @@ proto.payment.ConfiscationRequest.serializeBinaryToWriter = function(message, wr
60426
60431
  f
60427
60432
  );
60428
60433
  }
60434
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
60435
+ if (f != null) {
60436
+ writer.writeString(
60437
+ 10,
60438
+ f
60439
+ );
60440
+ }
60429
60441
  };
60430
60442
 
60431
60443
 
@@ -60591,6 +60603,42 @@ proto.payment.ConfiscationRequest.prototype.setConfiscationType = function(value
60591
60603
  };
60592
60604
 
60593
60605
 
60606
+ /**
60607
+ * optional string balance_source = 10;
60608
+ * @return {string}
60609
+ */
60610
+ proto.payment.ConfiscationRequest.prototype.getBalanceSource = function() {
60611
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
60612
+ };
60613
+
60614
+
60615
+ /**
60616
+ * @param {string} value
60617
+ * @return {!proto.payment.ConfiscationRequest} returns this
60618
+ */
60619
+ proto.payment.ConfiscationRequest.prototype.setBalanceSource = function(value) {
60620
+ return jspb.Message.setField(this, 10, value);
60621
+ };
60622
+
60623
+
60624
+ /**
60625
+ * Clears the field making it undefined.
60626
+ * @return {!proto.payment.ConfiscationRequest} returns this
60627
+ */
60628
+ proto.payment.ConfiscationRequest.prototype.clearBalanceSource = function() {
60629
+ return jspb.Message.setField(this, 10, undefined);
60630
+ };
60631
+
60632
+
60633
+ /**
60634
+ * Returns whether this field is set.
60635
+ * @return {boolean}
60636
+ */
60637
+ proto.payment.ConfiscationRequest.prototype.hasBalanceSource = function() {
60638
+ return jspb.Message.getField(this, 10) != null;
60639
+ };
60640
+
60641
+
60594
60642
 
60595
60643
  /**
60596
60644
  * List of repeated fields within this message type.
@@ -61331,7 +61379,8 @@ proto.payment.ConfiscationItem.toObject = function(includeInstance, msg) {
61331
61379
  playerNickname: jspb.Message.getFieldWithDefault(msg, 14, ""),
61332
61380
  playerEmail: jspb.Message.getFieldWithDefault(msg, 15, ""),
61333
61381
  operatorName: jspb.Message.getFieldWithDefault(msg, 16, ""),
61334
- operatorEmail: jspb.Message.getFieldWithDefault(msg, 17, "")
61382
+ operatorEmail: jspb.Message.getFieldWithDefault(msg, 17, ""),
61383
+ balanceSource: jspb.Message.getFieldWithDefault(msg, 18, "")
61335
61384
  };
61336
61385
 
61337
61386
  if (includeInstance) {
@@ -61436,6 +61485,10 @@ proto.payment.ConfiscationItem.deserializeBinaryFromReader = function(msg, reade
61436
61485
  var value = /** @type {string} */ (reader.readString());
61437
61486
  msg.setOperatorEmail(value);
61438
61487
  break;
61488
+ case 18:
61489
+ var value = /** @type {string} */ (reader.readString());
61490
+ msg.setBalanceSource(value);
61491
+ break;
61439
61492
  default:
61440
61493
  reader.skipField();
61441
61494
  break;
@@ -61584,6 +61637,13 @@ proto.payment.ConfiscationItem.serializeBinaryToWriter = function(message, write
61584
61637
  f
61585
61638
  );
61586
61639
  }
61640
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
61641
+ if (f != null) {
61642
+ writer.writeString(
61643
+ 18,
61644
+ f
61645
+ );
61646
+ }
61587
61647
  };
61588
61648
 
61589
61649
 
@@ -61983,6 +62043,42 @@ proto.payment.ConfiscationItem.prototype.hasOperatorEmail = function() {
61983
62043
  };
61984
62044
 
61985
62045
 
62046
+ /**
62047
+ * optional string balance_source = 18;
62048
+ * @return {string}
62049
+ */
62050
+ proto.payment.ConfiscationItem.prototype.getBalanceSource = function() {
62051
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
62052
+ };
62053
+
62054
+
62055
+ /**
62056
+ * @param {string} value
62057
+ * @return {!proto.payment.ConfiscationItem} returns this
62058
+ */
62059
+ proto.payment.ConfiscationItem.prototype.setBalanceSource = function(value) {
62060
+ return jspb.Message.setField(this, 18, value);
62061
+ };
62062
+
62063
+
62064
+ /**
62065
+ * Clears the field making it undefined.
62066
+ * @return {!proto.payment.ConfiscationItem} returns this
62067
+ */
62068
+ proto.payment.ConfiscationItem.prototype.clearBalanceSource = function() {
62069
+ return jspb.Message.setField(this, 18, undefined);
62070
+ };
62071
+
62072
+
62073
+ /**
62074
+ * Returns whether this field is set.
62075
+ * @return {boolean}
62076
+ */
62077
+ proto.payment.ConfiscationItem.prototype.hasBalanceSource = function() {
62078
+ return jspb.Message.getField(this, 18) != null;
62079
+ };
62080
+
62081
+
61986
62082
 
61987
62083
  /**
61988
62084
  * List of repeated fields within this message type.