Lithic.Types.Payment (Lithic v1.0.0)

Copy Markdown View Source

Type definitions for Lithic Payment (ACH) objects.

Fields

  • "token" — unique identifier
  • "financial_account_token" — Lithic financial account
  • "external_bank_account_token" — counterparty bank account
  • "amount" — integer, smallest unit
  • "currency" — ISO 4217 code
  • "direction""CREDIT", "DEBIT"
  • "method""ACH_NEXT_DAY", "ACH_SAME_DAY"
  • "method_attributes" — map with "sec_code" etc.
  • "type""PAYMENT", "COLLECTION"
  • "status""DECLINED", "PENDING", "RETURNED", "SETTLED", "VOIDED"
  • "result""APPROVED", "DECLINED"
  • "source""CUSTOMER", "LITHIC"
  • "created" — RFC 3339 timestamp
  • "updated" — RFC 3339 timestamp

Summary

Types

create_params()

@type create_params() :: %{
  :financial_account_token => String.t(),
  :external_bank_account_token => String.t(),
  :amount => pos_integer(),
  :direction => String.t(),
  :method => String.t(),
  :method_attributes => map(),
  :type => String.t(),
  optional(:token) => String.t(),
  optional(:memo) => String.t(),
  optional(:user_defined_id) => String.t()
}

t()

@type t() :: %{required(String.t()) => term()}