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