Class BetPartialCancelDetails.Builder
java.lang.Object
com.sportradar.mbs.sdk.entities.cancellation.BetPartialCancelDetails.Builder
- Enclosing class:
BetPartialCancelDetails
Builder class for creating instances of BetPartialCancelDetails.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns the BetPartialCancelDetails instance.Sets the ID of the bet that was partially cancelled.setCode
(int value) Sets the code of the partial bet cancellation.setPercentage
(BigDecimal value) Sets the percentage of the bet that was cancelled.setTicketId
(String value) Sets the ID of the ticket that was partially cancelled.setTicketSignature
(String value) Sets the signature of the ticket that was partially cancelled.
-
Method Details
-
build
Builds and returns the BetPartialCancelDetails instance.- Returns:
- The built BetPartialCancelDetails instance.
-
setCode
Sets the code of the partial bet cancellation.- Parameters:
value
- The code of the partial bet cancellation.- Returns:
- The Builder instance.
-
setPercentage
Sets the percentage of the bet that was cancelled.- Parameters:
value
- The percentage of the bet that was cancelled.- Returns:
- The Builder instance.
-
setBetId
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
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
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.
-