Class TicketContext.Builder

java.lang.Object
com.sportradar.mbs.sdk.entities.common.TicketContext.Builder
Enclosing class:
TicketContext

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

    • build

      public TicketContext build()
      Builds and returns the TicketContext instance.
      Returns:
      The built TicketContext instance.
    • setWalletId

      public TicketContext.Builder setWalletId(String value)
      Sets the wallet ID associated with the ticket context.
      Parameters:
      value - The wallet ID to set.
      Returns:
      The Builder instance.
    • setRef

      public TicketContext.Builder setRef(TicketRef value)
      Sets the reference of the ticket.
      Parameters:
      value - The reference of the ticket to set.
      Returns:
      The Builder instance.
    • setChannel

      public TicketContext.Builder setChannel(Channel value)
      Sets the channel associated with the ticket context.
      Parameters:
      value - The channel to set.
      Returns:
      The Builder instance.
    • setLimitId

      public TicketContext.Builder setLimitId(long value)
      Sets the limit ID associated with the ticket context.
      Parameters:
      value - The limit ID to set.
      Returns:
      The Builder instance.
    • setPayoutCap

      public TicketContext.Builder setPayoutCap(Payout... value)
      Sets the payout cap associated with the ticket context.
      Parameters:
      value - The payout cap to set.
      Returns:
      The Builder instance.
    • setEndCustomer

      public TicketContext.Builder setEndCustomer(EndCustomer value)
      Sets the end customer associated with the ticket context.
      Parameters:
      value - The end customer to set.
      Returns:
      The Builder instance.