Class PisCommonPaymentServiceInternal

  • All Implemented Interfaces:
    de.adorsys.psd2.consent.api.service.PisCommonPaymentService

    @Service
    @Transactional(readOnly=true)
    public class PisCommonPaymentServiceInternal
    extends Object
    implements de.adorsys.psd2.consent.api.service.PisCommonPaymentService
    • Constructor Detail

      • PisCommonPaymentServiceInternal

        public PisCommonPaymentServiceInternal()
    • Method Detail

      • createCommonPayment

        @Transactional
        public de.adorsys.psd2.consent.api.CmsResponse<de.adorsys.psd2.consent.api.pis.CreatePisCommonPaymentResponse> createCommonPayment​(de.adorsys.psd2.consent.api.pis.proto.PisPaymentInfo request)
        Creates new pis common payment with full information about payment
        Parameters:
        request - Consists information about payments.
        Returns:
        Response containing identifier of common payment
      • getPisCommonPaymentStatusById

        @Transactional
        public de.adorsys.psd2.consent.api.CmsResponse<de.adorsys.psd2.xs2a.core.pis.TransactionStatus> getPisCommonPaymentStatusById​(String paymentId)
        Retrieves common payment status from pis common payment by payment identifier
        Parameters:
        paymentId - String representation of pis payment identifier
        Returns:
        Information about the status of a common payment
      • getCommonPaymentById

        @Transactional
        public de.adorsys.psd2.consent.api.CmsResponse<de.adorsys.psd2.consent.api.pis.proto.PisCommonPaymentResponse> getCommonPaymentById​(String paymentId)
        Reads full information of pis common payment by payment identifier
        Parameters:
        paymentId - String representation of pis payment identifier
        Returns:
        Response containing full information about pis common payment
      • updateCommonPaymentStatusById

        @Transactional
        public de.adorsys.psd2.consent.api.CmsResponse<Boolean> updateCommonPaymentStatusById​(String paymentId,
                                                                                              de.adorsys.psd2.xs2a.core.pis.TransactionStatus status)
        Updates pis common payment status by payment identifier
        Parameters:
        paymentId - String representation of pis payment identifier
        status - new common payment status
        Returns:
        Response containing result of status changing
      • updateMultilevelSca

        @Transactional
        public de.adorsys.psd2.consent.api.CmsResponse<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
      • getPsuDataListByPaymentId

        public de.adorsys.psd2.consent.api.CmsResponse<List<de.adorsys.psd2.xs2a.core.psu.PsuIdData>> getPsuDataListByPaymentId​(String paymentId)
        Reads PSU data list by payment Id
        Parameters:
        paymentId - id of the payment
        Returns:
        response contains data of Psu list