com.plaid.client.model.AccountIdentityMatchScore Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plaid-java Show documentation
Show all versions of plaid-java Show documentation
Bindings for the Plaid (plaid.com) API.
/*
* The Plaid API
* The Plaid REST API. Please see https://plaid.com/docs/api for more details.
*
* The version of the OpenAPI document: 2020-09-14_1.565.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
package com.plaid.client.model;
import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import com.plaid.client.model.AccountBalance;
import com.plaid.client.model.AccountBase;
import com.plaid.client.model.AccountHolderCategory;
import com.plaid.client.model.AccountIdentityMatchScoreAllOf;
import com.plaid.client.model.AccountSubtype;
import com.plaid.client.model.AccountType;
import com.plaid.client.model.AccountVerificationInsights;
import com.plaid.client.model.AddressMatchScore;
import com.plaid.client.model.EmailAddressMatchScore;
import com.plaid.client.model.NameMatchScore;
import com.plaid.client.model.PhoneNumberMatchScore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* Identity match scores for an account
*/
@ApiModel(description = "Identity match scores for an account")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-17T16:42:02.150702Z[Etc/UTC]")
public class AccountIdentityMatchScore {
public static final String SERIALIZED_NAME_ACCOUNT_ID = "account_id";
@SerializedName(SERIALIZED_NAME_ACCOUNT_ID)
private String accountId;
public static final String SERIALIZED_NAME_BALANCES = "balances";
@SerializedName(SERIALIZED_NAME_BALANCES)
private AccountBalance balances;
public static final String SERIALIZED_NAME_MASK = "mask";
@SerializedName(SERIALIZED_NAME_MASK)
private String mask;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_OFFICIAL_NAME = "official_name";
@SerializedName(SERIALIZED_NAME_OFFICIAL_NAME)
private String officialName;
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private AccountType type;
public static final String SERIALIZED_NAME_SUBTYPE = "subtype";
@SerializedName(SERIALIZED_NAME_SUBTYPE)
private AccountSubtype subtype;
/**
* The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only. `pending_automatic_verification`: The Item is pending automatic verification `pending_manual_verification`: The Item is pending manual micro-deposit verification. Items remain in this state until the user successfully verifies the micro-deposit. `automatically_verified`: The Item has successfully been automatically verified `manually_verified`: The Item has successfully been manually verified `verification_expired`: Plaid was unable to automatically verify the deposit within 7 calendar days and will no longer attempt to validate the Item. Users may retry by submitting their information again through Link. `verification_failed`: The Item failed manual micro-deposit verification because the user exhausted all 3 verification attempts. Users may retry by submitting their information again through Link. `database_matched`: The Item has successfully been verified using Plaid's data sources. `database_insights_pass`: The Item's ACH numbers have been verified using Plaid's data sources and have strong signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information. `database_insights_pass_with_caution`: The Item's ACH numbers have been verified using Plaid's data sources and have some signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information. `database_insights_fail`: The Item's ACH numbers have been verified using Plaid's data sources and have signal for being invalid and/or have no signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.
*/
@JsonAdapter(VerificationStatusEnum.Adapter.class)
public enum VerificationStatusEnum {
AUTOMATICALLY_VERIFIED("automatically_verified"),
PENDING_AUTOMATIC_VERIFICATION("pending_automatic_verification"),
PENDING_MANUAL_VERIFICATION("pending_manual_verification"),
MANUALLY_VERIFIED("manually_verified"),
VERIFICATION_EXPIRED("verification_expired"),
VERIFICATION_FAILED("verification_failed"),
DATABASE_MATCHED("database_matched"),
DATABASE_INSIGHTS_PASS("database_insights_pass"),
DATABASE_INSIGHTS_PASS_WITH_CAUTION("database_insights_pass_with_caution"),
DATABASE_INSIGHTS_FAIL("database_insights_fail");
private String value;
VerificationStatusEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static VerificationStatusEnum fromValue(String value) {
for (VerificationStatusEnum b : VerificationStatusEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final VerificationStatusEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public VerificationStatusEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return VerificationStatusEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_VERIFICATION_STATUS = "verification_status";
@SerializedName(SERIALIZED_NAME_VERIFICATION_STATUS)
private VerificationStatusEnum verificationStatus;
public static final String SERIALIZED_NAME_VERIFICATION_INSIGHTS = "verification_insights";
@SerializedName(SERIALIZED_NAME_VERIFICATION_INSIGHTS)
private AccountVerificationInsights verificationInsights;
public static final String SERIALIZED_NAME_PERSISTENT_ACCOUNT_ID = "persistent_account_id";
@SerializedName(SERIALIZED_NAME_PERSISTENT_ACCOUNT_ID)
private String persistentAccountId;
public static final String SERIALIZED_NAME_HOLDER_CATEGORY = "holder_category";
@SerializedName(SERIALIZED_NAME_HOLDER_CATEGORY)
private AccountHolderCategory holderCategory;
public static final String SERIALIZED_NAME_LEGAL_NAME = "legal_name";
@SerializedName(SERIALIZED_NAME_LEGAL_NAME)
private NameMatchScore legalName;
public static final String SERIALIZED_NAME_PHONE_NUMBER = "phone_number";
@SerializedName(SERIALIZED_NAME_PHONE_NUMBER)
private PhoneNumberMatchScore phoneNumber;
public static final String SERIALIZED_NAME_EMAIL_ADDRESS = "email_address";
@SerializedName(SERIALIZED_NAME_EMAIL_ADDRESS)
private EmailAddressMatchScore emailAddress;
public static final String SERIALIZED_NAME_ADDRESS = "address";
@SerializedName(SERIALIZED_NAME_ADDRESS)
private AddressMatchScore address;
public AccountIdentityMatchScore accountId(String accountId) {
this.accountId = accountId;
return this;
}
/**
* Plaid’s unique identifier for the account. This value will not change unless Plaid can't reconcile the account with the data returned by the financial institution. This may occur, for example, when the name of the account changes. If this happens a new `account_id` will be assigned to the account. The `account_id` can also change if the `access_token` is deleted and the same credentials that were used to generate that `access_token` are used to generate a new `access_token` on a later date. In that case, the new `account_id` will be different from the old `account_id`. If an account with a specific `account_id` disappears instead of changing, the account is likely closed. Closed accounts are not returned by the Plaid API. Like all Plaid identifiers, the `account_id` is case sensitive.
* @return accountId
**/
@ApiModelProperty(required = true, value = "Plaid’s unique identifier for the account. This value will not change unless Plaid can't reconcile the account with the data returned by the financial institution. This may occur, for example, when the name of the account changes. If this happens a new `account_id` will be assigned to the account. The `account_id` can also change if the `access_token` is deleted and the same credentials that were used to generate that `access_token` are used to generate a new `access_token` on a later date. In that case, the new `account_id` will be different from the old `account_id`. If an account with a specific `account_id` disappears instead of changing, the account is likely closed. Closed accounts are not returned by the Plaid API. Like all Plaid identifiers, the `account_id` is case sensitive.")
public String getAccountId() {
return accountId;
}
public void setAccountId(String accountId) {
this.accountId = accountId;
}
public AccountIdentityMatchScore balances(AccountBalance balances) {
this.balances = balances;
return this;
}
/**
* Get balances
* @return balances
**/
@ApiModelProperty(required = true, value = "")
public AccountBalance getBalances() {
return balances;
}
public void setBalances(AccountBalance balances) {
this.balances = balances;
}
public AccountIdentityMatchScore mask(String mask) {
this.mask = mask;
return this;
}
/**
* The last 2-4 alphanumeric characters of an account's official account number. Note that the mask may be non-unique between an Item's accounts, and it may also not match the mask that the bank displays to the user.
* @return mask
**/
@javax.annotation.Nullable
@ApiModelProperty(required = true, value = "The last 2-4 alphanumeric characters of an account's official account number. Note that the mask may be non-unique between an Item's accounts, and it may also not match the mask that the bank displays to the user.")
public String getMask() {
return mask;
}
public void setMask(String mask) {
this.mask = mask;
}
public AccountIdentityMatchScore name(String name) {
this.name = name;
return this;
}
/**
* The name of the account, either assigned by the user or by the financial institution itself
* @return name
**/
@ApiModelProperty(required = true, value = "The name of the account, either assigned by the user or by the financial institution itself")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public AccountIdentityMatchScore officialName(String officialName) {
this.officialName = officialName;
return this;
}
/**
* The official name of the account as given by the financial institution
* @return officialName
**/
@javax.annotation.Nullable
@ApiModelProperty(required = true, value = "The official name of the account as given by the financial institution")
public String getOfficialName() {
return officialName;
}
public void setOfficialName(String officialName) {
this.officialName = officialName;
}
public AccountIdentityMatchScore type(AccountType type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(required = true, value = "")
public AccountType getType() {
return type;
}
public void setType(AccountType type) {
this.type = type;
}
public AccountIdentityMatchScore subtype(AccountSubtype subtype) {
this.subtype = subtype;
return this;
}
/**
* Get subtype
* @return subtype
**/
@javax.annotation.Nullable
@ApiModelProperty(required = true, value = "")
public AccountSubtype getSubtype() {
return subtype;
}
public void setSubtype(AccountSubtype subtype) {
this.subtype = subtype;
}
public AccountIdentityMatchScore verificationStatus(VerificationStatusEnum verificationStatus) {
this.verificationStatus = verificationStatus;
return this;
}
/**
* The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only. `pending_automatic_verification`: The Item is pending automatic verification `pending_manual_verification`: The Item is pending manual micro-deposit verification. Items remain in this state until the user successfully verifies the micro-deposit. `automatically_verified`: The Item has successfully been automatically verified `manually_verified`: The Item has successfully been manually verified `verification_expired`: Plaid was unable to automatically verify the deposit within 7 calendar days and will no longer attempt to validate the Item. Users may retry by submitting their information again through Link. `verification_failed`: The Item failed manual micro-deposit verification because the user exhausted all 3 verification attempts. Users may retry by submitting their information again through Link. `database_matched`: The Item has successfully been verified using Plaid's data sources. `database_insights_pass`: The Item's ACH numbers have been verified using Plaid's data sources and have strong signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information. `database_insights_pass_with_caution`: The Item's ACH numbers have been verified using Plaid's data sources and have some signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information. `database_insights_fail`: The Item's ACH numbers have been verified using Plaid's data sources and have signal for being invalid and/or have no signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information.
* @return verificationStatus
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The current verification status of an Auth Item initiated through Automated or Manual micro-deposits. Returned for Auth Items only. `pending_automatic_verification`: The Item is pending automatic verification `pending_manual_verification`: The Item is pending manual micro-deposit verification. Items remain in this state until the user successfully verifies the micro-deposit. `automatically_verified`: The Item has successfully been automatically verified `manually_verified`: The Item has successfully been manually verified `verification_expired`: Plaid was unable to automatically verify the deposit within 7 calendar days and will no longer attempt to validate the Item. Users may retry by submitting their information again through Link. `verification_failed`: The Item failed manual micro-deposit verification because the user exhausted all 3 verification attempts. Users may retry by submitting their information again through Link. `database_matched`: The Item has successfully been verified using Plaid's data sources. `database_insights_pass`: The Item's ACH numbers have been verified using Plaid's data sources and have strong signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information. `database_insights_pass_with_caution`: The Item's ACH numbers have been verified using Plaid's data sources and have some signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information. `database_insights_fail`: The Item's ACH numbers have been verified using Plaid's data sources and have signal for being invalid and/or have no signal for being valid. Note: Database Insights is currently a beta feature, please contact your account manager for more information. ")
public VerificationStatusEnum getVerificationStatus() {
return verificationStatus;
}
public void setVerificationStatus(VerificationStatusEnum verificationStatus) {
this.verificationStatus = verificationStatus;
}
public AccountIdentityMatchScore verificationInsights(AccountVerificationInsights verificationInsights) {
this.verificationInsights = verificationInsights;
return this;
}
/**
* Get verificationInsights
* @return verificationInsights
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public AccountVerificationInsights getVerificationInsights() {
return verificationInsights;
}
public void setVerificationInsights(AccountVerificationInsights verificationInsights) {
this.verificationInsights = verificationInsights;
}
public AccountIdentityMatchScore persistentAccountId(String persistentAccountId) {
this.persistentAccountId = persistentAccountId;
return this;
}
/**
* A unique and persistent identifier for accounts that can be used to trace multiple instances of the same account across different Items for depository accounts. This is currently only supported for Chase Items. Because Chase accounts have a different account number each time they are linked, this field may be used instead of the account number to uniquely identify a Chase account across multiple Items for payments use cases, helping to reduce duplicate Items or attempted fraud. In Sandbox, this field may be populated for any account; in Production, it will only be populated for Chase accounts.
* @return persistentAccountId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A unique and persistent identifier for accounts that can be used to trace multiple instances of the same account across different Items for depository accounts. This is currently only supported for Chase Items. Because Chase accounts have a different account number each time they are linked, this field may be used instead of the account number to uniquely identify a Chase account across multiple Items for payments use cases, helping to reduce duplicate Items or attempted fraud. In Sandbox, this field may be populated for any account; in Production, it will only be populated for Chase accounts.")
public String getPersistentAccountId() {
return persistentAccountId;
}
public void setPersistentAccountId(String persistentAccountId) {
this.persistentAccountId = persistentAccountId;
}
public AccountIdentityMatchScore holderCategory(AccountHolderCategory holderCategory) {
this.holderCategory = holderCategory;
return this;
}
/**
* Get holderCategory
* @return holderCategory
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public AccountHolderCategory getHolderCategory() {
return holderCategory;
}
public void setHolderCategory(AccountHolderCategory holderCategory) {
this.holderCategory = holderCategory;
}
public AccountIdentityMatchScore legalName(NameMatchScore legalName) {
this.legalName = legalName;
return this;
}
/**
* Get legalName
* @return legalName
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public NameMatchScore getLegalName() {
return legalName;
}
public void setLegalName(NameMatchScore legalName) {
this.legalName = legalName;
}
public AccountIdentityMatchScore phoneNumber(PhoneNumberMatchScore phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
/**
* Get phoneNumber
* @return phoneNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public PhoneNumberMatchScore getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(PhoneNumberMatchScore phoneNumber) {
this.phoneNumber = phoneNumber;
}
public AccountIdentityMatchScore emailAddress(EmailAddressMatchScore emailAddress) {
this.emailAddress = emailAddress;
return this;
}
/**
* Get emailAddress
* @return emailAddress
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public EmailAddressMatchScore getEmailAddress() {
return emailAddress;
}
public void setEmailAddress(EmailAddressMatchScore emailAddress) {
this.emailAddress = emailAddress;
}
public AccountIdentityMatchScore address(AddressMatchScore address) {
this.address = address;
return this;
}
/**
* Get address
* @return address
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public AddressMatchScore getAddress() {
return address;
}
public void setAddress(AddressMatchScore address) {
this.address = address;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AccountIdentityMatchScore accountIdentityMatchScore = (AccountIdentityMatchScore) o;
return Objects.equals(this.accountId, accountIdentityMatchScore.accountId) &&
Objects.equals(this.balances, accountIdentityMatchScore.balances) &&
Objects.equals(this.mask, accountIdentityMatchScore.mask) &&
Objects.equals(this.name, accountIdentityMatchScore.name) &&
Objects.equals(this.officialName, accountIdentityMatchScore.officialName) &&
Objects.equals(this.type, accountIdentityMatchScore.type) &&
Objects.equals(this.subtype, accountIdentityMatchScore.subtype) &&
Objects.equals(this.verificationStatus, accountIdentityMatchScore.verificationStatus) &&
Objects.equals(this.verificationInsights, accountIdentityMatchScore.verificationInsights) &&
Objects.equals(this.persistentAccountId, accountIdentityMatchScore.persistentAccountId) &&
Objects.equals(this.holderCategory, accountIdentityMatchScore.holderCategory) &&
Objects.equals(this.legalName, accountIdentityMatchScore.legalName) &&
Objects.equals(this.phoneNumber, accountIdentityMatchScore.phoneNumber) &&
Objects.equals(this.emailAddress, accountIdentityMatchScore.emailAddress) &&
Objects.equals(this.address, accountIdentityMatchScore.address);
}
@Override
public int hashCode() {
return Objects.hash(accountId, balances, mask, name, officialName, type, subtype, verificationStatus, verificationInsights, persistentAccountId, holderCategory, legalName, phoneNumber, emailAddress, address);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AccountIdentityMatchScore {\n");
sb.append(" accountId: ").append(toIndentedString(accountId)).append("\n");
sb.append(" balances: ").append(toIndentedString(balances)).append("\n");
sb.append(" mask: ").append(toIndentedString(mask)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" officialName: ").append(toIndentedString(officialName)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n");
sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n");
sb.append(" verificationInsights: ").append(toIndentedString(verificationInsights)).append("\n");
sb.append(" persistentAccountId: ").append(toIndentedString(persistentAccountId)).append("\n");
sb.append(" holderCategory: ").append(toIndentedString(holderCategory)).append("\n");
sb.append(" legalName: ").append(toIndentedString(legalName)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n");
sb.append(" emailAddress: ").append(toIndentedString(emailAddress)).append("\n");
sb.append(" address: ").append(toIndentedString(address)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy