public class RequestMaker extends Moip
CONNECT_PRODUCTION_URL, CONNECT_SANDBOX_URL, PRODUCTION_URL, SANDBOX_URL| Constructor | Description |
|---|---|
RequestMaker(Setup setup) |
This constructor sets the Moip environment and the authentication received from parameter.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Map<java.lang.String,java.lang.Object> |
doRequest(RequestProperties requestProps) |
This method is used to build the request, it set the environment (Sandbox or Production)
and the headers, create the
connection object to establish connection with Moip
APIResources, authenticate the connection, load the request properties received from parameter,
serialize the request object and send it to the API. |
java.util.List<java.util.Map<java.lang.String,java.lang.Object>> |
getList(RequestProperties requestProps) |
getUserAgentpublic RequestMaker(Setup setup)
setup - Setup the setup object.Authenticationpublic java.util.Map<java.lang.String,java.lang.Object> doRequest(RequestProperties requestProps)
connection object to establish connection with Moip
APIResources, authenticate the connection, load the request properties received from parameter,
serialize the request object and send it to the API. Finally, this method receive the
response JSON and deserialize it into the respective model object, sending the response
code and response body to responseBodyTreatment method to treat the response.requestProps - RequestProperties the object containing the properties of
request, its like request method, endpoint, object, type, content type
and if it accepts another JSON version.Map<String, Object>public java.util.List<java.util.Map<java.lang.String,java.lang.Object>> getList(RequestProperties requestProps)
requestProps -