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

io.swagger.client.model.DailyBalanceList 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.DailyBalance;
import io.swagger.client.model.Paging;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

/**
 * Contains a list of daily balances
 */
@ApiModel(description = "Contains a list of daily balances")
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2019-02-05T12:19:21.458Z")
public class DailyBalanceList {
  @SerializedName("latestCommonBalanceTimestamp")
  private String latestCommonBalanceTimestamp = null;

  @SerializedName("dailyBalances")
  private List dailyBalances = new ArrayList();

  @SerializedName("paging")
  private Paging paging = null;

  public DailyBalanceList latestCommonBalanceTimestamp(String latestCommonBalanceTimestamp) {
    this.latestCommonBalanceTimestamp = latestCommonBalanceTimestamp;
    return this;
  }

   /**
   * The latestCommonBalanceTimestamp is the latest timestamp at which all given accounts have been up to date. Only balances with their date being smaller than the latestCommonBalanceTimestamp are reliable. Example: A user has two accounts: A (last update today, so balance from today) and B (last update yesterday, so balance from yesterday). The service /accounts/dailyBalances will return a balance for yesterday and for today, with the info latestCommonBalanceTimestamp=yesterday. Since account B might have received transactions this morning, today's balance might be wrong. So either make sure that all selected accounts are up to date before calling this service, or use the results carefully in combination with the latestCommonBalanceTimestamp. The format is 'YYYY-MM-DD HH:MM:SS.SSS' (german time).
   * @return latestCommonBalanceTimestamp
  **/
  @ApiModelProperty(example = "2018-01-01 00:00:00.000", value = "The latestCommonBalanceTimestamp is the latest timestamp at which all given accounts have been up to date. Only balances with their date being smaller than the latestCommonBalanceTimestamp are reliable. Example: A user has two accounts: A (last update today, so balance from today) and B (last update yesterday, so balance from yesterday). The service /accounts/dailyBalances will return a balance for yesterday and for today, with the info latestCommonBalanceTimestamp=yesterday. Since account B might have received transactions this morning, today's balance might be wrong. So either make sure that all selected accounts are up to date before calling this service, or use the results carefully in combination with the latestCommonBalanceTimestamp. The format is 'YYYY-MM-DD HH:MM:SS.SSS' (german time).")
  public String getLatestCommonBalanceTimestamp() {
    return latestCommonBalanceTimestamp;
  }

  public void setLatestCommonBalanceTimestamp(String latestCommonBalanceTimestamp) {
    this.latestCommonBalanceTimestamp = latestCommonBalanceTimestamp;
  }

  public DailyBalanceList dailyBalances(List dailyBalances) {
    this.dailyBalances = dailyBalances;
    return this;
  }

  public DailyBalanceList addDailyBalancesItem(DailyBalance dailyBalancesItem) {
    this.dailyBalances.add(dailyBalancesItem);
    return this;
  }

   /**
   * List of daily balances for specified accounts and dates range
   * @return dailyBalances
  **/
  @ApiModelProperty(required = true, value = "List of daily balances for specified accounts and dates range")
  public List getDailyBalances() {
    return dailyBalances;
  }

  public void setDailyBalances(List dailyBalances) {
    this.dailyBalances = dailyBalances;
  }

  public DailyBalanceList paging(Paging paging) {
    this.paging = paging;
    return this;
  }

   /**
   * Information for pagination
   * @return paging
  **/
  @ApiModelProperty(required = true, value = "Information for pagination")
  public Paging getPaging() {
    return paging;
  }

  public void setPaging(Paging paging) {
    this.paging = paging;
  }


  @Override
  public boolean equals(java.lang.Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    DailyBalanceList dailyBalanceList = (DailyBalanceList) o;
    return Objects.equals(this.latestCommonBalanceTimestamp, dailyBalanceList.latestCommonBalanceTimestamp) &&
        Objects.equals(this.dailyBalances, dailyBalanceList.dailyBalances) &&
        Objects.equals(this.paging, dailyBalanceList.paging);
  }

  @Override
  public int hashCode() {
    return Objects.hash(latestCommonBalanceTimestamp, dailyBalances, paging);
  }


  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class DailyBalanceList {\n");
    
    sb.append("    latestCommonBalanceTimestamp: ").append(toIndentedString(latestCommonBalanceTimestamp)).append("\n");
    sb.append("    dailyBalances: ").append(toIndentedString(dailyBalances)).append("\n");
    sb.append("    paging: ").append(toIndentedString(paging)).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