Inttegro.Shared.ResourceSupply (inttegro v0.2.0)

Copy Markdown View Source

Represents Resource Supply data in the Shared API.

Inttegro decodes API responses into this struct. Required fields are always present; optional fields are nil when they do not apply or were not returned. Follow the linked types in t/0 for nested domain values.

Cross-resource values shared by more than one Inttegro domain API. These types describe common ownership or supply relationships without assigning them to an unrelated resource namespace.

Summary

Types

t()

The decoded resource supply value.

Functions

Builds a Inttegro.Shared.ResourceSupply and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.Shared.ResourceSupply{
  attempt_id: String.t() | nil,
  by: String.t(),
  channel: String.t() | nil,
  resource_id: String.t() | nil,
  resource_type: String.t() | nil,
  supplied_at: String.t()
}

The decoded resource supply value.

Functions

new!(attrs \\ %{})

@spec new!(map() | keyword()) :: t()

Builds a Inttegro.Shared.ResourceSupply and raises KeyError when a required field is missing.