Current section

Files

Jump to
docusign lib docusign model oauth_access.ex
Raw

lib/docusign/model/oauth_access.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 DocuSign.Model.OauthAccess do
@moduledoc """
"""
@derive [Poison.Encoder]
defstruct [
:access_token,
:data,
:expires_in,
:refresh_token,
:scope,
:token_type
]
@type t :: %__MODULE__{
:access_token => String.t(),
:data => [NameValue],
:expires_in => String.t(),
:refresh_token => String.t(),
:scope => String.t(),
:token_type => String.t()
}
end
defimpl Poison.Decoder, for: DocuSign.Model.OauthAccess do
import DocuSign.Deserializer
def decode(value, options) do
value
|> deserialize(:data, :list, DocuSign.Model.NameValue, options)
end
end