Current section

Files

Jump to
merchant lib merchant model apple_pay.ex
Raw

lib/merchant/model/apple_pay.ex

defmodule Merchant.ApplePay do
@moduledoc """
Provides struct and type for a ApplePay
"""
use TypedStruct
alias Merchant.CardChecksV2
typedstruct do
field(:card_bin, String.t() | nil)
field(:card_brand, String.t() | nil)
field(:card_country_code, String.t() | nil)
field(:card_expiry, String.t() | nil)
field(:card_last_four, String.t() | nil)
field(:cardholder_name, String.t() | nil)
field(:checks, CardChecksV2.t() | nil)
field(:fingerprint, String.t() | nil)
field(:funding, String.t() | nil)
field(:id, String.t() | nil)
field(:type, String.t() | nil)
end
end