All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.konduto.sdk.models.KondutoBureauQuery Maven / Gradle / Ivy

Go to download

Easily integrate with Konduto (https://konduto.com), a fraud prevention service.

There is a newer version: 2.17.4
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy