Packages
The Elixir SDK for the Thinkific Admin API
Current section
Files
Jump to
Current section
Files
lib/thinkific_admin_api/model/update_user_request.ex
# NOTE: This class is auto generated by the swagger code generator program.
# https://github.com/swagger-api/swagger-codegen.git
# Do not edit the class manually.
defmodule ThinkificAdminAPI.Model.UpdateUserRequest do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:"first_name",
:"last_name",
:"email",
:"password",
:"roles",
:"avatar_url",
:"bio",
:"company",
:"headline",
:"external_source",
:"affiliate_code",
:"affiliate_commission",
:"affiliate_commission_type",
:"affiliate_payout_email",
:"custom_profile_fields"
]
@type t :: %__MODULE__{
:"first_name" => String.t,
:"last_name" => String.t,
:"email" => String.t,
:"password" => String.t,
:"roles" => [Role],
:"avatar_url" => String.t,
:"bio" => String.t,
:"company" => String.t,
:"headline" => String.t,
:"external_source" => String.t,
:"affiliate_code" => String.t,
:"affiliate_commission" => float(),
:"affiliate_commission_type" => String.t,
:"affiliate_payout_email" => String.t,
:"custom_profile_fields" => [CustomProfileField]
}
end
defimpl Poison.Decoder, for: ThinkificAdminAPI.Model.UpdateUserRequest do
import ThinkificAdminAPI.Deserializer
def decode(value, options) do
value
|> deserialize(:"roles", :list, ThinkificAdminAPI.Model.Role, options)
|> deserialize(:"custom_profile_fields", :list, ThinkificAdminAPI.Model.CustomProfileField, options)
end
end