@@ -70,7 +70,7 @@ class BreachNoticeService(
70
70
nextAppointmentDate = nextAppointmentDate,
71
71
nextAppointmentLocation = nextAppointmentLocation,
72
72
nextAppointmentOfficer = nextAppointmentOfficer,
73
- nextAppointmentContact = nextAppointmentContact?.toEntity(existingEntity.nextAppointmentContact) ,
73
+ nextAppointmentId = nextAppointmentId ,
74
74
completedDate = completedDate,
75
75
offenderAddress = offenderAddress?.toEntity(existingEntity.offenderAddress),
76
76
replyAddress = replyAddress?.toEntity(existingEntity.replyAddress),
@@ -115,7 +115,7 @@ class BreachNoticeService(
115
115
nextAppointmentDate = nextAppointmentDate,
116
116
nextAppointmentLocation = nextAppointmentLocation,
117
117
nextAppointmentOfficer = nextAppointmentOfficer,
118
- nextAppointmentContact = nextAppointmentContact?.toEntity() ,
118
+ nextAppointmentId = nextAppointmentId ,
119
119
completedDate = completedDate,
120
120
offenderAddress = offenderAddress?.toEntity(),
121
121
replyAddress = replyAddress?.toEntity(),
@@ -125,6 +125,8 @@ class BreachNoticeService(
125
125
nextAppointmentSaved = nextAppointmentSaved,
126
126
useDefaultAddress = useDefaultAddress,
127
127
useDefaultReplyAddress = useDefaultReplyAddress,
128
+ optionalNumberChecked = optionalNumberChecked,
129
+ optionalNumber = optionalNumber,
128
130
breachNoticeRequirementList = breachNoticeRequirementList.map { it.toEntity() },
129
131
breachNoticeContactList = breachNoticeContactList.map { it.toEntity() },
130
132
)
@@ -148,7 +150,7 @@ class BreachNoticeService(
148
150
nextAppointmentDate = nextAppointmentDate,
149
151
nextAppointmentLocation = nextAppointmentLocation,
150
152
nextAppointmentOfficer = nextAppointmentOfficer,
151
- nextAppointmentContact = nextAppointmentContact?.toModel() ,
153
+ nextAppointmentId = nextAppointmentId ,
152
154
completedDate = completedDate,
153
155
offenderAddress = offenderAddress?.toModel(),
154
156
replyAddress = replyAddress?.toModel(),
@@ -160,6 +162,8 @@ class BreachNoticeService(
160
162
useDefaultReplyAddress = useDefaultReplyAddress,
161
163
breachNoticeContactList = breachNoticeContactList.map { it.toModel() },
162
164
breachNoticeRequirementList = breachNoticeRequirementList.map { it.toModel() },
165
+ optionalNumberChecked = optionalNumberChecked,
166
+ optionalNumber = optionalNumber,
163
167
)
164
168
165
169
fun getBreachNoticeById (uuid : UUID ) = breachNoticeRepository.findById(uuid).getOrNull()?.let {
@@ -182,6 +186,7 @@ class BreachNoticeService(
182
186
nextAppointmentDate = it.nextAppointmentDate,
183
187
nextAppointmentLocation = it.nextAppointmentLocation,
184
188
nextAppointmentOfficer = it.nextAppointmentOfficer,
189
+ nextAppointmentId = it.nextAppointmentId,
185
190
completedDate = it.completedDate,
186
191
offenderAddress = it.offenderAddress?.toModel(),
187
192
replyAddress = it.replyAddress?.toModel(),
@@ -193,7 +198,8 @@ class BreachNoticeService(
193
198
useDefaultReplyAddress = it.useDefaultReplyAddress,
194
199
breachNoticeContactList = it.breachNoticeContactList.map { it.toModel() },
195
200
breachNoticeRequirementList = it.breachNoticeRequirementList.map { it.toModel() },
196
-
201
+ optionalNumberChecked = it.optionalNumberChecked,
202
+ optionalNumber = it.optionalNumber,
197
203
)
198
204
}
199
205
0 commit comments