diff --git a/CHANGELOG.md b/CHANGELOG.md index ae136643..b2187fec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -51,7 +51,8 @@ CHANGELOG For `InvalidRequestException`, use `code()`, `httpStatus()`, and `uri()` instead of `getCode()`, `getHttpStatus()`, and `getUri()`. No deprecated helper methods were added. -* Added `CREDIT_APPLICATION` and `FUND_TRANSFER` to the `Event.Type` enum. +* Added `CREDIT_APPLICATION`, `FUND_TRANSFER`, and `SIM_SWAP` to the + `Event.Type` enum. * Added the input `/event/party`. This is the party submitting the transaction. You may provide this using the `party` method on `Event.Builder`. diff --git a/src/main/java/com/maxmind/minfraud/request/Event.java b/src/main/java/com/maxmind/minfraud/request/Event.java index faa93e98..1ece32fd 100644 --- a/src/main/java/com/maxmind/minfraud/request/Event.java +++ b/src/main/java/com/maxmind/minfraud/request/Event.java @@ -194,6 +194,10 @@ public enum Type { * A referral was made */ REFERRAL, + /** + * A SIM card was swapped + */ + SIM_SWAP, /** * A survey was completed */ diff --git a/src/test/java/com/maxmind/minfraud/request/EventTest.java b/src/test/java/com/maxmind/minfraud/request/EventTest.java index da2211cf..bd305acb 100644 --- a/src/test/java/com/maxmind/minfraud/request/EventTest.java +++ b/src/test/java/com/maxmind/minfraud/request/EventTest.java @@ -59,5 +59,8 @@ public void testType() { event = new Builder().type(Type.FUND_TRANSFER).build(); assertEquals(Type.FUND_TRANSFER, event.type()); + + event = new Builder().type(Type.SIM_SWAP).build(); + assertEquals(Type.SIM_SWAP, event.type()); } }