Skip to content

Commit

Permalink
update to version 0.0.3
Browse files Browse the repository at this point in the history
small updates
  • Loading branch information
axshani committed Mar 12, 2024
1 parent eea296d commit 2ae175c
Show file tree
Hide file tree
Showing 823 changed files with 640 additions and 54,470 deletions.
162 changes: 58 additions & 104 deletions api/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private HttpRequest.Builder executeRequestBuilder(String applicationId) throws A

localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));

localVarRequestBuilder.header("Accept", "application/vnd.api+json");
localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");

localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
if (memberVarReadTimeout != null) {
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/unit/java/sdk/api/DefaultApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,7 @@ private HttpRequest.Builder executeRequestBuilder(ListPageParametersObject page,
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "page";
if (page != null) {
localVarQueryStringJoiner.add(page.toUrlQueryString("page"));
}
localVarQueryParams.addAll(ApiClient.parameterToPairs("page", page));
localVarQueryParameterBaseName = "filter";
localVarQueryParams.addAll(ApiClient.parameterToPairs("filter", filter));
localVarQueryParameterBaseName = "sort";
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/unit/java/sdk/api/GetCardApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import unit.java.sdk.ApiResponse;
import unit.java.sdk.Pair;

import unit.java.sdk.model.UnitCardResponse1;
import unit.java.sdk.model.UnitCardResponseWithIncluded;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -86,11 +86,11 @@ private String formatExceptionMessage(String operationId, int statusCode, String
* Get a Card from API
* @param cardId ID of the card to get (required)
* @param included (optional)
* @return UnitCardResponse1
* @return UnitCardResponseWithIncluded
* @throws ApiException if fails to make API call
*/
public UnitCardResponse1 execute(String cardId, String included) throws ApiException {
ApiResponse<UnitCardResponse1> localVarResponse = executeWithHttpInfo(cardId, included);
public UnitCardResponseWithIncluded execute(String cardId, String included) throws ApiException {
ApiResponse<UnitCardResponseWithIncluded> localVarResponse = executeWithHttpInfo(cardId, included);
return localVarResponse.getData();
}

Expand All @@ -99,10 +99,10 @@ public UnitCardResponse1 execute(String cardId, String included) throws ApiExcep
* Get a Card from API
* @param cardId ID of the card to get (required)
* @param included (optional)
* @return ApiResponse&lt;UnitCardResponse1&gt;
* @return ApiResponse&lt;UnitCardResponseWithIncluded&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<UnitCardResponse1> executeWithHttpInfo(String cardId, String included) throws ApiException {
public ApiResponse<UnitCardResponseWithIncluded> executeWithHttpInfo(String cardId, String included) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = executeRequestBuilder(cardId, included);
try {
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
Expand All @@ -115,10 +115,10 @@ public ApiResponse<UnitCardResponse1> executeWithHttpInfo(String cardId, String
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("execute", localVarResponse);
}
return new ApiResponse<UnitCardResponse1>(
return new ApiResponse<UnitCardResponseWithIncluded>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitCardResponse1>() {}) // closes the InputStream
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitCardResponseWithIncluded>() {}) // closes the InputStream
);
} finally {
}
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/unit/java/sdk/api/GetCardLimitsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import unit.java.sdk.ApiResponse;
import unit.java.sdk.Pair;

import unit.java.sdk.model.UnitCardResponse3;
import unit.java.sdk.model.UnitCardLimitsResponse;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -85,22 +85,22 @@ private String formatExceptionMessage(String operationId, int statusCode, String
* Get Card Limit by Id
* Get a Card Limits from API
* @param cardId ID of the card to get (required)
* @return UnitCardResponse3
* @return UnitCardLimitsResponse
* @throws ApiException if fails to make API call
*/
public UnitCardResponse3 execute(String cardId) throws ApiException {
ApiResponse<UnitCardResponse3> localVarResponse = executeWithHttpInfo(cardId);
public UnitCardLimitsResponse execute(String cardId) throws ApiException {
ApiResponse<UnitCardLimitsResponse> localVarResponse = executeWithHttpInfo(cardId);
return localVarResponse.getData();
}

/**
* Get Card Limit by Id
* Get a Card Limits from API
* @param cardId ID of the card to get (required)
* @return ApiResponse&lt;UnitCardResponse3&gt;
* @return ApiResponse&lt;UnitCardLimitsResponse&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<UnitCardResponse3> executeWithHttpInfo(String cardId) throws ApiException {
public ApiResponse<UnitCardLimitsResponse> executeWithHttpInfo(String cardId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = executeRequestBuilder(cardId);
try {
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
Expand All @@ -113,10 +113,10 @@ public ApiResponse<UnitCardResponse3> executeWithHttpInfo(String cardId) throws
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("execute", localVarResponse);
}
return new ApiResponse<UnitCardResponse3>(
return new ApiResponse<UnitCardLimitsResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitCardResponse3>() {}) // closes the InputStream
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitCardLimitsResponse>() {}) // closes the InputStream
);
} finally {
}
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/unit/java/sdk/api/GetCardPinStatusApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import unit.java.sdk.ApiResponse;
import unit.java.sdk.Pair;

import unit.java.sdk.model.UnitCardResponse2;
import unit.java.sdk.model.UnitPinStatusResponse;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -85,22 +85,22 @@ private String formatExceptionMessage(String operationId, int statusCode, String
* Get Card PIN Status
* Get Card PIN Status via API
* @param cardId ID of the card to get PIN status (required)
* @return UnitCardResponse2
* @return UnitPinStatusResponse
* @throws ApiException if fails to make API call
*/
public UnitCardResponse2 execute(String cardId) throws ApiException {
ApiResponse<UnitCardResponse2> localVarResponse = executeWithHttpInfo(cardId);
public UnitPinStatusResponse execute(String cardId) throws ApiException {
ApiResponse<UnitPinStatusResponse> localVarResponse = executeWithHttpInfo(cardId);
return localVarResponse.getData();
}

/**
* Get Card PIN Status
* Get Card PIN Status via API
* @param cardId ID of the card to get PIN status (required)
* @return ApiResponse&lt;UnitCardResponse2&gt;
* @return ApiResponse&lt;UnitPinStatusResponse&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<UnitCardResponse2> executeWithHttpInfo(String cardId) throws ApiException {
public ApiResponse<UnitPinStatusResponse> executeWithHttpInfo(String cardId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = executeRequestBuilder(cardId);
try {
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
Expand All @@ -113,10 +113,10 @@ public ApiResponse<UnitCardResponse2> executeWithHttpInfo(String cardId) throws
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("execute", localVarResponse);
}
return new ApiResponse<UnitCardResponse2>(
return new ApiResponse<UnitPinStatusResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitCardResponse2>() {}) // closes the InputStream
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitPinStatusResponse>() {}) // closes the InputStream
);
} finally {
}
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/unit/java/sdk/api/GetCheckDepositBackImageApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import unit.java.sdk.ApiResponse;
import unit.java.sdk.Pair;

import unit.java.sdk.model.UnitCheckDepositResponse1;
import unit.java.sdk.model.UnitCheckDepositImageResponse;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -85,22 +85,22 @@ private String formatExceptionMessage(String operationId, int statusCode, String
* Get Back Check Deposit Image by Id
* Get Back Check Deposit Image from API
* @param checkDepositId ID of the check deposit to get (required)
* @return UnitCheckDepositResponse1
* @return UnitCheckDepositImageResponse
* @throws ApiException if fails to make API call
*/
public UnitCheckDepositResponse1 execute(String checkDepositId) throws ApiException {
ApiResponse<UnitCheckDepositResponse1> localVarResponse = executeWithHttpInfo(checkDepositId);
public UnitCheckDepositImageResponse execute(String checkDepositId) throws ApiException {
ApiResponse<UnitCheckDepositImageResponse> localVarResponse = executeWithHttpInfo(checkDepositId);
return localVarResponse.getData();
}

/**
* Get Back Check Deposit Image by Id
* Get Back Check Deposit Image from API
* @param checkDepositId ID of the check deposit to get (required)
* @return ApiResponse&lt;UnitCheckDepositResponse1&gt;
* @return ApiResponse&lt;UnitCheckDepositImageResponse&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<UnitCheckDepositResponse1> executeWithHttpInfo(String checkDepositId) throws ApiException {
public ApiResponse<UnitCheckDepositImageResponse> executeWithHttpInfo(String checkDepositId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = executeRequestBuilder(checkDepositId);
try {
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
Expand All @@ -113,10 +113,10 @@ public ApiResponse<UnitCheckDepositResponse1> executeWithHttpInfo(String checkDe
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("execute", localVarResponse);
}
return new ApiResponse<UnitCheckDepositResponse1>(
return new ApiResponse<UnitCheckDepositImageResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitCheckDepositResponse1>() {}) // closes the InputStream
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitCheckDepositImageResponse>() {}) // closes the InputStream
);
} finally {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import unit.java.sdk.ApiResponse;
import unit.java.sdk.Pair;

import unit.java.sdk.model.UnitCheckDepositResponse1;
import unit.java.sdk.model.UnitCheckDepositImageResponse;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -85,22 +85,22 @@ private String formatExceptionMessage(String operationId, int statusCode, String
* Get Front Check Deposit Image by Id
* Get Front Check Deposit Image from API
* @param checkDepositId ID of the check deposit to get (required)
* @return UnitCheckDepositResponse1
* @return UnitCheckDepositImageResponse
* @throws ApiException if fails to make API call
*/
public UnitCheckDepositResponse1 execute(String checkDepositId) throws ApiException {
ApiResponse<UnitCheckDepositResponse1> localVarResponse = executeWithHttpInfo(checkDepositId);
public UnitCheckDepositImageResponse execute(String checkDepositId) throws ApiException {
ApiResponse<UnitCheckDepositImageResponse> localVarResponse = executeWithHttpInfo(checkDepositId);
return localVarResponse.getData();
}

/**
* Get Front Check Deposit Image by Id
* Get Front Check Deposit Image from API
* @param checkDepositId ID of the check deposit to get (required)
* @return ApiResponse&lt;UnitCheckDepositResponse1&gt;
* @return ApiResponse&lt;UnitCheckDepositImageResponse&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<UnitCheckDepositResponse1> executeWithHttpInfo(String checkDepositId) throws ApiException {
public ApiResponse<UnitCheckDepositImageResponse> executeWithHttpInfo(String checkDepositId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = executeRequestBuilder(checkDepositId);
try {
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
Expand All @@ -113,10 +113,10 @@ public ApiResponse<UnitCheckDepositResponse1> executeWithHttpInfo(String checkDe
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("execute", localVarResponse);
}
return new ApiResponse<UnitCheckDepositResponse1>(
return new ApiResponse<UnitCheckDepositImageResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitCheckDepositResponse1>() {}) // closes the InputStream
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitCheckDepositImageResponse>() {}) // closes the InputStream
);
} finally {
}
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/unit/java/sdk/api/GetCounterpartyBalanceApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import unit.java.sdk.ApiResponse;
import unit.java.sdk.Pair;

import unit.java.sdk.model.UnitCounterpartyResponse1;
import unit.java.sdk.model.UnitCounterpartyBalanceResponse;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -85,22 +85,22 @@ private String formatExceptionMessage(String operationId, int statusCode, String
* Get Counterparty Balance
* Get Recurring Payment from API
* @param counterpartyId ID of the counterparty to get (required)
* @return UnitCounterpartyResponse1
* @return UnitCounterpartyBalanceResponse
* @throws ApiException if fails to make API call
*/
public UnitCounterpartyResponse1 execute(String counterpartyId) throws ApiException {
ApiResponse<UnitCounterpartyResponse1> localVarResponse = executeWithHttpInfo(counterpartyId);
public UnitCounterpartyBalanceResponse execute(String counterpartyId) throws ApiException {
ApiResponse<UnitCounterpartyBalanceResponse> localVarResponse = executeWithHttpInfo(counterpartyId);
return localVarResponse.getData();
}

/**
* Get Counterparty Balance
* Get Recurring Payment from API
* @param counterpartyId ID of the counterparty to get (required)
* @return ApiResponse&lt;UnitCounterpartyResponse1&gt;
* @return ApiResponse&lt;UnitCounterpartyBalanceResponse&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<UnitCounterpartyResponse1> executeWithHttpInfo(String counterpartyId) throws ApiException {
public ApiResponse<UnitCounterpartyBalanceResponse> executeWithHttpInfo(String counterpartyId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = executeRequestBuilder(counterpartyId);
try {
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
Expand All @@ -113,10 +113,10 @@ public ApiResponse<UnitCounterpartyResponse1> executeWithHttpInfo(String counter
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("execute", localVarResponse);
}
return new ApiResponse<UnitCounterpartyResponse1>(
return new ApiResponse<UnitCounterpartyBalanceResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitCounterpartyResponse1>() {}) // closes the InputStream
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitCounterpartyBalanceResponse>() {}) // closes the InputStream
);
} finally {
}
Expand Down
16 changes: 8 additions & 8 deletions src/main/java/unit/java/sdk/api/GetEventApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import unit.java.sdk.ApiResponse;
import unit.java.sdk.Pair;

import unit.java.sdk.model.UnitEventResponse1;
import unit.java.sdk.model.UnitEventResponse;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
Expand Down Expand Up @@ -85,22 +85,22 @@ private String formatExceptionMessage(String operationId, int statusCode, String
* Get Event by Id
* Get an Event from API
* @param eventId ID of the event to get (required)
* @return UnitEventResponse1
* @return UnitEventResponse
* @throws ApiException if fails to make API call
*/
public UnitEventResponse1 execute(String eventId) throws ApiException {
ApiResponse<UnitEventResponse1> localVarResponse = executeWithHttpInfo(eventId);
public UnitEventResponse execute(String eventId) throws ApiException {
ApiResponse<UnitEventResponse> localVarResponse = executeWithHttpInfo(eventId);
return localVarResponse.getData();
}

/**
* Get Event by Id
* Get an Event from API
* @param eventId ID of the event to get (required)
* @return ApiResponse&lt;UnitEventResponse1&gt;
* @return ApiResponse&lt;UnitEventResponse&gt;
* @throws ApiException if fails to make API call
*/
public ApiResponse<UnitEventResponse1> executeWithHttpInfo(String eventId) throws ApiException {
public ApiResponse<UnitEventResponse> executeWithHttpInfo(String eventId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = executeRequestBuilder(eventId);
try {
HttpResponse<InputStream> localVarResponse = memberVarHttpClient.send(
Expand All @@ -113,10 +113,10 @@ public ApiResponse<UnitEventResponse1> executeWithHttpInfo(String eventId) throw
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("execute", localVarResponse);
}
return new ApiResponse<UnitEventResponse1>(
return new ApiResponse<UnitEventResponse>(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitEventResponse1>() {}) // closes the InputStream
localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference<UnitEventResponse>() {}) // closes the InputStream
);
} finally {
}
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/unit/java/sdk/api/GetListAccountsApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,7 @@ private HttpRequest.Builder executeRequestBuilder(ListPageParametersObject page,
StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "page";
if (page != null) {
localVarQueryStringJoiner.add(page.toUrlQueryString("page"));
}
localVarQueryParams.addAll(ApiClient.parameterToPairs("page", page));
localVarQueryParameterBaseName = "filter";
if (filter != null) {
localVarQueryStringJoiner.add(filter.toUrlQueryString("filter"));
Expand Down
Loading

0 comments on commit 2ae175c

Please sign in to comment.