Package de.adorsys.psd2.xs2a.service
Class PaymentAuthorisationServiceImpl
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.PaymentAuthorisationServiceImpl
-
- All Implemented Interfaces:
PaymentAuthorisationService
@Service public class PaymentAuthorisationServiceImpl extends Object implements PaymentAuthorisationService
-
-
Constructor Summary
Constructors Constructor Description PaymentAuthorisationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseObject<AuthorisationResponse>createPisAuthorisation(Xs2aCreatePisAuthorisationRequest createRequest)Creates pis authorisation for payment.ResponseObject<Xs2aAuthorisationSubResources>getPaymentInitiationAuthorisations(String paymentId, String paymentProduct, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType)Gets authorisations for current paymentResponseObject<PaymentScaStatus>getPaymentInitiationAuthorisationScaStatus(String paymentId, String authorisationId, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType, String paymentProduct)Gets SCA status response of payment initiation authorisationResponseObject<Xs2aUpdatePisCommonPaymentPsuDataResponse>updatePisCommonPaymentPsuData(Xs2aUpdatePisCommonPaymentPsuDataRequest request)Update psu data for payment request if psu data and password are valid
-
-
-
Method Detail
-
createPisAuthorisation
public ResponseObject<AuthorisationResponse> createPisAuthorisation(Xs2aCreatePisAuthorisationRequest createRequest)
Creates pis authorisation for payment. In case when psu data and password came then second step will be update psu data in created authorisation- Specified by:
createPisAuthorisationin interfacePaymentAuthorisationService- Parameters:
createRequest- data container to create pis authorisation- Returns:
- ResponseObject it could contains data after create or update pis authorisation
-
updatePisCommonPaymentPsuData
public ResponseObject<Xs2aUpdatePisCommonPaymentPsuDataResponse> updatePisCommonPaymentPsuData(Xs2aUpdatePisCommonPaymentPsuDataRequest request)
Update psu data for payment request if psu data and password are valid- Specified by:
updatePisCommonPaymentPsuDatain interfacePaymentAuthorisationService- Parameters:
request- update psu data request, which contains paymentId, authorisationId, psuData, password, authenticationMethodId, scaStatus, paymentService and scaAuthenticationData- Returns:
- Xs2aUpdatePisCommonPaymentPsuDataResponse that contains authorisationId, scaStatus, psuId and related links in case of success
-
getPaymentInitiationAuthorisations
public ResponseObject<Xs2aAuthorisationSubResources> getPaymentInitiationAuthorisations(String paymentId, String paymentProduct, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType)
Gets authorisations for current payment- Specified by:
getPaymentInitiationAuthorisationsin interfacePaymentAuthorisationService- Parameters:
paymentId- ASPSP identifier of the payment, associated with the authorisation- Returns:
- Response containing list of authorisations
-
getPaymentInitiationAuthorisationScaStatus
public ResponseObject<PaymentScaStatus> getPaymentInitiationAuthorisationScaStatus(String paymentId, String authorisationId, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType, String paymentProduct)
Gets SCA status response of payment initiation authorisation- Specified by:
getPaymentInitiationAuthorisationScaStatusin interfacePaymentAuthorisationService- Parameters:
paymentId- ASPSP identifier of the payment, associated with the authorisationauthorisationId- authorisation identifier- Returns:
- Response containing SCA status of authorisation and optionally trusted beneficiary flag or corresponding error
-
-