rename policy_details to insured_object
All checks were successful
Build and Publish / build-release (push) Successful in 1m36s
All checks were successful
Build and Publish / build-release (push) Successful in 1m36s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user