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

com.konduto.sdk.models.KondutoBankDestinationAccount 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.Objects;

/**
 * Created by igor.rodrigues (nickname: igor.francesco) 08/06/2022.
 * Konduto Bank destination accounts model.
 *
 * @see Konduto API Spec
 */
public class KondutoBankDestinationAccount extends KondutoBank {
    @SerializedName(value = "amount")
    private Double amount;

    /**
     * Constructors
     */
    public KondutoBankDestinationAccount() {
    }

    /**
     * Fluent constructor implementation
     *
     * @param attributeName  the attribute name (e.g greeting)
     * @param attributeValue the attribute value (e.g "Hello")
     * @return a new instance
     * @see Fluent interface article
     */
    @Override
    public KondutoBankDestinationAccount with(String attributeName, Object attributeValue) {
        return (KondutoBankDestinationAccount) super.with(attributeName, attributeValue);
    }

    /**
     * Equals and hashCode
     */
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        KondutoBankDestinationAccount that = (KondutoBankDestinationAccount) o;

        if (amount != null ? !amount.equals(that.amount) : that.amount != null) return false;

        return true;

    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), getAmount());
    }

    /**
     * Getters/setters
     */

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "KondutoBankDestinationAccount{" +
                "amount=" + amount +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy