Inttegro.PurchaseIntents.PurchaseIntentVariant (inttegro v0.1.1)

Copy Markdown View Source

Typed Inttegro domain value.

Summary

Types

t()

@type t() :: %Inttegro.PurchaseIntents.PurchaseIntentVariant{
  active: boolean(),
  position: integer() | nil,
  price: Inttegro.PurchaseIntents.PurchaseIntentPrice.t() | nil,
  product: Inttegro.PurchaseIntents.PurchaseIntentProduct.t() | nil,
  product_id: String.t(),
  variant_values: %{optional(String.t()) => String.t()}
}

Functions

from_map(map)

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

new!(attrs \\ %{})

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

to_map(value)

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