Skip to content

Commit 6539d41

Browse files
committed
fix: add inspected at into vehicle inspection payload
1 parent 0caf638 commit 6539d41

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/kotlin/com/ctrlhub/core/assets/vehicles/payload/VehicleInspectionPayload.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,16 @@
11
package com.ctrlhub.core.assets.vehicles.payload
22

3+
import com.ctrlhub.core.serializer.LocalDateTimeSerializer
34
import kotlinx.serialization.SerialName
45
import kotlinx.serialization.Serializable
6+
import java.time.LocalDateTime
57

68
@Serializable
79
data class VehicleInspectionPayload(
8-
val checks: VehicleInspectionChecksPayload
10+
val checks: VehicleInspectionChecksPayload,
11+
12+
@Serializable(with = LocalDateTimeSerializer::class)
13+
@SerialName("inspected_at") val inspectedAt: LocalDateTime
914
)
1015

1116
@Serializable

0 commit comments

Comments
 (0)