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

io.nem.symbol.sdk.openapi.okhttp_gson.api.TransactionRoutesApi Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
/*
 * Catapult REST Endpoints
 * OpenAPI Specification of catapult-rest 1.1.2
 *
 * The version of the OpenAPI document: 0.9.4
 * 
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


package io.nem.symbol.sdk.openapi.okhttp_gson.api;

import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiCallback;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiClient;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiException;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ApiResponse;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.Configuration;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.Pair;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ProgressRequestBody;
import io.nem.symbol.sdk.openapi.okhttp_gson.invoker.ProgressResponseBody;

import com.google.gson.reflect.TypeToken;

import java.io.IOException;


import io.nem.symbol.sdk.openapi.okhttp_gson.model.AnnounceTransactionInfoDTO;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.Cosignature;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.ModelError;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.Order;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.TransactionIds;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.TransactionInfoDTO;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.TransactionPage;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.TransactionPayload;
import io.nem.symbol.sdk.openapi.okhttp_gson.model.TransactionTypeEnum;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class TransactionRoutesApi {
    private ApiClient localVarApiClient;

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

    public TransactionRoutesApi(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    public ApiClient getApiClient() {
        return localVarApiClient;
    }

    public void setApiClient(ApiClient apiClient) {
        this.localVarApiClient = apiClient;
    }

    /**
     * Build call for announceCosignatureTransaction
     * @param cosignature  (required)
     * @param _callback Callback for upload/download progress
     * @return Call to execute
     * @throws ApiException If fail to serialize the request body object
     * @http.response.details
     
Status Code Description Response Headers
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call announceCosignatureTransactionCall(Cosignature cosignature, final ApiCallback _callback) throws ApiException { Object localVarPostBody = cosignature; // create path and map variables String localVarPath = "/transactions/cosignature"; 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call announceCosignatureTransactionValidateBeforeCall(Cosignature cosignature, final ApiCallback _callback) throws ApiException { // verify the required parameter 'cosignature' is set if (cosignature == null) { throw new ApiException("Missing the required parameter 'cosignature' when calling announceCosignatureTransaction(Async)"); } okhttp3.Call localVarCall = announceCosignatureTransactionCall(cosignature, _callback); return localVarCall; } /** * Announce a cosignature transaction * Announces a cosignature transaction to the network. * @param cosignature (required) * @return AnnounceTransactionInfoDTO * @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
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public AnnounceTransactionInfoDTO announceCosignatureTransaction(Cosignature cosignature) throws ApiException { ApiResponse localVarResp = announceCosignatureTransactionWithHttpInfo(cosignature); return localVarResp.getData(); } /** * Announce a cosignature transaction * Announces a cosignature transaction to the network. * @param cosignature (required) * @return ApiResponse<AnnounceTransactionInfoDTO> * @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
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public ApiResponse announceCosignatureTransactionWithHttpInfo(Cosignature cosignature) throws ApiException { okhttp3.Call localVarCall = announceCosignatureTransactionValidateBeforeCall(cosignature, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Announce a cosignature transaction (asynchronously) * Announces a cosignature transaction to the network. * @param cosignature (required) * @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
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call announceCosignatureTransactionAsync(Cosignature cosignature, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = announceCosignatureTransactionValidateBeforeCall(cosignature, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for announcePartialTransaction * @param transactionPayload (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call announcePartialTransactionCall(TransactionPayload transactionPayload, final ApiCallback _callback) throws ApiException { Object localVarPostBody = transactionPayload; // create path and map variables String localVarPath = "/transactions/partial"; 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call announcePartialTransactionValidateBeforeCall(TransactionPayload transactionPayload, final ApiCallback _callback) throws ApiException { // verify the required parameter 'transactionPayload' is set if (transactionPayload == null) { throw new ApiException("Missing the required parameter 'transactionPayload' when calling announcePartialTransaction(Async)"); } okhttp3.Call localVarCall = announcePartialTransactionCall(transactionPayload, _callback); return localVarCall; } /** * Announce an aggregate bonded transaction * Announces an aggregate bonded transaction to the network. * @param transactionPayload (required) * @return AnnounceTransactionInfoDTO * @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
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public AnnounceTransactionInfoDTO announcePartialTransaction(TransactionPayload transactionPayload) throws ApiException { ApiResponse localVarResp = announcePartialTransactionWithHttpInfo(transactionPayload); return localVarResp.getData(); } /** * Announce an aggregate bonded transaction * Announces an aggregate bonded transaction to the network. * @param transactionPayload (required) * @return ApiResponse<AnnounceTransactionInfoDTO> * @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
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public ApiResponse announcePartialTransactionWithHttpInfo(TransactionPayload transactionPayload) throws ApiException { okhttp3.Call localVarCall = announcePartialTransactionValidateBeforeCall(transactionPayload, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Announce an aggregate bonded transaction (asynchronously) * Announces an aggregate bonded transaction to the network. * @param transactionPayload (required) * @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
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call announcePartialTransactionAsync(TransactionPayload transactionPayload, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = announcePartialTransactionValidateBeforeCall(transactionPayload, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for announceTransaction * @param transactionPayload (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call announceTransactionCall(TransactionPayload transactionPayload, final ApiCallback _callback) throws ApiException { Object localVarPostBody = transactionPayload; // create path and map variables String localVarPath = "/transactions"; 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "PUT", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call announceTransactionValidateBeforeCall(TransactionPayload transactionPayload, final ApiCallback _callback) throws ApiException { // verify the required parameter 'transactionPayload' is set if (transactionPayload == null) { throw new ApiException("Missing the required parameter 'transactionPayload' when calling announceTransaction(Async)"); } okhttp3.Call localVarCall = announceTransactionCall(transactionPayload, _callback); return localVarCall; } /** * Announce a new transaction * Announces a transaction to the network. The [catbuffer library](https://github.com/nemtech/catbuffer) defines the protocol to serialize and deserialize Symbol entities. Catbuffers are integrated into [Symbol SDKs](https://nemtech.github.io/sdk.html). It's recommended to use SDKs instead of calling the API endpoint directly to announce transactions. * @param transactionPayload (required) * @return AnnounceTransactionInfoDTO * @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
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public AnnounceTransactionInfoDTO announceTransaction(TransactionPayload transactionPayload) throws ApiException { ApiResponse localVarResp = announceTransactionWithHttpInfo(transactionPayload); return localVarResp.getData(); } /** * Announce a new transaction * Announces a transaction to the network. The [catbuffer library](https://github.com/nemtech/catbuffer) defines the protocol to serialize and deserialize Symbol entities. Catbuffers are integrated into [Symbol SDKs](https://nemtech.github.io/sdk.html). It's recommended to use SDKs instead of calling the API endpoint directly to announce transactions. * @param transactionPayload (required) * @return ApiResponse<AnnounceTransactionInfoDTO> * @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
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public ApiResponse announceTransactionWithHttpInfo(TransactionPayload transactionPayload) throws ApiException { okhttp3.Call localVarCall = announceTransactionValidateBeforeCall(transactionPayload, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Announce a new transaction (asynchronously) * Announces a transaction to the network. The [catbuffer library](https://github.com/nemtech/catbuffer) defines the protocol to serialize and deserialize Symbol entities. Catbuffers are integrated into [Symbol SDKs](https://nemtech.github.io/sdk.html). It's recommended to use SDKs instead of calling the API endpoint directly to announce transactions. * @param transactionPayload (required) * @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
202 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call announceTransactionAsync(TransactionPayload transactionPayload, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = announceTransactionValidateBeforeCall(transactionPayload, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getConfirmedTransaction * @param transactionId Transaction id or hash. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getConfirmedTransactionCall(String transactionId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/transactions/confirmed/{transactionId}" .replaceAll("\\{" + "transactionId" + "\\}", 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getConfirmedTransactionValidateBeforeCall(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 getConfirmedTransaction(Async)"); } okhttp3.Call localVarCall = getConfirmedTransactionCall(transactionId, _callback); return localVarCall; } /** * Get transaction information * Returns confirmed transaction information given a transactionId or hash. * @param transactionId Transaction id or hash. (required) * @return TransactionInfoDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public TransactionInfoDTO getConfirmedTransaction(String transactionId) throws ApiException { ApiResponse localVarResp = getConfirmedTransactionWithHttpInfo(transactionId); return localVarResp.getData(); } /** * Get transaction information * Returns confirmed transaction information given a transactionId or hash. * @param transactionId Transaction id or hash. (required) * @return ApiResponse<TransactionInfoDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getConfirmedTransactionWithHttpInfo(String transactionId) throws ApiException { okhttp3.Call localVarCall = getConfirmedTransactionValidateBeforeCall(transactionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get transaction information (asynchronously) * Returns confirmed transaction information given a transactionId or hash. * @param transactionId Transaction id or hash. (required) * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getConfirmedTransactionAsync(String transactionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getConfirmedTransactionValidateBeforeCall(transactionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getConfirmedTransactions * @param transactionIds (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call getConfirmedTransactionsCall(TransactionIds transactionIds, final ApiCallback _callback) throws ApiException { Object localVarPostBody = transactionIds; // create path and map variables String localVarPath = "/transactions/confirmed"; 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getConfirmedTransactionsValidateBeforeCall(TransactionIds transactionIds, final ApiCallback _callback) throws ApiException { // verify the required parameter 'transactionIds' is set if (transactionIds == null) { throw new ApiException("Missing the required parameter 'transactionIds' when calling getConfirmedTransactions(Async)"); } okhttp3.Call localVarCall = getConfirmedTransactionsCall(transactionIds, _callback); return localVarCall; } /** * Get transactions information * Returns confirmed transactions information for a given array of transactionIds. * @param transactionIds (required) * @return List<TransactionInfoDTO> * @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 success -
400 InvalidContent -
409 InvalidArgument -
*/ public List getConfirmedTransactions(TransactionIds transactionIds) throws ApiException { ApiResponse> localVarResp = getConfirmedTransactionsWithHttpInfo(transactionIds); return localVarResp.getData(); } /** * Get transactions information * Returns confirmed transactions information for a given array of transactionIds. * @param transactionIds (required) * @return ApiResponse<List<TransactionInfoDTO>> * @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 success -
400 InvalidContent -
409 InvalidArgument -
*/ public ApiResponse> getConfirmedTransactionsWithHttpInfo(TransactionIds transactionIds) throws ApiException { okhttp3.Call localVarCall = getConfirmedTransactionsValidateBeforeCall(transactionIds, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get transactions information (asynchronously) * Returns confirmed transactions information for a given array of transactionIds. * @param transactionIds (required) * @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 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call getConfirmedTransactionsAsync(TransactionIds transactionIds, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getConfirmedTransactionsValidateBeforeCall(transactionIds, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getPartialTransaction * @param transactionId Transaction id or hash. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getPartialTransactionCall(String transactionId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/transactions/partial/{transactionId}" .replaceAll("\\{" + "transactionId" + "\\}", 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getPartialTransactionValidateBeforeCall(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 getPartialTransaction(Async)"); } okhttp3.Call localVarCall = getPartialTransactionCall(transactionId, _callback); return localVarCall; } /** * Get transaction information * Returns partial transaction information given a transactionId or hash. * @param transactionId Transaction id or hash. (required) * @return TransactionInfoDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public TransactionInfoDTO getPartialTransaction(String transactionId) throws ApiException { ApiResponse localVarResp = getPartialTransactionWithHttpInfo(transactionId); return localVarResp.getData(); } /** * Get transaction information * Returns partial transaction information given a transactionId or hash. * @param transactionId Transaction id or hash. (required) * @return ApiResponse<TransactionInfoDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getPartialTransactionWithHttpInfo(String transactionId) throws ApiException { okhttp3.Call localVarCall = getPartialTransactionValidateBeforeCall(transactionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get transaction information (asynchronously) * Returns partial transaction information given a transactionId or hash. * @param transactionId Transaction id or hash. (required) * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getPartialTransactionAsync(String transactionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getPartialTransactionValidateBeforeCall(transactionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getPartialTransactions * @param transactionIds (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call getPartialTransactionsCall(TransactionIds transactionIds, final ApiCallback _callback) throws ApiException { Object localVarPostBody = transactionIds; // create path and map variables String localVarPath = "/transactions/partial"; 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getPartialTransactionsValidateBeforeCall(TransactionIds transactionIds, final ApiCallback _callback) throws ApiException { // verify the required parameter 'transactionIds' is set if (transactionIds == null) { throw new ApiException("Missing the required parameter 'transactionIds' when calling getPartialTransactions(Async)"); } okhttp3.Call localVarCall = getPartialTransactionsCall(transactionIds, _callback); return localVarCall; } /** * Get transactions information * Returns partial transactions information for a given array of transactionIds. * @param transactionIds (required) * @return List<TransactionInfoDTO> * @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 success -
400 InvalidContent -
409 InvalidArgument -
*/ public List getPartialTransactions(TransactionIds transactionIds) throws ApiException { ApiResponse> localVarResp = getPartialTransactionsWithHttpInfo(transactionIds); return localVarResp.getData(); } /** * Get transactions information * Returns partial transactions information for a given array of transactionIds. * @param transactionIds (required) * @return ApiResponse<List<TransactionInfoDTO>> * @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 success -
400 InvalidContent -
409 InvalidArgument -
*/ public ApiResponse> getPartialTransactionsWithHttpInfo(TransactionIds transactionIds) throws ApiException { okhttp3.Call localVarCall = getPartialTransactionsValidateBeforeCall(transactionIds, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get transactions information (asynchronously) * Returns partial transactions information for a given array of transactionIds. * @param transactionIds (required) * @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 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call getPartialTransactionsAsync(TransactionIds transactionIds, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getPartialTransactionsValidateBeforeCall(transactionIds, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getUnconfirmedTransaction * @param transactionId Transaction id or hash. (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getUnconfirmedTransactionCall(String transactionId, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/transactions/unconfirmed/{transactionId}" .replaceAll("\\{" + "transactionId" + "\\}", 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getUnconfirmedTransactionValidateBeforeCall(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 getUnconfirmedTransaction(Async)"); } okhttp3.Call localVarCall = getUnconfirmedTransactionCall(transactionId, _callback); return localVarCall; } /** * Get transaction information * Returns unconfirmed transaction information given a transactionId or hash. * @param transactionId Transaction id or hash. (required) * @return TransactionInfoDTO * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public TransactionInfoDTO getUnconfirmedTransaction(String transactionId) throws ApiException { ApiResponse localVarResp = getUnconfirmedTransactionWithHttpInfo(transactionId); return localVarResp.getData(); } /** * Get transaction information * Returns unconfirmed transaction information given a transactionId or hash. * @param transactionId Transaction id or hash. (required) * @return ApiResponse<TransactionInfoDTO> * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public ApiResponse getUnconfirmedTransactionWithHttpInfo(String transactionId) throws ApiException { okhttp3.Call localVarCall = getUnconfirmedTransactionValidateBeforeCall(transactionId, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get transaction information (asynchronously) * Returns unconfirmed transaction information given a transactionId or hash. * @param transactionId Transaction id or hash. (required) * @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 success -
404 ResourceNotFound -
409 InvalidArgument -
*/ public okhttp3.Call getUnconfirmedTransactionAsync(String transactionId, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = getUnconfirmedTransactionValidateBeforeCall(transactionId, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for getUnconfirmedTransactions * @param transactionIds (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call getUnconfirmedTransactionsCall(TransactionIds transactionIds, final ApiCallback _callback) throws ApiException { Object localVarPostBody = transactionIds; // create path and map variables String localVarPath = "/transactions/unconfirmed"; 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call getUnconfirmedTransactionsValidateBeforeCall(TransactionIds transactionIds, final ApiCallback _callback) throws ApiException { // verify the required parameter 'transactionIds' is set if (transactionIds == null) { throw new ApiException("Missing the required parameter 'transactionIds' when calling getUnconfirmedTransactions(Async)"); } okhttp3.Call localVarCall = getUnconfirmedTransactionsCall(transactionIds, _callback); return localVarCall; } /** * Get transactions information * Returns unconfirmed transactions information for a given array of transactionIds. * @param transactionIds (required) * @return List<TransactionInfoDTO> * @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 success -
400 InvalidContent -
409 InvalidArgument -
*/ public List getUnconfirmedTransactions(TransactionIds transactionIds) throws ApiException { ApiResponse> localVarResp = getUnconfirmedTransactionsWithHttpInfo(transactionIds); return localVarResp.getData(); } /** * Get transactions information * Returns unconfirmed transactions information for a given array of transactionIds. * @param transactionIds (required) * @return ApiResponse<List<TransactionInfoDTO>> * @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 success -
400 InvalidContent -
409 InvalidArgument -
*/ public ApiResponse> getUnconfirmedTransactionsWithHttpInfo(TransactionIds transactionIds) throws ApiException { okhttp3.Call localVarCall = getUnconfirmedTransactionsValidateBeforeCall(transactionIds, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get transactions information (asynchronously) * Returns unconfirmed transactions information for a given array of transactionIds. * @param transactionIds (required) * @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 success -
400 InvalidContent -
409 InvalidArgument -
*/ public okhttp3.Call getUnconfirmedTransactionsAsync(TransactionIds transactionIds, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getUnconfirmedTransactionsValidateBeforeCall(transactionIds, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for searchConfirmedTransactions * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 success -
409 InvalidArgument -
*/ public okhttp3.Call searchConfirmedTransactionsCall(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/transactions/confirmed"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (address != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("address", address)); } if (recipientAddress != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("recipientAddress", recipientAddress)); } if (signerPublicKey != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("signerPublicKey", signerPublicKey)); } if (height != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("height", height)); } if (type != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "type", type)); } if (embedded != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("embedded", embedded)); } if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); } if (pageNumber != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageNumber", pageNumber)); } if (offset != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); } if (order != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call searchConfirmedTransactionsValidateBeforeCall(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchConfirmedTransactionsCall(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order, _callback); return localVarCall; } /** * Get transactions * Returns an array of confirmed transactions. * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @return TransactionPage * @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 success -
409 InvalidArgument -
*/ public TransactionPage searchConfirmedTransactions(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException { ApiResponse localVarResp = searchConfirmedTransactionsWithHttpInfo(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order); return localVarResp.getData(); } /** * Get transactions * Returns an array of confirmed transactions. * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @return ApiResponse<TransactionPage> * @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 success -
409 InvalidArgument -
*/ public ApiResponse searchConfirmedTransactionsWithHttpInfo(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException { okhttp3.Call localVarCall = searchConfirmedTransactionsValidateBeforeCall(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get transactions (asynchronously) * Returns an array of confirmed transactions. * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @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 success -
409 InvalidArgument -
*/ public okhttp3.Call searchConfirmedTransactionsAsync(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchConfirmedTransactionsValidateBeforeCall(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for searchPartialTransactions * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 success -
409 InvalidArgument -
*/ public okhttp3.Call searchPartialTransactionsCall(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/transactions/partial"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (address != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("address", address)); } if (recipientAddress != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("recipientAddress", recipientAddress)); } if (signerPublicKey != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("signerPublicKey", signerPublicKey)); } if (height != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("height", height)); } if (type != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "type", type)); } if (embedded != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("embedded", embedded)); } if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); } if (pageNumber != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageNumber", pageNumber)); } if (offset != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); } if (order != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call searchPartialTransactionsValidateBeforeCall(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchPartialTransactionsCall(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order, _callback); return localVarCall; } /** * Get transactions * Returns an array of partial transactions. * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @return TransactionPage * @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 success -
409 InvalidArgument -
*/ public TransactionPage searchPartialTransactions(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException { ApiResponse localVarResp = searchPartialTransactionsWithHttpInfo(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order); return localVarResp.getData(); } /** * Get transactions * Returns an array of partial transactions. * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @return ApiResponse<TransactionPage> * @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 success -
409 InvalidArgument -
*/ public ApiResponse searchPartialTransactionsWithHttpInfo(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException { okhttp3.Call localVarCall = searchPartialTransactionsValidateBeforeCall(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get transactions (asynchronously) * Returns an array of partial transactions. * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @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 success -
409 InvalidArgument -
*/ public okhttp3.Call searchPartialTransactionsAsync(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchPartialTransactionsValidateBeforeCall(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } /** * Build call for searchUnconfirmedTransactions * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object * @http.response.details
Status Code Description Response Headers
200 success -
409 InvalidArgument -
*/ public okhttp3.Call searchUnconfirmedTransactionsCall(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order, final ApiCallback _callback) throws ApiException { Object localVarPostBody = null; // create path and map variables String localVarPath = "/transactions/unconfirmed"; List localVarQueryParams = new ArrayList(); List localVarCollectionQueryParams = new ArrayList(); if (address != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("address", address)); } if (recipientAddress != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("recipientAddress", recipientAddress)); } if (signerPublicKey != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("signerPublicKey", signerPublicKey)); } if (height != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("height", height)); } if (type != null) { localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "type", type)); } if (embedded != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("embedded", embedded)); } if (pageSize != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageSize", pageSize)); } if (pageNumber != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageNumber", pageNumber)); } if (offset != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("offset", offset)); } if (order != null) { localVarQueryParams.addAll(localVarApiClient.parameterToPair("order", order)); } 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); localVarHeaderParams.put("Content-Type", localVarContentType); String[] localVarAuthNames = new String[] { }; return localVarApiClient.buildCall(localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); } @SuppressWarnings("rawtypes") private okhttp3.Call searchUnconfirmedTransactionsValidateBeforeCall(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchUnconfirmedTransactionsCall(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order, _callback); return localVarCall; } /** * Get transactions * Returns an array of unconfirmed transactions. * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @return TransactionPage * @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 success -
409 InvalidArgument -
*/ public TransactionPage searchUnconfirmedTransactions(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException { ApiResponse localVarResp = searchUnconfirmedTransactionsWithHttpInfo(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order); return localVarResp.getData(); } /** * Get transactions * Returns an array of unconfirmed transactions. * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @return ApiResponse<TransactionPage> * @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 success -
409 InvalidArgument -
*/ public ApiResponse searchUnconfirmedTransactionsWithHttpInfo(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException { okhttp3.Call localVarCall = searchUnconfirmedTransactionsValidateBeforeCall(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } /** * Get transactions (asynchronously) * Returns an array of unconfirmed transactions. * @param address Filter by address involved in the transaction. An account's address is consider to be involved in the transaction when the account is the sender, recipient, or it is required to cosign the transaction. This filter cannot be combined with ``recipientAddress`` and ``signerPublicKey`` query params. (optional) * @param recipientAddress Address of an account receiving the transaction. (optional) * @param signerPublicKey Public key of the account signing the entity. (optional) * @param height Filter by block height. (optional, default to null) * @param type Filter by transaction type. To filter by multiple transaction types, add more filter query params like: ``type=16974&type=16718``. (optional) * @param embedded When true, the endpoint also returns all the embedded aggregate transactions. Otherwise, only top-level transactions used to calcualate the block transactionsHash are returned. (optional, default to false) * @param pageSize Select the number of entries to return. (optional, default to 10) * @param pageNumber Filter by page number. (optional, default to 1) * @param offset Entry id at which to start pagination. If the ordering parameter is set to -id, the elements returned precede the identifier. Otherwise, newer elements with respect to the id are returned. (optional) * @param order Sort responses in ascending or descending order based on the collection property set on the param ``orderBy``. If the request does not specify ``orderBy``, REST returns the collection ordered by id. (optional, default to desc) * @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 success -
409 InvalidArgument -
*/ public okhttp3.Call searchUnconfirmedTransactionsAsync(String address, String recipientAddress, String signerPublicKey, java.math.BigInteger height, List type, Boolean embedded, Integer pageSize, Integer pageNumber, String offset, Order order, final ApiCallback _callback) throws ApiException { okhttp3.Call localVarCall = searchUnconfirmedTransactionsValidateBeforeCall(address, recipientAddress, signerPublicKey, height, type, embedded, pageSize, pageNumber, offset, order, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy