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

This commit is contained in:
2026-04-30 12:58:19 -05:00
parent b23ad883f3
commit a06c5ece5d
2 changed files with 4 additions and 4 deletions

View File

@@ -55,7 +55,7 @@ defmodule WorkloadService.Consumers.QuoteRequestedConsumer do
%{
"id" => %{"org_id" => org_id, "application_id" => app_id, "policy_type" => policy_type},
"provider_id" => provider_id,
"policy_details" => policy_details,
"insured_object" => insured_object,
"insured" => insured,
"buyer" => buyer
} = event
@@ -71,7 +71,7 @@ defmodule WorkloadService.Consumers.QuoteRequestedConsumer do
"provider_id" => provider_id,
"insured" => insured,
"buyer" => buyer,
"policy_details" => policy_details,
"insured_object" => insured_object,
"provider_email" => Map.get(event, "provider_email")
}
}

View File

@@ -40,11 +40,11 @@ defmodule WorkloadServiceWeb.Schemas.Task do
OpenApiSpex.schema(%{
title: "QuoteTaskInfo",
type: :object,
required: [:provider_id, :applicant_info, :policy_details],
required: [:provider_id, :applicant_info, :insured_object],
properties: %{
provider_id: %Schema{type: :string},
applicant_info: %Schema{type: :object, additionalProperties: true},
policy_details: %Schema{type: :object, additionalProperties: true},
insured_object: %Schema{type: :object, additionalProperties: true},
provider_email: %Schema{type: :string, nullable: true}
}
})