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

com.factset.sdk.FactSetPrivateMarkets.models.FinancialsRequest Maven / Gradle / Ivy

The newest version!
/*
 * FactSet Private Markets API
 * FactSet Private Markets API encompasses Private Company Financials data to start. Private Company firmographics can be found in the FactSet Entity API. The future plans of this service will include additional Private Markets data, such as Private Equity/Venture Capital.

Rate limit is set to 10 requests per second.

* * The version of the OpenAPI document: 1.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.FactSetPrivateMarkets.models; import java.util.Objects; import java.util.Arrays; import java.util.Map; import java.util.HashMap; 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 java.io.Serializable; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.factset.sdk.FactSetPrivateMarkets.JSON; /** * Entity Reference Request Body */ @ApiModel(description = "Entity Reference Request Body") @JsonPropertyOrder({ FinancialsRequest.JSON_PROPERTY_IDS, FinancialsRequest.JSON_PROPERTY_FIELDS, FinancialsRequest.JSON_PROPERTY_START_DATE, FinancialsRequest.JSON_PROPERTY_END_DATE }) @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FinancialsRequest implements Serializable { private static final long serialVersionUID = 1L; public static final String JSON_PROPERTY_IDS = "ids"; private java.util.List ids = new java.util.ArrayList<>(); public static final String JSON_PROPERTY_FIELDS = "fields"; private java.util.List fields = null; public static final String JSON_PROPERTY_START_DATE = "startDate"; private String startDate; public static final String JSON_PROPERTY_END_DATE = "endDate"; private String endDate; public FinancialsRequest() { } @JsonCreator public FinancialsRequest( @JsonProperty(value=JSON_PROPERTY_IDS, required=true) java.util.List ids, @JsonProperty(value=JSON_PROPERTY_START_DATE, required=true) String startDate ) { this(); this.ids = ids; this.startDate = startDate; } public FinancialsRequest ids(java.util.List ids) { this.ids = ids; return this; } public FinancialsRequest addIdsItem(String idsItem) { this.ids.add(idsItem); return this; } /** * Security or Entity identifiers. FactSet Identifiers, tickers, CUSIP and SEDOL are accepted input. * @return ids **/ @jakarta.annotation.Nonnull @ApiModelProperty(example = "[\"000BFG-E\",\"000BGZ-E\",\"000C64-E\"]", required = true, value = "Security or Entity identifiers. FactSet Identifiers, tickers, CUSIP and SEDOL are accepted input. ") @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public java.util.List getIds() { return ids; } @JsonProperty(JSON_PROPERTY_IDS) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setIds(java.util.List ids) { this.ids = ids; } public FinancialsRequest fields(java.util.List fields) { this.fields = fields; return this; } public FinancialsRequest addFieldsItem(String fieldsItem) { if (this.fields == null) { this.fields = new java.util.ArrayList<>(); } this.fields.add(fieldsItem); return this; } /** * Private Markets Financials Fields. * @return fields **/ @jakarta.annotation.Nullable @ApiModelProperty(example = "[\"assets\",\"ebitda\"]", value = "Private Markets Financials Fields. ") @JsonProperty(JSON_PROPERTY_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public java.util.List getFields() { return fields; } @JsonProperty(JSON_PROPERTY_FIELDS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setFields(java.util.List fields) { this.fields = fields; } public FinancialsRequest startDate(String startDate) { this.startDate = startDate; return this; } /** * The start date requested for a given date range in **YYYY-MM-DD** format. If left blank, the API will default to previous close. Future dates (T+1) are not accepted in this endpoint. * @return startDate **/ @jakarta.annotation.Nonnull @ApiModelProperty(example = "2019-01-01", required = true, value = "The start date requested for a given date range in **YYYY-MM-DD** format. If left blank, the API will default to previous close. Future dates (T+1) are not accepted in this endpoint. ") @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public String getStartDate() { return startDate; } @JsonProperty(JSON_PROPERTY_START_DATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) public void setStartDate(String startDate) { this.startDate = startDate; } public FinancialsRequest endDate(String endDate) { this.endDate = endDate; return this; } /** * The end date requested for a given date range in **YYYY-MM-DD** format. If left blank, the API will default to previous close. Future dates (T+1) are not accepted in this endpoint. * @return endDate **/ @jakarta.annotation.Nullable @ApiModelProperty(example = "2019-12-31", value = "The end date requested for a given date range in **YYYY-MM-DD** format. If left blank, the API will default to previous close. Future dates (T+1) are not accepted in this endpoint. ") @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public String getEndDate() { return endDate; } @JsonProperty(JSON_PROPERTY_END_DATE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEndDate(String endDate) { this.endDate = endDate; } /** * Return true if this financialsRequest object is equal to o. */ @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } FinancialsRequest financialsRequest = (FinancialsRequest) o; return Objects.equals(this.ids, financialsRequest.ids) && Objects.equals(this.fields, financialsRequest.fields) && Objects.equals(this.startDate, financialsRequest.startDate) && Objects.equals(this.endDate, financialsRequest.endDate); } @Override public int hashCode() { return Objects.hash(ids, fields, startDate, endDate); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FinancialsRequest {\n"); sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); sb.append(" fields: ").append(toIndentedString(fields)).append("\n"); sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); sb.append(" endDate: ").append(toIndentedString(endDate)).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 - 2024 Weber Informatics LLC | Privacy Policy