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

no.nav.vedtak.ytelse.v1.YtelseStatus Maven / Gradle / Ivy

There is a newer version: 5.0_20191210082234_0bd32f2
Show newest version
package no.nav.vedtak.ytelse.v1;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonProperty;

import no.nav.vedtak.ytelse.Kodeverk;

public class YtelseStatus extends Kodeverk {

    public static final YtelseStatus OPPRETTET = new YtelseStatus("OPPR");
    public static final YtelseStatus UNDER_BEHANDLING = new YtelseStatus("UBEH");
    public static final YtelseStatus LØPENDE = new YtelseStatus("LOP");
    public static final YtelseStatus AVSLUTTET = new YtelseStatus("AVSLU");
    private static final String DISCRIMINATOR = "YTELSE_STATUS";

    @JsonCreator
    public YtelseStatus(@JsonProperty(value = "kode", required = true) String kode) {
        super(DISCRIMINATOR, kode);
    }

    @Override
    public void setKodeverk(String kodeverk) {
        if (DISCRIMINATOR.equals(kodeverk)) {
            super.setKodeverk(kodeverk);
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy