Skip to content

Commit 60ed635

Browse files
author
Jan van Esdonk
committed
add categories to transactions
1 parent adaa901 commit 60ed635

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package me.figo.models;
2+
3+
4+
import com.google.gson.annotations.Expose;
5+
6+
public class Category {
7+
8+
@Expose
9+
private int parent_id;
10+
11+
@Expose
12+
private int id;
13+
14+
@Expose
15+
private String name;
16+
17+
public int getParentId() {
18+
return parent_id;
19+
}
20+
21+
public int getId() {
22+
return id;
23+
}
24+
25+
public String getName() {
26+
return name;
27+
}
28+
29+
}

src/main/java/me/figo/models/Transaction.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,9 @@ public class Transaction {
128128
@Expose(serialize = false)
129129
private AdditionalTransactionInfo additional_info;
130130

131+
@Expose
132+
private List<Category> categories;
133+
131134
public Transaction() {
132135
}
133136

@@ -244,6 +247,10 @@ public AdditionalTransactionInfo getAdditionalInfo() {
244247
return additional_info;
245248
}
246249

250+
public List<Category> getCategories() {
251+
return categories;
252+
}
253+
247254
/**
248255
* Helper type to represent the actual answer from the figo API
249256
*/

0 commit comments

Comments
 (0)