protobuf-platform 1.2.698 → 1.2.700

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.
@@ -68,6 +68,8 @@ message CashbackItem {
68
68
  optional string content = 13;
69
69
  optional int32 claim_expiration_hours = 14;
70
70
  optional int32 loyalty_level_id = 15;
71
+ // ALL, CASINO, or SPORT. Absent preserves wager-game list behavior.
72
+ optional string event_source = 16;
71
73
  }
72
74
  message CashbackRequest {
73
75
  oneof request {
@@ -88,6 +90,7 @@ message CashbackItemRequest {
88
90
  optional string content = 11;
89
91
  optional int32 claim_expiration_hours = 12;
90
92
  optional int32 loyalty_level_id = 13;
93
+ optional string event_source = 14;
91
94
  }
92
95
  message GetCashbackRequest {
93
96
  int32 id = 1;
@@ -110,6 +113,7 @@ message CashbackConfigRequest {
110
113
  optional float min = 3;
111
114
  optional float max = 4;
112
115
  optional float percentage = 5;
116
+ optional string payout_currency = 6;
113
117
  }
114
118
 
115
119
  message CashbackConfigItem {
@@ -118,6 +122,7 @@ message CashbackConfigItem {
118
122
  optional float min = 3;
119
123
  optional float max = 4;
120
124
  optional float percentage = 5;
125
+ optional string payout_currency = 6;
121
126
  }
122
127
  message CashbackActions {
123
128
  bool can_claim = 1;
@@ -2560,7 +2560,8 @@ proto.cashback.CashbackItem.toObject = function(includeInstance, msg) {
2560
2560
  bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 12, 0),
2561
2561
  content: jspb.Message.getFieldWithDefault(msg, 13, ""),
2562
2562
  claimExpirationHours: jspb.Message.getFieldWithDefault(msg, 14, 0),
2563
- loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 15, 0)
2563
+ loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 15, 0),
2564
+ eventSource: jspb.Message.getFieldWithDefault(msg, 16, "")
2564
2565
  };
2565
2566
 
2566
2567
  if (includeInstance) {
@@ -2654,6 +2655,10 @@ proto.cashback.CashbackItem.deserializeBinaryFromReader = function(msg, reader)
2654
2655
  var value = /** @type {number} */ (reader.readInt32());
2655
2656
  msg.setLoyaltyLevelId(value);
2656
2657
  break;
2658
+ case 16:
2659
+ var value = /** @type {string} */ (reader.readString());
2660
+ msg.setEventSource(value);
2661
+ break;
2657
2662
  default:
2658
2663
  reader.skipField();
2659
2664
  break;
@@ -2782,6 +2787,13 @@ proto.cashback.CashbackItem.serializeBinaryToWriter = function(message, writer)
2782
2787
  f
2783
2788
  );
2784
2789
  }
2790
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
2791
+ if (f != null) {
2792
+ writer.writeString(
2793
+ 16,
2794
+ f
2795
+ );
2796
+ }
2785
2797
  };
2786
2798
 
2787
2799
 
@@ -3291,6 +3303,42 @@ proto.cashback.CashbackItem.prototype.hasLoyaltyLevelId = function() {
3291
3303
  };
3292
3304
 
3293
3305
 
3306
+ /**
3307
+ * optional string event_source = 16;
3308
+ * @return {string}
3309
+ */
3310
+ proto.cashback.CashbackItem.prototype.getEventSource = function() {
3311
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
3312
+ };
3313
+
3314
+
3315
+ /**
3316
+ * @param {string} value
3317
+ * @return {!proto.cashback.CashbackItem} returns this
3318
+ */
3319
+ proto.cashback.CashbackItem.prototype.setEventSource = function(value) {
3320
+ return jspb.Message.setField(this, 16, value);
3321
+ };
3322
+
3323
+
3324
+ /**
3325
+ * Clears the field making it undefined.
3326
+ * @return {!proto.cashback.CashbackItem} returns this
3327
+ */
3328
+ proto.cashback.CashbackItem.prototype.clearEventSource = function() {
3329
+ return jspb.Message.setField(this, 16, undefined);
3330
+ };
3331
+
3332
+
3333
+ /**
3334
+ * Returns whether this field is set.
3335
+ * @return {boolean}
3336
+ */
3337
+ proto.cashback.CashbackItem.prototype.hasEventSource = function() {
3338
+ return jspb.Message.getField(this, 16) != null;
3339
+ };
3340
+
3341
+
3294
3342
 
3295
3343
  /**
3296
3344
  * Oneof group definitions for this message. Each group defines the field
@@ -3562,7 +3610,8 @@ proto.cashback.CashbackItemRequest.toObject = function(includeInstance, msg) {
3562
3610
  bonusTemplateId: jspb.Message.getFieldWithDefault(msg, 10, 0),
3563
3611
  content: jspb.Message.getFieldWithDefault(msg, 11, ""),
3564
3612
  claimExpirationHours: jspb.Message.getFieldWithDefault(msg, 12, 0),
3565
- loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 13, 0)
3613
+ loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 13, 0),
3614
+ eventSource: jspb.Message.getFieldWithDefault(msg, 14, "")
3566
3615
  };
3567
3616
 
3568
3617
  if (includeInstance) {
@@ -3647,6 +3696,10 @@ proto.cashback.CashbackItemRequest.deserializeBinaryFromReader = function(msg, r
3647
3696
  var value = /** @type {number} */ (reader.readInt32());
3648
3697
  msg.setLoyaltyLevelId(value);
3649
3698
  break;
3699
+ case 14:
3700
+ var value = /** @type {string} */ (reader.readString());
3701
+ msg.setEventSource(value);
3702
+ break;
3650
3703
  default:
3651
3704
  reader.skipField();
3652
3705
  break;
@@ -3760,6 +3813,13 @@ proto.cashback.CashbackItemRequest.serializeBinaryToWriter = function(message, w
3760
3813
  f
3761
3814
  );
3762
3815
  }
3816
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
3817
+ if (f != null) {
3818
+ writer.writeString(
3819
+ 14,
3820
+ f
3821
+ );
3822
+ }
3763
3823
  };
3764
3824
 
3765
3825
 
