Class DefaultMockCreateCpiService
- java.lang.Object
-
- de.hybris.platform.b2ctelcofulfillmentprocess.impl.DefaultMockCreateCpiService
-
- All Implemented Interfaces:
MockCreateCpiService
public class DefaultMockCreateCpiService extends java.lang.Object implements MockCreateCpiService
Default implementation forMockCreateCpiService.- Since:
- 1810
-
-
Constructor Summary
Constructors Constructor Description DefaultMockCreateCpiService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TmaSubscribedProductModelcreateNewSubscribedProduct(AbstractOrderEntryModel orderEntry)protected de.hybris.platform.catalog.CatalogVersionServicegetCatalogVersionService()protected de.hybris.platform.category.CategoryServicegetCategoryService()protected TmaCustomerInventoryServicegetCustomerInventoryService()java.lang.StringgetDefaultBillingSystemId()java.lang.StringgetDefaultSubscriptionStatus()protected de.hybris.platform.order.EntryGroupServicegetEntryGroupService()protected de.hybris.platform.servicelayer.model.ModelServicegetModelService()TmaSubscribedProductServicegetSubscribedProductService()voidmockCreateSubscriptionsFromOrder(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 voidprocessAcquisitionEntries(java.util.List<AbstractOrderEntryModel> entries)Process the list of ACQUISITION order entries.protected voidprocessEntriesByProcessType(java.util.List<AbstractOrderEntryModel> groupEntries, TmaProcessType processType)protected voidprocessEntryGroupEntries(java.util.List<AbstractOrderEntryModel> entries)Process 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(java.lang.String defaultBillingSystemId)voidsetDefaultSubscriptionStatus(java.lang.String defaultSubscriptionStatus)voidsetEntryGroupService(de.hybris.platform.order.EntryGroupService entryGroupService)voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService)voidsetSubscribedProductService(TmaSubscribedProductService subscribedProductService)
-
-
-
Method Detail
-
mockCreateSubscriptionsFromOrder
public void mockCreateSubscriptionsFromOrder(OrderModel orderModel)
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
protected void processOrderStandaloneEntries(OrderModel orderModel)
-
processOrderGroupEntries
protected void processOrderGroupEntries(OrderModel orderModel)
-
processEntriesByProcessType
protected void processEntriesByProcessType(java.util.List<AbstractOrderEntryModel> groupEntries, TmaProcessType processType)
-
processEntryGroupEntries
protected void processEntryGroupEntries(java.util.List<AbstractOrderEntryModel> entries)
Process a list of entries having the same entry group. Only Acquisition entries are processed.- Parameters:
entries- entries having the same entry group
-
processAcquisitionEntries
protected void processAcquisitionEntries(java.util.List<AbstractOrderEntryModel> entries)
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
protected TmaSubscribedProductModel createNewSubscribedProduct(AbstractOrderEntryModel orderEntry)
-
getSubscribedProductService
public TmaSubscribedProductService getSubscribedProductService()
-
setSubscribedProductService
public void setSubscribedProductService(TmaSubscribedProductService subscribedProductService)
-
getDefaultBillingSystemId
public java.lang.String getDefaultBillingSystemId()
-
setDefaultBillingSystemId
public void setDefaultBillingSystemId(java.lang.String defaultBillingSystemId)
-
getDefaultSubscriptionStatus
public java.lang.String getDefaultSubscriptionStatus()
-
setDefaultSubscriptionStatus
public void setDefaultSubscriptionStatus(java.lang.String defaultSubscriptionStatus)
-
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
protected TmaCustomerInventoryService getCustomerInventoryService()
-
setCustomerInventoryService
public void setCustomerInventoryService(TmaCustomerInventoryService customerInventoryService)
-
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)
-
-