com.plaid.client.model.LinkSessionResults 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 com.plaid.client.model.CreditSessionDocumentIncomeResult;
import com.plaid.client.model.LinkSessionBankIncomeResult;
import com.plaid.client.model.LinkSessionItemAddResult;
import com.plaid.client.model.LinkSessionPayrollIncomeResult;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
/**
* The set of results for a Link session.
*/
@ApiModel(description = "The set of results for a Link session.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-07-05T19:36:13.426392Z[Etc/UTC]")
public class LinkSessionResults {
public static final String SERIALIZED_NAME_ITEM_ADD_RESULTS = "item_add_results";
@SerializedName(SERIALIZED_NAME_ITEM_ADD_RESULTS)
private List itemAddResults = null;
public static final String SERIALIZED_NAME_BANK_INCOME_RESULTS = "bank_income_results";
@SerializedName(SERIALIZED_NAME_BANK_INCOME_RESULTS)
private List bankIncomeResults = null;
public static final String SERIALIZED_NAME_PAYROLL_INCOME_RESULTS = "payroll_income_results";
@SerializedName(SERIALIZED_NAME_PAYROLL_INCOME_RESULTS)
private List payrollIncomeResults = null;
public static final String SERIALIZED_NAME_DOCUMENT_INCOME_RESULTS = "document_income_results";
@SerializedName(SERIALIZED_NAME_DOCUMENT_INCOME_RESULTS)
private CreditSessionDocumentIncomeResult documentIncomeResults;
public LinkSessionResults itemAddResults(List itemAddResults) {
this.itemAddResults = itemAddResults;
return this;
}
public LinkSessionResults addItemAddResultsItem(LinkSessionItemAddResult itemAddResultsItem) {
if (this.itemAddResults == null) {
this.itemAddResults = new ArrayList<>();
}
this.itemAddResults.add(itemAddResultsItem);
return this;
}
/**
* The set of Item adds for the Link session.
* @return itemAddResults
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The set of Item adds for the Link session.")
public List getItemAddResults() {
return itemAddResults;
}
public void setItemAddResults(List itemAddResults) {
this.itemAddResults = itemAddResults;
}
public LinkSessionResults bankIncomeResults(List bankIncomeResults) {
this.bankIncomeResults = bankIncomeResults;
return this;
}
public LinkSessionResults addBankIncomeResultsItem(LinkSessionBankIncomeResult bankIncomeResultsItem) {
if (this.bankIncomeResults == null) {
this.bankIncomeResults = new ArrayList<>();
}
this.bankIncomeResults.add(bankIncomeResultsItem);
return this;
}
/**
* The set of bank income verifications for the Link session.
* @return bankIncomeResults
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The set of bank income verifications for the Link session.")
public List getBankIncomeResults() {
return bankIncomeResults;
}
public void setBankIncomeResults(List bankIncomeResults) {
this.bankIncomeResults = bankIncomeResults;
}
public LinkSessionResults payrollIncomeResults(List payrollIncomeResults) {
this.payrollIncomeResults = payrollIncomeResults;
return this;
}
public LinkSessionResults addPayrollIncomeResultsItem(LinkSessionPayrollIncomeResult payrollIncomeResultsItem) {
if (this.payrollIncomeResults == null) {
this.payrollIncomeResults = new ArrayList<>();
}
this.payrollIncomeResults.add(payrollIncomeResultsItem);
return this;
}
/**
* The set of payroll income verifications for the Link session.
* @return payrollIncomeResults
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The set of payroll income verifications for the Link session.")
public List getPayrollIncomeResults() {
return payrollIncomeResults;
}
public void setPayrollIncomeResults(List payrollIncomeResults) {
this.payrollIncomeResults = payrollIncomeResults;
}
public LinkSessionResults documentIncomeResults(CreditSessionDocumentIncomeResult documentIncomeResults) {
this.documentIncomeResults = documentIncomeResults;
return this;
}
/**
* Get documentIncomeResults
* @return documentIncomeResults
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public CreditSessionDocumentIncomeResult getDocumentIncomeResults() {
return documentIncomeResults;
}
public void setDocumentIncomeResults(CreditSessionDocumentIncomeResult documentIncomeResults) {
this.documentIncomeResults = documentIncomeResults;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
LinkSessionResults linkSessionResults = (LinkSessionResults) o;
return Objects.equals(this.itemAddResults, linkSessionResults.itemAddResults) &&
Objects.equals(this.bankIncomeResults, linkSessionResults.bankIncomeResults) &&
Objects.equals(this.payrollIncomeResults, linkSessionResults.payrollIncomeResults) &&
Objects.equals(this.documentIncomeResults, linkSessionResults.documentIncomeResults);
}
@Override
public int hashCode() {
return Objects.hash(itemAddResults, bankIncomeResults, payrollIncomeResults, documentIncomeResults);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class LinkSessionResults {\n");
sb.append(" itemAddResults: ").append(toIndentedString(itemAddResults)).append("\n");
sb.append(" bankIncomeResults: ").append(toIndentedString(bankIncomeResults)).append("\n");
sb.append(" payrollIncomeResults: ").append(toIndentedString(payrollIncomeResults)).append("\n");
sb.append(" documentIncomeResults: ").append(toIndentedString(documentIncomeResults)).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