InventoryViabilityInfo.java
/*
* Copyright 2026 Global Crop Diversity Trust
* Licensed under the Apache License, Version 2.0
* See LICENSE file in project root folder or http://www.apache.org/licenses/LICENSE-2.0
*/
package org.gringlobal.api.model;
import java.time.LocalDate;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
public class InventoryViabilityInfo {
/** Inventory Viability ID. */
private Long id;
/** Started Date: Date when the test was started. */
private LocalDate startedDate;
/** Tested Date: Date when the germination test was conducted. */
private Date testedDate;
/** Test Date Format: Format used for the tested date. */
private String testedDateCode;
/** Vigor Rating: Vigor rating based on the germination test. */
private String vigorRatingCode;
/** Percent Viable: Percent viability of the inventory sample. */
private Double percentViable;
/** Duration In Days: Computed duration of the test since its start. */
private Integer durationInDays;
public InventoryViabilityInfo(Long id) {
this.id = id;
}
}