add order form page models, reorder landing models (#8)
This commit is contained in:
23
src/models/landing/order.ts
Normal file
23
src/models/landing/order.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { Car, Customer, Washing } from ".";
|
||||
|
||||
export type Id = string;
|
||||
|
||||
export type Create = {
|
||||
customer: {
|
||||
phone: Customer.PhoneNumber,
|
||||
};
|
||||
car: {
|
||||
number: Car.RegistrationNumber,
|
||||
body: Car.BodyStyle,
|
||||
color: Car.Color,
|
||||
},
|
||||
washing: {
|
||||
location: Washing.Location
|
||||
begin: Washing.AvailableBeginDateTime,
|
||||
end: Washing.AvailableEndDateTime,
|
||||
}
|
||||
};
|
||||
|
||||
export type View = {
|
||||
id: Id;
|
||||
};
|
||||
Reference in New Issue
Block a user