Class DepositAccountPaymentServiceImpl
- java.lang.Object
-
- de.adorsys.ledgers.deposit.api.service.impl.AbstractServiceImpl
-
- de.adorsys.ledgers.deposit.api.service.impl.DepositAccountPaymentServiceImpl
-
- All Implemented Interfaces:
DepositAccountPaymentService
@Service public class DepositAccountPaymentServiceImpl extends AbstractServiceImpl implements DepositAccountPaymentService
-
-
Field Summary
-
Fields inherited from class de.adorsys.ledgers.deposit.api.service.impl.AbstractServiceImpl
depositAccountConfigService, ledgerService
-
-
Constructor Summary
Constructors Constructor Description DepositAccountPaymentServiceImpl(DepositAccountConfigService depositAccountConfigService, de.adorsys.ledgers.postings.api.service.LedgerService ledgerService, PaymentRepository paymentRepository, PaymentMapper paymentMapper, PaymentExecutionService executionService, DepositAccountService accountService, PaymentTargetRepository targetRepository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TransactionStatusBOcancelPayment(String paymentId)TransactionStatusBOexecutePayment(String paymentId, String userName)Execute a payment.booleanexistingPaymentById(String paymentId)booleanexistingTargetById(String paymentTargetId)PaymentBOgetPaymentById(String paymentId)List<PaymentBO>getPaymentsByTypeStatusAndDebtor(PaymentTypeBO paymentType, TransactionStatusBO status, Set<String> accountIds)org.springframework.data.domain.Page<PaymentBO>getPaymentsByTypeStatusAndDebtorPaged(PaymentTypeBO paymentType, TransactionStatusBO status, Set<String> accountIds, org.springframework.data.domain.Pageable pageable)TransactionStatusBOgetPaymentStatusById(String paymentId)PaymentBOinitiatePayment(PaymentBO payment, TransactionStatusBO status)StringreadIbanByPaymentId(String paymentId)TransactionStatusBOupdatePaymentStatus(String paymentId, TransactionStatusBO status)-
Methods inherited from class de.adorsys.ledgers.deposit.api.service.impl.AbstractServiceImpl
loadClearingAccount, loadLedger
-
-
-
-
Constructor Detail
-
DepositAccountPaymentServiceImpl
public DepositAccountPaymentServiceImpl(DepositAccountConfigService depositAccountConfigService, de.adorsys.ledgers.postings.api.service.LedgerService ledgerService, PaymentRepository paymentRepository, PaymentMapper paymentMapper, PaymentExecutionService executionService, DepositAccountService accountService, PaymentTargetRepository targetRepository)
-
-
Method Detail
-
getPaymentStatusById
public TransactionStatusBO getPaymentStatusById(String paymentId)
- Specified by:
getPaymentStatusByIdin interfaceDepositAccountPaymentService
-
getPaymentById
public PaymentBO getPaymentById(String paymentId)
- Specified by:
getPaymentByIdin interfaceDepositAccountPaymentService
-
initiatePayment
public PaymentBO initiatePayment(PaymentBO payment, TransactionStatusBO status)
- Specified by:
initiatePaymentin interfaceDepositAccountPaymentService
-
executePayment
public TransactionStatusBO executePayment(String paymentId, String userName)
Execute a payment. This principally applies to: - Single payment - Future date payment - Periodic Payment - Bulk Payment with batch execution+ Bulk payment without batch execution will be split into single payments and each single payment will be individually sent to this method.
- Specified by:
executePaymentin interfaceDepositAccountPaymentService
-
cancelPayment
public TransactionStatusBO cancelPayment(String paymentId)
- Specified by:
cancelPaymentin interfaceDepositAccountPaymentService
-
readIbanByPaymentId
public String readIbanByPaymentId(String paymentId)
- Specified by:
readIbanByPaymentIdin interfaceDepositAccountPaymentService
-
updatePaymentStatus
public TransactionStatusBO updatePaymentStatus(String paymentId, TransactionStatusBO status)
- Specified by:
updatePaymentStatusin interfaceDepositAccountPaymentService
-
getPaymentsByTypeStatusAndDebtor
public List<PaymentBO> getPaymentsByTypeStatusAndDebtor(PaymentTypeBO paymentType, TransactionStatusBO status, Set<String> accountIds)
- Specified by:
getPaymentsByTypeStatusAndDebtorin interfaceDepositAccountPaymentService
-
getPaymentsByTypeStatusAndDebtorPaged
public org.springframework.data.domain.Page<PaymentBO> getPaymentsByTypeStatusAndDebtorPaged(PaymentTypeBO paymentType, TransactionStatusBO status, Set<String> accountIds, org.springframework.data.domain.Pageable pageable)
- Specified by:
getPaymentsByTypeStatusAndDebtorPagedin interfaceDepositAccountPaymentService
-
existingTargetById
public boolean existingTargetById(String paymentTargetId)
- Specified by:
existingTargetByIdin interfaceDepositAccountPaymentService
-
existingPaymentById
public boolean existingPaymentById(String paymentId)
- Specified by:
existingPaymentByIdin interfaceDepositAccountPaymentService
-
-