Inttegro.Products.Updated (inttegro v0.2.0)

Copy Markdown View Source

Represents Updated data in the Products 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.

Manages products and the prices, media, and attributes used to sell them.

Products are reusable catalog records. Publishing controls availability to public purchasing surfaces; archiving retires a product without rewriting historical orders that reference it.

Summary

Types

t()

The decoded updated value.

Functions

Builds a Inttegro.Products.Updated and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.Products.Updated{
  about: String.t() | nil,
  category: String.t() | nil,
  created_at: String.t(),
  custom_data: %{optional(String.t()) => String.t()} | nil,
  description: String.t() | nil,
  dimensions: Inttegro.Products.Dimensions.t() | nil,
  id: String.t(),
  name: String.t(),
  prices: [Inttegro.Products.PriceSummary.t()] | nil,
  reference: String.t() | nil,
  tax_code: String.t() | nil,
  type: Inttegro.Products.Type.t(),
  unit_dim: String.t() | nil,
  updated_at: String.t() | nil
}

The decoded updated value.

Functions

new!(attrs \\ %{})

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

Builds a Inttegro.Products.Updated and raises KeyError when a required field is missing.