@Service public class PaymentService extends Object
| Constructor and Description |
|---|
PaymentService() |
public Optional<AspspSinglePayment> addPayment(@NotNull @NotNull AspspSinglePayment payment)
payment - Single paymentpublic Optional<AspspPeriodicPayment> addPeriodicPayment(@NotNull @NotNull AspspPeriodicPayment payment)
payment - Periodic paymentpublic boolean isPaymentExist(String paymentId)
paymentId - Payments primary ASPSP identifierpublic Optional<AspspTransactionStatus> getPaymentStatusById(String paymentId)
paymentId - Payments primary ASPSP identifierpublic Optional<AspspBulkPayment> addBulkPayments(AspspBulkPayment payments)
payments - Bulk paymentpublic void updatePaymentConsentStatus(@NotNull
@NotNull String consentId,
AspspConsentStatus consentStatus)
consentId - Consent primary identifierconsentStatus - New status of the PIS consentpublic List<AspspPayment> getPaymentById(String paymentId)
public Optional<AspspPaymentCancellationResponse> cancelPayment(String paymentId)
paymentId - Payment identifierpublic Optional<AspspPaymentCancellationResponse> initiatePaymentCancellation(String paymentId)
paymentId - Payment identifierpublic List<AspspPayment> getAllPayments()
Copyright © 2018. All rights reserved.