#贏單結算通知

已結算贏單注單通知功能透過 RabbitMQ 發送有關狀態為 WON 的注單的即時通知。

#佇列名稱

隊列名稱遵循模式 {identity_prefix}.settled_win.q。有關您的環境使用的確切佇列名稱,請參閱佇列清單

隊列名稱範例:staging.10102.merchant102_server.settled_win.q

#事件資料(有效負載)

#票務資訊事件

{
  "userId": "string",           // User ID
  "username": "string",         // Username
  "userType": "string",         // Account type (e.g., AGENT, TRIAL)
  "ticketId": "string",         // Ticket ID
  "gameCategory": "CASINO",     // Game category
  "gameType": "string",         // Game type (e.g., BCR)
  "tableId": "string",          // Table ID
  "roundId": "string",          // Round ID
  "ccy": "string",              // Currency (e.g., PHP)
  "status": "string",           // Ticket status
  "betTime": "long",            // Bet time (timestamp in milliseconds)
  "betItems": "string",         // Bet details (JSON string)
  "totalBet": "decimal",        // Total bet amount
  "totalPayout": "decimal",     // Total payout amount
  "createdAt": "long",          // Created time (timestamp in milliseconds)
  "updatedAt": "long"           // Updated time (timestamp in milliseconds)
}

對於status,請參閱投注/注單狀態。有關 BCR betItems[].betType 值,請參閱投注類型

#範例數據

{
  "userId": "66c93b85205a1e146ed79b9b",
  "username": "player001",
  "userType": "AGENT",
  "ticketId": "550e8400-e29b-41d4-a716-446655440000",
  "gameCategory": "CASINO",
  "gameType": "BCR",
  "tableId": "BCR_MB553",
  "roundId": "BCR_MB553-250908-1550",
  "ccy": "PHP",
  "status": "WON",
  "betTime": 1702656000000,
  "betItems": "[{\"betType\":\"LIVE_BCR_PLAYER\",\"betAmt\":100000,\"payoutAmt\":200000,\"wonAmt\":100000}]",
  "totalBet": 100000.00,
  "totalPayout": 200000.00,
  "createdAt": 1702656000000,
  "updatedAt": 1702656300000
}