protobuf-platform 1.2.473 → 1.2.475

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;
@@ -532,3 +537,37 @@ message DashboardResponse {
532
537
  int32 free_spins_played = 2;
533
538
  float free_spins_played_sum = 3;
534
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
+ }