@@ -4195,6 +4255,42 @@ proto.cashback.CashbackItemRequest.prototype.hasLoyaltyLevelId = function() {
4195
4255
  };
4196
4256
 
4197
4257
 
4258
+ /**
4259
+ * optional string event_source = 14;
4260
+ * @return {string}
4261
+ */
4262
+ proto.cashback.CashbackItemRequest.prototype.getEventSource = function() {
4263
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
4264
+ };
4265
+
4266
+
4267
+ /**
4268
+ * @param {string} value
4269
+ * @return {!proto.cashback.CashbackItemRequest} returns this
4270
+ */
4271
+ proto.cashback.CashbackItemRequest.prototype.setEventSource = function(value) {
4272
+ return jspb.Message.setField(this, 14, value);
4273
+ };
4274
+
4275
+
4276
+ /**
4277
+ * Clears the field making it undefined.
4278
+ * @return {!proto.cashback.CashbackItemRequest} returns this
4279
+ */
4280
+ proto.cashback.CashbackItemRequest.prototype.clearEventSource = function() {
4281
+ return jspb.Message.setField(this, 14, undefined);
4282
+ };
4283
+
4284
+
4285
+ /**
4286
+ * Returns whether this field is set.
4287
+ * @return {boolean}
4288
+ */
4289
+ proto.cashback.CashbackItemRequest.prototype.hasEventSource = function() {
4290
+ return jspb.Message.getField(this, 14) != null;
4291
+ };
4292
+
4293
+
4198
4294
 
4199
4295
 
4200
4296
 
@@ -4898,7 +4994,8 @@ proto.cashback.CashbackConfigRequest.toObject = function(includeInstance, msg) {
4898
4994
  currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
4899
4995
  min: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
4900
4996
  max: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
4901
- percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
4997
+ percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
4998
+ payoutCurrency: jspb.Message.getFieldWithDefault(msg, 6, "")
4902
4999
  };
4903
5000
 
4904
5001
  if (includeInstance) {
@@ -4955,6 +5052,10 @@ proto.cashback.CashbackConfigRequest.deserializeBinaryFromReader = function(msg,
4955
5052
  var value = /** @type {number} */ (reader.readFloat());
4956
5053
  msg.setPercentage(value);
4957
5054
  break;
5055
+ case 6:
5056
+ var value = /** @type {string} */ (reader.readString());
5057
+ msg.setPayoutCurrency(value);
5058
+ break;
4958
5059
  default:
4959
5060
  reader.skipField();
4960
5061
  break;
@@ -5019,6 +5120,13 @@ proto.cashback.CashbackConfigRequest.serializeBinaryToWriter = function(message,
5019
5120
  f
5020
5121
  );
5021
5122
  }
5123
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
5124
+ if (f != null) {
5125
+ writer.writeString(
5126
+ 6,
5127
+ f
5128
+ );
5129
+ }
5022
5130
  };
5023
5131
 
5024
5132
 
@@ -5166,6 +5274,42 @@ proto.cashback.CashbackConfigRequest.prototype.hasPercentage = function() {
5166
5274
  };
5167
5275
 
5168
5276
 
5277
+ /**
5278
+ * optional string payout_currency = 6;
5279
+ * @return {string}
5280
+ */
5281
+ proto.cashback.CashbackConfigRequest.prototype.getPayoutCurrency = function() {
5282
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
5283
+ };
5284
+
5285
+
5286
+ /**
5287
+ * @param {string} value
5288
+ * @return {!proto.cashback.CashbackConfigRequest} returns this
5289
+ */
5290
+ proto.cashback.CashbackConfigRequest.prototype.setPayoutCurrency = function(value) {
5291
+ return jspb.Message.setField(this, 6, value);
5292
+ };
5293
+
5294
+
5295
+ /**
5296
+ * Clears the field making it undefined.
5297
+ * @return {!proto.cashback.CashbackConfigRequest} returns this
5298
+ */
5299
+ proto.cashback.CashbackConfigRequest.prototype.clearPayoutCurrency = function() {
5300
+ return jspb.Message.setField(this, 6, undefined);
5301
+ };
5302
+
5303
+
5304
+ /**
5305
+ * Returns whether this field is set.
5306
+ * @return {boolean}
5307
+ */
5308
+ proto.cashback.CashbackConfigRequest.prototype.hasPayoutCurrency = function() {
5309
+ return jspb.Message.getField(this, 6) != null;
5310
+ };
5311
+
5312
+
5169
5313
 
5170
5314
 
5171
5315
 
@@ -5202,7 +5346,8 @@ proto.cashback.CashbackConfigItem.toObject = function(includeInstance, msg) {
5202
5346
  currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
5203
5347
  min: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
5204
5348
  max: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
5205
- percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
5349
+ percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
5350
+ payoutCurrency: jspb.Message.getFieldWithDefault(msg, 6, "")
5206
5351
  };
5207
5352
 
5208
5353
  if (includeInstance) {
@@ -5259,6 +5404,10 @@ proto.cashback.CashbackConfigItem.deserializeBinaryFromReader = function(msg, re
5259
5404
  var value = /** @type {number} */ (reader.readFloat());
5260
5405
  msg.setPercentage(value);
5261
5406
  break;
5407
+ case 6:
5408
+ var value = /** @type {string} */ (reader.readString());
5409
+ msg.setPayoutCurrency(value);
5410
+ break;
5262
5411
  default:
5263
5412
  reader.skipField();
5264
5413
  break;
@@ -5323,6 +5472,13 @@ proto.cashback.CashbackConfigItem.serializeBinaryToWriter = function(message, wr
5323
5472
  f
5324
5473
  );
5325
5474
  }
5475
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
5476
+ if (f != null) {
5477
+ writer.writeString(
5478
+ 6,
5479
+ f
5480
+ );
5481
+ }
5326
5482
  };
5327
5483
 
5328
5484
 
@@ -5506,6 +5662,42 @@ proto.cashback.CashbackConfigItem.prototype.hasPercentage = function() {
5506
5662
  };
5507
5663
 
5508
5664
 
