All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.figo.internal.StandingOrderIntervalType Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 4.0.16
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy