diff options
Diffstat (limited to 'lib/polyjuice/client/endpoint/post_register.ex')
-rw-r--r-- | lib/polyjuice/client/endpoint/post_register.ex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/polyjuice/client/endpoint/post_register.ex b/lib/polyjuice/client/endpoint/post_register.ex index df10a8c..fc13648 100644 --- a/lib/polyjuice/client/endpoint/post_register.ex +++ b/lib/polyjuice/client/endpoint/post_register.ex @@ -22,6 +22,7 @@ defmodule Polyjuice.Client.Endpoint.PostRegister do @type t :: %__MODULE__{ kind: :guest | :user, auth: %{type: String.t(), session: String.t() | nil}, + type: String.t(), username: String.t() | nil, password: String.t() | nil, device_id: String.t() | nil, @@ -32,6 +33,7 @@ defmodule Polyjuice.Client.Endpoint.PostRegister do @enforce_keys [:auth] defstruct [ :kind, + :type, :auth, :username, :password, @@ -44,6 +46,7 @@ defmodule Polyjuice.Client.Endpoint.PostRegister do def http_spec(%Polyjuice.Client.Endpoint.PostRegister{ kind: kind, auth: auth, + type: type, username: username, password: password, device_id: device_id, @@ -53,6 +56,7 @@ defmodule Polyjuice.Client.Endpoint.PostRegister do body = [ if(auth != nil, do: [{"auth", auth}], else: []), + if(type != nil, do: [{"type", type}], else: []), if(username != nil, do: [{"username", username}], else: []), if(password != nil, do: [{"password", password}], else: []), if(device_id != nil, do: [{"device_id", device_id}], else: []), |