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)booleanupdateMultilevelSca(String paymentId, boolean multilevelScaRequired)Updates multilevelScaRequired and stores changes into database
-
-
-
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)
-
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
-
-