add solicitation task and validations
All checks were successful
Build and Publish / build-release (push) Successful in 1m28s
All checks were successful
Build and Publish / build-release (push) Successful in 1m28s
This commit is contained in:
@@ -13,7 +13,7 @@ defmodule WorkloadServiceWeb.TaskController do
|
||||
operation(:list,
|
||||
summary: "List tasks",
|
||||
parameters: QueryHelpers.flop(
|
||||
[:status, :application_id],
|
||||
[:status, :application_id, :policy_type],
|
||||
[:created_at, :updated_at, :status]
|
||||
),
|
||||
responses: [
|
||||
@@ -122,6 +122,9 @@ defmodule WorkloadServiceWeb.TaskController do
|
||||
command = %WorkloadService.Commands.SolicitationTask.SubmitResponse{
|
||||
id: task_id,
|
||||
submission: %{
|
||||
"provider_policy_number" => params["provider_policy_number"],
|
||||
"effective_date" => params["effective_date"],
|
||||
"expiry_date" => params["expiry_date"],
|
||||
"recorded_by" => params["recorded_by"] || "system"
|
||||
},
|
||||
attachments: []
|
||||
@@ -248,6 +251,7 @@ defmodule WorkloadServiceWeb.TaskController do
|
||||
id: t.id,
|
||||
org_id: t.org_id,
|
||||
application_id: t.application_id,
|
||||
policy_type: t.policy_type,
|
||||
task_info: t.task_info,
|
||||
status: t.status,
|
||||
created_at: t.inserted_at
|
||||
@@ -259,6 +263,7 @@ defmodule WorkloadServiceWeb.TaskController do
|
||||
id: t.id,
|
||||
org_id: t.org_id,
|
||||
application_id: t.application_id,
|
||||
policy_type: t.policy_type,
|
||||
task_info: t.task_info,
|
||||
submission: t.submission,
|
||||
attachments: t.attachments,
|
||||
|
||||
Reference in New Issue
Block a user