package Ġuk . gov . just ice . digital . h mp ps . pr isoner contact registry . dto Ċ Ċ import Ġio . swagger . v 3 . o as . annotations . media . Schema Ċ import Ġjava . time . LocalDate Ċ Ċ @ Schema ( description Ġ= Ġ" A Ġcontact Ġfor Ġa Ġpr isoner ") Ċ class ĠContact Dto ( ĊĠ Ġ@ Schema ( description Ġ= Ġ" Identifier Ġfor Ġthis Ġcontact Ġ( Person Ġin ĠNO MIS )", Ġexample Ġ= Ġ" 5 8 7 1 7 9 1 ") Ġval Ġperson Id : ĠLong ? Ġ= Ġnull , ĊĠ Ġ@ Schema ( description Ġ= Ġ" First Ġname ", Ġexample Ġ= Ġ" John ", Ġrequired Ġ= Ġtrue ) Ġval ĠfirstName : ĠString , ĊĠ Ġ@ Schema ( description Ġ= Ġ" Middle Ġname ", Ġexample Ġ= Ġ" Mark ", Ġrequired Ġ= Ġfalse ) Ġval Ġmiddle Name : ĠString ? Ġ= Ġnull , ĊĠ Ġ@ Schema ( description Ġ= Ġ" Last Ġname ", Ġexample Ġ= Ġ" Sm ith ", Ġrequired Ġ= Ġtrue ) Ġval ĠlastName : ĠString , ĊĠ Ġ@ Schema ( description Ġ= Ġ" Date Ġof Ġbirth ", Ġexample Ġ= Ġ" 1 9 8 0 - 0 1 - 2 8 ", Ġrequired Ġ= Ġfalse ) Ġval Ġdate OfBirth : ĠLocalDate ? Ġ= Ġnull , ĊĠ Ġ@ Schema ( description Ġ= Ġ" Code Ġfor Ġrelationship Ġto ĠPr isoner ", Ġexample Ġ= Ġ" RO ", Ġrequired Ġ= Ġtrue ) Ġval Ġrelationship Code : ĠString , ĊĠ Ġ@ Schema ( description Ġ= Ġ" Description Ġof Ġrelationship Ġto ĠPr isoner ", Ġexample Ġ= Ġ" Respons ible ĠOffic er ", Ġrequired Ġ= Ġfalse ) Ġval Ġrelationship Description : ĠString ? Ġ= Ġnull , ĊĠ Ġ@ Schema ( description Ġ= Ġ" Type Ġof ĠContact ", Ġexample Ġ= Ġ" O ", Ġrequired Ġ= Ġtrue ) Ġval Ġcontact Type : ĠString , ĊĠ Ġ@ Schema ( description Ġ= Ġ" Description Ġof ĠContact ĠType ", Ġexample Ġ= Ġ" Official ", Ġrequired Ġ= Ġfalse ) Ġval Ġcontact Type Description : ĠString ? Ġ= Ġnull , ĊĠ Ġ@ Schema ( description Ġ= Ġ" Approved ĠVisitor ĠFlag ", Ġrequired Ġ= Ġtrue ) Ġval Ġapproved Visitor : ĠBoolean , ĊĠ Ġ@ Schema ( description Ġ= Ġ" E mergency ĠContact ĠFlag ", Ġrequired Ġ= Ġtrue ) Ġval Ġem ergency Contact : ĠBoolean , ĊĠ Ġ@ Schema ( description Ġ= Ġ" Next Ġof ĠKin ĠFlag ", Ġrequired Ġ= Ġtrue ) Ġval Ġnext Of Kin : ĠBoolean , ĊĠ Ġ@ Schema ( description Ġ= Ġ" List Ġof Ġrestrictions Ġassociated Ġwith Ġthe Ġcontact ", Ġrequired Ġ= Ġfalse ) Ġval Ġrestrictions : ĠList < Restriction Dto > Ġ= ĠlistOf (), ĊĠ Ġ@ Schema ( description Ġ= Ġ" List Ġof Ġaddresses Ġassociated Ġwith Ġthe Ġcontact ", Ġrequired Ġ= Ġfalse ) Ġvar Ġaddresses : ĠList < Address Dto > Ġ= ĠlistOf (), ĊĠ Ġ@ Schema ( description Ġ= Ġ" Additional ĠInformation ", Ġexample Ġ= Ġ" This Ġis Ġa Ġcomment Ġtext ", Ġrequired Ġ= Ġfalse ) Ġval Ġcomment Text : ĠString ? Ġ= Ġnull Ċ ) Ċ