@Service public class PisAuthorisationService extends Object
| Constructor and Description |
|---|
PisAuthorisationService() |
| Modifier and Type | Method and Description |
|---|---|
de.adorsys.psd2.consent.api.authorisation.CreateAuthorisationResponse |
createPisAuthorisation(String paymentId,
de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData)
Sends a POST request to CMS to store created pis authorisation
|
de.adorsys.psd2.consent.api.authorisation.CreateAuthorisationResponse |
createPisAuthorisationCancellation(String paymentId,
de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData)
Sends a POST request to CMS to store created pis authorisation cancellation
|
Optional<de.adorsys.psd2.xs2a.core.sca.AuthorisationScaApproachResponse> |
getAuthorisationScaApproach(String authorisationId)
Gets SCA approach of the authorisation by its id and type
|
Optional<de.adorsys.psd2.xs2a.core.sca.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<de.adorsys.psd2.xs2a.core.sca.ScaStatus> |
getCancellationAuthorisationScaStatus(String paymentId,
String authorisationId)
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
|
void |
updateAuthorisation(UpdateAuthorisationRequest request,
AuthorisationProcessorResponse response) |
void |
updateCancellationAuthorisation(UpdateAuthorisationRequest request,
AuthorisationProcessorResponse response) |
Xs2aUpdatePisCommonPaymentPsuDataResponse |
updatePisAuthorisation(Xs2aUpdatePisCommonPaymentPsuDataRequest request,
de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)
Updates PIS authorisation according to psu's sca methods with embedded and decoupled SCA approach
|
Xs2aUpdatePisCommonPaymentPsuDataResponse |
updatePisCancellationAuthorisation(Xs2aUpdatePisCommonPaymentPsuDataRequest request,
de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)
Updates PIS cancellation authorisation according to psu's sca methods with embedded and decoupled SCA approach
|
public de.adorsys.psd2.consent.api.authorisation.CreateAuthorisationResponse createPisAuthorisation(String paymentId, de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData)
paymentId - String representation of identifier of stored paymentpsuData - PsuIdData container of authorisation data about PSUpublic Xs2aUpdatePisCommonPaymentPsuDataResponse updatePisAuthorisation(Xs2aUpdatePisCommonPaymentPsuDataRequest request, de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)
request - Provides transporting data when updating pis authorisationscaApproach - current SCA approach, preferred by the serverpublic Xs2aUpdatePisCommonPaymentPsuDataResponse updatePisCancellationAuthorisation(Xs2aUpdatePisCommonPaymentPsuDataRequest request, de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)
request - Provides transporting data when updating pis cancellation authorisationscaApproach - current SCA approach, preferred by the serverpublic de.adorsys.psd2.consent.api.authorisation.CreateAuthorisationResponse createPisAuthorisationCancellation(String paymentId, de.adorsys.psd2.xs2a.core.psu.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<de.adorsys.psd2.xs2a.core.sca.ScaStatus> getAuthorisationScaStatus(String paymentId, String authorisationId)
paymentId - String representation of the payment identifierauthorisationId - String representation of the authorisation identifierpublic Optional<de.adorsys.psd2.xs2a.core.sca.ScaStatus> getCancellationAuthorisationScaStatus(String paymentId, String authorisationId)
paymentId - String representation of the payment identifierauthorisationId - String representation of the authorisation identifierpublic Optional<de.adorsys.psd2.xs2a.core.sca.AuthorisationScaApproachResponse> getAuthorisationScaApproach(String authorisationId)
authorisationId - String representation of the authorisation identifierpublic void updateAuthorisation(UpdateAuthorisationRequest request, AuthorisationProcessorResponse response)
public void updateCancellationAuthorisation(UpdateAuthorisationRequest request, AuthorisationProcessorResponse response)
Copyright © 2020. All rights reserved.