![JAR search and dependency download from the Maven repository](/logo.png)
com.factset.sdk.FactSetFundamentals.models.Financials Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of factsetfundamentals Show documentation
Show all versions of factsetfundamentals Show documentation
FactSet SDK for Java - factsetfundamentals
/*
* FactSet Fundamentals API
* Gain access to current, comprehensive, and comparative information on securities in worldwide developed and emerging markets. Composed of annual and interim/quarterly data, detailed historical financial statement content, per-share data, and calculated ratios, FactSet Fundamentals provides you with the information you need for a global investment perspective.This API is rate-limited to 10 requests per second and 10 concurrent requests per user.
*
* The version of the OpenAPI document: 2.2.0
* Contact: [email protected]
*
* 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.factset.sdk.FactSetFundamentals.models;
import java.util.Objects;
import java.util.Arrays;
import java.util.Map;
import java.util.HashMap;
import com.factset.sdk.FactSetFundamentals.models.Item;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.openapitools.jackson.nullable.JsonNullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import org.openapitools.jackson.nullable.JsonNullable;
import java.util.NoSuchElementException;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.factset.sdk.FactSetFundamentals.JSON;
/**
* Financials
*/
@JsonPropertyOrder({
Financials.JSON_PROPERTY_REQUEST_ID,
Financials.JSON_PROPERTY_FSYM_ID,
Financials.JSON_PROPERTY_REPORT_DATE,
Financials.JSON_PROPERTY_FISCAL_YEAR,
Financials.JSON_PROPERTY_ITEMS
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Financials implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_REQUEST_ID = "requestId";
private String requestId;
public static final String JSON_PROPERTY_FSYM_ID = "fsymId";
private JsonNullable fsymId = JsonNullable.undefined();
public static final String JSON_PROPERTY_REPORT_DATE = "reportDate";
private java.util.List reportDate = null;
public static final String JSON_PROPERTY_FISCAL_YEAR = "fiscalYear";
private java.util.List fiscalYear = null;
public static final String JSON_PROPERTY_ITEMS = "items";
private java.util.List- items = null;
public Financials() {
}
public Financials requestId(String requestId) {
this.requestId = requestId;
return this;
}
/**
* Identifier that was used for the request.
* @return requestId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "IBM-US", value = "Identifier that was used for the request.")
@JsonProperty(JSON_PROPERTY_REQUEST_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getRequestId() {
return requestId;
}
@JsonProperty(JSON_PROPERTY_REQUEST_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setRequestId(String requestId) {
this.requestId = requestId;
}
public Financials fsymId(String fsymId) {
this.fsymId = JsonNullable.
of(fsymId);
return this;
}
/**
* FactSet Regional Security Identifier. Six alpha-numeric characters, excluding vowels, with an -R suffix (XXXXXX-R). Identifies the security's best regional security data series per currency. For equities, all primary listings per region and currency are allocated a regional-level permanent identifier. The regional-level permanent identifier will be available once a SEDOL representing the region/currency has been allocated and the identifiers are on FactSet.
* @return fsymId
**/
@jakarta.annotation.Nullable
@ApiModelProperty(example = "SJY281-R", value = "FactSet Regional Security Identifier. Six alpha-numeric characters, excluding vowels, with an -R suffix (XXXXXX-R). Identifies the security's best regional security data series per currency. For equities, all primary listings per region and currency are allocated a regional-level permanent identifier. The regional-level permanent identifier will be available once a SEDOL representing the region/currency has been allocated and the identifiers are on FactSet.")
@JsonIgnore
public String getFsymId() {
return fsymId.orElse(null);
}
@JsonProperty(JSON_PROPERTY_FSYM_ID)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public JsonNullable getFsymId_JsonNullable() {
return fsymId;
}
@JsonProperty(JSON_PROPERTY_FSYM_ID)
public void setFsymId_JsonNullable(JsonNullable fsymId) {
this.fsymId = fsymId;
}
public void setFsymId(String fsymId) {
this.fsymId = JsonNullable.of(fsymId);
}
public Financials reportDate(java.util.List reportDate) {
this.reportDate = reportDate;
return this;
}
public Financials addReportDateItem(String reportDateItem) {
if (this.reportDate == null) {
this.reportDate = new java.util.ArrayList<>();
}
this.reportDate.add(reportDateItem);
return this;
}
/**
* Get reportDate
* @return reportDate
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_REPORT_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.List getReportDate() {
return reportDate;
}
@JsonProperty(JSON_PROPERTY_REPORT_DATE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setReportDate(java.util.List reportDate) {
this.reportDate = reportDate;
}
public Financials fiscalYear(java.util.List fiscalYear) {
this.fiscalYear = fiscalYear;
return this;
}
public Financials addFiscalYearItem(String fiscalYearItem) {
if (this.fiscalYear == null) {
this.fiscalYear = new java.util.ArrayList<>();
}
this.fiscalYear.add(fiscalYearItem);
return this;
}
/**
* Get fiscalYear
* @return fiscalYear
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_FISCAL_YEAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.List getFiscalYear() {
return fiscalYear;
}
@JsonProperty(JSON_PROPERTY_FISCAL_YEAR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setFiscalYear(java.util.List fiscalYear) {
this.fiscalYear = fiscalYear;
}
public Financials items(java.util.List- items) {
this.items = items;
return this;
}
public Financials addItemsItem(Item itemsItem) {
if (this.items == null) {
this.items = new java.util.ArrayList<>();
}
this.items.add(itemsItem);
return this;
}
/**
* Get items
* @return items
**/
@jakarta.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ITEMS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public java.util.List
- getItems() {
return items;
}
@JsonProperty(JSON_PROPERTY_ITEMS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setItems(java.util.List
- items) {
this.items = items;
}
/**
* Return true if this Financials object is equal to o.
*/
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Financials financials = (Financials) o;
return Objects.equals(this.requestId, financials.requestId) &&
equalsNullable(this.fsymId, financials.fsymId) &&
Objects.equals(this.reportDate, financials.reportDate) &&
Objects.equals(this.fiscalYear, financials.fiscalYear) &&
Objects.equals(this.items, financials.items);
}
private static
boolean equalsNullable(JsonNullable a, JsonNullable b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get()));
}
@Override
public int hashCode() {
return Objects.hash(requestId, hashCodeNullable(fsymId), reportDate, fiscalYear, items);
}
private static int hashCodeNullable(JsonNullable a) {
if (a == null) {
return 1;
}
return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class Financials {\n");
sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n");
sb.append(" fsymId: ").append(toIndentedString(fsymId)).append("\n");
sb.append(" reportDate: ").append(toIndentedString(reportDate)).append("\n");
sb.append(" fiscalYear: ").append(toIndentedString(fiscalYear)).append("\n");
sb.append(" items: ").append(toIndentedString(items)).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 ");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy