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

io.swagger.client.model.CashFlowList Maven / Gradle / Ivy

There is a newer version: 5.3.0
Show newest version
/*
 * finAPI RESTful Services
 * finAPI RESTful Services
 *
 * OpenAPI spec version: v1.64.0
 * 
 *
 * NOTE: This class is auto generated by the swagger code generator program.
 * https://github.com/swagger-api/swagger-codegen.git
 * Do not edit the class manually.
 */


package io.swagger.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 io.swagger.client.model.CashFlow;
import java.io.IOException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * Cash flows
 */
@ApiModel(description = "Cash flows")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-05T12:19:21.458Z")
public class CashFlowList {
  @SerializedName("cashFlows")
  private List cashFlows = new ArrayList();

  @SerializedName("totalIncome")
  private BigDecimal totalIncome = null;

  @SerializedName("totalSpending")
  private BigDecimal totalSpending = null;

  @SerializedName("totalBalance")
  private BigDecimal totalBalance = null;

  public CashFlowList cashFlows(List cashFlows) {
    this.cashFlows = cashFlows;
    return this;
  }

  public CashFlowList addCashFlowsItem(CashFlow cashFlowsItem) {
    this.cashFlows.add(cashFlowsItem);
    return this;
  }

   /**
   * Array of cash flows
   * @return cashFlows
  **/
  @ApiModelProperty(required = true, value = "Array of cash flows")
  public List getCashFlows() {
    return cashFlows;
  }

  public void setCashFlows(List cashFlows) {
    this.cashFlows = cashFlows;
  }

  public CashFlowList totalIncome(BigDecimal totalIncome) {
    this.totalIncome = totalIncome;
    return this;
  }

   /**
   * The total income
   * @return totalIncome
  **/
  @ApiModelProperty(example = "199.99", required = true, value = "The total income")
  public BigDecimal getTotalIncome() {
    return totalIncome;
  }

  public void setTotalIncome(BigDecimal totalIncome) {
    this.totalIncome = totalIncome;
  }

  public CashFlowList totalSpending(BigDecimal totalSpending) {
    this.totalSpending = totalSpending;
    return this;
  }

   /**
   * The total spending
   * @return totalSpending
  **/
  @ApiModelProperty(example = "-99.99", required = true, value = "The total spending")
  public BigDecimal getTotalSpending() {
    return totalSpending;
  }

  public void setTotalSpending(BigDecimal totalSpending) {
    this.totalSpending = totalSpending;
  }

  public CashFlowList totalBalance(BigDecimal totalBalance) {
    this.totalBalance = totalBalance;
    return this;
  }

   /**
   * The total balance
   * @return totalBalance
  **/
  @ApiModelProperty(example = "100.0", required = true, value = "The total balance")
  public BigDecimal getTotalBalance() {
    return totalBalance;
  }

  public void setTotalBalance(BigDecimal totalBalance) {
    this.totalBalance = totalBalance;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CashFlowList cashFlowList = (CashFlowList) o;
    return Objects.equals(this.cashFlows, cashFlowList.cashFlows) &&
        Objects.equals(this.totalIncome, cashFlowList.totalIncome) &&
        Objects.equals(this.totalSpending, cashFlowList.totalSpending) &&
        Objects.equals(this.totalBalance, cashFlowList.totalBalance);
  }

  @Override
  public int hashCode() {
    return Objects.hash(cashFlows, totalIncome, totalSpending, totalBalance);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CashFlowList {\n");
    
    sb.append("    cashFlows: ").append(toIndentedString(cashFlows)).append("\n");
    sb.append("    totalIncome: ").append(toIndentedString(totalIncome)).append("\n");
    sb.append("    totalSpending: ").append(toIndentedString(totalSpending)).append("\n");
    sb.append("    totalBalance: ").append(toIndentedString(totalBalance)).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(java.lang.Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }

}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy