Class BetCancelDetails.Builder
java.lang.Object
com.sportradar.mbs.sdk.entities.cancellation.BetCancelDetails.Builder
- Enclosing class:
BetCancelDetails
A builder class for creating instances of BetCancelDetails.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the bet cancellation.Sets the ID of the bet that was cancelled.setCode
(int value) Sets the code of the bet cancellation.setTicketId
(String value) Sets the ID of the ticket that was cancelled.setTicketSignature
(String value) Sets the signature of the ticket that was cancelled.
-
Method Details
-
build
Builds the bet cancellation.- Returns:
- The built bet cancellation.
-
setCode
Sets the code of the bet cancellation.- Parameters:
value
- The code of the bet cancellation.- Returns:
- The builder instance.
-
setBetId
Sets the ID of the bet that was cancelled.- Parameters:
value
- The ID of the bet that was cancelled.- Returns:
- The builder instance.
-
setTicketSignature
Sets the signature of the ticket that was cancelled.- Parameters:
value
- The signature of the ticket that was cancelled.- Returns:
- The builder instance.
-
setTicketId
Sets the ID of the ticket that was cancelled.- Parameters:
value
- The ID of the ticket that was cancelled.- Returns:
- The builder instance.
-