1- # MaxMind minFraud Score and Insights Java API
1+ # MaxMind minFraud Score, Insights, and Factors Java API
22
33## Beta Note ##
44
55This is a beta release. The API may change before the first production
66release.
77
8- You may find information on the changes in minFraud Score and minFraud
9- Insights in our [ What's New
8+ You may find information on the changes in minFraud Score, Insights, and Factors
9+ in our [ What's New
1010documentation] ( https://dev.maxmind.com/minfraud/whats-new-in-minfraud-score-and-minfraud-insights/ ) .
1111
1212## Description ##
1313
14- This package provides an API for the [ MaxMind minFraud Score and Insights
15- web services] ( http://dev.maxmind.com/minfraud-score-and-insights-api-documentation ) .
14+ This package provides an API for the [ MaxMind minFraud Score, Insights, and
15+ Factors web services] ( http://dev.maxmind.com/minfraud-score-and-insights-api-documentation ) .
1616
1717## Installation ##
1818
@@ -57,13 +57,19 @@ After creating the transaction object, send a Score request by calling the
5757` score ` method:
5858
5959``` java
60- Score score = client. score(transaction);
60+ ScoreResponse score = client. score(transaction);
6161```
6262
63- or an Insights request by calling ` insights ` method:
63+ an Insights request by calling ` insights ` method:
6464
6565``` java
66- Insights score = client. insights(transaction);
66+ InsightsResponse insights = client. insights(transaction);
67+ ```
68+
69+ an Factors request by calling ` factors ` method:
70+
71+ ``` java
72+ FactorsResponse factors = client. factors(transaction);
6773```
6874
6975If the request succeeds, a model object will be returned for the endpoint.
@@ -81,20 +87,18 @@ Runtime exceptions:
8187
8288Checked exceptions:
8389
84- * ` AuthenticationException ` - This will be thrown by ` score(transaction) ` or
85- ` insights(transaction) ` on ` WebServiceClient ` when the server is unable to
90+ * ` AuthenticationException ` - This will be thrown when the server is unable to
8691 authenticate the request, e.g., if the license key or user ID is invalid.
87- * ` InsufficientFundsException ` - This will be thrown by ` score(transaction) ` or
88- ` insights(transaction) ` on ` WebServiceClient ` when your account is out of funds.
89- * ` InvalidRequestException ` - This will be thrown by ` score(transaction) ` or
90- ` insights(transaction) ` on ` WebServiceClient ` when the server rejects the
92+ * ` InsufficientFundsException ` - This will be thrown when your account is out of
93+ funds.
94+ * ` InvalidRequestException ` - This will be thrown when the server rejects the
9195 request for another reason such as invalid JSON in the POST.
92- * ` MinFraudException ` - This will be thrown by ` score(transaction) ` or
93- ` insights(transaction) ` on ` WebServiceClient ` when the server returns an
96+ * ` PermissionRequiredException ` - This will be thrown when permission is
97+ required to use the service.
98+ * ` MinFraudException ` - This will be thrown when the server returns an
9499 unexpected response. This also serves as the base class for the above
95100 checked exceptions.
96- * ` HttpException ` -This will be thrown by ` score(transaction) ` or
97- ` insights(transaction) ` on ` WebServiceClient ` when an unexpected HTTP error
101+ * ` HttpException ` -This will be thrown when an unexpected HTTP error
98102 occurs such as an internal server error or other unexpected status code.
99103
100104## Example
@@ -220,6 +224,6 @@ This API uses [Semantic Versioning](http://semver.org/).
220224
221225## Copyright and License ##
222226
223- This software is Copyright (c) 2016 by MaxMind, Inc.
227+ This software is Copyright (c) 2015- 2016 by MaxMind, Inc.
224228
225229This is free software, licensed under the Apache License, Version 2.0.
0 commit comments