5665
+ /**
5666
+ * optional string payout_currency = 6;
5667
+ * @return {string}
5668
+ */
5669
+ proto.cashback.CashbackConfigItem.prototype.getPayoutCurrency = function() {
5670
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
5671
+ };
5672
+
5673
+
5674
+ /**
5675
+ * @param {string} value
5676
+ * @return {!proto.cashback.CashbackConfigItem} returns this
5677
+ */
5678
+ proto.cashback.CashbackConfigItem.prototype.setPayoutCurrency = function(value) {
5679
+ return jspb.Message.setField(this, 6, value);
5680
+ };
5681
+
5682
+
5683
+ /**
5684
+ * Clears the field making it undefined.
5685
+ * @return {!proto.cashback.CashbackConfigItem} returns this
5686
+ */
5687
+ proto.cashback.CashbackConfigItem.prototype.clearPayoutCurrency = function() {
5688
+ return jspb.Message.setField(this, 6, undefined);
5689
+ };
5690
+
5691
+
5692
+ /**
5693
+ * Returns whether this field is set.
5694
+ * @return {boolean}
5695
+ */
5696
+ proto.cashback.CashbackConfigItem.prototype.hasPayoutCurrency = function() {
5697
+ return jspb.Message.getField(this, 6) != null;
5698
+ };
5699
+
5700
+
5509
5701
 
5510
5702
 
5511
5703
 
@@ -373,6 +373,7 @@ message MirrorCountriesResponse {
373
373
  enum CloudflareCacheInvalidationAction {
374
374
  CLOUDFLARE_CACHE_INVALIDATION_ACTION_UNSPECIFIED = 0;
375
375
  CLOUDFLARE_CACHE_INVALIDATION_ACTION_BUMP_VERSION = 1;
376
+ CLOUDFLARE_CACHE_INVALIDATION_ACTION_PUBLISH_VERSION = 2;
376
377
  }
377
378
  message CloudflareCacheInvalidationDimension {
378
379
  string key = 1;
@@ -386,6 +387,8 @@ message InvalidateCloudflareCacheRequest {
386
387
  string environment = 1;
387
388
  CloudflareCacheInvalidationAction action = 2;
388
389
  repeated CloudflareCacheInvalidationTarget targets = 3;
390
+ optional int64 published_version = 4;
391
+ optional string customer = 5;
389
392
  }
390
393
  message CloudflareCacheInvalidationTargetResult {
391
394
  string namespace = 1;
@@ -15377,7 +15377,9 @@ proto.config.InvalidateCloudflareCacheRequest.toObject = function(includeInstanc
15377
15377
  environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
15378
15378
  action: jspb.Message.getFieldWithDefault(msg, 2, 0),
15379
15379
  targetsList: jspb.Message.toObjectList(msg.getTargetsList(),
15380
- proto.config.CloudflareCacheInvalidationTarget.toObject, includeInstance)
15380
+ proto.config.CloudflareCacheInvalidationTarget.toObject, includeInstance),
15381
+ publishedVersion: jspb.Message.getFieldWithDefault(msg, 4, 0),
15382
+ customer: jspb.Message.getFieldWithDefault(msg, 5, "")
15381
15383
  };
15382
15384
 
15383
15385
  if (includeInstance) {
@@ -15427,6 +15429,14 @@ proto.config.InvalidateCloudflareCacheRequest.deserializeBinaryFromReader = func
15427
15429
  reader.readMessage(value,proto.config.CloudflareCacheInvalidationTarget.deserializeBinaryFromReader);
15428
15430
  msg.addTargets(value);
15429
15431
  break;
15432
+ case 4:
15433
+ var value = /** @type {number} */ (reader.readInt64());
15434
+ msg.setPublishedVersion(value);
15435
+ break;
15436
+ case 5:
15437
+ var value = /** @type {string} */ (reader.readString());
15438
+ msg.setCustomer(value);
15439
+ break;
15430
15440
  default:
15431
15441
  reader.skipField();
15432
15442
  break;
@@ -15478,6 +15488,20 @@ proto.config.InvalidateCloudflareCacheRequest.serializeBinaryToWriter = function
15478
15488
  proto.config.CloudflareCacheInvalidationTarget.serializeBinaryToWriter
15479
15489
  );
15480
15490
  }
15491
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
15492
+ if (f != null) {
15493
+ writer.writeInt64(
15494
+ 4,
15495
+ f
15496
+ );
15497
+ }
15498
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
15499
+ if (f != null) {
15500
+ writer.writeString(
15501
+ 5,
15502
+ f
15503
+ );
15504
+ }
15481
15505
  };
15482
15506
 
15483
15507
 
@@ -15555,6 +15579,78 @@ proto.config.InvalidateCloudflareCacheRequest.prototype.clearTargetsList = funct
15555
15579
  };
15556
15580
 
15557
15581
 
15582
+ /**
15583
+ * optional int64 published_version = 4;
15584
+ * @return {number}
15585
+ */
15586
+ proto.config.InvalidateCloudflareCacheRequest.prototype.getPublishedVersion = function() {
15587
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
15588
+ };
15589
+
15590
+
15591
+ /**
15592
+ * @param {number} value
15593
+ * @return {!proto.config.InvalidateCloudflareCacheRequest} returns this
15594
+ */
15595
+ proto.config.InvalidateCloudflareCacheRequest.prototype.setPublishedVersion = function(value) {
15596
+ return jspb.Message.setField(this, 4, value);
15597
+ };
15598
+
15599
+
15600
+ /**
15601
+ * Clears the field making it undefined.
15602
+ * @return {!proto.config.InvalidateCloudflareCacheRequest} returns this
15603
+ */
15604
+ proto.config.InvalidateCloudflareCacheRequest.prototype.clearPublishedVersion = function() {
15605
+ return jspb.Message.setField(this, 4, undefined);
15606
+ };
15607
+
15608
+
15609
+ /**
15610
+ * Returns whether this field is set.
15611
+ * @return {boolean}
15612
+ */
15613
+ proto.config.InvalidateCloudflareCacheRequest.prototype.hasPublishedVersion = function() {
15614
+ return jspb.Message.getField(this, 4) != null;
15615
+ };
15616
+
15617
+
15618
+ /**
15619
+ * optional string customer = 5;
15620
+ * @return {string}
15621
+ */
15622
+ proto.config.InvalidateCloudflareCacheRequest.prototype.getCustomer = function() {
15623
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
15624
+ };
15625
+
15626
+
15627
+ /**
15628
+ * @param {string} value
15629
+ * @return {!proto.config.InvalidateCloudflareCacheRequest} returns this
15630
+ */
15631
+ proto.config.InvalidateCloudflareCacheRequest.prototype.setCustomer = function(value) {
15632
+ return jspb.Message.setField(this, 5, value);
15633
+ };
15634
+
15635
+
15636
+ /**
15637
+ * Clears the field making it undefined.
15638
+ * @return {!proto.config.InvalidateCloudflareCacheRequest} returns this
15639
+ */
15640
+ proto.config.InvalidateCloudflareCacheRequest.prototype.clearCustomer = function() {
15641
+ return jspb.Message.setField(this, 5, undefined);
15642
+ };
15643
+
15644
+
15645
+ /**
15646
+ * Returns whether this field is set.
15647
+ * @return {boolean}
15648
+ */
15649
+ proto.config.InvalidateCloudflareCacheRequest.prototype.hasCustomer = function() {
15650
+ return jspb.Message.getField(this, 5) != null;
15651
+ };
15652
+
15653
+
15558
15654
 
