Skip to content

Commit 7fbad20

Browse files
authored
Merge pull request #558 from maxmind/greg/eng-3230
Add sim_swap event type
2 parents 462b63d + 51a8e84 commit 7fbad20

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ CHANGELOG
5151
For `InvalidRequestException`, use `code()`, `httpStatus()`, and `uri()`
5252
instead of `getCode()`, `getHttpStatus()`, and `getUri()`. No deprecated
5353
helper methods were added.
54-
* Added `CREDIT_APPLICATION` and `FUND_TRANSFER` to the `Event.Type` enum.
54+
* Added `CREDIT_APPLICATION`, `FUND_TRANSFER`, and `SIM_SWAP` to the
55+
`Event.Type` enum.
5556
* Added the input `/event/party`. This is the party submitting the
5657
transaction. You may provide this using the `party` method on
5758
`Event.Builder`.

src/main/java/com/maxmind/minfraud/request/Event.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ public enum Type {
194194
* A referral was made
195195
*/
196196
REFERRAL,
197+
/**
198+
* A SIM card was swapped
199+
*/
200+
SIM_SWAP,
197201
/**
198202
* A survey was completed
199203
*/

src/test/java/com/maxmind/minfraud/request/EventTest.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,8 @@ public void testType() {
5959

6060
event = new Builder().type(Type.FUND_TRANSFER).build();
6161
assertEquals(Type.FUND_TRANSFER, event.type());
62+
63+
event = new Builder().type(Type.SIM_SWAP).build();
64+
assertEquals(Type.SIM_SWAP, event.type());
6265
}
6366
}

0 commit comments

Comments
 (0)