We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5f58e0b + c7e74b6 commit 51b01e6Copy full SHA for 51b01e6
5 files changed
CHANGELOG.md
@@ -4,6 +4,12 @@ CHANGELOG
4
1.19.0
5
-------------------
6
7
+* Upgraded the `geoip2` dependency to 2.16.1. This adds mobile country code
8
+ (MCC) and mobile network code (MNC) to minFraud Insights and Factors
9
+ responses. These are available at
10
+ `response.getIpAddress.getTraits.getMobileCountryCode()` and
11
+ `response.getIpAddress.getTraits.getMobileNetworkCode()`. We expect this
12
+ data to be available by late January 2022.
13
* The following payment processors were added to the `Payment.Processor` enum:
14
* `BOACOMPRA`
15
* `BOKU`
pom.xml
@@ -62,7 +62,7 @@
62
<dependency>
63
<groupId>com.maxmind.geoip2</groupId>
64
<artifactId>geoip2</artifactId>
65
- <version>2.15.0</version>
+ <version>2.16.1</version>
66
</dependency>
67
68
<groupId>org.apache.httpcomponents</groupId>
src/test/java/com/maxmind/minfraud/response/IpAddressTest.java
@@ -36,6 +36,8 @@ public void testIpAddress() throws Exception {
36
.put("is_hosting_provider", true)
37
.put("is_public_proxy", true)
38
.put("is_tor_exit_node", true)
39
+ .put("mobile_country_code", "310")
40
+ .put("mobile_network_code", "004")
41
.put("network", "1.2.0.0/16")
42
.end()
43
@@ -51,6 +53,10 @@ public void testIpAddress() throws Exception {
51
53
assertTrue("isHostingProvider", address.getTraits().isHostingProvider());
52
54
assertTrue("isPublicProxy", address.getTraits().isPublicProxy());
55
assertTrue("isTorExitNode", address.getTraits().isTorExitNode());
56
+ assertEquals("mobile country code", "310",
57
+ address.getTraits().getMobileCountryCode());
58
+ assertEquals("mobile network code", "004",
59
+ address.getTraits().getMobileNetworkCode());
60
assertEquals("IP risk reason code", "ANONYMOUS_IP",
61
address.getRiskReasons().get(0).getCode());
assertEquals("IP risk reason", "some reason",
src/test/resources/test-data/factors-response.json
@@ -104,6 +104,8 @@
104
"is_satellite_provider": true,
105
"is_tor_exit_node": true,
106
"isp": "Andrews & Arnold Ltd",
107
+ "mobile_country_code": "310",
108
+ "mobile_network_code": "004",
109
"network": "81.2.69.0/24",
110
"organization": "STONEHOUSE office network",
111
"user_type": "government"
src/test/resources/test-data/insights-response.json
@@ -118,6 +118,8 @@
118
119
120
121
122
123
124
125
0 commit comments