@@ -253,5 +258,6 @@
2.1.1
4.13.2
2.27.2
+ 4.5.14
diff --git a/src/main/java/unit/java/sdk/ApiClient.java b/src/main/java/unit/java/sdk/ApiClient.java
index c8326058..a6b4804e 100644
--- a/src/main/java/unit/java/sdk/ApiClient.java
+++ b/src/main/java/unit/java/sdk/ApiClient.java
@@ -51,7 +51,7 @@
* The setter methods of this class return the current object to facilitate
* a fluent style of configuration.
*/
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApiClient {
private HttpClient.Builder builder;
@@ -66,7 +66,7 @@ public class ApiClient {
private Duration readTimeout;
private Duration connectTimeout;
- private static String valueToString(Object value) {
+ public static String valueToString(Object value) {
if (value == null) {
return "";
}
diff --git a/src/main/java/unit/java/sdk/ApiException.java b/src/main/java/unit/java/sdk/ApiException.java
index c2fc824f..8eb62d62 100644
--- a/src/main/java/unit/java/sdk/ApiException.java
+++ b/src/main/java/unit/java/sdk/ApiException.java
@@ -15,7 +15,7 @@
import java.net.http.HttpHeaders;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApiException extends Exception {
private static final long serialVersionUID = 1L;
diff --git a/src/main/java/unit/java/sdk/ApiResponse.java b/src/main/java/unit/java/sdk/ApiResponse.java
index 32e459e4..67b2bb2e 100644
--- a/src/main/java/unit/java/sdk/ApiResponse.java
+++ b/src/main/java/unit/java/sdk/ApiResponse.java
@@ -21,7 +21,7 @@
*
* @param The type of data that is deserialized from response body
*/
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ApiResponse {
final private int statusCode;
final private Map> headers;
diff --git a/src/main/java/unit/java/sdk/Configuration.java b/src/main/java/unit/java/sdk/Configuration.java
index 981bf579..862f164a 100644
--- a/src/main/java/unit/java/sdk/Configuration.java
+++ b/src/main/java/unit/java/sdk/Configuration.java
@@ -13,7 +13,7 @@
package unit.java.sdk;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class Configuration {
public static final String VERSION = "0.1.0";
diff --git a/src/main/java/unit/java/sdk/JSON.java b/src/main/java/unit/java/sdk/JSON.java
index 2ab5030f..6d908b91 100644
--- a/src/main/java/unit/java/sdk/JSON.java
+++ b/src/main/java/unit/java/sdk/JSON.java
@@ -1,3 +1,16 @@
+/*
+ * Unit OpenAPI specifications
+ * An OpenAPI specifications for unit-sdk clients
+ *
+ * The version of the OpenAPI document: 0.1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
package unit.java.sdk;
import com.fasterxml.jackson.annotation.*;
@@ -13,7 +26,7 @@
import java.util.Map;
import java.util.Set;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class JSON {
private ObjectMapper mapper;
@@ -21,7 +34,7 @@ public JSON() {
mapper = JsonMapper.builder()
.serializationInclusion(JsonInclude.Include.NON_NULL)
.disable(MapperFeature.ALLOW_COERCION_OF_SCALARS)
- .enable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
+ .disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES)
.enable(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE)
.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS)
.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING)
@@ -69,7 +82,7 @@ public static Class> getClassForElement(JsonNode node, Class> modelClass) {
/**
* Helper class to register the discriminator mappings.
*/
- @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
+ @jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
private static class ClassDiscriminatorMapping {
// The model class name.
Class> modelClass;
diff --git a/src/main/java/unit/java/sdk/Pair.java b/src/main/java/unit/java/sdk/Pair.java
index eaa6ebe3..32992d98 100644
--- a/src/main/java/unit/java/sdk/Pair.java
+++ b/src/main/java/unit/java/sdk/Pair.java
@@ -13,7 +13,7 @@
package unit.java.sdk;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class Pair {
private String name = "";
private String value = "";
diff --git a/src/main/java/unit/java/sdk/RFC3339DateFormat.java b/src/main/java/unit/java/sdk/RFC3339DateFormat.java
index 4e596429..2c430382 100644
--- a/src/main/java/unit/java/sdk/RFC3339DateFormat.java
+++ b/src/main/java/unit/java/sdk/RFC3339DateFormat.java
@@ -22,7 +22,7 @@
import java.util.GregorianCalendar;
import java.util.TimeZone;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class RFC3339DateFormat extends DateFormat {
private static final long serialVersionUID = 1L;
private static final TimeZone TIMEZONE_Z = TimeZone.getTimeZone("UTC");
diff --git a/src/main/java/unit/java/sdk/ServerConfiguration.java b/src/main/java/unit/java/sdk/ServerConfiguration.java
index c9c59160..c5fc2206 100644
--- a/src/main/java/unit/java/sdk/ServerConfiguration.java
+++ b/src/main/java/unit/java/sdk/ServerConfiguration.java
@@ -1,3 +1,16 @@
+/*
+ * Unit OpenAPI specifications
+ * An OpenAPI specifications for unit-sdk clients
+ *
+ * The version of the OpenAPI document: 0.1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
package unit.java.sdk;
import java.util.Map;
@@ -5,7 +18,7 @@
/**
* Representing a Server configuration.
*/
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ServerConfiguration {
public String URL;
public String description;
diff --git a/src/main/java/unit/java/sdk/ServerVariable.java b/src/main/java/unit/java/sdk/ServerVariable.java
index cb6d280f..bd59ce4f 100644
--- a/src/main/java/unit/java/sdk/ServerVariable.java
+++ b/src/main/java/unit/java/sdk/ServerVariable.java
@@ -1,3 +1,16 @@
+/*
+ * Unit OpenAPI specifications
+ * An OpenAPI specifications for unit-sdk clients
+ *
+ * The version of the OpenAPI document: 0.1.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
package unit.java.sdk;
import java.util.HashSet;
@@ -5,7 +18,7 @@
/**
* Representing a Server Variable for server URL template substitution.
*/
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class ServerVariable {
public String description;
public String defaultValue;
diff --git a/src/main/java/unit/java/sdk/api/RepaymentInformationApi.java b/src/main/java/unit/java/sdk/api/RepaymentInformationApi.java
deleted file mode 100644
index 74a3ae3c..00000000
--- a/src/main/java/unit/java/sdk/api/RepaymentInformationApi.java
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
- * Unit OpenAPI specifications
- * An OpenAPI specifications for unit-sdk clients
- *
- * The version of the OpenAPI document: 0.1.0
- *
- *
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
- * https://openapi-generator.tech
- * Do not edit the class manually.
- */
-
-package unit.java.sdk.api;
-
-import unit.java.sdk.ApiClient;
-import unit.java.sdk.ApiException;
-import unit.java.sdk.ApiResponse;
-import unit.java.sdk.Pair;
-
-import unit.java.sdk.model.UnitErrorInner;
-import unit.java.sdk.model.UnitRepaymentInformationResponse;
-
-import com.fasterxml.jackson.core.type.TypeReference;
-import com.fasterxml.jackson.databind.ObjectMapper;
-
-import java.io.InputStream;
-import java.io.ByteArrayInputStream;
-import java.io.ByteArrayOutputStream;
-import java.io.File;
-import java.io.IOException;
-import java.io.OutputStream;
-import java.net.http.HttpRequest;
-import java.nio.channels.Channels;
-import java.nio.channels.Pipe;
-import java.net.URI;
-import java.net.http.HttpClient;
-import java.net.http.HttpRequest;
-import java.net.http.HttpResponse;
-import java.time.Duration;
-
-import java.util.ArrayList;
-import java.util.StringJoiner;
-import java.util.List;
-import java.util.Map;
-import java.util.Set;
-import java.util.function.Consumer;
-
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
-public class RepaymentInformationApi {
- private final HttpClient memberVarHttpClient;
- private final ObjectMapper memberVarObjectMapper;
- private final String memberVarBaseUri;
- private final Consumer memberVarInterceptor;
- private final Duration memberVarReadTimeout;
- private final Consumer> memberVarResponseInterceptor;
- private final Consumer> memberVarAsyncResponseInterceptor;
-
- public RepaymentInformationApi() {
- this(new ApiClient());
- }
-
- public RepaymentInformationApi(ApiClient apiClient) {
- memberVarHttpClient = apiClient.getHttpClient();
- memberVarObjectMapper = apiClient.getObjectMapper();
- memberVarBaseUri = apiClient.getBaseUri();
- memberVarInterceptor = apiClient.getRequestInterceptor();
- memberVarReadTimeout = apiClient.getReadTimeout();
- memberVarResponseInterceptor = apiClient.getResponseInterceptor();
- memberVarAsyncResponseInterceptor = apiClient.getAsyncResponseInterceptor();
- }
-
- protected ApiException getApiException(String operationId, HttpResponse response) throws IOException {
- String body = response.body() == null ? null : new String(response.body().readAllBytes());
- String message = formatExceptionMessage(operationId, response.statusCode(), body);
- return new ApiException(response.statusCode(), message, response.headers(), body);
- }
-
- private String formatExceptionMessage(String operationId, int statusCode, String body) {
- if (body == null || body.isEmpty()) {
- body = "[no body]";
- }
- return operationId + " call failed with: " + statusCode + " - " + body;
- }
-
- /**
- * Get Repayment Information
- * Retrieve the repayment information for a specific account via API
- * @param accountId ID of the account to get repayment information for (required)
- * @return UnitRepaymentInformationResponse
- * @throws ApiException if fails to make API call
- */
- public UnitRepaymentInformationResponse execute(String accountId) throws ApiException {
- ApiResponse localVarResponse = executeWithHttpInfo(accountId);
- return localVarResponse.getData();
- }
-
- /**
- * Get Repayment Information
- * Retrieve the repayment information for a specific account via API
- * @param accountId ID of the account to get repayment information for (required)
- * @return ApiResponse<UnitRepaymentInformationResponse>
- * @throws ApiException if fails to make API call
- */
- public ApiResponse executeWithHttpInfo(String accountId) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = executeRequestBuilder(accountId);
- try {
- HttpResponse localVarResponse = memberVarHttpClient.send(
- localVarRequestBuilder.build(),
- HttpResponse.BodyHandlers.ofInputStream());
- if (memberVarResponseInterceptor != null) {
- memberVarResponseInterceptor.accept(localVarResponse);
- }
- try {
- if (localVarResponse.statusCode()/ 100 != 2) {
- throw getApiException("execute", localVarResponse);
- }
- return new ApiResponse(
- localVarResponse.statusCode(),
- localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
- );
- } finally {
- }
- } catch (IOException e) {
- throw new ApiException(e);
- }
- catch (InterruptedException e) {
- Thread.currentThread().interrupt();
- throw new ApiException(e);
- }
- }
-
- private HttpRequest.Builder executeRequestBuilder(String accountId) throws ApiException {
- // verify the required parameter 'accountId' is set
- if (accountId == null) {
- throw new ApiException(400, "Missing the required parameter 'accountId' when calling execute");
- }
-
- HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
-
- String localVarPath = "/accounts/{accountId}/repayment-information"
- .replace("{accountId}", ApiClient.urlEncode(accountId.toString()));
-
- localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
- localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
-
- localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
- if (memberVarReadTimeout != null) {
- localVarRequestBuilder.timeout(memberVarReadTimeout);
- }
- if (memberVarInterceptor != null) {
- memberVarInterceptor.accept(localVarRequestBuilder);
- }
- return localVarRequestBuilder;
- }
-
-}
diff --git a/src/main/java/unit/java/sdk/api/UnitApi.java b/src/main/java/unit/java/sdk/api/UnitApi.java
index dc3281c6..89bfa1bb 100644
--- a/src/main/java/unit/java/sdk/api/UnitApi.java
+++ b/src/main/java/unit/java/sdk/api/UnitApi.java
@@ -17,6 +17,7 @@
import unit.java.sdk.ApiResponse;
import unit.java.sdk.Pair;
+import unit.java.sdk.model.AddAccountOwnersRequest;
import unit.java.sdk.model.AddAuthorizedUsersRequest;
import unit.java.sdk.model.ApproveAuthorizationRequest;
import unit.java.sdk.model.ApproveCheckPaymentRequest;
@@ -24,10 +25,13 @@
import unit.java.sdk.model.AtmLocation;
import unit.java.sdk.model.CancelApplicationRequest;
import unit.java.sdk.model.CloseAccountRequest;
+import unit.java.sdk.model.ConfirmCheckDepositRequest;
+import unit.java.sdk.model.CreateACHReceivedPaymentTransactionRequest;
import unit.java.sdk.model.CreateAccountRequest;
import unit.java.sdk.model.CreateApiTokenRequest;
import unit.java.sdk.model.CreateApplicationFormRequest;
import unit.java.sdk.model.CreateApplicationRequest;
+import unit.java.sdk.model.CreateAtmDepositSimulationRequest;
import unit.java.sdk.model.CreateCardRequest;
import unit.java.sdk.model.CreateCheckDepositRequest;
import unit.java.sdk.model.CreateCheckPaymentRequest;
@@ -35,18 +39,21 @@
import unit.java.sdk.model.CreateCustomerTokenRequest;
import unit.java.sdk.model.CreateCustomerTokenVerificationRequest;
import unit.java.sdk.model.CreateFeeRequest;
+import unit.java.sdk.model.CreateIncomingAchPaymentRequest;
import unit.java.sdk.model.CreatePaymentRequest;
import unit.java.sdk.model.CreateRecurringPaymentRequest;
import unit.java.sdk.model.CreateRecurringRepaymentRequest;
import unit.java.sdk.model.CreateRepaymentRequest;
import unit.java.sdk.model.CreateRewardRequest;
import unit.java.sdk.model.CreateStopPaymentRequest;
-import unit.java.sdk.model.CreateWebhook;
+import unit.java.sdk.model.CreateWebhookRequest;
import unit.java.sdk.model.DeclineAuthorizationRequest;
import unit.java.sdk.model.DefaultContentType;
import unit.java.sdk.model.Dispute;
import java.io.File;
import unit.java.sdk.model.FreezeAccountRequest;
+import unit.java.sdk.model.GenerateBarcodeRequest;
+import unit.java.sdk.model.GetAccountBalanceHistoryFilterParameter;
import unit.java.sdk.model.GetAccountsListFilterParameter;
import unit.java.sdk.model.GetApplicationFormsListFilterParameter;
import unit.java.sdk.model.GetApplicationsListFilterParameter;
@@ -54,26 +61,34 @@
import unit.java.sdk.model.GetAuthorizationRequestsListFilterParameter;
import unit.java.sdk.model.GetAuthorizationsListFilterParameter;
import unit.java.sdk.model.GetCardsListFilterParameter;
+import unit.java.sdk.model.GetCashDepositStoreLocationsListFilterParameter;
import unit.java.sdk.model.GetCheckDepositsListFilterParameter;
import unit.java.sdk.model.GetCheckPaymentsListFilterParameter;
import unit.java.sdk.model.GetCounterpartiesListFilterParameter;
import unit.java.sdk.model.GetCustomersListFilterParameter;
import unit.java.sdk.model.GetDisputesListFilterParameter;
import unit.java.sdk.model.GetEventsListFilterParameter;
-import unit.java.sdk.model.GetListRewardsFilterParameter;
import unit.java.sdk.model.GetPaymentsListFilterParameter;
+import unit.java.sdk.model.GetReceivedPaymentsListFilterParameter;
import unit.java.sdk.model.GetRecurringPaymentsListFilterParameter;
import unit.java.sdk.model.GetRecurringRepaymentsListFilterParameter;
import unit.java.sdk.model.GetRepaymentsListFilterParameter;
+import unit.java.sdk.model.GetRewardsListFilterParameter;
import unit.java.sdk.model.GetStatementsListFilterParameter;
import unit.java.sdk.model.GetStopPaymentsListFilterParameter;
+import unit.java.sdk.model.GetTaxFormsListFilterParameter;
import unit.java.sdk.model.GetTransactionsListFilterParameter;
import unit.java.sdk.model.GetWebhooksListFilterParameter;
import unit.java.sdk.model.ListPageParameters;
+import unit.java.sdk.model.RemoveAccountOwnersRequest;
import unit.java.sdk.model.RemoveAuthorizedUsersRequest;
+import unit.java.sdk.model.ReplaceCardRequest;
import unit.java.sdk.model.ReturnCheckPaymentRequest;
+import unit.java.sdk.model.ReturnReceivedACHTransactionRequest;
+import unit.java.sdk.model.ReverseFeeRequest;
import unit.java.sdk.model.StopPaymentListResponse;
import unit.java.sdk.model.StopPaymentResponse;
+import unit.java.sdk.model.UnitAccountBalanceHistoryResponse;
import unit.java.sdk.model.UnitAccountResponse;
import unit.java.sdk.model.UnitAccountResponseWithIncluded;
import unit.java.sdk.model.UnitAccountsListResponse;
@@ -90,36 +105,35 @@
import unit.java.sdk.model.UnitCancelApplicationResponse;
import unit.java.sdk.model.UnitCardLimitsResponse;
import unit.java.sdk.model.UnitCardResponse;
-import unit.java.sdk.model.UnitCardResponseCardsList;
-import unit.java.sdk.model.UnitCardsListResponse;
+import unit.java.sdk.model.UnitCardResponseWithIncluded;
+import unit.java.sdk.model.UnitCardsListReponse;
+import unit.java.sdk.model.UnitCashDepositBarcodeResponse;
import unit.java.sdk.model.UnitCheckDepositResponse;
import unit.java.sdk.model.UnitCheckPaymentResponse;
-import unit.java.sdk.model.UnitCloseCardResponse;
-import unit.java.sdk.model.UnitConfirmCheckDepositResponse;
import unit.java.sdk.model.UnitCounterpartiesListResponse;
+import unit.java.sdk.model.UnitCounterpartyBalanceResponse;
import unit.java.sdk.model.UnitCounterpartyResponse;
-import unit.java.sdk.model.UnitCounterpartyResponse1;
import unit.java.sdk.model.UnitCreateApplicationResponse;
import unit.java.sdk.model.UnitCustomerResponse;
import unit.java.sdk.model.UnitCustomerTokenResponse;
import unit.java.sdk.model.UnitCustomerTokenVerificationResponse;
import unit.java.sdk.model.UnitCustomersListResponse;
+import unit.java.sdk.model.UnitDepositAccountResponse;
+import unit.java.sdk.model.UnitDepositProductsResponse;
import unit.java.sdk.model.UnitDisputeResponse;
import unit.java.sdk.model.UnitDocumentResponse;
import unit.java.sdk.model.UnitErrorInner;
import unit.java.sdk.model.UnitEventListResponse;
import unit.java.sdk.model.UnitEventResponse;
import unit.java.sdk.model.UnitFeeResponse;
-import unit.java.sdk.model.UnitFreezeCardResponse;
+import unit.java.sdk.model.UnitFeeReversalResponse;
import unit.java.sdk.model.UnitFrontCheckDepositResponse;
-import unit.java.sdk.model.UnitGetAccountEndOfDayListResponse;
import unit.java.sdk.model.UnitGetAccountLimitsResponse;
import unit.java.sdk.model.UnitInstitutionResponse;
import unit.java.sdk.model.UnitListApplicationsResponse;
import unit.java.sdk.model.UnitListAuthorizationRequestsResponse;
import unit.java.sdk.model.UnitListAuthorizationsResponse;
-import unit.java.sdk.model.UnitListCheckDepositsResponse;
-import unit.java.sdk.model.UnitListCheckDepositsResponse1;
+import unit.java.sdk.model.UnitListCheckDepositResponse;
import unit.java.sdk.model.UnitListCheckPaymentsResponse;
import unit.java.sdk.model.UnitListDocumentsResponse;
import unit.java.sdk.model.UnitOrgApiTokensListResponse;
@@ -134,19 +148,20 @@
import unit.java.sdk.model.UnitRecurringPaymentResponse;
import unit.java.sdk.model.UnitRecurringRepaymentResponse;
import unit.java.sdk.model.UnitRecurringRepaymentsListResponse;
+import unit.java.sdk.model.UnitRepaymentInformationResponse;
import unit.java.sdk.model.UnitRepaymentResponse;
import unit.java.sdk.model.UnitRepaymentsListResponse;
-import unit.java.sdk.model.UnitReportLostCardResponse;
-import unit.java.sdk.model.UnitReportStolenCardResponse;
+import unit.java.sdk.model.UnitReturnedReceivedAchTransactionResponse;
import unit.java.sdk.model.UnitRewardResponse;
import unit.java.sdk.model.UnitRewardsListResponse;
import unit.java.sdk.model.UnitStatementsResponse;
+import unit.java.sdk.model.UnitStoreLocationsListResponse;
+import unit.java.sdk.model.UnitTaxFormResponse;
+import unit.java.sdk.model.UnitTaxFormsListResponse;
import unit.java.sdk.model.UnitTransactionResponse;
import unit.java.sdk.model.UnitTransactionResponseWithIncludedResource;
import unit.java.sdk.model.UnitTransactionsListResponse;
-import unit.java.sdk.model.UnitUnfreezeCardResponse;
-import unit.java.sdk.model.UnitUpdateCardResponse;
-import unit.java.sdk.model.UnitUpdateCheckDepositResponse;
+import unit.java.sdk.model.UnitWebhookResponse;
import unit.java.sdk.model.UnitWebhooksListResponse;
import unit.java.sdk.model.UpdateAccountRequest;
import unit.java.sdk.model.UpdateApplicationRequest;
@@ -160,12 +175,19 @@
import unit.java.sdk.model.UpdateStopPaymentRequest;
import unit.java.sdk.model.UpdateTransactionRequest;
import unit.java.sdk.model.UpdateWebhookRequest;
+import unit.java.sdk.model.UploadApplicationDocumentContentType;
import unit.java.sdk.model.VerifyDocument;
-import unit.java.sdk.model.WebhookResponse;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
+import org.apache.commons.io.IOUtils;
+import org.apache.http.HttpEntity;
+import org.apache.http.NameValuePair;
+import org.apache.http.entity.mime.MultipartEntityBuilder;
+import org.apache.http.message.BasicNameValuePair;
+import org.apache.http.client.entity.UrlEncodedFormEntity;
+
import java.io.InputStream;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
@@ -175,6 +197,7 @@
import java.net.http.HttpRequest;
import java.nio.channels.Channels;
import java.nio.channels.Pipe;
+import java.nio.charset.StandardCharsets;
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
@@ -188,7 +211,7 @@
import java.util.Set;
import java.util.function.Consumer;
-@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.5.0")
+@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.9.0")
public class UnitApi {
private final HttpClient memberVarHttpClient;
private final ObjectMapper memberVarObjectMapper;
@@ -225,6 +248,82 @@ private String formatExceptionMessage(String operationId, int statusCode, String
return operationId + " call failed with: " + statusCode + " - " + body;
}
+ /**
+ * Create Atm Deposit Simulation
+ * Activate Card Simulation via API
+ * @param cardId ID of the card to activate (required)
+ * @throws ApiException if fails to make API call
+ */
+ public void activateCardSimulation(String cardId) throws ApiException {
+ activateCardSimulationWithHttpInfo(cardId);
+ }
+
+ /**
+ * Create Atm Deposit Simulation
+ * Activate Card Simulation via API
+ * @param cardId ID of the card to activate (required)
+ * @return ApiResponse<Void>
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse activateCardSimulationWithHttpInfo(String cardId) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = activateCardSimulationRequestBuilder(cardId);
+ try {
+ HttpResponse localVarResponse = memberVarHttpClient.send(
+ localVarRequestBuilder.build(),
+ HttpResponse.BodyHandlers.ofInputStream());
+ if (memberVarResponseInterceptor != null) {
+ memberVarResponseInterceptor.accept(localVarResponse);
+ }
+ try {
+ if (localVarResponse.statusCode()/ 100 != 2) {
+ throw getApiException("activateCardSimulation", localVarResponse);
+ }
+ return new ApiResponse(
+ localVarResponse.statusCode(),
+ localVarResponse.headers().map(),
+ null
+ );
+ } finally {
+ // Drain the InputStream
+ while (localVarResponse.body().read() != -1) {
+ // Ignore
+ }
+ localVarResponse.body().close();
+ }
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new ApiException(e);
+ }
+ }
+
+ private HttpRequest.Builder activateCardSimulationRequestBuilder(String cardId) throws ApiException {
+ // verify the required parameter 'cardId' is set
+ if (cardId == null) {
+ throw new ApiException(400, "Missing the required parameter 'cardId' when calling activateCardSimulation");
+ }
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/sandbox/cards/{cardId}/activate"
+ .replace("{cardId}", ApiClient.urlEncode(cardId.toString()));
+
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+
+ localVarRequestBuilder.header("Accept", "application/json");
+
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
+ if (memberVarReadTimeout != null) {
+ localVarRequestBuilder.timeout(memberVarReadTimeout);
+ }
+ if (memberVarInterceptor != null) {
+ memberVarInterceptor.accept(localVarRequestBuilder);
+ }
+ return localVarRequestBuilder;
+ }
+
/**
* Activate Account Control Agreement by Id
* Activate Control Agreement for Account via API
@@ -298,6 +397,91 @@ private HttpRequest.Builder activateControlAgreementForAccountRequestBuilder(Str
return localVarRequestBuilder;
}
+ /**
+ * Add Owners to Account by Id
+ * Add Owners to Account via API
+ * @param accountId ID of the account to add owners to (required)
+ * @param addAccountOwnersRequest Add Account Owners Request (required)
+ * @return UnitDepositAccountResponse
+ * @throws ApiException if fails to make API call
+ */
+ public UnitDepositAccountResponse addAccountOwners(String accountId, AddAccountOwnersRequest addAccountOwnersRequest) throws ApiException {
+ ApiResponse localVarResponse = addAccountOwnersWithHttpInfo(accountId, addAccountOwnersRequest);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Add Owners to Account by Id
+ * Add Owners to Account via API
+ * @param accountId ID of the account to add owners to (required)
+ * @param addAccountOwnersRequest Add Account Owners Request (required)
+ * @return ApiResponse<UnitDepositAccountResponse>
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse addAccountOwnersWithHttpInfo(String accountId, AddAccountOwnersRequest addAccountOwnersRequest) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = addAccountOwnersRequestBuilder(accountId, addAccountOwnersRequest);
+ try {
+ HttpResponse localVarResponse = memberVarHttpClient.send(
+ localVarRequestBuilder.build(),
+ HttpResponse.BodyHandlers.ofInputStream());
+ if (memberVarResponseInterceptor != null) {
+ memberVarResponseInterceptor.accept(localVarResponse);
+ }
+ try {
+ if (localVarResponse.statusCode()/ 100 != 2) {
+ throw getApiException("addAccountOwners", localVarResponse);
+ }
+ return new ApiResponse(
+ localVarResponse.statusCode(),
+ localVarResponse.headers().map(),
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ );
+ } finally {
+ }
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new ApiException(e);
+ }
+ }
+
+ private HttpRequest.Builder addAccountOwnersRequestBuilder(String accountId, AddAccountOwnersRequest addAccountOwnersRequest) throws ApiException {
+ // verify the required parameter 'accountId' is set
+ if (accountId == null) {
+ throw new ApiException(400, "Missing the required parameter 'accountId' when calling addAccountOwners");
+ }
+ // verify the required parameter 'addAccountOwnersRequest' is set
+ if (addAccountOwnersRequest == null) {
+ throw new ApiException(400, "Missing the required parameter 'addAccountOwnersRequest' when calling addAccountOwners");
+ }
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/accounts/{accountId}/relationships/customers"
+ .replace("{accountId}", ApiClient.urlEncode(accountId.toString()));
+
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+
+ localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
+ localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
+
+ try {
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(addAccountOwnersRequest);
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ if (memberVarReadTimeout != null) {
+ localVarRequestBuilder.timeout(memberVarReadTimeout);
+ }
+ if (memberVarInterceptor != null) {
+ memberVarInterceptor.accept(localVarRequestBuilder);
+ }
+ return localVarRequestBuilder;
+ }
+
/**
* Add Authorized Users by Id
* Add Authorized Users via API
@@ -873,11 +1057,12 @@ private HttpRequest.Builder cancelCheckPaymentRequestBuilder(String checkPayment
* Cancel a Payment by Id
* Cancel a Payment via API
* @param paymentId ID of the payment to cancel (required)
+ * @param body Pass empty object in order for content-type to be aquired correctly (required)
* @return UnitPaymentResponse
* @throws ApiException if fails to make API call
*/
- public UnitPaymentResponse cancelPayment(String paymentId) throws ApiException {
- ApiResponse localVarResponse = cancelPaymentWithHttpInfo(paymentId);
+ public UnitPaymentResponse cancelPayment(String paymentId, Object body) throws ApiException {
+ ApiResponse localVarResponse = cancelPaymentWithHttpInfo(paymentId, body);
return localVarResponse.getData();
}
@@ -885,11 +1070,12 @@ public UnitPaymentResponse cancelPayment(String paymentId) throws ApiException {
* Cancel a Payment by Id
* Cancel a Payment via API
* @param paymentId ID of the payment to cancel (required)
+ * @param body Pass empty object in order for content-type to be aquired correctly (required)
* @return ApiResponse<UnitPaymentResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse cancelPaymentWithHttpInfo(String paymentId) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = cancelPaymentRequestBuilder(paymentId);
+ public ApiResponse cancelPaymentWithHttpInfo(String paymentId, Object body) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = cancelPaymentRequestBuilder(paymentId, body);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -917,11 +1103,15 @@ public ApiResponse cancelPaymentWithHttpInfo(String payment
}
}
- private HttpRequest.Builder cancelPaymentRequestBuilder(String paymentId) throws ApiException {
+ private HttpRequest.Builder cancelPaymentRequestBuilder(String paymentId, Object body) throws ApiException {
// verify the required parameter 'paymentId' is set
if (paymentId == null) {
throw new ApiException(400, "Missing the required parameter 'paymentId' when calling cancelPayment");
}
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling cancelPayment");
+ }
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -930,9 +1120,15 @@ private HttpRequest.Builder cancelPaymentRequestBuilder(String paymentId) throws
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+ localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
- localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
+ try {
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body);
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
@@ -1031,11 +1227,11 @@ private HttpRequest.Builder closeAccountRequestBuilder(String accountId, CloseAc
* Close a Card
* Close a Card via API
* @param cardId ID of the card to close (required)
- * @return UnitCloseCardResponse
+ * @return UnitCardResponse
* @throws ApiException if fails to make API call
*/
- public UnitCloseCardResponse closeCard(String cardId) throws ApiException {
- ApiResponse localVarResponse = closeCardWithHttpInfo(cardId);
+ public UnitCardResponse closeCard(String cardId) throws ApiException {
+ ApiResponse localVarResponse = closeCardWithHttpInfo(cardId);
return localVarResponse.getData();
}
@@ -1043,10 +1239,10 @@ public UnitCloseCardResponse closeCard(String cardId) throws ApiException {
* Close a Card
* Close a Card via API
* @param cardId ID of the card to close (required)
- * @return ApiResponse<UnitCloseCardResponse>
+ * @return ApiResponse<UnitCardResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse closeCardWithHttpInfo(String cardId) throws ApiException {
+ public ApiResponse closeCardWithHttpInfo(String cardId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = closeCardRequestBuilder(cardId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -1059,10 +1255,10 @@ public ApiResponse closeCardWithHttpInfo(String cardId) t
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("closeCard", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -1104,11 +1300,12 @@ private HttpRequest.Builder closeCardRequestBuilder(String cardId) throws ApiExc
* Confirm by Id
* Confirm a Check Deposit from API
* @param checkDepositId ID of the check deposit to confirm (required)
- * @return UnitConfirmCheckDepositResponse
+ * @param confirmCheckDepositRequest (required)
+ * @return UnitCheckDepositResponse
* @throws ApiException if fails to make API call
*/
- public UnitConfirmCheckDepositResponse confirmCheckDeposit(String checkDepositId) throws ApiException {
- ApiResponse localVarResponse = confirmCheckDepositWithHttpInfo(checkDepositId);
+ public UnitCheckDepositResponse confirmCheckDeposit(String checkDepositId, ConfirmCheckDepositRequest confirmCheckDepositRequest) throws ApiException {
+ ApiResponse localVarResponse = confirmCheckDepositWithHttpInfo(checkDepositId, confirmCheckDepositRequest);
return localVarResponse.getData();
}
@@ -1116,11 +1313,12 @@ public UnitConfirmCheckDepositResponse confirmCheckDeposit(String checkDepositId
* Confirm by Id
* Confirm a Check Deposit from API
* @param checkDepositId ID of the check deposit to confirm (required)
- * @return ApiResponse<UnitConfirmCheckDepositResponse>
+ * @param confirmCheckDepositRequest (required)
+ * @return ApiResponse<UnitCheckDepositResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse confirmCheckDepositWithHttpInfo(String checkDepositId) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = confirmCheckDepositRequestBuilder(checkDepositId);
+ public ApiResponse confirmCheckDepositWithHttpInfo(String checkDepositId, ConfirmCheckDepositRequest confirmCheckDepositRequest) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = confirmCheckDepositRequestBuilder(checkDepositId, confirmCheckDepositRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -1132,10 +1330,10 @@ public ApiResponse confirmCheckDepositWithHttpI
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("confirmCheckDeposit", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -1148,11 +1346,15 @@ public ApiResponse confirmCheckDepositWithHttpI
}
}
- private HttpRequest.Builder confirmCheckDepositRequestBuilder(String checkDepositId) throws ApiException {
+ private HttpRequest.Builder confirmCheckDepositRequestBuilder(String checkDepositId, ConfirmCheckDepositRequest confirmCheckDepositRequest) throws ApiException {
// verify the required parameter 'checkDepositId' is set
if (checkDepositId == null) {
throw new ApiException(400, "Missing the required parameter 'checkDepositId' when calling confirmCheckDeposit");
}
+ // verify the required parameter 'confirmCheckDepositRequest' is set
+ if (confirmCheckDepositRequest == null) {
+ throw new ApiException(400, "Missing the required parameter 'confirmCheckDepositRequest' when calling confirmCheckDeposit");
+ }
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -1161,9 +1363,93 @@ private HttpRequest.Builder confirmCheckDepositRequestBuilder(String checkDeposi
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+ localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
- localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
+ try {
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(confirmCheckDepositRequest);
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ if (memberVarReadTimeout != null) {
+ localVarRequestBuilder.timeout(memberVarReadTimeout);
+ }
+ if (memberVarInterceptor != null) {
+ memberVarInterceptor.accept(localVarRequestBuilder);
+ }
+ return localVarRequestBuilder;
+ }
+
+ /**
+ * Create ACH Received Payment Transaction Simulation
+ * Create ACH Received Payment Transaction Simulation via API
+ * @param createACHReceivedPaymentTransactionRequest Create ACH Received Payment Transaction Simulation Request (required)
+ * @return UnitReceivedPaymentResponse
+ * @throws ApiException if fails to make API call
+ */
+ public UnitReceivedPaymentResponse createACHReceivedPaymentTransactionSimulation(CreateACHReceivedPaymentTransactionRequest createACHReceivedPaymentTransactionRequest) throws ApiException {
+ ApiResponse localVarResponse = createACHReceivedPaymentTransactionSimulationWithHttpInfo(createACHReceivedPaymentTransactionRequest);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Create ACH Received Payment Transaction Simulation
+ * Create ACH Received Payment Transaction Simulation via API
+ * @param createACHReceivedPaymentTransactionRequest Create ACH Received Payment Transaction Simulation Request (required)
+ * @return ApiResponse<UnitReceivedPaymentResponse>
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createACHReceivedPaymentTransactionSimulationWithHttpInfo(CreateACHReceivedPaymentTransactionRequest createACHReceivedPaymentTransactionRequest) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = createACHReceivedPaymentTransactionSimulationRequestBuilder(createACHReceivedPaymentTransactionRequest);
+ try {
+ HttpResponse localVarResponse = memberVarHttpClient.send(
+ localVarRequestBuilder.build(),
+ HttpResponse.BodyHandlers.ofInputStream());
+ if (memberVarResponseInterceptor != null) {
+ memberVarResponseInterceptor.accept(localVarResponse);
+ }
+ try {
+ if (localVarResponse.statusCode()/ 100 != 2) {
+ throw getApiException("createACHReceivedPaymentTransactionSimulation", localVarResponse);
+ }
+ return new ApiResponse(
+ localVarResponse.statusCode(),
+ localVarResponse.headers().map(),
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ );
+ } finally {
+ }
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new ApiException(e);
+ }
+ }
+
+ private HttpRequest.Builder createACHReceivedPaymentTransactionSimulationRequestBuilder(CreateACHReceivedPaymentTransactionRequest createACHReceivedPaymentTransactionRequest) throws ApiException {
+ // verify the required parameter 'createACHReceivedPaymentTransactionRequest' is set
+ if (createACHReceivedPaymentTransactionRequest == null) {
+ throw new ApiException(400, "Missing the required parameter 'createACHReceivedPaymentTransactionRequest' when calling createACHReceivedPaymentTransactionSimulation");
+ }
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/sandbox/received-payments";
+
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+
+ localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
+ localVarRequestBuilder.header("Accept", "application/vnd.api+json");
+
+ try {
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createACHReceivedPaymentTransactionRequest);
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
@@ -1575,26 +1861,26 @@ private HttpRequest.Builder createApplicationFormRequestBuilder(CreateApplicatio
}
/**
- * Create a Card
- * Create a Card via API
- * @param createCardRequest Create Card Request (required)
- * @return UnitCardsListResponse
+ * Create Atm Deposit Simulation
+ * Create Atm Deposit Simulation via API
+ * @param createAtmDepositSimulationRequest Create Atm Deposit Simulation Request (required)
+ * @return UnitDepositAccountResponse
* @throws ApiException if fails to make API call
*/
- public UnitCardsListResponse createCard(CreateCardRequest createCardRequest) throws ApiException {
- ApiResponse localVarResponse = createCardWithHttpInfo(createCardRequest);
+ public UnitDepositAccountResponse createAtmDepositSimulation(CreateAtmDepositSimulationRequest createAtmDepositSimulationRequest) throws ApiException {
+ ApiResponse localVarResponse = createAtmDepositSimulationWithHttpInfo(createAtmDepositSimulationRequest);
return localVarResponse.getData();
}
/**
- * Create a Card
- * Create a Card via API
- * @param createCardRequest Create Card Request (required)
- * @return ApiResponse<UnitCardsListResponse>
+ * Create Atm Deposit Simulation
+ * Create Atm Deposit Simulation via API
+ * @param createAtmDepositSimulationRequest Create Atm Deposit Simulation Request (required)
+ * @return ApiResponse<UnitDepositAccountResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse createCardWithHttpInfo(CreateCardRequest createCardRequest) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = createCardRequestBuilder(createCardRequest);
+ public ApiResponse createAtmDepositSimulationWithHttpInfo(CreateAtmDepositSimulationRequest createAtmDepositSimulationRequest) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = createAtmDepositSimulationRequestBuilder(createAtmDepositSimulationRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -1604,12 +1890,12 @@ public ApiResponse createCardWithHttpInfo(CreateCardReque
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
- throw getApiException("createCard", localVarResponse);
+ throw getApiException("createAtmDepositSimulation", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -1622,23 +1908,23 @@ public ApiResponse createCardWithHttpInfo(CreateCardReque
}
}
- private HttpRequest.Builder createCardRequestBuilder(CreateCardRequest createCardRequest) throws ApiException {
- // verify the required parameter 'createCardRequest' is set
- if (createCardRequest == null) {
- throw new ApiException(400, "Missing the required parameter 'createCardRequest' when calling createCard");
+ private HttpRequest.Builder createAtmDepositSimulationRequestBuilder(CreateAtmDepositSimulationRequest createAtmDepositSimulationRequest) throws ApiException {
+ // verify the required parameter 'createAtmDepositSimulationRequest' is set
+ if (createAtmDepositSimulationRequest == null) {
+ throw new ApiException(400, "Missing the required parameter 'createAtmDepositSimulationRequest' when calling createAtmDepositSimulation");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
- String localVarPath = "/cards";
+ String localVarPath = "/sandbox/atm-deposits";
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
- localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
+ localVarRequestBuilder.header("Accept", "application/vnd.api+json");
try {
- byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createCardRequest);
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createAtmDepositSimulationRequest);
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
} catch (IOException e) {
throw new ApiException(e);
@@ -1653,26 +1939,26 @@ private HttpRequest.Builder createCardRequestBuilder(CreateCardRequest createCar
}
/**
- * Create Check Deposit
- * Create a Check Deposit via API
- * @param createCheckDepositRequest Create Check Deposit Request (required)
- * @return UnitListCheckDepositsResponse1
+ * Create a Card
+ * Create a Card via API
+ * @param createCardRequest Create Card Request (required)
+ * @return UnitCardResponse
* @throws ApiException if fails to make API call
*/
- public UnitListCheckDepositsResponse1 createCheckDeposit(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException {
- ApiResponse localVarResponse = createCheckDepositWithHttpInfo(createCheckDepositRequest);
+ public UnitCardResponse createCard(CreateCardRequest createCardRequest) throws ApiException {
+ ApiResponse localVarResponse = createCardWithHttpInfo(createCardRequest);
return localVarResponse.getData();
}
/**
- * Create Check Deposit
- * Create a Check Deposit via API
- * @param createCheckDepositRequest Create Check Deposit Request (required)
- * @return ApiResponse<UnitListCheckDepositsResponse1>
+ * Create a Card
+ * Create a Card via API
+ * @param createCardRequest Create Card Request (required)
+ * @return ApiResponse<UnitCardResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse createCheckDepositWithHttpInfo(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = createCheckDepositRequestBuilder(createCheckDepositRequest);
+ public ApiResponse createCardWithHttpInfo(CreateCardRequest createCardRequest) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = createCardRequestBuilder(createCardRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -1682,12 +1968,12 @@ public ApiResponse createCheckDepositWithHttpInf
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
- throw getApiException("createCheckDeposit", localVarResponse);
+ throw getApiException("createCard", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -1700,10 +1986,88 @@ public ApiResponse createCheckDepositWithHttpInf
}
}
- private HttpRequest.Builder createCheckDepositRequestBuilder(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException {
- // verify the required parameter 'createCheckDepositRequest' is set
- if (createCheckDepositRequest == null) {
- throw new ApiException(400, "Missing the required parameter 'createCheckDepositRequest' when calling createCheckDeposit");
+ private HttpRequest.Builder createCardRequestBuilder(CreateCardRequest createCardRequest) throws ApiException {
+ // verify the required parameter 'createCardRequest' is set
+ if (createCardRequest == null) {
+ throw new ApiException(400, "Missing the required parameter 'createCardRequest' when calling createCard");
+ }
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/cards";
+
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+
+ localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
+ localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
+
+ try {
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createCardRequest);
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ if (memberVarReadTimeout != null) {
+ localVarRequestBuilder.timeout(memberVarReadTimeout);
+ }
+ if (memberVarInterceptor != null) {
+ memberVarInterceptor.accept(localVarRequestBuilder);
+ }
+ return localVarRequestBuilder;
+ }
+
+ /**
+ * Create Check Deposit
+ * Create a Check Deposit via API
+ * @param createCheckDepositRequest Create Check Deposit Request (required)
+ * @return UnitCheckDepositResponse
+ * @throws ApiException if fails to make API call
+ */
+ public UnitCheckDepositResponse createCheckDeposit(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException {
+ ApiResponse localVarResponse = createCheckDepositWithHttpInfo(createCheckDepositRequest);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Create Check Deposit
+ * Create a Check Deposit via API
+ * @param createCheckDepositRequest Create Check Deposit Request (required)
+ * @return ApiResponse<UnitCheckDepositResponse>
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createCheckDepositWithHttpInfo(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = createCheckDepositRequestBuilder(createCheckDepositRequest);
+ try {
+ HttpResponse localVarResponse = memberVarHttpClient.send(
+ localVarRequestBuilder.build(),
+ HttpResponse.BodyHandlers.ofInputStream());
+ if (memberVarResponseInterceptor != null) {
+ memberVarResponseInterceptor.accept(localVarResponse);
+ }
+ try {
+ if (localVarResponse.statusCode()/ 100 != 2) {
+ throw getApiException("createCheckDeposit", localVarResponse);
+ }
+ return new ApiResponse(
+ localVarResponse.statusCode(),
+ localVarResponse.headers().map(),
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ );
+ } finally {
+ }
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new ApiException(e);
+ }
+ }
+
+ private HttpRequest.Builder createCheckDepositRequestBuilder(CreateCheckDepositRequest createCheckDepositRequest) throws ApiException {
+ // verify the required parameter 'createCheckDepositRequest' is set
+ if (createCheckDepositRequest == null) {
+ throw new ApiException(400, "Missing the required parameter 'createCheckDepositRequest' when calling createCheckDeposit");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -2134,6 +2498,84 @@ private HttpRequest.Builder createFeeRequestBuilder(CreateFeeRequest createFeeRe
return localVarRequestBuilder;
}
+ /**
+ * Create Incoming ACH Payment Simulation
+ * Create Incoming ACH Payment Simulation via API
+ * @param createIncomingAchPaymentRequest Create Incoming ACH Payment Simulation Request (required)
+ * @return UnitReceivedPaymentResponse
+ * @throws ApiException if fails to make API call
+ */
+ public UnitReceivedPaymentResponse createIncomingAchPaymentSimulation(CreateIncomingAchPaymentRequest createIncomingAchPaymentRequest) throws ApiException {
+ ApiResponse localVarResponse = createIncomingAchPaymentSimulationWithHttpInfo(createIncomingAchPaymentRequest);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Create Incoming ACH Payment Simulation
+ * Create Incoming ACH Payment Simulation via API
+ * @param createIncomingAchPaymentRequest Create Incoming ACH Payment Simulation Request (required)
+ * @return ApiResponse<UnitReceivedPaymentResponse>
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse createIncomingAchPaymentSimulationWithHttpInfo(CreateIncomingAchPaymentRequest createIncomingAchPaymentRequest) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = createIncomingAchPaymentSimulationRequestBuilder(createIncomingAchPaymentRequest);
+ try {
+ HttpResponse localVarResponse = memberVarHttpClient.send(
+ localVarRequestBuilder.build(),
+ HttpResponse.BodyHandlers.ofInputStream());
+ if (memberVarResponseInterceptor != null) {
+ memberVarResponseInterceptor.accept(localVarResponse);
+ }
+ try {
+ if (localVarResponse.statusCode()/ 100 != 2) {
+ throw getApiException("createIncomingAchPaymentSimulation", localVarResponse);
+ }
+ return new ApiResponse(
+ localVarResponse.statusCode(),
+ localVarResponse.headers().map(),
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ );
+ } finally {
+ }
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new ApiException(e);
+ }
+ }
+
+ private HttpRequest.Builder createIncomingAchPaymentSimulationRequestBuilder(CreateIncomingAchPaymentRequest createIncomingAchPaymentRequest) throws ApiException {
+ // verify the required parameter 'createIncomingAchPaymentRequest' is set
+ if (createIncomingAchPaymentRequest == null) {
+ throw new ApiException(400, "Missing the required parameter 'createIncomingAchPaymentRequest' when calling createIncomingAchPaymentSimulation");
+ }
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/sandbox/received-ach-payment";
+
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+
+ localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
+ localVarRequestBuilder.header("Accept", "application/vnd.api+json");
+
+ try {
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createIncomingAchPaymentRequest);
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ if (memberVarReadTimeout != null) {
+ localVarRequestBuilder.timeout(memberVarReadTimeout);
+ }
+ if (memberVarInterceptor != null) {
+ memberVarInterceptor.accept(localVarRequestBuilder);
+ }
+ return localVarRequestBuilder;
+ }
+
/**
* Create a Payment
* Create a Payment via API
@@ -2605,24 +3047,24 @@ private HttpRequest.Builder createStopPaymentRequestBuilder(CreateStopPaymentReq
/**
* Create Webhook
* Create a Webhook via API
- * @param createWebhook Create Webhook Request (required)
- * @return WebhookResponse
+ * @param createWebhookRequest Create Webhook Request Body (required)
+ * @return UnitWebhookResponse
* @throws ApiException if fails to make API call
*/
- public WebhookResponse createWebhook(CreateWebhook createWebhook) throws ApiException {
- ApiResponse localVarResponse = createWebhookWithHttpInfo(createWebhook);
+ public UnitWebhookResponse createWebhook(CreateWebhookRequest createWebhookRequest) throws ApiException {
+ ApiResponse localVarResponse = createWebhookWithHttpInfo(createWebhookRequest);
return localVarResponse.getData();
}
/**
* Create Webhook
* Create a Webhook via API
- * @param createWebhook Create Webhook Request (required)
- * @return ApiResponse<WebhookResponse>
+ * @param createWebhookRequest Create Webhook Request Body (required)
+ * @return ApiResponse<UnitWebhookResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse createWebhookWithHttpInfo(CreateWebhook createWebhook) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = createWebhookRequestBuilder(createWebhook);
+ public ApiResponse createWebhookWithHttpInfo(CreateWebhookRequest createWebhookRequest) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = createWebhookRequestBuilder(createWebhookRequest);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -2634,10 +3076,10 @@ public ApiResponse createWebhookWithHttpInfo(CreateWebhook crea
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("createWebhook", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -2650,10 +3092,10 @@ public ApiResponse createWebhookWithHttpInfo(CreateWebhook crea
}
}
- private HttpRequest.Builder createWebhookRequestBuilder(CreateWebhook createWebhook) throws ApiException {
- // verify the required parameter 'createWebhook' is set
- if (createWebhook == null) {
- throw new ApiException(400, "Missing the required parameter 'createWebhook' when calling createWebhook");
+ private HttpRequest.Builder createWebhookRequestBuilder(CreateWebhookRequest createWebhookRequest) throws ApiException {
+ // verify the required parameter 'createWebhookRequest' is set
+ if (createWebhookRequest == null) {
+ throw new ApiException(400, "Missing the required parameter 'createWebhookRequest' when calling createWebhook");
}
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -2666,7 +3108,7 @@ private HttpRequest.Builder createWebhookRequestBuilder(CreateWebhook createWebh
localVarRequestBuilder.header("Accept", "application/vnd.api+json");
try {
- byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createWebhook);
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(createWebhookRequest);
localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
} catch (IOException e) {
throw new ApiException(e);
@@ -2998,11 +3440,12 @@ private HttpRequest.Builder deleteTokenRequestBuilder(String userId, String toke
* Disable Recurring Payment
* Disable Recurring Payment via API
* @param paymentId ID of the payment to disable (required)
+ * @param body Pass empty object in order for content-type to be aquired correctly (required)
* @return UnitRecurringPaymentResponse
* @throws ApiException if fails to make API call
*/
- public UnitRecurringPaymentResponse disableRecurringPayment(String paymentId) throws ApiException {
- ApiResponse localVarResponse = disableRecurringPaymentWithHttpInfo(paymentId);
+ public UnitRecurringPaymentResponse disableRecurringPayment(String paymentId, Object body) throws ApiException {
+ ApiResponse localVarResponse = disableRecurringPaymentWithHttpInfo(paymentId, body);
return localVarResponse.getData();
}
@@ -3010,11 +3453,12 @@ public UnitRecurringPaymentResponse disableRecurringPayment(String paymentId) th
* Disable Recurring Payment
* Disable Recurring Payment via API
* @param paymentId ID of the payment to disable (required)
+ * @param body Pass empty object in order for content-type to be aquired correctly (required)
* @return ApiResponse<UnitRecurringPaymentResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse disableRecurringPaymentWithHttpInfo(String paymentId) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = disableRecurringPaymentRequestBuilder(paymentId);
+ public ApiResponse disableRecurringPaymentWithHttpInfo(String paymentId, Object body) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = disableRecurringPaymentRequestBuilder(paymentId, body);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -3042,11 +3486,15 @@ public ApiResponse disableRecurringPaymentWithHttp
}
}
- private HttpRequest.Builder disableRecurringPaymentRequestBuilder(String paymentId) throws ApiException {
+ private HttpRequest.Builder disableRecurringPaymentRequestBuilder(String paymentId, Object body) throws ApiException {
// verify the required parameter 'paymentId' is set
if (paymentId == null) {
throw new ApiException(400, "Missing the required parameter 'paymentId' when calling disableRecurringPayment");
}
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling disableRecurringPayment");
+ }
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -3055,9 +3503,15 @@ private HttpRequest.Builder disableRecurringPaymentRequestBuilder(String payment
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+ localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
- localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
+ try {
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body);
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
@@ -3071,12 +3525,13 @@ private HttpRequest.Builder disableRecurringPaymentRequestBuilder(String payment
* Disable Recurring Repayment by Id
* Disable a Recurring Repayment
* @param recurringRepaymentId ID of the recurring repayment to disable (required)
+ * @param body Pass empty object in order for content-type to be aquired correctly (required)
* @param include (optional)
* @return UnitRecurringRepaymentResponse
* @throws ApiException if fails to make API call
*/
- public UnitRecurringRepaymentResponse disableRecurringRepayment(String recurringRepaymentId, String include) throws ApiException {
- ApiResponse localVarResponse = disableRecurringRepaymentWithHttpInfo(recurringRepaymentId, include);
+ public UnitRecurringRepaymentResponse disableRecurringRepayment(String recurringRepaymentId, Object body, String include) throws ApiException {
+ ApiResponse localVarResponse = disableRecurringRepaymentWithHttpInfo(recurringRepaymentId, body, include);
return localVarResponse.getData();
}
@@ -3084,12 +3539,13 @@ public UnitRecurringRepaymentResponse disableRecurringRepayment(String recurring
* Disable Recurring Repayment by Id
* Disable a Recurring Repayment
* @param recurringRepaymentId ID of the recurring repayment to disable (required)
+ * @param body Pass empty object in order for content-type to be aquired correctly (required)
* @param include (optional)
* @return ApiResponse<UnitRecurringRepaymentResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse disableRecurringRepaymentWithHttpInfo(String recurringRepaymentId, String include) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = disableRecurringRepaymentRequestBuilder(recurringRepaymentId, include);
+ public ApiResponse disableRecurringRepaymentWithHttpInfo(String recurringRepaymentId, Object body, String include) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = disableRecurringRepaymentRequestBuilder(recurringRepaymentId, body, include);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -3117,11 +3573,15 @@ public ApiResponse disableRecurringRepaymentWith
}
}
- private HttpRequest.Builder disableRecurringRepaymentRequestBuilder(String recurringRepaymentId, String include) throws ApiException {
+ private HttpRequest.Builder disableRecurringRepaymentRequestBuilder(String recurringRepaymentId, Object body, String include) throws ApiException {
// verify the required parameter 'recurringRepaymentId' is set
if (recurringRepaymentId == null) {
throw new ApiException(400, "Missing the required parameter 'recurringRepaymentId' when calling disableRecurringRepayment");
}
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling disableRecurringRepayment");
+ }
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -3145,9 +3605,15 @@ private HttpRequest.Builder disableRecurringRepaymentRequestBuilder(String recur
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
}
+ localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
- localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
+ try {
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body);
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
@@ -3234,11 +3700,11 @@ private HttpRequest.Builder disableStopPaymentRequestBuilder(String stopPaymentI
* Disable a Webhook
* Disable a Webhook via API
* @param webhookId ID of the webhook to disable (required)
- * @return WebhookResponse
+ * @return UnitWebhookResponse
* @throws ApiException if fails to make API call
*/
- public WebhookResponse disableWebhook(String webhookId) throws ApiException {
- ApiResponse localVarResponse = disableWebhookWithHttpInfo(webhookId);
+ public UnitWebhookResponse disableWebhook(String webhookId) throws ApiException {
+ ApiResponse localVarResponse = disableWebhookWithHttpInfo(webhookId);
return localVarResponse.getData();
}
@@ -3246,10 +3712,10 @@ public WebhookResponse disableWebhook(String webhookId) throws ApiException {
* Disable a Webhook
* Disable a Webhook via API
* @param webhookId ID of the webhook to disable (required)
- * @return ApiResponse<WebhookResponse>
+ * @return ApiResponse<UnitWebhookResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse disableWebhookWithHttpInfo(String webhookId) throws ApiException {
+ public ApiResponse disableWebhookWithHttpInfo(String webhookId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = disableWebhookRequestBuilder(webhookId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -3262,10 +3728,10 @@ public ApiResponse disableWebhookWithHttpInfo(String webhookId)
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("disableWebhook", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -3311,8 +3777,8 @@ private HttpRequest.Builder disableWebhookRequestBuilder(String webhookId) throw
* @return File
* @throws ApiException if fails to make API call
*/
- public File downloadApplicationBackSideDocument(String applicationId, String documentId) throws ApiException {
- ApiResponse localVarResponse = downloadApplicationBackSideDocumentWithHttpInfo(applicationId, documentId);
+ public InputStream downloadApplicationBackSideDocument(String applicationId, String documentId) throws ApiException {
+ ApiResponse localVarResponse = downloadApplicationBackSideDocumentWithHttpInfo(applicationId, documentId);
return localVarResponse.getData();
}
@@ -3324,7 +3790,7 @@ public File downloadApplicationBackSideDocument(String applicationId, String doc
* @return ApiResponse<File>
* @throws ApiException if fails to make API call
*/
- public ApiResponse downloadApplicationBackSideDocumentWithHttpInfo(String applicationId, String documentId) throws ApiException {
+ public ApiResponse downloadApplicationBackSideDocumentWithHttpInfo(String applicationId, String documentId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = downloadApplicationBackSideDocumentRequestBuilder(applicationId, documentId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -3337,10 +3803,10 @@ public ApiResponse downloadApplicationBackSideDocumentWithHttpInfo(String
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("downloadApplicationBackSideDocument", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : localVarResponse.body()
);
} finally {
}
@@ -3391,8 +3857,8 @@ private HttpRequest.Builder downloadApplicationBackSideDocumentRequestBuilder(St
* @return File
* @throws ApiException if fails to make API call
*/
- public File downloadApplicationDocument(String applicationId, String documentId) throws ApiException {
- ApiResponse localVarResponse = downloadApplicationDocumentWithHttpInfo(applicationId, documentId);
+ public InputStream downloadApplicationDocument(String applicationId, String documentId) throws ApiException {
+ ApiResponse localVarResponse = downloadApplicationDocumentWithHttpInfo(applicationId, documentId);
return localVarResponse.getData();
}
@@ -3404,7 +3870,7 @@ public File downloadApplicationDocument(String applicationId, String documentId)
* @return ApiResponse<File>
* @throws ApiException if fails to make API call
*/
- public ApiResponse downloadApplicationDocumentWithHttpInfo(String applicationId, String documentId) throws ApiException {
+ public ApiResponse downloadApplicationDocumentWithHttpInfo(String applicationId, String documentId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = downloadApplicationDocumentRequestBuilder(applicationId, documentId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -3417,10 +3883,10 @@ public ApiResponse downloadApplicationDocumentWithHttpInfo(String applicat
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("downloadApplicationDocument", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : localVarResponse.body()
);
} finally {
}
@@ -3467,11 +3933,12 @@ private HttpRequest.Builder downloadApplicationDocumentRequestBuilder(String app
* Enable Recurring Payment
* Enable Recurring Payment via API
* @param paymentId ID of the payment to enable (required)
+ * @param body Pass empty object in order for content-type to be aquired correctly (required)
* @return UnitRecurringPaymentResponse
* @throws ApiException if fails to make API call
*/
- public UnitRecurringPaymentResponse enableRecurringPayment(String paymentId) throws ApiException {
- ApiResponse localVarResponse = enableRecurringPaymentWithHttpInfo(paymentId);
+ public UnitRecurringPaymentResponse enableRecurringPayment(String paymentId, Object body) throws ApiException {
+ ApiResponse localVarResponse = enableRecurringPaymentWithHttpInfo(paymentId, body);
return localVarResponse.getData();
}
@@ -3479,11 +3946,12 @@ public UnitRecurringPaymentResponse enableRecurringPayment(String paymentId) thr
* Enable Recurring Payment
* Enable Recurring Payment via API
* @param paymentId ID of the payment to enable (required)
+ * @param body Pass empty object in order for content-type to be aquired correctly (required)
* @return ApiResponse<UnitRecurringPaymentResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse enableRecurringPaymentWithHttpInfo(String paymentId) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = enableRecurringPaymentRequestBuilder(paymentId);
+ public ApiResponse enableRecurringPaymentWithHttpInfo(String paymentId, Object body) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = enableRecurringPaymentRequestBuilder(paymentId, body);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -3511,11 +3979,15 @@ public ApiResponse enableRecurringPaymentWithHttpI
}
}
- private HttpRequest.Builder enableRecurringPaymentRequestBuilder(String paymentId) throws ApiException {
+ private HttpRequest.Builder enableRecurringPaymentRequestBuilder(String paymentId, Object body) throws ApiException {
// verify the required parameter 'paymentId' is set
if (paymentId == null) {
throw new ApiException(400, "Missing the required parameter 'paymentId' when calling enableRecurringPayment");
}
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling enableRecurringPayment");
+ }
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -3524,9 +3996,15 @@ private HttpRequest.Builder enableRecurringPaymentRequestBuilder(String paymentI
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+ localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
- localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
+ try {
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body);
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
@@ -3540,12 +4018,13 @@ private HttpRequest.Builder enableRecurringPaymentRequestBuilder(String paymentI
* Enable Recurring Repayment by Id
* Enable a Recurring Repayment
* @param recurringRepaymentId ID of the recurring repayment to enable (required)
+ * @param body Pass empty object in order for content-type to be aquired correctly (required)
* @param include (optional)
* @return UnitRecurringRepaymentResponse
* @throws ApiException if fails to make API call
*/
- public UnitRecurringRepaymentResponse enableRecurringRepayment(String recurringRepaymentId, String include) throws ApiException {
- ApiResponse localVarResponse = enableRecurringRepaymentWithHttpInfo(recurringRepaymentId, include);
+ public UnitRecurringRepaymentResponse enableRecurringRepayment(String recurringRepaymentId, Object body, String include) throws ApiException {
+ ApiResponse localVarResponse = enableRecurringRepaymentWithHttpInfo(recurringRepaymentId, body, include);
return localVarResponse.getData();
}
@@ -3553,12 +4032,13 @@ public UnitRecurringRepaymentResponse enableRecurringRepayment(String recurringR
* Enable Recurring Repayment by Id
* Enable a Recurring Repayment
* @param recurringRepaymentId ID of the recurring repayment to enable (required)
+ * @param body Pass empty object in order for content-type to be aquired correctly (required)
* @param include (optional)
* @return ApiResponse<UnitRecurringRepaymentResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse enableRecurringRepaymentWithHttpInfo(String recurringRepaymentId, String include) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = enableRecurringRepaymentRequestBuilder(recurringRepaymentId, include);
+ public ApiResponse enableRecurringRepaymentWithHttpInfo(String recurringRepaymentId, Object body, String include) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = enableRecurringRepaymentRequestBuilder(recurringRepaymentId, body, include);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -3586,11 +4066,15 @@ public ApiResponse enableRecurringRepaymentWithH
}
}
- private HttpRequest.Builder enableRecurringRepaymentRequestBuilder(String recurringRepaymentId, String include) throws ApiException {
+ private HttpRequest.Builder enableRecurringRepaymentRequestBuilder(String recurringRepaymentId, Object body, String include) throws ApiException {
// verify the required parameter 'recurringRepaymentId' is set
if (recurringRepaymentId == null) {
throw new ApiException(400, "Missing the required parameter 'recurringRepaymentId' when calling enableRecurringRepayment");
}
+ // verify the required parameter 'body' is set
+ if (body == null) {
+ throw new ApiException(400, "Missing the required parameter 'body' when calling enableRecurringRepayment");
+ }
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
@@ -3614,9 +4098,15 @@ private HttpRequest.Builder enableRecurringRepaymentRequestBuilder(String recurr
localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
}
+ localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
- localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.noBody());
+ try {
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(body);
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
if (memberVarReadTimeout != null) {
localVarRequestBuilder.timeout(memberVarReadTimeout);
}
@@ -3630,11 +4120,11 @@ private HttpRequest.Builder enableRecurringRepaymentRequestBuilder(String recurr
* Enable Webhook
* Enable a Webhook via API
* @param webhookId ID of the webhook to enable (required)
- * @return WebhookResponse
+ * @return UnitWebhookResponse
* @throws ApiException if fails to make API call
*/
- public WebhookResponse enableWebhook(String webhookId) throws ApiException {
- ApiResponse localVarResponse = enableWebhookWithHttpInfo(webhookId);
+ public UnitWebhookResponse enableWebhook(String webhookId) throws ApiException {
+ ApiResponse localVarResponse = enableWebhookWithHttpInfo(webhookId);
return localVarResponse.getData();
}
@@ -3642,10 +4132,10 @@ public WebhookResponse enableWebhook(String webhookId) throws ApiException {
* Enable Webhook
* Enable a Webhook via API
* @param webhookId ID of the webhook to enable (required)
- * @return ApiResponse<WebhookResponse>
+ * @return ApiResponse<UnitWebhookResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse enableWebhookWithHttpInfo(String webhookId) throws ApiException {
+ public ApiResponse enableWebhookWithHttpInfo(String webhookId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = enableWebhookRequestBuilder(webhookId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -3658,10 +4148,10 @@ public ApiResponse enableWebhookWithHttpInfo(String webhookId)
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("enableWebhook", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -3934,11 +4424,11 @@ private HttpRequest.Builder freezeAccountRequestBuilder(String accountId, Freeze
* Freeze a Card
* Freeze a Card via API
* @param cardId ID of the card to freeze (required)
- * @return UnitFreezeCardResponse
+ * @return UnitCardResponse
* @throws ApiException if fails to make API call
*/
- public UnitFreezeCardResponse freezeCard(String cardId) throws ApiException {
- ApiResponse localVarResponse = freezeCardWithHttpInfo(cardId);
+ public UnitCardResponse freezeCard(String cardId) throws ApiException {
+ ApiResponse localVarResponse = freezeCardWithHttpInfo(cardId);
return localVarResponse.getData();
}
@@ -3946,10 +4436,10 @@ public UnitFreezeCardResponse freezeCard(String cardId) throws ApiException {
* Freeze a Card
* Freeze a Card via API
* @param cardId ID of the card to freeze (required)
- * @return ApiResponse<UnitFreezeCardResponse>
+ * @return ApiResponse<UnitCardResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse freezeCardWithHttpInfo(String cardId) throws ApiException {
+ public ApiResponse freezeCardWithHttpInfo(String cardId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = freezeCardRequestBuilder(cardId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -3962,10 +4452,10 @@ public ApiResponse freezeCardWithHttpInfo(String cardId)
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("freezeCard", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -4003,6 +4493,84 @@ private HttpRequest.Builder freezeCardRequestBuilder(String cardId) throws ApiEx
return localVarRequestBuilder;
}
+ /**
+ * Generate Cash Deposit Barcode
+ * Generate Cash Deposit Barcode via API
+ * @param generateBarcodeRequest Generate Cash Deposit Barcode Request (required)
+ * @return UnitCashDepositBarcodeResponse
+ * @throws ApiException if fails to make API call
+ */
+ public UnitCashDepositBarcodeResponse generateBarcode(GenerateBarcodeRequest generateBarcodeRequest) throws ApiException {
+ ApiResponse localVarResponse = generateBarcodeWithHttpInfo(generateBarcodeRequest);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Generate Cash Deposit Barcode
+ * Generate Cash Deposit Barcode via API
+ * @param generateBarcodeRequest Generate Cash Deposit Barcode Request (required)
+ * @return ApiResponse<UnitCashDepositBarcodeResponse>
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse generateBarcodeWithHttpInfo(GenerateBarcodeRequest generateBarcodeRequest) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = generateBarcodeRequestBuilder(generateBarcodeRequest);
+ try {
+ HttpResponse localVarResponse = memberVarHttpClient.send(
+ localVarRequestBuilder.build(),
+ HttpResponse.BodyHandlers.ofInputStream());
+ if (memberVarResponseInterceptor != null) {
+ memberVarResponseInterceptor.accept(localVarResponse);
+ }
+ try {
+ if (localVarResponse.statusCode()/ 100 != 2) {
+ throw getApiException("generateBarcode", localVarResponse);
+ }
+ return new ApiResponse(
+ localVarResponse.statusCode(),
+ localVarResponse.headers().map(),
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ );
+ } finally {
+ }
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new ApiException(e);
+ }
+ }
+
+ private HttpRequest.Builder generateBarcodeRequestBuilder(GenerateBarcodeRequest generateBarcodeRequest) throws ApiException {
+ // verify the required parameter 'generateBarcodeRequest' is set
+ if (generateBarcodeRequest == null) {
+ throw new ApiException(400, "Missing the required parameter 'generateBarcodeRequest' when calling generateBarcode");
+ }
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/cash-deposits/barcodes";
+
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+
+ localVarRequestBuilder.header("Content-Type", "application/vnd.api+json");
+ localVarRequestBuilder.header("Accept", "application/vnd.api+json");
+
+ try {
+ byte[] localVarPostBody = memberVarObjectMapper.writeValueAsBytes(generateBarcodeRequest);
+ localVarRequestBuilder.method("POST", HttpRequest.BodyPublishers.ofByteArray(localVarPostBody));
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ if (memberVarReadTimeout != null) {
+ localVarRequestBuilder.timeout(memberVarReadTimeout);
+ }
+ if (memberVarInterceptor != null) {
+ memberVarInterceptor.accept(localVarRequestBuilder);
+ }
+ return localVarRequestBuilder;
+ }
+
/**
* Get Account by Id
* Get an Account from API
@@ -4094,24 +4662,28 @@ private HttpRequest.Builder getAccountRequestBuilder(String accountId, String in
}
/**
- * Get AccountEndOfDay List
- * Get AccountEndOfDay List from API
- * @return UnitGetAccountEndOfDayListResponse
+ * Get Account Balance History
+ * Get Account Balance History List from API
+ * @param page (optional)
+ * @param filter (optional)
+ * @return UnitAccountBalanceHistoryResponse
* @throws ApiException if fails to make API call
*/
- public UnitGetAccountEndOfDayListResponse getAccountEndOfDay() throws ApiException {
- ApiResponse localVarResponse = getAccountEndOfDayWithHttpInfo();
+ public UnitAccountBalanceHistoryResponse getAccountBalanceHistory(ListPageParameters page, GetAccountBalanceHistoryFilterParameter filter) throws ApiException {
+ ApiResponse localVarResponse = getAccountBalanceHistoryWithHttpInfo(page, filter);
return localVarResponse.getData();
}
/**
- * Get AccountEndOfDay List
- * Get AccountEndOfDay List from API
- * @return ApiResponse<UnitGetAccountEndOfDayListResponse>
+ * Get Account Balance History
+ * Get Account Balance History List from API
+ * @param page (optional)
+ * @param filter (optional)
+ * @return ApiResponse<UnitAccountBalanceHistoryResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse getAccountEndOfDayWithHttpInfo() throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = getAccountEndOfDayRequestBuilder();
+ public ApiResponse getAccountBalanceHistoryWithHttpInfo(ListPageParameters page, GetAccountBalanceHistoryFilterParameter filter) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = getAccountBalanceHistoryRequestBuilder(page, filter);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -4121,12 +4693,12 @@ public ApiResponse getAccountEndOfDayWithHtt
}
try {
if (localVarResponse.statusCode()/ 100 != 2) {
- throw getApiException("getAccountEndOfDay", localVarResponse);
+ throw getApiException("getAccountBalanceHistory", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -4139,23 +4711,50 @@ public ApiResponse getAccountEndOfDayWithHtt
}
}
- private HttpRequest.Builder getAccountEndOfDayRequestBuilder() throws ApiException {
+ private HttpRequest.Builder getAccountBalanceHistoryRequestBuilder(ListPageParameters page, GetAccountBalanceHistoryFilterParameter filter) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
String localVarPath = "/account-end-of-day";
- localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
-
- localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
-
- localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
- if (memberVarReadTimeout != null) {
- localVarRequestBuilder.timeout(memberVarReadTimeout);
- }
- if (memberVarInterceptor != null) {
- memberVarInterceptor.accept(localVarRequestBuilder);
- }
+ List localVarQueryParams = new ArrayList<>();
+ StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
+ String localVarQueryParameterBaseName;
+ localVarQueryParameterBaseName = "page";
+ if (page != null) {
+ String queryString = page.toUrlQueryString("page");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
+ }
+ localVarQueryParameterBaseName = "filter";
+ if (filter != null) {
+ String queryString = filter.toUrlQueryString("filter");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
+ }
+
+ if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
+ StringJoiner queryJoiner = new StringJoiner("&");
+ localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
+ if (localVarQueryStringJoiner.length() != 0) {
+ queryJoiner.add(localVarQueryStringJoiner.toString());
+ }
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
+ } else {
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+ }
+
+ localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
+
+ localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
+ if (memberVarReadTimeout != null) {
+ localVarRequestBuilder.timeout(memberVarReadTimeout);
+ }
+ if (memberVarInterceptor != null) {
+ memberVarInterceptor.accept(localVarRequestBuilder);
+ }
return localVarRequestBuilder;
}
@@ -4295,11 +4894,17 @@ private HttpRequest.Builder getAccountsListRequestBuilder(ListPageParameters pag
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "page";
if (page != null) {
- localVarQueryStringJoiner.add(page.toUrlQueryString("page"));
+ String queryString = page.toUrlQueryString("page");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "filter";
if (filter != null) {
- localVarQueryStringJoiner.add(filter.toUrlQueryString("filter"));
+ String queryString = filter.toUrlQueryString("filter");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "include";
localVarQueryParams.addAll(ApiClient.parameterToPairs("include", include));
@@ -4716,11 +5321,17 @@ private HttpRequest.Builder getApplicationFormsListRequestBuilder(ListPageParame
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "page";
if (page != null) {
- localVarQueryStringJoiner.add(page.toUrlQueryString("page"));
+ String queryString = page.toUrlQueryString("page");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "filter";
if (filter != null) {
- localVarQueryStringJoiner.add(filter.toUrlQueryString("filter"));
+ String queryString = filter.toUrlQueryString("filter");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "sort";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort));
@@ -4811,11 +5422,17 @@ private HttpRequest.Builder getApplicationsListRequestBuilder(ListPageParameters
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "page";
if (page != null) {
- localVarQueryStringJoiner.add(page.toUrlQueryString("page"));
+ String queryString = page.toUrlQueryString("page");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "filter";
if (filter != null) {
- localVarQueryStringJoiner.add(filter.toUrlQueryString("filter"));
+ String queryString = filter.toUrlQueryString("filter");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "sort";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort));
@@ -4902,7 +5519,10 @@ private HttpRequest.Builder getAtmLocationsListRequestBuilder(GetAtmLocationsLis
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "filter";
if (filter != null) {
- localVarQueryStringJoiner.add(filter.toUrlQueryString("filter"));
+ String queryString = filter.toUrlQueryString("filter");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
@@ -5152,11 +5772,17 @@ private HttpRequest.Builder getAuthorizationRequestsListRequestBuilder(ListPageP
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "page";
if (page != null) {
- localVarQueryStringJoiner.add(page.toUrlQueryString("page"));
+ String queryString = page.toUrlQueryString("page");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "filter";
if (filter != null) {
- localVarQueryStringJoiner.add(filter.toUrlQueryString("filter"));
+ String queryString = filter.toUrlQueryString("filter");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
@@ -5245,11 +5871,17 @@ private HttpRequest.Builder getAuthorizationsListRequestBuilder(ListPageParamete
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "page";
if (page != null) {
- localVarQueryStringJoiner.add(page.toUrlQueryString("page"));
+ String queryString = page.toUrlQueryString("page");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "filter";
if (filter != null) {
- localVarQueryStringJoiner.add(filter.toUrlQueryString("filter"));
+ String queryString = filter.toUrlQueryString("filter");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "sort";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort));
@@ -5350,16 +5982,89 @@ private HttpRequest.Builder getBackCheckDepositRequestBuilder(String checkDeposi
return localVarRequestBuilder;
}
+ /**
+ * Get Barcode Image By Barcode Number
+ * Get Barcode Image By Barcode Number from API
+ * @param barcodeNumber (required)
+ * @return File
+ * @throws ApiException if fails to make API call
+ */
+ public InputStream getBarcodeImage(String barcodeNumber) throws ApiException {
+ ApiResponse localVarResponse = getBarcodeImageWithHttpInfo(barcodeNumber);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Get Barcode Image By Barcode Number
+ * Get Barcode Image By Barcode Number from API
+ * @param barcodeNumber (required)
+ * @return ApiResponse<File>
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse getBarcodeImageWithHttpInfo(String barcodeNumber) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = getBarcodeImageRequestBuilder(barcodeNumber);
+ try {
+ HttpResponse localVarResponse = memberVarHttpClient.send(
+ localVarRequestBuilder.build(),
+ HttpResponse.BodyHandlers.ofInputStream());
+ if (memberVarResponseInterceptor != null) {
+ memberVarResponseInterceptor.accept(localVarResponse);
+ }
+ try {
+ if (localVarResponse.statusCode()/ 100 != 2) {
+ throw getApiException("getBarcodeImage", localVarResponse);
+ }
+ return new ApiResponse(
+ localVarResponse.statusCode(),
+ localVarResponse.headers().map(),
+ localVarResponse.body() == null ? null : localVarResponse.body()
+ );
+ } finally {
+ }
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new ApiException(e);
+ }
+ }
+
+ private HttpRequest.Builder getBarcodeImageRequestBuilder(String barcodeNumber) throws ApiException {
+ // verify the required parameter 'barcodeNumber' is set
+ if (barcodeNumber == null) {
+ throw new ApiException(400, "Missing the required parameter 'barcodeNumber' when calling getBarcodeImage");
+ }
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/cash-deposits/barcodes/{barcodeNumber}/image"
+ .replace("{barcodeNumber}", ApiClient.urlEncode(barcodeNumber.toString()));
+
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+
+ localVarRequestBuilder.header("Accept", "image/png");
+
+ localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
+ if (memberVarReadTimeout != null) {
+ localVarRequestBuilder.timeout(memberVarReadTimeout);
+ }
+ if (memberVarInterceptor != null) {
+ memberVarInterceptor.accept(localVarRequestBuilder);
+ }
+ return localVarRequestBuilder;
+ }
+
/**
* Get Card by Id
* Get a Card from API
* @param cardId ID of the card to get (required)
* @param included (optional)
- * @return UnitCardResponse
+ * @return UnitCardResponseWithIncluded
* @throws ApiException if fails to make API call
*/
- public UnitCardResponse getCard(String cardId, String included) throws ApiException {
- ApiResponse localVarResponse = getCardWithHttpInfo(cardId, included);
+ public UnitCardResponseWithIncluded getCard(String cardId, String included) throws ApiException {
+ ApiResponse localVarResponse = getCardWithHttpInfo(cardId, included);
return localVarResponse.getData();
}
@@ -5368,10 +6073,10 @@ public UnitCardResponse getCard(String cardId, String included) throws ApiExcept
* Get a Card from API
* @param cardId ID of the card to get (required)
* @param included (optional)
- * @return ApiResponse<UnitCardResponse>
+ * @return ApiResponse<UnitCardResponseWithIncluded>
* @throws ApiException if fails to make API call
*/
- public ApiResponse getCardWithHttpInfo(String cardId, String included) throws ApiException {
+ public ApiResponse getCardWithHttpInfo(String cardId, String included) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getCardRequestBuilder(cardId, included);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -5384,10 +6089,10 @@ public ApiResponse getCardWithHttpInfo(String cardId, String i
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getCard", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -5593,11 +6298,11 @@ private HttpRequest.Builder getCardPinStatusRequestBuilder(String cardId) throws
* @param filter (optional)
* @param include (optional)
* @param sort (optional)
- * @return UnitCardResponseCardsList
+ * @return UnitCardsListReponse
* @throws ApiException if fails to make API call
*/
- public UnitCardResponseCardsList getCardsList(ListPageParameters page, GetCardsListFilterParameter filter, String include, String sort) throws ApiException {
- ApiResponse localVarResponse = getCardsListWithHttpInfo(page, filter, include, sort);
+ public UnitCardsListReponse getCardsList(ListPageParameters page, GetCardsListFilterParameter filter, String include, String sort) throws ApiException {
+ ApiResponse localVarResponse = getCardsListWithHttpInfo(page, filter, include, sort);
return localVarResponse.getData();
}
@@ -5608,10 +6313,10 @@ public UnitCardResponseCardsList getCardsList(ListPageParameters page, GetCardsL
* @param filter (optional)
* @param include (optional)
* @param sort (optional)
- * @return ApiResponse<UnitCardResponseCardsList>
+ * @return ApiResponse<UnitCardsListReponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse getCardsListWithHttpInfo(ListPageParameters page, GetCardsListFilterParameter filter, String include, String sort) throws ApiException {
+ public ApiResponse getCardsListWithHttpInfo(ListPageParameters page, GetCardsListFilterParameter filter, String include, String sort) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getCardsListRequestBuilder(page, filter, include, sort);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -5624,10 +6329,10 @@ public ApiResponse getCardsListWithHttpInfo(ListPageP
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getCardsList", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -5651,11 +6356,17 @@ private HttpRequest.Builder getCardsListRequestBuilder(ListPageParameters page,
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "page";
if (page != null) {
- localVarQueryStringJoiner.add(page.toUrlQueryString("page"));
+ String queryString = page.toUrlQueryString("page");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "filter";
if (filter != null) {
- localVarQueryStringJoiner.add(filter.toUrlQueryString("filter"));
+ String queryString = filter.toUrlQueryString("filter");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "include";
localVarQueryParams.addAll(ApiClient.parameterToPairs("include", include));
@@ -5685,6 +6396,103 @@ private HttpRequest.Builder getCardsListRequestBuilder(ListPageParameters page,
return localVarRequestBuilder;
}
+ /**
+ * Get Cash Deposit Store Locations List By Coordinates
+ * Get Cash Deposit Store Locations List By Coordinates from API
+ * @param page (optional)
+ * @param filter (optional)
+ * @return UnitStoreLocationsListResponse
+ * @throws ApiException if fails to make API call
+ */
+ public UnitStoreLocationsListResponse getCashDepositStoreLocationsList(ListPageParameters page, GetCashDepositStoreLocationsListFilterParameter filter) throws ApiException {
+ ApiResponse localVarResponse = getCashDepositStoreLocationsListWithHttpInfo(page, filter);
+ return localVarResponse.getData();
+ }
+
+ /**
+ * Get Cash Deposit Store Locations List By Coordinates
+ * Get Cash Deposit Store Locations List By Coordinates from API
+ * @param page (optional)
+ * @param filter (optional)
+ * @return ApiResponse<UnitStoreLocationsListResponse>
+ * @throws ApiException if fails to make API call
+ */
+ public ApiResponse getCashDepositStoreLocationsListWithHttpInfo(ListPageParameters page, GetCashDepositStoreLocationsListFilterParameter filter) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = getCashDepositStoreLocationsListRequestBuilder(page, filter);
+ try {
+ HttpResponse localVarResponse = memberVarHttpClient.send(
+ localVarRequestBuilder.build(),
+ HttpResponse.BodyHandlers.ofInputStream());
+ if (memberVarResponseInterceptor != null) {
+ memberVarResponseInterceptor.accept(localVarResponse);
+ }
+ try {
+ if (localVarResponse.statusCode()/ 100 != 2) {
+ throw getApiException("getCashDepositStoreLocationsList", localVarResponse);
+ }
+ return new ApiResponse(
+ localVarResponse.statusCode(),
+ localVarResponse.headers().map(),
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ );
+ } finally {
+ }
+ } catch (IOException e) {
+ throw new ApiException(e);
+ }
+ catch (InterruptedException e) {
+ Thread.currentThread().interrupt();
+ throw new ApiException(e);
+ }
+ }
+
+ private HttpRequest.Builder getCashDepositStoreLocationsListRequestBuilder(ListPageParameters page, GetCashDepositStoreLocationsListFilterParameter filter) throws ApiException {
+
+ HttpRequest.Builder localVarRequestBuilder = HttpRequest.newBuilder();
+
+ String localVarPath = "/store-locations";
+
+ List localVarQueryParams = new ArrayList<>();
+ StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
+ String localVarQueryParameterBaseName;
+ localVarQueryParameterBaseName = "page";
+ if (page != null) {
+ String queryString = page.toUrlQueryString("page");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
+ }
+ localVarQueryParameterBaseName = "filter";
+ if (filter != null) {
+ String queryString = filter.toUrlQueryString("filter");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
+ }
+
+ if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
+ StringJoiner queryJoiner = new StringJoiner("&");
+ localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
+ if (localVarQueryStringJoiner.length() != 0) {
+ queryJoiner.add(localVarQueryStringJoiner.toString());
+ }
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
+ } else {
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
+ }
+
+ localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
+
+ localVarRequestBuilder.method("GET", HttpRequest.BodyPublishers.noBody());
+ if (memberVarReadTimeout != null) {
+ localVarRequestBuilder.timeout(memberVarReadTimeout);
+ }
+ if (memberVarInterceptor != null) {
+ memberVarInterceptor.accept(localVarRequestBuilder);
+ }
+ return localVarRequestBuilder;
+ }
+
/**
* Get Check Deposit by Id
* Get a Check Deposit from API
@@ -5765,11 +6573,11 @@ private HttpRequest.Builder getCheckDepositRequestBuilder(String checkDepositId)
* @param filter (optional)
* @param sort (optional)
* @param include (optional)
- * @return UnitListCheckDepositsResponse
+ * @return UnitListCheckDepositResponse
* @throws ApiException if fails to make API call
*/
- public UnitListCheckDepositsResponse getCheckDepositsList(ListPageParameters page, GetCheckDepositsListFilterParameter filter, String sort, String include) throws ApiException {
- ApiResponse localVarResponse = getCheckDepositsListWithHttpInfo(page, filter, sort, include);
+ public UnitListCheckDepositResponse getCheckDepositsList(ListPageParameters page, GetCheckDepositsListFilterParameter filter, String sort, String include) throws ApiException {
+ ApiResponse localVarResponse = getCheckDepositsListWithHttpInfo(page, filter, sort, include);
return localVarResponse.getData();
}
@@ -5780,10 +6588,10 @@ public UnitListCheckDepositsResponse getCheckDepositsList(ListPageParameters pag
* @param filter (optional)
* @param sort (optional)
* @param include (optional)
- * @return ApiResponse<UnitListCheckDepositsResponse>
+ * @return ApiResponse<UnitListCheckDepositResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse getCheckDepositsListWithHttpInfo(ListPageParameters page, GetCheckDepositsListFilterParameter filter, String sort, String include) throws ApiException {
+ public ApiResponse getCheckDepositsListWithHttpInfo(ListPageParameters page, GetCheckDepositsListFilterParameter filter, String sort, String include) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getCheckDepositsListRequestBuilder(page, filter, sort, include);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -5796,10 +6604,10 @@ public ApiResponse getCheckDepositsListWithHttpIn
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getCheckDepositsList", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
);
} finally {
}
@@ -5823,11 +6631,17 @@ private HttpRequest.Builder getCheckDepositsListRequestBuilder(ListPageParameter
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "page";
if (page != null) {
- localVarQueryStringJoiner.add(page.toUrlQueryString("page"));
+ String queryString = page.toUrlQueryString("page");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "filter";
if (filter != null) {
- localVarQueryStringJoiner.add(filter.toUrlQueryString("filter"));
+ String queryString = filter.toUrlQueryString("filter");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "sort";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort));
@@ -5937,8 +6751,8 @@ private HttpRequest.Builder getCheckPaymentRequestBuilder(String checkPaymentId)
* @return File
* @throws ApiException if fails to make API call
*/
- public File getCheckPaymentBack(String checkPaymentId) throws ApiException {
- ApiResponse localVarResponse = getCheckPaymentBackWithHttpInfo(checkPaymentId);
+ public InputStream getCheckPaymentBack(String checkPaymentId) throws ApiException {
+ ApiResponse localVarResponse = getCheckPaymentBackWithHttpInfo(checkPaymentId);
return localVarResponse.getData();
}
@@ -5949,7 +6763,7 @@ public File getCheckPaymentBack(String checkPaymentId) throws ApiException {
* @return ApiResponse<File>
* @throws ApiException if fails to make API call
*/
- public ApiResponse getCheckPaymentBackWithHttpInfo(String checkPaymentId) throws ApiException {
+ public ApiResponse getCheckPaymentBackWithHttpInfo(String checkPaymentId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getCheckPaymentBackRequestBuilder(checkPaymentId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -5962,10 +6776,10 @@ public ApiResponse getCheckPaymentBackWithHttpInfo(String checkPaymentId)
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getCheckPaymentBack", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : localVarResponse.body()
);
} finally {
}
@@ -6010,8 +6824,8 @@ private HttpRequest.Builder getCheckPaymentBackRequestBuilder(String checkPaymen
* @return File
* @throws ApiException if fails to make API call
*/
- public File getCheckPaymentFront(String checkPaymentId) throws ApiException {
- ApiResponse localVarResponse = getCheckPaymentFrontWithHttpInfo(checkPaymentId);
+ public InputStream getCheckPaymentFront(String checkPaymentId) throws ApiException {
+ ApiResponse localVarResponse = getCheckPaymentFrontWithHttpInfo(checkPaymentId);
return localVarResponse.getData();
}
@@ -6022,7 +6836,7 @@ public File getCheckPaymentFront(String checkPaymentId) throws ApiException {
* @return ApiResponse<File>
* @throws ApiException if fails to make API call
*/
- public ApiResponse getCheckPaymentFrontWithHttpInfo(String checkPaymentId) throws ApiException {
+ public ApiResponse getCheckPaymentFrontWithHttpInfo(String checkPaymentId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getCheckPaymentFrontRequestBuilder(checkPaymentId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
@@ -6035,10 +6849,10 @@ public ApiResponse getCheckPaymentFrontWithHttpInfo(String checkPaymentId)
if (localVarResponse.statusCode()/ 100 != 2) {
throw getApiException("getCheckPaymentFront", localVarResponse);
}
- return new ApiResponse(
+ return new ApiResponse(
localVarResponse.statusCode(),
localVarResponse.headers().map(),
- localVarResponse.body() == null ? null : memberVarObjectMapper.readValue(localVarResponse.body(), new TypeReference() {}) // closes the InputStream
+ localVarResponse.body() == null ? null : localVarResponse.body()
);
} finally {
}
@@ -6141,7 +6955,10 @@ private HttpRequest.Builder getCheckPaymentsListRequestBuilder(ListPageParameter
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "page";
if (page != null) {
- localVarQueryStringJoiner.add(page.toUrlQueryString("page"));
+ String queryString = page.toUrlQueryString("page");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "filter";
localVarQueryParams.addAll(ApiClient.parameterToPairs("accountId", filter.getAccountId()));
@@ -6244,11 +7061,17 @@ private HttpRequest.Builder getCounterpartiesListRequestBuilder(ListPageParamete
String localVarQueryParameterBaseName;
localVarQueryParameterBaseName = "page";
if (page != null) {
- localVarQueryStringJoiner.add(page.toUrlQueryString("page"));
+ String queryString = page.toUrlQueryString("page");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "filter";
if (filter != null) {
- localVarQueryStringJoiner.add(filter.toUrlQueryString("filter"));
+ String queryString = filter.toUrlQueryString("filter");
+ if (!queryString.isBlank()) {
+ localVarQueryStringJoiner.add(queryString);
+ }
}
localVarQueryParameterBaseName = "sort";
localVarQueryParams.addAll(ApiClient.parameterToPairs("sort", sort));
@@ -6280,12 +7103,11 @@ private HttpRequest.Builder getCounterpartiesListRequestBuilder(ListPageParamete
* Get Counterparty by Id
* Get a Counterparty from API
* @param counterpartyId ID of the counterparty to get (required)
- * @param included (optional)
* @return UnitCounterpartyResponse
* @throws ApiException if fails to make API call
*/
- public UnitCounterpartyResponse getCounterparty(String counterpartyId, String included) throws ApiException {
- ApiResponse localVarResponse = getCounterpartyWithHttpInfo(counterpartyId, included);
+ public UnitCounterpartyResponse getCounterparty(String counterpartyId) throws ApiException {
+ ApiResponse localVarResponse = getCounterpartyWithHttpInfo(counterpartyId);
return localVarResponse.getData();
}
@@ -6293,12 +7115,11 @@ public UnitCounterpartyResponse getCounterparty(String counterpartyId, String in
* Get Counterparty by Id
* Get a Counterparty from API
* @param counterpartyId ID of the counterparty to get (required)
- * @param included (optional)
* @return ApiResponse<UnitCounterpartyResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse getCounterpartyWithHttpInfo(String counterpartyId, String included) throws ApiException {
- HttpRequest.Builder localVarRequestBuilder = getCounterpartyRequestBuilder(counterpartyId, included);
+ public ApiResponse getCounterpartyWithHttpInfo(String counterpartyId) throws ApiException {
+ HttpRequest.Builder localVarRequestBuilder = getCounterpartyRequestBuilder(counterpartyId);
try {
HttpResponse localVarResponse = memberVarHttpClient.send(
localVarRequestBuilder.build(),
@@ -6326,7 +7147,7 @@ public ApiResponse getCounterpartyWithHttpInfo(String
}
}
- private HttpRequest.Builder getCounterpartyRequestBuilder(String counterpartyId, String included) throws ApiException {
+ private HttpRequest.Builder getCounterpartyRequestBuilder(String counterpartyId) throws ApiException {
// verify the required parameter 'counterpartyId' is set
if (counterpartyId == null) {
throw new ApiException(400, "Missing the required parameter 'counterpartyId' when calling getCounterparty");
@@ -6337,22 +7158,7 @@ private HttpRequest.Builder getCounterpartyRequestBuilder(String counterpartyId,
String localVarPath = "/counterparties/{counterpartyId}"
.replace("{counterpartyId}", ApiClient.urlEncode(counterpartyId.toString()));
- List localVarQueryParams = new ArrayList<>();
- StringJoiner localVarQueryStringJoiner = new StringJoiner("&");
- String localVarQueryParameterBaseName;
- localVarQueryParameterBaseName = "included";
- localVarQueryParams.addAll(ApiClient.parameterToPairs("included", included));
-
- if (!localVarQueryParams.isEmpty() || localVarQueryStringJoiner.length() != 0) {
- StringJoiner queryJoiner = new StringJoiner("&");
- localVarQueryParams.forEach(p -> queryJoiner.add(p.getName() + '=' + p.getValue()));
- if (localVarQueryStringJoiner.length() != 0) {
- queryJoiner.add(localVarQueryStringJoiner.toString());
- }
- localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath + '?' + queryJoiner.toString()));
- } else {
- localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
- }
+ localVarRequestBuilder.uri(URI.create(memberVarBaseUri + localVarPath));
localVarRequestBuilder.header("Accept", "application/vnd.api+json; charset=utf-8");
@@ -6370,11 +7176,11 @@ private HttpRequest.Builder getCounterpartyRequestBuilder(String counterpartyId,
* 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 getCounterpartyBalance(String counterpartyId) throws ApiException {
- ApiResponse localVarResponse = getCounterpartyBalanceWithHttpInfo(counterpartyId);
+ public UnitCounterpartyBalanceResponse getCounterpartyBalance(String counterpartyId) throws ApiException {
+ ApiResponse localVarResponse = getCounterpartyBalanceWithHttpInfo(counterpartyId);
return localVarResponse.getData();
}
@@ -6382,10 +7188,10 @@ public UnitCounterpartyResponse1 getCounterpartyBalance(String counterpartyId) t
* Get Counterparty Balance
* Get Recurring Payment from API
* @param counterpartyId ID of the counterparty to get (required)
- * @return ApiResponse<UnitCounterpartyResponse1>
+ * @return ApiResponse<UnitCounterpartyBalanceResponse>
* @throws ApiException if fails to make API call
*/
- public ApiResponse getCounterpartyBalanceWithHttpInfo(String counterpartyId) throws ApiException {
+ public ApiResponse getCounterpartyBalanceWithHttpInfo(String counterpartyId) throws ApiException {
HttpRequest.Builder localVarRequestBuilder = getCounterpartyBalanceRequestBuilder(counterpartyId);
try {
HttpResponse