Inttegro.Refunds.Refund (inttegro v0.1.1)

Copy Markdown View Source

Typed Inttegro domain value.

Summary

Types

t()

@type t() :: %Inttegro.Refunds.Refund{
  canceled_at: String.t() | nil,
  created_at: String.t(),
  custom_data: %{optional(String.t()) => String.t()} | nil,
  failed_at: String.t() | nil,
  id: String.t(),
  line_items: [Inttegro.Orders.RefundLineItem.t()],
  order_id: String.t(),
  processing_at: String.t() | nil,
  reason: Inttegro.Refunds.RefundReason.t(),
  reason_details: String.t() | nil,
  reference: String.t() | nil,
  status: Inttegro.Refunds.RefundStatus.t(),
  succeeded_at: String.t() | nil,
  total: Inttegro.Money.Amount.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()