/*
 * 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 com.plaid.client.model.ExpenditureInsights;
import com.plaid.client.model.IncomeInsights;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;

/**
 * Affordability insights focus on providing signal on the ability of a borrower to repay their loan without experiencing financial strain. It provides insights on factors such a user&#39;s monthly income and expenses, disposable income, average expenditure, etc., helping lenders gauge the level of affordability of a borrower.
 */
@ApiModel(description = "Affordability insights focus on providing signal on the ability of a borrower to repay their loan without experiencing financial strain. It provides insights on factors such a user's monthly income and expenses, disposable income, average expenditure, etc., helping lenders gauge the level of affordability of a borrower.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class AffordabilityInsights {
  public static final String SERIALIZED_NAME_EXPENDITURE = "expenditure";
  @SerializedName(SERIALIZED_NAME_EXPENDITURE)
  private ExpenditureInsights expenditure;

  public static final String SERIALIZED_NAME_INCOME = "income";
  @SerializedName(SERIALIZED_NAME_INCOME)
  private IncomeInsights income;


  public AffordabilityInsights expenditure(ExpenditureInsights expenditure) {
    
    this.expenditure = expenditure;
    return this;
  }

   /**
   * Get expenditure
   * @return expenditure
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public ExpenditureInsights getExpenditure() {
    return expenditure;
  }


  public void setExpenditure(ExpenditureInsights expenditure) {
    this.expenditure = expenditure;
  }


  public AffordabilityInsights income(IncomeInsights income) {
    
    this.income = income;
    return this;
  }

   /**
   * Get income
   * @return income
  **/
  @javax.annotation.Nullable
  @ApiModelProperty(value = "")

  public IncomeInsights getIncome() {
    return income;
  }


  public void setIncome(IncomeInsights income) {
    this.income = income;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    AffordabilityInsights affordabilityInsights = (AffordabilityInsights) o;
    return Objects.equals(this.expenditure, affordabilityInsights.expenditure) &&
        Objects.equals(this.income, affordabilityInsights.income);
  }

  @Override
  public int hashCode() {
    return Objects.hash(expenditure, income);
  }

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

}

