Package com.maxmind.minfraud.request
Class Event.Builder
- java.lang.Object
-
- com.maxmind.minfraud.request.Event.Builder
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event
build()
Event.Builder
shopId(String id)
Event.Builder
time(ZonedDateTime date)
Event.Builder
time(Date date)
Event.Builder
transactionId(String id)
Event.Builder
type(Event.Type type)
-
-
-
Method Detail
-
transactionId
public Event.Builder transactionId(String id)
- Parameters:
id
- Your internal ID for the transaction. We can use this to locate a specific transaction in our logs, and it will also show up in email alerts and notifications from us to you.- Returns:
- The builder object.
-
shopId
public Event.Builder shopId(String id)
- Parameters:
id
- Your internal ID for the shop, affiliate, or merchant this order is coming from. Required for minFraud users who are resellers, payment providers, gateways and affiliate networks.- Returns:
- The builder object.
-
time
public Event.Builder time(Date date)
- Parameters:
date
- The date and time the event occurred.- Returns:
- The builder object.
-
time
public Event.Builder time(ZonedDateTime date)
- Parameters:
date
- The date and time the event occurred.- Returns:
- The builder object.
-
type
public Event.Builder type(Event.Type type)
- Parameters:
type
- The type of event being scored.- Returns:
- The builder object.
-
build
public Event build()
- Returns:
- An instance of
Event
created from the fields set on this builder.
-
-