Inttegro.Prices.Page (inttegro v0.2.0)

Copy Markdown View Source

Represents Page data in the Prices 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 reusable catalog prices.

Prices express currency and integer minor-unit amounts and can be attached to products. Use a new price when commercial terms materially change so existing orders retain their original price history.

Summary

Types

t()

The decoded page value.

Functions

Builds a Inttegro.Prices.Page and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.Prices.Page{
  number: integer() | nil,
  prices: [Inttegro.Prices.Catalog.t()] | nil,
  size: integer() | nil
}

The decoded page value.

Functions

new!(attrs \\ %{})

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

Builds a Inttegro.Prices.Page and raises KeyError when a required field is missing.