Package com.adyen.service.resource
Class Resource
- java.lang.Object
-
- com.adyen.service.resource.Resource
-
- Direct Known Subclasses:
Async,ConnectedTerminals,LocalRequest,Sync
public class Resource extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringendpointprotected List<String>requiredFields
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringrequest(String json)Request using json StringStringrequest(String json, ApiConstants.HttpMethod httpMethod)Request using json StringStringrequest(String json, RequestOptions requestOptions)Request using json String with additional request parameters like idempotency-keyStringrequest(String json, RequestOptions requestOptions, ApiConstants.HttpMethod httpMethod, Map<String,String> pathParams)Request without query string parametersStringrequest(String json, RequestOptions requestOptions, ApiConstants.HttpMethod httpMethod, Map<String,String> pathParams, Map<String,String> queryString)Request using json String with additional request parameters like idempotency-key
-
-
-
Method Detail
-
request
public String request(String json, ApiConstants.HttpMethod httpMethod) throws ApiException, IOException
Request using json String- Parameters:
json- request json- Returns:
- request
- Throws:
ApiException- ApiExceptionIOException- IOException
-
request
public String request(String json) throws ApiException, IOException
Request using json String- Parameters:
json- request json- Returns:
- request
- Throws:
ApiException- ApiExceptionIOException- IOException
-
request
public String request(String json, RequestOptions requestOptions) throws ApiException, IOException
Request using json String with additional request parameters like idempotency-key- Parameters:
json- jsonrequestOptions- request options- Returns:
- request
- Throws:
ApiException- apiExceptionIOException- IOException
-
request
public String request(String json, RequestOptions requestOptions, ApiConstants.HttpMethod httpMethod, Map<String,String> pathParams) throws ApiException, IOException
Request without query string parameters- Throws:
ApiExceptionIOException
-
request
public String request(String json, RequestOptions requestOptions, ApiConstants.HttpMethod httpMethod, Map<String,String> pathParams, Map<String,String> queryString) throws ApiException, IOException
Request using json String with additional request parameters like idempotency-key- Parameters:
json- jsonrequestOptions- request optionshttpMethod- http methodpathParams- path parametersqueryString- query string parameters- Returns:
- request
- Throws:
ApiException- apiExceptionIOException- IOException
-
-