Class TicketPartialCancelDetails.Builder
java.lang.Object
com.sportradar.mbs.sdk.entities.cancellation.TicketPartialCancelDetails.Builder
- Enclosing class:
TicketPartialCancelDetails
Represents the builder for the TicketPartialCancelDetails class.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds and returns the instance of the TicketPartialCancelDetails class.setCode
(int value) Sets the cancellation code.setPercentage
(BigDecimal value) Sets the percentage of the ticket that was cancelled.setTicketId
(String value) Sets the ticket ID.setTicketSignature
(String value) Sets the ticket signature.
-
Method Details
-
build
Builds and returns the instance of the TicketPartialCancelDetails class.- Returns:
- the instance of the TicketPartialCancelDetails class
-
setCode
Sets the cancellation code.- Parameters:
value
- the cancellation code to set- Returns:
- the instance of the builder
-
setPercentage
Sets the percentage of the ticket that was cancelled.- Parameters:
value
- the percentage of the ticket that was cancelled- Returns:
- the instance of the builder
-
setTicketSignature
Sets the ticket signature.- Parameters:
value
- the ticket signature to set- Returns:
- the instance of the builder
-
setTicketId
Sets the ticket ID.- Parameters:
value
- the ticket ID to set- Returns:
- the instance of the builder
-