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

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

Signup,Login,FlightSearch,Booking and Payment working!

  • Property mode set to 100644
File size: 713 bytes
Line 
1package com.example.skychasemk.dto;
2
3import lombok.Getter;
4import lombok.Setter;
5
6import java.math.BigDecimal;
7import java.time.LocalDate;
8
9public 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.