mirror of
https://github.com/rjNemo/melon_frontend
synced 2026-06-06 02:16:45 +00:00
55 lines
773 B
TypeScript
55 lines
773 B
TypeScript
export type BillForm = {
|
|
name: string;
|
|
phoneNumber: string;
|
|
price: number;
|
|
start: Date;
|
|
end: Date;
|
|
room: Room;
|
|
customers: number;
|
|
platform: Platform;
|
|
taxes: boolean;
|
|
paymentMethod: PaymentMethod;
|
|
paymentStatus: PaymentStatus;
|
|
};
|
|
|
|
export interface Bill {
|
|
id: number;
|
|
phoneNumber: number;
|
|
name: string;
|
|
price: number;
|
|
start: Date;
|
|
end: Date;
|
|
room: Room;
|
|
customers: number;
|
|
platform: Platform;
|
|
taxes: boolean;
|
|
paymentMethod: PaymentMethod;
|
|
paymentStatus: PaymentStatus;
|
|
}
|
|
|
|
export enum Room {
|
|
t2,
|
|
t3,
|
|
}
|
|
|
|
export enum Platform {
|
|
web,
|
|
booking,
|
|
airbnb,
|
|
tripadvisor,
|
|
perso,
|
|
}
|
|
|
|
export enum PaymentMethod {
|
|
card,
|
|
cash,
|
|
cheque,
|
|
transfer,
|
|
}
|
|
|
|
export enum PaymentStatus {
|
|
pending,
|
|
canceled,
|
|
completed,
|
|
refund,
|
|
}
|