Inttegro.Products.Shipment (inttegro v0.3.0)

Copy Markdown View Source

Represents Shipment 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 shipment value.

Functions

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

Types

t()

@type t() :: %Inttegro.Products.Shipment{
  delivery: Inttegro.Products.Delivery.t() | nil,
  download: Inttegro.Products.Download.t() | nil,
  render: Inttegro.Products.Render.t() | nil,
  service: Inttegro.Products.Service.t() | nil,
  stream: Inttegro.Products.Stream.t() | nil,
  type: Inttegro.Products.ShipmentType.t()
}

The decoded shipment value.

Functions

new!(attrs \\ %{})

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

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