Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/*
* Zuora API Reference
* REST API reference for the Zuora Billing, Payments, and Central Platform! Check out the [REST API Overview](https://www.zuora.com/developer/api-references/api/overview/).
*
* The version of the OpenAPI document: 2024-05-20
* 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.zuora.api;
import com.zuora.ApiCallback;
import com.zuora.ApiClient;
import com.zuora.ApiException;
import com.zuora.ApiResponse;
import com.zuora.Configuration;
import com.zuora.Pair;
import com.zuora.ProgressRequestBody;
import com.zuora.ProgressResponseBody;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
import com.zuora.model.AuthenticationErrorResponse;
import com.zuora.model.AuthenticationFailResponse;
import com.zuora.model.AuthenticationSuccessResponse;
import com.zuora.model.Bi3ViewsColumnsDescriptionResponse;
import com.zuora.model.Bi3ViewsColumnsErrorResponse;
import com.zuora.model.Bi3ViewsColumnsServerErrorResponse;
import com.zuora.model.Bi3ViewsCountSuccessResponse;
import com.zuora.model.Bi3ViewsErrorResponse;
import com.zuora.model.Bi3ViewsNoDataResponse;
import com.zuora.model.Bi3ViewsServerErrorResponse;
import com.zuora.model.Bi3ViewsStatusErrorResponse;
import com.zuora.model.Bi3ViewsStatusServerErrorResponse;
import com.zuora.model.Bi3ViewsTaskStatusResponse;
import com.zuora.model.Bi3ViewsV2SuccessResponse;
import com.zuora.model.BiViews1ErrorResponse;
import com.zuora.model.BiViews1SelectSuccessResponse;
import com.zuora.model.BiViews1SuccessResponse;
import java.io.File;
import com.zuora.model.GetBIViewStatus200ResponseInner;
import java.time.LocalDate;
import com.zuora.model.MappingResponse;
import com.zuora.model.ReportDownloadErrorResponse;
import com.zuora.model.ReportFileNotExistsResponse;
import com.zuora.model.ReportListErrorResponse;
import com.zuora.model.ReportListResponse;
import com.zuora.model.SignedUrlInvalidReportResponse;
import com.zuora.model.SignedUrlReportNotFoundResponse;
import com.zuora.model.SignedUrlSuccessResponse;
import com.zuora.model.StageErrorNoRecordResponse;
import com.zuora.model.StageErrorResponse;
import com.zuora.model.UploadCsvErrorResponse;
import com.zuora.model.UploadCsvErrorStatusResponse;
import com.zuora.model.UploadCsvResponse;
import com.zuora.model.UploadCsvStatusResponse;
import com.zuora.model.UploadFileErrorResponse;
import com.zuora.model.UploadFileResponse;
import com.zuora.model.UploadFileStatusErrorResponse;
import com.zuora.model.UploadFileStatusNoContent;
import com.zuora.model.UploadFileStatusResponse;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class RevenueIntegrationApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public RevenueIntegrationApi() {
this(Configuration.getDefaultApiClient());
}
public RevenueIntegrationApi(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public ApiClient getApiClient() {
return localVarApiClient;
}
public void setApiClient(ApiClient apiClient) {
this.localVarApiClient = apiClient;
}
public int getHostIndex() {
return localHostIndex;
}
public void setHostIndex(int hostIndex) {
this.localHostIndex = hostIndex;
}
public String getCustomBaseUrl() {
return localCustomBaseUrl;
}
public void setCustomBaseUrl(String customBaseUrl) {
this.localCustomBaseUrl = customBaseUrl;
}
private okhttp3.Call describeViewColumnsCall(String viewName, String token, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v2/biviews/{view_name}/describe-columns"
.replace("{" + "view_name" + "}", localVarApiClient.escapeString(viewName.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (token != null) {
localVarHeaderParams.put("Token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call describeViewColumnsValidateBeforeCall(String viewName, String token, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'viewName' is set
if (viewName == null) {
throw new ApiException("Missing the required parameter 'viewName' when calling describeViewColumns(Async)");
}
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling describeViewColumns(Async)");
}
return describeViewColumnsCall(viewName, token, _callback);
}
/**
*
* Use this API to get the table description for views.
* @param viewName (required)
* @param token (required)
* @return List<Bi3ViewsColumnsDescriptionResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Table attributes retrieved successfully.
-
204
No Content - No data found for the view.
-
400
Invalid user or template name.
-
500
Server error - Unable to process the request.
-
*/
protected List describeViewColumns(String viewName, String token) throws ApiException {
ApiResponse> localVarResp = describeViewColumnsWithHttpInfo(viewName, token);
return localVarResp.getData();
}
private ApiResponse> describeViewColumnsWithHttpInfo(String viewName, String token) throws ApiException {
okhttp3.Call localVarCall = describeViewColumnsValidateBeforeCall(viewName, token, null);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call describeViewColumnsAsync(String viewName, String token, final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = describeViewColumnsValidateBeforeCall(viewName, token, _callback);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class DescribeViewColumnsApi {
private final String viewName;
private final String token;
private DescribeViewColumnsApi(String viewName, String token) {
this.viewName = viewName;
this.token = token;
}
/**
* Build call for describeViewColumns
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Table attributes retrieved successfully.
-
204
No Content - No data found for the view.
-
400
Invalid user or template name.
-
500
Server error - Unable to process the request.
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return describeViewColumnsCall(viewName, token, _callback);
}
/**
* Execute describeViewColumns request
* @return List<Bi3ViewsColumnsDescriptionResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Table attributes retrieved successfully.
-
204
No Content - No data found for the view.
-
400
Invalid user or template name.
-
500
Server error - Unable to process the request.
-
*/
public List execute() throws ApiException {
ApiResponse> localVarResp = describeViewColumnsWithHttpInfo(viewName, token);
return localVarResp.getData();
}
/**
* Execute describeViewColumns request with HTTP info returned
* @return ApiResponse<List<Bi3ViewsColumnsDescriptionResponse>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Table attributes retrieved successfully.
-
204
No Content - No data found for the view.
-
400
Invalid user or template name.
-
500
Server error - Unable to process the request.
-
*/
private ApiResponse> executeWithHttpInfo() throws ApiException {
return describeViewColumnsWithHttpInfo(viewName, token);
}
/**
* Execute describeViewColumns request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Table attributes retrieved successfully.
-
204
No Content - No data found for the view.
-
400
Invalid user or template name.
-
500
Server error - Unable to process the request.
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException {
return describeViewColumnsAsync(viewName, token, _callback);
}
}
/**
*
* Use this API to get the table description for views.
* @param viewName (required)
* @param token (required)
* @return DescribeViewColumnsApi
*/
public DescribeViewColumnsApi describeViewColumnsApi(String viewName, String token) {
return new DescribeViewColumnsApi(viewName, token);
}
private okhttp3.Call downloadReportCall(String token, String filename, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v1/reports/download/{filename}"
.replace("{" + "filename" + "}", localVarApiClient.escapeString(filename.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (token != null) {
localVarHeaderParams.put("token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call downloadReportValidateBeforeCall(String token, String filename, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling downloadReport(Async)");
}
// verify the required parameter 'filename' is set
if (filename == null) {
throw new ApiException("Missing the required parameter 'filename' when calling downloadReport(Async)");
}
return downloadReportCall(token, filename, _callback);
}
/**
*
* Use this API to Download Reports from RevPro
* @param token Authorization token issued by the authentication API (required)
* @param filename download report name (required)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Operation is successful. Report is downloaded.
-
204
The specified file does not exist in Zuora Revenue.
-
400
Returns if File name doesn't exist in path
-
*/
protected void downloadReport(String token, String filename) throws ApiException {
downloadReportWithHttpInfo(token, filename);
}
private ApiResponse downloadReportWithHttpInfo(String token, String filename) throws ApiException {
okhttp3.Call localVarCall = downloadReportValidateBeforeCall(token, filename, null);
return localVarApiClient.execute(localVarCall);
}
private okhttp3.Call downloadReportAsync(String token, String filename, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = downloadReportValidateBeforeCall(token, filename, _callback);
localVarApiClient.executeAsync(localVarCall, _callback);
return localVarCall;
}
public class DownloadReportApi {
private final String token;
private final String filename;
private DownloadReportApi(String token, String filename) {
this.token = token;
this.filename = filename;
}
/**
* Build call for downloadReport
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Operation is successful. Report is downloaded.
-
204
The specified file does not exist in Zuora Revenue.
-
400
Returns if File name doesn't exist in path
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return downloadReportCall(token, filename, _callback);
}
/**
* Execute downloadReport request
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Operation is successful. Report is downloaded.
-
204
The specified file does not exist in Zuora Revenue.
-
400
Returns if File name doesn't exist in path
-
*/
public void execute() throws ApiException {
downloadReportWithHttpInfo(token, filename);
}
/**
* Execute downloadReport request with HTTP info returned
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Operation is successful. Report is downloaded.
-
204
The specified file does not exist in Zuora Revenue.
-
400
Returns if File name doesn't exist in path
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return downloadReportWithHttpInfo(token, filename);
}
/**
* Execute downloadReport request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Operation is successful. Report is downloaded.
-
204
The specified file does not exist in Zuora Revenue.
-
400
Returns if File name doesn't exist in path
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return downloadReportAsync(token, filename, _callback);
}
}
/**
*
* Use this API to Download Reports from RevPro
* @param token Authorization token issued by the authentication API (required)
* @param filename download report name (required)
* @return DownloadReportApi
*/
public DownloadReportApi downloadReportApi(String token, String filename) {
return new DownloadReportApi(token, filename);
}
private okhttp3.Call generateJWTTokenCall(String role, String clientname, byte[] authorization, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v1/authenticate";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (role != null) {
localVarHeaderParams.put("role", localVarApiClient.parameterToString(role));
}
if (clientname != null) {
localVarHeaderParams.put("clientname", localVarApiClient.parameterToString(clientname));
}
if (authorization != null) {
localVarHeaderParams.put("Authorization", localVarApiClient.parameterToString(authorization));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call generateJWTTokenValidateBeforeCall(String role, String clientname, byte[] authorization, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'role' is set
if (role == null) {
throw new ApiException("Missing the required parameter 'role' when calling generateJWTToken(Async)");
}
// verify the required parameter 'clientname' is set
if (clientname == null) {
throw new ApiException("Missing the required parameter 'clientname' when calling generateJWTToken(Async)");
}
// verify the required parameter 'authorization' is set
if (authorization == null) {
throw new ApiException("Missing the required parameter 'authorization' when calling generateJWTToken(Async)");
}
return generateJWTTokenCall(role, clientname, authorization, _callback);
}
/**
*
* Use this API to Authenticate and get JWToken to push and pull data from your RevPro instance
* @param role (required)
* @param clientname (required)
* @param authorization (required)
* @return AuthenticationSuccessResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Token Generated
* Revpro-Token - The generated JWT token.
400
Invalid Revpro Client name
-
401
Invalid User Name or Password
-
*/
protected AuthenticationSuccessResponse generateJWTToken(String role, String clientname, byte[] authorization) throws ApiException {
ApiResponse localVarResp = generateJWTTokenWithHttpInfo(role, clientname, authorization);
return localVarResp.getData();
}
private ApiResponse generateJWTTokenWithHttpInfo(String role, String clientname, byte[] authorization) throws ApiException {
okhttp3.Call localVarCall = generateJWTTokenValidateBeforeCall(role, clientname, authorization, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call generateJWTTokenAsync(String role, String clientname, byte[] authorization, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = generateJWTTokenValidateBeforeCall(role, clientname, authorization, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class GenerateJWTTokenApi {
private final String role;
private final String clientname;
private final byte[] authorization;
private GenerateJWTTokenApi(String role, String clientname, byte[] authorization) {
this.role = role;
this.clientname = clientname;
this.authorization = authorization;
}
/**
* Build call for generateJWTToken
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Token Generated
* Revpro-Token - The generated JWT token.
400
Invalid Revpro Client name
-
401
Invalid User Name or Password
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return generateJWTTokenCall(role, clientname, authorization, _callback);
}
/**
* Execute generateJWTToken request
* @return AuthenticationSuccessResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Token Generated
* Revpro-Token - The generated JWT token.
400
Invalid Revpro Client name
-
401
Invalid User Name or Password
-
*/
public AuthenticationSuccessResponse execute() throws ApiException {
ApiResponse localVarResp = generateJWTTokenWithHttpInfo(role, clientname, authorization);
return localVarResp.getData();
}
/**
* Execute generateJWTToken request with HTTP info returned
* @return ApiResponse<AuthenticationSuccessResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Token Generated
* Revpro-Token - The generated JWT token.
400
Invalid Revpro Client name
-
401
Invalid User Name or Password
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return generateJWTTokenWithHttpInfo(role, clientname, authorization);
}
/**
* Execute generateJWTToken request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Token Generated
* Revpro-Token - The generated JWT token.
400
Invalid Revpro Client name
-
401
Invalid User Name or Password
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return generateJWTTokenAsync(role, clientname, authorization, _callback);
}
}
/**
*
* Use this API to Authenticate and get JWToken to push and pull data from your RevPro instance
* @param role (required)
* @param clientname (required)
* @param authorization (required)
* @return GenerateJWTTokenApi
*/
public GenerateJWTTokenApi generateJWTTokenApi(String role, String clientname, byte[] authorization) {
return new GenerateJWTTokenApi(role, clientname, authorization);
}
private okhttp3.Call getBIViewCountCall(String viewName, String token, LocalDate fromDate, LocalDate toDate, Integer pagenum, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v2/biviews/count/{view_name}"
.replace("{" + "view_name" + "}", localVarApiClient.escapeString(viewName.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (fromDate != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("fromDate", fromDate));
}
if (toDate != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("toDate", toDate));
}
if (pagenum != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("pagenum", pagenum));
}
if (token != null) {
localVarHeaderParams.put("Token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getBIViewCountValidateBeforeCall(String viewName, String token, LocalDate fromDate, LocalDate toDate, Integer pagenum, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'viewName' is set
if (viewName == null) {
throw new ApiException("Missing the required parameter 'viewName' when calling getBIViewCount(Async)");
}
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling getBIViewCount(Async)");
}
return getBIViewCountCall(viewName, token, fromDate, toDate, pagenum, _callback);
}
/**
*
* Use this API to get the record count for BI Views based on the template name.
* @param viewName (required)
* @param token (required)
* @param fromDate (optional)
* @param toDate (optional)
* @param pagenum (optional)
* @return Bi3ViewsCountSuccessResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getBIViewCountCall(viewName, token, fromDate, toDate, pagenum, _callback);
}
/**
* Execute getBIViewCount request
* @return Bi3ViewsCountSuccessResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Record Count Retrieved Successfully
-
400
Invalid input or missing query parameters
-
500
Server Error - Unable to process the request
-
*/
public Bi3ViewsCountSuccessResponse execute() throws ApiException {
ApiResponse localVarResp = getBIViewCountWithHttpInfo(viewName, token, fromDate, toDate, pagenum);
return localVarResp.getData();
}
/**
* Execute getBIViewCount request with HTTP info returned
* @return ApiResponse<Bi3ViewsCountSuccessResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Record Count Retrieved Successfully
-
400
Invalid input or missing query parameters
-
500
Server Error - Unable to process the request
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return getBIViewCountWithHttpInfo(viewName, token, fromDate, toDate, pagenum);
}
/**
* Execute getBIViewCount request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Record Count Retrieved Successfully
-
400
Invalid input or missing query parameters
-
500
Server Error - Unable to process the request
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getBIViewCountAsync(viewName, token, fromDate, toDate, pagenum, _callback);
}
}
/**
*
* Use this API to get the record count for BI Views based on the template name.
* @param viewName (required)
* @param token (required)
* @return GetBIViewCountApi
*/
public GetBIViewCountApi getBIViewCountApi(String viewName, String token) {
return new GetBIViewCountApi(viewName, token);
}
private okhttp3.Call getBIViewStatusCall(String token, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v2/biviews-status";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (token != null) {
localVarHeaderParams.put("Token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getBIViewStatusValidateBeforeCall(String token, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling getBIViewStatus(Async)");
}
return getBIViewStatusCall(token, _callback);
}
/**
*
* Get details for the active running task.
* @param token (required)
* @return List<GetBIViewStatus200ResponseInner>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Successfully retrieved BI View status.
-
204
No Content - No active tasks found.
-
400
Invalid user id or other parameters.
-
500
Server error - Unable to process the request.
-
*/
protected List getBIViewStatus(String token) throws ApiException {
ApiResponse> localVarResp = getBIViewStatusWithHttpInfo(token);
return localVarResp.getData();
}
private ApiResponse> getBIViewStatusWithHttpInfo(String token) throws ApiException {
okhttp3.Call localVarCall = getBIViewStatusValidateBeforeCall(token, null);
Type localVarReturnType = new TypeToken>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getBIViewStatusAsync(String token, final ApiCallback> _callback) throws ApiException {
okhttp3.Call localVarCall = getBIViewStatusValidateBeforeCall(token, _callback);
Type localVarReturnType = new TypeToken>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class GetBIViewStatusApi {
private final String token;
private GetBIViewStatusApi(String token) {
this.token = token;
}
/**
* Build call for getBIViewStatus
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Successfully retrieved BI View status.
-
204
No Content - No active tasks found.
-
400
Invalid user id or other parameters.
-
500
Server error - Unable to process the request.
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getBIViewStatusCall(token, _callback);
}
/**
* Execute getBIViewStatus request
* @return List<GetBIViewStatus200ResponseInner>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Successfully retrieved BI View status.
-
204
No Content - No active tasks found.
-
400
Invalid user id or other parameters.
-
500
Server error - Unable to process the request.
-
*/
public List execute() throws ApiException {
ApiResponse> localVarResp = getBIViewStatusWithHttpInfo(token);
return localVarResp.getData();
}
/**
* Execute getBIViewStatus request with HTTP info returned
* @return ApiResponse<List<GetBIViewStatus200ResponseInner>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Successfully retrieved BI View status.
-
204
No Content - No active tasks found.
-
400
Invalid user id or other parameters.
-
500
Server error - Unable to process the request.
-
*/
private ApiResponse> executeWithHttpInfo() throws ApiException {
return getBIViewStatusWithHttpInfo(token);
}
/**
* Execute getBIViewStatus request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Successfully retrieved BI View status.
-
204
No Content - No active tasks found.
-
400
Invalid user id or other parameters.
-
500
Server error - Unable to process the request.
-
*/
public okhttp3.Call executeAsync(final ApiCallback> _callback) throws ApiException {
return getBIViewStatusAsync(token, _callback);
}
}
/**
*
* Get details for the active running task.
* @param token (required)
* @return GetBIViewStatusApi
*/
public GetBIViewStatusApi getBIViewStatusApi(String token) {
return new GetBIViewStatusApi(token);
}
private okhttp3.Call getBIViewTaskDetailsCall(String taskId, String token, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v2/biviews-status/{task_id}"
.replace("{" + "task_id" + "}", localVarApiClient.escapeString(taskId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (token != null) {
localVarHeaderParams.put("Token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getBIViewTaskDetailsValidateBeforeCall(String taskId, String token, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'taskId' is set
if (taskId == null) {
throw new ApiException("Missing the required parameter 'taskId' when calling getBIViewTaskDetails(Async)");
}
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling getBIViewTaskDetails(Async)");
}
return getBIViewTaskDetailsCall(taskId, token, _callback);
}
/**
*
* Get details for the active running task by task ID.
* @param taskId (required)
* @param token (required)
* @return Bi3ViewsTaskStatusResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Successfully retrieved task details.
-
204
No Content - Task not found or no details available.
-
400
Invalid user id or other parameters.
-
500
Server error - Unable to process the request.
-
*/
protected Bi3ViewsTaskStatusResponse getBIViewTaskDetails(String taskId, String token) throws ApiException {
ApiResponse localVarResp = getBIViewTaskDetailsWithHttpInfo(taskId, token);
return localVarResp.getData();
}
private ApiResponse getBIViewTaskDetailsWithHttpInfo(String taskId, String token) throws ApiException {
okhttp3.Call localVarCall = getBIViewTaskDetailsValidateBeforeCall(taskId, token, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getBIViewTaskDetailsAsync(String taskId, String token, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getBIViewTaskDetailsValidateBeforeCall(taskId, token, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class GetBIViewTaskDetailsApi {
private final String taskId;
private final String token;
private GetBIViewTaskDetailsApi(String taskId, String token) {
this.taskId = taskId;
this.token = token;
}
/**
* Build call for getBIViewTaskDetails
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Successfully retrieved task details.
-
204
No Content - Task not found or no details available.
-
400
Invalid user id or other parameters.
-
500
Server error - Unable to process the request.
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getBIViewTaskDetailsCall(taskId, token, _callback);
}
/**
* Execute getBIViewTaskDetails request
* @return Bi3ViewsTaskStatusResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Successfully retrieved task details.
-
204
No Content - Task not found or no details available.
-
400
Invalid user id or other parameters.
-
500
Server error - Unable to process the request.
-
*/
public Bi3ViewsTaskStatusResponse execute() throws ApiException {
ApiResponse localVarResp = getBIViewTaskDetailsWithHttpInfo(taskId, token);
return localVarResp.getData();
}
/**
* Execute getBIViewTaskDetails request with HTTP info returned
* @return ApiResponse<Bi3ViewsTaskStatusResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Successfully retrieved task details.
-
204
No Content - Task not found or no details available.
-
400
Invalid user id or other parameters.
-
500
Server error - Unable to process the request.
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return getBIViewTaskDetailsWithHttpInfo(taskId, token);
}
/**
* Execute getBIViewTaskDetails request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Successfully retrieved task details.
-
204
No Content - Task not found or no details available.
-
400
Invalid user id or other parameters.
-
500
Server error - Unable to process the request.
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getBIViewTaskDetailsAsync(taskId, token, _callback);
}
}
/**
*
* Get details for the active running task by task ID.
* @param taskId (required)
* @param token (required)
* @return GetBIViewTaskDetailsApi
*/
public GetBIViewTaskDetailsApi getBIViewTaskDetailsApi(String taskId, String token) {
return new GetBIViewTaskDetailsApi(taskId, token);
}
private okhttp3.Call getBIViewsCall(String viewName, String token, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v1/biviews/{view_name}"
.replace("{" + "view_name" + "}", localVarApiClient.escapeString(viewName.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (token != null) {
localVarHeaderParams.put("Token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getBIViewsValidateBeforeCall(String viewName, String token, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'viewName' is set
if (viewName == null) {
throw new ApiException("Missing the required parameter 'viewName' when calling getBIViews(Async)");
}
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling getBIViews(Async)");
}
return getBIViewsCall(viewName, token, _callback);
}
/**
*
* Use this API to get BI Views based on template name.
* @param viewName (required)
* @param token (required)
* @return BiViews1SuccessResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
BI Views Retrieved Successfully
-
400
Invalid User ID or Template Name
-
*/
protected BiViews1SuccessResponse getBIViews(String viewName, String token) throws ApiException {
ApiResponse localVarResp = getBIViewsWithHttpInfo(viewName, token);
return localVarResp.getData();
}
private ApiResponse getBIViewsWithHttpInfo(String viewName, String token) throws ApiException {
okhttp3.Call localVarCall = getBIViewsValidateBeforeCall(viewName, token, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getBIViewsAsync(String viewName, String token, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getBIViewsValidateBeforeCall(viewName, token, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class GetBIViewsApi {
private final String viewName;
private final String token;
private GetBIViewsApi(String viewName, String token) {
this.viewName = viewName;
this.token = token;
}
/**
* Build call for getBIViews
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
BI Views Retrieved Successfully
-
400
Invalid User ID or Template Name
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getBIViewsCall(viewName, token, _callback);
}
/**
* Execute getBIViews request
* @return BiViews1SuccessResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
BI Views Retrieved Successfully
-
400
Invalid User ID or Template Name
-
*/
public BiViews1SuccessResponse execute() throws ApiException {
ApiResponse localVarResp = getBIViewsWithHttpInfo(viewName, token);
return localVarResp.getData();
}
/**
* Execute getBIViews request with HTTP info returned
* @return ApiResponse<BiViews1SuccessResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
BI Views Retrieved Successfully
-
400
Invalid User ID or Template Name
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return getBIViewsWithHttpInfo(viewName, token);
}
/**
* Execute getBIViews request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
BI Views Retrieved Successfully
-
400
Invalid User ID or Template Name
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getBIViewsAsync(viewName, token, _callback);
}
}
/**
*
* Use this API to get BI Views based on template name.
* @param viewName (required)
* @param token (required)
* @return GetBIViewsApi
*/
public GetBIViewsApi getBIViewsApi(String viewName, String token) {
return new GetBIViewsApi(viewName, token);
}
private okhttp3.Call getBIViewsV2Call(String viewName, String token, LocalDate fromDate, LocalDate toDate, Integer pagenum, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v2/biviews/{view_name}"
.replace("{" + "view_name" + "}", localVarApiClient.escapeString(viewName.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (fromDate != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("fromDate", fromDate));
}
if (toDate != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("toDate", toDate));
}
if (pagenum != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("pagenum", pagenum));
}
if (token != null) {
localVarHeaderParams.put("Token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getBIViewsV2ValidateBeforeCall(String viewName, String token, LocalDate fromDate, LocalDate toDate, Integer pagenum, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'viewName' is set
if (viewName == null) {
throw new ApiException("Missing the required parameter 'viewName' when calling getBIViewsV2(Async)");
}
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling getBIViewsV2(Async)");
}
return getBIViewsV2Call(viewName, token, fromDate, toDate, pagenum, _callback);
}
/**
*
* Use this API to get BI Views based on view name.
* @param viewName (required)
* @param token (required)
* @param fromDate (optional)
* @param toDate (optional)
* @param pagenum (optional)
* @return Bi3ViewsV2SuccessResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getBIViewsV2Call(viewName, token, fromDate, toDate, pagenum, _callback);
}
/**
* Execute getBIViewsV2 request
* @return Bi3ViewsV2SuccessResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
BI Views Retrieved Successfully
-
204
No Data Available
-
400
Query parameter missing or invalid input
-
404
No data found or page does not exist
-
*/
public Bi3ViewsV2SuccessResponse execute() throws ApiException {
ApiResponse localVarResp = getBIViewsV2WithHttpInfo(viewName, token, fromDate, toDate, pagenum);
return localVarResp.getData();
}
/**
* Execute getBIViewsV2 request with HTTP info returned
* @return ApiResponse<Bi3ViewsV2SuccessResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
BI Views Retrieved Successfully
-
204
No Data Available
-
400
Query parameter missing or invalid input
-
404
No data found or page does not exist
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return getBIViewsV2WithHttpInfo(viewName, token, fromDate, toDate, pagenum);
}
/**
* Execute getBIViewsV2 request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
BI Views Retrieved Successfully
-
204
No Data Available
-
400
Query parameter missing or invalid input
-
404
No data found or page does not exist
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getBIViewsV2Async(viewName, token, fromDate, toDate, pagenum, _callback);
}
}
/**
*
* Use this API to get BI Views based on view name.
* @param viewName (required)
* @param token (required)
* @return GetBIViewsV2Api
*/
public GetBIViewsV2Api getBIViewsV2Api(String viewName, String token) {
return new GetBIViewsV2Api(viewName, token);
}
private okhttp3.Call getCsvUploadStatusCall(Integer id, String token, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v1/csv/upload/status";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (id != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("id", id));
}
if (token != null) {
localVarHeaderParams.put("token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getCsvUploadStatusValidateBeforeCall(Integer id, String token, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'id' is set
if (id == null) {
throw new ApiException("Missing the required parameter 'id' when calling getCsvUploadStatus(Async)");
}
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling getCsvUploadStatus(Async)");
}
return getCsvUploadStatusCall(id, token, _callback);
}
/**
*
* Use this API to get the csv upload status
* @param id File id for which status to be fetched (required)
* @param token Authorization token issued by the authentication API (required)
* @return UploadCsvStatusResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The status information is returned for the requested upload.
-
204
No Data Found for the Csv
-
*/
protected UploadCsvStatusResponse getCsvUploadStatus(Integer id, String token) throws ApiException {
ApiResponse localVarResp = getCsvUploadStatusWithHttpInfo(id, token);
return localVarResp.getData();
}
private ApiResponse getCsvUploadStatusWithHttpInfo(Integer id, String token) throws ApiException {
okhttp3.Call localVarCall = getCsvUploadStatusValidateBeforeCall(id, token, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getCsvUploadStatusAsync(Integer id, String token, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getCsvUploadStatusValidateBeforeCall(id, token, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class GetCsvUploadStatusApi {
private final Integer id;
private final String token;
private GetCsvUploadStatusApi(Integer id, String token) {
this.id = id;
this.token = token;
}
/**
* Build call for getCsvUploadStatus
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The status information is returned for the requested upload.
-
204
No Data Found for the Csv
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getCsvUploadStatusCall(id, token, _callback);
}
/**
* Execute getCsvUploadStatus request
* @return UploadCsvStatusResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The status information is returned for the requested upload.
-
204
No Data Found for the Csv
-
*/
public UploadCsvStatusResponse execute() throws ApiException {
ApiResponse localVarResp = getCsvUploadStatusWithHttpInfo(id, token);
return localVarResp.getData();
}
/**
* Execute getCsvUploadStatus request with HTTP info returned
* @return ApiResponse<UploadCsvStatusResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The status information is returned for the requested upload.
-
204
No Data Found for the Csv
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return getCsvUploadStatusWithHttpInfo(id, token);
}
/**
* Execute getCsvUploadStatus request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The status information is returned for the requested upload.
-
204
No Data Found for the Csv
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getCsvUploadStatusAsync(id, token, _callback);
}
}
/**
*
* Use this API to get the csv upload status
* @param id File id for which status to be fetched (required)
* @param token Authorization token issued by the authentication API (required)
* @return GetCsvUploadStatusApi
*/
public GetCsvUploadStatusApi getCsvUploadStatusApi(Integer id, String token) {
return new GetCsvUploadStatusApi(id, token);
}
private okhttp3.Call getFileUploadStatusByRequestIdCall(String token, Integer fileRequestId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v1/fileupload/status/{file_request_id}"
.replace("{" + "file_request_id" + "}", localVarApiClient.escapeString(fileRequestId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (token != null) {
localVarHeaderParams.put("token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getFileUploadStatusByRequestIdValidateBeforeCall(String token, Integer fileRequestId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling getFileUploadStatusByRequestId(Async)");
}
// verify the required parameter 'fileRequestId' is set
if (fileRequestId == null) {
throw new ApiException("Missing the required parameter 'fileRequestId' when calling getFileUploadStatusByRequestId(Async)");
}
return getFileUploadStatusByRequestIdCall(token, fileRequestId, _callback);
}
/**
*
* Use this API to get file upload status from RevPro
* @param token Authorization token issued by the authentication API (required)
* @param fileRequestId File Request id (required)
* @return UploadFileStatusResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The status information is returned for the requested file upload.
-
204
The status information cannot be retrieved for the specified request ID.
-
400
Bad Request
-
*/
protected UploadFileStatusResponse getFileUploadStatusByRequestId(String token, Integer fileRequestId) throws ApiException {
ApiResponse localVarResp = getFileUploadStatusByRequestIdWithHttpInfo(token, fileRequestId);
return localVarResp.getData();
}
private ApiResponse getFileUploadStatusByRequestIdWithHttpInfo(String token, Integer fileRequestId) throws ApiException {
okhttp3.Call localVarCall = getFileUploadStatusByRequestIdValidateBeforeCall(token, fileRequestId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getFileUploadStatusByRequestIdAsync(String token, Integer fileRequestId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getFileUploadStatusByRequestIdValidateBeforeCall(token, fileRequestId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class GetFileUploadStatusByRequestIdApi {
private final String token;
private final Integer fileRequestId;
private GetFileUploadStatusByRequestIdApi(String token, Integer fileRequestId) {
this.token = token;
this.fileRequestId = fileRequestId;
}
/**
* Build call for getFileUploadStatusByRequestId
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The status information is returned for the requested file upload.
-
204
The status information cannot be retrieved for the specified request ID.
-
400
Bad Request
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getFileUploadStatusByRequestIdCall(token, fileRequestId, _callback);
}
/**
* Execute getFileUploadStatusByRequestId request
* @return UploadFileStatusResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The status information is returned for the requested file upload.
-
204
The status information cannot be retrieved for the specified request ID.
-
400
Bad Request
-
*/
public UploadFileStatusResponse execute() throws ApiException {
ApiResponse localVarResp = getFileUploadStatusByRequestIdWithHttpInfo(token, fileRequestId);
return localVarResp.getData();
}
/**
* Execute getFileUploadStatusByRequestId request with HTTP info returned
* @return ApiResponse<UploadFileStatusResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
The status information is returned for the requested file upload.
-
204
The status information cannot be retrieved for the specified request ID.
-
400
Bad Request
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return getFileUploadStatusByRequestIdWithHttpInfo(token, fileRequestId);
}
/**
* Execute getFileUploadStatusByRequestId request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
The status information is returned for the requested file upload.
-
204
The status information cannot be retrieved for the specified request ID.
-
400
Bad Request
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getFileUploadStatusByRequestIdAsync(token, fileRequestId, _callback);
}
}
/**
*
* Use this API to get file upload status from RevPro
* @param token Authorization token issued by the authentication API (required)
* @param fileRequestId File Request id (required)
* @return GetFileUploadStatusByRequestIdApi
*/
public GetFileUploadStatusByRequestIdApi getFileUploadStatusByRequestIdApi(String token, Integer fileRequestId) {
return new GetFileUploadStatusByRequestIdApi(token, fileRequestId);
}
private okhttp3.Call getReportsByIdCall(String reportId, String token, LocalDate createddate, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v1/reports/{report_id}"
.replace("{" + "report_id" + "}", localVarApiClient.escapeString(reportId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (createddate != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("createddate", createddate));
}
if (token != null) {
localVarHeaderParams.put("token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getReportsByIdValidateBeforeCall(String reportId, String token, LocalDate createddate, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'reportId' is set
if (reportId == null) {
throw new ApiException("Missing the required parameter 'reportId' when calling getReportsById(Async)");
}
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling getReportsById(Async)");
}
// verify the required parameter 'createddate' is set
if (createddate == null) {
throw new ApiException("Missing the required parameter 'createddate' when calling getReportsById(Async)");
}
return getReportsByIdCall(reportId, token, createddate, _callback);
}
/**
*
* Use this API to Fetch List of Reports available for provided date
* @param reportId Report Submission Id in Zuora Revenue (required)
* @param token Authorization token issued by the authentication API (required)
* @param createddate date when report was created (required)
* @return ReportListResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Returns when reports are available for the provided date
-
*/
protected ReportListResponse getReportsById(String reportId, String token, LocalDate createddate) throws ApiException {
ApiResponse localVarResp = getReportsByIdWithHttpInfo(reportId, token, createddate);
return localVarResp.getData();
}
private ApiResponse getReportsByIdWithHttpInfo(String reportId, String token, LocalDate createddate) throws ApiException {
okhttp3.Call localVarCall = getReportsByIdValidateBeforeCall(reportId, token, createddate, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getReportsByIdAsync(String reportId, String token, LocalDate createddate, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getReportsByIdValidateBeforeCall(reportId, token, createddate, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class GetReportsByIdApi {
private final String reportId;
private final String token;
private final LocalDate createddate;
private GetReportsByIdApi(String reportId, String token, LocalDate createddate) {
this.reportId = reportId;
this.token = token;
this.createddate = createddate;
}
/**
* Build call for getReportsById
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Returns when reports are available for the provided date
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getReportsByIdCall(reportId, token, createddate, _callback);
}
/**
* Execute getReportsById request
* @return ReportListResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Returns when reports are available for the provided date
-
*/
public ReportListResponse execute() throws ApiException {
ApiResponse localVarResp = getReportsByIdWithHttpInfo(reportId, token, createddate);
return localVarResp.getData();
}
/**
* Execute getReportsById request with HTTP info returned
* @return ApiResponse<ReportListResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Returns when reports are available for the provided date
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return getReportsByIdWithHttpInfo(reportId, token, createddate);
}
/**
* Execute getReportsById request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Returns when reports are available for the provided date
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getReportsByIdAsync(reportId, token, createddate, _callback);
}
}
/**
*
* Use this API to Fetch List of Reports available for provided date
* @param reportId Report Submission Id in Zuora Revenue (required)
* @param token Authorization token issued by the authentication API (required)
* @param createddate date when report was created (required)
* @return GetReportsByIdApi
*/
public GetReportsByIdApi getReportsByIdApi(String reportId, String token, LocalDate createddate) {
return new GetReportsByIdApi(reportId, token, createddate);
}
private okhttp3.Call getStageErrorCall(String token, String errortype, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v1/stage/error/{errortype}"
.replace("{" + "errortype" + "}", localVarApiClient.escapeString(errortype.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (token != null) {
localVarHeaderParams.put("token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call getStageErrorValidateBeforeCall(String token, String errortype, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling getStageError(Async)");
}
// verify the required parameter 'errortype' is set
if (errortype == null) {
throw new ApiException("Missing the required parameter 'errortype' when calling getStageError(Async)");
}
return getStageErrorCall(token, errortype, _callback);
}
/**
*
* Use this API to get the staging error data for transaction or event type
* @param token Authorization token issued by the authentication API (required)
* @param errortype error type (required)
* @return StageErrorResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Stage error response
-
204
No record is found for the error type specified in the path parameter.
-
*/
protected StageErrorResponse getStageError(String token, String errortype) throws ApiException {
ApiResponse localVarResp = getStageErrorWithHttpInfo(token, errortype);
return localVarResp.getData();
}
private ApiResponse getStageErrorWithHttpInfo(String token, String errortype) throws ApiException {
okhttp3.Call localVarCall = getStageErrorValidateBeforeCall(token, errortype, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call getStageErrorAsync(String token, String errortype, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = getStageErrorValidateBeforeCall(token, errortype, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class GetStageErrorApi {
private final String token;
private final String errortype;
private GetStageErrorApi(String token, String errortype) {
this.token = token;
this.errortype = errortype;
}
/**
* Build call for getStageError
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Stage error response
-
204
No record is found for the error type specified in the path parameter.
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return getStageErrorCall(token, errortype, _callback);
}
/**
* Execute getStageError request
* @return StageErrorResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Stage error response
-
204
No record is found for the error type specified in the path parameter.
-
*/
public StageErrorResponse execute() throws ApiException {
ApiResponse localVarResp = getStageErrorWithHttpInfo(token, errortype);
return localVarResp.getData();
}
/**
* Execute getStageError request with HTTP info returned
* @return ApiResponse<StageErrorResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Stage error response
-
204
No record is found for the error type specified in the path parameter.
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return getStageErrorWithHttpInfo(token, errortype);
}
/**
* Execute getStageError request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Stage error response
-
204
No record is found for the error type specified in the path parameter.
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return getStageErrorAsync(token, errortype, _callback);
}
}
/**
*
* Use this API to get the staging error data for transaction or event type
* @param token Authorization token issued by the authentication API (required)
* @param errortype error type (required)
* @return GetStageErrorApi
*/
public GetStageErrorApi getStageErrorApi(String token, String errortype) {
return new GetStageErrorApi(token, errortype);
}
private okhttp3.Call integrationV2ReportsSignedurlReportIdGetCall(String token, String reportId, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v2/reports/signedurl/{report_id}"
.replace("{" + "report_id" + "}", localVarApiClient.escapeString(reportId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (token != null) {
localVarHeaderParams.put("token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call integrationV2ReportsSignedurlReportIdGetValidateBeforeCall(String token, String reportId, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling integrationV2ReportsSignedurlReportIdGet(Async)");
}
// verify the required parameter 'reportId' is set
if (reportId == null) {
throw new ApiException("Missing the required parameter 'reportId' when calling integrationV2ReportsSignedurlReportIdGet(Async)");
}
return integrationV2ReportsSignedurlReportIdGetCall(token, reportId, _callback);
}
/**
*
* Generates a signed URL from Zuora Revenue to download the report with the specified report ID. The returned URL will be valid for 30 minutes.
* @param token Authorization token issued by the authentication API (required)
* @param reportId Report Submission Id in Zuora Revenue (required)
* @return SignedUrlSuccessResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Signed Url Response
-
400
The report ID is invalid.
-
404
The specified report ID is not found.
-
*/
protected SignedUrlSuccessResponse integrationV2ReportsSignedurlReportIdGet(String token, String reportId) throws ApiException {
ApiResponse localVarResp = integrationV2ReportsSignedurlReportIdGetWithHttpInfo(token, reportId);
return localVarResp.getData();
}
private ApiResponse integrationV2ReportsSignedurlReportIdGetWithHttpInfo(String token, String reportId) throws ApiException {
okhttp3.Call localVarCall = integrationV2ReportsSignedurlReportIdGetValidateBeforeCall(token, reportId, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call integrationV2ReportsSignedurlReportIdGetAsync(String token, String reportId, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = integrationV2ReportsSignedurlReportIdGetValidateBeforeCall(token, reportId, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class IntegrationV2ReportsSignedurlReportIdGetApi {
private final String token;
private final String reportId;
private IntegrationV2ReportsSignedurlReportIdGetApi(String token, String reportId) {
this.token = token;
this.reportId = reportId;
}
/**
* Build call for integrationV2ReportsSignedurlReportIdGet
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Signed Url Response
-
400
The report ID is invalid.
-
404
The specified report ID is not found.
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return integrationV2ReportsSignedurlReportIdGetCall(token, reportId, _callback);
}
/**
* Execute integrationV2ReportsSignedurlReportIdGet request
* @return SignedUrlSuccessResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Signed Url Response
-
400
The report ID is invalid.
-
404
The specified report ID is not found.
-
*/
public SignedUrlSuccessResponse execute() throws ApiException {
ApiResponse localVarResp = integrationV2ReportsSignedurlReportIdGetWithHttpInfo(token, reportId);
return localVarResp.getData();
}
/**
* Execute integrationV2ReportsSignedurlReportIdGet request with HTTP info returned
* @return ApiResponse<SignedUrlSuccessResponse>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Signed Url Response
-
400
The report ID is invalid.
-
404
The specified report ID is not found.
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return integrationV2ReportsSignedurlReportIdGetWithHttpInfo(token, reportId);
}
/**
* Execute integrationV2ReportsSignedurlReportIdGet request (asynchronously)
* @param _callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
* @http.response.details
Status Code
Description
Response Headers
200
Signed Url Response
-
400
The report ID is invalid.
-
404
The specified report ID is not found.
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return integrationV2ReportsSignedurlReportIdGetAsync(token, reportId, _callback);
}
}
/**
*
* Generates a signed URL from Zuora Revenue to download the report with the specified report ID. The returned URL will be valid for 30 minutes.
* @param token Authorization token issued by the authentication API (required)
* @param reportId Report Submission Id in Zuora Revenue (required)
* @return IntegrationV2ReportsSignedurlReportIdGetApi
*/
public IntegrationV2ReportsSignedurlReportIdGetApi integrationV2ReportsSignedurlReportIdGetApi(String token, String reportId) {
return new IntegrationV2ReportsSignedurlReportIdGetApi(token, reportId);
}
private okhttp3.Call listReportsCall(String token, LocalDate createddate, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
// Determine Base Path to Use
if (localCustomBaseUrl != null){
basePath = localCustomBaseUrl;
} else if ( localBasePaths.length > 0 ) {
basePath = localBasePaths[localHostIndex];
} else {
basePath = null;
}
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/integration/v1/reports/list";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (createddate != null) {
localVarQueryParams.addAll(localVarApiClient.parameterToPair("createddate", createddate));
}
if (token != null) {
localVarHeaderParams.put("token", localVarApiClient.parameterToString(token));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call listReportsValidateBeforeCall(String token, LocalDate createddate, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'token' is set
if (token == null) {
throw new ApiException("Missing the required parameter 'token' when calling listReports(Async)");
}
// verify the required parameter 'createddate' is set
if (createddate == null) {
throw new ApiException("Missing the required parameter 'createddate' when calling listReports(Async)");
}
return listReportsCall(token, createddate, _callback);
}
/**
*
* Use this API to Fetch List of Reports available for provided date
* @param token Authorization token issued by the authentication API (required)
* @param createddate date when report was created (required)
* @return ReportListResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Status Code
Description
Response Headers
200
Returns when reports are available for the provided date
-
400
Returns if date format is wrong
-
*/
protected ReportListResponse listReports(String token, LocalDate createddate) throws ApiException {
ApiResponse localVarResp = listReportsWithHttpInfo(token, createddate);
return localVarResp.getData();
}
private ApiResponse listReportsWithHttpInfo(String token, LocalDate createddate) throws ApiException {
okhttp3.Call localVarCall = listReportsValidateBeforeCall(token, createddate, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call listReportsAsync(String token, LocalDate createddate, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = listReportsValidateBeforeCall(token, createddate, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class ListReportsApi {
private final String token;
private final LocalDate createddate;
private ListReportsApi(String token, LocalDate createddate) {
this.token = token;
this.createddate = createddate;
}
/**
* Build call for listReports
* @param _callback ApiCallback API callback
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
* @http.response.details