Files
workload-service/lib/workload_service/commands/quote_task.ex
HaimKortovich 571cc94711
All checks were successful
Build and Publish / build-release (push) Successful in 1m23s
implement a special decoder for the id
2026-04-17 12:32:57 -05:00

54 lines
1.0 KiB
Elixir

defmodule WorkloadService.Commands.QuoteTask do
@moduledoc """
Quote task commands.
"""
defmodule CreateTask do
@moduledoc """
Command to create a new quote task.
"""
@derive Jason.Encoder
defstruct [:id, :application_id, :task_info, :attachments]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
defmodule SubmitResponse do
@moduledoc """
Command to submit response for a quote task.
"""
@derive Jason.Encoder
defstruct [:id, :submission, :attachments]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
defmodule ApproveSubmission do
@moduledoc """
Command to approve submission for a quote task.
"""
@derive Jason.Encoder
defstruct [:id]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
defmodule CompleteTask do
@moduledoc """
Command to complete a quote task.
"""
@derive Jason.Encoder
defstruct [:id, :completed_by]
def new(attrs) do
struct(__MODULE__, attrs)
end
end
end