protobuf-platform 1.2.650 → 1.2.652

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.650",
3
+ "version": "1.2.652",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -282,6 +282,10 @@ message PaymentMethodConfigRequest {
282
282
  optional int32 is_top = 16;
283
283
  optional int32 is_popular = 17;
284
284
  optional int32 is_new = 18;
285
+ // Major-unit cap on the deposit amount used as the percentage reward base.
286
+ // Unset on read means unlimited. Empty string on write clears the stored limit.
287
+ // "0" is an explicit zero reward base, not unlimited.
288
+ optional string reward_calculation_limit = 19;
285
289
  }
286
290
  message PaymentMethodConfigResponse {
287
291
  int32 method_id = 1;
@@ -302,6 +306,9 @@ message PaymentMethodConfigResponse {
302
306
  optional int32 is_top = 16;
303
307
  optional int32 is_popular = 17;
304
308
  optional int32 is_new = 18;
309
+ // Major-unit cap on the deposit amount used as the percentage reward base.
310
+ // Unset means unlimited. "0" is an explicit zero reward base, not unlimited.
311
+ optional string reward_calculation_limit = 19;
305
312
  }
306
313
  message CashierFieldsRequest {}
307
314
  message CashierFieldItemsResponse {
@@ -11565,7 +11565,8 @@ proto.payment.PaymentMethodConfigRequest.toObject = function(includeInstance, ms
11565
11565
  isVip: jspb.Message.getFieldWithDefault(msg, 15, 0),
11566
11566
  isTop: jspb.Message.getFieldWithDefault(msg, 16, 0),
11567
11567
  isPopular: jspb.Message.getFieldWithDefault(msg, 17, 0),
11568
- isNew: jspb.Message.getFieldWithDefault(msg, 18, 0)
11568
+ isNew: jspb.Message.getFieldWithDefault(msg, 18, 0),
11569
+ rewardCalculationLimit: jspb.Message.getFieldWithDefault(msg, 19, "")
11569
11570
  };
11570
11571
 
11571
11572
  if (includeInstance) {
@@ -11675,6 +11676,10 @@ proto.payment.PaymentMethodConfigRequest.deserializeBinaryFromReader = function(
11675
11676
  var value = /** @type {number} */ (reader.readInt32());
11676
11677
  msg.setIsNew(value);
11677
11678
  break;
11679
+ case 19:
11680
+ var value = /** @type {string} */ (reader.readString());
11681
+ msg.setRewardCalculationLimit(value);
11682
+ break;
11678
11683
  default:
11679
11684
  reader.skipField();
11680
11685
  break;
@@ -11831,6 +11836,13 @@ proto.payment.PaymentMethodConfigRequest.serializeBinaryToWriter = function(mess
11831
11836
  f
11832
11837
  );
11833
11838
  }
11839
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
11840
+ if (f != null) {
11841
+ writer.writeString(
11842
+ 19,
11843
+ f
11844
+ );
11845
+ }
11834
11846
  };
11835
11847
 
11836
11848
 
@@ -12430,6 +12442,42 @@ proto.payment.PaymentMethodConfigRequest.prototype.hasIsNew = function() {
12430
12442
  };
12431
12443
 
12432
12444
 
12445
+ /**
12446
+ * optional string reward_calculation_limit = 19;
12447
+ * @return {string}
12448
+ */
12449
+ proto.payment.PaymentMethodConfigRequest.prototype.getRewardCalculationLimit = function() {
12450
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
12451
+ };
12452
+
12453
+
12454
+ /**
12455
+ * @param {string} value
12456
+ * @return {!proto.payment.PaymentMethodConfigRequest} returns this
12457
+ */
12458
+ proto.payment.PaymentMethodConfigRequest.prototype.setRewardCalculationLimit = function(value) {
12459
+ return jspb.Message.setField(this, 19, value);
12460
+ };
12461
+
12462
+
12463
+ /**
12464
+ * Clears the field making it undefined.
12465
+ * @return {!proto.payment.PaymentMethodConfigRequest} returns this
12466
+ */
12467
+ proto.payment.PaymentMethodConfigRequest.prototype.clearRewardCalculationLimit = function() {
12468
+ return jspb.Message.setField(this, 19, undefined);
12469
+ };
12470
+
12471
+
12472
+ /**
12473
+ * Returns whether this field is set.
12474
+ * @return {boolean}
12475
+ */
12476
+ proto.payment.PaymentMethodConfigRequest.prototype.hasRewardCalculationLimit = function() {
12477
+ return jspb.Message.getField(this, 19) != null;
12478
+ };
12479
+
12480
+
12433
12481
 
12434
12482
  /**
12435
12483
  * List of repeated fields within this message type.
@@ -12487,7 +12535,8 @@ proto.payment.PaymentMethodConfigResponse.toObject = function(includeInstance, m
12487
12535
  isVip: jspb.Message.getFieldWithDefault(msg, 15, 0),
12488
12536
  isTop: jspb.Message.getFieldWithDefault(msg, 16, 0),
12489
12537
  isPopular: jspb.Message.getFieldWithDefault(msg, 17, 0),
12490
- isNew: jspb.Message.getFieldWithDefault(msg, 18, 0)
12538
+ isNew: jspb.Message.getFieldWithDefault(msg, 18, 0),
12539
+ rewardCalculationLimit: jspb.Message.getFieldWithDefault(msg, 19, "")
12491
12540
  };
12492
12541
 
12493
12542
  if (includeInstance) {
@@ -12597,6 +12646,10 @@ proto.payment.PaymentMethodConfigResponse.deserializeBinaryFromReader = function
12597
12646
  var value = /** @type {number} */ (reader.readInt32());
12598
12647
  msg.setIsNew(value);
12599
12648
  break;
12649
+ case 19:
12650
+ var value = /** @type {string} */ (reader.readString());
12651
+ msg.setRewardCalculationLimit(value);
12652
+ break;
12600
12653
  default:
12601
12654
  reader.skipField();
12602
12655
  break;
@@ -12753,6 +12806,13 @@ proto.payment.PaymentMethodConfigResponse.serializeBinaryToWriter = function(mes
12753
12806
  f
12754
12807
  );
12755
12808
  }
12809
+ f = /** @type {string} */ (jspb.Message.getField(message, 19));
12810
+ if (f != null) {
12811
+ writer.writeString(
12812
+ 19,
12813
+ f
12814
+ );
12815
+ }
12756
12816
  };
