protobuf-platform 1.2.700 → 1.2.702
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/cashback/cashback.proto +4 -0
- package/cashback/cashback_pb.js +98 -2
- package/loyalty/loyalty.proto +2 -0
- package/loyalty/loyalty_pb.js +49 -1
- package/package.json +1 -1
package/cashback/cashback.proto
CHANGED
|
@@ -114,6 +114,8 @@ message CashbackConfigRequest {
|
|
|
114
114
|
optional float max = 4;
|
|
115
115
|
optional float percentage = 5;
|
|
116
116
|
optional string payout_currency = 6;
|
|
117
|
+
// Exact decimal percentage. Authoritative when present. Field 5 remains for older clients.
|
|
118
|
+
optional string percentage_decimal = 7;
|
|
117
119
|
}
|
|
118
120
|
|
|
119
121
|
message CashbackConfigItem {
|
|
@@ -123,6 +125,8 @@ message CashbackConfigItem {
|
|
|
123
125
|
optional float max = 4;
|
|
124
126
|
optional float percentage = 5;
|
|
125
127
|
optional string payout_currency = 6;
|
|
128
|
+
// Exact decimal percentage. Authoritative when present. Field 5 remains for older clients.
|
|
129
|
+
optional string percentage_decimal = 7;
|
|
126
130
|
}
|
|
127
131
|
message CashbackActions {
|
|
128
132
|
bool can_claim = 1;
|
package/cashback/cashback_pb.js
CHANGED
|
@@ -4995,7 +4995,8 @@ proto.cashback.CashbackConfigRequest.toObject = function(includeInstance, msg) {
|
|
|
4995
4995
|
min: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
4996
4996
|
max: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
4997
4997
|
percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
4998
|
-
payoutCurrency: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
4998
|
+
payoutCurrency: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
4999
|
+
percentageDecimal: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
4999
5000
|
};
|
|
5000
5001
|
|
|
5001
5002
|
if (includeInstance) {
|
|
@@ -5056,6 +5057,10 @@ proto.cashback.CashbackConfigRequest.deserializeBinaryFromReader = function(msg,
|
|
|
5056
5057
|
var value = /** @type {string} */ (reader.readString());
|
|
5057
5058
|
msg.setPayoutCurrency(value);
|
|
5058
5059
|
break;
|
|
5060
|
+
case 7:
|
|
5061
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5062
|
+
msg.setPercentageDecimal(value);
|
|
5063
|
+
break;
|
|
5059
5064
|
default:
|
|
5060
5065
|
reader.skipField();
|
|
5061
5066
|
break;
|
|
@@ -5127,6 +5132,13 @@ proto.cashback.CashbackConfigRequest.serializeBinaryToWriter = function(message,
|
|
|
5127
5132
|
f
|
|
5128
5133
|
);
|
|
5129
5134
|
}
|
|
5135
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
5136
|
+
if (f != null) {
|
|
5137
|
+
writer.writeString(
|
|
5138
|
+
7,
|
|
5139
|
+
f
|
|
5140
|
+
);
|
|
5141
|
+
}
|
|
5130
5142
|
};
|
|
5131
5143
|
|
|
5132
5144
|
|
|
@@ -5310,6 +5322,42 @@ proto.cashback.CashbackConfigRequest.prototype.hasPayoutCurrency = function() {
|
|
|
5310
5322
|
};
|
|
5311
5323
|
|
|
5312
5324
|
|
|
5325
|
+
/**
|
|
5326
|
+
* optional string percentage_decimal = 7;
|
|
5327
|
+
* @return {string}
|
|
5328
|
+
*/
|
|
5329
|
+
proto.cashback.CashbackConfigRequest.prototype.getPercentageDecimal = function() {
|
|
5330
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
5331
|
+
};
|
|
5332
|
+
|
|
5333
|
+
|
|
5334
|
+
/**
|
|
5335
|
+
* @param {string} value
|
|
5336
|
+
* @return {!proto.cashback.CashbackConfigRequest} returns this
|
|
5337
|
+
*/
|
|
5338
|
+
proto.cashback.CashbackConfigRequest.prototype.setPercentageDecimal = function(value) {
|
|
5339
|
+
return jspb.Message.setField(this, 7, value);
|
|
5340
|
+
};
|
|
5341
|
+
|
|
5342
|
+
|
|
5343
|
+
/**
|
|
5344
|
+
* Clears the field making it undefined.
|
|
5345
|
+
* @return {!proto.cashback.CashbackConfigRequest} returns this
|
|
5346
|
+
*/
|
|
5347
|
+
proto.cashback.CashbackConfigRequest.prototype.clearPercentageDecimal = function() {
|
|
5348
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
5349
|
+
};
|
|
5350
|
+
|
|
5351
|
+
|
|
5352
|
+
/**
|
|
5353
|
+
* Returns whether this field is set.
|
|
5354
|
+
* @return {boolean}
|
|
5355
|
+
*/
|
|
5356
|
+
proto.cashback.CashbackConfigRequest.prototype.hasPercentageDecimal = function() {
|
|
5357
|
+
return jspb.Message.getField(this, 7) != null;
|
|
5358
|
+
};
|
|
5359
|
+
|
|
5360
|
+
|
|
5313
5361
|
|
|
5314
5362
|
|
|
5315
5363
|
|
|
@@ -5347,7 +5395,8 @@ proto.cashback.CashbackConfigItem.toObject = function(includeInstance, msg) {
|
|
|
5347
5395
|
min: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
|
5348
5396
|
max: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
|
5349
5397
|
percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
|
|
5350
|
-
payoutCurrency: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
5398
|
+
payoutCurrency: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
5399
|
+
percentageDecimal: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
5351
5400
|
};
|
|
5352
5401
|
|
|
5353
5402
|
if (includeInstance) {
|
|
@@ -5408,6 +5457,10 @@ proto.cashback.CashbackConfigItem.deserializeBinaryFromReader = function(msg, re
|
|
|
5408
5457
|
var value = /** @type {string} */ (reader.readString());
|
|
5409
5458
|
msg.setPayoutCurrency(value);
|
|
5410
5459
|
break;
|
|
5460
|
+
case 7:
|
|
5461
|
+
var value = /** @type {string} */ (reader.readString());
|
|
5462
|
+
msg.setPercentageDecimal(value);
|
|
5463
|
+
break;
|
|
5411
5464
|
default:
|
|
5412
5465
|
reader.skipField();
|
|
5413
5466
|
break;
|
|
@@ -5479,6 +5532,13 @@ proto.cashback.CashbackConfigItem.serializeBinaryToWriter = function(message, wr
|
|
|
5479
5532
|
f
|
|
5480
5533
|
);
|
|
5481
5534
|
}
|
|
5535
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 7));
|
|
5536
|
+
if (f != null) {
|
|
5537
|
+
writer.writeString(
|
|
5538
|
+
7,
|
|
5539
|
+
f
|
|
5540
|
+
);
|
|
5541
|
+
}
|
|
5482
5542
|
};
|
|
5483
5543
|
|
|
5484
5544
|
|
|
@@ -5698,6 +5758,42 @@ proto.cashback.CashbackConfigItem.prototype.hasPayoutCurrency = function() {
|
|
|
5698
5758
|
};
|
|
5699
5759
|
|
|
5700
5760
|
|
|
5761
|
+
/**
|
|
5762
|
+
* optional string percentage_decimal = 7;
|
|
5763
|
+
* @return {string}
|
|
5764
|
+
*/
|
|
5765
|
+
proto.cashback.CashbackConfigItem.prototype.getPercentageDecimal = function() {
|
|
5766
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
5767
|
+
};
|
|
5768
|
+
|
|
5769
|
+
|
|
5770
|
+
/**
|
|
5771
|
+
* @param {string} value
|
|
5772
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
|
5773
|
+
*/
|
|
5774
|
+
proto.cashback.CashbackConfigItem.prototype.setPercentageDecimal = function(value) {
|
|
5775
|
+
return jspb.Message.setField(this, 7, value);
|
|
5776
|
+
};
|
|
5777
|
+
|
|
5778
|
+
|
|
5779
|
+
/**
|
|
5780
|
+
* Clears the field making it undefined.
|
|
5781
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
|
5782
|
+
*/
|
|
5783
|
+
proto.cashback.CashbackConfigItem.prototype.clearPercentageDecimal = function() {
|
|
5784
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
5785
|
+
};
|
|
5786
|
+
|
|
5787
|
+
|
|
5788
|
+
/**
|
|
5789
|
+
* Returns whether this field is set.
|
|
5790
|
+
* @return {boolean}
|
|
5791
|
+
*/
|
|
5792
|
+
proto.cashback.CashbackConfigItem.prototype.hasPercentageDecimal = function() {
|
|
5793
|
+
return jspb.Message.getField(this, 7) != null;
|
|
5794
|
+
};
|
|
5795
|
+
|
|
5796
|
+
|
|
5701
5797
|
|
|
5702
5798
|
|
|
5703
5799
|
|
package/loyalty/loyalty.proto
CHANGED
|
@@ -101,6 +101,8 @@ message LevelRewardTranslationItem {
|
|
|
101
101
|
message LevelRewardCashback {
|
|
102
102
|
optional float percentage = 1;
|
|
103
103
|
optional string currency = 2;
|
|
104
|
+
// Exact decimal percentage. Authoritative when present. Field 1 remains for older clients.
|
|
105
|
+
optional string percentage_decimal = 3;
|
|
104
106
|
}
|
|
105
107
|
message LevelRewardBonusReward {
|
|
106
108
|
string type = 1;
|
package/loyalty/loyalty_pb.js
CHANGED
|
@@ -4237,7 +4237,8 @@ proto.loyalty.LevelRewardCashback.prototype.toObject = function(opt_includeInsta
|
|
|
4237
4237
|
proto.loyalty.LevelRewardCashback.toObject = function(includeInstance, msg) {
|
|
4238
4238
|
var f, obj = {
|
|
4239
4239
|
percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 1, 0.0),
|
|
4240
|
-
currency: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
4240
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4241
|
+
percentageDecimal: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
4241
4242
|
};
|
|
4242
4243
|
|
|
4243
4244
|
if (includeInstance) {
|
|
@@ -4282,6 +4283,10 @@ proto.loyalty.LevelRewardCashback.deserializeBinaryFromReader = function(msg, re
|
|
|
4282
4283
|
var value = /** @type {string} */ (reader.readString());
|
|
4283
4284
|
msg.setCurrency(value);
|
|
4284
4285
|
break;
|
|
4286
|
+
case 3:
|
|
4287
|
+
var value = /** @type {string} */ (reader.readString());
|
|
4288
|
+
msg.setPercentageDecimal(value);
|
|
4289
|
+
break;
|
|
4285
4290
|
default:
|
|
4286
4291
|
reader.skipField();
|
|
4287
4292
|
break;
|
|
@@ -4325,6 +4330,13 @@ proto.loyalty.LevelRewardCashback.serializeBinaryToWriter = function(message, wr
|
|
|
4325
4330
|
f
|
|
4326
4331
|
);
|
|
4327
4332
|
}
|
|
4333
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
4334
|
+
if (f != null) {
|
|
4335
|
+
writer.writeString(
|
|
4336
|
+
3,
|
|
4337
|
+
f
|
|
4338
|
+
);
|
|
4339
|
+
}
|
|
4328
4340
|
};
|
|
4329
4341
|
|
|
4330
4342
|
|
|
@@ -4400,6 +4412,42 @@ proto.loyalty.LevelRewardCashback.prototype.hasCurrency = function() {
|
|
|
4400
4412
|
};
|
|
4401
4413
|
|
|
4402
4414
|
|
|
4415
|
+
/**
|
|
4416
|
+
* optional string percentage_decimal = 3;
|
|
4417
|
+
* @return {string}
|
|
4418
|
+
*/
|
|
4419
|
+
proto.loyalty.LevelRewardCashback.prototype.getPercentageDecimal = function() {
|
|
4420
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
4421
|
+
};
|
|
4422
|
+
|
|
4423
|
+
|
|
4424
|
+
/**
|
|
4425
|
+
* @param {string} value
|
|
4426
|
+
* @return {!proto.loyalty.LevelRewardCashback} returns this
|
|
4427
|
+
*/
|
|
4428
|
+
proto.loyalty.LevelRewardCashback.prototype.setPercentageDecimal = function(value) {
|
|
4429
|
+
return jspb.Message.setField(this, 3, value);
|
|
4430
|
+
};
|
|
4431
|
+
|
|
4432
|
+
|
|
4433
|
+
/**
|
|
4434
|
+
* Clears the field making it undefined.
|
|
4435
|
+
* @return {!proto.loyalty.LevelRewardCashback} returns this
|
|
4436
|
+
*/
|
|
4437
|
+
proto.loyalty.LevelRewardCashback.prototype.clearPercentageDecimal = function() {
|
|
4438
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
4439
|
+
};
|
|
4440
|
+
|
|
4441
|
+
|
|
4442
|
+
/**
|
|
4443
|
+
* Returns whether this field is set.
|
|
4444
|
+
* @return {boolean}
|
|
4445
|
+
*/
|
|
4446
|
+
proto.loyalty.LevelRewardCashback.prototype.hasPercentageDecimal = function() {
|
|
4447
|
+
return jspb.Message.getField(this, 3) != null;
|
|
4448
|
+
};
|
|
4449
|
+
|
|
4450
|
+
|
|
4403
4451
|
|
|
4404
4452
|
|
|
4405
4453
|
|