Inttegro.Customers.Customer (inttegro v0.1.1)

Copy Markdown View Source

Typed Inttegro domain value.

Summary

Types

t()

@type t() :: %Inttegro.Customers.Customer{
  balance: %{
    optional(String.t()) => Inttegro.Customers.CustomerBalanceValue.t()
  },
  billing_address: Inttegro.Customers.CustomerAddress.t() | nil,
  created_at: String.t(),
  custom_data: %{optional(String.t()) => String.t()} | nil,
  email_address: String.t() | nil,
  guest: boolean(),
  id: String.t(),
  name: String.t(),
  phone_number: String.t() | nil,
  reference: String.t() | nil,
  shipping_address: Inttegro.Customers.CustomerAddress.t() | nil,
  suffix: String.t() | nil,
  title: String.t() | nil,
  updated_at: 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()