protobuf-platform 1.2.507 → 1.2.510

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/bonus/bonus.proto CHANGED
@@ -406,6 +406,10 @@ message GrantDynamicUserBonusRequest {
406
406
  string currency = 5;
407
407
  // Decimal string in account currency.
408
408
  string amount = 6;
409
+ // Non-negative decimal integer string in minor units; authoritative when supplied with currency_scale.
410
+ optional string reward_amount_minor = 7;
411
+ // Decimal scale for currency; must be supplied together with reward_amount_minor.
412
+ optional int32 currency_scale = 8;
409
413
  }
410
414
  message GrantDynamicUserBonusResponse {
411
415
  int32 user_bonus_id = 1;
package/bonus/bonus_pb.js CHANGED
@@ -17184,7 +17184,9 @@ proto.bonus.GrantDynamicUserBonusRequest.toObject = function(includeInstance, ms
17184
17184
  grantSource: jspb.Message.getFieldWithDefault(msg, 3, ""),
17185
17185
  grantId: jspb.Message.getFieldWithDefault(msg, 4, ""),
17186
17186
  currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
17187
- amount: jspb.Message.getFieldWithDefault(msg, 6, "")
17187
+ amount: jspb.Message.getFieldWithDefault(msg, 6, ""),
17188
+ rewardAmountMinor: jspb.Message.getFieldWithDefault(msg, 7, ""),
17189
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 8, 0)
17188
17190
  };
17189
17191
 
17190
17192
  if (includeInstance) {
@@ -17245,6 +17247,14 @@ proto.bonus.GrantDynamicUserBonusRequest.deserializeBinaryFromReader = function(
17245
17247
  var value = /** @type {string} */ (reader.readString());
17246
17248
  msg.setAmount(value);
17247
17249
  break;
17250
+ case 7:
17251
+ var value = /** @type {string} */ (reader.readString());
17252
+ msg.setRewardAmountMinor(value);
17253
+ break;
17254
+ case 8:
17255
+ var value = /** @type {number} */ (reader.readInt32());
17256
+ msg.setCurrencyScale(value);
17257
+ break;
17248
17258
  default:
17249
17259
  reader.skipField();
17250
17260
  break;
@@ -17316,6 +17326,20 @@ proto.bonus.GrantDynamicUserBonusRequest.serializeBinaryToWriter = function(mess
17316
17326
  f
17317
17327
  );
17318
17328
  }
17329
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
17330
+ if (f != null) {
17331
+ writer.writeString(
17332
+ 7,
17333
+ f
17334
+ );
17335
+ }
17336
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
17337
+ if (f != null) {
17338
+ writer.writeInt32(
17339
+ 8,
17340
+ f
17341
+ );
17342
+ }
17319
17343
  };
17320
17344
 
17321
17345
 
@@ -17427,6 +17451,78 @@ proto.bonus.GrantDynamicUserBonusRequest.prototype.setAmount = function(value) {
17427
17451
  };
17428
17452
 
17429
17453
 
