omise v0.6.0 Omise.Account

Provides Account API interfaces.

https://www.omise.co/account-api

Link to this section Summary

Functions

Retrieve the account

Link to this section Types

Link to this type t()
t() :: %Omise.Account{created: String.t(), currency: String.t(), email: String.t(), id: String.t(), livemode: boolean(), location: String.t(), object: String.t(), supported_currencies: list()}

Link to this section Functions

Link to this function retrieve(opts \\ [])
retrieve(Keyword.t()) :: {:ok, t()} | {:error, Omise.Error.t()}

Retrieve the account.

Returns {:ok, account} if the request is successful, {:error, error} otherwise.

Examples

Omise.Account.retrieve

Omise.Account.retrieve(key: "skey_56ia27lqtvg32u7iww8")