
io.nem.symbol.sdk.openapi.jersey2.api.ReceiptRoutesApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of symbol-openapi-jersey2-client Show documentation
Show all versions of symbol-openapi-jersey2-client Show documentation
symbol-openapi-jersey2-client Generated Open API client for symbol-sdk-java
package io.nem.symbol.sdk.openapi.jersey2.api;
import io.nem.symbol.sdk.openapi.jersey2.invoker.ApiException;
import io.nem.symbol.sdk.openapi.jersey2.invoker.ApiClient;
import io.nem.symbol.sdk.openapi.jersey2.invoker.ApiResponse;
import io.nem.symbol.sdk.openapi.jersey2.invoker.Configuration;
import io.nem.symbol.sdk.openapi.jersey2.invoker.Pair;
import javax.ws.rs.core.GenericType;
import io.nem.symbol.sdk.openapi.jersey2.model.ModelError;
import io.nem.symbol.sdk.openapi.jersey2.model.Order;
import io.nem.symbol.sdk.openapi.jersey2.model.ReceiptTypeEnum;
import io.nem.symbol.sdk.openapi.jersey2.model.ResolutionStatementPage;
import io.nem.symbol.sdk.openapi.jersey2.model.TransactionStatementPage;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2021-02-02T19:39:53.661Z[UTC]")
public class ReceiptRoutesApi {
private ApiClient apiClient;
public ReceiptRoutesApi() {
this(Configuration.getDefaultApiClient());
}
public ReceiptRoutesApi(ApiClient apiClient) {
this.apiClient = apiClient;
}
public ApiClient getApiClient() {
return apiClient;
}
public void setApiClient(ApiClient apiClient) {
this.apiClient = apiClient;
}
/**
* Get receipts address resolution statements
* Gets an array of address resolution statements.
* @param height Filter by block height. (optional, default to null)
* @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 ResolutionStatementPage
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/
public ResolutionStatementPage searchAddressResolutionStatements(java.math.BigInteger height, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException {
return searchAddressResolutionStatementsWithHttpInfo(height, pageSize, pageNumber, offset, order).getData();
}
/**
* Get receipts address resolution statements
* Gets an array of address resolution statements.
* @param height Filter by block height. (optional, default to null)
* @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<ResolutionStatementPage>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/
public ApiResponse searchAddressResolutionStatementsWithHttpInfo(java.math.BigInteger height, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/statements/resolutions/address";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "height", height));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageNumber", pageNumber));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "order", order));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("ReceiptRoutesApi.searchAddressResolutionStatements", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Get receipts mosaic resolution statements
* Gets an array of mosaic resolution statements.
* @param height Filter by block height. (optional, default to null)
* @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 ResolutionStatementPage
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/
public ResolutionStatementPage searchMosaicResolutionStatements(java.math.BigInteger height, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException {
return searchMosaicResolutionStatementsWithHttpInfo(height, pageSize, pageNumber, offset, order).getData();
}
/**
* Get receipts mosaic resolution statements
* Gets an array of mosaic resolution statements.
* @param height Filter by block height. (optional, default to null)
* @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<ResolutionStatementPage>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/
public ApiResponse searchMosaicResolutionStatementsWithHttpInfo(java.math.BigInteger height, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/statements/resolutions/mosaic";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "height", height));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageNumber", pageNumber));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "order", order));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("ReceiptRoutesApi.searchMosaicResolutionStatements", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
/**
* Search transaction statements
* Gets an array of transaction statements.
* @param height Filter by block height. (optional, default to null)
* @param fromHeight Only blocks with height greater or equal than this one are returned. (optional, default to null)
* @param toHeight Only blocks with height smaller or equal than this one are returned. (optional, default to null)
* @param receiptType Filter by receipt type. To filter by multiple receipt types, add more filter query params like: ``receiptType=8515&receiptType=20803``. (optional, default to new ArrayList<>())
* @param recipientAddress Filter by address of the account receiving the transaction. (optional)
* @param senderAddress Filter by address sending mosaics. (optional)
* @param targetAddress Filter by target address. (optional)
* @param artifactId Mosaic or namespace identifier (optional)
* @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 TransactionStatementPage
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/
public TransactionStatementPage searchReceipts(java.math.BigInteger height, java.math.BigInteger fromHeight, java.math.BigInteger toHeight, List receiptType, String recipientAddress, String senderAddress, String targetAddress, String artifactId, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException {
return searchReceiptsWithHttpInfo(height, fromHeight, toHeight, receiptType, recipientAddress, senderAddress, targetAddress, artifactId, pageSize, pageNumber, offset, order).getData();
}
/**
* Search transaction statements
* Gets an array of transaction statements.
* @param height Filter by block height. (optional, default to null)
* @param fromHeight Only blocks with height greater or equal than this one are returned. (optional, default to null)
* @param toHeight Only blocks with height smaller or equal than this one are returned. (optional, default to null)
* @param receiptType Filter by receipt type. To filter by multiple receipt types, add more filter query params like: ``receiptType=8515&receiptType=20803``. (optional, default to new ArrayList<>())
* @param recipientAddress Filter by address of the account receiving the transaction. (optional)
* @param senderAddress Filter by address sending mosaics. (optional)
* @param targetAddress Filter by target address. (optional)
* @param artifactId Mosaic or namespace identifier (optional)
* @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<TransactionStatementPage>
* @throws ApiException if fails to make API call
* @http.response.details
Status Code Description Response Headers
200 success -
404 ResourceNotFound -
409 InvalidArgument -
*/
public ApiResponse searchReceiptsWithHttpInfo(java.math.BigInteger height, java.math.BigInteger fromHeight, java.math.BigInteger toHeight, List receiptType, String recipientAddress, String senderAddress, String targetAddress, String artifactId, Integer pageSize, Integer pageNumber, String offset, Order order) throws ApiException {
Object localVarPostBody = null;
// create path and map variables
String localVarPath = "/statements/transaction";
// query params
List localVarQueryParams = new ArrayList();
Map localVarHeaderParams = new HashMap();
Map localVarCookieParams = new HashMap();
Map localVarFormParams = new HashMap();
localVarQueryParams.addAll(apiClient.parameterToPairs("", "height", height));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "fromHeight", fromHeight));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "toHeight", toHeight));
localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "receiptType", receiptType));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "recipientAddress", recipientAddress));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "senderAddress", senderAddress));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "targetAddress", targetAddress));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "artifactId", artifactId));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageSize", pageSize));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "pageNumber", pageNumber));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "offset", offset));
localVarQueryParams.addAll(apiClient.parameterToPairs("", "order", order));
final String[] localVarAccepts = {
"application/json"
};
final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
final String[] localVarContentTypes = {
};
final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
String[] localVarAuthNames = new String[] { };
GenericType localVarReturnType = new GenericType() {};
return apiClient.invokeAPI("ReceiptRoutesApi.searchReceipts", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy