| 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 .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
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/json
Content-Type: application/json
Content-Length: length
{"id":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id":"String","initializationInfo":{"dataLoadDuration":0,"betsCollectionsCreationDuration":0,"combinationsOccuranceLookupInitializationDuration":0},"sequenceGenerationInfo":{"nrOfThreads":0,"nrOfResultsProbed":0,"duration":0,"avgSinglePassDuration":0},"bestFitFinderInfo":{"targetAmount":0,"awardedAmount":0,"deviation":0,"deviationPct":0,"sequenceResultType":"String","isJackPot5Drawn":false,"filteringPeriod":0,"winCountOrder":0,"minAmount":0,"maxAmount":0},"purgerInfo":{"prevalentStake":0,"poolPurger":"String","qualifiedPools":[{"id":0,"name":"String","coefficient":0,"availableAmount":0,"awardedAmount":0,"targetBet":{"isFound":false,"betId":"String","slipId":"String","combStake":{}}}]},"duration":0,"stimulationResponses":[{"stimulationId":"String","status":0,"failureReason":"String","slipId":"String","betId":"String","amountAwarded":0}],"localCodePot":{"durationInMs":0},"superWin":{"durationInMs":0,"reasoning":"String"},"happyHour":{"isHappyHour":false,"oddsModifier":0,"roundPoolBonusPct":0},"reasoning":"String","configuration":{"pools":[{"id":0,"name":"String","rtp":0,"reserveRTP":0,"totalRTP":0}],"prevalentStake":0,"purgeThresholdModifier":0,"locationOptimizationLevel":0,"jackPot5ThresholdInterval":{"start":0,"end":0},"deviationCategorySpanInPct":0,"deviationCategoryThresholdAmount":0,"roundPoolCircuitBreakerThreshold":0,"lowWinCountAffinityInPct":0,"winCountOrderAffinity":[{"order":0,"probability":0}],"highRollerSettings":{"pools":[{"id":0,"name":"String","isActive":false,"contributionToRoundPoolPct":0,"caps":{"plusCoef":0,"minusCoef":0,"maxAmountInPrevalentStakes":0}}],"categoryThresholds":[{"category":0,"threshold":0}]},"overflowCoefficientPoolsToRound":false,"antiSyphonProtectionOverride":false,"fraudDetectionConfig":{"antiSyphon":{"combinationCountPerRoundThresholdPct":0,"excludedLocations":[{"id":"String","val":"String"}],"blacklists":{"locations":[{"id":"String","val":"String"}],"players":[{"id":"String","val":"String"}]},"includeRoundPctAsBettorSyphonCriteria":false,"isActive":false}},"debugConfig":{"logLocationStats":false,"logBettorStats":false},"jP5WinnerCooldownPolicy":{"isActive":false,"cooldownIntervalInDays":0}},"syphonInfo":{"bettors":{"String":{"id":"String","name":"String","type":0,"nrOfCombinations":0}},"locations":{"String":{"id":"String","name":"String","type":0,"nrOfCombinations":0}},"hasSyphons":true,"totalSyphonsInRound":2}}