Synctera.DeviceInfo (Synctera v1.0.0)

Copy Markdown View Source

Synctera expects a Customer-Device-Info header (JSON-encoded) on requests made "on behalf of" an end customer, or for internal batch operations (docs: "Need to Know" -> Customer Device Fingerprinting). customer_id must match the customer/business id referenced elsewhere in the request.

Summary

Functions

Builds the JSON string to send as the Customer-Device-Info header value.

Types

t()

@type t() :: %Synctera.DeviceInfo{
  customer_id: String.t(),
  device_type: String.t() | nil,
  ip_address: String.t(),
  user_agent: String.t() | nil
}

Functions

header_value(info)

@spec header_value(t()) :: String.t()

Builds the JSON string to send as the Customer-Device-Info header value.