Inttegro.Orders.OrderProductLineItemProduct (inttegro v0.1.1)

Copy Markdown View Source

Typed Inttegro domain value.

Summary

Types

t()

@type t() :: %Inttegro.Orders.OrderProductLineItemProduct{
  about: String.t() | nil,
  category: String.t() | nil,
  custom_data: %{optional(String.t()) => String.t()} | nil,
  id: String.t(),
  name: String.t(),
  price: Inttegro.Prices.Price.t(),
  price_id: String.t() | nil,
  product_id: String.t() | nil,
  quantity: integer(),
  reference: String.t() | nil,
  tax_code: String.t() | nil,
  type: String.t() | nil
}

Functions

from_map(map)

@spec from_map(map()) :: t()

new!(attrs \\ %{})

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

to_map(value)

@spec to_map(t()) :: map()