change policy_details to insured_object
All checks were successful
Build and Publish / build-release (push) Successful in 1m40s
All checks were successful
Build and Publish / build-release (push) Successful in 1m40s
This commit is contained in:
@@ -55,7 +55,7 @@ defmodule WorkloadService.Consumers.QuoteRequestedConsumer do
|
|||||||
%{
|
%{
|
||||||
"id" => %{"org_id" => org_id, "application_id" => app_id, "policy_type" => policy_type},
|
"id" => %{"org_id" => org_id, "application_id" => app_id, "policy_type" => policy_type},
|
||||||
"provider_id" => provider_id,
|
"provider_id" => provider_id,
|
||||||
"policy_details" => policy_details,
|
"insured_object" => insured_object,
|
||||||
"insured" => insured,
|
"insured" => insured,
|
||||||
"buyer" => buyer
|
"buyer" => buyer
|
||||||
} = event
|
} = event
|
||||||
@@ -71,7 +71,7 @@ defmodule WorkloadService.Consumers.QuoteRequestedConsumer do
|
|||||||
"provider_id" => provider_id,
|
"provider_id" => provider_id,
|
||||||
"insured" => insured,
|
"insured" => insured,
|
||||||
"buyer" => buyer,
|
"buyer" => buyer,
|
||||||
"policy_details" => policy_details,
|
"insured_object" => insured_object,
|
||||||
"provider_email" => Map.get(event, "provider_email")
|
"provider_email" => Map.get(event, "provider_email")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,11 +40,11 @@ defmodule WorkloadServiceWeb.Schemas.Task do
|
|||||||
OpenApiSpex.schema(%{
|
OpenApiSpex.schema(%{
|
||||||
title: "QuoteTaskInfo",
|
title: "QuoteTaskInfo",
|
||||||
type: :object,
|
type: :object,
|
||||||
required: [:provider_id, :applicant_info, :policy_details],
|
required: [:provider_id, :applicant_info, :insured_object],
|
||||||
properties: %{
|
properties: %{
|
||||||
provider_id: %Schema{type: :string},
|
provider_id: %Schema{type: :string},
|
||||||
applicant_info: %Schema{type: :object, additionalProperties: true},
|
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}
|
provider_email: %Schema{type: :string, nullable: true}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user