# frozen_string_literal: true # encoding: utf-8 # Options: =begin Date: 2026-11-07 04:16:37 Version: 10.42 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://s4w1.api.bettor.webhop.biz #MakePartial: True #MakeVirtual: True #MakeInternal: False #MakeDataContractsExtensible: False #AddReturnMarker: True #AddDescriptionAsComments: True #AddDataContractAttributes: False #AddIndexesToDataMembers: False #AddGeneratedCodeAttributes: False #AddResponseStatus: False #AddImplicitVersion: #InitializeCollections: False #ExportValueTypes: False IncludeTypes: GetLocationFeed.* #ExcludeTypes: #AddNamespaces: #AddDefaultXmlNamespace: http://schemas.servicestack.net/types =end require 'json' require 'servicestack' module IReturn def response_type() = T def get_type_name() = 'IReturn' end class Ref include ServiceStack::DTO # @return [String] attr_accessor :id # @return [String] attr_accessor :val def self.properties { id: { name: 'id' }, val: { name: 'val' }, } end end class BettingApp include ServiceStack::DTO # @return [String] attr_accessor :name # @return [String] attr_accessor :version def self.properties { name: { name: 'name' }, version: { name: 'version' }, } end end class RefEx < Ref # @return [RecordDictionary] attr_accessor :data def self.properties { data: { name: 'data', type: RecordDictionary }, } end end class Origin include ServiceStack::DTO # @return [BettingApp] attr_accessor :application # @return [String] attr_accessor :ip # @return [RefEx] attr_accessor :organization # @return [Ref] attr_accessor :region # @return [Ref] attr_accessor :location_group # @return [RefEx] attr_accessor :location # @return [RefEx] attr_accessor :device # @return [Ref] attr_accessor :clerk def self.properties { application: { name: 'application', type: BettingApp }, ip: { name: 'ip' }, organization: { name: 'organization', type: RefEx }, region: { name: 'region', type: Ref }, location_group: { name: 'locationGroup', type: Ref }, location: { name: 'location', type: RefEx }, device: { name: 'device', type: RefEx }, clerk: { name: 'clerk', type: Ref }, } end end class RecordDictionary < Hash end class CurrentRoundInfo include ServiceStack::DTO # @return [String] attr_accessor :round_id # @return [BigDecimal] attr_accessor :amount # @return [String] attr_accessor :inert_code def self.properties { round_id: { name: 'roundId' }, amount: { name: 'amount' }, inert_code: { name: 'inertCode' }, } end end class WinnerByCode include ServiceStack::DTO # @return [String] attr_accessor :round_id # @return [DateTime] attr_accessor :drawn_at_utc # @return [String] attr_accessor :slip_id # @return [String] attr_accessor :bet_id # @return [String] attr_accessor :code # @return [BigDecimal] attr_accessor :amount # @return [Origin] attr_accessor :origin # @return [Ref] attr_accessor :bettor # @return [String] attr_accessor :location_address_or_bettor_info def self.properties { round_id: { name: 'roundId' }, drawn_at_utc: { name: 'drawnAtUtc', type: DateTime }, slip_id: { name: 'slipId' }, bet_id: { name: 'betId' }, code: { name: 'code' }, amount: { name: 'amount' }, origin: { name: 'origin', type: Origin }, bettor: { name: 'bettor', type: Ref }, location_address_or_bettor_info: { name: 'locationAddressOrBettorInfo' }, } end end class LocalCodePotInfo include ServiceStack::DTO # @return [TrueClass] attr_accessor :is_active # @return [CurrentRoundInfo] attr_accessor :current # @return [List] attr_accessor :winners def self.properties { is_active: { name: 'isActive' }, current: { name: 'current', type: CurrentRoundInfo }, winners: { name: 'winners', type: [WinnerByCode] }, } end end class LocationFeed include ServiceStack::DTO # @return [TrueClass] attr_accessor :exists # @return [String] attr_accessor :id # @return [LocalCodePotInfo] attr_accessor :lcp_info def self.properties { exists: { name: 'exists' }, id: { name: 'id' }, lcp_info: { name: 'lcpInfo', type: LocalCodePotInfo }, } end end # @Route("/qry/feed/locations") class GetLocationFeed include ServiceStack::DTO # @return [String] attr_accessor :id def self.properties { id: { name: 'id' }, } end def response_type() = LocationFeed def get_type_name() = 'GetLocationFeed' def get_method() = 'POST' end