Current section
Files
Jump to
Current section
Files
lib/docusign/api/identity_verifications.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.Api.IdentityVerifications do
@moduledoc """
API calls for all endpoints tagged `IdentityVerifications`.
"""
alias DocuSign.Connection
import DocuSign.RequestBuilder
@doc """
## Parameters
- connection (DocuSign.Connection): Connection to server
- account_id (String.t): The external account number (int) or account ID Guid.
- opts (KeywordList): [optional] Optional parameters
## Returns
{:ok, %DocuSign.Model.IdentityVerifications{}} on success
{:error, info} on failure
"""
@spec account_identity_verification_get_account_identity_verification(
Tesla.Env.client(),
String.t(),
keyword()
) :: {:ok, DocuSign.Model.IdentityVerifications.t()} | {:error, Tesla.Env.t()}
def account_identity_verification_get_account_identity_verification(
connection,
account_id,
_opts \\ []
) do
%{}
|> method(:get)
|> url("/v2/accounts/#{account_id}/identity_verification")
|> Enum.into([])
|> (&Connection.request(connection, &1)).()
|> decode(%DocuSign.Model.IdentityVerifications{})
end
end