@Service @Transactional(readOnly=true) public class PisCommonPaymentServiceInternal extends Object implements PisCommonPaymentService
| Constructor and Description |
|---|
PisCommonPaymentServiceInternal() |
| Modifier and Type | Method and Description |
|---|---|
Optional<CreatePisAuthorisationResponse> |
createAuthorization(String paymentId,
CmsAuthorisationType authorizationType,
de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData)
Create common payment authorization
|
Optional<CreatePisAuthorisationResponse> |
createAuthorizationCancellation(String paymentId,
CmsAuthorisationType authorizationType,
de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData) |
Optional<CreatePisCommonPaymentResponse> |
createCommonPayment(PisPaymentInfo request)
Creates new pis common payment with full information about payment
|
Optional<List<String>> |
getAuthorisationsByPaymentId(String paymentId,
CmsAuthorisationType authorisationType)
Reads authorisation IDs data by payment Id and type of authorization
|
Optional<de.adorsys.psd2.xs2a.core.sca.ScaStatus> |
getAuthorisationScaStatus(@NotNull String paymentId,
@NotNull String authorisationId,
CmsAuthorisationType authorisationType) |
Optional<PisCommonPaymentResponse> |
getCommonPaymentById(String paymentId)
Reads full information of pis common payment by payment identifier
|
Optional<GetPisAuthorisationResponse> |
getPisAuthorisationById(String authorisationId)
Reads authorisation data by authorisation Id
|
Optional<GetPisAuthorisationResponse> |
getPisCancellationAuthorisationById(String cancellationId)
Reads cancellation authorisation data by cancellation Id
|
Optional<de.adorsys.psd2.xs2a.core.pis.TransactionStatus> |
getPisCommonPaymentStatusById(String paymentId)
Retrieves common payment status from pis common payment by payment identifier
|
Optional<List<de.adorsys.psd2.xs2a.core.psu.PsuIdData>> |
getPsuDataListByPaymentId(String paymentId)
Reads Psu data list by payment Id
|
void |
updateCommonPayment(PisCommonPaymentRequest request,
String paymentId)
Update PIS common payment payment data and stores it into database
|
Optional<Boolean> |
updateCommonPaymentStatusById(String paymentId,
de.adorsys.psd2.xs2a.core.pis.TransactionStatus status)
Updates pis common payment status by payment identifier
|
Optional<UpdatePisCommonPaymentPsuDataResponse> |
updatePisAuthorisation(String authorizationId,
UpdatePisCommonPaymentPsuDataRequest request)
Update common payment authorisation
|
Optional<UpdatePisCommonPaymentPsuDataResponse> |
updatePisCancellationAuthorisation(String cancellationId,
UpdatePisCommonPaymentPsuDataRequest request)
Update common payment cancellation authorisation
|
@Transactional public Optional<CreatePisCommonPaymentResponse> createCommonPayment(PisPaymentInfo request)
request - Consists information about payments.public Optional<de.adorsys.psd2.xs2a.core.pis.TransactionStatus> getPisCommonPaymentStatusById(String paymentId)
paymentId - String representation of pis payment identifierpublic Optional<PisCommonPaymentResponse> getCommonPaymentById(String paymentId)
paymentId - String representation of pis payment identifier@Transactional public Optional<Boolean> updateCommonPaymentStatusById(String paymentId, de.adorsys.psd2.xs2a.core.pis.TransactionStatus status)
paymentId - String representation of pis payment identifierstatus - new common payment status@Transactional public Optional<CreatePisAuthorisationResponse> createAuthorization(String paymentId, CmsAuthorisationType authorizationType, de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData)
paymentId - id of the paymentauthorizationType - type of authorization required to create. Can be CREATED or CANCELLED@Transactional public Optional<CreatePisAuthorisationResponse> createAuthorizationCancellation(String paymentId, CmsAuthorisationType authorizationType, de.adorsys.psd2.xs2a.core.psu.PsuIdData psuData)
@Transactional public Optional<UpdatePisCommonPaymentPsuDataResponse> updatePisAuthorisation(String authorizationId, UpdatePisCommonPaymentPsuDataRequest request)
authorizationId - id of the authorisation to be updatedrequest - contains data for updating authorisation@Transactional public Optional<UpdatePisCommonPaymentPsuDataResponse> updatePisCancellationAuthorisation(String cancellationId, UpdatePisCommonPaymentPsuDataRequest request)
cancellationId - id of the authorisation to be updatedrequest - contains data for updating authorisation@Transactional public void updateCommonPayment(PisCommonPaymentRequest request, String paymentId)
request - PIS common payment request for update payment datapaymentId - common payment IDpublic Optional<GetPisAuthorisationResponse> getPisAuthorisationById(String authorisationId)
authorisationId - id of the authorisationpublic Optional<GetPisAuthorisationResponse> getPisCancellationAuthorisationById(String cancellationId)
cancellationId - id of the authorisationpublic Optional<List<String>> getAuthorisationsByPaymentId(String paymentId, CmsAuthorisationType authorisationType)
paymentId - id of the paymentauthorisationType - type of authorization required to create. Can be CREATED or CANCELLEDpublic Optional<de.adorsys.psd2.xs2a.core.sca.ScaStatus> getAuthorisationScaStatus(@NotNull @NotNull String paymentId, @NotNull @NotNull String authorisationId, CmsAuthorisationType authorisationType)
Copyright © 2018. All rights reserved.