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