Inttegro.Products.DimensionsInputCustom (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Dimensions Input Custom 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 dimensions input custom request.

Functions

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

Types

t()

@type t() :: %Inttegro.Products.DimensionsInputCustom{
  details: %{optional(String.t()) => String.t()} | nil,
  size: number() | nil,
  size_unit: String.t() | nil
}

A validated dimensions input custom request.

Functions

new!(attrs \\ %{})

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

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