Inttegro.Payment (inttegro v0.1.0)

Copy Markdown View Source

Typed Inttegro domain value.

Summary

Types

t()

@type t() :: %Inttegro.Payment{
  amount: Inttegro.Amount.t(),
  balance_transaction: Inttegro.BalanceTransaction.t() | nil,
  canceled_at: String.t() | nil,
  due_at: String.t() | nil,
  executed_at: String.t() | nil,
  expired_at: String.t() | nil,
  failed_at: String.t() | nil,
  id: String.t(),
  initiated_at: String.t(),
  latest_attempt: Inttegro.PaymentAttempt.t() | nil,
  next_action: Inttegro.PaymentNextAction.t() | nil,
  paid_at: String.t() | nil,
  paid_offline: boolean() | nil,
  payment_method: Inttegro.PaymentMethodSnapshot.t() | nil,
  payment_method_types: [String.t()] | nil,
  payout_configuration: Inttegro.PaymentPayoutConfiguration.t() | nil,
  statement_descriptor: String.t(),
  status: Inttegro.PaymentStatus.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()