2021-02-02 21:04:53 +00:00
|
|
|
// License: LGPL-3.0-or-later
|
2021-04-07 21:43:58 +00:00
|
|
|
import type { HouID, HoudiniEvent, IDType} from '../../common';
|
2021-02-02 21:04:53 +00:00
|
|
|
import type Event from '.';
|
|
|
|
import type { EventDiscount, Ticket } from '.';
|
2021-04-07 21:43:58 +00:00
|
|
|
import type { TrxAssignment } from '../Transaction';
|
2021-02-02 21:04:53 +00:00
|
|
|
|
2021-04-07 21:43:58 +00:00
|
|
|
export interface TicketPurchase extends TrxAssignment {
|
2021-02-10 22:04:05 +00:00
|
|
|
event: IDType | Event;
|
|
|
|
event_discount?: IDType | EventDiscount | null;
|
2021-02-02 21:04:53 +00:00
|
|
|
object: 'ticket_purchase';
|
|
|
|
tickets: Ticket[] | HouID[];
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export type TicketPurchaseCreated = HoudiniEvent<'ticket_purchase.created', TicketPurchase>;
|
|
|
|
export type TicketPurchaseUpdated = HoudiniEvent<'ticket_purchase.updated', TicketPurchase>;
|
|
|
|
export type TicketPurchaseDeleted = HoudiniEvent<'ticket_purchase.deleted', TicketPurchase>;
|