EPTSDK.ConsumerAddress (ept_sdk v10.0.2)

Summary

Functions

Creates an new %EPTSDK.ConsumerAddress{}} with attributes: and relationships:.

Fetches all %EPTSDK.ConsumerAddress{}.

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

Updates an existing %EPTSDK.ConsumerAddress with attributes: and relationships:.

Functions

create(client, options \\ [])

Creates an new %EPTSDK.ConsumerAddress{}} with attributes: and relationships:.

The options argument can also have:

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

delete(client, record, options \\ [])

list(client, options \\ [])

Fetches all %EPTSDK.ConsumerAddress{}.

The options argument can be:

  • fields, a map of filds to return for each resource type i.e. fields: %{consumer_addresses: ["id"]}
  • include, a list of relationship chains for the response to return i.e. include: ["consumer_addresses.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.ConsumerAddress{} by record or by id.

The options argument can be:

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

update(client, record, options \\ [])

Updates an existing %EPTSDK.ConsumerAddress with attributes: and relationships:.

The options argument can also have:

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