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

com.konduto.sdk.models.KondutoBank 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.
 * Bank Accounts model.
 *
 * @see Konduto API Spec
 */
public abstract class KondutoBank extends KondutoModel {

    /**
     * Attributes
     * 

* id * key_type (ENUM). * key_value. * holder_name. * holder_tax_id. * bank_code. * bank_name. * bank_branch. * bank_account. * balance. * amount. */ private String id; @SerializedName("key_type") private KondutoBankDocumentType keyType; @SerializedName("key_value") private String keyValue; @SerializedName("holder_name") private String holderName; @SerializedName("holder_tax_id") private String holderTaxId; @SerializedName("bank_code") private String bankCode; @SerializedName("bank_name") private String bankName; @SerializedName("bank_branch") private String bankBranch; @SerializedName("bank_account") private String bankAccount; /** * Constructors */ public KondutoBank() { } @Override public KondutoBank with(String attributeName, Object attributeValue) { return (KondutoBank) super.with(attributeName, attributeValue); } /** * Equals and hashCode */ @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof KondutoBank)) return false; KondutoBank that = (KondutoBank) o; if (id != that.id) return false; if (keyType != null ? !keyType.equals(that.keyType) : that.keyType != null) return false; if (keyValue != null ? !keyValue.equals(that.keyValue) : that.keyValue != null) return false; if (holderName != null ? !holderName.equals(that.holderName) : that.holderName != null) return false; if (holderTaxId != null ? !holderTaxId.equals(that.holderTaxId) : that.holderTaxId != null) return false; if (bankCode != null ? !bankCode.equals(that.bankCode) : that.bankCode != null) return false; if (bankName != null ? !bankName.equals(that.bankName) : that.bankName != null) return false; if (bankBranch != null ? !bankBranch.equals(that.bankBranch) : that.bankBranch != null) return false; if (bankAccount != null ? !bankAccount.equals(that.bankAccount) : that.bankAccount != null) return false; return true; } @Override public int hashCode() { return Objects.hash(getId(), getKeyType(), getKeyValue(), getHolderName(), getHolderTaxId(), getBankCode(), getBankName(), getBankBranch(), getBankAccount()); } /** * Getters/setters */ public String getId() { return id; } public void setId(String id) { this.id = id; } public KondutoBankDocumentType getKeyType() { return keyType; } public void setKeyType(KondutoBankDocumentType keyType) { this.keyType = keyType; } public String getKeyValue() { return keyValue; } public void setKeyValue(String keyValue) { this.keyValue = keyValue; } public String getHolderName() { return holderName; } public void setHolderName(String holderName) { this.holderName = holderName; } public String getHolderTaxId() { return holderTaxId; } public void setHolderTaxId(String holderTaxId) { this.holderTaxId = holderTaxId; } public String getBankCode() { return bankCode; } public void setBankCode(String bankCode) { this.bankCode = bankCode; } public String getBankName() { return bankName; } public void setBankName(String bankName) { this.bankName = bankName; } public String getBankBranch() { return bankBranch; } public void setBankBranch(String bankBranch) { this.bankBranch = bankBranch; } public String getBankAccount() { return bankAccount; } public void setBankAccount(String bankAccount) { this.bankAccount = bankAccount; } @Override public String toString() { return "KondutoBank{" + "id='" + id + '\'' + ", keyType=" + keyType + ", keyValue='" + keyValue + '\'' + ", holderName='" + holderName + '\'' + ", holderTaxId='" + holderTaxId + '\'' + ", bankCode='" + bankCode + '\'' + ", bankName='" + bankName + '\'' + ", bankBranch='" + bankBranch + '\'' + ", bankAccount='" + bankAccount + '\'' + '}'; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy