com.maxmind.minfraud.response.InsightsResponse Maven / Gradle / Ivy
package com.maxmind.minfraud.response;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.UUID;
/**
* This class provides a model for the minFraud Insights response.
*/
public class InsightsResponse extends ScoreResponse {
private final IpAddress ipAddress;
private final CreditCard creditCard;
private final Device device;
private final Email email;
private final ShippingAddress shippingAddress;
private final BillingAddress billingAddress;
public InsightsResponse(
@JsonProperty("billing_address") BillingAddress billingAddress,
@JsonProperty("credit_card") CreditCard creditCard,
@JsonProperty("device") Device device,
@JsonProperty("disposition") Disposition disposition,
@JsonProperty("email") Email email,
@JsonProperty("funds_remaining") Double fundsRemaining,
@JsonProperty("id") UUID id,
@JsonProperty("ip_address") IpAddress ipAddress,
@JsonProperty("queries_remaining") Integer queriesRemaining,
@JsonProperty("risk_score") Double riskScore,
@JsonProperty("shipping_address") ShippingAddress shippingAddress,
@JsonProperty("warnings") List warnings
) {
super(disposition, fundsRemaining, id, null, queriesRemaining, riskScore, warnings);
this.billingAddress = billingAddress == null ? new BillingAddress() : billingAddress;
this.creditCard = creditCard == null ? new CreditCard() : creditCard;
this.device = device == null ? new Device() : device;
this.email = email == null ? new Email() : email;
this.ipAddress = ipAddress == null ? new IpAddress() : ipAddress;
this.shippingAddress = shippingAddress == null ? new ShippingAddress() : shippingAddress;
}
/**
* @return The {@code IpAddress} model object.
*/
@JsonProperty("ip_address")
public IpAddress getIpAddress() {
return ipAddress;
}
/**
* @return The {@code CreditCard} model object.
*/
@JsonProperty("credit_card")
public CreditCard getCreditCard() {
return creditCard;
}
/**
* @return The {@code Device} model object.
*/
public Device getDevice() {
return device;
}
/**
* @return The {@code Email} model object.
*/
public Email getEmail() {
return email;
}
/**
* @return The {@code ShippingAddress} model object.
*/
@JsonProperty("shipping_address")
public ShippingAddress getShippingAddress() {
return shippingAddress;
}
/**
* @return The {@code BillingAddress} model object.
*/
@JsonProperty("billing_address")
public BillingAddress getBillingAddress() {
return billingAddress;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy