me.figo.models.CatalogBank 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.List;
import java.util.Map;
import com.google.gson.annotations.Expose;
/**
* object representing the response of a /catalog/banks/{country_code} request
*
* @author Daniel
*
*/
public class CatalogBank {
@Expose
private String id;
@Expose
private String name;
@Expose
private Icon icon;
@Expose
private boolean supported;
@Expose
private String country;
@Expose
private Language language;
@Expose
private List access_methods;
@Expose
private String bank_code;
@Expose
private String bic;
public String getBic() {
return bic;
}
public Language getLanguage() {
return language;
}
public String getBankName() {
return name;
}
public String getBankCode() {
return bank_code;
}
/**
* wrapper class holding the list of banks as returned by figo api
*
* @author Daniel
*
*/
public static class CatalogBanksResponse {
/**
* List of banks asked for
*/
@Expose
private List banks;
public List getBanks() {
return banks;
}
}
/**
* @return bank icon URL
*/
public String getIconUrl() {
if(icon!=null){
return getIcon().getUrl();
}
return "";
}
/**
* @return the bank icon in other resolutions
*/
public Map getAdditionalIcons() {
if(icon!=null&&icon.getResolutions().size()>1){
return icon.getResolutions();
}
return null;
}
public Icon getIcon() {
return icon;
}
public List getAccessMethods() {
return access_methods;
}
public String getId() {
return id;
}
public String getName() {
return name;
}
public boolean isSupported() {
return supported;
}
public String getCountry() {
return country;
}
public List getAccess_methods() {
return access_methods;
}
public String getBank_code() {
return bank_code;
}
}