Inttegro.Customers.PageRequest (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Page Request in the Customers API.

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

Creates and maintains customer records owned by an Inttegro application.

Customers connect contact information, addresses, orders, and saved payment methods. Use a stable customer ID for repeat relationships and keep application-specific identifiers in custom_data rather than overloading personal fields.

Summary

Types

t()

A validated page request request.

Functions

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

Types

t()

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

A validated page request request.

Functions

new!(attrs \\ %{})

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

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