/* Options: Date: 2026-11-07 04:28:57 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: GetSuperWinAccumulations.* //ExcludeTypes: //DefaultImports: */ package dtos import ( "time" ) type Ref struct { Id string `json:"id"` Val string `json:"val"` } type BettingApp struct { Name *string `json:"name,omitempty"` Version *string `json:"version,omitempty"` } type RefEx struct { Ref Data RecordDictionary[string, string] `json:"data"` } type Origin struct { Application *BettingApp `json:"application,omitempty"` Ip *string `json:"ip,omitempty"` Organization *RefEx `json:"organization,omitempty"` Region *Ref `json:"region,omitempty"` LocationGroup *Ref `json:"locationGroup,omitempty"` Location *RefEx `json:"location,omitempty"` Device *RefEx `json:"device,omitempty"` Clerk *Ref `json:"clerk,omitempty"` } type SuperWinPoolState int const ( SuperWinPoolStateIdle SuperWinPoolState = 0 SuperWinPoolStateAccumulating SuperWinPoolState = 1 SuperWinPoolStateAwarding SuperWinPoolState = 2 ) type SuperWinWinner struct { IsDrawn bool `json:"isDrawn,omitempty"` DrawnAtUtc time.Time `json:"drawnAtUtc,omitempty"` RoundId *string `json:"roundId,omitempty"` BetId *string `json:"betId,omitempty"` SlipId *string `json:"slipId,omitempty"` Origin *Origin `json:"origin,omitempty"` Bettor *Ref `json:"bettor,omitempty"` Code *string `json:"code,omitempty"` Amount float64 `json:"amount,omitempty"` LocationAddressOrBettorInfo *string `json:"locationAddressOrBettorInfo,omitempty"` } type SuperWinPrize struct { Id int `json:"id,omitempty"` Amount float64 `json:"amount,omitempty"` ScheduledAt time.Time `json:"scheduledAt,omitempty"` Winner *SuperWinWinner `json:"winner,omitempty"` } type SuperWinPool struct { Id int `json:"id,omitempty"` State SuperWinPoolState `json:"state,omitempty"` Amount float64 `json:"amount,omitempty"` Schedule *RecordList[SuperWinPrize] `json:"schedule,omitempty"` } type SuperWinState struct { CurrentDate *string `json:"currentDate,omitempty"` AvailableAmount float64 `json:"availableAmount,omitempty"` Pools *RecordDictionary[int, SuperWinPool] `json:"pools,omitempty"` } type RecordDictionary[TKey any, TVal any] map[TKey]TVal type RecordList[T any] []T type SuperWinStateDoc struct { Id *string `json:"id,omitempty"` State *SuperWinState `json:"state,omitempty"` ChangeVector *string `json:"changeVector,omitempty"` } // @Route("/qry/super-win/accumulations") type GetSuperWinAccumulations struct { } func (GetSuperWinAccumulations) CreateResponse() (r SuperWinStateDoc) { return } func (GetSuperWinAccumulations) HttpMethod() string { return "POST" }