com.konduto.sdk.models.KondutoBureauQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Easily integrate with Konduto (https://konduto.com), a fraud prevention service.
package com.konduto.sdk.models;
import com.google.gson.annotations.SerializedName;
import java.util.HashMap;
import java.util.Map;
public class KondutoBureauQuery extends KondutoModel {
@SerializedName("service")
private String kondutoBureauService;
@SerializedName("response")
private Map kondutoBureauResponse;
@Override
public boolean equals(Object obj) {
if(!(obj instanceof KondutoBureauQuery)) { return false; }
KondutoBureauQuery that = (KondutoBureauQuery) obj;
return this.kondutoBureauService == that.kondutoBureauService &&
this.kondutoBureauResponse.equals(that.kondutoBureauResponse);
}
public String getService() {
return kondutoBureauService;
}
public void setService(String kondutoBureauService) {
this.kondutoBureauService = kondutoBureauService;
}
public Map getResponse() {
return kondutoBureauResponse;
}
public void setResponse(Map kondutoBureauResponse) {
this.kondutoBureauResponse = kondutoBureauResponse;
}
/**
* Return the value of a field in a bureau response (e.g.
* email_domain_exists).
*
* @param field what field to look for
* @return the value of that field
*/
public Object getAttribute(String field) {
if(field == null || this.kondutoBureauResponse == null) { return null; }
return this.kondutoBureauResponse.get(field);
}
public void setAttribute(String key, Object value) {
if(this.kondutoBureauResponse == null) {
this.kondutoBureauResponse = new HashMap();
}
this.kondutoBureauResponse.put(key, value);
}
}