17454
+ /**
17455
+ * optional string reward_amount_minor = 7;
17456
+ * @return {string}
17457
+ */
17458
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.getRewardAmountMinor = function() {
17459
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
17460
+ };
17461
+
17462
+
17463
+ /**
17464
+ * @param {string} value
17465
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
17466
+ */
17467
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.setRewardAmountMinor = function(value) {
17468
+ return jspb.Message.setField(this, 7, value);
17469
+ };
17470
+
17471
+
17472
+ /**
17473
+ * Clears the field making it undefined.
17474
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
17475
+ */
17476
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.clearRewardAmountMinor = function() {
17477
+ return jspb.Message.setField(this, 7, undefined);
17478
+ };
17479
+
17480
+
17481
+ /**
17482
+ * Returns whether this field is set.
17483
+ * @return {boolean}
17484
+ */
17485
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.hasRewardAmountMinor = function() {
17486
+ return jspb.Message.getField(this, 7) != null;
17487
+ };
17488
+
17489
+
17490
+ /**
17491
+ * optional int32 currency_scale = 8;
17492
+ * @return {number}
17493
+ */
17494
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.getCurrencyScale = function() {
17495
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
17496
+ };
17497
+
17498
+
17499
+ /**
17500
+ * @param {number} value
17501
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
17502
+ */
17503
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.setCurrencyScale = function(value) {
17504
+ return jspb.Message.setField(this, 8, value);
17505
+ };
17506
+
17507
+
17508
+ /**
17509
+ * Clears the field making it undefined.
17510
+ * @return {!proto.bonus.GrantDynamicUserBonusRequest} returns this
17511
+ */
17512
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.clearCurrencyScale = function() {
17513
+ return jspb.Message.setField(this, 8, undefined);
17514
+ };
17515
+
17516
+
17517
+ /**
17518
+ * Returns whether this field is set.
17519
+ * @return {boolean}
17520
+ */
17521
+ proto.bonus.GrantDynamicUserBonusRequest.prototype.hasCurrencyScale = function() {
17522
+ return jspb.Message.getField(this, 8) != null;
17523
+ };
17524
+
17525
+
17430
17526
 
17431
17527
 
17432
17528
 
@@ -209,5 +209,8 @@ message GetUserCashbackInformationResponse {
209
209
  optional string content = 5;
210
210
  optional string nearest_claim_expires_at = 6;
211
211
  repeated UserCashbackInformationDefinitionItem definitions = 7;
212
+ optional string description = 8;
213
+ optional string image = 9;
214
+ optional string image_cdn = 10;
212
215
  }
213
216
 
@@ -8959,7 +8959,10 @@ proto.cashback.GetUserCashbackInformationResponse.toObject = function(includeIns
8959
8959
  content: jspb.Message.getFieldWithDefault(msg, 5, ""),
8960
8960
  nearestClaimExpiresAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
8961
8961
  definitionsList: jspb.Message.toObjectList(msg.getDefinitionsList(),
8962
- proto.cashback.UserCashbackInformationDefinitionItem.toObject, includeInstance)
8962
+ proto.cashback.UserCashbackInformationDefinitionItem.toObject, includeInstance),
8963
+ description: jspb.Message.getFieldWithDefault(msg, 8, ""),
8964
+ image: jspb.Message.getFieldWithDefault(msg, 9, ""),
8965
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 10, "")
8963
8966
  };
8964
8967
 
8965
8968
  if (includeInstance) {
@@ -9025,6 +9028,18 @@ proto.cashback.GetUserCashbackInformationResponse.deserializeBinaryFromReader =
9025
9028
  reader.readMessage(value,proto.cashback.UserCashbackInformationDefinitionItem.deserializeBinaryFromReader);
9026
9029
  msg.addDefinitions(value);
9027
9030
  break;
9031
+ case 8:
9032
+ var value = /** @type {string} */ (reader.readString());
9033
+ msg.setDescription(value);
9034
+ break;
9035
+ case 9:
9036
+ var value = /** @type {string} */ (reader.readString());
9037
+ msg.setImage(value);
9038
+ break;
9039
+ case 10:
9040
+ var value = /** @type {string} */ (reader.readString());
9041
+ msg.setImageCdn(value);
9042
+ break;
9028
9043
  default:
9029
9044
  reader.skipField();
9030
9045
  break;
@@ -9104,6 +9119,27 @@ proto.cashback.GetUserCashbackInformationResponse.serializeBinaryToWriter = func
9104
9119
  proto.cashback.UserCashbackInformationDefinitionItem.serializeBinaryToWriter
9105
9120
  );
9106
9121
  }
9122
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
9123
+ if (f != null) {
9124
+ writer.writeString(
9125
+ 8,
9126
+ f
9127
+ );
9128
+ }
9129
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
9130
+ if (f != null) {
9131
+ writer.writeString(
9132
+ 9,
9133
+ f
9134
+ );
9135
+ }
9136
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
9137
+ if (f != null) {
9138
+ writer.writeString(
9139
+ 10,
9140
+ f
9141
+ );
9142
+ }
9107
9143
  };
9108
9144
 
