Inttegro.Products.MediaInput (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Media Input in the Products API.

Build this struct with new!/1 and pass it to the corresponding function on Inttegro.Products. Required keys are enforced immediately; optional values left as nil are omitted from the request sent to Inttegro.

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()

A validated media input request.

Functions

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

Types

t()

@type t() :: %Inttegro.Products.MediaInput{
  brand_logo: String.t() | nil,
  demo_video: String.t() | nil,
  downloads: [String.t()] | nil,
  gallery: [String.t()] | nil,
  hero_image: String.t() | nil,
  infographic: String.t() | nil,
  promo_video: String.t() | nil,
  thumbnail: String.t() | nil,
  web_page_url: String.t() | nil
}

A validated media input request.

Functions

new!(attrs \\ %{})

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

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