Inttegro.Invoices.Settings (inttegro v0.2.0)

Copy Markdown View Source

Represents Settings 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 settings value.

Functions

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

Types

t()

@type t() :: %Inttegro.Invoices.Settings{
  custom_data: %{optional(String.t()) => String.t()} | nil,
  footer: String.t() | nil,
  memo: String.t() | nil,
  number: String.t() | nil
}

The decoded settings value.

Functions

new!(attrs \\ %{})

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

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