null
, i.e. using
- * the system's default tempopary folder.
- *
- * @see createTempFile
- * @return Temporary folder path
- */
- public String getTempFolderPath() {
- return tempFolderPath;
- }
-
- /**
- * Set the temporary folder path (for downloading files)
- *
- * @param tempFolderPath Temporary folder path
- * @return ApiClient
- */
- public ApiClient setTempFolderPath(String tempFolderPath) {
- this.tempFolderPath = tempFolderPath;
- return this;
- }
-
- /**
- * Get connection timeout (in milliseconds).
- *
- * @return Timeout in milliseconds
- */
- public int getConnectTimeout() {
- return httpClient.connectTimeoutMillis();
- }
-
- /**
- * Sets the connect timeout (in milliseconds).
- * A value of 0 means no timeout, otherwise values must be between 1 and
- * {@link Integer#MAX_VALUE}.
- *
- * @param connectionTimeout connection timeout in milliseconds
- * @return Api client
- */
- public ApiClient setConnectTimeout(int connectionTimeout) {
- httpClient = httpClient.newBuilder().connectTimeout(connectionTimeout, TimeUnit.MILLISECONDS).build();
- return this;
- }
-
- /**
- * Get read timeout (in milliseconds).
- *
- * @return Timeout in milliseconds
- */
- public int getReadTimeout() {
- return httpClient.readTimeoutMillis();
- }
-
- /**
- * Sets the read timeout (in milliseconds).
- * A value of 0 means no timeout, otherwise values must be between 1 and
- * {@link Integer#MAX_VALUE}.
- *
- * @param readTimeout read timeout in milliseconds
- * @return Api client
- */
- public ApiClient setReadTimeout(int readTimeout) {
- httpClient = httpClient.newBuilder().readTimeout(readTimeout, TimeUnit.MILLISECONDS).build();
- return this;
- }
-
- /**
- * Get write timeout (in milliseconds).
- *
- * @return Timeout in milliseconds
- */
- public int getWriteTimeout() {
- return httpClient.writeTimeoutMillis();
- }
-
- /**
- * Sets the write timeout (in milliseconds).
- * A value of 0 means no timeout, otherwise values must be between 1 and
- * {@link Integer#MAX_VALUE}.
- *
- * @param writeTimeout connection timeout in milliseconds
- * @return Api client
- */
- public ApiClient setWriteTimeout(int writeTimeout) {
- httpClient = httpClient.newBuilder().writeTimeout(writeTimeout, TimeUnit.MILLISECONDS).build();
- return this;
- }
-
-
- /**
- * Format the given parameter object into string.
- *
- * @param param Parameter
- * @return String representation of the parameter
- */
- public String parameterToString(Object param) {
- if (param == null) {
- return "";
- } else if (param instanceof Date || param instanceof OffsetDateTime || param instanceof LocalDate) {
- //Serialize to json string and remove the " enclosing characters
- String jsonStr = json.serialize(param);
- return jsonStr.substring(1, jsonStr.length() - 1);
- } else if (param instanceof Collection) {
- StringBuilder b = new StringBuilder();
- for (Object o : (Collection) param) {
- if (b.length() > 0) {
- b.append(",");
- }
- b.append(String.valueOf(o));
- }
- return b.toString();
- } else {
- return String.valueOf(param);
- }
- }
-
- /**
- * Formats the specified query parameter to a list containing a single {@code Pair} object.
- *
- * Note that {@code value} must not be a collection.
- *
- * @param name The name of the parameter.
- * @param value The value of the parameter.
- * @return A list containing a single {@code Pair} object.
- */
- public List- * Note: This might be replaced by utility method from commons-lang or guava someday - * if one of those libraries is added as dependency. - *
- * - * @param array The array of strings - * @param separator The separator - * @return the resulting string - */ - public static String join(String[] array, String separator) { - int len = array.length; - if (len == 0) { - return ""; - } - - StringBuilder out = new StringBuilder(); - out.append(array[0]); - for (int i = 1; i < len; i++) { - out.append(separator).append(array[i]); - } - return out.toString(); - } - - /** - * Join a list of strings with the given separator. - * - * @param list The list of strings - * @param separator The separator - * @return the resulting string - */ - public static String join(CollectionStatus Code | Description | Response Headers |
201 | Returns the anti-fraud service that was added. | - |
400 | Returns an error if the request was badly formatted or missing required fields. | - |
401 | Returns an error if no valid authentication was provided. | - |
409 | Returns an error if duplicate resource has been found. | - |
Status Code | Description | Response Headers |
201 | Returns the anti-fraud service that was added. | - |
400 | Returns an error if the request was badly formatted or missing required fields. | - |
401 | Returns an error if no valid authentication was provided. | - |
409 | Returns an error if duplicate resource has been found. | - |
Status Code | Description | Response Headers |
201 | Returns the anti-fraud service that was added. | - |
400 | Returns an error if the request was badly formatted or missing required fields. | - |
401 | Returns an error if no valid authentication was provided. | - |
409 | Returns an error if duplicate resource has been found. | - |
Status Code | Description | Response Headers |
201 | Returns the anti-fraud service that was added. | - |
400 | Returns an error if the request was badly formatted or missing required fields. | - |
401 | Returns an error if no valid authentication was provided. | - |
409 | Returns an error if duplicate resource has been found. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
200 | Returns the information about a anti-fraud service. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
0 | Returns a generic error. | - |
Status Code | Description | Response Headers |
200 | Returns the information about a anti-fraud service. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
0 | Returns a generic error. | - |
Status Code | Description | Response Headers |
200 | Returns the information about a anti-fraud service. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
0 | Returns a generic error. | - |
Status Code | Description | Response Headers |
200 | Returns the information about a anti-fraud service. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
0 | Returns a generic error. | - |
Status Code | Description | Response Headers |
200 | Returns the anti-fraud service that was updated. | - |
400 | Returns an error if the request was badly formatted or missing required fields. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
200 | Returns the anti-fraud service that was updated. | - |
400 | Returns an error if the request was badly formatted or missing required fields. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
200 | Returns the anti-fraud service that was updated. | - |
400 | Returns an error if the request was badly formatted or missing required fields. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
200 | Returns the anti-fraud service that was updated. | - |
400 | Returns an error if the request was badly formatted or missing required fields. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
200 | Returns a list of API logs. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
200 | Returns a list of API logs. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
200 | Returns a list of API logs. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
200 | Returns a list of API logs. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
200 | Returns a list of audit logs. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
200 | Returns a list of audit logs. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
200 | Returns a list of audit logs. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
200 | Returns a list of audit logs. | - |
401 | Returns an error if no valid authentication was provided. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
204 | Returns an empty response. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
Status Code | Description | Response Headers |
200 | Returns the information about a buyer. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
0 | Returns a generic error. | - |
Status Code | Description | Response Headers |
200 | Returns the information about a buyer. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
0 | Returns a generic error. | - |
Status Code | Description | Response Headers |
200 | Returns the information about a buyer. | - |
401 | Returns an error if no valid authentication was provided. | - |
404 | Returns an error if the resource can not be found. | - |
0 | Returns a generic error. | - |