Class DefaultMockCreateCpiService
java.lang.Object
de.hybris.platform.b2ctelcofulfillmentprocess.impl.DefaultMockCreateCpiService
- All Implemented Interfaces:
MockCreateCpiService
Default implementation for
MockCreateCpiService.- Since:
- 1810
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected TmaSubscribedProductModelcreateNewSubscribedProduct(AbstractOrderEntryModel orderEntry) protected de.hybris.platform.catalog.CatalogVersionServiceprotected de.hybris.platform.category.CategoryServiceprotected TmaCustomerInventoryServiceprotected de.hybris.platform.order.EntryGroupServiceprotected de.hybris.platform.servicelayer.model.ModelServicevoidmockCreateSubscriptionsFromOrder(OrderModel orderModel) Process each order entry from the order based on order entry process type.Supported process types: ACQUISITION: creates new customer inventory entitiesTmaSubscriptionBaseModel,TmaBillingAgreementModelfor assigning the new createdTmaSubscribedProductModel.protected voidProcess the list of ACQUISITION order entries.protected voidprocessEntriesByProcessType(List<AbstractOrderEntryModel> groupEntries, TmaProcessType processType) protected voidProcess a list of entries having the same entry group.protected voidprocessOrderGroupEntries(OrderModel orderModel) protected voidprocessOrderStandaloneEntries(OrderModel orderModel) voidsetCatalogVersionService(de.hybris.platform.catalog.CatalogVersionService catalogVersionService) voidsetCategoryService(de.hybris.platform.category.CategoryService categoryService) voidsetCustomerInventoryService(TmaCustomerInventoryService customerInventoryService) voidsetDefaultBillingSystemId(String defaultBillingSystemId) voidsetDefaultSubscriptionStatus(String defaultSubscriptionStatus) voidsetEntryGroupService(de.hybris.platform.order.EntryGroupService entryGroupService) voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetSubscribedProductService(TmaSubscribedProductService subscribedProductService)
-
Constructor Details
-
DefaultMockCreateCpiService
public DefaultMockCreateCpiService()
-
-
Method Details
-
mockCreateSubscriptionsFromOrder
Description copied from interface:MockCreateCpiServiceProcess each order entry from the order based on order entry process type.Supported process types: ACQUISITION: creates new customer inventory entitiesTmaSubscriptionBaseModel,TmaBillingAgreementModelfor assigning the new createdTmaSubscribedProductModel.- Specified by:
mockCreateSubscriptionsFromOrderin interfaceMockCreateCpiService- Parameters:
orderModel- current order to be processed
-
processOrderStandaloneEntries
-
processOrderGroupEntries
-
processEntriesByProcessType
protected void processEntriesByProcessType(List<AbstractOrderEntryModel> groupEntries, TmaProcessType processType) -
processEntryGroupEntries
Process a list of entries having the same entry group. Only Acquisition entries are processed.- Parameters:
entries- entries having the same entry group
-
processAcquisitionEntries
Process the list of ACQUISITION order entries. The entries are all from the same entry group or standalone products. From the entries list are excluded the ones that don't a product specification and the ones without order subscription details, especially the subscription term. For each entry group, or each standalone product, a newTmaBillingAgreementModelis created, then for each differentTmaProductSpecTypeModela newTmaSubscriptionBaseModelis created and attached to the billing agreement. For each entry, a newTmaSubscribedProductModelandTmaBillingAgreementItemModelare created to be finally assigned to the billing agreement.- Parameters:
entries- order entries list
-
createNewSubscribedProduct
-
getSubscribedProductService
-
setSubscribedProductService
-
getDefaultBillingSystemId
-
setDefaultBillingSystemId
-
getDefaultSubscriptionStatus
-
setDefaultSubscriptionStatus
-
getCatalogVersionService
protected de.hybris.platform.catalog.CatalogVersionService getCatalogVersionService() -
setCatalogVersionService
public void setCatalogVersionService(de.hybris.platform.catalog.CatalogVersionService catalogVersionService) -
getCategoryService
protected de.hybris.platform.category.CategoryService getCategoryService() -
setCategoryService
public void setCategoryService(de.hybris.platform.category.CategoryService categoryService) -
getCustomerInventoryService
-
setCustomerInventoryService
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService() -
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) -
getEntryGroupService
protected de.hybris.platform.order.EntryGroupService getEntryGroupService() -
setEntryGroupService
public void setEntryGroupService(de.hybris.platform.order.EntryGroupService entryGroupService)
-