Class Event.Builder

  • Enclosing class:
    Event

    public static final class Event.Builder
    extends Object
    Builder creates instances of Event from values set by the builder's methods.
    • Constructor Detail

      • Builder

        public Builder()
    • 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.