Skip to content

Commit

Permalink
update client src files - version 0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
axshani committed Jan 16, 2024
1 parent c35b113 commit fbffbf9
Show file tree
Hide file tree
Showing 796 changed files with 12,488 additions and 11,799 deletions.
1,079 changes: 632 additions & 447 deletions api/openapi.yaml

Large diffs are not rendered by default.

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
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.ExecuteRequest20;
import org.openapitools.client.model.ApproveCheckPaymentRequest;
import org.openapitools.client.model.UnitCheckPaymentResponse;

import java.lang.reflect.Type;
Expand Down Expand Up @@ -76,7 +76,7 @@ public void setCustomBaseUrl(String customBaseUrl) {
/**
* Build call for execute
* @param checkPaymentId ID of the check payment to approve (required)
* @param executeRequest20 Approve Check Payment Request (required)
* @param approveCheckPaymentRequest Approve Check Payment 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 checkPaymentId, ExecuteRequest20 executeRequest20, final ApiCallback _callback) throws ApiException {
public okhttp3.Call executeCall(String checkPaymentId, ApproveCheckPaymentRequest approveCheckPaymentRequest, 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 checkPaymentId, ExecuteRequest20 executeR
basePath = null;
}

Object localVarPostBody = executeRequest20;
Object localVarPostBody = approveCheckPaymentRequest;

// create path and map variables
String localVarPath = "/check-payments/{checkPaymentId}/approve"
Expand Down Expand Up @@ -133,26 +133,26 @@ public okhttp3.Call executeCall(String checkPaymentId, ExecuteRequest20 executeR
}

@SuppressWarnings("rawtypes")
private okhttp3.Call executeValidateBeforeCall(String checkPaymentId, ExecuteRequest20 executeRequest20, final ApiCallback _callback) throws ApiException {
private okhttp3.Call executeValidateBeforeCall(String checkPaymentId, ApproveCheckPaymentRequest approveCheckPaymentRequest, final ApiCallback _callback) throws ApiException {
// verify the required parameter 'checkPaymentId' is set
if (checkPaymentId == null) {
throw new ApiException("Missing the required parameter 'checkPaymentId' when calling execute(Async)");
}

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

return executeCall(checkPaymentId, executeRequest20, _callback);
return executeCall(checkPaymentId, approveCheckPaymentRequest, _callback);

}

/**
* Approve Check Payment by Id
* Approve a Check Payment via API
* @param checkPaymentId ID of the check payment to approve (required)
* @param executeRequest20 Approve Check Payment Request (required)
* @param approveCheckPaymentRequest Approve Check Payment Request (required)
* @return UnitCheckPaymentResponse
* @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 checkPaymentId, ExecuteReq
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
</table>
*/
public UnitCheckPaymentResponse execute(String checkPaymentId, ExecuteRequest20 executeRequest20) throws ApiException {
ApiResponse<UnitCheckPaymentResponse> localVarResp = executeWithHttpInfo(checkPaymentId, executeRequest20);
public UnitCheckPaymentResponse execute(String checkPaymentId, ApproveCheckPaymentRequest approveCheckPaymentRequest) throws ApiException {
ApiResponse<UnitCheckPaymentResponse> localVarResp = executeWithHttpInfo(checkPaymentId, approveCheckPaymentRequest);
return localVarResp.getData();
}

/**
* Approve Check Payment by Id
* Approve a Check Payment via API
* @param checkPaymentId ID of the check payment to approve (required)
* @param executeRequest20 Approve Check Payment Request (required)
* @param approveCheckPaymentRequest Approve Check Payment Request (required)
* @return ApiResponse&lt;UnitCheckPaymentResponse&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 UnitCheckPaymentResponse execute(String checkPaymentId, ExecuteRequest20
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
</table>
*/
public ApiResponse<UnitCheckPaymentResponse> executeWithHttpInfo(String checkPaymentId, ExecuteRequest20 executeRequest20) throws ApiException {
okhttp3.Call localVarCall = executeValidateBeforeCall(checkPaymentId, executeRequest20, null);
public ApiResponse<UnitCheckPaymentResponse> executeWithHttpInfo(String checkPaymentId, ApproveCheckPaymentRequest approveCheckPaymentRequest) throws ApiException {
okhttp3.Call localVarCall = executeValidateBeforeCall(checkPaymentId, approveCheckPaymentRequest, null);
Type localVarReturnType = new TypeToken<UnitCheckPaymentResponse>(){}.getType();
return localVarApiClient.execute(localVarCall, localVarReturnType);
}
Expand All @@ -189,7 +189,7 @@ public ApiResponse<UnitCheckPaymentResponse> executeWithHttpInfo(String checkPay
* Approve Check Payment by Id (asynchronously)
* Approve a Check Payment via API
* @param checkPaymentId ID of the check payment to approve (required)
* @param executeRequest20 Approve Check Payment Request (required)
* @param approveCheckPaymentRequest Approve Check Payment 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<UnitCheckPaymentResponse> executeWithHttpInfo(String checkPay
<tr><td> 200 </td><td> Successful Response </td><td> - </td></tr>
</table>
*/
public okhttp3.Call executeAsync(String checkPaymentId, ExecuteRequest20 executeRequest20, final ApiCallback<UnitCheckPaymentResponse> _callback) throws ApiException {
public okhttp3.Call executeAsync(String checkPaymentId, ApproveCheckPaymentRequest approveCheckPaymentRequest, final ApiCallback<UnitCheckPaymentResponse> _callback) throws ApiException {

okhttp3.Call localVarCall = executeValidateBeforeCall(checkPaymentId, executeRequest20, _callback);
okhttp3.Call localVarCall = executeValidateBeforeCall(checkPaymentId, approveCheckPaymentRequest, _callback);
Type localVarReturnType = new TypeToken<UnitCheckPaymentResponse>(){}.getType();
localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback);
return localVarCall;
Expand Down
Loading

0 comments on commit fbffbf9

Please sign in to comment.