Six4Win.WebApi

<back to all web services

ConfigureSuperWin

Requires Authentication
The following routes are available for this service:
POST/cmd/configure/super-win
import datetime
import decimal
from marshmallow.fields import *
from servicestack import *
from typing import *
from dataclasses import dataclass, field
from dataclasses_json import dataclass_json, LetterCase, Undefined, config
from enum import Enum, IntEnum


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class PeriodOfDay:
    start: datetime.timedelta = datetime.timedelta()
    end: datetime.timedelta = datetime.timedelta()


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class WebPlayerWinnerCooldownPolicyConfig:
    is_active: bool = False
    cooldown_interval_in_days: int = 0


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class SuperWinConfig:
    is_active: bool = False
    stake_pct: float = 0.0
    min_prizes_per_day: int = 0
    max_prizes_per_day: int = 0
    active_period: Optional[PeriodOfDay] = None
    min_daily_prize_in_pct: float = 0.0
    min_interval_between_multiple_prizes_in_minutes: int = 0
    allow_super_win_for_special_bets: bool = False
    web_player_winner_cooldown_policy: Optional[WebPlayerWinnerCooldownPolicyConfig] = None


@dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE)
@dataclass
class ConfigureSuperWin:
    id: Optional[str] = None
    configuration: Optional[SuperWinConfig] = None

Python ConfigureSuperWin DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + 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.cc 
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}}}
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"}}