-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathAccount.java
More file actions
58 lines (48 loc) · 1.18 KB
/
Copy pathAccount.java
File metadata and controls
58 lines (48 loc) · 1.18 KB
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
package co.dapi.types;
public class Account {
private final String name;
private final String iban;
private final String number;
private final AccountType type;
private final String id;
private final boolean isFavourite;
private final Currency currency;
public Account(String name, String iban, String number, AccountType type, String id, boolean isFavourite, Currency currency, Balance balance) {
this.name = name;
this.iban = iban;
this.number = number;
this.type = type;
this.id = id;
this.isFavourite = isFavourite;
this.currency = currency;
}
public String getName() {
return name;
}
public String getIban() {
return iban;
}
public String getNumber() {
return number;
}
public AccountType getType() {
return type;
}
public String getId() {
return id;
}
public boolean isFavourite() {
return isFavourite;
}
public Currency getCurrency() {
return currency;
}
public enum AccountType {
current,
savings,
loan,
credit,
deposit,
other
}
}