@alisdigital/types-library
Version:
TypeScript type definitions for Papilet ecosystem with session soft delete and event management features
29 lines (28 loc) • 1.15 kB
TypeScript
import { ICityModelAttributes } from "../entity/city.entity";
import { IEventModelAttributes } from "../entity/event.entity";
import { IPurchaseModelAttributes } from "../entity/purchase.entity";
import { ISessionBlockModelAttributes, ISessionModelAttributes } from "../entity/session.entity";
import { ITicketModelAttributes } from "../entity/ticket.entity";
import { IVenueModelAttributes } from "../entity/venue.entity";
export interface IPurchaseTicket extends ITicketModelAttributes {
qrCode: string;
sessionBlockDetail: ISessionBlockModelAttributes;
}
export interface IPurchaseResponse extends IPurchaseModelAttributes {
tickets: IPurchaseTicket[];
}
export interface IPurchasesResponse extends Array<IPurchaseModelAttributes> {
}
export interface IGetMyPurchasesResponse {
totalAmount: number;
serviceFeeTotal: number;
event: string;
session: string;
tickets: string[];
purchaseNumbers: string[];
ticketDetails: IPurchaseTicket[];
eventDetails: IEventModelAttributes;
sessionDetails: ISessionModelAttributes;
cityDetails: ICityModelAttributes;
venueDetails: IVenueModelAttributes;
}