wip
Some checks are pending
Build and Publish / build-release (push) Waiting to run

This commit is contained in:
2026-04-13 15:30:31 -05:00
parent a52f049a29
commit 5037bc3632
44 changed files with 2210 additions and 676 deletions

View File

@@ -0,0 +1,11 @@
defmodule PolicyService.Aggregates.FirePolicyApplication do
use PolicyService.Aggregates.PolicyApplication,
policy_type: "fire",
commands: PolicyService.Commands.FirePolicy
def validate_details(%{property_address: addr, property_value: val})
when is_binary(addr) and byte_size(addr) > 0 and is_number(val) and val > 0,
do: :ok
def validate_details(_), do: {:error, :invalid_fire_details}
end