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

tech.decentro.in.collections.client.api.CollectionsApi Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
/*
 * decentro-in-collections
 * Collections
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: [email protected]
 *
 * NOTE: This class is auto generated by Konfig (https://konfigthis.com).
 * Do not edit the class manually.
 */


package tech.decentro.in.collections.client.api;

import tech.decentro.in.collections.client.ApiCallback;
import tech.decentro.in.collections.client.ApiClient;
import tech.decentro.in.collections.client.ApiException;
import tech.decentro.in.collections.client.ApiResponse;
import tech.decentro.in.collections.client.Configuration;
import tech.decentro.in.collections.client.Pair;
import tech.decentro.in.collections.client.ProgressRequestBody;
import tech.decentro.in.collections.client.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import tech.decentro.in.collections.client.model.GeneratePaymentLinkRequest;
import tech.decentro.in.collections.client.model.GeneratePaymentLinkResponse;
import tech.decentro.in.collections.client.model.GetTransactionStatusResponse;
import tech.decentro.in.collections.client.model.IssueCollectRequest400Response;
import tech.decentro.in.collections.client.model.IssueCollectRequestRequest;
import tech.decentro.in.collections.client.model.IssueCollectRequestResponse;
import tech.decentro.in.collections.client.model.IssueUpiRefund400Response;
import tech.decentro.in.collections.client.model.IssueUpiRefundRequest;
import tech.decentro.in.collections.client.model.IssueUpiRefundResponse;
import tech.decentro.in.collections.client.model.ValidateUpiHandle400Response;
import tech.decentro.in.collections.client.model.ValidateUpiHandleRequest;
import tech.decentro.in.collections.client.model.ValidateUpiHandleResponse;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import javax.ws.rs.core.GenericType;

public class CollectionsApi {
    private ApiClient localVarApiClient;
    private int localHostIndex;
    private String localCustomBaseUrl;

    public CollectionsApi() {
        this(Configuration.getDefaultApiClient());
    }

