Skip to content

Commit d1f8791

Browse files
committed
Add sim_swap event type
1 parent 9c27c5d commit d1f8791

File tree

3 files changed

+10
-1
lines changed

3 files changed

+10
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
version 2.8.0 of this gem.
88
* Added `/event/type` values `:credit_application` and `:fund_transfer` to
99
`Minfraud::Components::Event`.
10+
* Added the `/event/type` value `:sim_swap` to
11+
`Minfraud::Components::Event`.
1012
* Added the input `/event/party`. This is the party submitting the
1113
transaction. You may provide this using the `party` attribute on
1214
`Minfraud::Components::Event`.

lib/minfraud/components/event.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Event < Base
5050
# +:account_creation+, +:account_login+, +:credit_application+,
5151
# +:email_change+, +:fund_transfer+, +:password_reset+,
5252
# +:payout_change+, +:purchase+, +:recurring_purchase+, +:referral+,
53-
# or +:survey+.
53+
# +:sim_swap+, or +:survey+.
5454
#
5555
# @!attribute type
5656
#
@@ -67,6 +67,7 @@ class Event < Base
6767
purchase
6868
recurring_purchase
6969
referral
70+
sim_swap
7071
survey
7172
]
7273

spec/components/event_spec.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,12 @@
5252
)
5353
end
5454

55+
it 'accepts sim_swap as a valid type' do
56+
described_class.new(
57+
type: :sim_swap,
58+
)
59+
end
60+
5561
it 'accepts agent as a valid party' do
5662
described_class.new(
5763
party: :agent,

0 commit comments

Comments
 (0)