9109
9145
 
@@ -9307,4 +9343,112 @@ proto.cashback.GetUserCashbackInformationResponse.prototype.clearDefinitionsList
9307
9343
  };
9308
9344
 
9309
9345
 
9346
+ /**
9347
+ * optional string description = 8;
9348
+ * @return {string}
9349
+ */
9350
+ proto.cashback.GetUserCashbackInformationResponse.prototype.getDescription = function() {
9351
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
9352
+ };
9353
+
9354
+
9355
+ /**
9356
+ * @param {string} value
9357
+ * @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
9358
+ */
9359
+ proto.cashback.GetUserCashbackInformationResponse.prototype.setDescription = function(value) {
9360
+ return jspb.Message.setField(this, 8, value);
9361
+ };
9362
+
9363
+
9364
+ /**
9365
+ * Clears the field making it undefined.
9366
+ * @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
9367
+ */
9368
+ proto.cashback.GetUserCashbackInformationResponse.prototype.clearDescription = function() {
9369
+ return jspb.Message.setField(this, 8, undefined);
9370
+ };
9371
+
9372
+
9373
+ /**
9374
+ * Returns whether this field is set.
9375
+ * @return {boolean}
9376
+ */
9377
+ proto.cashback.GetUserCashbackInformationResponse.prototype.hasDescription = function() {
9378
+ return jspb.Message.getField(this, 8) != null;
9379
+ };
9380
+
9381
+
9382
+ /**
9383
+ * optional string image = 9;
9384
+ * @return {string}
9385
+ */
9386
+ proto.cashback.GetUserCashbackInformationResponse.prototype.getImage = function() {
9387
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
9388
+ };
9389
+
9390
+
9391
+ /**
9392
+ * @param {string} value
9393
+ * @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
9394
+ */
9395
+ proto.cashback.GetUserCashbackInformationResponse.prototype.setImage = function(value) {
9396
+ return jspb.Message.setField(this, 9, value);
9397
+ };
9398
+
9399
+
9400
+ /**
9401
+ * Clears the field making it undefined.
9402
+ * @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
9403
+ */
9404
+ proto.cashback.GetUserCashbackInformationResponse.prototype.clearImage = function() {
9405
+ return jspb.Message.setField(this, 9, undefined);
9406
+ };
9407
+
9408
+
9409
+ /**
9410
+ * Returns whether this field is set.
9411
+ * @return {boolean}
9412
+ */
9413
+ proto.cashback.GetUserCashbackInformationResponse.prototype.hasImage = function() {
9414
+ return jspb.Message.getField(this, 9) != null;
9415
+ };
9416
+
9417
+
9418
+ /**
9419
+ * optional string image_cdn = 10;
9420
+ * @return {string}
9421
+ */
9422
+ proto.cashback.GetUserCashbackInformationResponse.prototype.getImageCdn = function() {
9423
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
9424
+ };
9425
+
9426
+
9427
+ /**
9428
+ * @param {string} value
9429
+ * @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
9430
+ */
9431
+ proto.cashback.GetUserCashbackInformationResponse.prototype.setImageCdn = function(value) {
9432
+ return jspb.Message.setField(this, 10, value);
9433
+ };
9434
+
9435
+
9436
+ /**
9437
+ * Clears the field making it undefined.
9438
+ * @return {!proto.cashback.GetUserCashbackInformationResponse} returns this
9439
+ */
9440
+ proto.cashback.GetUserCashbackInformationResponse.prototype.clearImageCdn = function() {
9441
+ return jspb.Message.setField(this, 10, undefined);
9442
+ };
9443
+
9444
+
9445
+ /**
9446
+ * Returns whether this field is set.
9447
+ * @return {boolean}
9448
+ */
9449
+ proto.cashback.GetUserCashbackInformationResponse.prototype.hasImageCdn = function() {
9450
+ return jspb.Message.getField(this, 10) != null;
9451
+ };
9452
+
9453
+
9310
9454
  goog.object.extend(exports, proto.cashback);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.507",
3
+ "version": "1.2.510",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {