com.plaid.client.model.BaseReportAttributes 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.575.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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.math.BigDecimal;
/**
* Calculated attributes derived from transaction-level data.
*/
@ApiModel(description = "Calculated attributes derived from transaction-level data.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-10-09T17:51:17.896278Z[Etc/UTC]")
public class BaseReportAttributes {
public static final String SERIALIZED_NAME_NSF_OVERDRAFT_TRANSACTIONS_COUNT = "nsf_overdraft_transactions_count";
@SerializedName(SERIALIZED_NAME_NSF_OVERDRAFT_TRANSACTIONS_COUNT)
private Integer nsfOverdraftTransactionsCount;
public static final String SERIALIZED_NAME_IS_PRIMARY_ACCOUNT = "is_primary_account";
@SerializedName(SERIALIZED_NAME_IS_PRIMARY_ACCOUNT)
private Boolean isPrimaryAccount;
public static final String SERIALIZED_NAME_PRIMARY_ACCOUNT_SCORE = "primary_account_score";
@SerializedName(SERIALIZED_NAME_PRIMARY_ACCOUNT_SCORE)
private Double primaryAccountScore;
public BaseReportAttributes nsfOverdraftTransactionsCount(Integer nsfOverdraftTransactionsCount) {
this.nsfOverdraftTransactionsCount = nsfOverdraftTransactionsCount;
return this;
}
/**
* The number of NSF and overdraft fee transactions in the time range for the report in the given account.
* @return nsfOverdraftTransactionsCount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The number of NSF and overdraft fee transactions in the time range for the report in the given account.")
public Integer getNsfOverdraftTransactionsCount() {
return nsfOverdraftTransactionsCount;
}
public void setNsfOverdraftTransactionsCount(Integer nsfOverdraftTransactionsCount) {
this.nsfOverdraftTransactionsCount = nsfOverdraftTransactionsCount;
}
public BaseReportAttributes isPrimaryAccount(Boolean isPrimaryAccount) {
this.isPrimaryAccount = isPrimaryAccount;
return this;
}
/**
* Our prediction on whether the account is a primary account. Only one account per account type across the items connected will have a value of true.
* @return isPrimaryAccount
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Our prediction on whether the account is a primary account. Only one account per account type across the items connected will have a value of true.")
public Boolean getIsPrimaryAccount() {
return isPrimaryAccount;
}
public void setIsPrimaryAccount(Boolean isPrimaryAccount) {
this.isPrimaryAccount = isPrimaryAccount;
}
public BaseReportAttributes primaryAccountScore(Double primaryAccountScore) {
this.primaryAccountScore = primaryAccountScore;
return this;
}
/**
* Value ranging from 0-1. The higher the score, the more confident we are of the account being the primary account.
* @return primaryAccountScore
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "Value ranging from 0-1. The higher the score, the more confident we are of the account being the primary account.")
public Double getPrimaryAccountScore() {
return primaryAccountScore;
}
public void setPrimaryAccountScore(Double primaryAccountScore) {
this.primaryAccountScore = primaryAccountScore;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
BaseReportAttributes baseReportAttributes = (BaseReportAttributes) o;
return Objects.equals(this.nsfOverdraftTransactionsCount, baseReportAttributes.nsfOverdraftTransactionsCount) &&
Objects.equals(this.isPrimaryAccount, baseReportAttributes.isPrimaryAccount) &&
Objects.equals(this.primaryAccountScore, baseReportAttributes.primaryAccountScore);
}
@Override
public int hashCode() {
return Objects.hash(nsfOverdraftTransactionsCount, isPrimaryAccount, primaryAccountScore);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class BaseReportAttributes {\n");
sb.append(" nsfOverdraftTransactionsCount: ").append(toIndentedString(nsfOverdraftTransactionsCount)).append("\n");
sb.append(" isPrimaryAccount: ").append(toIndentedString(isPrimaryAccount)).append("\n");
sb.append(" primaryAccountScore: ").append(toIndentedString(primaryAccountScore)).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 - 2025 Weber Informatics LLC | Privacy Policy