|
| 1 | +package com.maxmind.minfraud.response; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 4 | +import com.maxmind.minfraud.AbstractModel; |
| 5 | + |
| 6 | +/** |
| 7 | + * This class represents a risk score reason for the multiplier. |
| 8 | + */ |
| 9 | +public final class Reason extends AbstractModel { |
| 10 | + private final String code; |
| 11 | + private final String reason; |
| 12 | + |
| 13 | + /** |
| 14 | + * Constructor for {@code Reason}. |
| 15 | + * |
| 16 | + * @param code The code. |
| 17 | + * @param reason The reason. |
| 18 | + */ |
| 19 | + public Reason( |
| 20 | + @JsonProperty("code") String code, |
| 21 | + @JsonProperty("reason") String reason |
| 22 | + ) { |
| 23 | + this.code = code; |
| 24 | + this.reason = reason; |
| 25 | + } |
| 26 | + |
| 27 | + /** |
| 28 | + * This field provides a machine-readable code identifying the reason. |
| 29 | + * Although more <a href="https://dev.maxmind.com/minfraud/api-documentation/responses/#schema--response--risk-score-reason--multiplier-reason">codes</a> |
| 30 | + * may be added in the future, the current codes are: |
| 31 | + * |
| 32 | + * <ul> |
| 33 | + * <li>BROWSER_LANGUAGE - Riskiness of the browser user-agent |
| 34 | + * and language associated with the request.</li> |
| 35 | + * <li>BUSINESS_ACTIVITY - Riskiness of business activity associated with the request.</li> |
| 36 | + * <li>COUNTRY - Riskiness of the country associated with the request.</li> |
| 37 | + * <li>CUSTOMER_ID - Riskiness of a customer's activity.</li> |
| 38 | + * <li>EMAIL_DOMAIN - Riskiness of email domain.</li> |
| 39 | + * <li>EMAIL_DOMAIN_NEW - Riskiness of newly-sighted email domain.</li> |
| 40 | + * <li>EMAIL_ADDRESS_NEW - Riskiness of newly-sighted email address.</li> |
| 41 | + * <li>EMAIL_LOCAL_PART - Riskiness of the local part of the email address.</li> |
| 42 | + * <li>EMAIL_VELOCITY - Velocity on email - many requests on same email |
| 43 | + * over short period of time.</li> |
| 44 | + * <li>ISSUER_ID_NUMBER_COUNTRY_MISMATCH - Riskiness of the country mismatch between IP, |
| 45 | + * billing, shipping and IIN country.</li> |
| 46 | + * <li>ISSUER_ID_NUMBER_ON_SHOP_ID - Risk of Issuer ID Number for the shop ID.</li> |
| 47 | + * <li>ISSUER_ID_NUMBER_LAST_DIGITS_ACTIVITY - Riskiness of many recent requests |
| 48 | + * and previous high-risk requests on the IIN and last digits of the credit card.</li> |
| 49 | + * <li>ISSUER_ID_NUMBER_SHOP_ID_VELOCITY - Risk of recent Issuer ID Number activity |
| 50 | + * for the shop ID.</li> |
| 51 | + * <li>INTRACOUNTRY_DISTANCE - Risk of distance between IP, billing, |
| 52 | + * and shipping location.</li> |
| 53 | + * <li>ANONYMOUS_IP - Risk due to IP being an Anonymous IP.</li> |
| 54 | + * <li>IP_BILLING_POSTAL_VELOCITY - Velocity of distinct billing postal code |
| 55 | + * on IP address.</li> |
| 56 | + * <li>IP_EMAIL_VELOCITY - Velocity of distinct email address on IP address.</li> |
| 57 | + * <li>IP_HIGH_RISK_DEVICE - High-risk device sighted on IP address.</li> |
| 58 | + * <li>IP_ISSUER_ID_NUMBER_VELOCITY - Velocity of distinct IIN on IP address.</li> |
| 59 | + * <li>IP_ACTIVITY - Riskiness of IP based on minFraud network activity.</li> |
| 60 | + * <li>LANGUAGE - Riskiness of browser language.</li> |
| 61 | + * <li>MAX_RECENT_EMAIL - Riskiness of email address based on |
| 62 | + * past minFraud risk scores on email.</li> |
| 63 | + * <li>MAX_RECENT_PHONE - Riskiness of phone number based on |
| 64 | + * past minFraud risk scores on phone.</li> |
| 65 | + * <li>MAX_RECENT_SHIP - Riskiness of email address based on |
| 66 | + * past minFraud risk scores on ship address.</li> |
| 67 | + * <li>MULTIPLE_CUSTOMER_ID_ON_EMAIL - Riskiness of email address |
| 68 | + * having many customer IDs.</li> |
| 69 | + * <li>ORDER_AMOUNT - Riskiness of the order amount.</li> |
| 70 | + * <li>ORG_DISTANCE_RISK - Risk of ISP and distance between billing address |
| 71 | + * and IP location.</li> |
| 72 | + * <li>PHONE - Riskiness of the phone number or related numbers.</li> |
| 73 | + * <li>CART - Riskiness of shopping cart contents.</li> |
| 74 | + * <li>TIME_OF_DAY - Risk due to local time of day.</li> |
| 75 | + * <li>TRANSACTION_REPORT_EMAIL - Risk due to transaction reports on the email address.</li> |
| 76 | + * <li>TRANSACTION_REPORT_IP - Risk due to transaction reports on the IP address.</li> |
| 77 | + * <li>TRANSACTION_REPORT_PHONE - Risk due to transaction reports on the phone number.</li> |
| 78 | + * <li>TRANSACTION_REPORT_SHIP - Risk due to transaction reports on the shipping address.</li> |
| 79 | + * <li>EMAIL_ACTIVITY - Riskiness of the email address based on minFraud network activity.</li> |
| 80 | + * <li>PHONE_ACTIVITY - Riskiness of the phone number based on minFraud network activity.</li> |
| 81 | + * <li>SHIP_ACTIVITY - Riskiness of ship address based on minFraud network activity.</li> |
| 82 | + * </ul> |
| 83 | + * |
| 84 | + * @return The code. |
| 85 | + */ |
| 86 | + @JsonProperty("code") |
| 87 | + public String getCode() { |
| 88 | + return this.code; |
| 89 | + } |
| 90 | + |
| 91 | + /** |
| 92 | + * @return The human-readable explanation of the reason. The description may change at any time |
| 93 | + * and should not be matched against. |
| 94 | + */ |
| 95 | + @JsonProperty("reason") |
| 96 | + public String getReason() { |
| 97 | + return this.reason; |
| 98 | + } |
| 99 | +} |
0 commit comments