add life policy aggregate
Some checks failed
Build and Publish / build-release (push) Failing after 38s
Some checks failed
Build and Publish / build-release (push) Failing after 38s
This commit is contained in:
@@ -300,6 +300,7 @@ defmodule PolicyServiceWeb.PolicyController do
|
||||
"name" => info["name"],
|
||||
"date_of_birth" => dob,
|
||||
"document_id" => info["document_id"],
|
||||
"gender" => info["gender"],
|
||||
"email" => info["email"],
|
||||
"phone" => info["phone"],
|
||||
"address" => info["address"]
|
||||
@@ -379,7 +380,10 @@ defmodule PolicyServiceWeb.PolicyController do
|
||||
"car_type" => d["car_type"],
|
||||
"chassis_number" => d["chassis_number"],
|
||||
"engine_number" => d["engine_number"],
|
||||
"rc_limits" => d["rc_limits"],
|
||||
"rc_limits" => %{
|
||||
"bodily_injury" => d["rc_limits"]["bodily_injury"],
|
||||
"property_damage" => d["rc_limits"]["property_damage"]
|
||||
},
|
||||
"market_value" => d["market_value"],
|
||||
"requested_value" => d["requested_value"]
|
||||
}}
|
||||
@@ -395,8 +399,8 @@ defmodule PolicyServiceWeb.PolicyController do
|
||||
"coverage_amount" => d["coverage_amount"],
|
||||
"coverage_years" => d["coverage_years"],
|
||||
"smoker" => d["smoker"],
|
||||
"medications" => d["medications"],
|
||||
"surgeries" => d["surgeries"],
|
||||
"medications" => d["medications"] || [],
|
||||
"surgeries" => d["surgeries"] || [],
|
||||
"weight" => d["weight"],
|
||||
"height" => d["height"]
|
||||
}}
|
||||
@@ -411,7 +415,7 @@ defmodule PolicyServiceWeb.PolicyController do
|
||||
"location" => d["location"],
|
||||
"property_value" => d["property_value"],
|
||||
"property_use" => d["property_use"],
|
||||
"security_measures" => d["security_measures"],
|
||||
"security_measures" => d["security_measures"] || [],
|
||||
"market_value" => d["market_value"]
|
||||
}}
|
||||
end
|
||||
@@ -425,8 +429,8 @@ defmodule PolicyServiceWeb.PolicyController do
|
||||
"location" => d["location"],
|
||||
"contents_value" => d["contents_value"],
|
||||
"property_use" => d["property_use"],
|
||||
"security_measures" => d["security_measures"],
|
||||
"high_value_items" => d["high_value_items"]
|
||||
"security_measures" => d["security_measures"] || [],
|
||||
"high_value_items" => d["high_value_items"] || []
|
||||
}}
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user