@Service public class Xs2aPisCommonPaymentService extends Object
| Constructor and Description |
|---|
Xs2aPisCommonPaymentService() |
| Modifier and Type | Method and Description |
|---|---|
de.adorsys.psd2.consent.api.pis.CreatePisCommonPaymentResponse |
createCommonPayment(de.adorsys.psd2.consent.api.pis.proto.PisPaymentInfo request) |
Optional<de.adorsys.psd2.consent.api.pis.proto.PisCommonPaymentResponse> |
getPisCommonPaymentById(String paymentId) |
boolean |
isAuthenticationMethodDecoupled(String authorisationId,
String authenticationMethodId)
Requests CMS to retrieve authentication method and checks if requested authentication method is decoupled.
|
boolean |
saveAuthenticationMethods(String authorisationId,
List<de.adorsys.psd2.xs2a.core.authorisation.AuthenticationObject> methods)
Saves authentication methods in provided authorisation
|
boolean |
updateMultilevelSca(String paymentId,
boolean multilevelScaRequired)
Updates multilevelScaRequired and stores changes into database
|
boolean |
updatePisAuthorisationStatus(String authorisationId,
de.adorsys.psd2.xs2a.core.sca.ScaStatus scaStatus) |
void |
updateScaApproach(String authorisationId,
de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)
Updates PIS SCA approach in authorisation
|
public de.adorsys.psd2.consent.api.pis.CreatePisCommonPaymentResponse createCommonPayment(de.adorsys.psd2.consent.api.pis.proto.PisPaymentInfo request)
public Optional<de.adorsys.psd2.consent.api.pis.proto.PisCommonPaymentResponse> getPisCommonPaymentById(String paymentId)
public boolean updatePisAuthorisationStatus(String authorisationId, de.adorsys.psd2.xs2a.core.sca.ScaStatus scaStatus)
public boolean isAuthenticationMethodDecoupled(String authorisationId, String authenticationMethodId)
authorisationId - String representation of the authorisation identifierauthenticationMethodId - String representation of the available authentication method identifiertrue, if authentication method is decoupled and false otherwise.public boolean saveAuthenticationMethods(String authorisationId, List<de.adorsys.psd2.xs2a.core.authorisation.AuthenticationObject> methods)
authorisationId - String representation of the authorisation identifiermethods - List of authentication methods to be savedtrue if authorisation was found and updated, false otherwisepublic void updateScaApproach(String authorisationId, de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)
authorisationId - String representation of the authorisation identifierscaApproach - sca approachpublic boolean updateMultilevelSca(String paymentId, boolean multilevelScaRequired)
paymentId - Payment IDmultilevelScaRequired - new value for boolean multilevel sca requiredCopyright © 2020. All rights reserved.