me.figo.internal.StandingOrderIntervalType 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.internal;
import com.google.gson.annotations.SerializedName;
public enum StandingOrderIntervalType {
@SerializedName("monthly")
MONTHLY("monthly", 1),
@SerializedName("two monthly")
TWO_MONTHLY("two monthly", 2),
@SerializedName("quarterly")
QUARTERLY("quarterly", 3),
@SerializedName("half yearly")
HALF_YEARLY("half yearly", 6),
@SerializedName("yearly")
YEARLY("yearly", 12);
private final String interval;
private int month;
private StandingOrderIntervalType(final String interval, final int month)
{
this.interval = interval;
this.month = month;
}
StandingOrderIntervalType(final String interval)
{
this.interval = interval;
}
public static StandingOrderIntervalType fromInterval(final String interval)
{
for (StandingOrderIntervalType sot : StandingOrderIntervalType.values()) {
if (interval == sot.interval) {
return sot;
}
}
return null;
}
public int getMonth()
{
return this.month;
}
public String getInterval()
{
return this.interval;
}
}