Skip to content

Commit 5304562

Browse files
committed
Reverting change to Exception type
1 parent 215accf commit 5304562

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+198
-198
lines changed

Api/AsymmetricKeyManagementApi.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ public ApiResponse< KmsV2KeysAsymPost201Response > CreateP12KeysWithHttpInfo (Cr
379379

380380
if (ExceptionFactory != null)
381381
{
382-
ApiException exception = (ApiException) ExceptionFactory("CreateP12Keys", localVarResponse);
382+
Exception exception = ExceptionFactory("CreateP12Keys", localVarResponse);
383383
if (exception != null)
384384
{
385385
logger.Error($"Exception : {exception.Message}");
@@ -478,7 +478,7 @@ public async System.Threading.Tasks.Task<ApiResponse<KmsV2KeysAsymPost201Respons
478478

479479
if (ExceptionFactory != null)
480480
{
481-
ApiException exception = (ApiException) ExceptionFactory("CreateP12Keys", localVarResponse);
481+
Exception exception = ExceptionFactory("CreateP12Keys", localVarResponse);
482482
if (exception != null)
483483
{
484484
logger.Error($"Exception : {exception.Message}");
@@ -575,7 +575,7 @@ public ApiResponse< KmsV2KeysAsymDeletesPost200Response > DeleteBulkP12KeysWithH
575575

576576
if (ExceptionFactory != null)
577577
{
578-
ApiException exception = (ApiException) ExceptionFactory("DeleteBulkP12Keys", localVarResponse);
578+
Exception exception = ExceptionFactory("DeleteBulkP12Keys", localVarResponse);
579579
if (exception != null)
580580
{
581581
logger.Error($"Exception : {exception.Message}");
@@ -674,7 +674,7 @@ public async System.Threading.Tasks.Task<ApiResponse<KmsV2KeysAsymDeletesPost200
674674

675675
if (ExceptionFactory != null)
676676
{
677-
ApiException exception = (ApiException) ExceptionFactory("DeleteBulkP12Keys", localVarResponse);
677+
Exception exception = ExceptionFactory("DeleteBulkP12Keys", localVarResponse);
678678
if (exception != null)
679679
{
680680
logger.Error($"Exception : {exception.Message}");
@@ -767,7 +767,7 @@ public ApiResponse< KmsV2KeysAsymGet200Response > GetP12KeyDetailsWithHttpInfo (
767767

768768
if (ExceptionFactory != null)
769769
{
770-
ApiException exception = (ApiException) ExceptionFactory("GetP12KeyDetails", localVarResponse);
770+
Exception exception = ExceptionFactory("GetP12KeyDetails", localVarResponse);
771771
if (exception != null)
772772
{
773773
logger.Error($"Exception : {exception.Message}");
@@ -862,7 +862,7 @@ public async System.Threading.Tasks.Task<ApiResponse<KmsV2KeysAsymGet200Response
862862

863863
if (ExceptionFactory != null)
864864
{
865-
ApiException exception = (ApiException) ExceptionFactory("GetP12KeyDetails", localVarResponse);
865+
Exception exception = ExceptionFactory("GetP12KeyDetails", localVarResponse);
866866
if (exception != null)
867867
{
868868
logger.Error($"Exception : {exception.Message}");

Api/CaptureApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public ApiResponse< PtsV2PaymentsCapturesPost201Response > CapturePaymentWithHtt
312312

313313
if (ExceptionFactory != null)
314314
{
315-
ApiException exception = (ApiException) ExceptionFactory("CapturePayment", localVarResponse);
315+
Exception exception = ExceptionFactory("CapturePayment", localVarResponse);
316316
if (exception != null)
317317
{
318318
logger.Error($"Exception : {exception.Message}");
@@ -424,7 +424,7 @@ public async System.Threading.Tasks.Task<ApiResponse<PtsV2PaymentsCapturesPost20
424424

425425
if (ExceptionFactory != null)
426426
{
427-
ApiException exception = (ApiException) ExceptionFactory("CapturePayment", localVarResponse);
427+
Exception exception = ExceptionFactory("CapturePayment", localVarResponse);
428428
if (exception != null)
429429
{
430430
logger.Error($"Exception : {exception.Message}");

Api/ChargebackDetailsApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public ApiResponse< ReportingV3ChargebackDetailsGet200Response > GetChargebackDe
320320

321321
if (ExceptionFactory != null)
322322
{
323-
ApiException exception = (ApiException) ExceptionFactory("GetChargebackDetails", localVarResponse);
323+
Exception exception = ExceptionFactory("GetChargebackDetails", localVarResponse);
324324
if (exception != null)
325325
{
326326
logger.Error($"Exception : {exception.Message}");
@@ -436,7 +436,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ChargebackDetail
436436

437437
if (ExceptionFactory != null)
438438
{
439-
ApiException exception = (ApiException) ExceptionFactory("GetChargebackDetails", localVarResponse);
439+
Exception exception = ExceptionFactory("GetChargebackDetails", localVarResponse);
440440
if (exception != null)
441441
{
442442
logger.Error($"Exception : {exception.Message}");

Api/ChargebackSummariesApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public ApiResponse< ReportingV3ChargebackSummariesGet200Response > GetChargeback
320320

321321
if (ExceptionFactory != null)
322322
{
323-
ApiException exception = (ApiException) ExceptionFactory("GetChargebackSummaries", localVarResponse);
323+
Exception exception = ExceptionFactory("GetChargebackSummaries", localVarResponse);
324324
if (exception != null)
325325
{
326326
logger.Error($"Exception : {exception.Message}");
@@ -436,7 +436,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ChargebackSummar
436436

437437
if (ExceptionFactory != null)
438438
{
439-
ApiException exception = (ApiException) ExceptionFactory("GetChargebackSummaries", localVarResponse);
439+
Exception exception = ExceptionFactory("GetChargebackSummaries", localVarResponse);
440440
if (exception != null)
441441
{
442442
logger.Error($"Exception : {exception.Message}");

Api/ConversionDetailsApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ public ApiResponse< ReportingV3ConversionDetailsGet200Response > GetConversionDe
320320

321321
if (ExceptionFactory != null)
322322
{
323-
ApiException exception = (ApiException) ExceptionFactory("GetConversionDetail", localVarResponse);
323+
Exception exception = ExceptionFactory("GetConversionDetail", localVarResponse);
324324
if (exception != null)
325325
{
326326
logger.Error($"Exception : {exception.Message}");
@@ -436,7 +436,7 @@ public async System.Threading.Tasks.Task<ApiResponse<ReportingV3ConversionDetail
436436

437437
if (ExceptionFactory != null)
438438
{
439-
ApiException exception = (ApiException) ExceptionFactory("GetConversionDetail", localVarResponse);
439+
Exception exception = ExceptionFactory("GetConversionDetail", localVarResponse);
440440
if (exception != null)
441441
{
442442
logger.Error($"Exception : {exception.Message}");

Api/CreditApi.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ public ApiResponse< PtsV2CreditsPost201Response > CreateCreditWithHttpInfo (Crea
295295

296296
if (ExceptionFactory != null)
297297
{
298-
ApiException exception = (ApiException) ExceptionFactory("CreateCredit", localVarResponse);
298+
Exception exception = ExceptionFactory("CreateCredit", localVarResponse);
299299
if (exception != null)
300300
{
301301
logger.Error($"Exception : {exception.Message}");
@@ -394,7 +394,7 @@ public async System.Threading.Tasks.Task<ApiResponse<PtsV2CreditsPost201Response
394394

395395
if (ExceptionFactory != null)
396396
{
397-
ApiException exception = (ApiException) ExceptionFactory("CreateCredit", localVarResponse);
397+
Exception exception = ExceptionFactory("CreateCredit", localVarResponse);
398398
if (exception != null)
399399
{
400400
logger.Error($"Exception : {exception.Message}");

Api/CustomerApi.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public ApiResponse<Object> DeleteCustomerWithHttpInfo (string customerTokenId, s
444444

445445
if (ExceptionFactory != null)
446446
{
447-
ApiException exception = (ApiException) ExceptionFactory("DeleteCustomer", localVarResponse);
447+
Exception exception = ExceptionFactory("DeleteCustomer", localVarResponse);
448448
if (exception != null)
449449
{
450450
logger.Error($"Exception : {exception.Message}");
@@ -543,7 +543,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteCustomerAsyn
543543

544544
if (ExceptionFactory != null)
545545
{
546-
ApiException exception = (ApiException) ExceptionFactory("DeleteCustomer", localVarResponse);
546+
Exception exception = ExceptionFactory("DeleteCustomer", localVarResponse);
547547
if (exception != null)
548548
{
549549
logger.Error($"Exception : {exception.Message}");
@@ -643,7 +643,7 @@ public ApiResponse< TmsV2CustomersResponse > GetCustomerWithHttpInfo (string cus
643643

644644
if (ExceptionFactory != null)
645645
{
646-
ApiException exception = (ApiException) ExceptionFactory("GetCustomer", localVarResponse);
646+
Exception exception = ExceptionFactory("GetCustomer", localVarResponse);
647647
if (exception != null)
648648
{
649649
logger.Error($"Exception : {exception.Message}");
@@ -744,7 +744,7 @@ public async System.Threading.Tasks.Task<ApiResponse<TmsV2CustomersResponse>> Ge
744744

745745
if (ExceptionFactory != null)
746746
{
747-
ApiException exception = (ApiException) ExceptionFactory("GetCustomer", localVarResponse);
747+
Exception exception = ExceptionFactory("GetCustomer", localVarResponse);
748748
if (exception != null)
749749
{
750750
logger.Error($"Exception : {exception.Message}");
@@ -866,7 +866,7 @@ public ApiResponse< TmsV2CustomersResponse > PatchCustomerWithHttpInfo (string c
866866

867867
if (ExceptionFactory != null)
868868
{
869-
ApiException exception = (ApiException) ExceptionFactory("PatchCustomer", localVarResponse);
869+
Exception exception = ExceptionFactory("PatchCustomer", localVarResponse);
870870
if (exception != null)
871871
{
872872
logger.Error($"Exception : {exception.Message}");
@@ -990,7 +990,7 @@ public async System.Threading.Tasks.Task<ApiResponse<TmsV2CustomersResponse>> Pa
990990

991991
if (ExceptionFactory != null)
992992
{
993-
ApiException exception = (ApiException) ExceptionFactory("PatchCustomer", localVarResponse);
993+
Exception exception = ExceptionFactory("PatchCustomer", localVarResponse);
994994
if (exception != null)
995995
{
996996
logger.Error($"Exception : {exception.Message}");
@@ -1093,7 +1093,7 @@ public ApiResponse< TmsV2CustomersResponse > PostCustomerWithHttpInfo (PostCusto
10931093

10941094
if (ExceptionFactory != null)
10951095
{
1096-
ApiException exception = (ApiException) ExceptionFactory("PostCustomer", localVarResponse);
1096+
Exception exception = ExceptionFactory("PostCustomer", localVarResponse);
10971097
if (exception != null)
10981098
{
10991099
logger.Error($"Exception : {exception.Message}");
@@ -1198,7 +1198,7 @@ public async System.Threading.Tasks.Task<ApiResponse<TmsV2CustomersResponse>> Po
11981198

11991199
if (ExceptionFactory != null)
12001200
{
1201-
ApiException exception = (ApiException) ExceptionFactory("PostCustomer", localVarResponse);
1201+
Exception exception = ExceptionFactory("PostCustomer", localVarResponse);
12021202
if (exception != null)
12031203
{
12041204
logger.Error($"Exception : {exception.Message}");

Api/CustomerPaymentInstrumentApi.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ public ApiResponse<Object> DeleteCustomerPaymentInstrumentWithHttpInfo (string c
527527

528528
if (ExceptionFactory != null)
529529
{
530-
ApiException exception = (ApiException) ExceptionFactory("DeleteCustomerPaymentInstrument", localVarResponse);
530+
Exception exception = ExceptionFactory("DeleteCustomerPaymentInstrument", localVarResponse);
531531
if (exception != null)
532532
{
533533
logger.Error($"Exception : {exception.Message}");
@@ -639,7 +639,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Object>> DeleteCustomerPaym
639639

640640
if (ExceptionFactory != null)
641641
{
642-
ApiException exception = (ApiException) ExceptionFactory("DeleteCustomerPaymentInstrument", localVarResponse);
642+
Exception exception = ExceptionFactory("DeleteCustomerPaymentInstrument", localVarResponse);
643643
if (exception != null)
644644
{
645645
logger.Error($"Exception : {exception.Message}");
@@ -752,7 +752,7 @@ public ApiResponse< Tmsv2customersEmbeddedDefaultPaymentInstrument > GetCustomer
752752

753753
if (ExceptionFactory != null)
754754
{
755-
ApiException exception = (ApiException) ExceptionFactory("GetCustomerPaymentInstrument", localVarResponse);
755+
Exception exception = ExceptionFactory("GetCustomerPaymentInstrument", localVarResponse);
756756
if (exception != null)
757757
{
758758
logger.Error($"Exception : {exception.Message}");
@@ -866,7 +866,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Tmsv2customersEmbeddedDefau
866866

867867
if (ExceptionFactory != null)
868868
{
869-
ApiException exception = (ApiException) ExceptionFactory("GetCustomerPaymentInstrument", localVarResponse);
869+
Exception exception = ExceptionFactory("GetCustomerPaymentInstrument", localVarResponse);
870870
if (exception != null)
871871
{
872872
logger.Error($"Exception : {exception.Message}");
@@ -979,7 +979,7 @@ public ApiResponse< PaymentInstrumentList > GetCustomerPaymentInstrumentsListWit
979979

980980
if (ExceptionFactory != null)
981981
{
982-
ApiException exception = (ApiException) ExceptionFactory("GetCustomerPaymentInstrumentsList", localVarResponse);
982+
Exception exception = ExceptionFactory("GetCustomerPaymentInstrumentsList", localVarResponse);
983983
if (exception != null)
984984
{
985985
logger.Error($"Exception : {exception.Message}");
@@ -1094,7 +1094,7 @@ public async System.Threading.Tasks.Task<ApiResponse<PaymentInstrumentList>> Get
10941094

10951095
if (ExceptionFactory != null)
10961096
{
1097-
ApiException exception = (ApiException) ExceptionFactory("GetCustomerPaymentInstrumentsList", localVarResponse);
1097+
Exception exception = ExceptionFactory("GetCustomerPaymentInstrumentsList", localVarResponse);
10981098
if (exception != null)
10991099
{
11001100
logger.Error($"Exception : {exception.Message}");
@@ -1229,7 +1229,7 @@ public ApiResponse< Tmsv2customersEmbeddedDefaultPaymentInstrument > PatchCustom
12291229

12301230
if (ExceptionFactory != null)
12311231
{
1232-
ApiException exception = (ApiException) ExceptionFactory("PatchCustomersPaymentInstrument", localVarResponse);
1232+
Exception exception = ExceptionFactory("PatchCustomersPaymentInstrument", localVarResponse);
12331233
if (exception != null)
12341234
{
12351235
logger.Error($"Exception : {exception.Message}");
@@ -1366,7 +1366,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Tmsv2customersEmbeddedDefau
13661366

13671367
if (ExceptionFactory != null)
13681368
{
1369-
ApiException exception = (ApiException) ExceptionFactory("PatchCustomersPaymentInstrument", localVarResponse);
1369+
Exception exception = ExceptionFactory("PatchCustomersPaymentInstrument", localVarResponse);
13701370
if (exception != null)
13711371
{
13721372
logger.Error($"Exception : {exception.Message}");
@@ -1482,7 +1482,7 @@ public ApiResponse< Tmsv2customersEmbeddedDefaultPaymentInstrument > PostCustome
14821482

14831483
if (ExceptionFactory != null)
14841484
{
1485-
ApiException exception = (ApiException) ExceptionFactory("PostCustomerPaymentInstrument", localVarResponse);
1485+
Exception exception = ExceptionFactory("PostCustomerPaymentInstrument", localVarResponse);
14861486
if (exception != null)
14871487
{
14881488
logger.Error($"Exception : {exception.Message}");
@@ -1600,7 +1600,7 @@ public async System.Threading.Tasks.Task<ApiResponse<Tmsv2customersEmbeddedDefau
16001600

16011601
if (ExceptionFactory != null)
16021602
{
1603-
ApiException exception = (ApiException) ExceptionFactory("PostCustomerPaymentInstrument", localVarResponse);
1603+
Exception exception = ExceptionFactory("PostCustomerPaymentInstrument", localVarResponse);
16041604
if (exception != null)
16051605
{
16061606
logger.Error($"Exception : {exception.Message}");

0 commit comments

Comments
 (0)