source: src/main/java/com/example/skychasemk/dto/BookingDTO.java@ 57e58a3

Last change on this file since 57e58a3 was 57e58a3, checked in by ste08 <sjovanoska@…>, 4 months ago

Initial commit

  • Property mode set to 100644
File size: 1.8 KB
Line 
1package com.example.skychasemk.dto;
2
3import com.example.skychasemk.model.Flight;
4
5import java.math.BigDecimal;
6import java.time.LocalDate;
7
8public class BookingDTO {
9
10 private Integer bookingID;
11 private Integer userID;
12 private Flight flightId;
13 private LocalDate bookingDate;
14 private PaymentStatus status;
15 private BigDecimal totalCost;
16 private Integer seatNumber;
17
18 public Flight getFlightId() {
19 return flightId;
20 }
21
22 public void setFlightId(Flight flightId) {
23 this.flightId = flightId;
24 }
25
26 public enum PaymentStatus {
27 PENDING,
28 COMPLETED,
29 CANCELLED
30 }
31
32 // Getters and Setters
33 public Integer getBookingID() {
34 return bookingID;
35 }
36
37 public void setBookingID(Integer bookingID) {
38 this.bookingID = bookingID;
39 }
40
41 public Integer getUserID() {
42 return userID;
43 }
44
45 public void setUserID(Integer userID) {
46 this.userID = userID;
47 }
48
49 public Flight getFlightID() {
50 return flightId;
51 }
52
53 public void setFlightID(Flight flightId) {
54 this.flightId = flightId;
55 }
56
57 public LocalDate getBookingDate() {
58 return bookingDate;
59 }
60
61 public void setBookingDate(LocalDate bookingDate) {
62 this.bookingDate = bookingDate;
63 }
64
65 public PaymentStatus getStatus() {
66 return status;
67 }
68
69 public void setStatus(PaymentStatus status) {
70 this.status = status;
71 }
72
73 public BigDecimal getTotalCost() {
74 return totalCost;
75 }
76
77 public void setTotalCost(BigDecimal totalCost) {
78 this.totalCost = totalCost;
79 }
80
81 public Integer getSeatNumber() {
82 return seatNumber;
83 }
84
85 public void setSeatNumber(Integer seatNumber) {
86 this.seatNumber = seatNumber;
87 }
88}
Note: See TracBrowser for help on using the repository browser.