Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1,079 changes: 632 additions & 447 deletions api/openapi.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apply plugin: 'java'
apply plugin: 'com.diffplug.spotless'

group = 'co.unit.sdk'
version = '0.0.1'
version = '0.0.2'

buildscript {
repositories {
Expand Down Expand Up @@ -91,7 +91,7 @@ if(hasProperty('target') && target == 'android') {
maven(MavenPublication) {
groupId = 'co.unit'
artifactId = 'java-sdk'
version = '0.0.1'
version = '0.0.2'
from components.java

pom {
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "org.openapitools",
name := "openapi-java-client",
version := "0.2.0",
version := "0.0.2",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<artifactId>openapi-java-client</artifactId>
<packaging>jar</packaging>
<name>openapi-java-client</name>
<version>0.2.0</version>
<version>0.0.2</version>
<url>https://github.com/openapitools/openapi-generator</url>
<description>OpenAPI Java</description>
<scm>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/openapitools/client/ApiCallback.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/openapitools/client/ApiClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down Expand Up @@ -140,7 +140,7 @@ private void init() {
json = new JSON();

// Set default User-Agent.
setUserAgent("OpenAPI-Generator/0.2.0/java");
setUserAgent("OpenAPI-Generator/0.0.2/java");

authentications = new HashMap<String, Authentication>();
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/openapitools/client/ApiException.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/openapitools/client/ApiResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/openapitools/client/Configuration.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -15,7 +15,7 @@

@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class Configuration {
public static final String VERSION = "0.2.0";
public static final String VERSION = "0.0.2";

private static ApiClient defaultApiClient = new ApiClient();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
100 changes: 53 additions & 47 deletions src/main/java/org/openapitools/client/JSON.java

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/main/java/org/openapitools/client/Pair.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/openapitools/client/StringUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Unit OpenAPI specifications
* An OpenAPI specifications for unit-sdk clients
*
* The version of the OpenAPI document: 0.2.0
* The version of the OpenAPI document: 0.0.2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Expand All @@ -27,7 +27,7 @@
import java.io.IOException;


import org.openapitools.client.model.ExecuteRequest10;
import org.openapitools.client.model.ApproveAuthorizationRequest;
import org.openapitools.client.model.UnitAuthorizationRequestResponse;

import java.lang.reflect.Type;
Expand Down Expand Up @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
/**
* Build call for execute
* @param authorizationId ID of the authorization request to approve (required)
* @param executeRequest10 Approve Authorization Request Request (required)
* @param approveAuthorizationRequest Approve Authorization Request (required)
* @param _callback Callback for upload/download progress
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
Expand All @@ -86,7 +86,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
</table>
*/
public okhttp3.Call executeCall(String authorizationId, ExecuteRequest10 executeRequest10, final ApiCallback _callback) throws ApiException {
public okhttp3.Call executeCall(String authorizationId, ApproveAuthorizationRequest approveAuthorizationRequest, final ApiCallback _callback) throws ApiException {
String basePath = null;
// Operation Servers
String[] localBasePaths = new String[] { };
Expand All @@ -100,7 +100,7 @@ public okhttp3.Call executeCall(String authorizationId, ExecuteRequest10 execute
basePath = null;
}

Object localVarPostBody = executeRequest10;
Object localVarPostBody = approveAuthorizationRequest;

// create path and map variables
String localVarPath = "/authorization-requests/{authorizationId}/approve"
Expand Down Expand Up @@ -133,26 +133,26 @@ public okhttp3.Call executeCall(String authorizationId, ExecuteRequest10 execute
}

@SuppressWarnings("rawtypes")
private okhttp3.Call executeValidateBeforeCall(String authorizationId, ExecuteRequest10 executeRequest10, final ApiCallback _callback) throws ApiException {
private okhttp3.Call executeValidateBeforeCall(String authorizationId, ApproveAuthorizationRequest approveAuthorizationRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'authorizationId' is set
if (authorizationId == null) {
throw new ApiException("Missing the required parameter 'authorizationId' when calling execute(Async)");
}

// verify the required parameter 'executeRequest10' is set
if (executeRequest10 == null) {
throw new ApiException("Missing the required parameter 'executeRequest10' when calling execute(Async)");
// verify the required parameter 'approveAuthorizationRequest' is set
if (approveAuthorizationRequest == null) {
throw new ApiException("Missing the required parameter 'approveAuthorizationRequest' when calling execute(Async)");
}

return executeCall(authorizationId, executeRequest10, _callback);
return executeCall(authorizationId, approveAuthorizationRequest, _callback);

}

/**
* Approve Authorization Request by Id
* Approve a Authorization Request via API
* @param authorizationId ID of the authorization request to approve (required)
* @param executeRequest10 Approve Authorization Request Request (required)
* @param approveAuthorizationRequest Approve Authorization Request (required)
* @return UnitAuthorizationRequestResponse
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Expand All @@ -161,16 +161,16 @@ private okhttp3.Call executeValidateBeforeCall(String authorizationId, ExecuteRe
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
</table>
*/
public UnitAuthorizationRequestResponse execute(String authorizationId, ExecuteRequest10 executeRequest10) throws ApiException {
ApiResponse<UnitAuthorizationRequestResponse> localVarResp = executeWithHttpInfo(authorizationId, executeRequest10);
public UnitAuthorizationRequestResponse execute(String authorizationId, ApproveAuthorizationRequest approveAuthorizationRequest) throws ApiException {
ApiResponse<UnitAuthorizationRequestResponse> localVarResp = executeWithHttpInfo(authorizationId, approveAuthorizationRequest);
return localVarResp.getData();
}

/**
* Approve Authorization Request by Id
* Approve a Authorization Request via API
* @param authorizationId ID of the authorization request to approve (required)
* @param executeRequest10 Approve Authorization Request Request (required)
* @param approveAuthorizationRequest Approve Authorization Request (required)
* @return ApiResponse&lt;UnitAuthorizationRequestResponse&gt;
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
* @http.response.details
Expand All @@ -179,8 +179,8 @@ public UnitAuthorizationRequestResponse execute(String authorizationId, ExecuteR
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
</table>
*/
public ApiResponse<UnitAuthorizationRequestResponse> executeWithHttpInfo(String authorizationId, ExecuteRequest10 executeRequest10) throws ApiException {
okhttp3.Call localVarCall = executeValidateBeforeCall(authorizationId, executeRequest10, null);
public ApiResponse<UnitAuthorizationRequestResponse> executeWithHttpInfo(String authorizationId, ApproveAuthorizationRequest approveAuthorizationRequest) throws ApiException {
okhttp3.Call localVarCall = executeValidateBeforeCall(authorizationId, approveAuthorizationRequest, null);
Type localVarReturnType = new TypeToken<UnitAuthorizationRequestResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
Expand All @@ -189,7 +189,7 @@ public ApiResponse<UnitAuthorizationRequestResponse> executeWithHttpInfo(String
* Approve Authorization Request by Id (asynchronously)
* Approve a Authorization Request via API
* @param authorizationId ID of the authorization request to approve (required)
* @param executeRequest10 Approve Authorization Request Request (required)
* @param approveAuthorizationRequest Approve Authorization Request (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
Expand All @@ -199,9 +199,9 @@ public ApiResponse<UnitAuthorizationRequestResponse> executeWithHttpInfo(String
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
</table>
*/
public okhttp3.Call executeAsync(String authorizationId, ExecuteRequest10 executeRequest10, final ApiCallback<UnitAuthorizationRequestResponse> _callback) throws ApiException {
public okhttp3.Call executeAsync(String authorizationId, ApproveAuthorizationRequest approveAuthorizationRequest, final ApiCallback<UnitAuthorizationRequestResponse> _callback) throws ApiException {

okhttp3.Call localVarCall = executeValidateBeforeCall(authorizationId, executeRequest10, _callback);
okhttp3.Call localVarCall = executeValidateBeforeCall(authorizationId, approveAuthorizationRequest, _callback);
Type localVarReturnType = new TypeToken<UnitAuthorizationRequestResponse>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
Expand Down
Loading