add quick leads
All checks were successful
Build and Publish / build-release (push) Successful in 2m13s

This commit is contained in:
2026-04-30 16:40:40 -05:00
parent 3a22776568
commit cfd810beba
20 changed files with 1054 additions and 11 deletions

View File

@@ -27,3 +27,71 @@ defmodule CustomerService.Events.CorporateCustomerCreated do
:address
]
end
defmodule CustomerService.Events.CustomerUpdated do
@derive Jason.Encoder
defstruct [
:id,
:first_name,
:last_name,
:birth_date,
:gender,
:email,
:phone,
:address,
:document_id
]
end
defmodule CustomerService.Events.CorporateCustomerUpdated do
@derive Jason.Encoder
defstruct [
:id,
:legal_name,
:commercial_name,
:ruc,
:legal_rep_name,
:legal_rep_document_id,
:email,
:phone,
:address
]
end
defmodule CustomerService.Events.QuickLeadCreated do
@derive Jason.Encoder
defstruct [
:id,
:name,
:email,
:phone,
:company_name,
:status,
:priority,
:source,
:notes,
:assigned_to,
:estimated_value,
:expected_close_date
]
end
defmodule CustomerService.Events.QuickLeadUpdated do
@derive Jason.Encoder
defstruct [
:id,
:name,
:email,
:phone,
:company_name,
:notes,
:assigned_to,
:estimated_value,
:expected_close_date
]
end
defmodule CustomerService.Events.LeadStatusUpdated do
@derive Jason.Encoder
defstruct [:id, :status, :previous_status, :updated_at]
end