2021-02-02 21:04:53 +00:00
|
|
|
// License: LGPL-3.0-or-later
|
2021-02-10 22:04:05 +00:00
|
|
|
import type { HouID, HoudiniObject, HoudiniEvent, Amount, IDType} from '../../common';
|
2021-02-02 21:04:53 +00:00
|
|
|
import type Event from '.';
|
|
|
|
import type { TicketLevel , TicketPurchase} from '.';
|
2021-04-07 21:43:58 +00:00
|
|
|
import { TrxDescendent } from '../Transaction';
|
2021-02-02 21:04:53 +00:00
|
|
|
|
2021-04-07 21:43:58 +00:00
|
|
|
export interface Ticket extends HoudiniObject<HouID>, TrxDescendent {
|
2021-02-02 21:04:53 +00:00
|
|
|
amount: Amount;
|
|
|
|
checked_in: boolean;
|
|
|
|
deleted: boolean;
|
2021-02-10 22:04:05 +00:00
|
|
|
event: IDType | Event;
|
2021-02-02 21:04:53 +00:00
|
|
|
note: string;
|
|
|
|
object: 'ticket';
|
2021-02-10 22:04:05 +00:00
|
|
|
ticket_level: IDType | TicketLevel;
|
2021-02-02 21:04:53 +00:00
|
|
|
ticket_purchase: HouID | TicketPurchase;
|
|
|
|
}
|
|
|
|
|
|
|
|
export type TicketCreated = HoudiniEvent<'ticket.created', Ticket>;
|
|
|
|
export type TicketUpdated = HoudiniEvent<'ticket.updated', Ticket>;
|
|
|
|
export type TicketDeleted = HoudiniEvent<'ticket.deleted', Ticket>;
|