Class PaymentCancellationAuthorisationNeededDecider
- java.lang.Object
-
- de.adorsys.psd2.xs2a.service.authorization.PaymentCancellationAuthorisationNeededDecider
-
@Service public class PaymentCancellationAuthorisationNeededDecider extends Object
-
-
Constructor Summary
Constructors Constructor Description PaymentCancellationAuthorisationNeededDecider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisNoScaRequired(boolean authorisationByAspspRequired)Decides whether authorisation start is needed according to bank profile setting and spi response boolean field No authorisation start takes place only when both 'paymentCancellationAuthorisationMandated' and 'startAuthorisationRequired' are falsebooleanisScaRequired(boolean authorisationByAspspRequired)Decides whether authorisation start is needed according to bank profile setting and spi response boolean field Authorisation start occurs when at least one of 'paymentCancellationAuthorisationMandated' and 'startAuthorisationRequired' fields is true
-
-
-
Method Detail
-
isNoScaRequired
public boolean isNoScaRequired(boolean authorisationByAspspRequired)
Decides whether authorisation start is needed according to bank profile setting and spi response boolean field No authorisation start takes place only when both 'paymentCancellationAuthorisationMandated' and 'startAuthorisationRequired' are false- Parameters:
authorisationByAspspRequired- does ASPSP requires authorisation start- Returns:
- is no SCA is needed
-
isScaRequired
public boolean isScaRequired(boolean authorisationByAspspRequired)
Decides whether authorisation start is needed according to bank profile setting and spi response boolean field Authorisation start occurs when at least one of 'paymentCancellationAuthorisationMandated' and 'startAuthorisationRequired' fields is true- Parameters:
authorisationByAspspRequired- does ASPSP requires authorisation start- Returns:
- is no SCA is needed
-
-