source: src/main/java/com/example/skychasemk/dto/PaymentDTO.java@ de83113

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

Signup,Login,FlightSearch,Booking and Payment working!

  • Property mode set to 100644
File size: 904 bytes
Line 
1package com.example.skychasemk.dto;
2
3import com.example.skychasemk.model.Booking;
4import lombok.Getter;
5import lombok.Setter;
6
7import java.math.BigDecimal;
8import java.time.LocalDate;
9
10public class PaymentDTO {
11
12 // Getters and Setters
13 @Setter
14 @Getter
15 private Long paymentID;
16 @Getter
17 private Integer bookingId;
18 @Setter
19 private Integer userId;
20 @Setter
21 @Getter
22 private PaymentMethod method;
23 @Setter
24 @Getter
25 private BigDecimal amount;
26 @Getter
27 private LocalDate transactionDate;
28 @Setter
29 @Getter
30 private PaymentStatus status;
31 @Setter
32 @Getter
33 private Long flightId;
34
35 public enum PaymentStatus {
36 PENDING,
37 COMPLETED,
38 CANCELLED
39 }
40
41 public enum PaymentMethod {
42 PAYPAL,
43 DEBIT,
44 CREDIT
45 }
46
47
48 public Long getUserId() {
49 return Long.valueOf(userId);
50 }
51
52}
53
Note: See TracBrowser for help on using the repository browser.