revamp aggregate and use typestruct
All checks were successful
Build and Publish / build-release (push) Successful in 1m41s
All checks were successful
Build and Publish / build-release (push) Successful in 1m41s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user