Class PaymentOptionRuleProcess
java.lang.Object
com.skava.payment.service.impl.PaymentRepositoriesAssemblersAndUtils
com.skava.payment.service.impl.PaymentAutowires
com.skava.payment.service.impl.CommonDependenciesExt
com.skava.payment.service.impl.CommonDependencies
com.skava.paymentapp.process.paymentoption.PaymentOptionRuleProcess
@Component
@Audit
public class PaymentOptionRuleProcess
extends com.skava.payment.service.impl.CommonDependencies
-
Field Summary
Fields inherited from class com.skava.payment.service.impl.PaymentAutowires
authHelper, authProps, context, encryptionHelper, findProviderMasterServiceImpl, messageSource, objectMapper, paymentEventService, paymentEventServiceExt, paymentMessageSender, paymentPluginHandler, paymentUtil, pluginservice, redisTemplate, serviceAutoWires, specificationUtil, transactionHandler, transactionValidatorHelper, validators
Fields inherited from class com.skava.payment.service.impl.PaymentRepositoriesAssemblersAndUtils
authTokenHandler, cacheUtil, collectionAttributeRepository, collectionPropertyRepository, collectionProviderAssembler, collectionProviderRepository, collectionRepository, paymentAssembler, paymentCacheUtil, paymentItemAssembler, paymentItemRepository, paymentPropertyRepository, paymentProviderRepository, paymentRepository, providerMasterAssembler, providerMasterRepository, transactionAssembler, transactionRepository, validatorsUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThis method creates the payment option rule for a given payment option id and collection iddeleteById
(GetPaymentOptionRuleRequest request) This method is used for deleting the payment option rule for a given payment option and collection id param request - the request consists of all required idsorg.springframework.data.domain.Page<PaymentOptionRuleEntity>
findAll
(org.springframework.data.jpa.domain.Specification<PaymentOptionRuleEntity> paymentRuleSpecifications, org.springframework.data.domain.Pageable pageRequest) getById
(GetPaymentOptionRuleRequest request) This method is for fetching a payment option rule for a given collection id and payment option idThis method is used for patch update of payment option rule for a given collection id and payment option idThis method is used for updating the payment option rule for a given collection id and payment option idMethods inherited from class com.skava.payment.service.impl.CommonDependencies
cacheClearBillingAddressProvider, checkForDuplicateName, checkPrevilegeAndGetProfileId, doAuthCheckAndGetPayment, doAuthCheckAndGetPayment, getCollectionProperty, getCollectionProperty, getCollectionProviderFromPayment, getCollectionProviderId, getPaymentItem, getPaymentProvider, getProviderMasterById, safeGetCollectionProperty, savePayment, updateProperties, validateAndGetCollection, validateCollection, validateProfileId, validateProfileIdForPaymentItem, validateProfileIdForPaymentItem, validateProfileIdForPaymentItem
Methods inherited from class com.skava.payment.service.impl.CommonDependenciesExt
audit, createPaymentProvider, decryptAndCreatePaymentProvider, doPreAuth, getListFromIterator, getTransaction, getTransactionFromRefTransId, getTransactionFromRefTransId, getUserIdFromAuth, hasPaymentItem, setPropertyInRequestContext, updateTransaction
Methods inherited from class com.skava.payment.service.impl.PaymentAutowires
getAuthHelper, getAuthProps, getFindProviderMasterServiceImpl, getMessageSource, getPaymentPluginHandler
Methods inherited from class com.skava.payment.service.impl.PaymentRepositoriesAssemblersAndUtils
getAuthTokenHandler, getCacheUtil, getCollectionAttributeRepository, getCollectionPropertyRepository, getCollectionProviderAssembler, getCollectionProviderRepository, getCollectionRepository, getPaymentAssembler, getPaymentCacheUtil, getPaymentItemAssembler, getPaymentItemRepository, getPaymentPropertyRepository, getPaymentProviderRepository, getPaymentRepository, getProviderMasterAssembler, getProviderMasterRepository, getTransactionAssembler, getTransactionRepository, getValidatorsUtil
-
Constructor Details
-
PaymentOptionRuleProcess
public PaymentOptionRuleProcess()
-
-
Method Details
-
create
This method creates the payment option rule for a given payment option id and collection id- Parameters:
request
- - payload- Returns:
- CreatePaymentOptionRuleResponse
-
getById
This method is for fetching a payment option rule for a given collection id and payment option id- Parameters:
request
- - the request consists of all ids required- Returns:
- CreatePaymentOptionRuleResponse
-
deleteById
This method is used for deleting the payment option rule for a given payment option and collection id param request - the request consists of all required ids- Returns:
- - String
-
updateRule
This method is used for updating the payment option rule for a given collection id and payment option id- Parameters:
request
- - payload- Returns:
- CreatePaymentOptionRuleResponse
-
patchUpdateRule
public CreatePaymentOptionRuleResponse patchUpdateRule(CreatePaymentOptionRuleRequestInternal request) This method is used for patch update of payment option rule for a given collection id and payment option id- Parameters:
request
- - payload- Returns:
- CreatePaymentOptionRuleResponse
-
findAll
public org.springframework.data.domain.Page<PaymentOptionRuleEntity> findAll(org.springframework.data.jpa.domain.Specification<PaymentOptionRuleEntity> paymentRuleSpecifications, org.springframework.data.domain.Pageable pageRequest)
-