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

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

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

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

    /**
     * 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 KondutoBankOriginAccount with(String attributeName, Object attributeValue) {
        return (KondutoBankOriginAccount) 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;

        KondutoBankOriginAccount that = (KondutoBankOriginAccount) o;

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

        return true;

    }

    /** Getters/setters */

    public Double getBalance() {return balance;}
    public void setBalance(Double balance) {this.balance = balance;}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy