Skip to content

Commit

Permalink
add categories to transactions
Browse files Browse the repository at this point in the history
  • Loading branch information
javaes committed Oct 10, 2016
1 parent adaa901 commit 60ed635
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/main/java/me/figo/models/Category.java
Original file line number Diff line number Diff line change
@@ -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;
}

}
7 changes: 7 additions & 0 deletions src/main/java/me/figo/models/Transaction.java
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,9 @@ public class Transaction {
@Expose(serialize = false)
private AdditionalTransactionInfo additional_info;

@Expose
private List<Category> categories;

public Transaction() {
}

Expand Down Expand Up @@ -244,6 +247,10 @@ public AdditionalTransactionInfo getAdditionalInfo() {
return additional_info;
}

public List<Category> getCategories() {
return categories;
}

/**
* Helper type to represent the actual answer from the figo API
*/
Expand Down

0 comments on commit 60ed635

Please sign in to comment.