Line | |
---|
1 | package com.example.skychasemk.dto;
|
---|
2 |
|
---|
3 | import lombok.Getter;
|
---|
4 | import lombok.Setter;
|
---|
5 |
|
---|
6 | import java.math.BigDecimal;
|
---|
7 | import java.time.LocalDate;
|
---|
8 |
|
---|
9 | public class BookingDTO {
|
---|
10 |
|
---|
11 | @Setter
|
---|
12 | private Integer bookingId;
|
---|
13 |
|
---|
14 | @Getter
|
---|
15 | private Integer userId;
|
---|
16 | @Setter
|
---|
17 | @Getter
|
---|
18 | private Integer flightId;
|
---|
19 | @Setter
|
---|
20 | @Getter
|
---|
21 | private LocalDate bookingDate;
|
---|
22 | @Setter
|
---|
23 | @Getter
|
---|
24 | private PaymentStatus status;
|
---|
25 | @Setter
|
---|
26 | @Getter
|
---|
27 | private BigDecimal totalCost;
|
---|
28 | @Setter
|
---|
29 | @Getter
|
---|
30 | private Integer seatNumber;
|
---|
31 |
|
---|
32 | public enum PaymentStatus {
|
---|
33 | PENDING,
|
---|
34 | COMPLETED,
|
---|
35 | CANCELLED
|
---|
36 | }
|
---|
37 |
|
---|
38 | public void setUserID(Integer userId) {
|
---|
39 | this.userId = userId;
|
---|
40 | }
|
---|
41 |
|
---|
42 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.