Paysafe.Types.PaymentHandle (Paysafe v1.0.0)

Copy Markdown View Source

Represents a Paysafe Payment Handle response.

Summary

Types

action()

@type action() :: :none | :redirect

execution_mode()

@type execution_mode() :: :synchronous | :asynchronous

status()

@type status() ::
  :initiated
  | :payable
  | :processing
  | :completed
  | :expired
  | :failed
  | :cancelled
  | :error

t()

@type t() :: %Paysafe.Types.PaymentHandle{
  action: action() | nil,
  amount: pos_integer(),
  currency_code: String.t(),
  execution_mode: execution_mode() | nil,
  id: String.t() | nil,
  links: [map()] | [],
  merchant_ref_num: String.t(),
  payment_handle_token: String.t() | nil,
  payment_type: String.t(),
  raw: map(),
  return_links: [map()] | [],
  status: status(),
  time_to_live_seconds: non_neg_integer() | nil,
  transaction_type: transaction_type(),
  usage: usage()
}

transaction_type()

@type transaction_type() ::
  :payment | :standalone_credit | :original_credit | :verification

usage()

@type usage() :: :single_use | :multi_use