Inttegro.PurchaseIntents.UpdateRequestQuantity (inttegro v0.2.0)

Copy Markdown View Source

Parameters for Update Request Quantity 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 update request quantity request.

Functions

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

Types

t()

@type t() :: %Inttegro.PurchaseIntents.UpdateRequestQuantity{
  max: integer() | nil,
  min: integer()
}

A validated update request quantity request.

Functions

new!(attrs \\ %{})

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

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