();
+
+ final String[] localVarAccepts = {
+ "application/json;charset=utf-8"
+ };
+ final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts);
+ if (localVarAccept != null) localVarHeaderParams.put("Accept", localVarAccept);
+
+ final String[] localVarContentTypes = {
+ "application/json;charset=utf-8"
+ };
+ final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes);
+ localVarHeaderParams.put("Content-Type", localVarContentType);
+
+ if(progressListener != null) {
+ apiClient.getHttpClient().newBuilder().addNetworkInterceptor(new okhttp3.Interceptor() {
+ @Override
+ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOException {
+ okhttp3.Response originalResponse = chain.proceed(chain.request());
+ return originalResponse.newBuilder()
+ .body(new ProgressResponseBody(originalResponse.body(), progressListener))
+ .build();
+ }
+ });
+ }
+
+ String[] localVarAuthNames = new String[] { };
+ return apiClient.buildCall(localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarAuthNames, progressRequestListener);
+ }
+
+ @SuppressWarnings("rawtypes")
+ private okhttp3.Call bankAccountValidationRequestValidateBeforeCall(AccountValidationsRequest accountValidationsRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
+
+ // verify the required parameter 'accountValidationsRequest' is set
+ if (accountValidationsRequest == null) {
+ logger.error("Missing the required parameter 'accountValidationsRequest' when calling bankAccountValidationRequest(Async)");
+ throw new ApiException("Missing the required parameter 'accountValidationsRequest' when calling bankAccountValidationRequest(Async)");
+ }
+
+
+ okhttp3.Call call = bankAccountValidationRequestCall(accountValidationsRequest, progressListener, progressRequestListener);
+ return call;
+
+
+
+
+
+ }
+
+ /**
+ * Visa Bank Account Validation Service
+ * The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha's account validation mandate for Web-debit transactions.
+ * DISCLAIMER : Cybersource may allow Customer to access, use, and/or test a Cybersource product or service that may still be in development or has not been market-tested ("Beta Product") solely for the purpose of evaluating the functionality or marketability of the Beta Product (a "Beta Evaluation"). Notwithstanding any language to the contrary, the following terms shall apply with respect to Customer's participation in any Beta Evaluation (and the Beta Product(s)) accessed thereunder): The Parties will enter into a separate form agreement detailing the scope of the Beta Evaluation, requirements, pricing, the length of the beta evaluation period ("Beta Product Form"). Beta Products are not, and may not become, Transaction Services and have not yet been publicly released and are offered for the sole purpose of internal testing and non-commercial evaluation. Customer's use of the Beta Product shall be solely for the purpose of conducting the Beta Evaluation. Customer accepts all risks arising out of the access and use of the Beta Products. Cybersource may, in its sole discretion, at any time, terminate or discontinue the Beta Evaluation. Customer acknowledges and agrees that any Beta Product may still be in development and that Beta Product is provided "AS IS" and may not perform at the level of a commercially available service, may not operate as expected and may be modified prior to release. CYBERSOURCE SHALL NOT BE RESPONSIBLE OR LIABLE UNDER ANY CONTRACT, TORT (INCLUDING NEGLIGENCE), OR OTHERWISE RELATING TO A BETA PRODUCT OR THE BETA EVALUATION (A) FOR LOSS OR INACCURACY OF DATA OR COST OF PROCUREMENT OF SUBSTITUTE GOODS, SERVICES OR TECHNOLOGY, (B) ANY CLAIM, LOSSES, DAMAGES, OR CAUSE OF ACTION ARISING IN CONNECTION WITH THE BETA PRODUCT; OR (C) FOR ANY INDIRECT, INCIDENTAL OR CONSEQUENTIAL DAMAGES INCLUDING, BUT NOT LIMITED TO, LOSS OF REVENUES AND LOSS OF PROFITS.
+ * @param accountValidationsRequest (required)
+ * @return InlineResponse20013
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
+ */
+ public InlineResponse20013 bankAccountValidationRequest(AccountValidationsRequest accountValidationsRequest) throws ApiException, ConfigException {
+ logger.info("CALL TO METHOD 'bankAccountValidationRequest' STARTED");
+ ApiResponse resp = bankAccountValidationRequestWithHttpInfo(accountValidationsRequest);
+ logger.info("CALL TO METHOD 'bankAccountValidationRequest' ENDED");
+ return resp.getData();
+ }
+
+ /**
+ * Visa Bank Account Validation Service
+ * The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha's account validation mandate for Web-debit transactions.
+ * @param accountValidationsRequest (required)
+ * @return ApiResponse<InlineResponse20013>
+ * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
+ */
+ public ApiResponse bankAccountValidationRequestWithHttpInfo(AccountValidationsRequest accountValidationsRequest) throws ApiException, ConfigException {
+ this.apiClient.setComputationStartTime(System.nanoTime());
+ okhttp3.Call call = bankAccountValidationRequestValidateBeforeCall(accountValidationsRequest, null, null);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ return apiClient.execute(call, localVarReturnType);
+ }
+
+ /**
+ * Visa Bank Account Validation Service (asynchronously)
+ * The Visa Bank Account Validation Service is a new standalone product designed to validate customer's routing and bank account number combination for ACH transactions. Merchant's can use this standalone product to validate their customer's account prior to processing an ACH transaction against the customer's account to comply with Nacha's account validation mandate for Web-debit transactions.
+ * @param accountValidationsRequest (required)
+ * @param callback The callback to be executed when the API call finishes
+ * @return The request call
+ * @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
+ */
+ public okhttp3.Call bankAccountValidationRequestAsync(AccountValidationsRequest accountValidationsRequest, final ApiCallback callback) throws ApiException, ConfigException {
+
+ this.apiClient.setComputationStartTime(System.nanoTime());
+ ProgressResponseBody.ProgressListener progressListener = null;
+ ProgressRequestBody.ProgressRequestListener progressRequestListener = null;
+
+ if (callback != null) {
+ progressListener = new ProgressResponseBody.ProgressListener() {
+ @Override
+ public void update(long bytesRead, long contentLength, boolean done) {
+ callback.onDownloadProgress(bytesRead, contentLength, done);
+ }
+ };
+
+ progressRequestListener = new ProgressRequestBody.ProgressRequestListener() {
+ @Override
+ public void onRequestProgress(long bytesWritten, long contentLength, boolean done) {
+ callback.onUploadProgress(bytesWritten, contentLength, done);
+ }
+ };
+ }
+
+ okhttp3.Call call = bankAccountValidationRequestValidateBeforeCall(accountValidationsRequest, progressListener, progressRequestListener);
+ Type localVarReturnType = new TypeToken(){}.getType();
+ apiClient.executeAsync(call, localVarReturnType, callback);
+ return call;
+ }
+}
diff --git a/src/main/java/Api/BatchesApi.java b/src/main/java/Api/BatchesApi.java
index 026700ab8..f27a2717b 100644
--- a/src/main/java/Api/BatchesApi.java
+++ b/src/main/java/Api/BatchesApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -31,7 +32,7 @@
import Model.Body;
import Model.InlineResponse20010;
import Model.InlineResponse20011;
-import Model.InlineResponse2009;
+import Model.InlineResponse20012;
import Model.InlineResponse202;
import Model.InlineResponse4011;
@@ -75,8 +76,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getBatchReportCall(String batchId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getBatchReportCall(String batchId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -133,7 +135,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getBatchReportValidateBeforeCall(String batchId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getBatchReportValidateBeforeCall(String batchId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'batchId' is set
if (batchId == null) {
@@ -155,12 +157,13 @@ private okhttp3.Call getBatchReportValidateBeforeCall(String batchId, final Prog
* Retrieve a Batch Report
* **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type.
* @param batchId Unique identification number assigned to the submitted request. (required)
- * @return InlineResponse20011
+ * @return InlineResponse20012
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public InlineResponse20011 getBatchReport(String batchId) throws ApiException {
+ public InlineResponse20012 getBatchReport(String batchId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getBatchReport' STARTED");
- ApiResponse resp = getBatchReportWithHttpInfo(batchId);
+ ApiResponse resp = getBatchReportWithHttpInfo(batchId);
logger.info("CALL TO METHOD 'getBatchReport' ENDED");
return resp.getData();
}
@@ -169,13 +172,14 @@ public InlineResponse20011 getBatchReport(String batchId) throws ApiException {
* Retrieve a Batch Report
* **Get Batch Report**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH) - Source record information including token ids, masked card number, expiration dates & card type. - Response record information including response code, reason, token ids, masked card number, expiration dates & card type.
* @param batchId Unique identification number assigned to the submitted request. (required)
- * @return ApiResponse<InlineResponse20011>
+ * @return ApiResponse<InlineResponse20012>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getBatchReportWithHttpInfo(String batchId) throws ApiException {
+ public ApiResponse getBatchReportWithHttpInfo(String batchId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getBatchReportValidateBeforeCall(batchId, null, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -186,8 +190,9 @@ public ApiResponse getBatchReportWithHttpInfo(String batchI
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getBatchReportAsync(String batchId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getBatchReportAsync(String batchId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -210,7 +215,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}
okhttp3.Call call = getBatchReportValidateBeforeCall(batchId, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
@@ -221,8 +226,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getBatchStatusCall(String batchId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getBatchStatusCall(String batchId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -279,7 +285,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getBatchStatusValidateBeforeCall(String batchId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getBatchStatusValidateBeforeCall(String batchId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'batchId' is set
if (batchId == null) {
@@ -301,12 +307,13 @@ private okhttp3.Call getBatchStatusValidateBeforeCall(String batchId, final Prog
* Retrieve a Batch Status
* **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
* @param batchId Unique identification number assigned to the submitted request. (required)
- * @return InlineResponse20010
+ * @return InlineResponse20011
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public InlineResponse20010 getBatchStatus(String batchId) throws ApiException {
+ public InlineResponse20011 getBatchStatus(String batchId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getBatchStatus' STARTED");
- ApiResponse resp = getBatchStatusWithHttpInfo(batchId);
+ ApiResponse resp = getBatchStatusWithHttpInfo(batchId);
logger.info("CALL TO METHOD 'getBatchStatus' ENDED");
return resp.getData();
}
@@ -315,13 +322,14 @@ public InlineResponse20010 getBatchStatus(String batchId) throws ApiException {
* Retrieve a Batch Status
* **Get Batch Status**<br>This resource accepts a batch id and returns: - The batch status. - The total number of accepted, rejected, updated records. - The total number of card association responses. - The billable quantities of: - New Account Numbers (NAN) - New Expiry Dates (NED) - Account Closures (ACL) - Contact Card Holders (CCH)
* @param batchId Unique identification number assigned to the submitted request. (required)
- * @return ApiResponse<InlineResponse20010>
+ * @return ApiResponse<InlineResponse20011>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getBatchStatusWithHttpInfo(String batchId) throws ApiException {
+ public ApiResponse getBatchStatusWithHttpInfo(String batchId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getBatchStatusValidateBeforeCall(batchId, null, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -332,8 +340,9 @@ public ApiResponse getBatchStatusWithHttpInfo(String batchI
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getBatchStatusAsync(String batchId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getBatchStatusAsync(String batchId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -356,7 +365,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}
okhttp3.Call call = getBatchStatusValidateBeforeCall(batchId, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
@@ -370,8 +379,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getBatchesListCall(Long offset, Long limit, String fromDate, String toDate, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getBatchesListCall(Long offset, Long limit, String fromDate, String toDate, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -435,7 +445,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getBatchesListValidateBeforeCall(Long offset, Long limit, String fromDate, String toDate, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getBatchesListValidateBeforeCall(Long offset, Long limit, String fromDate, String toDate, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
okhttp3.Call call = getBatchesListCall(offset, limit, fromDate, toDate, progressListener, progressRequestListener);
@@ -454,12 +464,13 @@ private okhttp3.Call getBatchesListValidateBeforeCall(Long offset, Long limit, S
* @param limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. (optional, default to 20)
* @param fromDate ISO-8601 format: yyyyMMddTHHmmssZ (optional)
* @param toDate ISO-8601 format: yyyyMMddTHHmmssZ (optional)
- * @return InlineResponse2009
+ * @return InlineResponse20010
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public InlineResponse2009 getBatchesList(Long offset, Long limit, String fromDate, String toDate) throws ApiException {
+ public InlineResponse20010 getBatchesList(Long offset, Long limit, String fromDate, String toDate) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getBatchesList' STARTED");
- ApiResponse resp = getBatchesListWithHttpInfo(offset, limit, fromDate, toDate);
+ ApiResponse resp = getBatchesListWithHttpInfo(offset, limit, fromDate, toDate);
logger.info("CALL TO METHOD 'getBatchesList' ENDED");
return resp.getData();
}
@@ -471,13 +482,14 @@ public InlineResponse2009 getBatchesList(Long offset, Long limit, String fromDat
* @param limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. (optional, default to 20)
* @param fromDate ISO-8601 format: yyyyMMddTHHmmssZ (optional)
* @param toDate ISO-8601 format: yyyyMMddTHHmmssZ (optional)
- * @return ApiResponse<InlineResponse2009>
+ * @return ApiResponse<InlineResponse20010>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getBatchesListWithHttpInfo(Long offset, Long limit, String fromDate, String toDate) throws ApiException {
+ public ApiResponse getBatchesListWithHttpInfo(Long offset, Long limit, String fromDate, String toDate) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getBatchesListValidateBeforeCall(offset, limit, fromDate, toDate, null, null);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -491,8 +503,9 @@ public ApiResponse getBatchesListWithHttpInfo(Long offset, L
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getBatchesListAsync(Long offset, Long limit, String fromDate, String toDate, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getBatchesListAsync(Long offset, Long limit, String fromDate, String toDate, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -515,7 +528,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}
okhttp3.Call call = getBatchesListValidateBeforeCall(offset, limit, fromDate, toDate, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken(){}.getType();
+ Type localVarReturnType = new TypeToken(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
@@ -526,8 +539,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call postBatchCall(Body body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call postBatchCall(Body body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(body, Body.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -580,7 +594,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call postBatchValidateBeforeCall(Body body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call postBatchValidateBeforeCall(Body body, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'body' is set
if (body == null) {
@@ -604,8 +618,9 @@ private okhttp3.Call postBatchValidateBeforeCall(Body body, final ProgressRespon
* @param body (required)
* @return InlineResponse202
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public InlineResponse202 postBatch(Body body) throws ApiException {
+ public InlineResponse202 postBatch(Body body) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'postBatch' STARTED");
ApiResponse resp = postBatchWithHttpInfo(body);
logger.info("CALL TO METHOD 'postBatch' ENDED");
@@ -618,8 +633,9 @@ public InlineResponse202 postBatch(Body body) throws ApiException {
* @param body (required)
* @return ApiResponse<InlineResponse202>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse postBatchWithHttpInfo(Body body) throws ApiException {
+ public ApiResponse postBatchWithHttpInfo(Body body) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = postBatchValidateBeforeCall(body, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -633,8 +649,9 @@ public ApiResponse postBatchWithHttpInfo(Body body) throws Ap
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call postBatchAsync(Body body, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call postBatchAsync(Body body, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/BillingAgreementsApi.java b/src/main/java/Api/BillingAgreementsApi.java
index 9f0795a1f..f69b8067e 100644
--- a/src/main/java/Api/BillingAgreementsApi.java
+++ b/src/main/java/Api/BillingAgreementsApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -78,8 +79,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call billingAgreementsDeRegistrationCall(ModifyBillingAgreement modifyBillingAgreement, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call billingAgreementsDeRegistrationCall(ModifyBillingAgreement modifyBillingAgreement, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(modifyBillingAgreement, ModifyBillingAgreement.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -133,7 +135,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call billingAgreementsDeRegistrationValidateBeforeCall(ModifyBillingAgreement modifyBillingAgreement, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call billingAgreementsDeRegistrationValidateBeforeCall(ModifyBillingAgreement modifyBillingAgreement, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'modifyBillingAgreement' is set
if (modifyBillingAgreement == null) {
@@ -164,8 +166,9 @@ private okhttp3.Call billingAgreementsDeRegistrationValidateBeforeCall(ModifyBil
* @param id ID for de-registration or cancellation of Billing Agreement (required)
* @return PtsV2ModifyBillingAgreementPost201Response
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PtsV2ModifyBillingAgreementPost201Response billingAgreementsDeRegistration(ModifyBillingAgreement modifyBillingAgreement, String id) throws ApiException {
+ public PtsV2ModifyBillingAgreementPost201Response billingAgreementsDeRegistration(ModifyBillingAgreement modifyBillingAgreement, String id) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'billingAgreementsDeRegistration' STARTED");
ApiResponse resp = billingAgreementsDeRegistrationWithHttpInfo(modifyBillingAgreement, id);
logger.info("CALL TO METHOD 'billingAgreementsDeRegistration' ENDED");
@@ -179,8 +182,9 @@ public PtsV2ModifyBillingAgreementPost201Response billingAgreementsDeRegistratio
* @param id ID for de-registration or cancellation of Billing Agreement (required)
* @return ApiResponse<PtsV2ModifyBillingAgreementPost201Response>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse billingAgreementsDeRegistrationWithHttpInfo(ModifyBillingAgreement modifyBillingAgreement, String id) throws ApiException {
+ public ApiResponse billingAgreementsDeRegistrationWithHttpInfo(ModifyBillingAgreement modifyBillingAgreement, String id) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = billingAgreementsDeRegistrationValidateBeforeCall(modifyBillingAgreement, id, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -195,8 +199,9 @@ public ApiResponse billingAgreements
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call billingAgreementsDeRegistrationAsync(ModifyBillingAgreement modifyBillingAgreement, String id, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call billingAgreementsDeRegistrationAsync(ModifyBillingAgreement modifyBillingAgreement, String id, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -231,8 +236,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call billingAgreementsIntimationCall(IntimateBillingAgreement intimateBillingAgreement, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call billingAgreementsIntimationCall(IntimateBillingAgreement intimateBillingAgreement, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(intimateBillingAgreement, IntimateBillingAgreement.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -286,7 +292,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call billingAgreementsIntimationValidateBeforeCall(IntimateBillingAgreement intimateBillingAgreement, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call billingAgreementsIntimationValidateBeforeCall(IntimateBillingAgreement intimateBillingAgreement, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'intimateBillingAgreement' is set
if (intimateBillingAgreement == null) {
@@ -317,8 +323,9 @@ private okhttp3.Call billingAgreementsIntimationValidateBeforeCall(IntimateBilli
* @param id ID for intimation of Billing Agreement (required)
* @return PtsV2CreditsPost201Response1
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PtsV2CreditsPost201Response1 billingAgreementsIntimation(IntimateBillingAgreement intimateBillingAgreement, String id) throws ApiException {
+ public PtsV2CreditsPost201Response1 billingAgreementsIntimation(IntimateBillingAgreement intimateBillingAgreement, String id) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'billingAgreementsIntimation' STARTED");
ApiResponse resp = billingAgreementsIntimationWithHttpInfo(intimateBillingAgreement, id);
logger.info("CALL TO METHOD 'billingAgreementsIntimation' ENDED");
@@ -332,8 +339,9 @@ public PtsV2CreditsPost201Response1 billingAgreementsIntimation(IntimateBillingA
* @param id ID for intimation of Billing Agreement (required)
* @return ApiResponse<PtsV2CreditsPost201Response1>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse billingAgreementsIntimationWithHttpInfo(IntimateBillingAgreement intimateBillingAgreement, String id) throws ApiException {
+ public ApiResponse billingAgreementsIntimationWithHttpInfo(IntimateBillingAgreement intimateBillingAgreement, String id) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = billingAgreementsIntimationValidateBeforeCall(intimateBillingAgreement, id, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -348,8 +356,9 @@ public ApiResponse billingAgreementsIntimationWith
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call billingAgreementsIntimationAsync(IntimateBillingAgreement intimateBillingAgreement, String id, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call billingAgreementsIntimationAsync(IntimateBillingAgreement intimateBillingAgreement, String id, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -383,8 +392,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call billingAgreementsRegistrationCall(CreateBillingAgreement createBillingAgreement, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call billingAgreementsRegistrationCall(CreateBillingAgreement createBillingAgreement, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createBillingAgreement, CreateBillingAgreement.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -437,7 +447,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call billingAgreementsRegistrationValidateBeforeCall(CreateBillingAgreement createBillingAgreement, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call billingAgreementsRegistrationValidateBeforeCall(CreateBillingAgreement createBillingAgreement, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'createBillingAgreement' is set
if (createBillingAgreement == null) {
@@ -461,8 +471,9 @@ private okhttp3.Call billingAgreementsRegistrationValidateBeforeCall(CreateBilli
* @param createBillingAgreement (required)
* @return PtsV2CreateBillingAgreementPost201Response
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PtsV2CreateBillingAgreementPost201Response billingAgreementsRegistration(CreateBillingAgreement createBillingAgreement) throws ApiException {
+ public PtsV2CreateBillingAgreementPost201Response billingAgreementsRegistration(CreateBillingAgreement createBillingAgreement) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'billingAgreementsRegistration' STARTED");
ApiResponse resp = billingAgreementsRegistrationWithHttpInfo(createBillingAgreement);
logger.info("CALL TO METHOD 'billingAgreementsRegistration' ENDED");
@@ -475,8 +486,9 @@ public PtsV2CreateBillingAgreementPost201Response billingAgreementsRegistration(
* @param createBillingAgreement (required)
* @return ApiResponse<PtsV2CreateBillingAgreementPost201Response>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse billingAgreementsRegistrationWithHttpInfo(CreateBillingAgreement createBillingAgreement) throws ApiException {
+ public ApiResponse billingAgreementsRegistrationWithHttpInfo(CreateBillingAgreement createBillingAgreement) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = billingAgreementsRegistrationValidateBeforeCall(createBillingAgreement, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -490,8 +502,9 @@ public ApiResponse billingAgreements
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call billingAgreementsRegistrationAsync(CreateBillingAgreement createBillingAgreement, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call billingAgreementsRegistrationAsync(CreateBillingAgreement createBillingAgreement, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/BinLookupApi.java b/src/main/java/Api/BinLookupApi.java
index 5b8fc87ca..1099c0031 100644
--- a/src/main/java/Api/BinLookupApi.java
+++ b/src/main/java/Api/BinLookupApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -73,8 +74,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getAccountInfoCall(CreateBinLookupRequest createBinLookupRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getAccountInfoCall(CreateBinLookupRequest createBinLookupRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createBinLookupRequest, CreateBinLookupRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -127,7 +129,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getAccountInfoValidateBeforeCall(CreateBinLookupRequest createBinLookupRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getAccountInfoValidateBeforeCall(CreateBinLookupRequest createBinLookupRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'createBinLookupRequest' is set
if (createBinLookupRequest == null) {
@@ -152,8 +154,9 @@ private okhttp3.Call getAccountInfoValidateBeforeCall(CreateBinLookupRequest cre
* @param createBinLookupRequest (required)
* @return InlineResponse2012
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public InlineResponse2012 getAccountInfo(CreateBinLookupRequest createBinLookupRequest) throws ApiException {
+ public InlineResponse2012 getAccountInfo(CreateBinLookupRequest createBinLookupRequest) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getAccountInfo' STARTED");
ApiResponse resp = getAccountInfoWithHttpInfo(createBinLookupRequest);
logger.info("CALL TO METHOD 'getAccountInfo' ENDED");
@@ -166,8 +169,9 @@ public InlineResponse2012 getAccountInfo(CreateBinLookupRequest createBinLookupR
* @param createBinLookupRequest (required)
* @return ApiResponse<InlineResponse2012>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getAccountInfoWithHttpInfo(CreateBinLookupRequest createBinLookupRequest) throws ApiException {
+ public ApiResponse getAccountInfoWithHttpInfo(CreateBinLookupRequest createBinLookupRequest) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getAccountInfoValidateBeforeCall(createBinLookupRequest, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -181,8 +185,9 @@ public ApiResponse getAccountInfoWithHttpInfo(CreateBinLooku
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getAccountInfoAsync(CreateBinLookupRequest createBinLookupRequest, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getAccountInfoAsync(CreateBinLookupRequest createBinLookupRequest, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/CaptureApi.java b/src/main/java/Api/CaptureApi.java
index 84a428bc1..bc34d1b8d 100644
--- a/src/main/java/Api/CaptureApi.java
+++ b/src/main/java/Api/CaptureApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -74,8 +75,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call capturePaymentCall(CapturePaymentRequest capturePaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call capturePaymentCall(CapturePaymentRequest capturePaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(capturePaymentRequest, CapturePaymentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -129,7 +131,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call capturePaymentValidateBeforeCall(CapturePaymentRequest capturePaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call capturePaymentValidateBeforeCall(CapturePaymentRequest capturePaymentRequest, String id, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'capturePaymentRequest' is set
if (capturePaymentRequest == null) {
@@ -160,8 +162,9 @@ private okhttp3.Call capturePaymentValidateBeforeCall(CapturePaymentRequest capt
* @param id The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)
* @return PtsV2PaymentsCapturesPost201Response
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PtsV2PaymentsCapturesPost201Response capturePayment(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException {
+ public PtsV2PaymentsCapturesPost201Response capturePayment(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'capturePayment' STARTED");
ApiResponse resp = capturePaymentWithHttpInfo(capturePaymentRequest, id);
logger.info("CALL TO METHOD 'capturePayment' ENDED");
@@ -175,8 +178,9 @@ public PtsV2PaymentsCapturesPost201Response capturePayment(CapturePaymentRequest
* @param id The payment ID returned from a previous payment request. This ID links the capture to the payment. (required)
* @return ApiResponse<PtsV2PaymentsCapturesPost201Response>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException {
+ public ApiResponse capturePaymentWithHttpInfo(CapturePaymentRequest capturePaymentRequest, String id) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = capturePaymentValidateBeforeCall(capturePaymentRequest, id, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -191,8 +195,9 @@ public ApiResponse capturePaymentWithHttpI
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call capturePaymentAsync(CapturePaymentRequest capturePaymentRequest, String id, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call capturePaymentAsync(CapturePaymentRequest capturePaymentRequest, String id, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/ChargebackDetailsApi.java b/src/main/java/Api/ChargebackDetailsApi.java
index f37c48505..accae0f0b 100644
--- a/src/main/java/Api/ChargebackDetailsApi.java
+++ b/src/main/java/Api/ChargebackDetailsApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -73,8 +74,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getChargebackDetailsCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getChargebackDetailsCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -136,7 +138,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getChargebackDetailsValidateBeforeCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getChargebackDetailsValidateBeforeCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'startTime' is set
if (startTime == null) {
@@ -168,8 +170,9 @@ private okhttp3.Call getChargebackDetailsValidateBeforeCall(DateTime startTime,
* @param organizationId Valid Organization Id (optional)
* @return ReportingV3ChargebackDetailsGet200Response
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ReportingV3ChargebackDetailsGet200Response getChargebackDetails(DateTime startTime, DateTime endTime, String organizationId) throws ApiException {
+ public ReportingV3ChargebackDetailsGet200Response getChargebackDetails(DateTime startTime, DateTime endTime, String organizationId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getChargebackDetails' STARTED");
ApiResponse resp = getChargebackDetailsWithHttpInfo(startTime, endTime, organizationId);
logger.info("CALL TO METHOD 'getChargebackDetails' ENDED");
@@ -184,8 +187,9 @@ public ReportingV3ChargebackDetailsGet200Response getChargebackDetails(DateTime
* @param organizationId Valid Organization Id (optional)
* @return ApiResponse<ReportingV3ChargebackDetailsGet200Response>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getChargebackDetailsWithHttpInfo(DateTime startTime, DateTime endTime, String organizationId) throws ApiException {
+ public ApiResponse getChargebackDetailsWithHttpInfo(DateTime startTime, DateTime endTime, String organizationId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getChargebackDetailsValidateBeforeCall(startTime, endTime, organizationId, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -201,8 +205,9 @@ public ApiResponse getChargebackDeta
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getChargebackDetailsAsync(DateTime startTime, DateTime endTime, String organizationId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getChargebackDetailsAsync(DateTime startTime, DateTime endTime, String organizationId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/ChargebackSummariesApi.java b/src/main/java/Api/ChargebackSummariesApi.java
index 7997d0d38..d71c478a1 100644
--- a/src/main/java/Api/ChargebackSummariesApi.java
+++ b/src/main/java/Api/ChargebackSummariesApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -73,8 +74,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getChargebackSummariesCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getChargebackSummariesCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -136,7 +138,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getChargebackSummariesValidateBeforeCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getChargebackSummariesValidateBeforeCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'startTime' is set
if (startTime == null) {
@@ -168,8 +170,9 @@ private okhttp3.Call getChargebackSummariesValidateBeforeCall(DateTime startTime
* @param organizationId Valid Organization Id (optional)
* @return ReportingV3ChargebackSummariesGet200Response
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ReportingV3ChargebackSummariesGet200Response getChargebackSummaries(DateTime startTime, DateTime endTime, String organizationId) throws ApiException {
+ public ReportingV3ChargebackSummariesGet200Response getChargebackSummaries(DateTime startTime, DateTime endTime, String organizationId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getChargebackSummaries' STARTED");
ApiResponse resp = getChargebackSummariesWithHttpInfo(startTime, endTime, organizationId);
logger.info("CALL TO METHOD 'getChargebackSummaries' ENDED");
@@ -184,8 +187,9 @@ public ReportingV3ChargebackSummariesGet200Response getChargebackSummaries(DateT
* @param organizationId Valid Organization Id (optional)
* @return ApiResponse<ReportingV3ChargebackSummariesGet200Response>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getChargebackSummariesWithHttpInfo(DateTime startTime, DateTime endTime, String organizationId) throws ApiException {
+ public ApiResponse getChargebackSummariesWithHttpInfo(DateTime startTime, DateTime endTime, String organizationId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getChargebackSummariesValidateBeforeCall(startTime, endTime, organizationId, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -201,8 +205,9 @@ public ApiResponse getChargebackSu
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getChargebackSummariesAsync(DateTime startTime, DateTime endTime, String organizationId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getChargebackSummariesAsync(DateTime startTime, DateTime endTime, String organizationId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/ConversionDetailsApi.java b/src/main/java/Api/ConversionDetailsApi.java
index 2a8ff9acb..2c3bb5ce6 100644
--- a/src/main/java/Api/ConversionDetailsApi.java
+++ b/src/main/java/Api/ConversionDetailsApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -74,8 +75,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getConversionDetailCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getConversionDetailCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -137,7 +139,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getConversionDetailValidateBeforeCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getConversionDetailValidateBeforeCall(DateTime startTime, DateTime endTime, String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'startTime' is set
if (startTime == null) {
@@ -169,8 +171,9 @@ private okhttp3.Call getConversionDetailValidateBeforeCall(DateTime startTime, D
* @param organizationId Valid Organization Id (optional)
* @return ReportingV3ConversionDetailsGet200Response
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ReportingV3ConversionDetailsGet200Response getConversionDetail(DateTime startTime, DateTime endTime, String organizationId) throws ApiException {
+ public ReportingV3ConversionDetailsGet200Response getConversionDetail(DateTime startTime, DateTime endTime, String organizationId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getConversionDetail' STARTED");
ApiResponse resp = getConversionDetailWithHttpInfo(startTime, endTime, organizationId);
logger.info("CALL TO METHOD 'getConversionDetail' ENDED");
@@ -185,8 +188,9 @@ public ReportingV3ConversionDetailsGet200Response getConversionDetail(DateTime s
* @param organizationId Valid Organization Id (optional)
* @return ApiResponse<ReportingV3ConversionDetailsGet200Response>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getConversionDetailWithHttpInfo(DateTime startTime, DateTime endTime, String organizationId) throws ApiException {
+ public ApiResponse getConversionDetailWithHttpInfo(DateTime startTime, DateTime endTime, String organizationId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getConversionDetailValidateBeforeCall(startTime, endTime, organizationId, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -202,8 +206,9 @@ public ApiResponse getConversionDeta
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getConversionDetailAsync(DateTime startTime, DateTime endTime, String organizationId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getConversionDetailAsync(DateTime startTime, DateTime endTime, String organizationId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/CreateNewWebhooksApi.java b/src/main/java/Api/CreateNewWebhooksApi.java
index c71c6b477..3801db4a6 100644
--- a/src/main/java/Api/CreateNewWebhooksApi.java
+++ b/src/main/java/Api/CreateNewWebhooksApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -29,7 +30,7 @@
import Model.CreateWebhook;
-import Model.InlineResponse2003;
+import Model.InlineResponse2004;
import Model.InlineResponse2014;
import Model.InlineResponse2015;
import Model.SaveSymEgressKey;
@@ -74,8 +75,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call findProductsToSubscribeCall(String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call findProductsToSubscribeCall(String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -132,7 +134,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call findProductsToSubscribeValidateBeforeCall(String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call findProductsToSubscribeValidateBeforeCall(String organizationId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'organizationId' is set
if (organizationId == null) {
@@ -154,12 +156,13 @@ private okhttp3.Call findProductsToSubscribeValidateBeforeCall(String organizati
* Find Products You Can Subscribe To
* Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
* @param organizationId The Organization Identifier. (required)
- * @return List<InlineResponse2003>
+ * @return List<InlineResponse2004>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public List findProductsToSubscribe(String organizationId) throws ApiException {
+ public List findProductsToSubscribe(String organizationId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'findProductsToSubscribe' STARTED");
- ApiResponse> resp = findProductsToSubscribeWithHttpInfo(organizationId);
+ ApiResponse> resp = findProductsToSubscribeWithHttpInfo(organizationId);
logger.info("CALL TO METHOD 'findProductsToSubscribe' ENDED");
return resp.getData();
}
@@ -168,13 +171,14 @@ public List findProductsToSubscribe(String organizationId) t
* Find Products You Can Subscribe To
* Retrieve a list of products and event types that your account is eligible for. These products and events are the ones that you may subscribe to in the next step of creating webhooks.
* @param organizationId The Organization Identifier. (required)
- * @return ApiResponse<List<InlineResponse2003>>
+ * @return ApiResponse<List<InlineResponse2004>>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse> findProductsToSubscribeWithHttpInfo(String organizationId) throws ApiException {
+ public ApiResponse> findProductsToSubscribeWithHttpInfo(String organizationId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = findProductsToSubscribeValidateBeforeCall(organizationId, null, null);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ Type localVarReturnType = new TypeToken>(){}.getType();
return apiClient.execute(call, localVarReturnType);
}
@@ -185,8 +189,9 @@ public ApiResponse> findProductsToSubscribeWithHttpInfo
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call findProductsToSubscribeAsync(String organizationId, final ApiCallback> callback) throws ApiException {
+ public okhttp3.Call findProductsToSubscribeAsync(String organizationId, final ApiCallback> callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -209,7 +214,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
}
okhttp3.Call call = findProductsToSubscribeValidateBeforeCall(organizationId, progressListener, progressRequestListener);
- Type localVarReturnType = new TypeToken>(){}.getType();
+ Type localVarReturnType = new TypeToken>(){}.getType();
apiClient.executeAsync(call, localVarReturnType, callback);
return call;
}
@@ -220,8 +225,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call notificationSubscriptionsV2WebhooksPostCall(CreateWebhook createWebhook, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call notificationSubscriptionsV2WebhooksPostCall(CreateWebhook createWebhook, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createWebhook, CreateWebhook.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -274,7 +280,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call notificationSubscriptionsV2WebhooksPostValidateBeforeCall(CreateWebhook createWebhook, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call notificationSubscriptionsV2WebhooksPostValidateBeforeCall(CreateWebhook createWebhook, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
okhttp3.Call call = notificationSubscriptionsV2WebhooksPostCall(createWebhook, progressListener, progressRequestListener);
@@ -292,8 +298,9 @@ private okhttp3.Call notificationSubscriptionsV2WebhooksPostValidateBeforeCall(C
* @param createWebhook The webhook payload (optional)
* @return InlineResponse2015
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public InlineResponse2015 notificationSubscriptionsV2WebhooksPost(CreateWebhook createWebhook) throws ApiException {
+ public InlineResponse2015 notificationSubscriptionsV2WebhooksPost(CreateWebhook createWebhook) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'notificationSubscriptionsV2WebhooksPost' STARTED");
ApiResponse resp = notificationSubscriptionsV2WebhooksPostWithHttpInfo(createWebhook);
logger.info("CALL TO METHOD 'notificationSubscriptionsV2WebhooksPost' ENDED");
@@ -306,8 +313,9 @@ public InlineResponse2015 notificationSubscriptionsV2WebhooksPost(CreateWebhook
* @param createWebhook The webhook payload (optional)
* @return ApiResponse<InlineResponse2015>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse notificationSubscriptionsV2WebhooksPostWithHttpInfo(CreateWebhook createWebhook) throws ApiException {
+ public ApiResponse notificationSubscriptionsV2WebhooksPostWithHttpInfo(CreateWebhook createWebhook) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = notificationSubscriptionsV2WebhooksPostValidateBeforeCall(createWebhook, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -321,8 +329,9 @@ public ApiResponse notificationSubscriptionsV2WebhooksPostWi
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call notificationSubscriptionsV2WebhooksPostAsync(CreateWebhook createWebhook, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call notificationSubscriptionsV2WebhooksPostAsync(CreateWebhook createWebhook, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -359,8 +368,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call saveSymEgressKeyCall(String vCSenderOrganizationId, String vCPermissions, String vCCorrelationId, SaveSymEgressKey saveSymEgressKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call saveSymEgressKeyCall(String vCSenderOrganizationId, String vCPermissions, String vCCorrelationId, SaveSymEgressKey saveSymEgressKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(saveSymEgressKey, SaveSymEgressKey.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -419,7 +429,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call saveSymEgressKeyValidateBeforeCall(String vCSenderOrganizationId, String vCPermissions, String vCCorrelationId, SaveSymEgressKey saveSymEgressKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call saveSymEgressKeyValidateBeforeCall(String vCSenderOrganizationId, String vCPermissions, String vCCorrelationId, SaveSymEgressKey saveSymEgressKey, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'vCSenderOrganizationId' is set
if (vCSenderOrganizationId == null) {
@@ -452,8 +462,9 @@ private okhttp3.Call saveSymEgressKeyValidateBeforeCall(String vCSenderOrganizat
* @param saveSymEgressKey Provide egress Symmetric key information to save (create or store or refresh) (optional)
* @return InlineResponse2014
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public InlineResponse2014 saveSymEgressKey(String vCSenderOrganizationId, String vCPermissions, String vCCorrelationId, SaveSymEgressKey saveSymEgressKey) throws ApiException {
+ public InlineResponse2014 saveSymEgressKey(String vCSenderOrganizationId, String vCPermissions, String vCCorrelationId, SaveSymEgressKey saveSymEgressKey) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'saveSymEgressKey' STARTED");
ApiResponse resp = saveSymEgressKeyWithHttpInfo(vCSenderOrganizationId, vCPermissions, vCCorrelationId, saveSymEgressKey);
logger.info("CALL TO METHOD 'saveSymEgressKey' ENDED");
@@ -469,8 +480,9 @@ public InlineResponse2014 saveSymEgressKey(String vCSenderOrganizationId, String
* @param saveSymEgressKey Provide egress Symmetric key information to save (create or store or refresh) (optional)
* @return ApiResponse<InlineResponse2014>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse saveSymEgressKeyWithHttpInfo(String vCSenderOrganizationId, String vCPermissions, String vCCorrelationId, SaveSymEgressKey saveSymEgressKey) throws ApiException {
+ public ApiResponse saveSymEgressKeyWithHttpInfo(String vCSenderOrganizationId, String vCPermissions, String vCCorrelationId, SaveSymEgressKey saveSymEgressKey) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = saveSymEgressKeyValidateBeforeCall(vCSenderOrganizationId, vCPermissions, vCCorrelationId, saveSymEgressKey, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -487,8 +499,9 @@ public ApiResponse saveSymEgressKeyWithHttpInfo(String vCSen
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call saveSymEgressKeyAsync(String vCSenderOrganizationId, String vCPermissions, String vCCorrelationId, SaveSymEgressKey saveSymEgressKey, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call saveSymEgressKeyAsync(String vCSenderOrganizationId, String vCPermissions, String vCCorrelationId, SaveSymEgressKey saveSymEgressKey, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/CreditApi.java b/src/main/java/Api/CreditApi.java
index c14420932..e80834b4e 100644
--- a/src/main/java/Api/CreditApi.java
+++ b/src/main/java/Api/CreditApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -73,8 +74,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call createCreditCall(CreateCreditRequest createCreditRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call createCreditCall(CreateCreditRequest createCreditRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(createCreditRequest, CreateCreditRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -127,7 +129,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call createCreditValidateBeforeCall(CreateCreditRequest createCreditRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call createCreditValidateBeforeCall(CreateCreditRequest createCreditRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'createCreditRequest' is set
if (createCreditRequest == null) {
@@ -151,8 +153,9 @@ private okhttp3.Call createCreditValidateBeforeCall(CreateCreditRequest createCr
* @param createCreditRequest (required)
* @return PtsV2CreditsPost201Response
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PtsV2CreditsPost201Response createCredit(CreateCreditRequest createCreditRequest) throws ApiException {
+ public PtsV2CreditsPost201Response createCredit(CreateCreditRequest createCreditRequest) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'createCredit' STARTED");
ApiResponse resp = createCreditWithHttpInfo(createCreditRequest);
logger.info("CALL TO METHOD 'createCredit' ENDED");
@@ -165,8 +168,9 @@ public PtsV2CreditsPost201Response createCredit(CreateCreditRequest createCredit
* @param createCreditRequest (required)
* @return ApiResponse<PtsV2CreditsPost201Response>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse createCreditWithHttpInfo(CreateCreditRequest createCreditRequest) throws ApiException {
+ public ApiResponse createCreditWithHttpInfo(CreateCreditRequest createCreditRequest) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = createCreditValidateBeforeCall(createCreditRequest, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -180,8 +184,9 @@ public ApiResponse createCreditWithHttpInfo(CreateC
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call createCreditAsync(CreateCreditRequest createCreditRequest, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call createCreditAsync(CreateCreditRequest createCreditRequest, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/CustomerApi.java b/src/main/java/Api/CustomerApi.java
index f65d43c72..a89767744 100644
--- a/src/main/java/Api/CustomerApi.java
+++ b/src/main/java/Api/CustomerApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -79,8 +80,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call deleteCustomerCall(String customerId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call deleteCustomerCall(String customerId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("DELETE".equalsIgnoreCase("POST")) {
@@ -139,7 +141,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call deleteCustomerValidateBeforeCall(String customerId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call deleteCustomerValidateBeforeCall(String customerId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -163,8 +165,9 @@ private okhttp3.Call deleteCustomerValidateBeforeCall(String customerId, String
* @param customerId The Id of a Customer. (required)
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public void deleteCustomer(String customerId, String profileId) throws ApiException {
+ public void deleteCustomer(String customerId, String profileId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'deleteCustomer' STARTED");
deleteCustomerWithHttpInfo(customerId, profileId);
@@ -177,8 +180,9 @@ public void deleteCustomer(String customerId, String profileId) throws ApiExcept
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse deleteCustomerWithHttpInfo(String customerId, String profileId) throws ApiException {
+ public ApiResponse deleteCustomerWithHttpInfo(String customerId, String profileId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = deleteCustomerValidateBeforeCall(customerId, profileId, null, null);
return apiClient.execute(call);
@@ -192,8 +196,9 @@ public ApiResponse deleteCustomerWithHttpInfo(String customerId, String pr
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call deleteCustomerAsync(String customerId, String profileId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call deleteCustomerAsync(String customerId, String profileId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -227,8 +232,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getCustomerCall(String customerId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getCustomerCall(String customerId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -287,7 +293,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getCustomerValidateBeforeCall(String customerId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getCustomerValidateBeforeCall(String customerId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -312,8 +318,9 @@ private okhttp3.Call getCustomerValidateBeforeCall(String customerId, String pro
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return PostCustomerRequest
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PostCustomerRequest getCustomer(String customerId, String profileId) throws ApiException {
+ public PostCustomerRequest getCustomer(String customerId, String profileId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getCustomer' STARTED");
ApiResponse resp = getCustomerWithHttpInfo(customerId, profileId);
logger.info("CALL TO METHOD 'getCustomer' ENDED");
@@ -327,8 +334,9 @@ public PostCustomerRequest getCustomer(String customerId, String profileId) thro
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return ApiResponse<PostCustomerRequest>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getCustomerWithHttpInfo(String customerId, String profileId) throws ApiException {
+ public ApiResponse getCustomerWithHttpInfo(String customerId, String profileId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getCustomerValidateBeforeCall(customerId, profileId, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -343,8 +351,9 @@ public ApiResponse getCustomerWithHttpInfo(String customerI
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getCustomerAsync(String customerId, String profileId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getCustomerAsync(String customerId, String profileId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -381,8 +390,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call patchCustomerCall(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call patchCustomerCall(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(patchCustomerRequest, PatchCustomerRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -440,7 +450,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call patchCustomerValidateBeforeCall(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call patchCustomerValidateBeforeCall(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -473,8 +483,9 @@ private okhttp3.Call patchCustomerValidateBeforeCall(String customerId, PatchCus
* @param ifMatch Contains an ETag value from a GET request to make the request conditional. (optional)
* @return PatchCustomerRequest
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PatchCustomerRequest patchCustomer(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch) throws ApiException {
+ public PatchCustomerRequest patchCustomer(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'patchCustomer' STARTED");
ApiResponse resp = patchCustomerWithHttpInfo(customerId, patchCustomerRequest, profileId, ifMatch);
logger.info("CALL TO METHOD 'patchCustomer' ENDED");
@@ -490,8 +501,9 @@ public PatchCustomerRequest patchCustomer(String customerId, PatchCustomerReques
* @param ifMatch Contains an ETag value from a GET request to make the request conditional. (optional)
* @return ApiResponse<PatchCustomerRequest>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse patchCustomerWithHttpInfo(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch) throws ApiException {
+ public ApiResponse patchCustomerWithHttpInfo(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = patchCustomerValidateBeforeCall(customerId, patchCustomerRequest, profileId, ifMatch, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -508,8 +520,9 @@ public ApiResponse patchCustomerWithHttpInfo(String custom
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call patchCustomerAsync(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call patchCustomerAsync(String customerId, PatchCustomerRequest patchCustomerRequest, String profileId, String ifMatch, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -544,8 +557,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call postCustomerCall(PostCustomerRequest postCustomerRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call postCustomerCall(PostCustomerRequest postCustomerRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postCustomerRequest, PostCustomerRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -600,7 +614,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call postCustomerValidateBeforeCall(PostCustomerRequest postCustomerRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call postCustomerValidateBeforeCall(PostCustomerRequest postCustomerRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'postCustomerRequest' is set
if (postCustomerRequest == null) {
@@ -625,8 +639,9 @@ private okhttp3.Call postCustomerValidateBeforeCall(PostCustomerRequest postCust
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return PostCustomerRequest
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PostCustomerRequest postCustomer(PostCustomerRequest postCustomerRequest, String profileId) throws ApiException {
+ public PostCustomerRequest postCustomer(PostCustomerRequest postCustomerRequest, String profileId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'postCustomer' STARTED");
ApiResponse resp = postCustomerWithHttpInfo(postCustomerRequest, profileId);
logger.info("CALL TO METHOD 'postCustomer' ENDED");
@@ -640,8 +655,9 @@ public PostCustomerRequest postCustomer(PostCustomerRequest postCustomerRequest,
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return ApiResponse<PostCustomerRequest>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse postCustomerWithHttpInfo(PostCustomerRequest postCustomerRequest, String profileId) throws ApiException {
+ public ApiResponse postCustomerWithHttpInfo(PostCustomerRequest postCustomerRequest, String profileId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = postCustomerValidateBeforeCall(postCustomerRequest, profileId, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -656,8 +672,9 @@ public ApiResponse postCustomerWithHttpInfo(PostCustomerReq
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call postCustomerAsync(PostCustomerRequest postCustomerRequest, String profileId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call postCustomerAsync(PostCustomerRequest postCustomerRequest, String profileId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/CustomerPaymentInstrumentApi.java b/src/main/java/Api/CustomerPaymentInstrumentApi.java
index 7f2385ecc..f866e2b41 100644
--- a/src/main/java/Api/CustomerPaymentInstrumentApi.java
+++ b/src/main/java/Api/CustomerPaymentInstrumentApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -81,8 +82,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call deleteCustomerPaymentInstrumentCall(String customerId, String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call deleteCustomerPaymentInstrumentCall(String customerId, String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("DELETE".equalsIgnoreCase("POST")) {
@@ -142,7 +144,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call deleteCustomerPaymentInstrumentValidateBeforeCall(String customerId, String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call deleteCustomerPaymentInstrumentValidateBeforeCall(String customerId, String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -173,8 +175,9 @@ private okhttp3.Call deleteCustomerPaymentInstrumentValidateBeforeCall(String cu
* @param paymentInstrumentId The Id of a payment instrument. (required)
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public void deleteCustomerPaymentInstrument(String customerId, String paymentInstrumentId, String profileId) throws ApiException {
+ public void deleteCustomerPaymentInstrument(String customerId, String paymentInstrumentId, String profileId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'deleteCustomerPaymentInstrument' STARTED");
deleteCustomerPaymentInstrumentWithHttpInfo(customerId, paymentInstrumentId, profileId);
@@ -188,8 +191,9 @@ public void deleteCustomerPaymentInstrument(String customerId, String paymentIns
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse deleteCustomerPaymentInstrumentWithHttpInfo(String customerId, String paymentInstrumentId, String profileId) throws ApiException {
+ public ApiResponse deleteCustomerPaymentInstrumentWithHttpInfo(String customerId, String paymentInstrumentId, String profileId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = deleteCustomerPaymentInstrumentValidateBeforeCall(customerId, paymentInstrumentId, profileId, null, null);
return apiClient.execute(call);
@@ -204,8 +208,9 @@ public ApiResponse deleteCustomerPaymentInstrumentWithHttpInfo(String cust
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call deleteCustomerPaymentInstrumentAsync(String customerId, String paymentInstrumentId, String profileId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call deleteCustomerPaymentInstrumentAsync(String customerId, String paymentInstrumentId, String profileId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -240,8 +245,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getCustomerPaymentInstrumentCall(String customerId, String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getCustomerPaymentInstrumentCall(String customerId, String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -301,7 +307,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getCustomerPaymentInstrumentValidateBeforeCall(String customerId, String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getCustomerPaymentInstrumentValidateBeforeCall(String customerId, String paymentInstrumentId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -333,8 +339,9 @@ private okhttp3.Call getCustomerPaymentInstrumentValidateBeforeCall(String custo
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return PostCustomerPaymentInstrumentRequest
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PostCustomerPaymentInstrumentRequest getCustomerPaymentInstrument(String customerId, String paymentInstrumentId, String profileId) throws ApiException {
+ public PostCustomerPaymentInstrumentRequest getCustomerPaymentInstrument(String customerId, String paymentInstrumentId, String profileId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getCustomerPaymentInstrument' STARTED");
ApiResponse resp = getCustomerPaymentInstrumentWithHttpInfo(customerId, paymentInstrumentId, profileId);
logger.info("CALL TO METHOD 'getCustomerPaymentInstrument' ENDED");
@@ -349,8 +356,9 @@ public PostCustomerPaymentInstrumentRequest getCustomerPaymentInstrument(String
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return ApiResponse<PostCustomerPaymentInstrumentRequest>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getCustomerPaymentInstrumentWithHttpInfo(String customerId, String paymentInstrumentId, String profileId) throws ApiException {
+ public ApiResponse getCustomerPaymentInstrumentWithHttpInfo(String customerId, String paymentInstrumentId, String profileId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getCustomerPaymentInstrumentValidateBeforeCall(customerId, paymentInstrumentId, profileId, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -366,8 +374,9 @@ public ApiResponse getCustomerPaymentInstr
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getCustomerPaymentInstrumentAsync(String customerId, String paymentInstrumentId, String profileId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getCustomerPaymentInstrumentAsync(String customerId, String paymentInstrumentId, String profileId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -404,8 +413,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getCustomerPaymentInstrumentsListCall(String customerId, String profileId, Long offset, Long limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getCustomerPaymentInstrumentsListCall(String customerId, String profileId, Long offset, Long limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -468,7 +478,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getCustomerPaymentInstrumentsListValidateBeforeCall(String customerId, String profileId, Long offset, Long limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getCustomerPaymentInstrumentsListValidateBeforeCall(String customerId, String profileId, Long offset, Long limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -495,8 +505,9 @@ private okhttp3.Call getCustomerPaymentInstrumentsListValidateBeforeCall(String
* @param limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20)
* @return PaymentInstrumentList
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PaymentInstrumentList getCustomerPaymentInstrumentsList(String customerId, String profileId, Long offset, Long limit) throws ApiException {
+ public PaymentInstrumentList getCustomerPaymentInstrumentsList(String customerId, String profileId, Long offset, Long limit) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getCustomerPaymentInstrumentsList' STARTED");
ApiResponse resp = getCustomerPaymentInstrumentsListWithHttpInfo(customerId, profileId, offset, limit);
logger.info("CALL TO METHOD 'getCustomerPaymentInstrumentsList' ENDED");
@@ -512,8 +523,9 @@ public PaymentInstrumentList getCustomerPaymentInstrumentsList(String customerId
* @param limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20)
* @return ApiResponse<PaymentInstrumentList>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getCustomerPaymentInstrumentsListWithHttpInfo(String customerId, String profileId, Long offset, Long limit) throws ApiException {
+ public ApiResponse getCustomerPaymentInstrumentsListWithHttpInfo(String customerId, String profileId, Long offset, Long limit) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getCustomerPaymentInstrumentsListValidateBeforeCall(customerId, profileId, offset, limit, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -530,8 +542,9 @@ public ApiResponse getCustomerPaymentInstrumentsListWithH
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getCustomerPaymentInstrumentsListAsync(String customerId, String profileId, Long offset, Long limit, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getCustomerPaymentInstrumentsListAsync(String customerId, String profileId, Long offset, Long limit, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -569,8 +582,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call patchCustomersPaymentInstrumentCall(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call patchCustomersPaymentInstrumentCall(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(patchCustomerPaymentInstrumentRequest, PatchCustomerPaymentInstrumentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -629,7 +643,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call patchCustomersPaymentInstrumentValidateBeforeCall(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call patchCustomersPaymentInstrumentValidateBeforeCall(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -669,8 +683,9 @@ private okhttp3.Call patchCustomersPaymentInstrumentValidateBeforeCall(String cu
* @param ifMatch Contains an ETag value from a GET request to make the request conditional. (optional)
* @return PatchCustomerPaymentInstrumentRequest
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PatchCustomerPaymentInstrumentRequest patchCustomersPaymentInstrument(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch) throws ApiException {
+ public PatchCustomerPaymentInstrumentRequest patchCustomersPaymentInstrument(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'patchCustomersPaymentInstrument' STARTED");
ApiResponse resp = patchCustomersPaymentInstrumentWithHttpInfo(customerId, paymentInstrumentId, patchCustomerPaymentInstrumentRequest, profileId, ifMatch);
logger.info("CALL TO METHOD 'patchCustomersPaymentInstrument' ENDED");
@@ -687,8 +702,9 @@ public PatchCustomerPaymentInstrumentRequest patchCustomersPaymentInstrument(Str
* @param ifMatch Contains an ETag value from a GET request to make the request conditional. (optional)
* @return ApiResponse<PatchCustomerPaymentInstrumentRequest>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse patchCustomersPaymentInstrumentWithHttpInfo(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch) throws ApiException {
+ public ApiResponse patchCustomersPaymentInstrumentWithHttpInfo(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = patchCustomersPaymentInstrumentValidateBeforeCall(customerId, paymentInstrumentId, patchCustomerPaymentInstrumentRequest, profileId, ifMatch, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -706,8 +722,9 @@ public ApiResponse patchCustomersPaymentI
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call patchCustomersPaymentInstrumentAsync(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call patchCustomersPaymentInstrumentAsync(String customerId, String paymentInstrumentId, PatchCustomerPaymentInstrumentRequest patchCustomerPaymentInstrumentRequest, String profileId, String ifMatch, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -743,8 +760,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call postCustomerPaymentInstrumentCall(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call postCustomerPaymentInstrumentCall(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postCustomerPaymentInstrumentRequest, PostCustomerPaymentInstrumentRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -800,7 +818,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call postCustomerPaymentInstrumentValidateBeforeCall(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call postCustomerPaymentInstrumentValidateBeforeCall(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -832,8 +850,9 @@ private okhttp3.Call postCustomerPaymentInstrumentValidateBeforeCall(String cust
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return PostCustomerPaymentInstrumentRequest
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrument(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId) throws ApiException {
+ public PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrument(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'postCustomerPaymentInstrument' STARTED");
ApiResponse resp = postCustomerPaymentInstrumentWithHttpInfo(customerId, postCustomerPaymentInstrumentRequest, profileId);
logger.info("CALL TO METHOD 'postCustomerPaymentInstrument' ENDED");
@@ -848,8 +867,9 @@ public PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrument(String
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return ApiResponse<PostCustomerPaymentInstrumentRequest>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse postCustomerPaymentInstrumentWithHttpInfo(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId) throws ApiException {
+ public ApiResponse postCustomerPaymentInstrumentWithHttpInfo(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = postCustomerPaymentInstrumentValidateBeforeCall(customerId, postCustomerPaymentInstrumentRequest, profileId, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -865,8 +885,9 @@ public ApiResponse postCustomerPaymentInst
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call postCustomerPaymentInstrumentAsync(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call postCustomerPaymentInstrumentAsync(String customerId, PostCustomerPaymentInstrumentRequest postCustomerPaymentInstrumentRequest, String profileId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/CustomerShippingAddressApi.java b/src/main/java/Api/CustomerShippingAddressApi.java
index 7373d29b7..dfbf1467c 100644
--- a/src/main/java/Api/CustomerShippingAddressApi.java
+++ b/src/main/java/Api/CustomerShippingAddressApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -81,8 +82,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call deleteCustomerShippingAddressCall(String customerId, String shippingAddressId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call deleteCustomerShippingAddressCall(String customerId, String shippingAddressId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("DELETE".equalsIgnoreCase("POST")) {
@@ -142,7 +144,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call deleteCustomerShippingAddressValidateBeforeCall(String customerId, String shippingAddressId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call deleteCustomerShippingAddressValidateBeforeCall(String customerId, String shippingAddressId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -173,8 +175,9 @@ private okhttp3.Call deleteCustomerShippingAddressValidateBeforeCall(String cust
* @param shippingAddressId The Id of a shipping address. (required)
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public void deleteCustomerShippingAddress(String customerId, String shippingAddressId, String profileId) throws ApiException {
+ public void deleteCustomerShippingAddress(String customerId, String shippingAddressId, String profileId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'deleteCustomerShippingAddress' STARTED");
deleteCustomerShippingAddressWithHttpInfo(customerId, shippingAddressId, profileId);
@@ -188,8 +191,9 @@ public void deleteCustomerShippingAddress(String customerId, String shippingAddr
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return ApiResponse<Void>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse deleteCustomerShippingAddressWithHttpInfo(String customerId, String shippingAddressId, String profileId) throws ApiException {
+ public ApiResponse deleteCustomerShippingAddressWithHttpInfo(String customerId, String shippingAddressId, String profileId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = deleteCustomerShippingAddressValidateBeforeCall(customerId, shippingAddressId, profileId, null, null);
return apiClient.execute(call);
@@ -204,8 +208,9 @@ public ApiResponse deleteCustomerShippingAddressWithHttpInfo(String custom
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call deleteCustomerShippingAddressAsync(String customerId, String shippingAddressId, String profileId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call deleteCustomerShippingAddressAsync(String customerId, String shippingAddressId, String profileId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -240,8 +245,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getCustomerShippingAddressCall(String customerId, String shippingAddressId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getCustomerShippingAddressCall(String customerId, String shippingAddressId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -301,7 +307,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getCustomerShippingAddressValidateBeforeCall(String customerId, String shippingAddressId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getCustomerShippingAddressValidateBeforeCall(String customerId, String shippingAddressId, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -333,8 +339,9 @@ private okhttp3.Call getCustomerShippingAddressValidateBeforeCall(String custome
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return PostCustomerShippingAddressRequest
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PostCustomerShippingAddressRequest getCustomerShippingAddress(String customerId, String shippingAddressId, String profileId) throws ApiException {
+ public PostCustomerShippingAddressRequest getCustomerShippingAddress(String customerId, String shippingAddressId, String profileId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getCustomerShippingAddress' STARTED");
ApiResponse resp = getCustomerShippingAddressWithHttpInfo(customerId, shippingAddressId, profileId);
logger.info("CALL TO METHOD 'getCustomerShippingAddress' ENDED");
@@ -349,8 +356,9 @@ public PostCustomerShippingAddressRequest getCustomerShippingAddress(String cust
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return ApiResponse<PostCustomerShippingAddressRequest>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getCustomerShippingAddressWithHttpInfo(String customerId, String shippingAddressId, String profileId) throws ApiException {
+ public ApiResponse getCustomerShippingAddressWithHttpInfo(String customerId, String shippingAddressId, String profileId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getCustomerShippingAddressValidateBeforeCall(customerId, shippingAddressId, profileId, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -366,8 +374,9 @@ public ApiResponse getCustomerShippingAddres
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getCustomerShippingAddressAsync(String customerId, String shippingAddressId, String profileId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getCustomerShippingAddressAsync(String customerId, String shippingAddressId, String profileId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -404,8 +413,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getCustomerShippingAddressesListCall(String customerId, String profileId, Long offset, Long limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call getCustomerShippingAddressesListCall(String customerId, String profileId, Long offset, Long limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = null;
if ("GET".equalsIgnoreCase("POST")) {
@@ -468,7 +478,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call getCustomerShippingAddressesListValidateBeforeCall(String customerId, String profileId, Long offset, Long limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call getCustomerShippingAddressesListValidateBeforeCall(String customerId, String profileId, Long offset, Long limit, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -495,8 +505,9 @@ private okhttp3.Call getCustomerShippingAddressesListValidateBeforeCall(String c
* @param limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20)
* @return ShippingAddressListForCustomer
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ShippingAddressListForCustomer getCustomerShippingAddressesList(String customerId, String profileId, Long offset, Long limit) throws ApiException {
+ public ShippingAddressListForCustomer getCustomerShippingAddressesList(String customerId, String profileId, Long offset, Long limit) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'getCustomerShippingAddressesList' STARTED");
ApiResponse resp = getCustomerShippingAddressesListWithHttpInfo(customerId, profileId, offset, limit);
logger.info("CALL TO METHOD 'getCustomerShippingAddressesList' ENDED");
@@ -512,8 +523,9 @@ public ShippingAddressListForCustomer getCustomerShippingAddressesList(String cu
* @param limit The maximum number that can be returned in the array starting from the offset record in zero-based dataset. Default is 20, maximum is 100. (optional, default to 20)
* @return ApiResponse<ShippingAddressListForCustomer>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse getCustomerShippingAddressesListWithHttpInfo(String customerId, String profileId, Long offset, Long limit) throws ApiException {
+ public ApiResponse getCustomerShippingAddressesListWithHttpInfo(String customerId, String profileId, Long offset, Long limit) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = getCustomerShippingAddressesListValidateBeforeCall(customerId, profileId, offset, limit, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -530,8 +542,9 @@ public ApiResponse getCustomerShippingAddressesL
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call getCustomerShippingAddressesListAsync(String customerId, String profileId, Long offset, Long limit, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call getCustomerShippingAddressesListAsync(String customerId, String profileId, Long offset, Long limit, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -569,8 +582,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call patchCustomersShippingAddressCall(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call patchCustomersShippingAddressCall(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(patchCustomerShippingAddressRequest, PatchCustomerShippingAddressRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -629,7 +643,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call patchCustomersShippingAddressValidateBeforeCall(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call patchCustomersShippingAddressValidateBeforeCall(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -669,8 +683,9 @@ private okhttp3.Call patchCustomersShippingAddressValidateBeforeCall(String cust
* @param ifMatch Contains an ETag value from a GET request to make the request conditional. (optional)
* @return PatchCustomerShippingAddressRequest
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PatchCustomerShippingAddressRequest patchCustomersShippingAddress(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch) throws ApiException {
+ public PatchCustomerShippingAddressRequest patchCustomersShippingAddress(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'patchCustomersShippingAddress' STARTED");
ApiResponse resp = patchCustomersShippingAddressWithHttpInfo(customerId, shippingAddressId, patchCustomerShippingAddressRequest, profileId, ifMatch);
logger.info("CALL TO METHOD 'patchCustomersShippingAddress' ENDED");
@@ -687,8 +702,9 @@ public PatchCustomerShippingAddressRequest patchCustomersShippingAddress(String
* @param ifMatch Contains an ETag value from a GET request to make the request conditional. (optional)
* @return ApiResponse<PatchCustomerShippingAddressRequest>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse patchCustomersShippingAddressWithHttpInfo(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch) throws ApiException {
+ public ApiResponse patchCustomersShippingAddressWithHttpInfo(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = patchCustomersShippingAddressValidateBeforeCall(customerId, shippingAddressId, patchCustomerShippingAddressRequest, profileId, ifMatch, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -706,8 +722,9 @@ public ApiResponse patchCustomersShippingAd
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call patchCustomersShippingAddressAsync(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call patchCustomersShippingAddressAsync(String customerId, String shippingAddressId, PatchCustomerShippingAddressRequest patchCustomerShippingAddressRequest, String profileId, String ifMatch, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
@@ -743,8 +760,9 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call postCustomerShippingAddressCall(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call postCustomerShippingAddressCall(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(postCustomerShippingAddressRequest, PostCustomerShippingAddressRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -800,7 +818,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call postCustomerShippingAddressValidateBeforeCall(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call postCustomerShippingAddressValidateBeforeCall(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'customerId' is set
if (customerId == null) {
@@ -832,8 +850,9 @@ private okhttp3.Call postCustomerShippingAddressValidateBeforeCall(String custom
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return PostCustomerShippingAddressRequest
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public PostCustomerShippingAddressRequest postCustomerShippingAddress(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId) throws ApiException {
+ public PostCustomerShippingAddressRequest postCustomerShippingAddress(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'postCustomerShippingAddress' STARTED");
ApiResponse resp = postCustomerShippingAddressWithHttpInfo(customerId, postCustomerShippingAddressRequest, profileId);
logger.info("CALL TO METHOD 'postCustomerShippingAddress' ENDED");
@@ -848,8 +867,9 @@ public PostCustomerShippingAddressRequest postCustomerShippingAddress(String cus
* @param profileId The Id of a profile containing user specific TMS configuration. (optional)
* @return ApiResponse<PostCustomerShippingAddressRequest>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse postCustomerShippingAddressWithHttpInfo(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId) throws ApiException {
+ public ApiResponse postCustomerShippingAddressWithHttpInfo(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
okhttp3.Call call = postCustomerShippingAddressValidateBeforeCall(customerId, postCustomerShippingAddressRequest, profileId, null, null);
Type localVarReturnType = new TypeToken(){}.getType();
@@ -865,8 +885,9 @@ public ApiResponse postCustomerShippingAddre
* @param callback The callback to be executed when the API call finishes
* @return The request call
* @throws ApiException If fail to process the API call, e.g. serializing the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call postCustomerShippingAddressAsync(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId, final ApiCallback callback) throws ApiException {
+ public okhttp3.Call postCustomerShippingAddressAsync(String customerId, PostCustomerShippingAddressRequest postCustomerShippingAddressRequest, String profileId, final ApiCallback callback) throws ApiException, ConfigException {
this.apiClient.setComputationStartTime(System.nanoTime());
ProgressResponseBody.ProgressListener progressListener = null;
diff --git a/src/main/java/Api/DecisionManagerApi.java b/src/main/java/Api/DecisionManagerApi.java
index 472292167..840a704e1 100644
--- a/src/main/java/Api/DecisionManagerApi.java
+++ b/src/main/java/Api/DecisionManagerApi.java
@@ -22,6 +22,7 @@
import Invokers.ProgressRequestBody;
import Invokers.ProgressResponseBody;
+import com.cybersource.authsdk.core.ConfigException;
import com.google.gson.reflect.TypeToken;
import java.io.IOException;
@@ -88,8 +89,9 @@ public void setApiClient(ApiClient apiClient) {
* @param progressRequestListener Progress request listener
* @return Call to execute
* @throws ApiException If fail to serialize the request body object
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public okhttp3.Call actionDecisionManagerCaseCall(String id, CaseManagementActionsRequest caseManagementActionsRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ public okhttp3.Call actionDecisionManagerCaseCall(String id, CaseManagementActionsRequest caseManagementActionsRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
SdkTracker sdkTracker = new SdkTracker();
Object localVarPostBody = sdkTracker.insertDeveloperIdTracker(caseManagementActionsRequest, CaseManagementActionsRequest.class.getSimpleName(), apiClient.merchantConfig.getRunEnvironment(), apiClient.merchantConfig.getDefaultDeveloperId());
@@ -143,7 +145,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
}
@SuppressWarnings("rawtypes")
- private okhttp3.Call actionDecisionManagerCaseValidateBeforeCall(String id, CaseManagementActionsRequest caseManagementActionsRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException {
+ private okhttp3.Call actionDecisionManagerCaseValidateBeforeCall(String id, CaseManagementActionsRequest caseManagementActionsRequest, final ProgressResponseBody.ProgressListener progressListener, final ProgressRequestBody.ProgressRequestListener progressRequestListener) throws ApiException, ConfigException {
// verify the required parameter 'id' is set
if (id == null) {
@@ -174,8 +176,9 @@ private okhttp3.Call actionDecisionManagerCaseValidateBeforeCall(String id, Case
* @param caseManagementActionsRequest (required)
* @return InlineResponse2001
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public InlineResponse2001 actionDecisionManagerCase(String id, CaseManagementActionsRequest caseManagementActionsRequest) throws ApiException {
+ public InlineResponse2001 actionDecisionManagerCase(String id, CaseManagementActionsRequest caseManagementActionsRequest) throws ApiException, ConfigException {
logger.info("CALL TO METHOD 'actionDecisionManagerCase' STARTED");
ApiResponse resp = actionDecisionManagerCaseWithHttpInfo(id, caseManagementActionsRequest);
logger.info("CALL TO METHOD 'actionDecisionManagerCase' ENDED");
@@ -189,8 +192,9 @@ public InlineResponse2001 actionDecisionManagerCase(String id, CaseManagementAct
* @param caseManagementActionsRequest (required)
* @return ApiResponse<InlineResponse2001>
* @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
+ * @throws ConfigException If creation of merchant configuration fails in ApiClient
*/
- public ApiResponse actionDecisionManagerCaseWithHttpInfo(String id, CaseManagementActionsRequest caseManagementActionsRequest) throws ApiException {
+ public ApiResponse