Package com.skava.accounts.service.impl
Class CreateCollectionServiceImpl
java.lang.Object
com.skava.accounts.service.impl.CreateCollectionServiceImpl
- All Implemented Interfaces:
CreateCollectionService
,com.skava.core.EcommService<CollectionRequestInternal,
CollectionAPIResponse>
The Class CreateCollectionServiceImpl is used for creating collection based on the provided information.
- Author:
- Infosys Equinox
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateAccountTypeForThisCollection
(CollectionsEntity collectionEntity) This method is used to created Default accountypes for each newly created CollectioncreatePaymentTermForThisCollection
(CollectionsEntity collectionEntity) This method is used to created Default paymentTerm for each newly created CollectionList<com.skava.core.validation.ValidatorComponent>
process
(CollectionRequestInternal request) This method is used to create Collection based on given Collection.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
-
CreateCollectionServiceImpl
public CreateCollectionServiceImpl()
-
-
Method Details
-
getValidator
- Specified by:
getValidator
in interfacecom.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 interfacecom.skava.core.EcommService<CollectionRequestInternal,
CollectionAPIResponse> - Parameters:
request
- It contains the attributes required for the creation of Collection.- Returns:
- It returns the
CollectionAPIResponse
. throwsValidateException
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.
-