Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* 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.CauseAllOf;
import com.plaid.client.model.PlaidError;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
/**
* An error object and associated `item_id` used to identify a specific Item and error when a batch operation operating on multiple Items has encountered an error in one of the Items.
*/
@ApiModel(description = "An error object and associated `item_id` used to identify a specific Item and error when a batch operation operating on multiple Items has encountered an error in one of the Items.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-08-29T20:00:26.713837Z[Etc/UTC]")
public class Cause {
/**
* A broad categorization of the error. Safe for programmatic use.
*/
@JsonAdapter(ErrorTypeEnum.Adapter.class)
public enum ErrorTypeEnum {
INVALID_REQUEST("INVALID_REQUEST"),
INVALID_RESULT("INVALID_RESULT"),
INVALID_INPUT("INVALID_INPUT"),
INSTITUTION_ERROR("INSTITUTION_ERROR"),
RATE_LIMIT_EXCEEDED("RATE_LIMIT_EXCEEDED"),
API_ERROR("API_ERROR"),
ITEM_ERROR("ITEM_ERROR"),
ASSET_REPORT_ERROR("ASSET_REPORT_ERROR"),
RECAPTCHA_ERROR("RECAPTCHA_ERROR"),
OAUTH_ERROR("OAUTH_ERROR"),
PAYMENT_ERROR("PAYMENT_ERROR"),
BANK_TRANSFER_ERROR("BANK_TRANSFER_ERROR"),
INCOME_VERIFICATION_ERROR("INCOME_VERIFICATION_ERROR");
private String value;
ErrorTypeEnum(String value) {
this.value = value;
}
public String getValue() {
return value;
}
@Override
public String toString() {
return String.valueOf(value);
}
public static ErrorTypeEnum fromValue(String value) {
for (ErrorTypeEnum b : ErrorTypeEnum.values()) {
if (b.value.equals(value)) {
return b;
}
}
throw new IllegalArgumentException("Unexpected value '" + value + "'");
}
public static class Adapter extends TypeAdapter {
@Override
public void write(final JsonWriter jsonWriter, final ErrorTypeEnum enumeration) throws IOException {
jsonWriter.value(enumeration.getValue());
}
@Override
public ErrorTypeEnum read(final JsonReader jsonReader) throws IOException {
String value = jsonReader.nextString();
return ErrorTypeEnum.fromValue(value);
}
}
}
public static final String SERIALIZED_NAME_ERROR_TYPE = "error_type";
@SerializedName(SERIALIZED_NAME_ERROR_TYPE)
private ErrorTypeEnum errorType;
public static final String SERIALIZED_NAME_ERROR_CODE = "error_code";
@SerializedName(SERIALIZED_NAME_ERROR_CODE)
private String errorCode;
public static final String SERIALIZED_NAME_ERROR_MESSAGE = "error_message";
@SerializedName(SERIALIZED_NAME_ERROR_MESSAGE)
private String errorMessage;
public static final String SERIALIZED_NAME_DISPLAY_MESSAGE = "display_message";
@SerializedName(SERIALIZED_NAME_DISPLAY_MESSAGE)
private String displayMessage;
public static final String SERIALIZED_NAME_REQUEST_ID = "request_id";
@SerializedName(SERIALIZED_NAME_REQUEST_ID)
private String requestId;
public static final String SERIALIZED_NAME_CAUSES = "causes";
@SerializedName(SERIALIZED_NAME_CAUSES)
private List