@Service public class Xs2aPisCommonPaymentService extends Object
| Constructor and Description |
|---|
Xs2aPisCommonPaymentService() |
| Modifier and Type | Method and Description |
|---|---|
CreatePisCommonPaymentResponse |
createCommonPayment(PisPaymentInfo request) |
Optional<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<AuthenticationObject> methods)
Saves authentication methods in provided authorisation
|
void |
updateBulkPaymentInCommonPayment(BulkPayment bulkPayment,
PaymentInitiationParameters paymentInitiationParameters,
String paymentId) |
void |
updateCommonPayment(CommonPayment commonPayment,
PaymentInitiationParameters paymentInitiationParameters,
String paymentId) |
boolean |
updateMultilevelSca(String paymentId,
boolean multilevelScaRequired)
Updates multilevelScaRequired and stores changes into database
|
void |
updatePeriodicPaymentInCommonPayment(PeriodicPayment periodicPayment,
PaymentInitiationParameters paymentInitiationParameters,
String paymentId) |
boolean |
updatePisAuthorisationStatus(String authorisationId,
ScaStatus scaStatus) |
void |
updateScaApproach(String authorisationId,
ScaApproach scaApproach)
Updates PIS SCA approach in authorisation
|
void |
updateSinglePaymentInCommonPayment(SinglePayment singlePayment,
PaymentInitiationParameters paymentInitiationParameters,
String paymentId) |
public CreatePisCommonPaymentResponse createCommonPayment(PisPaymentInfo request)
public Optional<PisCommonPaymentResponse> getPisCommonPaymentById(String paymentId)
public void updateCommonPayment(CommonPayment commonPayment, PaymentInitiationParameters paymentInitiationParameters, String paymentId)
public void updateSinglePaymentInCommonPayment(SinglePayment singlePayment, PaymentInitiationParameters paymentInitiationParameters, String paymentId)
public void updatePeriodicPaymentInCommonPayment(PeriodicPayment periodicPayment, PaymentInitiationParameters paymentInitiationParameters, String paymentId)
public void updateBulkPaymentInCommonPayment(BulkPayment bulkPayment, PaymentInitiationParameters paymentInitiationParameters, String paymentId)
public boolean updatePisAuthorisationStatus(String authorisationId, 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<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, 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.