Omise.Occurrence (omise v0.10.0)

Provides Occurrence API interfaces.

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

Summary

Functions

Retrieve an occurrence.

Types

@type t() :: %Omise.Occurrence{
  created: String.t(),
  id: String.t(),
  livemode: boolean(),
  location: String.t(),
  message: String.t(),
  object: String.t(),
  processed_at: String.t(),
  result: String.t(),
  retry_date: String.t(),
  retry_on: String.t(),
  schedule: String.t(),
  schedule_date: String.t(),
  scheduled_on: String.t(),
  status: String.t()
}

Functions

Link to this function

retrieve(id, opts \\ [])

@spec retrieve(String.t(), Keyword.t()) :: {:ok, t()} | {:error, Omise.Error.t()}

Retrieve an occurrence.

Examples

Omise.Occurrence.retrieve("occu_test_584yqgivyi2p1g828pl")