Package com.skava.accounts.service.impl
Class UpdateContractServiceImpl
java.lang.Object
com.skava.accounts.service.impl.ContractServiceImpl
com.skava.accounts.service.impl.UpdateContractServiceImpl
- All Implemented Interfaces:
UpdateContractService
,com.skava.core.EcommService<ContractRequestInternal,
ContractAPIResponse>
@Service
public class UpdateContractServiceImpl
extends ContractServiceImpl
implements UpdateContractService
The UpdateContractServiceImpl is used to update
a contract based on the provided information.
- Author:
- Infosys Equinox
-
Field Summary
Fields inherited from class com.skava.accounts.service.impl.ContractServiceImpl
contractCommonService, contractPropertiesRepository, contractsRepository, documentRepository, findContractServiceUtil, messageSource, paymentTermRepository
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
process
(@Valid ContractRequestInternal request) This method is used to create Account based on given Account.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.skava.core.EcommService
getValidateException, getValidator
-
Constructor Details
-
UpdateContractServiceImpl
public UpdateContractServiceImpl()
-
-
Method Details
-
getValidator
@ValidatorEvent(serviceName="account", webhookName="accountservice/validator/contract", actionType="update") public List<com.skava.core.validation.ValidatorComponent> getValidator()- Specified by:
getValidator
in interfacecom.skava.core.EcommService<ContractRequestInternal,
ContractAPIResponse>
-
process
@SendEvent(eventType="accountservice/contract/patch", identifier="response_contract.id") public ContractAPIResponse process(@Valid @Valid ContractRequestInternal request) This method is used to create Account based on given Account.- Specified by:
process
in interfacecom.skava.core.EcommService<ContractRequestInternal,
ContractAPIResponse> - Parameters:
request
- It contains the attributes required for the creation of Account.- Returns:
- It returns the
ContractAPIResponse
. - Throws:
com.skava.core.validation.ValidateException
- the validate exception
-