conekta_ex v1.0.0 ConektaEx.Event

Link to this section Summary

Functions

Decodes a valid json binary to ConektaEx.Event

Link to this section Types

Link to this type t()
t() :: %ConektaEx.Event{
  created_at: term(),
  data: term(),
  id: term(),
  livemode: term(),
  object: term(),
  type: term(),
  webhook_logs: term(),
  webhook_status: term()
}

Link to this section Functions

Link to this function decode(bin)
decode(binary()) :: {:ok, t()} | {:error, binary()}

Decodes a valid json binary to ConektaEx.Event

Examples

iex> decode(valid_json)
{:ok, %ConektaEx.Event{}}

iex> decode(invalid_json)
{:error, invalid_json}