/// Options: /// Date: 2026-11-07 04:01:22 /// Version: 10.42 /// Tip: To override a DTO option, remove "/" prefix before updating /// BaseUrl: https://s4w2.api.bettor.webhop.biz /// GlobalNamespace: /// MakePropertiesOptional: False /// AddServiceStackTypes: True /// AddResponseStatus: False /// AddImplicitVersion: /// AddDescriptionAsComments: True //IncludeTypes: GetDraw.* /// ExcludeTypes: /// DefaultImports: const std = @import("std"); /// const std = @import("std"); pub const Ref = struct { id: ?[]const u8 = null, val: ?[]const u8 = null, }; pub const BettingApp = struct { name: ?[]const u8 = null, version: ?[]const u8 = null, }; pub const RefEx = struct { id: ?[]const u8 = null, val: ?[]const u8 = null, data: ?RecordDictionary = null, }; pub const Origin = struct { application: ?BettingApp = null, ip: ?[]const u8 = null, organization: ?RefEx = null, region: ?Ref = null, locationGroup: ?Ref = null, location: ?RefEx = null, device: ?RefEx = null, clerk: ?Ref = null, }; pub fn RecordDictionary(comptime TKey: type, comptime TVal: type) type { _ = TKey; _ = TVal; return struct {}; } pub const Pool = struct { id: i32 = 0, name: ?[]const u8 = null, coefficient: f64 = 0, rtp: f64 = 0, threshold: f64 = 0, balance: f64 = 0, rrtp: f64 = 0, rBalance: f64 = 0, }; pub const Pool = struct { id: i32 = 0, name: ?[]const u8 = null, rtp: f64 = 0, reserveRTP: f64 = 0, totalRTP: f64 = 0, }; pub const Pool = struct { id: i32 = 0, name: ?[]const u8 = null, treshold: f64 = 0, }; pub const JackPot5Winner = struct { betId: ?[]const u8 = null, nrOfCombinations: i32 = 0, winningsAmount: f64 = 0, origin: ?Origin = null, bettor: ?Ref = null, payload: ?std.json.Value = null, }; pub const Jackpot5Info = struct { isHit: bool = false, amountAccumulated: f64 = 0, amountAwarded: f64 = 0, nrOfWinners: i32 = 0, jackPot5Winners: ?[]JackPot5Winner = null, }; pub const SuperWinInfo = struct { isActive: bool = false, winner: ?SuperWinWinner = null, availableAmount: f64 = 0, allPrizesAwarded: bool = false, }; pub const WinnerByCode = struct { roundId: ?[]const u8 = null, drawnAtUtc: ?[]const u8 = null, slipId: ?[]const u8 = null, betId: ?[]const u8 = null, code: ?[]const u8 = null, amount: f64 = 0, origin: ?Origin = null, bettor: ?Ref = null, locationAddressOrBettorInfo: ?[]const u8 = null, }; pub const GlobalCodePotInfo = struct { isActive: bool = false, isDrawn: bool = false, winner: ?WinnerByCode = null, inertCode: ?[]const u8 = null, accumulation: f64 = 0, }; pub const SuperWinInfo = struct { durationInMs: i64 = 0, reasoning: ?[]const u8 = null, }; pub const DrawItem = struct { ordinal: i32 = 0, number: i32 = 0, coefficient: f32 = 0, isDoubleTriple: bool = false, constitutesJackpot: bool = false, hits: i32 = 0, win: f64 = 0, }; pub const CustomBetType = enum(i32) { FirstNumberOdd = 4, FirstNumberEven = 5, FirstNumberLessThan24_5 = 6, FirstNumberGreaterThan24_5 = 7, SumOfFirstFiveLessThan122_5 = 8, SumOfFirstFiveGreaterThan122_5 = 9, FirstColor1 = 10, FirstColor2 = 11, FirstColor3 = 12, FirstColor4 = 13, FirstColor5 = 14, FirstColor6 = 15, FirstColor7 = 16, FirstColor8 = 17, MoreOddNumbers = 18, MoreEvenNumbers = 19, }; pub const CustomBetOutcome = struct { type: ?CustomBetType = null, coef: f32 = 0, winCount: i32 = 0, win: f64 = 0, isWin: bool = false, results: ?[]const u8 = null, }; pub const RoundOutcome = struct { draw: ?[]DrawItem = null, customBetOutcomes: ?[]CustomBetOutcome = null, lcpWinners: ?[]WinnerByCode = null, superWinInfo: ?SuperWinInfo = null, jackpot5Info: ?Jackpot5Info = null, globalCodePotInfo: ?GlobalCodePotInfo = null, stake: f64 = 0, betCount: i32 = 0, winnings: f64 = 0, balance: f64 = 0, returnToPlayer: f64 = 0, winCount: i32 = 0, slipWinCount: i32 = 0, winCountPct: f32 = 0, slipCount: i32 = 0, unitBetCount: i32 = 0, }; pub const Draw = struct { id: ?[]const u8 = null, sequence: ?[]const u8 = null, inputAccumulation: ?[]Pool = null, outputAccumulation: ?[]Pool = null, outcome: ?RoundOutcome = null, }; // @Route("/qry/rounds/draw") pub const GetDraw = struct { pub const ss_name = "GetDraw"; pub const ss_verb = "POST"; pub const Response = Draw; id: ?[]const u8 = null, };