com.plaid.client.model.LinkSessionSuccessMetadataAccount 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.534.3
*
*
* 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* An account attached to the connected Item.
*/
@ApiModel(description = "An account attached to the connected Item.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-05T19:36:13.426392Z[Etc/UTC]")
public class LinkSessionSuccessMetadataAccount {
public static final String SERIALIZED_NAME_ID = "id";
@SerializedName(SERIALIZED_NAME_ID)
private String id;
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_MASK = "mask";
@SerializedName(SERIALIZED_NAME_MASK)
private String mask;
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private String type;
public static final String SERIALIZED_NAME_SUBTYPE = "subtype";
@SerializedName(SERIALIZED_NAME_SUBTYPE)
private String subtype;
public static final String SERIALIZED_NAME_VERIFICATION_STATUS = "verification_status";
@SerializedName(SERIALIZED_NAME_VERIFICATION_STATUS)
private String verificationStatus;
public static final String SERIALIZED_NAME_CLASS_TYPE = "class_type";
@SerializedName(SERIALIZED_NAME_CLASS_TYPE)
private String classType;
public LinkSessionSuccessMetadataAccount id(String id) {
this.id = id;
return this;
}
/**
* The Plaid `account_id`
* @return id
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The Plaid `account_id` ")
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public LinkSessionSuccessMetadataAccount name(String name) {
this.name = name;
return this;
}
/**
* The official account name
* @return name
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The official account name")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public LinkSessionSuccessMetadataAccount 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. It may also not match the mask that the bank displays to the user.
* @return mask
**/
@javax.annotation.Nullable
@ApiModelProperty(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. 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 LinkSessionSuccessMetadataAccount type(String type) {
this.type = type;
return this;
}
/**
* The account type. See the [Account schema](/docs/api/accounts#account-type-schema) for a full list of possible values
* @return type
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The account type. See the [Account schema](/docs/api/accounts#account-type-schema) for a full list of possible values")
public String getType() {
return type;
}
public void setType(String type) {
this.type = type;
}
public LinkSessionSuccessMetadataAccount subtype(String subtype) {
this.subtype = subtype;
return this;
}
/**
* The account subtype. See the [Account schema](/docs/api/accounts#account-type-schema) for a full list of possible values
* @return subtype
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The account subtype. See the [Account schema](/docs/api/accounts#account-type-schema) for a full list of possible values")
public String getSubtype() {
return subtype;
}
public void setSubtype(String subtype) {
this.subtype = subtype;
}
public LinkSessionSuccessMetadataAccount verificationStatus(String verificationStatus) {
this.verificationStatus = verificationStatus;
return this;
}
/**
* Indicates an Item's micro-deposit-based verification or database verification status. Possible values are: `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 code. `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_pending`: The Database Insights result is pending and will be available upon Auth request. Note: Database Insights is currently a beta feature, please contact your account manager for more information. `null`: Neither micro-deposit-based verification nor database verification are being used for the Item.
* @return verificationStatus
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Indicates an Item's micro-deposit-based verification or database verification status. Possible values are: `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 code. `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_pending`: The Database Insights result is pending and will be available upon Auth request. Note: Database Insights is currently a beta feature, please contact your account manager for more information. `null`: Neither micro-deposit-based verification nor database verification are being used for the Item. ")
public String getVerificationStatus() {
return verificationStatus;
}
public void setVerificationStatus(String verificationStatus) {
this.verificationStatus = verificationStatus;
}
public LinkSessionSuccessMetadataAccount classType(String classType) {
this.classType = classType;
return this;
}
/**
* If micro-deposit verification is being used, indicates whether the account being verified is a `business` or `personal` account.
* @return classType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "If micro-deposit verification is being used, indicates whether the account being verified is a `business` or `personal` account.")
public String getClassType() {
return classType;
}
public void setClassType(String classType) {
this.classType = classType;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LinkSessionSuccessMetadataAccount linkSessionSuccessMetadataAccount = (LinkSessionSuccessMetadataAccount) o;
return Objects.equals(this.id, linkSessionSuccessMetadataAccount.id) &&
Objects.equals(this.name, linkSessionSuccessMetadataAccount.name) &&
Objects.equals(this.mask, linkSessionSuccessMetadataAccount.mask) &&
Objects.equals(this.type, linkSessionSuccessMetadataAccount.type) &&
Objects.equals(this.subtype, linkSessionSuccessMetadataAccount.subtype) &&
Objects.equals(this.verificationStatus, linkSessionSuccessMetadataAccount.verificationStatus) &&
Objects.equals(this.classType, linkSessionSuccessMetadataAccount.classType);
}
@Override
public int hashCode() {
return Objects.hash(id, name, mask, type, subtype, verificationStatus, classType);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LinkSessionSuccessMetadataAccount {\n");
sb.append(" id: ").append(toIndentedString(id)).append("\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" mask: ").append(toIndentedString(mask)).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(" classType: ").append(toIndentedString(classType)).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