rename policy_details to insured_object
All checks were successful
Build and Publish / build-release (push) Successful in 1m36s

This commit is contained in:
2026-04-30 13:13:41 -05:00
parent 42cb25a3b6
commit dfce7873fb
13 changed files with 47 additions and 66 deletions

View File

@@ -3,7 +3,7 @@ defmodule PolicyService.Aggregates.FireStructurePolicyApplication do
policy_type: "fire_structure",
commands: PolicyService.Commands.FireStructurePolicy
def validate_details(%{
def validate_insured_object(%{
"location" => location,
"property_value" => value,
"property_use" => use_type,
@@ -18,5 +18,5 @@ defmodule PolicyService.Aggregates.FireStructurePolicyApplication do
:ok
end
def validate_details(_), do: {:error, :invalid_fire_structure_details}
def validate_insured_object(_), do: {:error, :invalid_fire_structure_details}
end