Current section
Files
Jump to
Current section
Files
lib/docusign/model/oauth_access.ex
# NOTE: This file is auto generated by OpenAPI Generator 7.12.0 (https://openapi-generator.tech).
# Do not edit this file manually.
defmodule DocuSign.Model.OauthAccess do
@moduledoc """
"""
alias DocuSign.Deserializer
alias DocuSign.Model.NameValue
@derive Jason.Encoder
defstruct [
:access_token,
:data,
:expires_in,
:refresh_token,
:scope,
:token_type
]
@type t :: %__MODULE__{
:access_token => String.t() | nil,
:data => [NameValue.t()] | nil,
:expires_in => String.t() | nil,
:refresh_token => String.t() | nil,
:scope => String.t() | nil,
:token_type => String.t() | nil
}
def decode(value) do
value
|> Deserializer.deserialize(:data, :list, NameValue)
end
end