Class AbstractPisScaAuthorisationService
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.authorization.pis.AbstractPisScaAuthorisationService
-
- All Implemented Interfaces:
PisScaAuthorisationService,ScaApproachServiceTypeProvider
- Direct Known Subclasses:
DecoupledPisScaAuthorisationService,EmbeddedPisScaAuthorisationService,RedirectPisScaAuthorisationService
public abstract class AbstractPisScaAuthorisationService extends Object implements PisScaAuthorisationService
-
-
Constructor Summary
Constructors Constructor Description AbstractPisScaAuthorisationService()
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.adorsys.psd2.xs2a.service.authorization.ScaApproachServiceTypeProvider
getScaApproachServiceType
-
-
-
-
Method Detail
-
createCommonPaymentAuthorisation
public Optional<Xs2aCreatePisAuthorisationResponse> createCommonPaymentAuthorisation(Xs2aCreateAuthorisationRequest request, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType)
Description copied from interface:PisScaAuthorisationServiceCreates authorisation for a payment- Specified by:
createCommonPaymentAuthorisationin interfacePisScaAuthorisationService- Parameters:
request- create authorisation requestpaymentType- Type of payment- Returns:
- create payment authorisation response
-
updateCommonPaymentPsuData
public Xs2aUpdatePisCommonPaymentPsuDataResponse updateCommonPaymentPsuData(PaymentAuthorisationParameters request)
Description copied from interface:PisScaAuthorisationServiceUpdates authorisation for the payment- Specified by:
updateCommonPaymentPsuDatain interfacePisScaAuthorisationService- Parameters:
request- Provides transporting data when updating consent psu data- Returns:
- update payment authorisation response
-
updateAuthorisation
public void updateAuthorisation(CommonAuthorisationParameters request, AuthorisationProcessorResponse response)
- Specified by:
updateAuthorisationin interfacePisScaAuthorisationService
-
updateCancellationAuthorisation
public void updateCancellationAuthorisation(CommonAuthorisationParameters request, AuthorisationProcessorResponse response)
- Specified by:
updateCancellationAuthorisationin interfacePisScaAuthorisationService
-
createCommonPaymentCancellationAuthorisation
public Optional<Xs2aCreatePisCancellationAuthorisationResponse> createCommonPaymentCancellationAuthorisation(Xs2aCreateAuthorisationRequest createAuthorisationRequest, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType)
Description copied from interface:PisScaAuthorisationServiceCreates authorisation cancellation for the payment- Specified by:
createCommonPaymentCancellationAuthorisationin interfacePisScaAuthorisationService- Parameters:
createAuthorisationRequest- create Authorisation RequestpaymentType- Type of payment- Returns:
- create payment cancellation authorisation response
-
getCancellationAuthorisationSubResources
public Optional<Xs2aPaymentCancellationAuthorisationSubResource> getCancellationAuthorisationSubResources(String paymentId)
Description copied from interface:PisScaAuthorisationServiceGets authorisation cancellation sub resources- Specified by:
getCancellationAuthorisationSubResourcesin interfacePisScaAuthorisationService- Parameters:
paymentId- ASPSP identifier of a payment- Returns:
- authorisation cancellation sub resources
-
updateCommonPaymentCancellationPsuData
public Xs2aUpdatePisCommonPaymentPsuDataResponse updateCommonPaymentCancellationPsuData(PaymentAuthorisationParameters request)
Description copied from interface:PisScaAuthorisationServiceUpdates cancellation authorisation for the payment- Specified by:
updateCommonPaymentCancellationPsuDatain interfacePisScaAuthorisationService- Parameters:
request- Provides transporting data when updating payment psu data- Returns:
- update consent authorisation response
-
getAuthorisationSubResources
public Optional<Xs2aAuthorisationSubResources> getAuthorisationSubResources(String paymentId)
Description copied from interface:PisScaAuthorisationServiceGets authorisation sub resources- Specified by:
getAuthorisationSubResourcesin interfacePisScaAuthorisationService- Parameters:
paymentId- ASPSP identifier of a payment- Returns:
- authorisation sub resources
-
getAuthorisationScaStatus
public Optional<de.adorsys.psd2.xs2a.core.sca.ScaStatus> getAuthorisationScaStatus(String paymentId, String authorisationId)
Description copied from interface:PisScaAuthorisationServiceGets SCA status of authorisation- Specified by:
getAuthorisationScaStatusin interfacePisScaAuthorisationService- Parameters:
paymentId- ASPSP identifier of the payment, associated with the authorisationauthorisationId- authorisation identifier- Returns:
- SCA status
-
getCancellationAuthorisationScaStatus
public Optional<de.adorsys.psd2.xs2a.core.sca.ScaStatus> getCancellationAuthorisationScaStatus(String paymentId, String authorisationId)
Description copied from interface:PisScaAuthorisationServiceGets SCA status of cancellation authorisation- Specified by:
getCancellationAuthorisationScaStatusin interfacePisScaAuthorisationService- Parameters:
paymentId- ASPSP identifier of the payment, associated with the authorisationauthorisationId- authorisation identifier- Returns:
- SCA status
-
-