Class TicketContext.Builder
java.lang.Object
com.sportradar.mbs.sdk.entities.common.TicketContext.Builder
- Enclosing class:
TicketContext
Builder class for creating instances of the TicketContext class.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns the TicketContext instance.setChannel
(Channel value) Sets the channel associated with the ticket context.setEndCustomer
(EndCustomer value) Sets the end customer associated with the ticket context.setLimitId
(long value) Sets the limit ID associated with the ticket context.setPayoutCap
(Payout... value) Sets the payout cap associated with the ticket context.Sets the reference of the ticket.setWalletId
(String value) Sets the wallet ID associated with the ticket context.
-
Method Details
-
build
Builds and returns the TicketContext instance.- Returns:
- The built TicketContext instance.
-
setWalletId
Sets the wallet ID associated with the ticket context.- Parameters:
value
- The wallet ID to set.- Returns:
- The Builder instance.
-
setRef
Sets the reference of the ticket.- Parameters:
value
- The reference of the ticket to set.- Returns:
- The Builder instance.
-
setChannel
Sets the channel associated with the ticket context.- Parameters:
value
- The channel to set.- Returns:
- The Builder instance.
-
setLimitId
Sets the limit ID associated with the ticket context.- Parameters:
value
- The limit ID to set.- Returns:
- The Builder instance.
-
setPayoutCap
Sets the payout cap associated with the ticket context.- Parameters:
value
- The payout cap to set.- Returns:
- The Builder instance.
-
setEndCustomer
Sets the end customer associated with the ticket context.- Parameters:
value
- The end customer to set.- Returns:
- The Builder instance.
-