    public CollectionsApi(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 generatePaymentLinkCall(GeneratePaymentLinkRequest generatePaymentLinkRequest, 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 = generatePaymentLinkRequest;

        // create path and map variables
        String localVarPath = "/v2/payments/upi/link";

        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 = {
            "application/json"
        };
        final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes);
        if (localVarContentType != null) {
            localVarHeaderParams.put("Content-Type", localVarContentType);
        }

        String[] localVarAuthNames = new String[] { "client_id", "client_secret", "module_secret", "provider_secret" };
        return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback);
    }

    @SuppressWarnings("rawtypes")
    private okhttp3.Call generatePaymentLinkValidateBeforeCall(GeneratePaymentLinkRequest generatePaymentLinkRequest, final ApiCallback _callback) throws ApiException {
        // verify the required parameter 'generatePaymentLinkRequest' is set
        if (generatePaymentLinkRequest == null) {
            throw new ApiException("Missing the required parameter 'generatePaymentLinkRequest' when calling generatePaymentLink(Async)");
        }

        return generatePaymentLinkCall(generatePaymentLinkRequest, _callback);

    }


    private ApiResponse generatePaymentLinkWithHttpInfo(GeneratePaymentLinkRequest generatePaymentLinkRequest) throws ApiException {
        okhttp3.Call localVarCall = generatePaymentLinkValidateBeforeCall(generatePaymentLinkRequest, null);
        Type localVarReturnType = new TypeToken(){}.getType();
        return localVarApiClient.execute(localVarCall, localVarReturnType);
    }

    private okhttp3.Call generatePaymentLinkAsync(GeneratePaymentLinkRequest generatePaymentLinkRequest, final ApiCallback _callback) throws ApiException {

        okhttp3.Call localVarCall = generatePaymentLinkValidateBeforeCall(generatePaymentLinkRequest, _callback);
        Type localVarReturnType = new TypeToken(){}.getType();
        localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
        return localVarCall;
    }

    public class APIgeneratePaymentLinkRequest {
        private final GeneratePaymentLinkRequest generatePaymentLinkRequest;

        private APIgeneratePaymentLinkRequest(GeneratePaymentLinkRequest generatePaymentLinkRequest) {
            this.generatePaymentLinkRequest = generatePaymentLinkRequest;
        }

        /**
         * Build call for generatePaymentLink
         * @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 OK -
400 Bad Request -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return generatePaymentLinkCall(generatePaymentLinkRequest, _callback); } /** * Execute generatePaymentLink request * @return GeneratePaymentLinkResponse * @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 OK -
400 Bad Request -
*/ public GeneratePaymentLinkResponse execute() throws ApiException { ApiResponse localVarResp = generatePaymentLinkWithHttpInfo(generatePaymentLinkRequest); return localVarResp.getData(); } /** * Execute generatePaymentLink request with HTTP info returned * @return ApiResponse<GeneratePaymentLinkResponse> * @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 OK -
400 Bad Request -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return generatePaymentLinkWithHttpInfo(generatePaymentLinkRequest); } /** * Execute generatePaymentLink 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 OK -
400 Bad Request -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return generatePaymentLinkAsync(generatePaymentLinkRequest, _callback); } } /** * Generate payment link * * @param generatePaymentLinkRequest (required) * @return APIgeneratePaymentLinkRequest * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad Request -
*/ public APIgeneratePaymentLinkRequest generatePaymentLink(GeneratePaymentLinkRequest generatePaymentLinkRequest) { return new APIgeneratePaymentLinkRequest(generatePaymentLinkRequest); } private okhttp3.Call getTransactionStatusCall(String transactionId, 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 = "/v2/payments/transaction/{transaction_id}/status" .replace("{" + "transaction_id" + "}", localVarApiClient.escapeString(transactionId.toString())); 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[] { "client_id", "client_secret", "module_secret", "provider_secret" }; return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getTransactionStatusValidateBeforeCall(String transactionId, final ApiCallback _callback) throws ApiException { // verify the required parameter 'transactionId' is set if (transactionId == null) { throw new ApiException("Missing the required parameter 'transactionId' when calling getTransactionStatus(Async)"); } return getTransactionStatusCall(transactionId, _callback); } private ApiResponse getTransactionStatusWithHttpInfo(String transactionId) throws ApiException { okhttp3.Call localVarCall = getTransactionStatusValidateBeforeCall(transactionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call getTransactionStatusAsync(String transactionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getTransactionStatusValidateBeforeCall(transactionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIgetTransactionStatusRequest { private final String transactionId; private APIgetTransactionStatusRequest(String transactionId) { this.transactionId = transactionId; } /** * Build call for getTransactionStatus * @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
0 Failure -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return getTransactionStatusCall(transactionId, _callback); } /** * Execute getTransactionStatus request * @return GetTransactionStatusResponse * @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
0 Failure -
*/ public GetTransactionStatusResponse execute() throws ApiException { ApiResponse localVarResp = getTransactionStatusWithHttpInfo(transactionId); return localVarResp.getData(); } /** * Execute getTransactionStatus request with HTTP info returned * @return ApiResponse<GetTransactionStatusResponse> * @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
0 Failure -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return getTransactionStatusWithHttpInfo(transactionId); } /** * Execute getTransactionStatus 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
0 Failure -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return getTransactionStatusAsync(transactionId, _callback); } } /** * Get transaction status * * @param transactionId (required) * @return APIgetTransactionStatusRequest * @http.response.details
Status Code Description Response Headers
0 Failure -
*/ public APIgetTransactionStatusRequest getTransactionStatus(String transactionId) { return new APIgetTransactionStatusRequest(transactionId); } private okhttp3.Call issueCollectRequestCall(IssueCollectRequestRequest issueCollectRequestRequest, 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 = issueCollectRequestRequest; // create path and map variables String localVarPath = "/v2/payments/collection"; 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 = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "client_id", "client_secret", "module_secret", "provider_secret" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call issueCollectRequestValidateBeforeCall(IssueCollectRequestRequest issueCollectRequestRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueCollectRequestRequest' is set if (issueCollectRequestRequest == null) { throw new ApiException("Missing the required parameter 'issueCollectRequestRequest' when calling issueCollectRequest(Async)"); } return issueCollectRequestCall(issueCollectRequestRequest, _callback); } private ApiResponse issueCollectRequestWithHttpInfo(IssueCollectRequestRequest issueCollectRequestRequest) throws ApiException { okhttp3.Call localVarCall = issueCollectRequestValidateBeforeCall(issueCollectRequestRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call issueCollectRequestAsync(IssueCollectRequestRequest issueCollectRequestRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = issueCollectRequestValidateBeforeCall(issueCollectRequestRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIissueCollectRequestRequest { private final IssueCollectRequestRequest issueCollectRequestRequest; private APIissueCollectRequestRequest(IssueCollectRequestRequest issueCollectRequestRequest) { this.issueCollectRequestRequest = issueCollectRequestRequest; } /** * Build call for issueCollectRequest * @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 OK -
400 Bad Request -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return issueCollectRequestCall(issueCollectRequestRequest, _callback); } /** * Execute issueCollectRequest request * @return IssueCollectRequestResponse * @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 OK -
400 Bad Request -
*/ public IssueCollectRequestResponse execute() throws ApiException { ApiResponse localVarResp = issueCollectRequestWithHttpInfo(issueCollectRequestRequest); return localVarResp.getData(); } /** * Execute issueCollectRequest request with HTTP info returned * @return ApiResponse<IssueCollectRequestResponse> * @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 OK -
400 Bad Request -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return issueCollectRequestWithHttpInfo(issueCollectRequestRequest); } /** * Execute issueCollectRequest 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 OK -
400 Bad Request -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return issueCollectRequestAsync(issueCollectRequestRequest, _callback); } } /** * Issue collect request * * @param issueCollectRequestRequest (required) * @return APIissueCollectRequestRequest * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad Request -
*/ public APIissueCollectRequestRequest issueCollectRequest(IssueCollectRequestRequest issueCollectRequestRequest) { return new APIissueCollectRequestRequest(issueCollectRequestRequest); } private okhttp3.Call issueUpiRefundCall(IssueUpiRefundRequest issueUpiRefundRequest, 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 = issueUpiRefundRequest; // create path and map variables String localVarPath = "/v2/payments/upi/refund"; 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 = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "client_id", "client_secret", "module_secret", "provider_secret" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call issueUpiRefundValidateBeforeCall(IssueUpiRefundRequest issueUpiRefundRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'issueUpiRefundRequest' is set if (issueUpiRefundRequest == null) { throw new ApiException("Missing the required parameter 'issueUpiRefundRequest' when calling issueUpiRefund(Async)"); } return issueUpiRefundCall(issueUpiRefundRequest, _callback); } private ApiResponse issueUpiRefundWithHttpInfo(IssueUpiRefundRequest issueUpiRefundRequest) throws ApiException { okhttp3.Call localVarCall = issueUpiRefundValidateBeforeCall(issueUpiRefundRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call issueUpiRefundAsync(IssueUpiRefundRequest issueUpiRefundRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = issueUpiRefundValidateBeforeCall(issueUpiRefundRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIissueUpiRefundRequest { private final IssueUpiRefundRequest issueUpiRefundRequest; private APIissueUpiRefundRequest(IssueUpiRefundRequest issueUpiRefundRequest) { this.issueUpiRefundRequest = issueUpiRefundRequest; } /** * Build call for issueUpiRefund * @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 OK -
400 Bad Request -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return issueUpiRefundCall(issueUpiRefundRequest, _callback); } /** * Execute issueUpiRefund request * @return IssueUpiRefundResponse * @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 OK -
400 Bad Request -
*/ public IssueUpiRefundResponse execute() throws ApiException { ApiResponse localVarResp = issueUpiRefundWithHttpInfo(issueUpiRefundRequest); return localVarResp.getData(); } /** * Execute issueUpiRefund request with HTTP info returned * @return ApiResponse<IssueUpiRefundResponse> * @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 OK -
400 Bad Request -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return issueUpiRefundWithHttpInfo(issueUpiRefundRequest); } /** * Execute issueUpiRefund 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 OK -
400 Bad Request -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return issueUpiRefundAsync(issueUpiRefundRequest, _callback); } } /** * Issue UPI Refund * * @param issueUpiRefundRequest (required) * @return APIissueUpiRefundRequest * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad Request -
*/ public APIissueUpiRefundRequest issueUpiRefund(IssueUpiRefundRequest issueUpiRefundRequest) { return new APIissueUpiRefundRequest(issueUpiRefundRequest); } private okhttp3.Call validateUpiHandleCall(ValidateUpiHandleRequest validateUpiHandleRequest, 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 = validateUpiHandleRequest; // create path and map variables String localVarPath = "/v2/payments/vpa/validate"; 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 = { "application/json" }; final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); if (localVarContentType != null) { localVarHeaderParams.put("Content-Type", localVarContentType); } String[] localVarAuthNames = new String[] { "client_id", "client_secret", "module_secret", "provider_secret" }; return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call validateUpiHandleValidateBeforeCall(ValidateUpiHandleRequest validateUpiHandleRequest, final ApiCallback _callback) throws ApiException { // verify the required parameter 'validateUpiHandleRequest' is set if (validateUpiHandleRequest == null) { throw new ApiException("Missing the required parameter 'validateUpiHandleRequest' when calling validateUpiHandle(Async)"); } return validateUpiHandleCall(validateUpiHandleRequest, _callback); } private ApiResponse validateUpiHandleWithHttpInfo(ValidateUpiHandleRequest validateUpiHandleRequest) throws ApiException { okhttp3.Call localVarCall = validateUpiHandleValidateBeforeCall(validateUpiHandleRequest, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } private okhttp3.Call validateUpiHandleAsync(ValidateUpiHandleRequest validateUpiHandleRequest, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = validateUpiHandleValidateBeforeCall(validateUpiHandleRequest, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } public class APIvalidateUpiHandleRequest { private final ValidateUpiHandleRequest validateUpiHandleRequest; private APIvalidateUpiHandleRequest(ValidateUpiHandleRequest validateUpiHandleRequest) { this.validateUpiHandleRequest = validateUpiHandleRequest; } /** * Build call for validateUpiHandle * @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 OK -
400 Bad Request -
*/ public okhttp3.Call buildCall(final ApiCallback _callback) throws ApiException { return validateUpiHandleCall(validateUpiHandleRequest, _callback); } /** * Execute validateUpiHandle request * @return ValidateUpiHandleResponse * @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 OK -
400 Bad Request -
*/ public ValidateUpiHandleResponse execute() throws ApiException { ApiResponse localVarResp = validateUpiHandleWithHttpInfo(validateUpiHandleRequest); return localVarResp.getData(); } /** * Execute validateUpiHandle request with HTTP info returned * @return ApiResponse<ValidateUpiHandleResponse> * @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 OK -
400 Bad Request -
*/ public ApiResponse executeWithHttpInfo() throws ApiException { return validateUpiHandleWithHttpInfo(validateUpiHandleRequest); } /** * Execute validateUpiHandle 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 OK -
400 Bad Request -
*/ public okhttp3.Call executeAsync(final ApiCallback _callback) throws ApiException { return validateUpiHandleAsync(validateUpiHandleRequest, _callback); } } /** * Validate UPI handle * * @param validateUpiHandleRequest (required) * @return APIvalidateUpiHandleRequest * @http.response.details
Status Code Description Response Headers
200 OK -
400 Bad Request -
*/ public APIvalidateUpiHandleRequest validateUpiHandle(ValidateUpiHandleRequest validateUpiHandleRequest) { return new APIvalidateUpiHandleRequest(validateUpiHandleRequest); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy