Skip to content

Commit

Permalink
MOSIP-19740:Added the zoneCode and regCenterId in the Machine POST re…
Browse files Browse the repository at this point in the history
…sponse
  • Loading branch information
yashmsonkusare committed Apr 4, 2024
1 parent c1e0080 commit 7964802
Showing 1 changed file with 11 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

0 comments on commit 7964802

Please sign in to comment.