Initial commit
This commit is contained in:
commit
1919e4b72c
14 changed files with 640 additions and 0 deletions
23
core/src/lu/foyer/clients/ClientCommand.scala
Normal file
23
core/src/lu/foyer/clients/ClientCommand.scala
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
package lu.foyer
|
||||
package clients
|
||||
|
||||
import zio.schema.*
|
||||
|
||||
import java.time.LocalDate
|
||||
|
||||
enum ClientCommand derives Schema:
|
||||
case Create(
|
||||
lastName: ClientLastName,
|
||||
firstName: ClientFirstName,
|
||||
drivingLicenseDate: Option[ClientDrivingLicenseDate],
|
||||
phoneNumber: Option[PhoneNumberInput],
|
||||
email: Option[Email],
|
||||
address: Option[Address])
|
||||
case Update(
|
||||
lastName: Option[ClientLastName],
|
||||
firstName: Option[ClientFirstName],
|
||||
drivingLicenseDate: Option[ClientDrivingLicenseDate],
|
||||
phoneNumber: Option[PhoneNumberInput],
|
||||
email: Option[Email],
|
||||
address: Option[Address])
|
||||
case Disable(reason: ClientDisabledReason)
|
||||
Loading…
Add table
Add a link
Reference in a new issue