Siftsciex v0.3.1 Siftsciex.Event.Payload.Location View Source

A location for a Sift Science Event

Link to this section Summary

Functions

Creates a new Siftsciex.Event.Payload.Location.t/0 struct for use in a Sift Science Event

Link to this section Types

Link to this type attribute() View Source
attribute() :: :city | :region | :country | :zipcode
Link to this type data() View Source
data() :: %{optional(attribute()) => String.t()}
Link to this type t() View Source
t() :: %Siftsciex.Event.Payload.Location{
  "$city": Siftsciex.Event.Payload.payload_string(),
  "$country": Siftsciex.Event.Payload.payload_string(),
  "$region": Siftsciex.Event.Payload.payload_string(),
  "$zipcode": Siftsciex.Event.Payload.payload_string()
}

Link to this section Functions

Creates a new Siftsciex.Event.Payload.Location.t/0 struct for use in a Sift Science Event

Parameters

Examples

iex> Location.new(%{city: "Paris", country: "France"})
%Location{"$city": "Paris", "$country": "France"}