Class DecoupledPisScaAuthorisationService
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.authorization.pis.DecoupledPisScaAuthorisationService
-
- All Implemented Interfaces:
PisScaAuthorisationService,ScaApproachServiceTypeProvider
@Service public class DecoupledPisScaAuthorisationService extends Object implements PisScaAuthorisationService
-
-
Constructor Summary
Constructors Constructor Description DecoupledPisScaAuthorisationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Xs2aCreatePisAuthorisationResponse>createCommonPaymentAuthorisation(String paymentId, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType, de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData)Creates authorisation for a paymentOptional<Xs2aCreatePisCancellationAuthorisationResponse>createCommonPaymentCancellationAuthorisation(String paymentId, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType, de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData)Creates authorisation cancellation for the paymentOptional<de.adorsys.psd2.xs2a.core.sca.ScaStatus>getAuthorisationScaStatus(String paymentId, String authorisationId)Gets SCA status of authorisationOptional<Xs2aAuthorisationSubResources>getAuthorisationSubResources(String paymentId)Gets authorisation sub resourcesOptional<de.adorsys.psd2.xs2a.core.sca.ScaStatus>getCancellationAuthorisationScaStatus(String paymentId, String cancellationId)Gets SCA status of cancellation authorisationOptional<Xs2aPaymentCancellationAuthorisationSubResource>getCancellationAuthorisationSubResources(String paymentId)Gets authorisation cancellation sub resourcesde.adorsys.psd2.xs2a.core.profile.ScaApproachgetScaApproachServiceType()Gets SCA approach used in current servicevoidupdateAuthorisation(UpdateAuthorisationRequest request, AuthorisationProcessorResponse response)voidupdateCancellationAuthorisation(UpdateAuthorisationRequest request, AuthorisationProcessorResponse response)Xs2aUpdatePisCommonPaymentPsuDataResponseupdateCommonPaymentCancellationPsuData(Xs2aUpdatePisCommonPaymentPsuDataRequest request)Updates cancellation authorisation for the paymentXs2aUpdatePisCommonPaymentPsuDataResponseupdateCommonPaymentPsuData(Xs2aUpdatePisCommonPaymentPsuDataRequest request)Updates authorisation for the payment
-
-
-
Method Detail
-
createCommonPaymentAuthorisation
public Optional<Xs2aCreatePisAuthorisationResponse> createCommonPaymentAuthorisation(String paymentId, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType, de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData)
Description copied from interface:PisScaAuthorisationServiceCreates authorisation for a payment- Specified by:
createCommonPaymentAuthorisationin interfacePisScaAuthorisationService- Parameters:
paymentId- ASPSP identifier of a paymentpaymentType- Type of paymentpsuData- PsuIdData container of authorisation data about PSU- Returns:
- create payment authorisation response
-
updateCommonPaymentPsuData
public Xs2aUpdatePisCommonPaymentPsuDataResponse updateCommonPaymentPsuData(Xs2aUpdatePisCommonPaymentPsuDataRequest 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(UpdateAuthorisationRequest request, AuthorisationProcessorResponse response)
- Specified by:
updateAuthorisationin interfacePisScaAuthorisationService
-
updateCancellationAuthorisation
public void updateCancellationAuthorisation(UpdateAuthorisationRequest request, AuthorisationProcessorResponse response)
- Specified by:
updateCancellationAuthorisationin interfacePisScaAuthorisationService
-
createCommonPaymentCancellationAuthorisation
public Optional<Xs2aCreatePisCancellationAuthorisationResponse> createCommonPaymentCancellationAuthorisation(String paymentId, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType, de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData)
Description copied from interface:PisScaAuthorisationServiceCreates authorisation cancellation for the payment- Specified by:
createCommonPaymentCancellationAuthorisationin interfacePisScaAuthorisationService- Parameters:
paymentId- ASPSP identifier of a paymentpaymentType- Type of paymentpsuData- PsuIdData container of authorisation data about PSU- 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(Xs2aUpdatePisCommonPaymentPsuDataRequest 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 cancellationId)
Description copied from interface:PisScaAuthorisationServiceGets SCA status of cancellation authorisation- Specified by:
getCancellationAuthorisationScaStatusin interfacePisScaAuthorisationService- Parameters:
paymentId- ASPSP identifier of the payment, associated with the authorisationcancellationId- cancellation authorisation identifier- Returns:
- SCA status
-
getScaApproachServiceType
public de.adorsys.psd2.xs2a.core.profile.ScaApproach getScaApproachServiceType()
Description copied from interface:ScaApproachServiceTypeProviderGets SCA approach used in current service- Specified by:
getScaApproachServiceTypein interfaceScaApproachServiceTypeProvider- Returns:
- SCA approach
-
-