@@ -300,15 +300,7 @@ public Tmsv2customersEmbeddedDefaultPaymentInstrument getCustomerPaymentInstrume
300300 this .apiClient .setComputationStartTime (System .nanoTime ());
301301 ApiResponse <Tmsv2customersEmbeddedDefaultPaymentInstrument > resp = getCustomerPaymentInstrumentWithHttpInfo (customerTokenId , paymentInstrumentTokenId , profileId );
302302 logger .info ("CALL TO METHOD 'getCustomerPaymentInstrument' ENDED" );
303- if (resp != null )
304- {
305- return resp .getData ();
306- }
307- else
308- {
309- logger .error ("CALL TO METHOD 'getCustomerPaymentInstrument' FAILED DUE TO AN EXCEPTION" );
310- return null ;
311- }
303+ return resp .getData ();
312304 }
313305
314306 /**
@@ -455,15 +447,7 @@ public PaymentInstrumentList getCustomerPaymentInstrumentsList(String customerTo
455447 this .apiClient .setComputationStartTime (System .nanoTime ());
456448 ApiResponse <PaymentInstrumentList > resp = getCustomerPaymentInstrumentsListWithHttpInfo (customerTokenId , profileId , offset , limit );
457449 logger .info ("CALL TO METHOD 'getCustomerPaymentInstrumentsList' ENDED" );
458- if (resp != null )
459- {
460- return resp .getData ();
461- }
462- else
463- {
464- logger .error ("CALL TO METHOD 'getCustomerPaymentInstrumentsList' FAILED DUE TO AN EXCEPTION" );
465- return null ;
466- }
450+ return resp .getData ();
467451 }
468452
469453 /**
@@ -625,15 +609,7 @@ public Tmsv2customersEmbeddedDefaultPaymentInstrument patchCustomersPaymentInstr
625609 this .apiClient .setComputationStartTime (System .nanoTime ());
626610 ApiResponse <Tmsv2customersEmbeddedDefaultPaymentInstrument > resp = patchCustomersPaymentInstrumentWithHttpInfo (customerTokenId , paymentInstrumentTokenId , patchCustomerPaymentInstrumentRequest , profileId , ifMatch );
627611 logger .info ("CALL TO METHOD 'patchCustomersPaymentInstrument' ENDED" );
628- if (resp != null )
629- {
630- return resp .getData ();
631- }
632- else
633- {
634- logger .error ("CALL TO METHOD 'patchCustomersPaymentInstrument' FAILED DUE TO AN EXCEPTION" );
635- return null ;
636- }
612+ return resp .getData ();
637613 }
638614
639615 /**
@@ -784,15 +760,7 @@ public Tmsv2customersEmbeddedDefaultPaymentInstrument postCustomerPaymentInstrum
784760 this .apiClient .setComputationStartTime (System .nanoTime ());
785761 ApiResponse <Tmsv2customersEmbeddedDefaultPaymentInstrument > resp = postCustomerPaymentInstrumentWithHttpInfo (customerTokenId , postCustomerPaymentInstrumentRequest , profileId );
786762 logger .info ("CALL TO METHOD 'postCustomerPaymentInstrument' ENDED" );
787- if (resp != null )
788- {
789- return resp .getData ();
790- }
791- else
792- {
793- logger .error ("CALL TO METHOD 'postCustomerPaymentInstrument' FAILED DUE TO AN EXCEPTION" );
794- return null ;
795- }
763+ return resp .getData ();
796764 }
797765
798766 /**
0 commit comments