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

com.konduto.sdk.models.KondutoVehicleOwner 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.konduto.sdk.annotations.Required;

/**
 * KondutoVehicleOwner model, a model associated with KondutoVehicle, required by default.
 *
 * @see Konduto API Spec
 */
public class KondutoVehicleOwner extends KondutoModel {
    @Required
    private String taxId;

    private String name;

    /**
     * Fluent constructor
     * @param attributeName the attribute name (e.g totalAmount)
     * @param attributeValue the attribute value (e.g 123.2)
     * @return a new instance
     */
    @Override
    public KondutoVehicleOwner with(String attributeName, Object attributeValue) {
        return (KondutoVehicleOwner) super.with(attributeName, attributeValue);
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null || getClass() != obj.getClass()) return false;

        KondutoVehicleOwner anotherVehicleOwner = (KondutoVehicleOwner) obj;

        return (anotherVehicleOwner.taxId != null && taxId != null) && anotherVehicleOwner.taxId.equals(taxId);
    }

    public String getTaxId() {
        return taxId;
    }

    public void setTaxId(String taxId) {
        this.taxId = taxId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy