protobuf-platform 1.2.472 → 1.2.474

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
@@ -236,6 +236,7 @@ message BonusItem {
236
236
  repeated int64 excluded_segment_ids = 40;
237
237
  // Business-allowed: "any" | "real" | "bonus"
238
238
  string wager_balance_priority = 41;
239
+ repeated string available_actions = 42;
239
240
  }
240
241
  message BonusItemsResponse {
241
242
  repeated BonusItem items = 1;
@@ -316,6 +317,8 @@ message UserBonusItem {
316
317
  optional string history_type = 30;
317
318
  optional bool can_activate = 31;
318
319
  optional int32 user_promocode_id = 32;
320
+ optional string promo_code = 33;
321
+ repeated string available_actions = 34;
319
322
  }
320
323
  message FreeSpinItem {
321
324
  int32 game_id = 1;
@@ -358,6 +361,8 @@ message GetUserBonusRequest {
358
361
  optional string status = 10;
359
362
  optional bool is_mobile = 11;
360
363
  optional string promo_code = 12;
364
+ // Business-allowed: "manual" | "threshold" | "balance_depleted" | "expired"
365
+ optional string cancel_reason = 13;
361
366
  }
362
367
  message ApplyUserPromocodeToUserBonusRequest {
363
368
  int32 user_id = 1;
@@ -458,6 +463,8 @@ message ActiveWageringUserBonusItem {
458
463
  optional int64 wagering_end_in_milliseconds = 7;
459
464
  repeated string wager_balances = 8;
460
465
  optional int32 wager_games_list_id = 9;
466
+ // Business-allowed: "any" | "real" | "bonus"
467
+ optional string wager_balance_priority = 10;
461
468
  }
462
469
  message GetCommonUserBonusItemsRequest {
463
470
  int32 user_id = 1;
@@ -494,6 +501,8 @@ message ValidateSelectedWageringUserBonusResponse {
494
501
  bool real_wagering = 9;
495
502
  bool bonus_wagering = 10;
496
503
  float cancellation_amount = 11;
504
+ // Business-allowed: "any" | "real" | "bonus"
505
+ optional string wager_balance_priority = 12;
497
506
  }
498
507
  //Common Lists
499
508
  message BonusType {
@@ -528,3 +537,37 @@ message DashboardResponse {
528
537
  int32 free_spins_played = 2;
529
538
  float free_spins_played_sum = 3;
530
539
  }
540
+ // RabbitMQ lifecycle events (routing key: bonus_canceled)
541
+ message BonusCanceledEvent {
542
+ optional int32 user_id = 1;
543
+ optional string user_public_id = 2;
544
+ optional int32 bonus_id = 3;
545
+ optional int32 user_bonus_id = 4;
546
+ optional string bonus_title = 5;
547
+ optional string bonus_type = 6;
548
+ optional string bonus_category = 7;
549
+ optional string status = 8;
550
+ optional string canceled_at = 9;
551
+ // Business-allowed: "manual" | "threshold" | "balance_depleted" | "expired"
552
+ optional string cancel_reason = 10;
553
+ optional string actor_id = 11;
554
+ optional string actor_role = 12;
555
+ optional string request_id = 13;
556
+ optional bool admin_initiated = 14;
557
+ }
558
+ // RabbitMQ lifecycle events (routing key: bonus_claimed)
559
+ message BonusClaimedEvent {
560
+ optional int32 user_id = 1;
561
+ optional string user_public_id = 2;
562
+ optional int32 bonus_id = 3;
563
+ optional int32 user_bonus_id = 4;
564
+ optional string bonus_title = 5;
565
+ optional string bonus_type = 6;
566
+ optional string bonus_category = 7;
567
+ optional string status = 8;
568
+ optional string claimed_at = 9;
569
+ optional string actor_id = 10;
570
+ optional string actor_role = 11;
571
+ optional string request_id = 12;
572
+ optional bool admin_initiated = 13;
573
+ }