source:
src/main/java/com/example/skychasemk/dto/PaymentDTO.java
Last change on this file was de83113, checked in by , 4 months ago | |
---|---|
|
|
File size: 904 bytes |
Rev | Line | |
---|---|---|
[57e58a3] | 1 | package com.example.skychasemk.dto; |
2 | ||
[de83113] | 3 | import com.example.skychasemk.model.Booking; |
[57e58a3] | 4 | import lombok.Getter; |
[3d60932] | 5 | import lombok.Setter; |
[57e58a3] | 6 | |
7 | import java.math.BigDecimal; | |
8 | import java.time.LocalDate; | |
9 | ||
10 | public class PaymentDTO { | |
11 | ||
12 | // Getters and Setters | |
[de83113] | 13 | @Setter |
[57e58a3] | 14 | @Getter |
15 | private Long paymentID; | |
16 | @Getter | |
[3d60932] | 17 | private Integer bookingId; |
[de83113] | 18 | @Setter |
19 | private Integer userId; | |
20 | @Setter | |
[57e58a3] | 21 | @Getter |
22 | private PaymentMethod method; | |
[de83113] | 23 | @Setter |
[57e58a3] | 24 | @Getter |
25 | private BigDecimal amount; | |
26 | @Getter | |
27 | private LocalDate transactionDate; | |
[de83113] | 28 | @Setter |
[57e58a3] | 29 | @Getter |
30 | private PaymentStatus status; | |
[3d60932] | 31 | @Setter |
[57e58a3] | 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 | ||
[de83113] | 48 | public Long getUserId() { |
49 | return Long.valueOf(userId); | |
[57e58a3] | 50 | } |
51 | ||
52 | } | |
53 |
Note:
See TracBrowser
for help on using the repository browser.