/*
 * 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.CraVoaReportAttributes;
import com.plaid.client.model.CraVoaReportItem;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import java.math.BigDecimal;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;

/**
 * An object representing a VOA report.
 */
@ApiModel(description = "An object representing a VOA report.")
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-12-11T18:58:39.328614Z[Etc/UTC]")
public class CraVoaReport {
  public static final String SERIALIZED_NAME_GENERATED_TIME = "generated_time";
  @SerializedName(SERIALIZED_NAME_GENERATED_TIME)
  private OffsetDateTime generatedTime;

  public static final String SERIALIZED_NAME_DAYS_REQUESTED = "days_requested";
  @SerializedName(SERIALIZED_NAME_DAYS_REQUESTED)
  private Double daysRequested;

  public static final String SERIALIZED_NAME_ITEMS = "items";
  @SerializedName(SERIALIZED_NAME_ITEMS)
  private List<CraVoaReportItem> items = new ArrayList<>();

  public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes";
  @SerializedName(SERIALIZED_NAME_ATTRIBUTES)
  private CraVoaReportAttributes attributes;


  public CraVoaReport generatedTime(OffsetDateTime generatedTime) {
    
    this.generatedTime = generatedTime;
    return this;
  }

   /**
   * The date and time when the VOA Report was created, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (e.g. \&quot;2018-04-12T03:32:11Z\&quot;).
   * @return generatedTime
  **/
  @ApiModelProperty(required = true, value = "The date and time when the VOA Report was created, in [ISO 8601](https://wikipedia.org/wiki/ISO_8601) format (e.g. \"2018-04-12T03:32:11Z\").")

  public OffsetDateTime getGeneratedTime() {
    return generatedTime;
  }


  public void setGeneratedTime(OffsetDateTime generatedTime) {
    this.generatedTime = generatedTime;
  }


  public CraVoaReport daysRequested(Double daysRequested) {
    
    this.daysRequested = daysRequested;
    return this;
  }

   /**
   * The number of days of transaction history that the VOA report covers.
   * @return daysRequested
  **/
  @ApiModelProperty(required = true, value = "The number of days of transaction history that the VOA report covers.")

  public Double getDaysRequested() {
    return daysRequested;
  }


  public void setDaysRequested(Double daysRequested) {
    this.daysRequested = daysRequested;
  }


  public CraVoaReport items(List<CraVoaReportItem> items) {
    
    this.items = items;
    return this;
  }

  public CraVoaReport addItemsItem(CraVoaReportItem itemsItem) {
    this.items.add(itemsItem);
    return this;
  }

   /**
   * Data returned by Plaid about each of the Items included in the Base Report.
   * @return items
  **/
  @ApiModelProperty(required = true, value = "Data returned by Plaid about each of the Items included in the Base Report.")

  public List<CraVoaReportItem> getItems() {
    return items;
  }


  public void setItems(List<CraVoaReportItem> items) {
    this.items = items;
  }


  public CraVoaReport attributes(CraVoaReportAttributes attributes) {
    
    this.attributes = attributes;
    return this;
  }

   /**
   * Get attributes
   * @return attributes
  **/
  @ApiModelProperty(required = true, value = "")

  public CraVoaReportAttributes getAttributes() {
    return attributes;
  }


  public void setAttributes(CraVoaReportAttributes attributes) {
    this.attributes = attributes;
  }


  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    CraVoaReport craVoaReport = (CraVoaReport) o;
    return Objects.equals(this.generatedTime, craVoaReport.generatedTime) &&
        Objects.equals(this.daysRequested, craVoaReport.daysRequested) &&
        Objects.equals(this.items, craVoaReport.items) &&
        Objects.equals(this.attributes, craVoaReport.attributes);
  }

  @Override
  public int hashCode() {
    return Objects.hash(generatedTime, daysRequested, items, attributes);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class CraVoaReport {\n");
    sb.append("    generatedTime: ").append(toIndentedString(generatedTime)).append("\n");
    sb.append("    daysRequested: ").append(toIndentedString(daysRequested)).append("\n");
    sb.append("    items: ").append(toIndentedString(items)).append("\n");
    sb.append("    attributes: ").append(toIndentedString(attributes)).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    ");
  }

}

