Class BetPartialCancelDetails.Builder

java.lang.Object
com.sportradar.mbs.sdk.entities.cancellation.BetPartialCancelDetails.Builder
Enclosing class:
BetPartialCancelDetails

public static class BetPartialCancelDetails.Builder extends Object
Builder class for creating instances of BetPartialCancelDetails.
  • Method Details

    • build

      public BetPartialCancelDetails build()
      Builds and returns the BetPartialCancelDetails instance.
      Returns:
      The built BetPartialCancelDetails instance.
    • setCode

      public BetPartialCancelDetails.Builder setCode(int value)
      Sets the code of the partial bet cancellation.
      Parameters:
      value - The code of the partial bet cancellation.
      Returns:
      The Builder instance.
    • setPercentage

      public BetPartialCancelDetails.Builder setPercentage(BigDecimal value)
      Sets the percentage of the bet that was cancelled.
      Parameters:
      value - The percentage of the bet that was cancelled.
      Returns:
      The Builder instance.
    • setBetId

      public BetPartialCancelDetails.Builder setBetId(String value)
      Sets the ID of the bet that was partially cancelled.
      Parameters:
      value - The ID of the bet that was partially cancelled.
      Returns:
      The Builder instance.
    • setTicketSignature

      public BetPartialCancelDetails.Builder setTicketSignature(String value)
      Sets the signature of the ticket that was partially cancelled.
      Parameters:
      value - The signature of the ticket that was partially cancelled.
      Returns:
      The Builder instance.
    • setTicketId

      public BetPartialCancelDetails.Builder setTicketId(String value)
      Sets the ID of the ticket that was partially cancelled.
      Parameters:
      value - The ID of the ticket that was partially cancelled.
      Returns:
      The Builder instance.