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