This commit is contained in:
@@ -45,7 +45,7 @@ defmodule PolicyService.Commands.Policy do
|
|||||||
|
|
||||||
typedstruct do
|
typedstruct do
|
||||||
field :id, PolicyService.Aggregates.PolicyId.t(), enforce: true
|
field :id, PolicyService.Aggregates.PolicyId.t(), enforce: true
|
||||||
field :accepted_by, String.t(), enforce: true
|
field :accepted_by, String.t()
|
||||||
field :accepted_plan_id, String.t(), enforce: true
|
field :accepted_plan_id, String.t(), enforce: true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -229,8 +229,10 @@ defmodule PolicyServiceWeb.Schemas.Policy do
|
|||||||
type: :object,
|
type: :object,
|
||||||
required: [:accepted_plan_id],
|
required: [:accepted_plan_id],
|
||||||
properties: %{
|
properties: %{
|
||||||
quote_id: %Schema{type: :string},
|
accepted_plan_id: %Schema{
|
||||||
plan_id: %Schema{type: :string}
|
type: :string,
|
||||||
|
description: "Plan ID to accept"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user