Duffel.Schema.Payment (Duffel v0.1.0)

Copy Markdown View Source

A payment made against an order.

Summary

Functions

Decodes a raw payment map into a Duffel.Schema.Payment.

Types

t()

@type t() :: %Duffel.Schema.Payment{
  airline_credit_id: String.t() | nil,
  amount: String.t() | nil,
  created_at: String.t() | nil,
  currency: String.t() | nil,
  failure_reason: String.t() | nil,
  id: String.t() | nil,
  live_mode: boolean() | nil,
  order_id: String.t() | nil,
  status: String.t() | nil,
  type: String.t() | nil
}

Functions

from_map(decoded)

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

Decodes a raw payment map into a Duffel.Schema.Payment.