Unicom360.Balances (Unicom360 v0.1.0)

Copy Markdown View Source

The result of Unicom360.Balance.all/2 (canonical name Balances).

  • message, client_id, client_name.
  • balances - a map from bundle type ("SMS", "EMAIL", "WHATSAPP", ...) to Decimal.
  • raw, extra - the JSON object, and the members this version does not model.

Summary

Types

t()

@type t() :: %Unicom360.Balances{
  balances: %{optional(String.t()) => Decimal.t()},
  client_id: String.t() | nil,
  client_name: String.t() | nil,
  extra: map(),
  message: String.t() | nil,
  raw: map()
}