Class TicketPartialCancelDetails
java.lang.Object
com.sportradar.mbs.sdk.entities.cancellation.CancelDetails
com.sportradar.mbs.sdk.entities.cancellation.TicketPartialCancelDetails
Represents the details of a partial cancellation of a ticket.
Extends the CancelDetails class.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Represents the builder for the TicketPartialCancelDetails class. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
getCode()
Returns the cancellation code.Returns the percentage of the ticket that was cancelled.Returns the ticket ID.Returns the ticket signature.Returns a new instance of the TicketPartialCancelDetails.Builder class.void
setCode
(int value) Sets the cancellation code.void
setPercentage
(BigDecimal value) Sets the percentage of the ticket that was cancelled.void
setTicketId
(String value) Sets the ticket ID.void
setTicketSignature
(String value) Sets the ticket signature.Methods inherited from class com.sportradar.mbs.sdk.entities.cancellation.CancelDetails
newBetCancelDetailsBuilder, newBetPartialCancelDetailsBuilder, newReofferCancelDetailsBuilder, newTicketCancelDetailsBuilder, newTicketPartialCancelDetailsBuilder
-
Constructor Details
-
TicketPartialCancelDetails
public TicketPartialCancelDetails()
-
-
Method Details
-
newBuilder
Returns a new instance of the TicketPartialCancelDetails.Builder class.- Returns:
- a new instance of the TicketPartialCancelDetails.Builder class
-
getCode
public int getCode()Returns the cancellation code.- Returns:
- the cancellation code
-
setCode
public void setCode(int value) Sets the cancellation code.- Parameters:
value
- the cancellation code to set
-
getPercentage
Returns the percentage of the ticket that was cancelled.- Returns:
- the percentage of the ticket that was cancelled
-
setPercentage
Sets the percentage of the ticket that was cancelled.- Parameters:
value
- the percentage of the ticket that was cancelled
-
getTicketSignature
Returns the ticket signature.- Returns:
- the ticket signature
-
setTicketSignature
Sets the ticket signature.- Parameters:
value
- the ticket signature to set
-
getTicketId
Returns the ticket ID.- Returns:
- the ticket ID
-
setTicketId
Sets the ticket ID.- Parameters:
value
- the ticket ID to set
-