Inttegro.Payments.Payment (inttegro v0.1.1)

Copy Markdown View Source

Typed Inttegro domain value.

Summary

Types

t()

@type t() :: %Inttegro.Payments.Payment{
  amount: Inttegro.Money.Amount.t(),
  balance_transaction:
    Inttegro.BalanceTransactions.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.Payments.PaymentAttempt.t() | nil,
  next_action: Inttegro.Payments.PaymentNextAction.t() | nil,
  paid_at: String.t() | nil,
  paid_offline: boolean() | nil,
  payment_method: Inttegro.PaymentMethods.PaymentMethodSnapshot.t() | nil,
  payment_method_types: [String.t()] | nil,
  payout_configuration: Inttegro.Payments.PaymentPayoutConfiguration.t() | nil,
  statement_descriptor: String.t(),
  status: Inttegro.Payments.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()