Packages

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

Current section

Files

Jump to
uof_api lib uof api schemas custom_bet markets.ex
Raw

lib/uof/api/schemas/custom_bet/markets.ex

defmodule UOF.API.Schemas.CustomBet.Markets do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
embeds_many(:market, UOF.API.Schemas.CustomBet.Market)
end
def changeset(struct, params) do
struct
|> cast(params, [])
|> cast_embed(:market)
end
end