protobuf-platform 1.2.697 → 1.2.699
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 +2 -0
- package/bonus/bonus_pb.js +49 -1
- package/cashback/cashback.proto +5 -0
- package/cashback/cashback_pb.js +196 -4
- package/loyalty/loyalty.proto +9 -0
- package/loyalty/loyalty_grpc_pb.js +23 -0
- package/loyalty/loyalty_pb.js +260 -0
- package/package.json +1 -1
- package/payment/payment.proto +8 -0
- package/payment/payment_grpc_pb.js +22 -0
- package/payment/payment_pb.js +242 -0
- package/promocode/promocode.proto +51 -0
- package/promocode/promocode_grpc_pb.js +110 -0
- package/promocode/promocode_pb.js +2154 -0
package/bonus/bonus.proto
CHANGED
|
@@ -512,6 +512,8 @@ message ApplyUserBonusPromocodeRequest {
|
|
|
512
512
|
optional string currency = 4;
|
|
513
513
|
optional string country = 5;
|
|
514
514
|
optional string locale = 6;
|
|
515
|
+
// Set when a deposit has already been created. Binds a deposit-area code to that deposit.
|
|
516
|
+
optional int32 deposit_id = 7;
|
|
515
517
|
}
|
|
516
518
|
message GrantSystemUserBonusRequest {
|
|
517
519
|
int32 user_id = 1;
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -21266,7 +21266,8 @@ proto.bonus.ApplyUserBonusPromocodeRequest.toObject = function(includeInstance,
|
|
|
21266
21266
|
userBonusId: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
21267
21267
|
currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
21268
21268
|
country: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
21269
|
-
locale: jspb.Message.getFieldWithDefault(msg, 6, "")
|
|
21269
|
+
locale: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
21270
|
+
depositId: jspb.Message.getFieldWithDefault(msg, 7, 0)
|
|
21270
21271
|
};
|
|
21271
21272
|
|
|
21272
21273
|
if (includeInstance) {
|
|
@@ -21327,6 +21328,10 @@ proto.bonus.ApplyUserBonusPromocodeRequest.deserializeBinaryFromReader = functio
|
|
|
21327
21328
|
var value = /** @type {string} */ (reader.readString());
|
|
21328
21329
|
msg.setLocale(value);
|
|
21329
21330
|
break;
|
|
21331
|
+
case 7:
|
|
21332
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
21333
|
+
msg.setDepositId(value);
|
|
21334
|
+
break;
|
|
21330
21335
|
default:
|
|
21331
21336
|
reader.skipField();
|
|
21332
21337
|
break;
|
|
@@ -21398,6 +21403,13 @@ proto.bonus.ApplyUserBonusPromocodeRequest.serializeBinaryToWriter = function(me
|
|
|
21398
21403
|
f
|
|
21399
21404
|
);
|
|
21400
21405
|
}
|
|
21406
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
|
21407
|
+
if (f != null) {
|
|
21408
|
+
writer.writeInt32(
|
|
21409
|
+
7,
|
|
21410
|
+
f
|
|
21411
|
+
);
|
|
21412
|
+
}
|
|
21401
21413
|
};
|
|
21402
21414
|
|
|
21403
21415
|
|
|
@@ -21581,6 +21593,42 @@ proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasLocale = function() {
|
|
|
21581
21593
|
};
|
|
21582
21594
|
|
|
21583
21595
|
|
|
21596
|
+
/**
|
|
21597
|
+
* optional int32 deposit_id = 7;
|
|
21598
|
+
* @return {number}
|
|
21599
|
+
*/
|
|
21600
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.getDepositId = function() {
|
|
21601
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
21602
|
+
};
|
|
21603
|
+
|
|
21604
|
+
|
|
21605
|
+
/**
|
|
21606
|
+
* @param {number} value
|
|
21607
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
21608
|
+
*/
|
|
21609
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.setDepositId = function(value) {
|
|
21610
|
+
return jspb.Message.setField(this, 7, value);
|
|
21611
|
+
};
|
|
21612
|
+
|
|
21613
|
+
|
|
21614
|
+
/**
|
|
21615
|
+
* Clears the field making it undefined.
|
|
21616
|
+
* @return {!proto.bonus.ApplyUserBonusPromocodeRequest} returns this
|
|
21617
|
+
*/
|
|
21618
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.clearDepositId = function() {
|
|
21619
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
21620
|
+
};
|
|
21621
|
+
|
|
21622
|
+
|
|
21623
|
+
/**
|
|
21624
|
+
* Returns whether this field is set.
|
|
21625
|
+
* @return {boolean}
|
|
21626
|
+
*/
|
|
21627
|
+
proto.bonus.ApplyUserBonusPromocodeRequest.prototype.hasDepositId = function() {
|
|
21628
|
+
return jspb.Message.getField(this, 7) != null;
|
|
21629
|
+
};
|
|
21630
|
+
|
|
21631
|
+
|
|
21584
21632
|
|
|
21585
21633
|
|
|
21586
21634
|
|
package/cashback/cashback.proto
CHANGED
|
@@ -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;
|
package/cashback/cashback_pb.js
CHANGED
|
@@ -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
|
|
package/loyalty/loyalty.proto
CHANGED
|
@@ -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',
|