diff --git a/src/main/java/me/figo/models/Category.java b/src/main/java/me/figo/models/Category.java new file mode 100644 index 0000000..cf026aa --- /dev/null +++ b/src/main/java/me/figo/models/Category.java @@ -0,0 +1,29 @@ +package me.figo.models; + + +import com.google.gson.annotations.Expose; + +public class Category { + + @Expose + private int parent_id; + + @Expose + private int id; + + @Expose + private String name; + + public int getParentId() { + return parent_id; + } + + public int getId() { + return id; + } + + public String getName() { + return name; + } + +} diff --git a/src/main/java/me/figo/models/Transaction.java b/src/main/java/me/figo/models/Transaction.java index de40ecb..c9a200e 100644 --- a/src/main/java/me/figo/models/Transaction.java +++ b/src/main/java/me/figo/models/Transaction.java @@ -128,6 +128,9 @@ public class Transaction { @Expose(serialize = false) private AdditionalTransactionInfo additional_info; + @Expose + private List categories; + public Transaction() { } @@ -244,6 +247,10 @@ public AdditionalTransactionInfo getAdditionalInfo() { return additional_info; } + public List getCategories() { + return categories; + } + /** * Helper type to represent the actual answer from the figo API */