omise v0.6.0 Omise.Balance

Provides Balance API interfaces.

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

Link to this section Summary

Functions

Retrieve the balance

Link to this section Types

Link to this type t()
t() :: %Omise.Balance{available: integer(), currency: String.t(), livemode: boolean(), location: String.t(), object: String.t(), reserve_amount: integer(), total: integer()}

Link to this section Functions

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

Retrieve the balance.

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

Examples

Omise.Balance.retrieve

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