Inttegro.Prices.PageRequest (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Page Request in the Prices API.

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

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

A validated page request request.

Functions

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

Types

t()

@type t() :: %Inttegro.Prices.PageRequest{
  page_number: integer() | nil,
  page_size: integer() | nil,
  product_id: String.t() | nil
}

A validated page request request.

Functions

new!(attrs \\ %{})

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

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