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

Copy Markdown View Source

Response payload for POST /v1/enrich-transaction/.

Every enrichment feature (merchant_location, subscriptions, co2_footprint, fraud, contact, payment_processor) follows the same enabled? shape: Triple may not have a confident answer for every transaction (e.g. online purchases never carry a merchant_location), so each nested struct carries its own enabled flag rather than the whole field simply being absent.

Summary

Types

t()

@type t() :: %Triple.Types.Enrich.V1.Response{
  categories: [Triple.Types.Enrich.V1.Response.Category.t()],
  co2_footprint: Triple.Types.Enrich.V1.Response.CO2Footprint.t() | nil,
  contact: Triple.Types.Enrich.V1.Response.Contact.t() | nil,
  fraud: Triple.Types.Enrich.V1.Response.Fraud.t() | nil,
  merchant_location: Triple.Types.Enrich.V1.Response.MerchantLocation.t() | nil,
  payment_processor: Triple.Types.Enrich.V1.Response.PaymentProcessor.t() | nil,
  subscriptions: Triple.Types.Enrich.V1.Response.Subscriptions.t() | nil,
  transaction_id: String.t() | nil,
  updated: String.t() | nil,
  visual_enrichments: Triple.Types.Enrich.V1.Response.VisualEnrichment.t() | nil
}