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

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

Initial commit

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