12757
12817
 
12758
12818
 
@@ -13388,6 +13448,42 @@ proto.payment.PaymentMethodConfigResponse.prototype.hasIsNew = function() {
13388
13448
  };
13389
13449
 
13390
13450
 
13451
+ /**
13452
+ * optional string reward_calculation_limit = 19;
13453
+ * @return {string}
13454
+ */
13455
+ proto.payment.PaymentMethodConfigResponse.prototype.getRewardCalculationLimit = function() {
13456
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 19, ""));
13457
+ };
13458
+
13459
+
13460
+ /**
13461
+ * @param {string} value
13462
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
13463
+ */
13464
+ proto.payment.PaymentMethodConfigResponse.prototype.setRewardCalculationLimit = function(value) {
13465
+ return jspb.Message.setField(this, 19, value);
13466
+ };
13467
+
13468
+
13469
+ /**
13470
+ * Clears the field making it undefined.
13471
+ * @return {!proto.payment.PaymentMethodConfigResponse} returns this
13472
+ */
13473
+ proto.payment.PaymentMethodConfigResponse.prototype.clearRewardCalculationLimit = function() {
13474
+ return jspb.Message.setField(this, 19, undefined);
13475
+ };
13476
+
13477
+
13478
+ /**
13479
+ * Returns whether this field is set.
13480
+ * @return {boolean}
13481
+ */
13482
+ proto.payment.PaymentMethodConfigResponse.prototype.hasRewardCalculationLimit = function() {
13483
+ return jspb.Message.getField(this, 19) != null;
13484
+ };
13485
+
13486
+
13391
13487
 
13392
13488
 
13393
13489