@Service public class DepositAccountPaymentServiceImpl extends AbstractServiceImpl implements DepositAccountPaymentService
depositAccountConfigService, ledgerService| Constructor and Description |
|---|
DepositAccountPaymentServiceImpl(DepositAccountConfigService depositAccountConfigService,
LedgerService ledgerService,
PaymentRepository paymentRepository,
PaymentMapper paymentMapper,
PaymentExecutionService executionService) |
| Modifier and Type | Method and Description |
|---|---|
TransactionStatusBO |
cancelPayment(String paymentId) |
TransactionStatusBO |
executePayment(String paymentId,
String userName)
Execute a payment.
|
PaymentBO |
getPaymentById(String paymentId) |
TransactionStatusBO |
getPaymentStatusById(String paymentId) |
PaymentBO |
initiatePayment(PaymentBO payment,
TransactionStatusBO status) |
String |
readIbanByPaymentId(String paymentId) |
TransactionStatusBO |
updatePaymentStatusToAuthorised(String paymentId) |
loadClearing, loadClearingAccount, loadLedgerpublic DepositAccountPaymentServiceImpl(DepositAccountConfigService depositAccountConfigService, LedgerService ledgerService, PaymentRepository paymentRepository, PaymentMapper paymentMapper, PaymentExecutionService executionService)
public TransactionStatusBO getPaymentStatusById(String paymentId) throws PaymentNotFoundException
getPaymentStatusById in interface DepositAccountPaymentServicePaymentNotFoundExceptionpublic PaymentBO getPaymentById(String paymentId) throws PaymentNotFoundException
getPaymentById in interface DepositAccountPaymentServicePaymentNotFoundExceptionpublic PaymentBO initiatePayment(PaymentBO payment, TransactionStatusBO status) throws PaymentWithIdExistsException
initiatePayment in interface DepositAccountPaymentServicePaymentWithIdExistsExceptionpublic TransactionStatusBO executePayment(String paymentId, String userName) throws PaymentProcessingException
+ Bulk payment without batch execution will be split into single payments and each single payment will be individually sent to this method.
executePayment in interface DepositAccountPaymentServicePaymentProcessingExceptionpublic TransactionStatusBO cancelPayment(String paymentId) throws PaymentNotFoundException
cancelPayment in interface DepositAccountPaymentServicePaymentNotFoundExceptionpublic String readIbanByPaymentId(String paymentId)
readIbanByPaymentId in interface DepositAccountPaymentServicepublic TransactionStatusBO updatePaymentStatusToAuthorised(String paymentId) throws PaymentNotFoundException
updatePaymentStatusToAuthorised in interface DepositAccountPaymentServicePaymentNotFoundExceptionCopyright © 2019. All rights reserved.