Interface BetCancel<T extends SportEvent>

All Superinterfaces:
EventMessage<T>, MarketMessage<T>, Message

public interface BetCancel<T extends SportEvent> extends MarketMessage<T>
Sent to describe that all bets on the particular market (line) for the particular competition should be cancelled and refunded in full. If a time range is specified it only relates to bets for that market within that time period. This could for example happen if a goal is first incorrectly reported and then readjusted. During the period from the incorrect report to the adjustment all bets on related markets would be canceled in retrospect. Cancel bet is sent when a particular bets made on a particular market needs to be cancelled and refunded due to some kind of error. This is different than a bet-settlement / refund in that this message is sent due to some kind of error.
  • Method Summary

    Modifier and Type
    Method
    Description
    If the BetCancel has a time interval, this method will return an indication of when the Bet Cancel interval finished
    Returns a list of markets that are affected by the associated message
    If the BetCancel has a time interval, this method will return an indication of when the Bet Cancel interval started
    If the market was cancelled because of a migration from a different sport event, it gets a Urn specifying the sport event from which the market has migrated.

    Methods inherited from interface com.sportradar.unifiedodds.sdk.oddsentities.EventMessage

    getEvent, getRawMessage, getRequestId

    Methods inherited from interface com.sportradar.unifiedodds.sdk.oddsentities.Message

    getProducer, getTimestamps
  • Method Details

    • getStartTime

      Date getStartTime()
      If the BetCancel has a time interval, this method will return an indication of when the Bet Cancel interval started
      Returns:
      a Date indicating the start time of the Bet Cancel interval
    • getEndTime

      Date getEndTime()
      If the BetCancel has a time interval, this method will return an indication of when the Bet Cancel interval finished
      Returns:
      a Date indicating the end time of the Bet Cancel interval
    • getSupercededBy

      String getSupercededBy()
      If the market was cancelled because of a migration from a different sport event, it gets a Urn specifying the sport event from which the market has migrated.
      Returns:
      the Urn identifier of the superceded event
    • getMarkets

      List<MarketCancel> getMarkets()
      Description copied from interface: MarketMessage
      Returns a list of markets that are affected by the associated message
      Specified by:
      getMarkets in interface MarketMessage<T extends SportEvent>
      Returns:
      the list of affected markets