All checks were successful
Build and Publish / build-release (push) Successful in 2m13s
91 lines
1.4 KiB
Elixir
91 lines
1.4 KiB
Elixir
defmodule CustomerService.Commands.CreateCustomer do
|
|
defstruct [
|
|
:id,
|
|
:first_name,
|
|
:last_name,
|
|
:birth_date,
|
|
:gender,
|
|
:email,
|
|
:phone,
|
|
:address,
|
|
:document_id
|
|
]
|
|
end
|
|
|
|
defmodule CustomerService.Commands.CreateCorporateCustomer do
|
|
defstruct [
|
|
:id,
|
|
:legal_name,
|
|
:commercial_name,
|
|
:ruc,
|
|
:legal_rep_name,
|
|
:legal_rep_document_id,
|
|
:email,
|
|
:phone,
|
|
:address
|
|
]
|
|
end
|
|
|
|
defmodule CustomerService.Commands.UpdateCustomer do
|
|
defstruct [
|
|
:id,
|
|
:first_name,
|
|
:last_name,
|
|
:birth_date,
|
|
:gender,
|
|
:email,
|
|
:phone,
|
|
:address,
|
|
:document_id
|
|
]
|
|
end
|
|
|
|
defmodule CustomerService.Commands.UpdateCorporateCustomer do
|
|
defstruct [
|
|
:id,
|
|
:legal_name,
|
|
:commercial_name,
|
|
:ruc,
|
|
:legal_rep_name,
|
|
:legal_rep_document_id,
|
|
:email,
|
|
:phone,
|
|
:address
|
|
]
|
|
end
|
|
|
|
defmodule CustomerService.Commands.CreateQuickLead do
|
|
defstruct [
|
|
:id,
|
|
:name,
|
|
:email,
|
|
:phone,
|
|
:company_name,
|
|
:status,
|
|
:priority,
|
|
:source,
|
|
:notes,
|
|
:assigned_to,
|
|
:estimated_value,
|
|
:expected_close_date
|
|
]
|
|
end
|
|
|
|
defmodule CustomerService.Commands.UpdateQuickLead do
|
|
defstruct [
|
|
:id,
|
|
:name,
|
|
:email,
|
|
:phone,
|
|
:company_name,
|
|
:notes,
|
|
:assigned_to,
|
|
:estimated_value,
|
|
:expected_close_date
|
|
]
|
|
end
|
|
|
|
defmodule CustomerService.Commands.UpdateLeadStatus do
|
|
defstruct [:id, :status]
|
|
end
|