Ticket

public final class Ticket

Parameters

type

Specifies the type of the ticket, such as ADULT, CHILD, SENIOR, STUDENT, or OTHER.

quantity

This field represents the count or number of tickets associated with the type.

Constructors

Link copied to clipboard
public Ticket Ticket(Ticket.Type type, Integer quantity)

Types

Link copied to clipboard
public final class Builder
Link copied to clipboard
public enum Type extends Enum<Ticket.Type>

Specifies the type of the ticket, such as ADULT, CHILD, SENIOR, STUDENT, or OTHER. Values: ADULT,CHILD,SENIOR,STUDENT,OTHER

Properties

Link copied to clipboard
private final Integer quantity
Link copied to clipboard
@NotNull()
private final Ticket.Type type

Functions

Link copied to clipboard
public final static Ticket.Builder builder()
Link copied to clipboard
public final Integer getQuantity()
Link copied to clipboard
public final Ticket.Type getType()
Link copied to clipboard
public final Ticket.Builder toBuilder()