Class DefaultMockCreateCpiService

    • Constructor Detail

      • DefaultMockCreateCpiService

        public DefaultMockCreateCpiService()
    • Method Detail

      • processOrderStandaloneEntries

        protected void processOrderStandaloneEntries​(OrderModel orderModel)
      • processOrderGroupEntries

        protected void processOrderGroupEntries​(OrderModel orderModel)
      • 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 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
      • 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)
      • 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)