houdini/docs/event_definitions/Nonprofit/Event/Ticket.ts

23 lines
806 B
TypeScript
Raw Normal View History

2021-02-02 21:04:53 +00:00
// License: LGPL-3.0-or-later
import type { HouID, HoudiniObject, HoudiniEvent, Amount, IDType} from '../../common';
2021-02-02 21:04:53 +00:00
import type Nonprofit from '..';
import type Event from '.';
import type { TicketLevel , TicketPurchase} from '.';
import type Supporter from '../Supporter';
export interface Ticket extends HoudiniObject<HouID> {
amount: Amount;
checked_in: boolean;
deleted: boolean;
event: IDType | Event;
nonprofit: IDType | Nonprofit;
2021-02-02 21:04:53 +00:00
note: string;
object: 'ticket';
supporter: IDType | Supporter;
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>;