Class AppDuplicatePaymentValidatorImpl
java.lang.Object
com.skava.apppaymentplugin.service.impl.AppDuplicatePaymentValidatorImpl
- All Implemented Interfaces:
AppDuplicatePaymentValidator
@Component
public class AppDuplicatePaymentValidatorImpl
extends Object
implements AppDuplicatePaymentValidator
Implementation of the M1DuplicatePaymentValidator
- Author:
- Infosys Equinox
-
Field Summary
FieldsModifier and TypeFieldDescriptionM1 Utility class instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<com.skava.payment.model.entity.payment.PaymentEntity>
checkIfPaymentExists
(com.skava.payment.model.entity.payment.PaymentEntity payment, long collectionId) Checks if duplicate payment exists for the given payment in the given collection
-
Field Details
-
completeApiCommonUtil
M1 Utility class instance
-
-
Constructor Details
-
AppDuplicatePaymentValidatorImpl
public AppDuplicatePaymentValidatorImpl()
-
-
Method Details
-
checkIfPaymentExists
public Optional<com.skava.payment.model.entity.payment.PaymentEntity> checkIfPaymentExists(com.skava.payment.model.entity.payment.PaymentEntity payment, long collectionId) Checks if duplicate payment exists for the given payment in the given collection- Specified by:
checkIfPaymentExists
in interfaceAppDuplicatePaymentValidator
- Parameters:
payment
- APaymentEntity
object.collectionId
- A unique identifier of a collection.- Returns:
-