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 Nonprofit from '..';
|
|
|
|
import type Event from '.';
|
|
|
|
import type { EventDiscount, Ticket } from '.';
|
|
|
|
import Supporter from '../Supporter';
|
|
|
|
import { Transaction } from '../Supporter';
|
|
|
|
|
|
|
|
|
|
|
|
export interface TicketPurchase extends HoudiniObject<HouID> {
|
|
|
|
amount: Amount;
|
2021-02-10 22:04:05 +00:00
|
|
|
event: IDType | Event;
|
|
|
|
event_discount?: IDType | EventDiscount | null;
|
|
|
|
nonprofit: IDType | Nonprofit;
|
2021-02-02 21:04:53 +00:00
|
|
|
object: 'ticket_purchase';
|
2021-02-10 22:04:05 +00:00
|
|
|
supporter: IDType | Supporter;
|
2021-02-02 21:04:53 +00:00
|
|
|
tickets: Ticket[] | HouID[];
|
|
|
|
transaction: HouID | Transaction;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export type TicketPurchaseCreated = HoudiniEvent<'ticket_purchase.created', TicketPurchase>;
|
|
|
|
export type TicketPurchaseUpdated = HoudiniEvent<'ticket_purchase.updated', TicketPurchase>;
|
|
|
|
export type TicketPurchaseDeleted = HoudiniEvent<'ticket_purchase.deleted', TicketPurchase>;
|