com.factset.sdk.CapitalStructureReportBuilder.api.CapitalStructureApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of capitalstructurereportbuilder Show documentation
Show all versions of capitalstructurereportbuilder Show documentation
FactSet SDK for Java - capitalstructurereportbuilder
The newest version!
package com.factset.sdk.CapitalStructureReportBuilder.api;
import com.factset.sdk.CapitalStructureReportBuilder.ApiException;
import com.factset.sdk.CapitalStructureReportBuilder.ApiClient;
import com.factset.sdk.CapitalStructureReportBuilder.ApiResponse;
import com.factset.sdk.CapitalStructureReportBuilder.Configuration;
import com.factset.sdk.CapitalStructureReportBuilder.Pair;
import jakarta.ws.rs.core.GenericType;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import com.factset.sdk.CapitalStructureReportBuilder.models.ErrorResponse;
import com.factset.sdk.CapitalStructureReportBuilder.models.Response;
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class CapitalStructureApi {
private ApiClient apiClient;
public CapitalStructureApi() {
this(Configuration.getDefaultApiClient());
}
public CapitalStructureApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
private static final Map getDcsDetailResponseTypeMap = new HashMap();
static {
getDcsDetailResponseTypeMap.put(200, new GenericType(){});
getDcsDetailResponseTypeMap.put(400, new GenericType(){});
getDcsDetailResponseTypeMap.put(403, new GenericType(){});
getDcsDetailResponseTypeMap.put(404, new GenericType(){});
getDcsDetailResponseTypeMap.put(500, new GenericType(){});
}
private static final Map getDcsSummaryResponseTypeMap = new HashMap();
static {
getDcsSummaryResponseTypeMap.put(200, new GenericType(){});
getDcsSummaryResponseTypeMap.put(400, new GenericType(){});
getDcsSummaryResponseTypeMap.put(403, new GenericType(){});
getDcsSummaryResponseTypeMap.put(404, new GenericType(){});
getDcsSummaryResponseTypeMap.put(500, new GenericType(){});
}
private static final Map getSourceOfCapitalResponseTypeMap = new HashMap();
static {
getSourceOfCapitalResponseTypeMap.put(200, new GenericType(){});
getSourceOfCapitalResponseTypeMap.put(400, new GenericType(){});
getSourceOfCapitalResponseTypeMap.put(403, new GenericType(){});
getSourceOfCapitalResponseTypeMap.put(404, new GenericType(){});
getSourceOfCapitalResponseTypeMap.put(500, new GenericType(){});
}
/**
* Get the API client
*
* @return API client
*/
public ApiClient getApiClient() {
return apiClient;
}
/**
* Set the API client
*
* @param apiClient an instance of API client
*/
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Debt Capital Structure (DCS)
* Get the DCS Detail component's data
* @param id Company ticker (required)
* @param schema The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns (optional, default to table_parent_child_columns)
* @return Response
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 Expected response; returns JSON data containing STACH 2.0 row organized package format * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
400 Bad Request. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
401 Missing or invalid authentication. Ensure you are logged in and have successfully generated an API KEY for the IP range you are connecting from. For further assistance, file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
403 User is forbidden access with current credentials. Reach out to your local FactSet Account Manager for assistance, or file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
404 Not found. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
429 Too many requests - this API is rate-limited to 20 requests per second. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
500 Server error. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
503 Service unavailable. Typically a timeout, or result of a rejected request to prevent service overload. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
*/
public Response getDcsDetail(String id, String schema) throws ApiException {
return getDcsDetailWithHttpInfo(id, schema).getData();
}
/**
* Debt Capital Structure (DCS)
* Get the DCS Detail component's data
* @param id Company ticker (required)
* @param schema The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns (optional, default to table_parent_child_columns)
* @return ApiResponse<Response>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 Expected response; returns JSON data containing STACH 2.0 row organized package format * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
400 Bad Request. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
401 Missing or invalid authentication. Ensure you are logged in and have successfully generated an API KEY for the IP range you are connecting from. For further assistance, file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
403 User is forbidden access with current credentials. Reach out to your local FactSet Account Manager for assistance, or file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
404 Not found. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
429 Too many requests - this API is rate-limited to 20 requests per second. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
500 Server error. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
503 Service unavailable. Typically a timeout, or result of a rejected request to prevent service overload. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
*/
public ApiResponse getDcsDetailWithHttpInfo(String id, String schema) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getDcsDetail");
}
// create path and map variables
String localVarPath = "/dcs-detail";
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarCookieParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "id", id));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "schema", schema));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" };
ApiResponse<
Response
> apiResponse = apiClient.invokeAPI("CapitalStructureApi.getDcsDetail", localVarPath, "GET", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, getDcsDetailResponseTypeMap, false);
return apiResponse;
}
/**
* Debt Capital Structure (DCS) Summary
* Get the DCS Summary component's data
* @param id Company ticker (required)
* @param schema The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns (optional, default to table_parent_child_columns)
* @return Response
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 Expected response; returns JSON data containing STACH 2.0 row organized package format * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
400 Bad Request. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
401 Missing or invalid authentication. Ensure you are logged in and have successfully generated an API KEY for the IP range you are connecting from. For further assistance, file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
403 User is forbidden access with current credentials. Reach out to your local FactSet Account Manager for assistance, or file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
404 Not found. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
429 Too many requests - this API is rate-limited to 20 requests per second. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
500 Server error. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
503 Service unavailable. Typically a timeout, or result of a rejected request to prevent service overload. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
*/
public Response getDcsSummary(String id, String schema) throws ApiException {
return getDcsSummaryWithHttpInfo(id, schema).getData();
}
/**
* Debt Capital Structure (DCS) Summary
* Get the DCS Summary component's data
* @param id Company ticker (required)
* @param schema The schema that the data is returned as. The following are descriptions for the accepted values: - table_group_level - STACH 2.0 row organized package format with parent-child relationships represented using STACH group level cell metadata - table_parent_child_columns - STACH 2.0 row organized package format with parent-child relationships represented using STACH parent-child columns (optional, default to table_parent_child_columns)
* @return ApiResponse<Response>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 Expected response; returns JSON data containing STACH 2.0 row organized package format * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
400 Bad Request. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
401 Missing or invalid authentication. Ensure you are logged in and have successfully generated an API KEY for the IP range you are connecting from. For further assistance, file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
403 User is forbidden access with current credentials. Reach out to your local FactSet Account Manager for assistance, or file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
404 Not found. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
429 Too many requests - this API is rate-limited to 20 requests per second. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
500 Server error. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
503 Service unavailable. Typically a timeout, or result of a rejected request to prevent service overload. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
*/
public ApiResponse getDcsSummaryWithHttpInfo(String id, String schema) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getDcsSummary");
}
// create path and map variables
String localVarPath = "/dcs-summary";
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarCookieParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "id", id));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "schema", schema));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" };
ApiResponse<
Response
> apiResponse = apiClient.invokeAPI("CapitalStructureApi.getDcsSummary", localVarPath, "GET", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, getDcsSummaryResponseTypeMap, false);
return apiResponse;
}
/**
* Source of Capital
* Get the Source of Capital component's data
* @param id Company ticker (required)
* @return Response
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 Expected response; returns JSON data containing STACH 2.0 row organized package format * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
400 Bad Request. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
401 Missing or invalid authentication. Ensure you are logged in and have successfully generated an API KEY for the IP range you are connecting from. For further assistance, file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
403 User is forbidden access with current credentials. Reach out to your local FactSet Account Manager for assistance, or file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
404 Not found. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
429 Too many requests - this API is rate-limited to 20 requests per second. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
500 Server error. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
503 Service unavailable. Typically a timeout, or result of a rejected request to prevent service overload. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
*/
public Response getSourceOfCapital(String id) throws ApiException {
return getSourceOfCapitalWithHttpInfo(id).getData();
}
/**
* Source of Capital
* Get the Source of Capital component's data
* @param id Company ticker (required)
* @return ApiResponse<Response>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 Expected response; returns JSON data containing STACH 2.0 row organized package format * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
400 Bad Request. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * Api-Supported-Versions - Supported API major versions
* Api-Version - API version (semantic versioning)
* X-DataDirect-Request-Key - FactSet request ID
401 Missing or invalid authentication. Ensure you are logged in and have successfully generated an API KEY for the IP range you are connecting from. For further assistance, file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
403 User is forbidden access with current credentials. Reach out to your local FactSet Account Manager for assistance, or file an issue under \"Connectivty - 401 or 403 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
404 Not found. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
429 Too many requests - this API is rate-limited to 20 requests per second. For further assistance, file an issue under \"Workflow & Throttling - 400 or 429 Response\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
500 Server error. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
503 Service unavailable. Typically a timeout, or result of a rejected request to prevent service overload. For further assistance, file an issue under \"Performance - 404 and 500 Responses\" using `Report Issue` at the top of this page, including the X-DataDirect-Request-Key from the header to assist in troubleshooting. * X-DataDirect-Request-Key - FactSet request ID
*/
public ApiResponse getSourceOfCapitalWithHttpInfo(String id) throws ApiException {
Object localVarPostBody = null;
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException(400, "Missing the required parameter 'id' when calling getSourceOfCapital");
}
// create path and map variables
String localVarPath = "/source-of-capital";
// query params
java.util.List localVarQueryParams = new java.util.ArrayList();
java.util.Map localVarHeaderParams = new java.util.HashMap();
java.util.Map localVarCookieParams = new java.util.HashMap();
java.util.Map localVarFormParams = new java.util.HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "id", id));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { "FactSetApiKey", "FactSetOAuth2", "FactSetOAuth2Client" };
ApiResponse<
Response
> apiResponse = apiClient.invokeAPI("CapitalStructureApi.getSourceOfCapital", localVarPath, "GET", localVarQueryParams, localVarPostBody,
localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType,
localVarAuthNames, getSourceOfCapitalResponseTypeMap, false);
return apiResponse;
}
}