Siftsciex v0.3.1 Siftsciex.Score.Response.Label View Source
Represents a label in a Score response (Siftsciex.Score.Response.t/0
) from Sift
Link to this section Summary
Functions
Creates a new Label record from a Sift Science Score response
Link to this section Types
Link to this type
t()
View Source
t() :: %Siftsciex.Score.Response.Label{ description: :empty | String.t(), is_bad: :empty | boolean(), time: :empty | DateTime.t(), type: :empty | Siftsciex.Score.abuse_type() }
Link to this section Functions
Creates a new Label record from a Sift Science Score response
Parameters
label_data
: The data for the label (as a Map.t)
Examples
iex> Label.new(%{payment_abuse: %{is_bad: true, time: 1529011047, description: "Fake card"}})
%Label{type: :payment_abuse, is_bad: true, time: #DateTime<2018-06-14 21:17:27Z>, description: "Fake card"}