EPTSDK.Event (ept_sdk v10.0.0)

Summary

Functions

Fetches all %EPTSDK.Event{}.

Fetches a %EPTSDK.Event{} by record or by id.

Functions

list(client, options \\ [])

Fetches all %EPTSDK.Event{}.

The options argument can be:

  • fields, a map of filds to return for each resource type i.e. fields: %{events: ["id"]}
  • include, a list of relationship chains for the response to return i.e. include: ["events.merchant"]
  • sort, ... i.e. sort: ["-name"]
  • filter, ... i.e. fields: %{name: "John"}

new(id, type, attributes, record, links)

show(client, id, options \\ [])

Fetches a %EPTSDK.Event{} by record or by id.

The options argument can be:

  • fields, a map of filds to return for each resource type i.e. fields: %{events: ["id"]}
  • include, a list of relationship chains for the response to return i.e. include: ["events.merchant"]