Package com.skava.accounts.service.impl
Class CreateContractServiceImpl
java.lang.Object
com.skava.accounts.service.impl.CreateContractServiceImpl
- All Implemented Interfaces:
CreateContractService
,com.skava.core.EcommService<ContractRequestInternal,
ContractAPIResponse>
The Class CreateAccountServiceImpl is used for creating contract based on the provided information.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<com.skava.core.validation.ValidatorComponent>
process
(@Valid ContractRequestInternal request) This method is used to create a Contract based on given Contract request Object.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
-
CreateContractServiceImpl
public CreateContractServiceImpl()
-
-
Method Details
-
getValidator
@ValidatorEvent(serviceName="account", webhookName="accountservice/validator/contract", actionType="create") public List<com.skava.core.validation.ValidatorComponent> getValidator()- Specified by:
getValidator
in interfacecom.skava.core.EcommService<ContractRequestInternal,
ContractAPIResponse>
-
process
@SendEvent(eventType="accountservice/contract/create", identifier="response_contract.id") public ContractAPIResponse process(@Valid @Valid ContractRequestInternal request) This method is used to create a Contract based on given Contract request Object.- Specified by:
process
in interfacecom.skava.core.EcommService<ContractRequestInternal,
ContractAPIResponse> - Parameters:
request
- Object of typeContractRequestInternal
. It contains the attributes required for the creation of Contract.- Returns:
- It returns
ContractAPIResponse
.
-