diff --git a/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/dto/getresponse/extn/MachineExtnDto.java b/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/dto/getresponse/extn/MachineExtnDto.java index 043d900a79a..a93efb12022 100644 --- a/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/dto/getresponse/extn/MachineExtnDto.java +++ b/admin/kernel-masterdata-service/src/main/java/io/mosip/kernel/masterdata/dto/getresponse/extn/MachineExtnDto.java @@ -3,12 +3,14 @@ import java.time.LocalDateTime; import javax.validation.constraints.NotBlank; +import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import com.fasterxml.jackson.annotation.JsonFormat; import io.mosip.kernel.masterdata.validator.FilterType; import io.mosip.kernel.masterdata.validator.FilterTypeEnum; +import io.mosip.kernel.masterdata.validator.StringFormatter; import io.mosip.kernel.masterdata.validator.ValidLangCode; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -81,4 +83,12 @@ public class MachineExtnDto extends BaseDto { */ @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'") private LocalDateTime validityDateTime; -} + + @NotNull + @StringFormatter(min = 1, max = 36) + @ApiModelProperty(value = "zoneCode", required = true, dataType = "java.lang.String") + private String zoneCode; + + @ApiModelProperty(value = "regCenterId", dataType = "java.lang.String") + private String regCenterId; +} \ No newline at end of file