package com.maxmind.minfraud.response;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * This class contains minFraud response data related to the email address.
 */
public final class Email {
    private final Boolean isFree;
    private final Boolean isHighRisk;

    public Email(
            @JsonProperty("is_free") Boolean isFree,
            @JsonProperty("is_high_risk") Boolean isHighRisk
    ) {
        this.isFree = isFree;
        this.isHighRisk = isHighRisk;
    }

    public Email() {
        this(null, null);
    }

    /**
     * @return True if the email address is for a free email service provider.
     */
    public Boolean isFree() {
        return isFree;
    }

    /**
     * @return True if the email address is associated with fraud.
     */
    public Boolean isHighRisk() {
        return isHighRisk;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder("Email{");
        sb.append("is_free=").append(this.isFree);
        sb.append(", is_high_risk=").append(this.isHighRisk);
        sb.append('}');
        return sb.toString();
    }
}

@@ -628,32 +628,61 @@
 ovider.%0A     */%0A
+    @JsonProperty(%22is_free%22)%0A
     public Boole
@@ -804,24 +804,58 @@
 ud.%0A     */%0A
+    @JsonProperty(%22is_high_risk%22)%0A
     public B

Add JsonProperty annotations for response.Email