Package de.adorsys.psd2.consent.service
Class PisCommonPaymentServiceInternal
- java.lang.Object
-
- de.adorsys.psd2.consent.service.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 Summary
Constructors Constructor Description PisCommonPaymentServiceInternal()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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 paymentde.adorsys.psd2.consent.api.CmsResponse<de.adorsys.psd2.consent.api.pis.PisCommonPaymentResponse>getCommonPaymentById(String paymentId)Reads full information of pis common payment by payment identifierde.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 identifierde.adorsys.psd2.consent.api.CmsResponse<List<de.adorsys.psd2.xs2a.core.psu.PsuIdData>>getPsuDataListByPaymentId(String paymentId)Reads PSU data list by payment Idde.adorsys.psd2.consent.api.CmsResponse<Boolean>updateCommonPaymentStatusById(String paymentId, de.adorsys.psd2.xs2a.core.pis.TransactionStatus status)Updates pis common payment status by payment identifierde.adorsys.psd2.consent.api.CmsResponse<Boolean>updateMultilevelSca(String paymentId, boolean multilevelScaRequired)Updates multilevelScaRequired and stores changes into database
-
-
-
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.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 identifierstatus- 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 IDmultilevelScaRequired- new value for boolean multilevel sca required
-
-