revamp aggregate and use typestruct
All checks were successful
Build and Publish / build-release (push) Successful in 1m41s

This commit is contained in:
2026-04-22 11:37:04 -05:00
parent 5f2f9e9085
commit a7160aadcf
19 changed files with 228 additions and 185 deletions

View File

@@ -50,18 +50,18 @@ defmodule PolicyService.Events.Policy do
defmodule QuoteAccepted do
use PolicyService.Events
@derive Jason.Encoder
defstruct [:id, :accepted_by, :quote, :plan, :provider, :accepted_at]
defstruct [:id, :accepted_by, :quote, :plan, :provider]
end
defmodule SolicitationSent do
use PolicyService.Events
@derive Jason.Encoder
defstruct [:id, :solicitation_id, :provider_id, :template_id, :s3_key, :sent_at]
end
defmodule SolicitationRequestSent do
use PolicyService.Events
@derive Jason.Encoder
defstruct [:id, :plan]
end
defmodule PolicyIssued do
use PolicyService.Events
@derive Jason.Encoder
defstruct [:id, :policy_number, :effective_date, :expiry_date, :issued_at]
defstruct [:id, :provider_policy_number, :effective_date, :expiry_date, :issued_at]
end
end