Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/maxmind/minfraud/request/Event.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ public enum Type {
* A referral was made
*/
REFERRAL,
/**
* A SIM card was swapped
*/
SIM_SWAP,
/**
* A survey was completed
*/
Expand Down
3 changes: 3 additions & 0 deletions src/test/java/com/maxmind/minfraud/request/EventTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
Loading