@@ -9,6 +9,18 @@ class Event < Base
99 include ::Minfraud ::Enum
1010 include Minfraud ::Validates
1111
12+ # The party submitting the transaction. This must be one of +:agent+ or
13+ # +:customer+.
14+ #
15+ # @!attribute party
16+ #
17+ # @return [Symbol, nil]
18+ enum_accessor :party ,
19+ %i[
20+ agent
21+ customer
22+ ]
23+
1224 # Your internal ID for the transaction. MaxMind can use this to locate a
1325 # specific transaction in logs, and it will also show up in email alerts
1426 # and notifications from MaxMind to you. No specific format is required.
@@ -35,9 +47,10 @@ class Event < Base
3547 attr_accessor :time
3648
3749 # The type of event being scored. This must be one of
38- # +:account_creation+, +:account_login+, +:email_change+,
39- # +:password_reset+, +:payout_change+, +:purchase+,
40- # +:recurring_purchase+, +:referral+, or +:survey+.
50+ # +:account_creation+, +:account_login+, +:credit_application+,
51+ # +:email_change+, +:fund_transfer+, +:password_reset+,
52+ # +:payout_change+, +:purchase+, +:recurring_purchase+, +:referral+,
53+ # or +:survey+.
4154 #
4255 # @!attribute type
4356 #
@@ -46,7 +59,9 @@ class Event < Base
4659 %i[
4760 account_creation
4861 account_login
62+ credit_application
4963 email_change
64+ fund_transfer
5065 password_reset
5166 payout_change
5267 purchase
@@ -58,6 +73,7 @@ class Event < Base
5873 # @param params [Hash] Hash of parameters. Each key/value should
5974 # correspond to one of the available attributes.
6075 def initialize ( params = { } )
76+ self . party = params [ :party ]
6177 @transaction_id = params [ :transaction_id ]
6278 @shop_id = params [ :shop_id ]
6379 @time = params [ :time ]
0 commit comments