Some checks failed
Build and Publish / build-release (push) Failing after 1s
30 lines
477 B
Elixir
30 lines
477 B
Elixir
defmodule CustomerService.Events.CustomerCreated do
|
|
@derive Jason.Encoder
|
|
defstruct [
|
|
:id,
|
|
:first_name,
|
|
:last_name,
|
|
:birth_date,
|
|
:gender,
|
|
:email,
|
|
:phone,
|
|
:address,
|
|
:document_id
|
|
]
|
|
end
|
|
|
|
defmodule CustomerService.Events.CorporateCustomerCreated do
|
|
@derive Jason.Encoder
|
|
defstruct [
|
|
:id,
|
|
:legal_name,
|
|
:commercial_name,
|
|
:ruc,
|
|
:legal_rep_name,
|
|
:legal_rep_document_id,
|
|
:email,
|
|
:phone,
|
|
:address
|
|
]
|
|
end
|