1212 * This class represents the minFraud Score response.
1313 */
1414public class ScoreResponse extends AbstractModel {
15- protected final Integer creditsRemaining ;
15+ protected final Double fundsRemaining ;
1616 protected final UUID id ;
17+ protected final Integer queriesRemaining ;
1718 protected final Double riskScore ;
1819 protected final List <Warning > warnings ;
1920 private final ScoreIpAddress ipAddress ;
2021
2122 public ScoreResponse (
22- @ JsonProperty ("credits_remaining " ) Integer creditsRemaining ,
23+ @ JsonProperty ("funds_remaining " ) Double fundsRemaining ,
2324 @ JsonProperty ("id" ) UUID id ,
2425 @ JsonProperty ("ip_address" ) ScoreIpAddress ipAddress ,
26+ @ JsonProperty ("queries_remaining" ) Integer queriesRemaining ,
2527 @ JsonProperty ("risk_score" ) Double riskScore ,
2628 @ JsonProperty ("warnings" ) List <Warning > warnings
2729 ) {
28- this .creditsRemaining = creditsRemaining ;
30+ this .fundsRemaining = fundsRemaining ;
2931 this .id = id ;
3032 this .ipAddress = ipAddress == null ? new ScoreIpAddress () : ipAddress ;
33+ this .queriesRemaining = queriesRemaining ;
3134 this .riskScore = riskScore ;
3235 this .warnings = Collections .unmodifiableList (warnings == null ? new ArrayList <Warning >() : warnings );
3336 }
3437
3538 /**
36- * @return The approximate number of service credits remaining on your
37- * account.
39+ * @return The approximate US dollar value of the funds remaining on your
40+ * MaxMind account.
3841 */
39- @ JsonProperty ("credits_remaining " )
40- public final Integer getCreditsRemaining () {
41- return creditsRemaining ;
42+ @ JsonProperty ("funds_remaining " )
43+ public final Double getFundsRemaining () {
44+ return fundsRemaining ;
4245 }
4346
4447 /**
@@ -56,6 +59,15 @@ public IpAddressInterface getIpAddress() {
5659 return ipAddress ;
5760 }
5861
62+ /**
63+ * @return The approximate number of queries remaining for this service
64+ * before your account runs out of funds.
65+ */
66+ @ JsonProperty ("queries_remaining" )
67+ public final Integer getQueriesRemaining () {
68+ return queriesRemaining ;
69+ }
70+
5971 /**
6072 * @return This returns the risk score, from 0.01 to 99. A higher score
6173 * indicates a higher risk of fraud. For example, a score of 20 indicates a
0 commit comments