Triple.Types.Enrich.V1.Response.MerchantLocation (triple v1.0.0)

Copy Markdown View Source

Location enrichment. Online (ECOMMERCE) transactions never carry a location, so enabled?/1 will be false for those.

Summary

Functions

Whether location enrichment was available for this transaction.

Types

t()

@type t() :: %Triple.Types.Enrich.V1.Response.MerchantLocation{
  address: Triple.Types.Enrich.V1.Response.Address.t() | nil,
  coordinates: Triple.Types.Enrich.V1.Response.Coordinates.t() | nil,
  enabled: boolean(),
  location_id: String.t() | nil
}

Functions

enabled?(merchant_location)

@spec enabled?(t()) :: boolean()

Whether location enrichment was available for this transaction.