me.figo.models.Consent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk Show documentation
Show all versions of sdk Show documentation
This SDK eases the development of Java applications and web services consuming the figo connect API.
Figo connect allows developers simple access to users bank data on a trustworthy basis. Users can grant your
application access to certain parts of their bank accounts and you can access them without worrying about the
inner workings of online banking.
package me.figo.models;
import java.util.ArrayList;
import java.util.List;
import com.google.gson.annotations.Expose;
public class Consent {
public static class ConsentAccount {
@Expose
String id;
@Expose
String currency;
public String getId() {
return id;
}
public String getCurrency() {
return currency;
}
public ConsentAccount(String id, String currency) {
super();
this.id = id;
this.currency = currency;
}
}
public Consent(boolean recurring, int period, List scopes) {
super();
this.recurring = recurring;
this.period = period;
this.scopes = scopes;
}
@Expose
boolean recurring;
@Expose
int period;
@Expose
List scopes;
@Expose
List accounts;
public boolean isRecurring() {
return recurring;
}
public void setRecurring(boolean recurring) {
this.recurring = recurring;
}
public int getPeriod() {
return period;
}
public void setPeriod(int period) {
this.period = period;
}
public List getScopes() {
return scopes;
}
public void setScopes(List scopes) {
this.scopes = scopes;
}
public List getAccounts() {
return accounts==null?new ArrayList():accounts;
}
public void setAccounts(List accounts) {
this.accounts = accounts;
}
}