Line | |
---|
1 | package com.example.skychasemk.dto;
|
---|
2 |
|
---|
3 | import com.example.skychasemk.model.Booking;
|
---|
4 | import lombok.Getter;
|
---|
5 | import lombok.Setter;
|
---|
6 |
|
---|
7 | import java.math.BigDecimal;
|
---|
8 | import java.time.LocalDate;
|
---|
9 |
|
---|
10 | public 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.