com.plaid.client.model.Counterparty 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.CounterpartyType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* The counterparty, such as the merchant or financial institution, is extracted by Plaid from the raw description.
*/
@ApiModel(description = "The counterparty, such as the merchant or financial institution, is extracted by Plaid from the raw description.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-09-17T16:42:02.150702Z[Etc/UTC]")
public class Counterparty {
public static final String SERIALIZED_NAME_NAME = "name";
@SerializedName(SERIALIZED_NAME_NAME)
private String name;
public static final String SERIALIZED_NAME_ENTITY_ID = "entity_id";
@SerializedName(SERIALIZED_NAME_ENTITY_ID)
private String entityId;
public static final String SERIALIZED_NAME_TYPE = "type";
@SerializedName(SERIALIZED_NAME_TYPE)
private CounterpartyType type;
public static final String SERIALIZED_NAME_WEBSITE = "website";
@SerializedName(SERIALIZED_NAME_WEBSITE)
private String website;
public static final String SERIALIZED_NAME_LOGO_URL = "logo_url";
@SerializedName(SERIALIZED_NAME_LOGO_URL)
private String logoUrl;
public static final String SERIALIZED_NAME_CONFIDENCE_LEVEL = "confidence_level";
@SerializedName(SERIALIZED_NAME_CONFIDENCE_LEVEL)
private String confidenceLevel;
public static final String SERIALIZED_NAME_PHONE_NUMBER = "phone_number";
@SerializedName(SERIALIZED_NAME_PHONE_NUMBER)
private String phoneNumber;
public Counterparty name(String name) {
this.name = name;
return this;
}
/**
* The name of the counterparty, such as the merchant or the financial institution, as extracted by Plaid from the raw description.
* @return name
**/
@ApiModelProperty(required = true, value = "The name of the counterparty, such as the merchant or the financial institution, as extracted by Plaid from the raw description.")
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public Counterparty entityId(String entityId) {
this.entityId = entityId;
return this;
}
/**
* A unique, stable, Plaid-generated ID that maps to the counterparty.
* @return entityId
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A unique, stable, Plaid-generated ID that maps to the counterparty.")
public String getEntityId() {
return entityId;
}
public void setEntityId(String entityId) {
this.entityId = entityId;
}
public Counterparty type(CounterpartyType type) {
this.type = type;
return this;
}
/**
* Get type
* @return type
**/
@ApiModelProperty(required = true, value = "")
public CounterpartyType getType() {
return type;
}
public void setType(CounterpartyType type) {
this.type = type;
}
public Counterparty website(String website) {
this.website = website;
return this;
}
/**
* The website associated with the counterparty.
* @return website
**/
@javax.annotation.Nullable
@ApiModelProperty(required = true, value = "The website associated with the counterparty.")
public String getWebsite() {
return website;
}
public void setWebsite(String website) {
this.website = website;
}
public Counterparty logoUrl(String logoUrl) {
this.logoUrl = logoUrl;
return this;
}
/**
* The URL of a logo associated with the counterparty, if available. The logo will always be 100×100 pixel PNG file.
* @return logoUrl
**/
@javax.annotation.Nullable
@ApiModelProperty(required = true, value = "The URL of a logo associated with the counterparty, if available. The logo will always be 100×100 pixel PNG file.")
public String getLogoUrl() {
return logoUrl;
}
public void setLogoUrl(String logoUrl) {
this.logoUrl = logoUrl;
}
public Counterparty confidenceLevel(String confidenceLevel) {
this.confidenceLevel = confidenceLevel;
return this;
}
/**
* A description of how confident we are that the provided counterparty is involved in the transaction. `VERY_HIGH`: We recognize this counterparty and we are more than 98% confident that it is involved in this transaction. `HIGH`: We recognize this counterparty and we are more than 90% confident that it is involved in this transaction. `MEDIUM`: We are moderately confident that this counterparty was involved in this transaction, but some details may differ from our records. `LOW`: We didn’t find a matching counterparty in our records, so we are returning a cleansed name parsed out of the request description. `UNKNOWN`: We don’t know the confidence level for this counterparty.
* @return confidenceLevel
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "A description of how confident we are that the provided counterparty is involved in the transaction. `VERY_HIGH`: We recognize this counterparty and we are more than 98% confident that it is involved in this transaction. `HIGH`: We recognize this counterparty and we are more than 90% confident that it is involved in this transaction. `MEDIUM`: We are moderately confident that this counterparty was involved in this transaction, but some details may differ from our records. `LOW`: We didn’t find a matching counterparty in our records, so we are returning a cleansed name parsed out of the request description. `UNKNOWN`: We don’t know the confidence level for this counterparty.")
public String getConfidenceLevel() {
return confidenceLevel;
}
public void setConfidenceLevel(String confidenceLevel) {
this.confidenceLevel = confidenceLevel;
}
public Counterparty phoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
/**
* The phone number associated with the counterparty in E. 164 format. If there is a location match (i.e. a street address is returned in the location object), the phone number will be location specific.
* @return phoneNumber
**/
@javax.annotation.Nullable
@ApiModelProperty(required = true, value = "The phone number associated with the counterparty in E. 164 format. If there is a location match (i.e. a street address is returned in the location object), the phone number will be location specific.")
public String getPhoneNumber() {
return phoneNumber;
}
public void setPhoneNumber(String phoneNumber) {
this.phoneNumber = phoneNumber;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Counterparty counterparty = (Counterparty) o;
return Objects.equals(this.name, counterparty.name) &&
Objects.equals(this.entityId, counterparty.entityId) &&
Objects.equals(this.type, counterparty.type) &&
Objects.equals(this.website, counterparty.website) &&
Objects.equals(this.logoUrl, counterparty.logoUrl) &&
Objects.equals(this.confidenceLevel, counterparty.confidenceLevel) &&
Objects.equals(this.phoneNumber, counterparty.phoneNumber);
}
@Override
public int hashCode() {
return Objects.hash(name, entityId, type, website, logoUrl, confidenceLevel, phoneNumber);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Counterparty {\n");
sb.append(" name: ").append(toIndentedString(name)).append("\n");
sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n");
sb.append(" type: ").append(toIndentedString(type)).append("\n");
sb.append(" website: ").append(toIndentedString(website)).append("\n");
sb.append(" logoUrl: ").append(toIndentedString(logoUrl)).append("\n");
sb.append(" confidenceLevel: ").append(toIndentedString(confidenceLevel)).append("\n");
sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).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