Filterable tours
This commit is contained in:
12
software/src/data/models/ordering/basketItemModel.ts
Normal file
12
software/src/data/models/ordering/basketItemModel.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { ConcertModel } from "../acts/concertModel"
|
||||
|
||||
export class BasketItemModel {
|
||||
id: number = -1
|
||||
quantity: number = 1
|
||||
concert: ConcertModel = new ConcertModel()
|
||||
|
||||
constructor(quantity: number, concert: ConcertModel) {
|
||||
this.quantity = quantity
|
||||
this.concert = concert
|
||||
}
|
||||
}
|
||||
8
software/src/data/models/ordering/orderItemModel.ts
Normal file
8
software/src/data/models/ordering/orderItemModel.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { ConcertModel } from "../acts/concertModel"
|
||||
|
||||
export class OrderItemModel {
|
||||
orderId: number = -1
|
||||
quantity: number = 1
|
||||
orderPrice: number = 0
|
||||
product: ConcertModel
|
||||
}
|
||||
13
software/src/data/models/ordering/orderModel.ts
Normal file
13
software/src/data/models/ordering/orderModel.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { AddressModel } from "../user/addressModel"
|
||||
import { OrderItemModel } from "./orderItemModel"
|
||||
import { PaymentModel } from "../user/paymentModel"
|
||||
|
||||
export class OrderModel {
|
||||
id: number
|
||||
accountId: number
|
||||
shippingProgress: number
|
||||
orderItems: Array<OrderItemModel>
|
||||
orderedAt: string
|
||||
payment: PaymentModel
|
||||
address: AddressModel
|
||||
}
|
||||
Reference in New Issue
Block a user