Class PisAuthorisationProcessorServiceImpl
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.authorization.processor.service.PisAuthorisationProcessorServiceImpl
-
- All Implemented Interfaces:
AuthorisationProcessorService
@Service public class PisAuthorisationProcessorServiceImpl extends Object
-
-
Constructor Summary
Constructors Constructor Description PisAuthorisationProcessorServiceImpl(List<PisScaAuthorisationService> services, Xs2aToSpiPaymentMapper xs2aToSpiPaymentMapper, PisExecutePaymentService pisExecutePaymentService, PisAspspDataService pisAspspDataService, Xs2aPisCommonPaymentMapper xs2aPisCommonPaymentMapper, SpiContextDataProvider spiContextDataProvider, SpiErrorMapper spiErrorMapper, SpiAspspConsentDataProviderFactory aspspConsentDataProviderFactory, Xs2aUpdatePaymentAfterSpiService updatePaymentAfterSpiService, Xs2aAuthorisationService xs2aAuthorisationService, Xs2aPisCommonPaymentService xs2aPisCommonPaymentService, de.adorsys.psd2.xs2a.spi.service.PaymentAuthorisationSpi paymentAuthorisationSpi, PisCommonDecoupledService pisCommonDecoupledService, Xs2aToSpiPsuDataMapper xs2aToSpiPsuDataMapper, de.adorsys.psd2.xs2a.spi.service.CurrencyConversionInfoSpi currencyConversionInfoSpi, SpiToXs2aCurrencyConversionInfoMapper spiToXs2aCurrencyConversionInfoMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthorisationProcessorResponsedoScaExempted(AuthorisationProcessorRequest authorisationProcessorRequest)Contains business logic to perform at the `exempted` status of authorisationAuthorisationProcessorResponsedoScaFailed(AuthorisationProcessorRequest authorisationProcessorRequest)Contains business logic to perform at the `failed` status of authorisationAuthorisationProcessorResponsedoScaFinalised(AuthorisationProcessorRequest authorisationProcessorRequest)Contains business logic to perform at the `finalised` status of authorisationAuthorisationProcessorResponsedoScaMethodSelected(AuthorisationProcessorRequest authorisationProcessorRequest)Contains business logic to perform at the `scaMethodSelected` status of authorisationAuthorisationProcessorResponsedoScaPsuAuthenticated(AuthorisationProcessorRequest authorisationProcessorRequest)Contains business logic to perform at the `psuAuthenticated` status of authorisationAuthorisationProcessorResponsedoScaPsuIdentified(AuthorisationProcessorRequest authorisationProcessorRequest)Contains business logic to perform at the `psuIdentified` status of authorisationAuthorisationProcessorResponsedoScaReceived(AuthorisationProcessorRequest authorisationProcessorRequest)Contains business logic to perform at the `received` status of authorisationAuthorisationProcessorResponsedoScaStarted(AuthorisationProcessorRequest authorisationProcessorRequest)Contains business logic to perform at the `started` status of authorisationprotected de.adorsys.psd2.xs2a.spi.service.SpiPaymentgetSpiPayment(String encryptedPaymentId)voidupdateAuthorisation(AuthorisationProcessorRequest request, AuthorisationProcessorResponse response)Updates authorisation in the CMS after each successful authorisation step execution
-
-
-
Constructor Detail
-
PisAuthorisationProcessorServiceImpl
public PisAuthorisationProcessorServiceImpl(List<PisScaAuthorisationService> services, Xs2aToSpiPaymentMapper xs2aToSpiPaymentMapper, PisExecutePaymentService pisExecutePaymentService, PisAspspDataService pisAspspDataService, Xs2aPisCommonPaymentMapper xs2aPisCommonPaymentMapper, SpiContextDataProvider spiContextDataProvider, SpiErrorMapper spiErrorMapper, SpiAspspConsentDataProviderFactory aspspConsentDataProviderFactory, Xs2aUpdatePaymentAfterSpiService updatePaymentAfterSpiService, Xs2aAuthorisationService xs2aAuthorisationService, Xs2aPisCommonPaymentService xs2aPisCommonPaymentService, de.adorsys.psd2.xs2a.spi.service.PaymentAuthorisationSpi paymentAuthorisationSpi, PisCommonDecoupledService pisCommonDecoupledService, Xs2aToSpiPsuDataMapper xs2aToSpiPsuDataMapper, de.adorsys.psd2.xs2a.spi.service.CurrencyConversionInfoSpi currencyConversionInfoSpi, SpiToXs2aCurrencyConversionInfoMapper spiToXs2aCurrencyConversionInfoMapper)
-
-
Method Detail
-
updateAuthorisation
public void updateAuthorisation(AuthorisationProcessorRequest request, AuthorisationProcessorResponse response)
Description copied from interface:AuthorisationProcessorServiceUpdates authorisation in the CMS after each successful authorisation step execution- Parameters:
request- the request object, containing incoming data from controller and authorisation data from CMSresponse-AuthorisationProcessorResponsethe response object
-
doScaReceived
public AuthorisationProcessorResponse doScaReceived(AuthorisationProcessorRequest authorisationProcessorRequest)
Description copied from interface:AuthorisationProcessorServiceContains business logic to perform at the `received` status of authorisation- Parameters:
authorisationProcessorRequest- the request object, containing incoming data from controller and authorisation data from CMS- Returns:
- the result object, containing the successful result of authorisation or the error response
-
doScaExempted
public AuthorisationProcessorResponse doScaExempted(AuthorisationProcessorRequest authorisationProcessorRequest)
Description copied from interface:AuthorisationProcessorServiceContains business logic to perform at the `exempted` status of authorisation- Specified by:
doScaExemptedin interfaceAuthorisationProcessorService- Parameters:
authorisationProcessorRequest- the request object, containing incoming data from controller and authorisation data from CMS- Returns:
- the result object, containing the successful result of authorisation or the error response
-
doScaPsuIdentified
public AuthorisationProcessorResponse doScaPsuIdentified(AuthorisationProcessorRequest authorisationProcessorRequest)
Description copied from interface:AuthorisationProcessorServiceContains business logic to perform at the `psuIdentified` status of authorisation- Parameters:
authorisationProcessorRequest- the request object, containing incoming data from controller and authorisation data from CMS- Returns:
- the result object, containing the successful result of authorisation or the error response
-
doScaFinalised
public AuthorisationProcessorResponse doScaFinalised(AuthorisationProcessorRequest authorisationProcessorRequest)
Description copied from interface:AuthorisationProcessorServiceContains business logic to perform at the `finalised` status of authorisation- Parameters:
authorisationProcessorRequest- the request object, containing incoming data from controller and authorisation data from CMS- Returns:
- the result object, containing the successful result of authorisation or the error response
-
doScaPsuAuthenticated
public AuthorisationProcessorResponse doScaPsuAuthenticated(AuthorisationProcessorRequest authorisationProcessorRequest)
Description copied from interface:AuthorisationProcessorServiceContains business logic to perform at the `psuAuthenticated` status of authorisation- Parameters:
authorisationProcessorRequest- the request object, containing incoming data from controller and authorisation data from CMS- Returns:
- the result object, containing the successful result of authorisation or the error response
-
doScaMethodSelected
public AuthorisationProcessorResponse doScaMethodSelected(AuthorisationProcessorRequest authorisationProcessorRequest)
Description copied from interface:AuthorisationProcessorServiceContains business logic to perform at the `scaMethodSelected` status of authorisation- Parameters:
authorisationProcessorRequest- the request object, containing incoming data from controller and authorisation data from CMS- Returns:
- the result object, containing the successful result of authorisation or the error response
-
getSpiPayment
protected de.adorsys.psd2.xs2a.spi.service.SpiPayment getSpiPayment(String encryptedPaymentId)
-
doScaStarted
public AuthorisationProcessorResponse doScaStarted(AuthorisationProcessorRequest authorisationProcessorRequest)
Description copied from interface:AuthorisationProcessorServiceContains business logic to perform at the `started` status of authorisation- Specified by:
doScaStartedin interfaceAuthorisationProcessorService- Parameters:
authorisationProcessorRequest- the request object, containing incoming data from controller and authorisation data from CMS- Returns:
- the result object, containing the successful result of authorisation or the error response
-
doScaFailed
public AuthorisationProcessorResponse doScaFailed(AuthorisationProcessorRequest authorisationProcessorRequest)
Description copied from interface:AuthorisationProcessorServiceContains business logic to perform at the `failed` status of authorisation- Specified by:
doScaFailedin interfaceAuthorisationProcessorService- Parameters:
authorisationProcessorRequest- the request object, containing incoming data from controller and authorisation data from CMS- Returns:
- the result object, containing the successful result of authorisation or the error response
-
-