Package de.adorsys.psd2.xs2a.service
Class PaymentCancellationAuthorisationServiceImpl
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.PaymentCancellationAuthorisationServiceImpl
-
- All Implemented Interfaces:
PaymentCancellationAuthorisationService
@Service public class PaymentCancellationAuthorisationServiceImpl extends Object implements PaymentCancellationAuthorisationService
-
-
Constructor Summary
Constructors Constructor Description PaymentCancellationAuthorisationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResponseObject<CancellationAuthorisationResponse>createPisCancellationAuthorisation(Xs2aCreatePisAuthorisationRequest request)Creates authorisation for payment cancellation request if given psu data is validResponseObject<de.adorsys.psd2.xs2a.core.sca.ScaStatus>getPaymentCancellationAuthorisationScaStatus(String paymentId, String authorisationId, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType, String paymentProduct)Gets SCA status of payment cancellation authorisationResponseObject<Xs2aPaymentCancellationAuthorisationSubResource>getPaymentInitiationCancellationAuthorisationInformation(String paymentId, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType, String paymentProduct)Gets list of cancellation identifiersResponseObject<Xs2aUpdatePisCommonPaymentPsuDataResponse>updatePisCancellationPsuData(Xs2aUpdatePisCommonPaymentPsuDataRequest request)Update psu data for payment cancellation request if psu data and password are valid
-
-
-
Method Detail
-
createPisCancellationAuthorisation
public ResponseObject<CancellationAuthorisationResponse> createPisCancellationAuthorisation(Xs2aCreatePisAuthorisationRequest request)
Creates authorisation for payment cancellation request if given psu data is valid- Specified by:
createPisCancellationAuthorisationin interfacePaymentCancellationAuthorisationService- Parameters:
request- parameters for creating new authorisation- Returns:
- Xs2aCreatePisCancellationAuthorisationResponse that contains authorisationId, scaStatus, paymentType and related links
-
updatePisCancellationPsuData
public ResponseObject<Xs2aUpdatePisCommonPaymentPsuDataResponse> updatePisCancellationPsuData(Xs2aUpdatePisCommonPaymentPsuDataRequest request)
Update psu data for payment cancellation request if psu data and password are valid- Specified by:
updatePisCancellationPsuDatain interfacePaymentCancellationAuthorisationService- 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, otherwise contains error
-
getPaymentInitiationCancellationAuthorisationInformation
public ResponseObject<Xs2aPaymentCancellationAuthorisationSubResource> getPaymentInitiationCancellationAuthorisationInformation(String paymentId, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType, String paymentProduct)
Gets list of cancellation identifiers- Specified by:
getPaymentInitiationCancellationAuthorisationInformationin interfacePaymentCancellationAuthorisationService- Parameters:
paymentId- ASPSP identifier of the payment, associated with the authorisation- Returns:
- Response containing list of cancellation identifiers in case of success or empty list in case of failure
-
getPaymentCancellationAuthorisationScaStatus
public ResponseObject<de.adorsys.psd2.xs2a.core.sca.ScaStatus> getPaymentCancellationAuthorisationScaStatus(String paymentId, String authorisationId, de.adorsys.psd2.xs2a.core.profile.PaymentType paymentType, String paymentProduct)
Gets SCA status of payment cancellation authorisation- Specified by:
getPaymentCancellationAuthorisationScaStatusin interfacePaymentCancellationAuthorisationService- Parameters:
paymentId- ASPSP identifier of the payment, associated with the authorisationauthorisationId- cancellation authorisation identifier- Returns:
- Response containing SCA status of authorisation or corresponding error
-
-