Class Xs2aPisCommonPaymentService


  • @Service
    public class Xs2aPisCommonPaymentService
    extends Object
    • Constructor Detail

      • Xs2aPisCommonPaymentService

        public Xs2aPisCommonPaymentService()
    • 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 identifier
        authenticationMethodId - String representation of the available authentication method identifier
        Returns:
        true, if authentication method is decoupled and false otherwise.
      • 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 identifier
        methods - List of authentication methods to be saved
        Returns:
        true if authorisation was found and updated, false otherwise
      • 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 identifier
        scaApproach - sca approach
      • updateMultilevelSca

        public boolean updateMultilevelSca​(String paymentId,
                                           boolean multilevelScaRequired)
        Updates multilevelScaRequired and stores changes into database
        Parameters:
        paymentId - Payment ID
        multilevelScaRequired - new value for boolean multilevel sca required
        Returns:
        true if payment was found and multilevel sca flag was updated, false otherwise