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 response.ex
Raw

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

defmodule UOF.API.Schemas.CustomBet.Response do
@moduledoc false
use Ecto.Schema
import Ecto.Changeset
@primary_key false
embedded_schema do
field(:response_code, :string)
field(:generated_at, :utc_datetime)
field(:message, :string)
field(:errors, :string)
end
def changeset(struct, params) do
struct
|> cast(params, [:response_code, :generated_at, :message, :errors])
end
end