public interface PisCommonPaymentService
| Modifier and Type | Method and Description |
|---|---|
Optional<CreatePisAuthorisationResponse> |
createAuthorization(String paymentId,
CreatePisAuthorisationRequest request)
Creates payment authorization
|
Optional<CreatePisAuthorisationResponse> |
createAuthorizationCancellation(String paymentId,
CreatePisAuthorisationRequest pisAuthorisationRequest)
Creates payment authorization cancellation
|
Optional<CreatePisCommonPaymentResponse> |
createCommonPayment(PisPaymentInfo request) |
Optional<List<String>> |
getAuthorisationsByPaymentId(String paymentId,
CmsAuthorisationType authorisationType)
Gets list of payment authorisation IDs by payment ID and authorisation type
|
Optional<de.adorsys.psd2.xs2a.core.sca.AuthorisationScaApproachResponse> |
getAuthorisationScaApproach(String authorisationId,
CmsAuthorisationType authorisationType)
Gets SCA approach from the authorisation by authorisation ID and authorisation type
|
Optional<de.adorsys.psd2.xs2a.core.sca.ScaStatus> |
getAuthorisationScaStatus(String paymentId,
String authorisationId,
CmsAuthorisationType authorisationType)
Gets SCA status of the authorisation by payment ID, authorisation ID and authorisation type
|
Optional<PisCommonPaymentResponse> |
getCommonPaymentById(String paymentId)
Reads full information of pis payment by payment identifier
|
Optional<GetPisAuthorisationResponse> |
getPisAuthorisationById(String authorisationId)
Get information about Authorisation by authorisation identifier
|
Optional<GetPisAuthorisationResponse> |
getPisCancellationAuthorisationById(String cancellationId)
Get information about Authorisation by cancellation identifier
|
Optional<de.adorsys.psd2.xs2a.core.pis.TransactionStatus> |
getPisCommonPaymentStatusById(String paymentId)
Retrieves common payment status from pis payment by payment identifier
|
Optional<List<de.adorsys.psd2.xs2a.core.psu.PsuIdData>> |
getPsuDataListByPaymentId(String paymentId)
Get information about PSU list by payment identifier
|
boolean |
isAuthenticationMethodDecoupled(String authorisationId,
String authenticationMethodId)
Checks if requested authentication method is decoupled.
|
boolean |
saveAuthenticationMethods(String authorisationId,
List<CmsScaMethod> methods)
Saves authentication methods in provided authorisation
|
void |
updateCommonPayment(PisCommonPaymentRequest request,
String paymentId)
Updates PIS payment data and stores it into database
|
Optional<Boolean> |
updateCommonPaymentStatusById(String paymentId,
de.adorsys.psd2.xs2a.core.pis.TransactionStatus status)
Updates pis payment status by payment identifier
|
Optional<UpdatePisCommonPaymentPsuDataResponse> |
updatePisAuthorisation(String authorisationId,
UpdatePisCommonPaymentPsuDataRequest request)
Updates payment authorization
|
Optional<UpdatePisCommonPaymentPsuDataResponse> |
updatePisCancellationAuthorisation(String authorizationId,
UpdatePisCommonPaymentPsuDataRequest request)
Updates payment cancellation authorization
|
boolean |
updateScaApproach(String authorisationId,
de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)
Updates pis sca approach
|
Optional<CreatePisCommonPaymentResponse> createCommonPayment(PisPaymentInfo request)
Optional<de.adorsys.psd2.xs2a.core.pis.TransactionStatus> getPisCommonPaymentStatusById(String paymentId)
paymentId - String representation of pis payment identifierOptional<PisCommonPaymentResponse> getCommonPaymentById(String paymentId)
paymentId - String representation of pis payment identifierOptional<Boolean> updateCommonPaymentStatusById(String paymentId, de.adorsys.psd2.xs2a.core.pis.TransactionStatus status)
paymentId - String representation of pis payment identifierstatus - new payment statusOptional<CreatePisAuthorisationResponse> createAuthorization(String paymentId, CreatePisAuthorisationRequest request)
paymentId - String representation of the payment identifierrequest - PIS authorisation requestOptional<CreatePisAuthorisationResponse> createAuthorizationCancellation(String paymentId, CreatePisAuthorisationRequest pisAuthorisationRequest)
paymentId - String representation of the payment identifierpisAuthorisationRequest - PIS authorisation requestOptional<UpdatePisCommonPaymentPsuDataResponse> updatePisAuthorisation(String authorisationId, UpdatePisCommonPaymentPsuDataRequest request)
authorisationId - String representation of the authorisation identifierrequest - Incoming request for updating authorizationOptional<UpdatePisCommonPaymentPsuDataResponse> updatePisCancellationAuthorisation(String authorizationId, UpdatePisCommonPaymentPsuDataRequest request)
authorizationId - String representation of the authorisation identifierrequest - Incoming request for updating authorizationvoid updateCommonPayment(PisCommonPaymentRequest request, String paymentId)
request - PIS payment request for update payment datapaymentId - Payment IDOptional<GetPisAuthorisationResponse> getPisAuthorisationById(String authorisationId)
authorisationId - String representation of the authorisation identifierOptional<GetPisAuthorisationResponse> getPisCancellationAuthorisationById(String cancellationId)
cancellationId - String representation of the cancellation identifierOptional<List<String>> getAuthorisationsByPaymentId(String paymentId, CmsAuthorisationType authorisationType)
paymentId - String representation of the payment identifierauthorisationType - Type of authorisationOptional<de.adorsys.psd2.xs2a.core.sca.ScaStatus> getAuthorisationScaStatus(String paymentId, String authorisationId, CmsAuthorisationType authorisationType)
paymentId - String representation of the payment identifierauthorisationId - String representation of the authorisation identifierauthorisationType - Type of authorisationOptional<List<de.adorsys.psd2.xs2a.core.psu.PsuIdData>> getPsuDataListByPaymentId(String paymentId)
paymentId - String representation of the payment identifierboolean 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.boolean saveAuthenticationMethods(String authorisationId, List<CmsScaMethod> methods)
authorisationId - String representation of the authorisation identifiermethods - List of authentication methods to be savedtrue if authorisation was found and updated, false otherwiseboolean updateScaApproach(String authorisationId, de.adorsys.psd2.xs2a.core.profile.ScaApproach scaApproach)
authorisationId - String representation of the authorisation identifierscaApproach - chosen sca approachtrue if authorisation was found and sca approach updated, false otherwiseOptional<de.adorsys.psd2.xs2a.core.sca.AuthorisationScaApproachResponse> getAuthorisationScaApproach(String authorisationId, CmsAuthorisationType authorisationType)
authorisationId - String representation of the authorisation identifierauthorisationType - Type of authorisationCopyright © 2019. All rights reserved.