@Service public class PisAuthorisationService extends Object
| Constructor and Description |
|---|
PisAuthorisationService() |
| Modifier and Type | Method and Description |
|---|---|
CreatePisAuthorisationResponse |
createPisAuthorisation(String paymentId,
PsuIdData psuData)
Sends a POST request to CMS to store created pis authorisation
|
CreatePisAuthorisationResponse |
createPisAuthorisationCancellation(String paymentId,
PsuIdData psuData)
Sends a POST request to CMS to store created pis authorisation cancellation
|
void |
doUpdatePisAuthorisation(UpdatePisCommonPaymentPsuDataRequest request) |
void |
doUpdatePisCancellationAuthorisation(UpdatePisCommonPaymentPsuDataRequest request) |
Optional<AuthorisationScaApproachResponse> |
getAuthorisationScaApproach(String authorisationId,
PaymentAuthorisationType authorisationType)
Gets SCA approach of the authorisation by its id and type
|
Optional<ScaStatus> |
getAuthorisationScaStatus(String paymentId,
String authorisationId)
Gets SCA status of the authorisation
|
Optional<List<String>> |
getAuthorisationSubResources(String paymentId)
Sends a GET request to CMS to get authorisation sub resources
|
Optional<ScaStatus> |
getCancellationAuthorisationScaStatus(String paymentId,
String cancellationId)
Gets SCA status of the cancellation authorisation
|
Optional<List<String>> |
getCancellationAuthorisationSubResources(String paymentId)
Sends a GET request to CMS to get cancellation authorisation sub resources
|
Xs2aUpdatePisCommonPaymentPsuDataResponse |
updatePisAuthorisation(Xs2aUpdatePisCommonPaymentPsuDataRequest request,
ScaApproach scaApproach)
Updates PIS authorisation according to psu's sca methods with embedded and decoupled SCA approach
|
Xs2aUpdatePisCommonPaymentPsuDataResponse |
updatePisCancellationAuthorisation(Xs2aUpdatePisCommonPaymentPsuDataRequest request,
ScaApproach scaApproach)
Updates PIS cancellation authorisation according to psu's sca methods with embedded and decoupled SCA approach
|
public CreatePisAuthorisationResponse createPisAuthorisation(String paymentId, PsuIdData psuData)
paymentId - String representation of identifier of stored paymentpsuData - PsuIdData container of authorisation data about PSUpublic Xs2aUpdatePisCommonPaymentPsuDataResponse updatePisAuthorisation(Xs2aUpdatePisCommonPaymentPsuDataRequest request, ScaApproach scaApproach)
request - Provides transporting data when updating pis authorisationscaApproach - current SCA approach, preferred by the serverpublic Xs2aUpdatePisCommonPaymentPsuDataResponse updatePisCancellationAuthorisation(Xs2aUpdatePisCommonPaymentPsuDataRequest request, ScaApproach scaApproach)
request - Provides transporting data when updating pis cancellation authorisationscaApproach - current SCA approach, preferred by the serverpublic void doUpdatePisAuthorisation(UpdatePisCommonPaymentPsuDataRequest request)
public void doUpdatePisCancellationAuthorisation(UpdatePisCommonPaymentPsuDataRequest request)
public CreatePisAuthorisationResponse createPisAuthorisationCancellation(String paymentId, PsuIdData psuData)
paymentId - String representation of identifier of payment IDpsuData - PsuIdData container of authorisation data about PSUpublic Optional<List<String>> getCancellationAuthorisationSubResources(String paymentId)
paymentId - String representation of identifier of payment IDpublic Optional<List<String>> getAuthorisationSubResources(String paymentId)
paymentId - String representation of identifier of payment IDpublic Optional<ScaStatus> getAuthorisationScaStatus(String paymentId, String authorisationId)
paymentId - String representation of the payment identifierauthorisationId - String representation of the authorisation identifierpublic Optional<ScaStatus> getCancellationAuthorisationScaStatus(String paymentId, String cancellationId)
paymentId - String representation of the payment identifiercancellationId - String representation of the cancellation authorisation identifierpublic Optional<AuthorisationScaApproachResponse> getAuthorisationScaApproach(String authorisationId, PaymentAuthorisationType authorisationType)
authorisationId - String representation of the authorisation identifierauthorisationType - Type of authorisationCopyright © 2019. All rights reserved.