forked from cesarmac/qapital-backend-test
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTransaction.java
62 lines (46 loc) · 1.16 KB
/
Transaction.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
package com.qapital.bankdata.transaction;
import java.time.LocalDate;
public class Transaction {
private Long id;
private Long userId;
private Double amount;
private String description;
private LocalDate date;
public Transaction(Long id, Long userId, Double amount, String description, LocalDate date) {
this.id = id;
this.userId = userId;
this.amount = amount;
this.description = description;
this.date = date;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Long getUserId() {
return userId;
}
public void setUserId(Long userId) {
this.userId = userId;
}
public Double getAmount() {
return amount;
}
public void setAmount(Double amount) {
this.amount = amount;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public LocalDate getDate() {
return date;
}
public void setDate(LocalDate date) {
this.date = date;
}
}