Class CreateAccountServiceImpl

java.lang.Object
com.skava.accounts.service.impl.CreateAccountServiceImpl
All Implemented Interfaces:
CreateAccountService, com.skava.core.EcommService<AccountRequestInternal,AccountAPIResponse>

@Service public class CreateAccountServiceImpl extends Object implements CreateAccountService
This Class CreateAccountServiceImpl is used for creating account based on the provided information.
Author:
Infosys Equinox
  • 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 interface com.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 interface com.skava.core.EcommService<AccountRequestInternal,AccountAPIResponse>
      Parameters:
      request - object of type AccountRequestInternal It contains the attributes required for the creation of Account.
      Returns:
      It returns the object of type AccountAPIResponse which consists of the created account.