Ticket Revenue

@Serializable
data class TicketRevenue(val id: String, val title: String, val value: Double, val revenueDate: Long, val labels: List<RevenueLabel> = emptyList(), val description: String, val closingDate: Long = -1) : GeneralRevenue

The TicketRevenue class is useful to represent a ticket revenue

Author

N7ghtm4r3 - Tecknobit

See also

Revenue

Constructors

Link copied to clipboard
constructor(id: String, title: String, value: Double, revenueDate: Long, labels: List<RevenueLabel> = emptyList(), description: String, closingDate: Long = -1)

Properties

Link copied to clipboard
@SerialName(value = "closing_date" )
val closingDate: Long

When the ticket has been completed

Link copied to clipboard
open override val description: String

The description of the revenue

Link copied to clipboard
open override val id: String

The identifier of the revenue

Link copied to clipboard
open override val labels: List<RevenueLabel>

The labels attached to revenue

Link copied to clipboard
@SerialName(value = "revenue_date" )
open override val revenueDate: Long

The date of the revenue

Link copied to clipboard
open override val title: String

The title of the revenue

Link copied to clipboard
open override val value: Double

The value of the revenue

Functions

Link copied to clipboard

Method to get the temporal gap between when the ticket has been opened and when it has been closed

Link copied to clipboard

Method to check whether the ticket is still pending