| POST | /cmd/configure/super-win |
|---|
package dtos
import (
"time"
)
type PeriodOfDay struct {
Start time.Duration `json:"start,omitempty"`
End time.Duration `json:"end,omitempty"`
}
type WebPlayerWinnerCooldownPolicyConfig struct {
IsActive bool `json:"isActive,omitempty"`
CooldownIntervalInDays int `json:"cooldownIntervalInDays,omitempty"`
}
type LocationOptimizationLevel int
const (
LocationOptimizationLevelNone LocationOptimizationLevel = 0
LocationOptimizationLevelLow LocationOptimizationLevel = 1
LocationOptimizationLevelMedium LocationOptimizationLevel = 2
LocationOptimizationLevelHigh LocationOptimizationLevel = 3
)
type SuperWinConfig struct {
IsActive bool `json:"isActive,omitempty"`
StakePct float32 `json:"stakePct,omitempty"`
MinPrizesPerDay int `json:"minPrizesPerDay,omitempty"`
MaxPrizesPerDay int `json:"maxPrizesPerDay,omitempty"`
ActivePeriod *PeriodOfDay `json:"activePeriod,omitempty"`
MinDailyPrizeInPct float32 `json:"minDailyPrizeInPct,omitempty"`
MinIntervalBetweenMultiplePrizesInMinutes int `json:"minIntervalBetweenMultiplePrizesInMinutes,omitempty"`
AllowSuperWinForSpecialBets bool `json:"allowSuperWinForSpecialBets,omitempty"`
WebPlayerWinnerCooldownPolicy *WebPlayerWinnerCooldownPolicyConfig `json:"webPlayerWinnerCooldownPolicy,omitempty"`
LocationOptimizationLevel LocationOptimizationLevel `json:"locationOptimizationLevel,omitempty"`
PlayerOptimizationLevel LocationOptimizationLevel `json:"playerOptimizationLevel,omitempty"`
}
type ConfigureSuperWin struct {
Id *string `json:"id,omitempty"`
Configuration *SuperWinConfig `json:"configuration,omitempty"`
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cmd/configure/super-win HTTP/1.1
Host: s4w2.api.bettor.webhop.biz
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id":"String","configuration":{"isActive":false,"stakePct":0,"minPrizesPerDay":0,"maxPrizesPerDay":0,"activePeriod":{"start":"PT0S","end":"PT0S"},"minDailyPrizeInPct":0,"minIntervalBetweenMultiplePrizesInMinutes":0,"allowSuperWinForSpecialBets":false,"webPlayerWinnerCooldownPolicy":{"isActive":false,"cooldownIntervalInDays":0},"locationOptimizationLevel":0,"playerOptimizationLevel":0}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}