This commit is contained in:
@@ -8,11 +8,11 @@ defmodule WorkloadService.Commands.QuoteTask do
|
||||
Command to create a new quote task.
|
||||
"""
|
||||
@type t :: %__MODULE__{
|
||||
id: WorkloadService.Aggregates.TaskId.t(),
|
||||
application_id: WorkloadService.Aggregates.ApplicationId.t(),
|
||||
task_info: map(),
|
||||
attachments: [String.t()]
|
||||
}
|
||||
id: WorkloadService.Aggregates.TaskId.t(),
|
||||
application_id: WorkloadService.Aggregates.ApplicationId.t(),
|
||||
task_info: map(),
|
||||
attachments: [String.t()]
|
||||
}
|
||||
|
||||
@derive Jason.Encoder
|
||||
defstruct [:id, :application_id, :task_info, :attachments]
|
||||
@@ -23,10 +23,10 @@ defmodule WorkloadService.Commands.QuoteTask do
|
||||
Command to submit response for a quote task.
|
||||
"""
|
||||
@type t :: %__MODULE__{
|
||||
id: WorkloadService.Aggregates.TaskId.t(),
|
||||
submission: map(),
|
||||
attachments: [String.t()]
|
||||
}
|
||||
id: WorkloadService.Aggregates.TaskId.t(),
|
||||
submission: map(),
|
||||
attachments: [String.t()]
|
||||
}
|
||||
|
||||
@derive Jason.Encoder
|
||||
defstruct [:id, :submission, :attachments]
|
||||
@@ -37,8 +37,21 @@ defmodule WorkloadService.Commands.QuoteTask do
|
||||
Command to approve submission for a quote task.
|
||||
"""
|
||||
@type t :: %__MODULE__{
|
||||
id: WorkloadService.Aggregates.TaskId.t()
|
||||
}
|
||||
id: WorkloadService.Aggregates.TaskId.t()
|
||||
}
|
||||
|
||||
@derive Jason.Encoder
|
||||
defstruct [:id]
|
||||
end
|
||||
|
||||
defmodule RequestApproval do
|
||||
@moduledoc """
|
||||
Command to request approval for a quote task.
|
||||
Moves task from 'draft' to 'approval_requested'.
|
||||
"""
|
||||
@type t :: %__MODULE__{
|
||||
id: WorkloadService.Aggregates.TaskId.t()
|
||||
}
|
||||
|
||||
@derive Jason.Encoder
|
||||
defstruct [:id]
|
||||
@@ -49,9 +62,9 @@ defmodule WorkloadService.Commands.QuoteTask do
|
||||
Command to complete a quote task.
|
||||
"""
|
||||
@type t :: %__MODULE__{
|
||||
id: WorkloadService.Aggregates.TaskId.t(),
|
||||
completed_by: String.t()
|
||||
}
|
||||
id: WorkloadService.Aggregates.TaskId.t(),
|
||||
completed_by: String.t()
|
||||
}
|
||||
|
||||
@derive Jason.Encoder
|
||||
defstruct [:id, :completed_by]
|
||||
|
||||
Reference in New Issue
Block a user