| All Verbs | /qry/rounds/draw/diagnostics |
|---|
# frozen_string_literal: true
# encoding: utf-8
require 'json'
require 'servicestack'
module SortingOrder
NONE = 0
ASCENDING = 1
DESCENDING = 2
end
module ResponseStatus
FAILURE = 0
SUCCESS = 1
end
module SyphonType
LOCATION = 0
BETTOR = 1
end
class Initialization
include ServiceStack::DTO
# @return [Integer]
attr_accessor :data_load_duration
# @return [Integer]
attr_accessor :bets_collections_creation_duration
# @return [Integer]
attr_accessor :combinations_occurance_lookup_initialization_duration
def self.properties
{
data_load_duration: { name: 'dataLoadDuration' },
bets_collections_creation_duration: { name: 'betsCollectionsCreationDuration' },
combinations_occurance_lookup_initialization_duration: { name: 'combinationsOccuranceLookupInitializationDuration' },
}
end
end
class SequenceGeneration
include ServiceStack::DTO
# @return [Integer]
attr_accessor :nr_of_threads
# @return [Integer]
attr_accessor :nr_of_results_probed
# @return [Integer]
attr_accessor :duration
# @return [Integer]
attr_accessor :avg_single_pass_duration
def self.properties
{
nr_of_threads: { name: 'nrOfThreads' },
nr_of_results_probed: { name: 'nrOfResultsProbed' },
duration: { name: 'duration' },
avg_single_pass_duration: { name: 'avgSinglePassDuration' },
}
end
end
class BestFitFinder
include ServiceStack::DTO
# @return [BigDecimal]
attr_accessor :target_amount
# @return [BigDecimal]
attr_accessor :awarded_amount
# @return [BigDecimal]
attr_accessor :deviation
# @return [BigDecimal]
attr_accessor :deviation_pct
# @return [String]
attr_accessor :sequence_result_type
# @return [TrueClass]
attr_accessor :is_jack_pot5_drawn
# @return [Integer]
attr_accessor :filtering_period
# @return [SortingOrder]
attr_accessor :win_count_order
# @return [BigDecimal]
attr_accessor :min_amount
# @return [BigDecimal]
attr_accessor :max_amount
def self.properties
{
target_amount: { name: 'targetAmount' },
awarded_amount: { name: 'awardedAmount' },
deviation: { name: 'deviation' },
deviation_pct: { name: 'deviationPct' },
sequence_result_type: { name: 'sequenceResultType' },
is_jack_pot5_drawn: { name: 'isJackPot5Drawn' },
filtering_period: { name: 'filteringPeriod' },
win_count_order: { name: 'winCountOrder' },
min_amount: { name: 'minAmount' },
max_amount: { name: 'maxAmount' },
}
end
end
class Bet
include ServiceStack::DTO
# @return [TrueClass]
attr_accessor :is_found
# @return [String]
attr_accessor :bet_id
# @return [String]
attr_accessor :slip_id
# @return [Object]
attr_accessor :comb_stake
def self.properties
{
is_found: { name: 'isFound' },
bet_id: { name: 'betId' },
slip_id: { name: 'slipId' },
comb_stake: { name: 'combStake' },
}
end
end
class QualifiedPool
include ServiceStack::DTO
# @return [Integer]
attr_accessor :id
# @return [String]
attr_accessor :name
# @return [BigDecimal]
attr_accessor :coefficient
# @return [BigDecimal]
attr_accessor :available_amount
# @return [BigDecimal]
attr_accessor :awarded_amount
# @return [Bet]
attr_accessor :target_bet
def self.properties
{
id: { name: 'id' },
name: { name: 'name' },
coefficient: { name: 'coefficient' },
available_amount: { name: 'availableAmount' },
awarded_amount: { name: 'awardedAmount' },
target_bet: { name: 'targetBet', type: Bet },
}
end
end
class Purger
include ServiceStack::DTO
# @return [BigDecimal]
attr_accessor :prevalent_stake
# @return [String]
attr_accessor :pool_purger
# @return [List]
attr_accessor :qualified_pools
def self.properties
{
prevalent_stake: { name: 'prevalentStake' },
pool_purger: { name: 'poolPurger' },
qualified_pools: { name: 'qualifiedPools', type: [QualifiedPool] },
}
end
end
class StimulationResponse
include ServiceStack::DTO
# @return [String]
attr_accessor :stimulation_id
# @return [ResponseStatus]
attr_accessor :status
# @return [String]
attr_accessor :failure_reason
# @return [String]
attr_accessor :slip_id
# @return [String]
attr_accessor :bet_id
# @return [BigDecimal]
attr_accessor :amount_awarded
def self.properties
{
stimulation_id: { name: 'stimulationId' },
status: { name: 'status' },
failure_reason: { name: 'failureReason' },
slip_id: { name: 'slipId' },
bet_id: { name: 'betId' },
amount_awarded: { name: 'amountAwarded' },
}
end
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 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 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 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 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 SuperWinInfo
include ServiceStack::DTO
# @return [Integer]
attr_accessor :duration_in_ms
# @return [String]
attr_accessor :reasoning
def self.properties
{
duration_in_ms: { name: 'durationInMs' },
reasoning: { name: 'reasoning' },
}
end
end
class HappyHourInfo
include ServiceStack::DTO
# @return [TrueClass]
attr_accessor :is_happy_hour
# @return [BigDecimal]
attr_accessor :odds_modifier
# @return [BigDecimal]
attr_accessor :round_pool_bonus_pct
def self.properties
{
is_happy_hour: { name: 'isHappyHour' },
odds_modifier: { name: 'oddsModifier' },
round_pool_bonus_pct: { name: 'roundPoolBonusPct' },
}
end
end
class AccumulatorConfiguration < AccumulatorConfiguration
# @return [String]
attr_accessor :id
# @return [DateTime]
attr_accessor :updated_at
def self.properties
{
id: { name: 'id' },
updated_at: { name: 'updatedAt', type: DateTime },
}
end
end
class Syphon
include ServiceStack::DTO
# @return [String]
attr_accessor :id
# @return [String]
attr_accessor :name
# @return [SyphonType]
attr_accessor :type
# @return [Integer]
attr_accessor :nr_of_combinations
def self.properties
{
id: { name: 'id' },
name: { name: 'name' },
type: { name: 'type' },
nr_of_combinations: { name: 'nrOfCombinations' },
}
end
end
class SyphonInfo
include ServiceStack::DTO
# @return [Dictionary]
attr_accessor :bettors
# @return [Dictionary]
attr_accessor :locations
# @return [TrueClass]
attr_accessor :has_syphons
# @return [Integer]
attr_accessor :total_syphons_in_round
def self.properties
{
bettors: { name: 'bettors', type: { String => Syphon } },
locations: { name: 'locations', type: { String => Syphon } },
has_syphons: { name: 'hasSyphons' },
total_syphons_in_round: { name: 'totalSyphonsInRound' },
}
end
end
class DrawDiagnostics
include ServiceStack::DTO
# @return [String]
attr_accessor :id
# @return [Initialization]
attr_accessor :initialization_info
# @return [SequenceGeneration]
attr_accessor :sequence_generation_info
# @return [BestFitFinder]
attr_accessor :best_fit_finder_info
# @return [Purger]
attr_accessor :purger_info
# @return [Integer]
attr_accessor :duration
# @return [List]
attr_accessor :stimulation_responses
# @return [LocalCodePotInfo]
attr_accessor :local_code_pot
# @return [SuperWinInfo]
attr_accessor :super_win
# @return [HappyHourInfo]
attr_accessor :happy_hour
# @return [String]
attr_accessor :reasoning
# @return [AccumulatorConfiguration]
attr_accessor :configuration
# @return [SyphonInfo]
attr_accessor :syphon_info
def self.properties
{
id: { name: 'id' },
initialization_info: { name: 'initializationInfo', type: Initialization },
sequence_generation_info: { name: 'sequenceGenerationInfo', type: SequenceGeneration },
best_fit_finder_info: { name: 'bestFitFinderInfo', type: BestFitFinder },
purger_info: { name: 'purgerInfo', type: Purger },
duration: { name: 'duration' },
stimulation_responses: { name: 'stimulationResponses', type: [StimulationResponse] },
local_code_pot: { name: 'localCodePot', type: LocalCodePotInfo },
super_win: { name: 'superWin', type: SuperWinInfo },
happy_hour: { name: 'happyHour', type: HappyHourInfo },
reasoning: { name: 'reasoning' },
configuration: { name: 'configuration', type: AccumulatorConfiguration },
syphon_info: { name: 'syphonInfo', type: SyphonInfo },
}
end
end
class GetDrawDignostics
include ServiceStack::DTO
# @return [String]
attr_accessor :id
def self.properties
{
id: { name: 'id' },
}
end
def response_type() = DrawDiagnostics
def get_type_name() = 'GetDrawDignostics'
end
class RecordDictionary < Hash
end
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /qry/rounds/draw/diagnostics HTTP/1.1
Host: s4w2.api.bettor.webhop.biz
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetDrawDignostics xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.WebApi.ServiceModel">
<Id>String</Id>
</GetDrawDignostics>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<DrawDiagnostics xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Six4Win.ReadModel">
<BestFitFinderInfo>
<AwardedAmount>0</AwardedAmount>
<Deviation>0</Deviation>
<DeviationPct>0</DeviationPct>
<FilteringPeriod>0</FilteringPeriod>
<IsJackPot5Drawn>false</IsJackPot5Drawn>
<MaxAmount>0</MaxAmount>
<MinAmount>0</MinAmount>
<SequenceResultType>String</SequenceResultType>
<TargetAmount>0</TargetAmount>
<WinCountOrder>None</WinCountOrder>
</BestFitFinderInfo>
<Configuration xmlns:d2p1="http://schemas.datacontract.org/2004/07/Six4Win">
<d2p1:AntiSyphonProtectionOverride>false</d2p1:AntiSyphonProtectionOverride>
<d2p1:DebugConfig>
<d2p1:LogBettorStats>false</d2p1:LogBettorStats>
<d2p1:LogLocationStats>false</d2p1:LogLocationStats>
</d2p1:DebugConfig>
<d2p1:DeviationCategorySpanInPct>0</d2p1:DeviationCategorySpanInPct>
<d2p1:DeviationCategoryThresholdAmount>0</d2p1:DeviationCategoryThresholdAmount>
<d2p1:FraudDetectionConfig>
<d2p1:AntiSyphon>
<d2p1:Blacklists>
<d2p1:Locations xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d6p1:Ref>
<d6p1:_x003C_Id_x003E_k__BackingField>String</d6p1:_x003C_Id_x003E_k__BackingField>
<d6p1:_x003C_Val_x003E_k__BackingField>String</d6p1:_x003C_Val_x003E_k__BackingField>
</d6p1:Ref>
</d2p1:Locations>
<d2p1:Players xmlns:d6p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d6p1:Ref>
<d6p1:_x003C_Id_x003E_k__BackingField>String</d6p1:_x003C_Id_x003E_k__BackingField>
<d6p1:_x003C_Val_x003E_k__BackingField>String</d6p1:_x003C_Val_x003E_k__BackingField>
</d6p1:Ref>
</d2p1:Players>
</d2p1:Blacklists>
<d2p1:CombinationCountPerRoundThresholdPct>0</d2p1:CombinationCountPerRoundThresholdPct>
<d2p1:ExcludedLocations xmlns:d5p1="http://schemas.datacontract.org/2004/07/Starnet.Common">
<d5p1:Ref>
<d5p1:_x003C_Id_x003E_k__BackingField>String</d5p1:_x003C_Id_x003E_k__BackingField>
<d5p1:_x003C_Val_x003E_k__BackingField>String</d5p1:_x003C_Val_x003E_k__BackingField>
</d5p1:Ref>
</d2p1:ExcludedLocations>
<d2p1:IncludeRoundPctAsBettorSyphonCriteria>false</d2p1:IncludeRoundPctAsBettorSyphonCriteria>
<d2p1:IsActive>false</d2p1:IsActive>
</d2p1:AntiSyphon>
</d2p1:FraudDetectionConfig>
<d2p1:HighRollerSettings>
<d2p1:CategoryThresholds>
<d2p1:HighRollerSettings.CategoryThreshold>
<d2p1:Category>Pickerel</d2p1:Category>
<d2p1:Threshold>0</d2p1:Threshold>
</d2p1:HighRollerSettings.CategoryThreshold>
</d2p1:CategoryThresholds>
<d2p1:Pools>
<d2p1:HighRollerSettings.PoolSettings>
<d2p1:Caps>
<d2p1:MaxAmountInPrevalentStakes>0</d2p1:MaxAmountInPrevalentStakes>
<d2p1:MinusCoef>0</d2p1:MinusCoef>
<d2p1:PlusCoef>0</d2p1:PlusCoef>
</d2p1:Caps>
<d2p1:ContributionToRoundPoolPct>0</d2p1:ContributionToRoundPoolPct>
<d2p1:Id>0</d2p1:Id>
<d2p1:IsActive>false</d2p1:IsActive>
<d2p1:Name>String</d2p1:Name>
</d2p1:HighRollerSettings.PoolSettings>
</d2p1:Pools>
</d2p1:HighRollerSettings>
<d2p1:JP5WinnerCooldownPolicy>
<d2p1:CooldownIntervalInDays>0</d2p1:CooldownIntervalInDays>
<d2p1:IsActive>false</d2p1:IsActive>
</d2p1:JP5WinnerCooldownPolicy>
<d2p1:JackPot5ThresholdInterval>
<d2p1:End>0</d2p1:End>
<d2p1:Start>0</d2p1:Start>
</d2p1:JackPot5ThresholdInterval>
<d2p1:LocationOptimizationLevel>None</d2p1:LocationOptimizationLevel>
<d2p1:LowWinCountAffinityInPct>0</d2p1:LowWinCountAffinityInPct>
<d2p1:OverflowCoefficientPoolsToRound>false</d2p1:OverflowCoefficientPoolsToRound>
<d2p1:Pools>
<d2p1:AccumulatorConfiguration.Pool>
<d2p1:Id>0</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:RTP>0</d2p1:RTP>
<d2p1:ReserveRTP>0</d2p1:ReserveRTP>
</d2p1:AccumulatorConfiguration.Pool>
</d2p1:Pools>
<d2p1:PrevalentStake>0</d2p1:PrevalentStake>
<d2p1:PurgeThresholdModifier>0</d2p1:PurgeThresholdModifier>
<d2p1:RoundPoolCircuitBreakerThreshold>0</d2p1:RoundPoolCircuitBreakerThreshold>
<d2p1:WinCountOrderAffinity>
<d2p1:WinCountOrderProbability>
<d2p1:Order>None</d2p1:Order>
<d2p1:Probability>0</d2p1:Probability>
</d2p1:WinCountOrderProbability>
</d2p1:WinCountOrderAffinity>
</Configuration>
<Duration>0</Duration>
<HappyHour>
<IsHappyHour>false</IsHappyHour>
<OddsModifier>0</OddsModifier>
<RoundPoolBonusPct>0</RoundPoolBonusPct>
</HappyHour>
<Id>String</Id>
<InitializationInfo>
<BetsCollectionsCreationDuration>0</BetsCollectionsCreationDuration>
<CombinationsOccuranceLookupInitializationDuration>0</CombinationsOccuranceLookupInitializationDuration>
<DataLoadDuration>0</DataLoadDuration>
</InitializationInfo>
<LocalCodePot>
<DurationInMs>0</DurationInMs>
</LocalCodePot>
<PurgerInfo>
<PoolPurger>String</PoolPurger>
<PrevalentStake>0</PrevalentStake>
<QualifiedPools>
<DrawDiagnostics.QualifiedPool>
<AvailableAmount>0</AvailableAmount>
<AwardedAmount>0</AwardedAmount>
<Coefficient>0</Coefficient>
<Id>0</Id>
<Name>String</Name>
<TargetBet>
<BetId>String</BetId>
<CombStake />
<IsFound>false</IsFound>
<SlipId>String</SlipId>
</TargetBet>
</DrawDiagnostics.QualifiedPool>
</QualifiedPools>
</PurgerInfo>
<Reasoning>String</Reasoning>
<SequenceGenerationInfo>
<AvgSinglePassDuration>0</AvgSinglePassDuration>
<Duration>0</Duration>
<NrOfResultsProbed>0</NrOfResultsProbed>
<NrOfThreads>0</NrOfThreads>
</SequenceGenerationInfo>
<StimulationResponses>
<DrawDiagnostics.StimulationResponse>
<AmountAwarded>0</AmountAwarded>
<BetId>String</BetId>
<FailureReason>String</FailureReason>
<SlipId>String</SlipId>
<Status>Failure</Status>
<StimulationId>String</StimulationId>
</DrawDiagnostics.StimulationResponse>
</StimulationResponses>
<SuperWin>
<DurationInMs>0</DurationInMs>
<Reasoning>String</Reasoning>
</SuperWin>
<SyphonInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/Six4Win.Common">
<d2p1:Bettors xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringSyphonFQuwRXs4>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>
<d2p1:Id>String</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:NrOfCombinations>0</d2p1:NrOfCombinations>
<d2p1:Type>Location</d2p1:Type>
</d3p1:Value>
</d3p1:KeyValueOfstringSyphonFQuwRXs4>
</d2p1:Bettors>
<d2p1:Locations xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringSyphonFQuwRXs4>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>
<d2p1:Id>String</d2p1:Id>
<d2p1:Name>String</d2p1:Name>
<d2p1:NrOfCombinations>0</d2p1:NrOfCombinations>
<d2p1:Type>Location</d2p1:Type>
</d3p1:Value>
</d3p1:KeyValueOfstringSyphonFQuwRXs4>
</d2p1:Locations>
</SyphonInfo>
</DrawDiagnostics>