15559
15655
  /**
15560
15656
  * List of repeated fields within this message type.
@@ -16066,7 +16162,8 @@ proto.config.InvalidateCloudflareCacheResponse.prototype.clearResultsList = func
16066
16162
  */
16067
16163
  proto.config.CloudflareCacheInvalidationAction = {
16068
16164
  CLOUDFLARE_CACHE_INVALIDATION_ACTION_UNSPECIFIED: 0,
16069
- CLOUDFLARE_CACHE_INVALIDATION_ACTION_BUMP_VERSION: 1
16165
+ CLOUDFLARE_CACHE_INVALIDATION_ACTION_BUMP_VERSION: 1,
16166
+ CLOUDFLARE_CACHE_INVALIDATION_ACTION_PUBLISH_VERSION: 2
16070
16167
  };
16071
16168
 
16072
16169
  goog.object.extend(exports, proto.config);
@@ -24,6 +24,8 @@ service Loyalty {
24
24
  //Users
25
25
  rpc getUserLoyalty(GetUserLoyaltyRequest) returns (UserLoyaltyResponse);
26
26
  rpc getUserLoyaltyPoints(GetUserLoyaltyRequest) returns (UserLoyaltyPointsResponse);
27
+ // Administrative correction. Does not create achievements, rewards, or level-up events.
28
+ rpc correctUserLoyalty(CorrectUserLoyaltyRequest) returns (UserLoyaltyResponse);
27
29
  // Deposit point period caps. Absence of a level-limit row means unlimited.
28
30
  rpc readDepositPointLimitSettings(GetDepositPointLimitSettingsRequest) returns (DepositPointLimitSettingsResponse);
29
31
  rpc setDepositPointLimitPeriod(SetDepositPointLimitPeriodRequest) returns (DepositPointLimitSettingsResponse);
@@ -290,6 +292,13 @@ message GetUserLoyaltyRequest {
290
292
  optional int32 limit = 3;
291
293
  optional int32 offset = 4;
292
294
  }
295
+ // points_in_level is progress inside the selected level, not lifetime points.
296
+ message CorrectUserLoyaltyRequest {
297
+ int32 user_id = 1;
298
+ int32 loyalty_level_id = 2;
299
+ string points_in_level = 3;
300
+ optional string operator_id = 4;
301
+ }
293
302
  message UserLoyaltyResponse {
294
303
  optional int32 loyalty_id = 1;
295
304
  optional int32 loyalty_level = 2;
@@ -4,6 +4,17 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var loyalty_pb = require('./loyalty_pb.js');
6
6
 
7
+ function serialize_loyalty_CorrectUserLoyaltyRequest(arg) {
8
+ if (!(arg instanceof loyalty_pb.CorrectUserLoyaltyRequest)) {
9
+ throw new Error('Expected argument of type loyalty.CorrectUserLoyaltyRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_loyalty_CorrectUserLoyaltyRequest(buffer_arg) {
15
+ return loyalty_pb.CorrectUserLoyaltyRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
7
18
  function serialize_loyalty_DepositPointLevelLimitItemsResponse(arg) {
8
19
  if (!(arg instanceof loyalty_pb.DepositPointLevelLimitItemsResponse)) {
9
20
  throw new Error('Expected argument of type loyalty.DepositPointLevelLimitItemsResponse');
@@ -548,6 +559,18 @@ getUserLoyalty: {
548
559
  responseSerialize: serialize_loyalty_UserLoyaltyPointsResponse,
549
560
  responseDeserialize: deserialize_loyalty_UserLoyaltyPointsResponse,
550
561
  },
562
+ // Administrative correction. Does not create achievements, rewards, or level-up events.
563
+ correctUserLoyalty: {
564
+ path: '/loyalty.Loyalty/correctUserLoyalty',
565
+ requestStream: false,
566
+ responseStream: false,
567
+ requestType: loyalty_pb.CorrectUserLoyaltyRequest,
568
+ responseType: loyalty_pb.UserLoyaltyResponse,
569
+ requestSerialize: serialize_loyalty_CorrectUserLoyaltyRequest,
570
+ requestDeserialize: deserialize_loyalty_CorrectUserLoyaltyRequest,
571
+ responseSerialize: serialize_loyalty_UserLoyaltyResponse,
572
+ responseDeserialize: deserialize_loyalty_UserLoyaltyResponse,
573
+ },
551
574
  // Deposit point period caps. Absence of a level-limit row means unlimited.
552
575
  readDepositPointLimitSettings: {
553
576
  path: '/loyalty.Loyalty/readDepositPointLimitSettings',
@@ -24,6 +24,7 @@ var global = (function() {
24
24
  goog.exportSymbol('proto.loyalty.BetPoint', null, global);
25
25
  goog.exportSymbol('proto.loyalty.ClientDepositPointLevelLimit', null, global);
26
26
  goog.exportSymbol('proto.loyalty.ClientDepositPointLimit', null, global);
27
+ goog.exportSymbol('proto.loyalty.CorrectUserLoyaltyRequest', null, global);
27
28
  goog.exportSymbol('proto.loyalty.DepositPoint', null, global);
28
29
  goog.exportSymbol('proto.loyalty.DepositPointLevelLimit', null, global);
29
30
  goog.exportSymbol('proto.loyalty.DepositPointLevelLimitItemsResponse', null, global);
@@ -828,6 +829,27 @@ if (goog.DEBUG && !COMPILED) {
828
829
  */
829
830
  proto.loyalty.GetUserLoyaltyRequest.displayName = 'proto.loyalty.GetUserLoyaltyRequest';
830
831
  }
832
+ /**
833
+ * Generated by JsPbCodeGenerator.
834
+ * @param {Array=} opt_data Optional initial data array, typically from a
835
+ * server response, or constructed directly in Javascript. The array is used
836
+ * in place and becomes part of the constructed object. It is not cloned.
837
+ * If no data is provided, the constructed object will be empty, but still
838
+ * valid.
839
+ * @extends {jspb.Message}
840
+ * @constructor
841
+ */
842
+ proto.loyalty.CorrectUserLoyaltyRequest = function(opt_data) {
843
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
844
+ };
845
+ goog.inherits(proto.loyalty.CorrectUserLoyaltyRequest, jspb.Message);
846
+ if (goog.DEBUG && !COMPILED) {
847
+ /**
848
+ * @public
849
+ * @override
850
+ */
851
+ proto.loyalty.CorrectUserLoyaltyRequest.displayName = 'proto.loyalty.CorrectUserLoyaltyRequest';
852
+ }
831
853
  /**
832
854
  * Generated by JsPbCodeGenerator.
833
855
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -12806,6 +12828,244 @@ proto.loyalty.GetUserLoyaltyRequest.prototype.hasOffset = function() {
12806
12828
 
12807
12829
 
12808
12830
 
12831
+
12832
+
12833
+ if (jspb.Message.GENERATE_TO_OBJECT) {
12834
+ /**
12835
+ * Creates an object representation of this proto.
12836
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
12837
+ * Optional fields that are not set will be set to undefined.
12838
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
12839
+ * For the list of reserved names please see:
12840
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
12841
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
12842
+ * JSPB instance for transitional soy proto support:
12843
+ * http://goto/soy-param-migration
12844
+ * @return {!Object}
12845
+ */
12846
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.toObject = function(opt_includeInstance) {
12847
+ return proto.loyalty.CorrectUserLoyaltyRequest.toObject(opt_includeInstance, this);
12848
+ };
12849
+
12850
+
12851
+ /**
12852
+ * Static version of the {@see toObject} method.
12853
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
12854
+ * the JSPB instance for transitional soy proto support:
12855
+ * http://goto/soy-param-migration
12856
+ * @param {!proto.loyalty.CorrectUserLoyaltyRequest} msg The msg instance to transform.
12857
+ * @return {!Object}
12858
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12859
+ */
12860
+ proto.loyalty.CorrectUserLoyaltyRequest.toObject = function(includeInstance, msg) {
12861
+ var f, obj = {
12862
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
12863
+ loyaltyLevelId: jspb.Message.getFieldWithDefault(msg, 2, 0),
12864
+ pointsInLevel: jspb.Message.getFieldWithDefault(msg, 3, ""),
12865
+ operatorId: jspb.Message.getFieldWithDefault(msg, 4, "")
12866
+ };
12867
+
12868
+ if (includeInstance) {
12869
+ obj.$jspbMessageInstance = msg;
12870
+ }
12871
+ return obj;
12872
+ };
12873
+ }
12874
+
12875
+
12876
+ /**
12877
+ * Deserializes binary data (in protobuf wire format).
12878
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
12879
+ * @return {!proto.loyalty.CorrectUserLoyaltyRequest}
12880
+ */
12881
+ proto.loyalty.CorrectUserLoyaltyRequest.deserializeBinary = function(bytes) {
12882
+ var reader = new jspb.BinaryReader(bytes);
12883
+ var msg = new proto.loyalty.CorrectUserLoyaltyRequest;
12884
+ return proto.loyalty.CorrectUserLoyaltyRequest.deserializeBinaryFromReader(msg, reader);
12885
+ };
12886
+
12887
+
12888
+ /**
12889
+ * Deserializes binary data (in protobuf wire format) from the
12890
+ * given reader into the given message object.
12891
+ * @param {!proto.loyalty.CorrectUserLoyaltyRequest} msg The message object to deserialize into.
12892
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
12893
+ * @return {!proto.loyalty.CorrectUserLoyaltyRequest}
12894
+ */
12895
+ proto.loyalty.CorrectUserLoyaltyRequest.deserializeBinaryFromReader = function(msg, reader) {
12896
+ while (reader.nextField()) {
12897
+ if (reader.isEndGroup()) {
12898
+ break;
12899
+ }
12900
+ var field = reader.getFieldNumber();
12901
+ switch (field) {
12902
+ case 1:
12903
+ var value = /** @type {number} */ (reader.readInt32());
12904
+ msg.setUserId(value);
12905
+ break;
12906
+ case 2:
12907
+ var value = /** @type {number} */ (reader.readInt32());
12908
+ msg.setLoyaltyLevelId(value);
12909
+ break;
12910
+ case 3:
12911
+ var value = /** @type {string} */ (reader.readString());
12912
+ msg.setPointsInLevel(value);
12913
+ break;
12914
+ case 4:
12915
+ var value = /** @type {string} */ (reader.readString());
12916
+ msg.setOperatorId(value);
12917
+ break;
12918
+ default:
12919
+ reader.skipField();
12920
+ break;
12921
+ }
12922
+ }
12923
+ return msg;
12924
+ };
12925
+
12926
+
12927
+ /**
12928
+ * Serializes the message to binary data (in protobuf wire format).
12929
+ * @return {!Uint8Array}
12930
+ */
12931
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.serializeBinary = function() {
12932
+ var writer = new jspb.BinaryWriter();
12933
+ proto.loyalty.CorrectUserLoyaltyRequest.serializeBinaryToWriter(this, writer);
12934
+ return writer.getResultBuffer();
12935
+ };
12936
+
12937
+
12938
+ /**
12939
+ * Serializes the given message to binary data (in protobuf wire
12940
+ * format), writing to the given BinaryWriter.
12941
+ * @param {!proto.loyalty.CorrectUserLoyaltyRequest} message
12942
+ * @param {!jspb.BinaryWriter} writer
12943
+ * @suppress {unusedLocalVariables} f is only used for nested messages
12944
+ */
12945
+ proto.loyalty.CorrectUserLoyaltyRequest.serializeBinaryToWriter = function(message, writer) {
12946
+ var f = undefined;
12947
+ f = message.getUserId();
12948
+ if (f !== 0) {
12949
+ writer.writeInt32(
12950
+ 1,
12951
+ f
12952
+ );
12953
+ }
12954
+ f = message.getLoyaltyLevelId();
12955
+ if (f !== 0) {
12956
+ writer.writeInt32(
12957
+ 2,
12958
+ f
12959
+ );
12960
+ }
12961
+ f = message.getPointsInLevel();
12962
+ if (f.length > 0) {
12963
+ writer.writeString(
12964
+ 3,
12965
+ f
12966
+ );
12967
+ }
12968
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
12969
+ if (f != null) {
12970
+ writer.writeString(
12971
+ 4,
12972
+ f
12973
+ );
12974
+ }
12975
+ };
12976
+
12977
+
12978
+ /**
12979
+ * optional int32 user_id = 1;
12980
+ * @return {number}
12981
+ */
12982
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.getUserId = function() {
12983
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
12984
+ };
12985
+
12986
+
12987
+ /**
12988
+ * @param {number} value
12989
+ * @return {!proto.loyalty.CorrectUserLoyaltyRequest} returns this
12990
+ */
12991
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.setUserId = function(value) {
12992
+ return jspb.Message.setProto3IntField(this, 1, value);
12993
+ };
12994
+
12995
+
12996
+ /**
12997
+ * optional int32 loyalty_level_id = 2;
12998
+ * @return {number}
12999
+ */
13000
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.getLoyaltyLevelId = function() {
13001
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
13002
+ };
13003
+
13004
+
13005
+ /**
13006
+ * @param {number} value
13007
+ * @return {!proto.loyalty.CorrectUserLoyaltyRequest} returns this
13008
+ */
13009
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.setLoyaltyLevelId = function(value) {
13010
+ return jspb.Message.setProto3IntField(this, 2, value);
13011
+ };
13012
+
13013
+
13014
+ /**
13015
+ * optional string points_in_level = 3;
13016
+ * @return {string}
13017
+ */
13018
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.getPointsInLevel = function() {
13019
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
13020
+ };
13021
+
13022
+
13023
+ /**
13024
+ * @param {string} value
13025
+ * @return {!proto.loyalty.CorrectUserLoyaltyRequest} returns this
13026
+ */
13027
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.setPointsInLevel = function(value) {
13028
+ return jspb.Message.setProto3StringField(this, 3, value);
13029
+ };
13030
+
13031
+
13032
+ /**
13033
+ * optional string operator_id = 4;
13034
+ * @return {string}
13035
+ */
13036
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.getOperatorId = function() {
13037
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
13038
+ };
13039
+
13040
+
13041
+ /**
13042
+ * @param {string} value
13043
+ * @return {!proto.loyalty.CorrectUserLoyaltyRequest} returns this
13044
+ */
13045
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.setOperatorId = function(value) {
13046
+ return jspb.Message.setField(this, 4, value);
13047
+ };
13048
+
13049
+
13050
+ /**
13051
+ * Clears the field making it undefined.
13052
+ * @return {!proto.loyalty.CorrectUserLoyaltyRequest} returns this
13053
+ */
13054
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.clearOperatorId = function() {
13055
+ return jspb.Message.setField(this, 4, undefined);
13056
+ };
13057
+
13058
+
13059
+ /**
13060
+ * Returns whether this field is set.
13061
+ * @return {boolean}
13062
+ */
13063
+ proto.loyalty.CorrectUserLoyaltyRequest.prototype.hasOperatorId = function() {
13064
+ return jspb.Message.getField(this, 4) != null;
13065
+ };
13066
+
13067
+
13068
+
12809
13069
  /**
12810
13070
  * List of repeated fields within this message type.
12811
13071
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.698",
3
+ "version": "1.2.700",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -5,6 +5,7 @@ package payment;
5
5
  service Payment {
6
6
  // Independent, idempotent real-money level completion grant.
7
7
  rpc grantLoyaltyLevelUpReward(LoyaltyLevelUpRewardRequest) returns (LoyaltyLevelUpRewardResponse);
8
+ rpc creditCashbackClaim(CashbackClaimCreditRequest) returns (LoyaltyLevelUpRewardResponse);
8
9
  rpc checkConnection(PingRequest) returns (PongResponse);
9
10
  rpc getMediaResource(GetFileRequest) returns (stream File);
10
11
  //Payment Provider
@@ -1491,6 +1492,13 @@ message LoyaltyLevelUpRewardRequest {
1491
1492
  string amount = 3;
1492
1493
  string currency = 4;
1493
1494
  }
1495
+ // Claim identity is immutable. Amount and currency are the payout snapshot, not a new rate.
1496
+ message CashbackClaimCreditRequest {
1497
+ string claim_identity = 1;
1498
+ int32 user_id = 2;
1499
+ string amount = 3;
1500
+ string currency = 4;
1501
+ }
1494
1502
  message LoyaltyLevelUpRewardResponse {
1495
1503
  string operation_id = 1;
1496
1504
  string operation_public_id = 2;
@@ -81,6 +81,17 @@ function deserialize_payment_BonusBalanceRewardReversalRequest(buffer_arg) {
81
81
  return payment_pb.BonusBalanceRewardReversalRequest.deserializeBinary(new Uint8Array(buffer_arg));
82
82
  }
83
83
 
84
+ function serialize_payment_CashbackClaimCreditRequest(arg) {
85
+ if (!(arg instanceof payment_pb.CashbackClaimCreditRequest)) {
86
+ throw new Error('Expected argument of type payment.CashbackClaimCreditRequest');
87
+ }
88
+ return Buffer.from(arg.serializeBinary());
89
+ }
90
+
91
+ function deserialize_payment_CashbackClaimCreditRequest(buffer_arg) {
92
+ return payment_pb.CashbackClaimCreditRequest.deserializeBinary(new Uint8Array(buffer_arg));
93
+ }
94
+
84
95
  function serialize_payment_CashierFieldItemsResponse(arg) {
85
96
  if (!(arg instanceof payment_pb.CashierFieldItemsResponse)) {
86
97
  throw new Error('Expected argument of type payment.CashierFieldItemsResponse');
@@ -1140,6 +1151,17 @@ grantLoyaltyLevelUpReward: {
1140
1151
  responseSerialize: serialize_payment_LoyaltyLevelUpRewardResponse,
1141
1152
  responseDeserialize: deserialize_payment_LoyaltyLevelUpRewardResponse,
1142
1153
  },
1154
+ creditCashbackClaim: {
1155
+ path: '/payment.Payment/creditCashbackClaim',
1156
+ requestStream: false,
1157
+ responseStream: false,
1158
+ requestType: payment_pb.CashbackClaimCreditRequest,
1159
+ responseType: payment_pb.LoyaltyLevelUpRewardResponse,
1160
+ requestSerialize: serialize_payment_CashbackClaimCreditRequest,
1161
+ requestDeserialize: deserialize_payment_CashbackClaimCreditRequest,
1162
+ responseSerialize: serialize_payment_LoyaltyLevelUpRewardResponse,
1163
+ responseDeserialize: deserialize_payment_LoyaltyLevelUpRewardResponse,
1164
+ },
1143
1165
  checkConnection: {
1144
1166
  path: '/payment.Payment/checkConnection',
1145
1167
  requestStream: false,
@@ -30,6 +30,7 @@ goog.exportSymbol('proto.payment.AttemptWithdrawalRequest', null, global);
30
30
  goog.exportSymbol('proto.payment.BonusBalanceRewardIssueRequest', null, global);
31
31
  goog.exportSymbol('proto.payment.BonusBalanceRewardOperationResponse', null, global);
32
32
  goog.exportSymbol('proto.payment.BonusBalanceRewardReversalRequest', null, global);
33
+ goog.exportSymbol('proto.payment.CashbackClaimCreditRequest', null, global);
33
34
  goog.exportSymbol('proto.payment.CashierFieldItem', null, global);
34
35
  goog.exportSymbol('proto.payment.CashierFieldItemsResponse', null, global);
35
36
  goog.exportSymbol('proto.payment.CashierFieldsRequest', null, global);
@@ -3061,6 +3062,27 @@ if (goog.DEBUG && !COMPILED) {
3061
3062
  */
3062
3063
  proto.payment.LoyaltyLevelUpRewardRequest.displayName = 'proto.payment.LoyaltyLevelUpRewardRequest';
3063
3064
  }
3065
+ /**
3066
+ * Generated by JsPbCodeGenerator.
3067
+ * @param {Array=} opt_data Optional initial data array, typically from a
3068
+ * server response, or constructed directly in Javascript. The array is used
3069
+ * in place and becomes part of the constructed object. It is not cloned.
3070
+ * If no data is provided, the constructed object will be empty, but still
3071
+ * valid.
3072
+ * @extends {jspb.Message}
3073
+ * @constructor
3074
+ */
3075
+ proto.payment.CashbackClaimCreditRequest = function(opt_data) {
3076
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
3077
+ };
3078
+ goog.inherits(proto.payment.CashbackClaimCreditRequest, jspb.Message);
3079
+ if (goog.DEBUG && !COMPILED) {
3080
+ /**
3081
+ * @public
3082
+ * @override
3083
+ */
3084
+ proto.payment.CashbackClaimCreditRequest.displayName = 'proto.payment.CashbackClaimCreditRequest';
3085
+ }
3064
3086
  /**
3065
3087
  * Generated by JsPbCodeGenerator.
3066
3088
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -61002,6 +61024,226 @@ proto.payment.LoyaltyLevelUpRewardRequest.prototype.setCurrency = function(value
61002
61024
 
61003
61025
 
61004
61026
 
61027
+
61028
+
61029
+ if (jspb.Message.GENERATE_TO_OBJECT) {
61030
+ /**
61031
+ * Creates an object representation of this proto.
61032
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
61033
+ * Optional fields that are not set will be set to undefined.
61034
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
61035
+ * For the list of reserved names please see:
61036
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
61037
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
61038
+ * JSPB instance for transitional soy proto support:
61039
+ * http://goto/soy-param-migration
61040
+ * @return {!Object}
61041
+ */
61042
+ proto.payment.CashbackClaimCreditRequest.prototype.toObject = function(opt_includeInstance) {
61043
+ return proto.payment.CashbackClaimCreditRequest.toObject(opt_includeInstance, this);
61044
+ };
61045
+
61046
+
61047
+ /**
61048
+ * Static version of the {@see toObject} method.
61049
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
61050
+ * the JSPB instance for transitional soy proto support:
61051
+ * http://goto/soy-param-migration
61052
+ * @param {!proto.payment.CashbackClaimCreditRequest} msg The msg instance to transform.
61053
+ * @return {!Object}
61054
+ * @suppress {unusedLocalVariables} f is only used for nested messages
61055
+ */
61056
+ proto.payment.CashbackClaimCreditRequest.toObject = function(includeInstance, msg) {
61057
+ var f, obj = {
61058
+ claimIdentity: jspb.Message.getFieldWithDefault(msg, 1, ""),
61059
+ userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
61060
+ amount: jspb.Message.getFieldWithDefault(msg, 3, ""),
61061
+ currency: jspb.Message.getFieldWithDefault(msg, 4, "")
61062
+ };
61063
+
61064
+ if (includeInstance) {
61065
+ obj.$jspbMessageInstance = msg;
61066
+ }
61067
+ return obj;
61068
+ };
61069
+ }
61070
+
61071
+
61072
+ /**
61073
+ * Deserializes binary data (in protobuf wire format).
61074
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
61075
+ * @return {!proto.payment.CashbackClaimCreditRequest}
61076
+ */
61077
+ proto.payment.CashbackClaimCreditRequest.deserializeBinary = function(bytes) {
61078
+ var reader = new jspb.BinaryReader(bytes);
61079
+ var msg = new proto.payment.CashbackClaimCreditRequest;
61080
+ return proto.payment.CashbackClaimCreditRequest.deserializeBinaryFromReader(msg, reader);
61081
+ };
61082
+
61083
+
61084
+ /**
61085
+ * Deserializes binary data (in protobuf wire format) from the
61086
+ * given reader into the given message object.
61087
+ * @param {!proto.payment.CashbackClaimCreditRequest} msg The message object to deserialize into.
61088
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
61089
+ * @return {!proto.payment.CashbackClaimCreditRequest}
61090
+ */
61091
+ proto.payment.CashbackClaimCreditRequest.deserializeBinaryFromReader = function(msg, reader) {
61092
+ while (reader.nextField()) {
61093
+ if (reader.isEndGroup()) {
61094
+ break;
61095
+ }
61096
+ var field = reader.getFieldNumber();
61097
+ switch (field) {
61098
+ case 1:
61099
+ var value = /** @type {string} */ (reader.readString());
61100
+ msg.setClaimIdentity(value);
61101
+ break;
61102
+ case 2:
61103
+ var value = /** @type {number} */ (reader.readInt32());
61104
+ msg.setUserId(value);
61105
+ break;
61106
+ case 3:
61107
+ var value = /** @type {string} */ (reader.readString());
61108
+ msg.setAmount(value);
61109
+ break;
61110
+ case 4:
61111
+ var value = /** @type {string} */ (reader.readString());
61112
+ msg.setCurrency(value);
61113
+ break;
61114
+ default:
61115
+ reader.skipField();
61116
+ break;
61117
+ }
61118
+ }
61119
+ return msg;
61120
+ };
61121
+
61122
+
61123
+ /**
61124
+ * Serializes the message to binary data (in protobuf wire format).
61125
+ * @return {!Uint8Array}
61126
+ */
61127
+ proto.payment.CashbackClaimCreditRequest.prototype.serializeBinary = function() {
61128
+ var writer = new jspb.BinaryWriter();
61129
+ proto.payment.CashbackClaimCreditRequest.serializeBinaryToWriter(this, writer);
61130
+ return writer.getResultBuffer();
61131
+ };
61132
+
61133
+
61134
+ /**
61135
+ * Serializes the given message to binary data (in protobuf wire
61136
+ * format), writing to the given BinaryWriter.
61137
+ * @param {!proto.payment.CashbackClaimCreditRequest} message
61138
+ * @param {!jspb.BinaryWriter} writer
61139
+ * @suppress {unusedLocalVariables} f is only used for nested messages
61140
+ */
61141
+ proto.payment.CashbackClaimCreditRequest.serializeBinaryToWriter = function(message, writer) {
61142
+ var f = undefined;
61143
+ f = message.getClaimIdentity();
61144
+ if (f.length > 0) {
61145
+ writer.writeString(
61146
+ 1,
61147
+ f
61148
+ );
61149
+ }
61150
+ f = message.getUserId();
61151
+ if (f !== 0) {
61152
+ writer.writeInt32(
61153
+ 2,
61154
+ f
61155
+ );
61156
+ }
61157
+ f = message.getAmount();
61158
+ if (f.length > 0) {
61159
+ writer.writeString(
61160
+ 3,
61161
+ f
61162
+ );
61163
+ }
61164
+ f = message.getCurrency();
61165
+ if (f.length > 0) {
61166
+ writer.writeString(
61167
+ 4,
61168
+ f
61169
+ );
61170
+ }
61171
+ };
61172
+
61173
+
61174
+ /**
61175
+ * optional string claim_identity = 1;
61176
+ * @return {string}
61177
+ */
61178
+ proto.payment.CashbackClaimCreditRequest.prototype.getClaimIdentity = function() {
61179
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
61180
+ };
61181
+
61182
+
61183
+ /**
61184
+ * @param {string} value
61185
+ * @return {!proto.payment.CashbackClaimCreditRequest} returns this
61186
+ */
61187
+ proto.payment.CashbackClaimCreditRequest.prototype.setClaimIdentity = function(value) {
61188
+ return jspb.Message.setProto3StringField(this, 1, value);
61189
+ };
61190
+
61191
+
61192
+ /**
61193
+ * optional int32 user_id = 2;
61194
+ * @return {number}
61195
+ */
61196
+ proto.payment.CashbackClaimCreditRequest.prototype.getUserId = function() {
61197
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
61198
+ };
61199
+
61200
+
61201
+ /**
61202
+ * @param {number} value
61203
+ * @return {!proto.payment.CashbackClaimCreditRequest} returns this
61204
+ */
61205
+ proto.payment.CashbackClaimCreditRequest.prototype.setUserId = function(value) {
61206
+ return jspb.Message.setProto3IntField(this, 2, value);
61207
+ };
61208
+
61209
+
61210
+ /**
61211
+ * optional string amount = 3;
61212
+ * @return {string}
61213
+ */
61214
+ proto.payment.CashbackClaimCreditRequest.prototype.getAmount = function() {
61215
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
61216
+ };
61217
+
61218
+
61219
+ /**
61220
+ * @param {string} value
61221
+ * @return {!proto.payment.CashbackClaimCreditRequest} returns this
61222
+ */
61223
+ proto.payment.CashbackClaimCreditRequest.prototype.setAmount = function(value) {
61224
+ return jspb.Message.setProto3StringField(this, 3, value);
61225
+ };
61226
+
61227
+
61228
+ /**
61229
+ * optional string currency = 4;
61230
+ * @return {string}
61231
+ */
61232
+ proto.payment.CashbackClaimCreditRequest.prototype.getCurrency = function() {
61233
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
61234
+ };
61235
+
61236
+
61237
+ /**
61238
+ * @param {string} value
61239
+ * @return {!proto.payment.CashbackClaimCreditRequest} returns this
61240
+ */
61241
+ proto.payment.CashbackClaimCreditRequest.prototype.setCurrency = function(value) {
61242
+ return jspb.Message.setProto3StringField(this, 4, value);
61243
+ };
61244
+
61245
+
61246
+
61005
61247
  /**
61006
61248
  * List of repeated fields within this message type.
61007
61249
  * @private {!Array<number>}