@@ -96,7 +96,7 @@ public okhttp3.Call addNegativeCall(String type, AddNegativeListRequest addNegat
9696 localVarHeaderParams .put ("Content-Type" , localVarContentType );
9797
9898 if (progressListener != null ) {
99- apiClient .getHttpClient ().networkInterceptors ().add (new okhttp3 .Interceptor () {
99+ apiClient .getHttpClient ().newBuilder ().addNetworkInterceptor (new okhttp3 .Interceptor () {
100100 @ Override
101101 public okhttp3 .Response intercept (okhttp3 .Interceptor .Chain chain ) throws IOException {
102102 okhttp3 .Response originalResponse = chain .proceed (chain .request ());
@@ -229,7 +229,7 @@ public okhttp3.Call createDecisionManagerCaseCall(CreateDecisionManagerCaseReque
229229 localVarHeaderParams .put ("Content-Type" , localVarContentType );
230230
231231 if (progressListener != null ) {
232- apiClient .getHttpClient ().networkInterceptors ().add (new okhttp3 .Interceptor () {
232+ apiClient .getHttpClient ().newBuilder ().addNetworkInterceptor (new okhttp3 .Interceptor () {
233233 @ Override
234234 public okhttp3 .Response intercept (okhttp3 .Interceptor .Chain chain ) throws IOException {
235235 okhttp3 .Response originalResponse = chain .proceed (chain .request ());
@@ -322,15 +322,15 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
322322 return call ;
323323 }
324324 /**
325- * Build call for FraudUpdate
325+ * Build call for fraudUpdate
326326 * @param id Request ID of the transaction that you want to mark as suspect or remove from history. (required)
327327 * @param fraudMarkingActionRequest (required)
328328 * @param progressListener Progress listener
329329 * @param progressRequestListener Progress request listener
330330 * @return Call to execute
331331 * @throws ApiException If fail to serialize the request body object
332332 */
333- public okhttp3 .Call FraudUpdateCall (String id , FraudMarkingActionRequest fraudMarkingActionRequest , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
333+ public okhttp3 .Call fraudUpdateCall (String id , FraudMarkingActionRequest fraudMarkingActionRequest , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
334334 Object localVarPostBody = fraudMarkingActionRequest ;
335335
336336 // create path and map variables
@@ -356,7 +356,7 @@ public okhttp3.Call FraudUpdateCall(String id, FraudMarkingActionRequest fraudMa
356356 localVarHeaderParams .put ("Content-Type" , localVarContentType );
357357
358358 if (progressListener != null ) {
359- apiClient .getHttpClient ().networkInterceptors ().add (new okhttp3 .Interceptor () {
359+ apiClient .getHttpClient ().newBuilder ().addNetworkInterceptor (new okhttp3 .Interceptor () {
360360 @ Override
361361 public okhttp3 .Response intercept (okhttp3 .Interceptor .Chain chain ) throws IOException {
362362 okhttp3 .Response originalResponse = chain .proceed (chain .request ());
@@ -372,20 +372,20 @@ public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain) throws IOExce
372372 }
373373
374374 @ SuppressWarnings ("rawtypes" )
375- private okhttp3 .Call FraudUpdateValidateBeforeCall (String id , FraudMarkingActionRequest fraudMarkingActionRequest , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
375+ private okhttp3 .Call fraudUpdateValidateBeforeCall (String id , FraudMarkingActionRequest fraudMarkingActionRequest , final ProgressResponseBody .ProgressListener progressListener , final ProgressRequestBody .ProgressRequestListener progressRequestListener ) throws ApiException {
376376
377377 // verify the required parameter 'id' is set
378378 if (id == null ) {
379- throw new ApiException ("Missing the required parameter 'id' when calling FraudUpdate (Async)" );
379+ throw new ApiException ("Missing the required parameter 'id' when calling fraudUpdate (Async)" );
380380 }
381381
382382 // verify the required parameter 'fraudMarkingActionRequest' is set
383383 if (fraudMarkingActionRequest == null ) {
384- throw new ApiException ("Missing the required parameter 'fraudMarkingActionRequest' when calling FraudUpdate (Async)" );
384+ throw new ApiException ("Missing the required parameter 'fraudMarkingActionRequest' when calling fraudUpdate (Async)" );
385385 }
386386
387387
388- okhttp3 .Call call = FraudUpdateCall (id , fraudMarkingActionRequest , progressListener , progressRequestListener );
388+ okhttp3 .Call call = fraudUpdateCall (id , fraudMarkingActionRequest , progressListener , progressRequestListener );
389389 return call ;
390390
391391
@@ -402,8 +402,8 @@ private okhttp3.Call FraudUpdateValidateBeforeCall(String id, FraudMarkingAction
402402 * @return RiskV1UpdatePost201Response
403403 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
404404 */
405- public RiskV1UpdatePost201Response FraudUpdate (String id , FraudMarkingActionRequest fraudMarkingActionRequest ) throws ApiException {
406- ApiResponse <RiskV1UpdatePost201Response > resp = FraudUpdateWithHttpInfo (id , fraudMarkingActionRequest );
405+ public RiskV1UpdatePost201Response fraudUpdate (String id , FraudMarkingActionRequest fraudMarkingActionRequest ) throws ApiException {
406+ ApiResponse <RiskV1UpdatePost201Response > resp = fraudUpdateWithHttpInfo (id , fraudMarkingActionRequest );
407407 return resp .getData ();
408408 }
409409
@@ -415,8 +415,8 @@ public RiskV1UpdatePost201Response FraudUpdate(String id, FraudMarkingActionRequ
415415 * @return ApiResponse<RiskV1UpdatePost201Response>
416416 * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body
417417 */
418- public ApiResponse <RiskV1UpdatePost201Response > FraudUpdateWithHttpInfo (String id , FraudMarkingActionRequest fraudMarkingActionRequest ) throws ApiException {
419- okhttp3 .Call call = FraudUpdateValidateBeforeCall (id , fraudMarkingActionRequest , null , null );
418+ public ApiResponse <RiskV1UpdatePost201Response > fraudUpdateWithHttpInfo (String id , FraudMarkingActionRequest fraudMarkingActionRequest ) throws ApiException {
419+ okhttp3 .Call call = fraudUpdateValidateBeforeCall (id , fraudMarkingActionRequest , null , null );
420420 Type localVarReturnType = new TypeToken <RiskV1UpdatePost201Response >(){}.getType ();
421421 return apiClient .execute (call , localVarReturnType );
422422 }
@@ -430,7 +430,7 @@ public ApiResponse<RiskV1UpdatePost201Response> FraudUpdateWithHttpInfo(String i
430430 * @return The request call
431431 * @throws ApiException If fail to process the API call, e.g. serializing the request body object
432432 */
433- public okhttp3 .Call FraudUpdateAsync (String id , FraudMarkingActionRequest fraudMarkingActionRequest , final ApiCallback <RiskV1UpdatePost201Response > callback ) throws ApiException {
433+ public okhttp3 .Call fraudUpdateAsync (String id , FraudMarkingActionRequest fraudMarkingActionRequest , final ApiCallback <RiskV1UpdatePost201Response > callback ) throws ApiException {
434434
435435 ProgressResponseBody .ProgressListener progressListener = null ;
436436 ProgressRequestBody .ProgressRequestListener progressRequestListener = null ;
@@ -451,7 +451,7 @@ public void onRequestProgress(long bytesWritten, long contentLength, boolean don
451451 };
452452 }
453453
454- okhttp3 .Call call = FraudUpdateValidateBeforeCall (id , fraudMarkingActionRequest , progressListener , progressRequestListener );
454+ okhttp3 .Call call = fraudUpdateValidateBeforeCall (id , fraudMarkingActionRequest , progressListener , progressRequestListener );
455455 Type localVarReturnType = new TypeToken <RiskV1UpdatePost201Response >(){}.getType ();
456456 apiClient .executeAsync (call , localVarReturnType , callback );
457457 return call ;
0 commit comments