protobuf-platform 1.2.701 → 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/loyalty/loyalty.proto +2 -0
- package/loyalty/loyalty_pb.js +49 -1
- package/package.json +1 -1
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
|
|