Inttegro.PurchaseIntents.PageRequest (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Page Request in the PurchaseIntents API.

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

Creates and manages public purchasing opportunities.

A purchase intent describes what may be bought and can produce an order when a buyer accepts it. It is distinct from the resulting order: update or cancel the intent before acceptance, then use the Orders API for payment and fulfillment state.

Summary

Types

t()

A validated page request request.

Functions

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

Types

t()

@type t() :: %Inttegro.PurchaseIntents.PageRequest{
  page_number: integer(),
  page_size: integer()
}

A validated page request request.

Functions

new!(attrs \\ %{})

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

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