Class TicketPartialCancelDetails.Builder

java.lang.Object
com.sportradar.mbs.sdk.entities.cancellation.TicketPartialCancelDetails.Builder
Enclosing class:
TicketPartialCancelDetails

public static class TicketPartialCancelDetails.Builder extends Object
Represents the builder for the TicketPartialCancelDetails class.
  • Method Details

    • build

      Builds and returns the instance of the TicketPartialCancelDetails class.
      Returns:
      the instance of the TicketPartialCancelDetails class
    • setCode

      public TicketPartialCancelDetails.Builder setCode(int value)
      Sets the cancellation code.
      Parameters:
      value - the cancellation code to set
      Returns:
      the instance of the builder
    • setPercentage

      public TicketPartialCancelDetails.Builder setPercentage(BigDecimal value)
      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

      public TicketPartialCancelDetails.Builder setTicketSignature(String value)
      Sets the ticket signature.
      Parameters:
      value - the ticket signature to set
      Returns:
      the instance of the builder
    • setTicketId

      public TicketPartialCancelDetails.Builder setTicketId(String value)
      Sets the ticket ID.
      Parameters:
      value - the ticket ID to set
      Returns:
      the instance of the builder