Packages

An Elixir client for Betradar's Unified Odds Feed (UOF) API

Current section

Files

Jump to
uof_api lib uof api schemas descriptions mappings_mapping_mapping_outcome.ex
Raw

lib/uof/api/schemas/descriptions/mappings_mapping_mapping_outcome.ex

defmodule UOF.API.Schemas.Descriptions.MappingsMappingMappingOutcome do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
field(:outcome_id, :string)
field(:product_outcome_id, :string)
field(:product_outcome_name, :string)
end
def changeset(struct, params) do
struct
|> cast(params, [:outcome_id, :product_outcome_id, :product_outcome_name])
end
end