com.plaid.client.model.ReportToken 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.161.5
*
*
* 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.ReportType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
/**
* ReportToken is a representation of a token that has a `report_type` field that can be one of `assets` or `income` and a `token` field which is the associated token with the `report_type`. The `token` can be an Asset Report token or Income Report token.
*/
@ApiModel(description = "ReportToken is a representation of a token that has a `report_type` field that can be one of `assets` or `income` and a `token` field which is the associated token with the `report_type`. The `token` can be an Asset Report token or Income Report token.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-08-03T20:38:07.102590Z[Etc/UTC]")
public class ReportToken {
public static final String SERIALIZED_NAME_REPORT_TYPE = "report_type";
@SerializedName(SERIALIZED_NAME_REPORT_TYPE)
private ReportType reportType;
public static final String SERIALIZED_NAME_TOKEN = "token";
@SerializedName(SERIALIZED_NAME_TOKEN)
private String token;
public ReportToken reportType(ReportType reportType) {
this.reportType = reportType;
return this;
}
/**
* Get reportType
* @return reportType
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
public ReportType getReportType() {
return reportType;
}
public void setReportType(ReportType reportType) {
this.reportType = reportType;
}
public ReportToken token(String token) {
this.token = token;
return this;
}
/**
* The report token. It can be an asset report token or an income report token.
* @return token
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "The report token. It can be an asset report token or an income report token.")
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
ReportToken reportToken = (ReportToken) o;
return Objects.equals(this.reportType, reportToken.reportType) &&
Objects.equals(this.token, reportToken.token);
}
@Override
public int hashCode() {
return Objects.hash(reportType, token);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ReportToken {\n");
sb.append(" reportType: ").append(toIndentedString(reportType)).append("\n");
sb.append(" token: ").append(toIndentedString(token)).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