/*
 * 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.680.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;

/**
 * Details regarding return rates.
 */
@ApiModel(description = "Details regarding return rates.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class TransferMetricsGetReturnRatesOverInterval {
  public static final String SERIALIZED_NAME_OVERALL_RETURN_RATE = "overall_return_rate";
  @SerializedName(SERIALIZED_NAME_OVERALL_RETURN_RATE)
  private String overallReturnRate;

  public static final String SERIALIZED_NAME_UNAUTHORIZED_RETURN_RATE = "unauthorized_return_rate";
  @SerializedName(SERIALIZED_NAME_UNAUTHORIZED_RETURN_RATE)
  private String unauthorizedReturnRate;

  public static final String SERIALIZED_NAME_ADMINISTRATIVE_RETURN_RATE = "administrative_return_rate";
  @SerializedName(SERIALIZED_NAME_ADMINISTRATIVE_RETURN_RATE)
  private String administrativeReturnRate;


  public TransferMetricsGetReturnRatesOverInterval overallReturnRate(String overallReturnRate) {
    
    this.overallReturnRate = overallReturnRate;
    return this;
  }

   /**
   * The overall return rate.
   * @return overallReturnRate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The overall return rate.")

  public String getOverallReturnRate() {
    return overallReturnRate;
  }


  public void setOverallReturnRate(String overallReturnRate) {
    this.overallReturnRate = overallReturnRate;
  }


  public TransferMetricsGetReturnRatesOverInterval unauthorizedReturnRate(String unauthorizedReturnRate) {
    
    this.unauthorizedReturnRate = unauthorizedReturnRate;
    return this;
  }

   /**
   * The unauthorized return rate.
   * @return unauthorizedReturnRate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The unauthorized return rate.")

  public String getUnauthorizedReturnRate() {
    return unauthorizedReturnRate;
  }


  public void setUnauthorizedReturnRate(String unauthorizedReturnRate) {
    this.unauthorizedReturnRate = unauthorizedReturnRate;
  }


  public TransferMetricsGetReturnRatesOverInterval administrativeReturnRate(String administrativeReturnRate) {
    
    this.administrativeReturnRate = administrativeReturnRate;
    return this;
  }

   /**
   * The administrative return rate.
   * @return administrativeReturnRate
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "The administrative return rate.")

  public String getAdministrativeReturnRate() {
    return administrativeReturnRate;
  }


  public void setAdministrativeReturnRate(String administrativeReturnRate) {
    this.administrativeReturnRate = administrativeReturnRate;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TransferMetricsGetReturnRatesOverInterval transferMetricsGetReturnRatesOverInterval = (TransferMetricsGetReturnRatesOverInterval) o;
    return Objects.equals(this.overallReturnRate, transferMetricsGetReturnRatesOverInterval.overallReturnRate) &&
        Objects.equals(this.unauthorizedReturnRate, transferMetricsGetReturnRatesOverInterval.unauthorizedReturnRate) &&
        Objects.equals(this.administrativeReturnRate, transferMetricsGetReturnRatesOverInterval.administrativeReturnRate);
  }

  @Override
  public int hashCode() {
    return Objects.hash(overallReturnRate, unauthorizedReturnRate, administrativeReturnRate);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class TransferMetricsGetReturnRatesOverInterval {\n");
    sb.append("    overallReturnRate: ").append(toIndentedString(overallReturnRate)).append("\n");
    sb.append("    unauthorizedReturnRate: ").append(toIndentedString(unauthorizedReturnRate)).append("\n");
    sb.append("    administrativeReturnRate: ").append(toIndentedString(administrativeReturnRate)).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    ");
  }

}

