Class DefaultMockCreateCpiService

java.lang.Object
de.hybris.platform.b2ctelcofulfillmentprocess.impl.DefaultMockCreateCpiService
All Implemented Interfaces:
MockCreateCpiService

public class DefaultMockCreateCpiService extends Object implements MockCreateCpiService
Default implementation for MockCreateCpiService.
Since:
1810
  • Constructor Details

    • DefaultMockCreateCpiService

      public DefaultMockCreateCpiService()
  • Method Details

    • mockCreateSubscriptionsFromOrder

      public void mockCreateSubscriptionsFromOrder(OrderModel orderModel)
      Description copied from interface: MockCreateCpiService
      Process each order entry from the order based on order entry process type.Supported process types: ACQUISITION: creates new customer inventory entities TmaSubscriptionBaseModel, TmaBillingAgreementModel for assigning the new created TmaSubscribedProductModel.
      Specified by:
      mockCreateSubscriptionsFromOrder in interface MockCreateCpiService
      Parameters:
      orderModel - current order to be processed
    • processOrderStandaloneEntries

      protected void processOrderStandaloneEntries(OrderModel orderModel)
    • processOrderGroupEntries

      protected void processOrderGroupEntries(OrderModel orderModel)
    • processEntriesByProcessType

      protected void processEntriesByProcessType(List<AbstractOrderEntryModel> groupEntries, TmaProcessType processType)
    • processEntryGroupEntries

      protected void processEntryGroupEntries(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(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 new TmaBillingAgreementModel is created, then for each different TmaProductSpecTypeModel a new TmaSubscriptionBaseModel is created and attached to the billing agreement. For each entry, a new TmaSubscribedProductModel and TmaBillingAgreementItemModel are 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 String getDefaultBillingSystemId()
    • setDefaultBillingSystemId

      public void setDefaultBillingSystemId(String defaultBillingSystemId)
    • getDefaultSubscriptionStatus

      public String getDefaultSubscriptionStatus()
    • setDefaultSubscriptionStatus

      public void setDefaultSubscriptionStatus(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)