Last change
on this file since 9868304 was 3d60932, checked in by ste08 <sjovanoska@…>, 4 months ago |
Fix commiT
|
-
Property mode
set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | package com.example.skychasemk.dto;
|
---|
2 |
|
---|
3 | import lombok.Getter;
|
---|
4 | import lombok.Setter;
|
---|
5 |
|
---|
6 | import java.math.BigDecimal;
|
---|
7 | import java.time.LocalDate;
|
---|
8 |
|
---|
9 | public class PaymentDTO {
|
---|
10 |
|
---|
11 | // Getters and Setters
|
---|
12 | @Getter
|
---|
13 | private Long paymentID;
|
---|
14 | @Getter
|
---|
15 | private Integer bookingId;
|
---|
16 | private Integer userID;
|
---|
17 | @Getter
|
---|
18 | private PaymentMethod method;
|
---|
19 | @Getter
|
---|
20 | private BigDecimal amount;
|
---|
21 | @Getter
|
---|
22 | private LocalDate transactionDate;
|
---|
23 | @Getter
|
---|
24 | private PaymentStatus status;
|
---|
25 | @Setter
|
---|
26 | @Getter
|
---|
27 | private Long flightId;
|
---|
28 |
|
---|
29 | public enum PaymentStatus {
|
---|
30 | PENDING,
|
---|
31 | COMPLETED,
|
---|
32 | CANCELLED
|
---|
33 | }
|
---|
34 |
|
---|
35 | public enum PaymentMethod {
|
---|
36 | PAYPAL,
|
---|
37 | DEBIT,
|
---|
38 | CREDIT
|
---|
39 | }
|
---|
40 | public Integer getBookingID() {
|
---|
41 | return bookingId;
|
---|
42 | }
|
---|
43 | public void setPaymentID(Long paymentID) {
|
---|
44 | this.paymentID = paymentID;
|
---|
45 | }
|
---|
46 |
|
---|
47 |
|
---|
48 | public Long getUserID() {
|
---|
49 | return Long.valueOf(userID);
|
---|
50 | }
|
---|
51 |
|
---|
52 | public void setUserID(Integer userID) {
|
---|
53 | this.userID = userID;
|
---|
54 | }
|
---|
55 |
|
---|
56 | public void setMethod(PaymentMethod method) {
|
---|
57 | this.method = method;
|
---|
58 | }
|
---|
59 |
|
---|
60 | public void setAmount(BigDecimal amount) {
|
---|
61 | this.amount = amount;
|
---|
62 | }
|
---|
63 |
|
---|
64 | public void setTransactionDate(LocalDate transactionDate) {
|
---|
65 | this.transactionDate = transactionDate;
|
---|
66 | }
|
---|
67 |
|
---|
68 | public void setStatus(PaymentStatus status) {
|
---|
69 | this.status = status;
|
---|
70 | }
|
---|
71 | }
|
---|
72 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.