Class CreateCollectionServiceImpl

java.lang.Object
com.skava.accounts.service.impl.CreateCollectionServiceImpl
All Implemented Interfaces:
CreateCollectionService, com.skava.core.EcommService<CollectionRequestInternal,CollectionAPIResponse>

@Service public class CreateCollectionServiceImpl extends Object implements CreateCollectionService
The Class CreateCollectionServiceImpl is used for creating collection based on the provided information.
Author:
Infosys Equinox
  • Constructor Details

    • CreateCollectionServiceImpl

      public CreateCollectionServiceImpl()
  • Method Details

    • getValidator

      public List<com.skava.core.validation.ValidatorComponent> getValidator()
      Specified by:
      getValidator in interface com.skava.core.EcommService<CollectionRequestInternal,CollectionAPIResponse>
    • process

      @SendEvent(eventType="accountservice/collection/create", identifier="response_id") public CollectionAPIResponse process(CollectionRequestInternal request)
      This method is used to create Collection based on given Collection.
      Specified by:
      process in interface com.skava.core.EcommService<CollectionRequestInternal,CollectionAPIResponse>
      Parameters:
      request - It contains the attributes required for the creation of Collection.
      Returns:
      It returns the CollectionAPIResponse. throws ValidateException if any validation error occurs.
    • createAccountTypeForThisCollection

      public List<AccountTypesEntity> createAccountTypeForThisCollection(CollectionsEntity collectionEntity)
      This method is used to created Default accountypes for each newly created Collection
      Parameters:
      collectionEntity - the collectionEntity
      Returns:
      it returns a list of objects of type AccountTypesEntity
    • createPaymentTermForThisCollection

      public List<PaymentTermEntity> createPaymentTermForThisCollection(CollectionsEntity collectionEntity)
      This method is used to created Default paymentTerm for each newly created Collection
      Parameters:
      collectionEntity - the collectionEntity
      Returns:
      the list of PaymentTermEntity object.