Inttegro.Invoices.Order (inttegro v0.2.0)

Copy Markdown View Source

Represents Order data in the Invoices 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.

Invoice, receipt, document-format, and document-delivery values attached to orders. Document availability and delivery attempts are modeled separately so integrations can distinguish generation from successful recipient delivery.

Summary

Types

t()

The decoded order value.

Functions

Builds a Inttegro.Invoices.Order and raises KeyError when a required field is missing.

Types

t()

@type t() :: %Inttegro.Invoices.Order{
  format: Inttegro.Invoices.OrderFormat.t() | nil,
  number: String.t() | nil
}

The decoded order value.

Functions

new!(attrs \\ %{})

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

Builds a Inttegro.Invoices.Order and raises KeyError when a required field is missing.