All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.plaid.client.model.ProductStatusBreakdown Maven / Gradle / Ivy

There is a newer version: 30.1.0
Show newest version
/*
 * 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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * A detailed breakdown of the institution's performance for a request type. The values for `success`, `error_plaid`, and `error_institution` sum to 1.
 */
@ApiModel(description = "A detailed breakdown of the institution's performance for a request type. The values for `success`, `error_plaid`, and `error_institution` sum to 1.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-08-29T20:00:26.713837Z[Etc/UTC]")
public class ProductStatusBreakdown {
  public static final String SERIALIZED_NAME_SUCCESS = "success";
  @SerializedName(SERIALIZED_NAME_SUCCESS)
  private Double success;

  public static final String SERIALIZED_NAME_ERROR_PLAID = "error_plaid";
  @SerializedName(SERIALIZED_NAME_ERROR_PLAID)
  private Double errorPlaid;

  public static final String SERIALIZED_NAME_ERROR_INSTITUTION = "error_institution";
  @SerializedName(SERIALIZED_NAME_ERROR_INSTITUTION)
  private Double errorInstitution;

  /**
   * The `refresh_interval` may be `DELAYED` or `STOPPED` even when the success rate is high. This value is only returned for Transactions status breakdowns.
   */
  @JsonAdapter(RefreshIntervalEnum.Adapter.class)
  public enum RefreshIntervalEnum {
    NORMAL("NORMAL"),
    
    DELAYED("DELAYED"),
    
    STOPPED("STOPPED");

    private String value;

    RefreshIntervalEnum(String value) {
      this.value = value;
    }

    public String getValue() {
      return value;
    }

    @Override
    public String toString() {
      return String.valueOf(value);
    }

    public static RefreshIntervalEnum fromValue(String value) {
      for (RefreshIntervalEnum b : RefreshIntervalEnum.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 RefreshIntervalEnum enumeration) throws IOException {
        jsonWriter.value(enumeration.getValue());
      }

      @Override
      public RefreshIntervalEnum read(final JsonReader jsonReader) throws IOException {
        String value =  jsonReader.nextString();
        return RefreshIntervalEnum.fromValue(value);
      }
    }
  }

  public static final String SERIALIZED_NAME_REFRESH_INTERVAL = "refresh_interval";
  @SerializedName(SERIALIZED_NAME_REFRESH_INTERVAL)
  private RefreshIntervalEnum refreshInterval;


  public ProductStatusBreakdown success(Double success) {
    
    this.success = success;
    return this;
  }

   /**
   * The percentage of login attempts that are successful, expressed as a decimal.
   * @return success
  **/
  @ApiModelProperty(required = true, value = "The percentage of login attempts that are successful, expressed as a decimal.")

  public Double getSuccess() {
    return success;
  }


  public void setSuccess(Double success) {
    this.success = success;
  }


  public ProductStatusBreakdown errorPlaid(Double errorPlaid) {
    
    this.errorPlaid = errorPlaid;
    return this;
  }

   /**
   * The percentage of logins that are failing due to an internal Plaid issue, expressed as a decimal. 
   * @return errorPlaid
  **/
  @ApiModelProperty(required = true, value = "The percentage of logins that are failing due to an internal Plaid issue, expressed as a decimal. ")

  public Double getErrorPlaid() {
    return errorPlaid;
  }


  public void setErrorPlaid(Double errorPlaid) {
    this.errorPlaid = errorPlaid;
  }


  public ProductStatusBreakdown errorInstitution(Double errorInstitution) {
    
    this.errorInstitution = errorInstitution;
    return this;
  }

   /**
   * The percentage of logins that are failing due to an issue in the institution's system, expressed as a decimal.
   * @return errorInstitution
  **/
  @ApiModelProperty(required = true, value = "The percentage of logins that are failing due to an issue in the institution's system, expressed as a decimal.")

  public Double getErrorInstitution() {
    return errorInstitution;
  }


  public void setErrorInstitution(Double errorInstitution) {
    this.errorInstitution = errorInstitution;
  }


  public ProductStatusBreakdown refreshInterval(RefreshIntervalEnum refreshInterval) {
    
    this.refreshInterval = refreshInterval;
    return this;
  }

   /**
   * The `refresh_interval` may be `DELAYED` or `STOPPED` even when the success rate is high. This value is only returned for Transactions status breakdowns.
   * @return refreshInterval
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The `refresh_interval` may be `DELAYED` or `STOPPED` even when the success rate is high. This value is only returned for Transactions status breakdowns.")

  public RefreshIntervalEnum getRefreshInterval() {
    return refreshInterval;
  }


  public void setRefreshInterval(RefreshIntervalEnum refreshInterval) {
    this.refreshInterval = refreshInterval;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    ProductStatusBreakdown productStatusBreakdown = (ProductStatusBreakdown) o;
    return Objects.equals(this.success, productStatusBreakdown.success) &&
        Objects.equals(this.errorPlaid, productStatusBreakdown.errorPlaid) &&
        Objects.equals(this.errorInstitution, productStatusBreakdown.errorInstitution) &&
        Objects.equals(this.refreshInterval, productStatusBreakdown.refreshInterval);
  }

  @Override
  public int hashCode() {
    return Objects.hash(success, errorPlaid, errorInstitution, refreshInterval);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class ProductStatusBreakdown {\n");
    sb.append("    success: ").append(toIndentedString(success)).append("\n");
    sb.append("    errorPlaid: ").append(toIndentedString(errorPlaid)).append("\n");
    sb.append("    errorInstitution: ").append(toIndentedString(errorInstitution)).append("\n");
    sb.append("    refreshInterval: ").append(toIndentedString(refreshInterval)).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