Casino Codes
Reference tables for casino game integration. These codes appear in casino-related events.
Methods to Close Casino Rounds
These codes indicate how a casino game round was completed. Used in the closeMethod field of OnCasinoRoundClosed events.
| Code | Method | Description |
|---|---|---|
| 0 | CasinoRoundCloseMethod_Unknown | Close method is unknown |
| 1 | CasinoRoundCloseMethod_ByPlayer | Round closed normally by player action |
| 2 | CasinoRoundCloseMethod_ByAdmin | Round closed by administrator |
| 3 | CasinoRoundCloseMethod_ByTimeout | Round closed due to timeout |
| 4 | CasinoRoundCloseMethod_Sale | Player sold bet before completion (sports bets) |
| 5 | CasinoRoundCloseMethod_Cancel | Round cancelled by provider |
| 6 | CasinoRoundCloseMethod_Reopen | Round reopened for correction |
Close Method Details
ByPlayer (Code 1)
The normal completion path. Player completes the game round through regular gameplay.
ByAdmin (Code 2)
An administrator manually closed the round. This typically happens when:
- Player reports a technical issue
- Round stuck in incomplete state
- Manual intervention required
ByTimeout (Code 3)
The round was automatically closed because:
- Player inactivity exceeded timeout threshold
- Connection lost and not restored in time
- Session expired during active round
Sale (Code 4)
Specific to sports betting integration. The player cashed out their bet before the event completed.
Cancel (Code 5)
The casino provider cancelled the round. Common reasons:
- Technical error during gameplay
- Invalid game state detected
- Provider-side system issue
Reopen (Code 6)
The round was reopened for correction. This happens when:
- Provider determines bet was calculated incorrectly
- Original transaction is rolled back
- New corrected transaction is applied
When a round is reopened (code 6), the oldRoundCloseMethod field contains the previous close method before reopening.
Bet Types (Sports)
For sports betting integration, the betType field indicates the bet structure:
| Code | Type | Description |
|---|---|---|
| 0 | BET_TYPE_UNKNOWN | Unknown bet type |
| 1 | BET_TYPE_ORDINARY | Single/ordinary bet |
| 2 | BET_TYPE_EXPRESS | Accumulator/parlay bet |
Related Documentation
- OnCasinoRoundClosed — Casino round completion events
- Spending Money Priority — How winnings are credited