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.CommonResponse;
import com.zuora.model.GETBookingDateBackfillJobById200Response;
import com.zuora.model.GETListBookingDateBackfillJobs200Response;
import com.zuora.model.POSTCreateBookingDateBackfillJob200Response;
import com.zuora.model.PUTStopBookingDateBackfillJobByIdRequest;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
public class BookingDateBackfillJobApi {
private ApiClient localVarApiClient;
private int localHostIndex;
private String localCustomBaseUrl;
public BookingDateBackfillJobApi() {
this(Configuration.getDefaultApiClient());
}
public BookingDateBackfillJobApi(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 gETBookingDateBackfillJobByIdCall(String jobId, String zuoraOrgIds, 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 = "/v1/uno/data-backfill/bookingdate/jobs/{jobId}"
.replace("{" + "jobId" + "}", localVarApiClient.escapeString(jobId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (zuoraOrgIds != null) {
localVarHeaderParams.put("Zuora-Org-Ids", localVarApiClient.parameterToString(zuoraOrgIds));
}
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 gETBookingDateBackfillJobByIdValidateBeforeCall(String jobId, String zuoraOrgIds, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'jobId' is set
if (jobId == null) {
throw new ApiException("Missing the required parameter 'jobId' when calling gETBookingDateBackfillJobById(Async)");
}
return gETBookingDateBackfillJobByIdCall(jobId, zuoraOrgIds, _callback);
}
/**
* Find BookingDate Backfill job by ID
* Returns a single BookingDate Backfill job
* @param jobId ID of job to return (required)
* @param zuoraOrgIds Comma separated IDs. If you have Zuora Multi-Org enabled, you can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header. The IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. If the header is not set, the operation is performed in scope of the user's accessible orgs. (optional)
* @return GETBookingDateBackfillJobById200Response
* @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
Response of BookingDate Backfill job by ID
-
*/
protected GETBookingDateBackfillJobById200Response gETBookingDateBackfillJobById(String jobId, String zuoraOrgIds) throws ApiException {
ApiResponse localVarResp = gETBookingDateBackfillJobByIdWithHttpInfo(jobId, zuoraOrgIds);
return localVarResp.getData();
}
private ApiResponse gETBookingDateBackfillJobByIdWithHttpInfo(String jobId, String zuoraOrgIds) throws ApiException {
okhttp3.Call localVarCall = gETBookingDateBackfillJobByIdValidateBeforeCall(jobId, zuoraOrgIds, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call gETBookingDateBackfillJobByIdAsync(String jobId, String zuoraOrgIds, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = gETBookingDateBackfillJobByIdValidateBeforeCall(jobId, zuoraOrgIds, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class GETBookingDateBackfillJobByIdApi {
private final String jobId;
private String zuoraOrgIds;
private GETBookingDateBackfillJobByIdApi(String jobId) {
this.jobId = jobId;
}
/**
* Set zuoraOrgIds
* @param zuoraOrgIds Comma separated IDs. If you have Zuora Multi-Org enabled, you can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header. The IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. If the header is not set, the operation is performed in scope of the user's accessible orgs. (optional)
* @return GETBookingDateBackfillJobByIdApi
*/
public GETBookingDateBackfillJobByIdApi zuoraOrgIds(String zuoraOrgIds) {
this.zuoraOrgIds = zuoraOrgIds;
return this;
}
/**
* Build call for gETBookingDateBackfillJobById
* @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
Response of BookingDate Backfill job by ID
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return gETBookingDateBackfillJobByIdCall(jobId, zuoraOrgIds, _callback);
}
/**
* Execute gETBookingDateBackfillJobById request
* @return GETBookingDateBackfillJobById200Response
* @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
Response of BookingDate Backfill job by ID
-
*/
public GETBookingDateBackfillJobById200Response execute() throws ApiException {
ApiResponse localVarResp = gETBookingDateBackfillJobByIdWithHttpInfo(jobId, zuoraOrgIds);
return localVarResp.getData();
}
/**
* Execute gETBookingDateBackfillJobById request with HTTP info returned
* @return ApiResponse<GETBookingDateBackfillJobById200Response>
* @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
Response of BookingDate Backfill job by ID
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return gETBookingDateBackfillJobByIdWithHttpInfo(jobId, zuoraOrgIds);
}
/**
* Execute gETBookingDateBackfillJobById 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
Response of BookingDate Backfill job by ID
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return gETBookingDateBackfillJobByIdAsync(jobId, zuoraOrgIds, _callback);
}
}
/**
* Find BookingDate Backfill job by ID
* Returns a single BookingDate Backfill job
* @param jobId ID of job to return (required)
* @return GETBookingDateBackfillJobByIdApi
*/
public GETBookingDateBackfillJobByIdApi gETBookingDateBackfillJobByIdApi(String jobId) {
return new GETBookingDateBackfillJobByIdApi(jobId);
}
private okhttp3.Call gETListBookingDateBackfillJobsCall(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 = "/v1/uno/data-backfill/bookingdate/jobs";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
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 gETListBookingDateBackfillJobsValidateBeforeCall(final ApiCallback _callback) throws ApiException {
return gETListBookingDateBackfillJobsCall(_callback);
}
/**
* Query all Booking Date Backfill Jobs
*
* @return GETListBookingDateBackfillJobs200Response
* @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
successful operation
-
*/
protected GETListBookingDateBackfillJobs200Response gETListBookingDateBackfillJobs() throws ApiException {
ApiResponse localVarResp = gETListBookingDateBackfillJobsWithHttpInfo();
return localVarResp.getData();
}
private ApiResponse gETListBookingDateBackfillJobsWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = gETListBookingDateBackfillJobsValidateBeforeCall(null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call gETListBookingDateBackfillJobsAsync(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = gETListBookingDateBackfillJobsValidateBeforeCall(_callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class GETListBookingDateBackfillJobsApi {
private GETListBookingDateBackfillJobsApi() {
}
/**
* Build call for gETListBookingDateBackfillJobs
* @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
successful operation
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return gETListBookingDateBackfillJobsCall(_callback);
}
/**
* Execute gETListBookingDateBackfillJobs request
* @return GETListBookingDateBackfillJobs200Response
* @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
successful operation
-
*/
public GETListBookingDateBackfillJobs200Response execute() throws ApiException {
ApiResponse localVarResp = gETListBookingDateBackfillJobsWithHttpInfo();
return localVarResp.getData();
}
/**
* Execute gETListBookingDateBackfillJobs request with HTTP info returned
* @return ApiResponse<GETListBookingDateBackfillJobs200Response>
* @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
successful operation
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return gETListBookingDateBackfillJobsWithHttpInfo();
}
/**
* Execute gETListBookingDateBackfillJobs 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
successful operation
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return gETListBookingDateBackfillJobsAsync(_callback);
}
}
/**
* Query all Booking Date Backfill Jobs
*
* @return GETListBookingDateBackfillJobsApi
*/
public GETListBookingDateBackfillJobsApi gETListBookingDateBackfillJobsApi() {
return new GETListBookingDateBackfillJobsApi();
}
private okhttp3.Call pOSTCreateBookingDateBackfillJobCall(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 = "/v1/uno/data-backfill/bookingdate/jobs";
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
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 pOSTCreateBookingDateBackfillJobValidateBeforeCall(final ApiCallback _callback) throws ApiException {
return pOSTCreateBookingDateBackfillJobCall(_callback);
}
/**
* Create a new BookingDate Backfil job
*
* @return POSTCreateBookingDateBackfillJob200Response
* @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
create booking job successfully
-
*/
protected POSTCreateBookingDateBackfillJob200Response pOSTCreateBookingDateBackfillJob() throws ApiException {
ApiResponse localVarResp = pOSTCreateBookingDateBackfillJobWithHttpInfo();
return localVarResp.getData();
}
private ApiResponse pOSTCreateBookingDateBackfillJobWithHttpInfo() throws ApiException {
okhttp3.Call localVarCall = pOSTCreateBookingDateBackfillJobValidateBeforeCall(null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call pOSTCreateBookingDateBackfillJobAsync(final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = pOSTCreateBookingDateBackfillJobValidateBeforeCall(_callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class POSTCreateBookingDateBackfillJobApi {
private POSTCreateBookingDateBackfillJobApi() {
}
/**
* Build call for pOSTCreateBookingDateBackfillJob
* @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
create booking job successfully
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return pOSTCreateBookingDateBackfillJobCall(_callback);
}
/**
* Execute pOSTCreateBookingDateBackfillJob request
* @return POSTCreateBookingDateBackfillJob200Response
* @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
create booking job successfully
-
*/
public POSTCreateBookingDateBackfillJob200Response execute() throws ApiException {
ApiResponse localVarResp = pOSTCreateBookingDateBackfillJobWithHttpInfo();
return localVarResp.getData();
}
/**
* Execute pOSTCreateBookingDateBackfillJob request with HTTP info returned
* @return ApiResponse<POSTCreateBookingDateBackfillJob200Response>
* @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
create booking job successfully
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return pOSTCreateBookingDateBackfillJobWithHttpInfo();
}
/**
* Execute pOSTCreateBookingDateBackfillJob 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
create booking job successfully
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return pOSTCreateBookingDateBackfillJobAsync(_callback);
}
}
/**
* Create a new BookingDate Backfil job
*
* @return POSTCreateBookingDateBackfillJobApi
*/
public POSTCreateBookingDateBackfillJobApi pOSTCreateBookingDateBackfillJobApi() {
return new POSTCreateBookingDateBackfillJobApi();
}
private okhttp3.Call pUTStopBookingDateBackfillJobByIdCall(String jobId, String zuoraOrgIds, PUTStopBookingDateBackfillJobByIdRequest puTStopBookingDateBackfillJobByIdRequest, 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 = puTStopBookingDateBackfillJobByIdRequest;
// create path and map variables
String localVarPath = "/v1/uno/data-backfill/bookingdate/jobs/{jobId}"
.replace("{" + "jobId" + "}", localVarApiClient.escapeString(jobId.toString()));
List localVarQueryParams = new ArrayList();
List localVarCollectionQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
if (zuoraOrgIds != null) {
localVarHeaderParams.put("Zuora-Org-Ids", localVarApiClient.parameterToString(zuoraOrgIds));
}
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts);
if (localVarAccept != null) {
localVarHeaderParams.put("Accept", localVarAccept);
}
final String[] localVarContentTypes = {
"application/json"
};
final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
if (localVarContentType != null) {
localVarHeaderParams.put("Content-Type", localVarContentType);
}
String[] localVarAuthNames = new String[] { "bearerAuth" };
return localVarApiClient.buildCall(basePath, localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
}
@SuppressWarnings("rawtypes")
private okhttp3.Call pUTStopBookingDateBackfillJobByIdValidateBeforeCall(String jobId, String zuoraOrgIds, PUTStopBookingDateBackfillJobByIdRequest puTStopBookingDateBackfillJobByIdRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'jobId' is set
if (jobId == null) {
throw new ApiException("Missing the required parameter 'jobId' when calling pUTStopBookingDateBackfillJobById(Async)");
}
return pUTStopBookingDateBackfillJobByIdCall(jobId, zuoraOrgIds, puTStopBookingDateBackfillJobByIdRequest, _callback);
}
/**
* Stop BookingDate Backfill job by ID
* Stop a single BookingDate Backfill job
* @param jobId ID of job to stop (required)
* @param zuoraOrgIds Comma separated IDs. If you have Zuora Multi-Org enabled, you can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header. The IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. If the header is not set, the operation is performed in scope of the user's accessible orgs. (optional)
* @param puTStopBookingDateBackfillJobByIdRequest (optional)
* @return CommonResponse
* @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
Response of Stopping BookingDate Backfill job by ID
-
*/
protected CommonResponse pUTStopBookingDateBackfillJobById(String jobId, String zuoraOrgIds, PUTStopBookingDateBackfillJobByIdRequest puTStopBookingDateBackfillJobByIdRequest) throws ApiException {
ApiResponse localVarResp = pUTStopBookingDateBackfillJobByIdWithHttpInfo(jobId, zuoraOrgIds, puTStopBookingDateBackfillJobByIdRequest);
return localVarResp.getData();
}
private ApiResponse pUTStopBookingDateBackfillJobByIdWithHttpInfo(String jobId, String zuoraOrgIds, PUTStopBookingDateBackfillJobByIdRequest puTStopBookingDateBackfillJobByIdRequest) throws ApiException {
okhttp3.Call localVarCall = pUTStopBookingDateBackfillJobByIdValidateBeforeCall(jobId, zuoraOrgIds, puTStopBookingDateBackfillJobByIdRequest, null);
Type localVarReturnType = new TypeToken(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
private okhttp3.Call pUTStopBookingDateBackfillJobByIdAsync(String jobId, String zuoraOrgIds, PUTStopBookingDateBackfillJobByIdRequest puTStopBookingDateBackfillJobByIdRequest, final ApiCallback _callback) throws ApiException {
okhttp3.Call localVarCall = pUTStopBookingDateBackfillJobByIdValidateBeforeCall(jobId, zuoraOrgIds, puTStopBookingDateBackfillJobByIdRequest, _callback);
Type localVarReturnType = new TypeToken(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
}
public class PUTStopBookingDateBackfillJobByIdApi {
private final String jobId;
private String zuoraOrgIds;
private PUTStopBookingDateBackfillJobByIdRequest puTStopBookingDateBackfillJobByIdRequest;
private PUTStopBookingDateBackfillJobByIdApi(String jobId) {
this.jobId = jobId;
}
/**
* Set zuoraOrgIds
* @param zuoraOrgIds Comma separated IDs. If you have Zuora Multi-Org enabled, you can use this header to specify which orgs to perform the operation in. If you do not have Zuora Multi-Org enabled, you should not set this header. The IDs must be a sub-set of the user's accessible orgs. If you specify an org that the user does not have access to, the operation fails. If the header is not set, the operation is performed in scope of the user's accessible orgs. (optional)
* @return PUTStopBookingDateBackfillJobByIdApi
*/
public PUTStopBookingDateBackfillJobByIdApi zuoraOrgIds(String zuoraOrgIds) {
this.zuoraOrgIds = zuoraOrgIds;
return this;
}
/**
* Set puTStopBookingDateBackfillJobByIdRequest
* @param puTStopBookingDateBackfillJobByIdRequest (optional)
* @return PUTStopBookingDateBackfillJobByIdApi
*/
public PUTStopBookingDateBackfillJobByIdApi puTStopBookingDateBackfillJobByIdRequest(PUTStopBookingDateBackfillJobByIdRequest puTStopBookingDateBackfillJobByIdRequest) {
this.puTStopBookingDateBackfillJobByIdRequest = puTStopBookingDateBackfillJobByIdRequest;
return this;
}
/**
* Build call for pUTStopBookingDateBackfillJobById
* @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
Response of Stopping BookingDate Backfill job by ID
-
*/
public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException {
return pUTStopBookingDateBackfillJobByIdCall(jobId, zuoraOrgIds, puTStopBookingDateBackfillJobByIdRequest, _callback);
}
/**
* Execute pUTStopBookingDateBackfillJobById request
* @return CommonResponse
* @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
Response of Stopping BookingDate Backfill job by ID
-
*/
public CommonResponse execute() throws ApiException {
ApiResponse localVarResp = pUTStopBookingDateBackfillJobByIdWithHttpInfo(jobId, zuoraOrgIds, puTStopBookingDateBackfillJobByIdRequest);
return localVarResp.getData();
}
/**
* Execute pUTStopBookingDateBackfillJobById request with HTTP info returned
* @return ApiResponse<CommonResponse>
* @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
Response of Stopping BookingDate Backfill job by ID
-
*/
private ApiResponse executeWithHttpInfo() throws ApiException {
return pUTStopBookingDateBackfillJobByIdWithHttpInfo(jobId, zuoraOrgIds, puTStopBookingDateBackfillJobByIdRequest);
}
/**
* Execute pUTStopBookingDateBackfillJobById 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
Response of Stopping BookingDate Backfill job by ID
-
*/
public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException {
return pUTStopBookingDateBackfillJobByIdAsync(jobId, zuoraOrgIds, puTStopBookingDateBackfillJobByIdRequest, _callback);
}
}
/**
* Stop BookingDate Backfill job by ID
* Stop a single BookingDate Backfill job
* @param jobId ID of job to stop (required)
* @return PUTStopBookingDateBackfillJobByIdApi
*/
public PUTStopBookingDateBackfillJobByIdApi pUTStopBookingDateBackfillJobByIdApi(String jobId) {
return new PUTStopBookingDateBackfillJobByIdApi(jobId);
}
}