Class Xs2aPisCommonPaymentService
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.consent.Xs2aPisCommonPaymentService
-
@Service public class Xs2aPisCommonPaymentService extends Object
-
-
Constructor Summary
Constructors Constructor Description Xs2aPisCommonPaymentService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.adorsys.psd2.consent.api.pis.CreatePisCommonPaymentResponsecreateCommonPayment(de.adorsys.psd2.consent.api.pis.proto.PisPaymentInfo request)Optional<de.adorsys.psd2.consent.api.pis.proto.PisCommonPaymentResponse>getPisCommonPaymentById(String paymentId)booleanisAuthenticationMethodDecoupled(String authorisationId, String authenticationMethodId)Requests CMS to retrieve authentication method and checks if requested authentication method is decoupled.booleansaveAuthenticationMethods(String authorisationId, List<de.adorsys.psd2.xs2a.core.authorisation.AuthenticationObject> methods)Saves authentication methods in provided authorisationbooleanupdateMultilevelSca(String paymentId, boolean multilevelScaRequired)Updates multilevelScaRequired and stores changes into databasebooleanupdatePisAuthorisationStatus(String authorisationId, de.adorsys.psd2.xs2a.core.sca.ScaStatus scaStatus)voidupdateScaApproach(String authorisationId, de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)Updates PIS SCA approach in authorisation
-
-
-
Method Detail
-
createCommonPayment
public de.adorsys.psd2.consent.api.pis.CreatePisCommonPaymentResponse createCommonPayment(de.adorsys.psd2.consent.api.pis.proto.PisPaymentInfo request)
-
getPisCommonPaymentById
public Optional<de.adorsys.psd2.consent.api.pis.proto.PisCommonPaymentResponse> getPisCommonPaymentById(String paymentId)
-
updatePisAuthorisationStatus
public boolean updatePisAuthorisationStatus(String authorisationId, de.adorsys.psd2.xs2a.core.sca.ScaStatus scaStatus)
-
isAuthenticationMethodDecoupled
public boolean isAuthenticationMethodDecoupled(String authorisationId, String authenticationMethodId)
Requests CMS to retrieve authentication method and checks if requested authentication method is decoupled.- Parameters:
authorisationId- String representation of the authorisation identifierauthenticationMethodId- String representation of the available authentication method identifier- Returns:
true, if authentication method is decoupled andfalseotherwise.
-
saveAuthenticationMethods
public boolean saveAuthenticationMethods(String authorisationId, List<de.adorsys.psd2.xs2a.core.authorisation.AuthenticationObject> methods)
Saves authentication methods in provided authorisation- Parameters:
authorisationId- String representation of the authorisation identifiermethods- List of authentication methods to be saved- Returns:
trueif authorisation was found and updated,falseotherwise
-
updateScaApproach
public void updateScaApproach(String authorisationId, de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)
Updates PIS SCA approach in authorisation- Parameters:
authorisationId- String representation of the authorisation identifierscaApproach- sca approach
-
updateMultilevelSca
public boolean updateMultilevelSca(String paymentId, boolean multilevelScaRequired)
Updates multilevelScaRequired and stores changes into database- Parameters:
paymentId- Payment IDmultilevelScaRequired- new value for boolean multilevel sca required- Returns:
- true if payment was found and multilevel sca flag was updated, false otherwise
-
-