no.unit.nva.model.funding.Funding Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nva-datamodel-java Show documentation
Show all versions of nva-datamodel-java Show documentation
The java version of the NVA datamodel
package no.unit.nva.model.funding;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
import java.net.URI;
import java.time.Instant;
import java.util.Map;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, property = "type")
@JsonSubTypes({
@JsonSubTypes.Type(name = "ConfirmedFunding", value = ConfirmedFunding.class),
@JsonSubTypes.Type(name = "UnconfirmedFunding", value = UnconfirmedFunding.class)
})
public interface Funding {
URI getSource();
String getIdentifier();
Map getLabels();
MonetaryAmount getFundingAmount();
Instant getActiveFrom();
Instant getActiveTo();
}