Class SapRevenueCloudProductInboudHelper

java.lang.Object
com.sap.hybris.saprevenuecloudproduct.inbound.SapRevenueCloudProductInboudHelper

@Deprecated(since="1811", forRemoval=true) public class SapRevenueCloudProductInboudHelper extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
This class is deprecated since 1811
Helper class for all Product import translators
Since:
6.7
  • Constructor Details

    • SapRevenueCloudProductInboudHelper

      public SapRevenueCloudProductInboudHelper()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • mapMarketToCatalog

      public CatalogModel mapMarketToCatalog(String marketId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Iterates the SAPMarketToCatalogMappingModel to provide CatalogModel for a corresponding market id. If no market to CatalogModel found, default CatalogModel and version are selected.
      Parameters:
      marketId - - market ID maintained at SAP Revenue Cloud system
      Returns:
      CatalogModel - catalogModel
    • processCatalogVersionForProduct

      public de.hybris.platform.catalog.jalo.CatalogVersion processCatalogVersionForProduct(String marketId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the CatalogVersion for a market ID
      Parameters:
      marketId - - market ID maintained at SAP Revenue Cloud system
      Returns:
      CatalogVersion - catalog version
    • processProductForCodeAndMarketId

      public de.hybris.platform.jalo.product.Product processProductForCodeAndMarketId(String prodCodeMarkrtId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Retruns Product for a specific product code and market ID. Splits the product code and the market ID from the cell value and process it.
      Parameters:
      prodCodeMarkrtId - - product code with market ID combined with ':'
      Returns:
      Product - product
    • processSubscriptionPricePlanEndDate

      public void processSubscriptionPricePlanEndDate(String pricePlanId, de.hybris.platform.catalog.jalo.CatalogVersion cv)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Find the product associated to the subscription price plan and iterate through all its Subscription price plans. For the Subscription price plans whose price plan id is not the current one and end date is greater than current date, set it as current date as the end date
      Parameters:
      pricePlanId - - subscription pricePlan ID
      cv - - CatalogVersion
    • createUpdatePayNowChargeEntry

      public void createUpdatePayNowChargeEntry(String pricePlanId, de.hybris.platform.catalog.jalo.CatalogVersion cv)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create or update the OneTimeChargeEntryModel for a specific price plan ID and CatalogVersion First get the SubscriptionPricePlanModel from the price pan ID and the CatalogVersionModel. Then check if any OneTimeChargeEntryModel with BillingEventModel with code 'paynow' is present in the SubscriptionPricePlanModel. If yes, update the OneTimeChargeEntryModel's price with all other OneTimeChargeEntryModel's price value. If no OneTimeChargeEntryModel with BillingEventModel with code 'paynow' present, create a new one.
      Parameters:
      pricePlanId - - subscription price plan ID
      cv - - CatalogVersion
    • checkForPayNowChargeEntry

      public OneTimeChargeEntryModel checkForPayNowChargeEntry(SubscriptionPricePlanModel pricePlanModel)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks if any OneTimeChargeEntryModel with BillingEventModel with code 'paynow' present. if yes, return it. Otherwise create a new one and return it.
      Parameters:
      pricePlanModel - - SubscriptionPricePlanModel
      Returns:
      OneTimeChargeEntryModel - One Time charge entry with billing event paynow
    • updatePayNowChargeEntry

      public void updatePayNowChargeEntry(SubscriptionPricePlanModel pricePlanModel, OneTimeChargeEntryModel payNowCharge)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Update the OneTimeChargeEntryModel's price value with the sum of all other OneTimeChargeEntryModel price value associated to the specific SubscriptionPricePlanModel
      Parameters:
      pricePlanModel - - SubscriptionPricePlanModel
      payNowCharge - - OneTimeChargeEntryModel
    • getAttributeValue

      public Object getAttributeValue(de.hybris.platform.jalo.Item processedItem, String attributeName) throws de.hybris.platform.impex.jalo.ImpExException
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the attribute value for the attribute name from the Item being currently processed
      Parameters:
      processedItem - - current item being processed.
      attributeName - - name of the attribute
      Returns:
      Object - Generic item returned
      Throws:
      de.hybris.platform.impex.jalo.ImpExException
    • getSapMarketToCatalogMappingModelGenericDao

      public de.hybris.platform.servicelayer.internal.dao.GenericDao<SAPMarketToCatalogMappingModel> getSapMarketToCatalogMappingModelGenericDao()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the sapMarketToCatalogMappingModelGenericDao
    • setSapMarketToCatalogMappingModelGenericDao

      public void setSapMarketToCatalogMappingModelGenericDao(de.hybris.platform.servicelayer.internal.dao.GenericDao<SAPMarketToCatalogMappingModel> sapMarketToCatalogMappingModelGenericDao)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      sapMarketToCatalogMappingModelGenericDao - the sapMarketToCatalogMappingModelGenericDao to set
    • getDefaultCatalogId

      public String getDefaultCatalogId()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the defaultCatalogId
    • setDefaultCatalogId

      public void setDefaultCatalogId(String defaultCatalogId)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      defaultCatalogId - the defaultCatalogId to set
    • getDefaultCatalogVersion

      public String getDefaultCatalogVersion()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the defaultCatalogVersion
    • setDefaultCatalogVersion

      public void setDefaultCatalogVersion(String defaultCatalogVersion)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      defaultCatalogVersion - the defaultCatalogVersion to set
    • getCatalogService

      public de.hybris.platform.catalog.CatalogService getCatalogService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the catalogService
    • setCatalogService

      public void setCatalogService(de.hybris.platform.catalog.CatalogService catalogService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      catalogService - the catalogService to set
    • getCatalogVersionService

      public de.hybris.platform.catalog.CatalogVersionService getCatalogVersionService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the catalogVersionService
    • setCatalogVersionService

      public void setCatalogVersionService(de.hybris.platform.catalog.CatalogVersionService catalogVersionService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      catalogVersionService - the catalogVersionService to set
    • getProductService

      public de.hybris.platform.product.ProductService getProductService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the productService
    • setProductService

      public void setProductService(de.hybris.platform.product.ProductService productService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      productService - the productService to set
    • getSapRevenueCloudProductService

      public SapRevenueCloudProductService getSapRevenueCloudProductService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the sapRevenueCloudProductService
    • setSapRevenueCloudProductService

      public void setSapRevenueCloudProductService(SapRevenueCloudProductService sapRevenueCloudProductService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      sapRevenueCloudProductService - the sapRevenueCloudProductService to set
    • getModelService

      public de.hybris.platform.servicelayer.model.ModelService getModelService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the modelService
    • setModelService

      public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      modelService - the modelService to set
    • getBillingTimeService

      public de.hybris.platform.subscriptionservices.subscription.BillingTimeService getBillingTimeService()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns:
      the billingTimeService
    • setBillingTimeService

      public void setBillingTimeService(de.hybris.platform.subscriptionservices.subscription.BillingTimeService billingTimeService)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Parameters:
      billingTimeService - the billingTimeService to set