2222import Invokers .ProgressRequestBody ;
2323import Invokers .ProgressResponseBody ;
2424
25+ import com .cybersource .authsdk .core .ConfigException ;
2526import com .google .gson .reflect .TypeToken ;
2627
2728import java .io .IOException ;
@@ -76,7 +77,7 @@ public void setApiClient(ApiClient apiClient) {
7677 * @return Call to execute
7778 * @throws ApiException If fail to serialize the request body object
7879 */
79- public okhttp3 .Call getBatchReportCall (String batchId , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
80+ public okhttp3 .Call getBatchReportCall (String batchId , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException , ConfigException {
8081 SdkTracker sdkTracker = new SdkTracker ();
8182 Object localVarPostBody = null ;
8283 if ("GET" .equalsIgnoreCase ("POST" )) {
@@ -133,7 +134,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
133134 }
134135
135136 @ SuppressWarnings ("rawtypes" )
136- private okhttp3 .Call getBatchReportValidateBeforeCall (String batchId , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
137+ private okhttp3 .Call getBatchReportValidateBeforeCall (String batchId , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException , ConfigException {
137138
138139 // verify the required parameter 'batchId' is set
139140 if (batchId == null ) {
@@ -158,7 +159,7 @@ private okhttp3.Call getBatchReportValidateBeforeCall(String batchId, final Prog
158159 * @return InlineResponse20011
159160 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
160161 */
161- public InlineResponse20011 getBatchReport (String batchId ) throws ApiException {
162+ public InlineResponse20011 getBatchReport (String batchId ) throws ApiException , ConfigException {
162163 logger .info ("CALL TO METHOD 'getBatchReport' STARTED" );
163164 ApiResponse <InlineResponse20011 > resp = getBatchReportWithHttpInfo (batchId );
164165 logger .info ("CALL TO METHOD 'getBatchReport' ENDED" );
@@ -172,7 +173,7 @@ public InlineResponse20011 getBatchReport(String batchId) throws ApiException {
172173 * @return ApiResponse<InlineResponse20011>
173174 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
174175 */
175- public ApiResponse <InlineResponse20011 > getBatchReportWithHttpInfo (String batchId ) throws ApiException {
176+ public ApiResponse <InlineResponse20011 > getBatchReportWithHttpInfo (String batchId ) throws ApiException , ConfigException {
176177 this .apiClient .setComputationStartTime (System .nanoTime ());
177178 okhttp3 .Call call = getBatchReportValidateBeforeCall (batchId , null , null );
178179 Type localVarReturnType = new TypeToken <InlineResponse20011 >(){}.getType ();
@@ -187,7 +188,7 @@ public ApiResponse<InlineResponse20011> getBatchReportWithHttpInfo(String batchI
187188 * @return The request call
188189 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
189190 */
190- public okhttp3 .Call getBatchReportAsync (String batchId , final ApiCallback <InlineResponse20011 > callback ) throws ApiException {
191+ public okhttp3 .Call getBatchReportAsync (String batchId , final ApiCallback <InlineResponse20011 > callback ) throws ApiException , ConfigException {
191192
192193 this .apiClient .setComputationStartTime (System .nanoTime ());
193194 ProgressResponseBody .ProgressListener progressListener = null ;
@@ -222,7 +223,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
222223 * @return Call to execute
223224 * @throws ApiException If fail to serialize the request body object
224225 */
225- public okhttp3 .Call getBatchStatusCall (String batchId , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
226+ public okhttp3 .Call getBatchStatusCall (String batchId , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException , ConfigException {
226227 SdkTracker sdkTracker = new SdkTracker ();
227228 Object localVarPostBody = null ;
228229 if ("GET" .equalsIgnoreCase ("POST" )) {
@@ -279,7 +280,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
279280 }
280281
281282 @ SuppressWarnings ("rawtypes" )
282- private okhttp3 .Call getBatchStatusValidateBeforeCall (String batchId , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
283+ private okhttp3 .Call getBatchStatusValidateBeforeCall (String batchId , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException , ConfigException {
283284
284285 // verify the required parameter 'batchId' is set
285286 if (batchId == null ) {
@@ -304,7 +305,7 @@ private okhttp3.Call getBatchStatusValidateBeforeCall(String batchId, final Prog
304305 * @return InlineResponse20010
305306 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
306307 */
307- public InlineResponse20010 getBatchStatus (String batchId ) throws ApiException {
308+ public InlineResponse20010 getBatchStatus (String batchId ) throws ApiException , ConfigException {
308309 logger .info ("CALL TO METHOD 'getBatchStatus' STARTED" );
309310 ApiResponse <InlineResponse20010 > resp = getBatchStatusWithHttpInfo (batchId );
310311 logger .info ("CALL TO METHOD 'getBatchStatus' ENDED" );
@@ -318,7 +319,7 @@ public InlineResponse20010 getBatchStatus(String batchId) throws ApiException {
318319 * @return ApiResponse<InlineResponse20010>
319320 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
320321 */
321- public ApiResponse <InlineResponse20010 > getBatchStatusWithHttpInfo (String batchId ) throws ApiException {
322+ public ApiResponse <InlineResponse20010 > getBatchStatusWithHttpInfo (String batchId ) throws ApiException , ConfigException {
322323 this .apiClient .setComputationStartTime (System .nanoTime ());
323324 okhttp3 .Call call = getBatchStatusValidateBeforeCall (batchId , null , null );
324325 Type localVarReturnType = new TypeToken <InlineResponse20010 >(){}.getType ();
@@ -333,7 +334,7 @@ public ApiResponse<InlineResponse20010> getBatchStatusWithHttpInfo(String batchI
333334 * @return The request call
334335 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
335336 */
336- public okhttp3 .Call getBatchStatusAsync (String batchId , final ApiCallback <InlineResponse20010 > callback ) throws ApiException {
337+ public okhttp3 .Call getBatchStatusAsync (String batchId , final ApiCallback <InlineResponse20010 > callback ) throws ApiException , ConfigException {
337338
338339 this .apiClient .setComputationStartTime (System .nanoTime ());
339340 ProgressResponseBody .ProgressListener progressListener = null ;
@@ -371,7 +372,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
371372 * @return Call to execute
372373 * @throws ApiException If fail to serialize the request body object
373374 */
374- public okhttp3 .Call getBatchesListCall (Long offset , Long limit , String fromDate , String toDate , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
375+ public okhttp3 .Call getBatchesListCall (Long offset , Long limit , String fromDate , String toDate , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException , ConfigException {
375376 SdkTracker sdkTracker = new SdkTracker ();
376377 Object localVarPostBody = null ;
377378 if ("GET" .equalsIgnoreCase ("POST" )) {
@@ -435,7 +436,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
435436 }
436437
437438 @ SuppressWarnings ("rawtypes" )
438- private okhttp3 .Call getBatchesListValidateBeforeCall (Long offset , Long limit , String fromDate , String toDate , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
439+ private okhttp3 .Call getBatchesListValidateBeforeCall (Long offset , Long limit , String fromDate , String toDate , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException , ConfigException {
439440
440441
441442 okhttp3 .Call call = getBatchesListCall (offset , limit , fromDate , toDate , progressListener , progressRequestListener );
@@ -457,7 +458,7 @@ private okhttp3.Call getBatchesListValidateBeforeCall(Long offset, Long limit, S
457458 * @return InlineResponse2009
458459 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
459460 */
460- public InlineResponse2009 getBatchesList (Long offset , Long limit , String fromDate , String toDate ) throws ApiException {
461+ public InlineResponse2009 getBatchesList (Long offset , Long limit , String fromDate , String toDate ) throws ApiException , ConfigException {
461462 logger .info ("CALL TO METHOD 'getBatchesList' STARTED" );
462463 ApiResponse <InlineResponse2009 > resp = getBatchesListWithHttpInfo (offset , limit , fromDate , toDate );
463464 logger .info ("CALL TO METHOD 'getBatchesList' ENDED" );
@@ -474,7 +475,7 @@ public InlineResponse2009 getBatchesList(Long offset, Long limit, String fromDat
474475 * @return ApiResponse<InlineResponse2009>
475476 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
476477 */
477- public ApiResponse <InlineResponse2009 > getBatchesListWithHttpInfo (Long offset , Long limit , String fromDate , String toDate ) throws ApiException {
478+ public ApiResponse <InlineResponse2009 > getBatchesListWithHttpInfo (Long offset , Long limit , String fromDate , String toDate ) throws ApiException , ConfigException {
478479 this .apiClient .setComputationStartTime (System .nanoTime ());
479480 okhttp3 .Call call = getBatchesListValidateBeforeCall (offset , limit , fromDate , toDate , null , null );
480481 Type localVarReturnType = new TypeToken <InlineResponse2009 >(){}.getType ();
@@ -492,7 +493,7 @@ public ApiResponse<InlineResponse2009> getBatchesListWithHttpInfo(Long offset, L
492493 * @return The request call
493494 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
494495 */
495- public okhttp3 .Call getBatchesListAsync (Long offset , Long limit , String fromDate , String toDate , final ApiCallback <InlineResponse2009 > callback ) throws ApiException {
496+ public okhttp3 .Call getBatchesListAsync (Long offset , Long limit , String fromDate , String toDate , final ApiCallback <InlineResponse2009 > callback ) throws ApiException , ConfigException {
496497
497498 this .apiClient .setComputationStartTime (System .nanoTime ());
498499 ProgressResponseBody .ProgressListener progressListener = null ;
@@ -527,7 +528,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
527528 * @return Call to execute
528529 * @throws ApiException If fail to serialize the request body object
529530 */
530- public okhttp3 .Call postBatchCall (Body body , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
531+ public okhttp3 .Call postBatchCall (Body body , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException , ConfigException {
531532 SdkTracker sdkTracker = new SdkTracker ();
532533 Object localVarPostBody = sdkTracker .insertDeveloperIdTracker (body , Body .class .getSimpleName (), apiClient .merchantConfig .getRunEnvironment (), apiClient .merchantConfig .getDefaultDeveloperId ());
533534
@@ -580,7 +581,7 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
580581 }
581582
582583 @ SuppressWarnings ("rawtypes" )
583- private okhttp3 .Call postBatchValidateBeforeCall (Body body , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
584+ private okhttp3 .Call postBatchValidateBeforeCall (Body body , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException , ConfigException {
584585
585586 // verify the required parameter 'body' is set
586587 if (body == null ) {
@@ -605,7 +606,7 @@ private okhttp3.Call postBatchValidateBeforeCall(Body body, final ProgressRespon
605606 * @return InlineResponse202
606607 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
607608 */
608- public InlineResponse202 postBatch (Body body ) throws ApiException {
609+ public InlineResponse202 postBatch (Body body ) throws ApiException , ConfigException {
609610 logger .info ("CALL TO METHOD 'postBatch' STARTED" );
610611 ApiResponse <InlineResponse202 > resp = postBatchWithHttpInfo (body );
611612 logger .info ("CALL TO METHOD 'postBatch' ENDED" );
@@ -619,7 +620,7 @@ public InlineResponse202 postBatch(Body body) throws ApiException {
619620 * @return ApiResponse<InlineResponse202>
620621 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
621622 */
622- public ApiResponse <InlineResponse202 > postBatchWithHttpInfo (Body body ) throws ApiException {
623+ public ApiResponse <InlineResponse202 > postBatchWithHttpInfo (Body body ) throws ApiException , ConfigException {
623624 this .apiClient .setComputationStartTime (System .nanoTime ());
624625 okhttp3 .Call call = postBatchValidateBeforeCall (body , null , null );
625626 Type localVarReturnType = new TypeToken <InlineResponse202 >(){}.getType ();
@@ -634,7 +635,7 @@ public ApiResponse<InlineResponse202> postBatchWithHttpInfo(Body body) throws Ap
634635 * @return The request call
635636 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
636637 */
637- public okhttp3 .Call postBatchAsync (Body body , final ApiCallback <InlineResponse202 > callback ) throws ApiException {
638+ public okhttp3 .Call postBatchAsync (Body body , final ApiCallback <InlineResponse202 > callback ) throws ApiException , ConfigException {
638639
639640 this .apiClient .setComputationStartTime (System .nanoTime ());
640641 ProgressResponseBody .ProgressListener progressListener = null ;
0 commit comments