/// Options: /// Date: 2026-11-07 04:19:07 /// 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: PlaceBets.* /// ExcludeTypes: /// DefaultImports: const std = @import("std"); /// const std = @import("std"); const ss = @import("servicestack"); 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 const Bet = struct { id: ?[]const u8 = null, ordinalOfAvailableRoundToAssignTo: i32 = 0, content: ?[]const u8 = null, stake: f64 = 0, payload: ?std.json.Value = null, }; pub fn RecordDictionary(comptime TKey: type, comptime TVal: type) type { _ = TKey; _ = TVal; return struct {}; } pub const Bet = struct { id: ?[]const u8 = null, slipId: ?[]const u8 = null, bettor: ?Ref = null, origin: ?Origin = null, placedAt: ?[]const u8 = null, roundId: ?[]const u8 = null, content: ?[]const u8 = null, stake: f64 = 0, outcome: ?BetOutcome = null, win: f64 = 0, processingStatus: ?BetProcessingStatus = null, validity: ?BetValidity = null, results: ?std.json.Value = null, payload: ?std.json.Value = null, }; pub const ResponseStatus = enum(i32) { Failure = 0, Success = 1, }; pub const Bet = struct { isFound: bool = false, betId: ?[]const u8 = null, slipId: ?[]const u8 = null, combStake: ?std.json.Value = null, }; // @DataContract pub const ResponseStatus = struct { // @DataMember(Order=1) errorCode: ?[]const u8 = null, // @DataMember(Order=2) message: ?[]const u8 = null, // @DataMember(Order=3) stackTrace: ?[]const u8 = null, // @DataMember(Order=4) errors: ?[]ss.ResponseError = null, // @DataMember(Order=5) meta: ?std.json.Value = null, }; // @Route("/cmd/bets/v2", "POST") pub const PlaceBets = struct { pub const ss_name = "PlaceBets"; pub const ss_verb = "POST"; pub const Response = ResponseStatus; slipId: ?[]const u8 = null, bettor: ?Ref = null, origin: ?Origin = null, placedAt: ?[]const u8 = null, bets: ?[]Bet = null, };