/** * Copyright 2020 Colin Doig. Distributed under the MIT license. */ import JsonRequest from '../JsonRequest'; import MatchProjection from '../sport/enum/MatchProjection'; import OrderProjection from '../sport/enum/OrderProjection'; import PriceProjection, { IPriceProjectionOptions } from '../sport/PriceProjection'; export interface IListRunnerBookRequestOptions { marketId: string; selectionId: number; handicap?: number; priceProjection?: PriceProjection | IPriceProjectionOptions; orderProjection?: OrderProjection | string; matchProjection?: MatchProjection | string; includeOverallPosition?: boolean; partitionMatchedByStrategyRef?: boolean; customerStrategyRefs?: Set | string[]; currencyCode?: string; locale?: string; matchedSince?: Date | string; betIds?: Set | string[]; } export default class ListRunnerBookRequest extends JsonRequest { private marketId; private selectionId; private handicap?; private priceProjection?; private orderProjection?; private matchProjection?; private includeOverallPosition?; private partitionMatchedByStrategyRef?; private customerStrategyRefs?; private currencyCode?; private locale?; private matchedSince?; private betIds?; constructor(options: IListRunnerBookRequestOptions); toJson(): IListRunnerBookRequestOptions; getMarketId(): string; setMarketId(marketId: string): void; getSelectionId(): number; setSelectionId(selectionId: number): void; getHandicap(): number | undefined; setHandicap(handicap: number): void; getPriceProjection(): PriceProjection | undefined; setPriceProjection(priceProjection: PriceProjection): void; getOrderProjection(): OrderProjection | undefined; setOrderProjection(orderProjection: OrderProjection): void; getMatchProjection(): MatchProjection | undefined; setMatchProjection(matchProjection: MatchProjection): void; getIncludeOverallPosition(): boolean | undefined; setIncludeOverallPosition(includeOverallPosition: boolean): void; getPartitionMatchedByStrategyRef(): boolean | undefined; setPartitionMatchedByStrategyRef(partitionMatchedByStrategyRef: boolean): void; getCustomerStrategyRefs(): Set | undefined; setCustomerStrategyRefs(customerStrategyRefs: Set): void; getCurrencyCode(): string | undefined; setCurrencyCode(currencyCode: string): void; getLocale(): string | undefined; setLocale(locale: string): void; getMatchedSince(): Date | undefined; setMatchedSince(matchedSince: Date): void; getBetIds(): Set | undefined; setBetIds(betIds: Set): void; }