Class SapRevenueCloudProductInboudHelper
- java.lang.Object
-
- com.sap.hybris.saprevenuecloudproduct.inbound.SapRevenueCloudProductInboudHelper
-
@Deprecated public class SapRevenueCloudProductInboudHelper extends java.lang.ObjectDeprecated.This class is deprecated since 1811Helper class for all Product import translators- Since:
- 6.7
-
-
Constructor Summary
Constructors Constructor Description SapRevenueCloudProductInboudHelper()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description OneTimeChargeEntryModelcheckForPayNowChargeEntry(SubscriptionPricePlanModel pricePlanModel)Deprecated.Checks if anyOneTimeChargeEntryModelwithBillingEventModelwith code 'paynow' present.voidcreateUpdatePayNowChargeEntry(java.lang.String pricePlanId, CatalogVersion cv)Deprecated.Create or update theOneTimeChargeEntryModelfor a specific price plan ID andCatalogVersionFirst get theSubscriptionPricePlanModelfrom the price pan ID and theCatalogVersionModel.java.lang.ObjectgetAttributeValue(Item processedItem, java.lang.String attributeName)Deprecated.Returns the attribute value for the attribute name from theItembeing currently processedBillingTimeServicegetBillingTimeService()Deprecated.CatalogServicegetCatalogService()Deprecated.CatalogVersionServicegetCatalogVersionService()Deprecated.java.lang.StringgetDefaultCatalogId()Deprecated.java.lang.StringgetDefaultCatalogVersion()Deprecated.ModelServicegetModelService()Deprecated.ProductServicegetProductService()Deprecated.GenericDao<SAPMarketToCatalogMappingModel>getSapMarketToCatalogMappingModelGenericDao()Deprecated.SapRevenueCloudProductServicegetSapRevenueCloudProductService()Deprecated.CatalogModelmapMarketToCatalog(java.lang.String marketId)Deprecated.Iterates theSAPMarketToCatalogMappingModelto provideCatalogModelfor a corresponding market id.CatalogVersionprocessCatalogVersionForProduct(java.lang.String marketId)Deprecated.Returns theCatalogVersionfor a market IDProductprocessProductForCodeAndMarketId(java.lang.String prodCodeMarkrtId)Deprecated.RetrunsProductfor a specific product code and market ID.voidprocessSubscriptionPricePlanEndDate(java.lang.String pricePlanId, CatalogVersion cv)Deprecated.Find the product associated to the subscription price plan and iterate through all its Subscription price plans.voidsetBillingTimeService(BillingTimeService billingTimeService)Deprecated.voidsetCatalogService(CatalogService catalogService)Deprecated.voidsetCatalogVersionService(CatalogVersionService catalogVersionService)Deprecated.voidsetDefaultCatalogId(java.lang.String defaultCatalogId)Deprecated.voidsetDefaultCatalogVersion(java.lang.String defaultCatalogVersion)Deprecated.voidsetModelService(ModelService modelService)Deprecated.voidsetProductService(ProductService productService)Deprecated.voidsetSapMarketToCatalogMappingModelGenericDao(GenericDao<SAPMarketToCatalogMappingModel> sapMarketToCatalogMappingModelGenericDao)Deprecated.voidsetSapRevenueCloudProductService(SapRevenueCloudProductService sapRevenueCloudProductService)Deprecated.voidupdatePayNowChargeEntry(SubscriptionPricePlanModel pricePlanModel, OneTimeChargeEntryModel payNowCharge)Deprecated.Update theOneTimeChargeEntryModel's price value with the sum of all otherOneTimeChargeEntryModelprice value associated to the specificSubscriptionPricePlanModel
-
-
-
Method Detail
-
mapMarketToCatalog
public CatalogModel mapMarketToCatalog(java.lang.String marketId)
Deprecated.Iterates theSAPMarketToCatalogMappingModelto provideCatalogModelfor a corresponding market id. If no market toCatalogModelfound, defaultCatalogModeland version are selected.- Parameters:
marketId- - market ID maintained at SAP Revenue Cloud system- Returns:
CatalogModel- catalogModel
-
processCatalogVersionForProduct
public CatalogVersion processCatalogVersionForProduct(java.lang.String marketId)
Deprecated.Returns theCatalogVersionfor a market ID- Parameters:
marketId- - market ID maintained at SAP Revenue Cloud system- Returns:
CatalogVersion- catalog version
-
processProductForCodeAndMarketId
public Product processProductForCodeAndMarketId(java.lang.String prodCodeMarkrtId)
Deprecated.RetrunsProductfor 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(java.lang.String pricePlanId, CatalogVersion cv)Deprecated.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 IDcv- -CatalogVersion
-
createUpdatePayNowChargeEntry
public void createUpdatePayNowChargeEntry(java.lang.String pricePlanId, CatalogVersion cv)Deprecated.Create or update theOneTimeChargeEntryModelfor a specific price plan ID andCatalogVersionFirst get theSubscriptionPricePlanModelfrom the price pan ID and theCatalogVersionModel. Then check if anyOneTimeChargeEntryModelwithBillingEventModelwith code 'paynow' is present in theSubscriptionPricePlanModel. If yes, update theOneTimeChargeEntryModel's price with all otherOneTimeChargeEntryModel's price value. If noOneTimeChargeEntryModelwithBillingEventModelwith code 'paynow' present, create a new one.- Parameters:
pricePlanId- - subscription price plan IDcv- -CatalogVersion
-
checkForPayNowChargeEntry
public OneTimeChargeEntryModel checkForPayNowChargeEntry(SubscriptionPricePlanModel pricePlanModel)
Deprecated.Checks if anyOneTimeChargeEntryModelwithBillingEventModelwith 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.Update theOneTimeChargeEntryModel's price value with the sum of all otherOneTimeChargeEntryModelprice value associated to the specificSubscriptionPricePlanModel- Parameters:
pricePlanModel- -SubscriptionPricePlanModelpayNowCharge- -OneTimeChargeEntryModel
-
getAttributeValue
public java.lang.Object getAttributeValue(Item processedItem, java.lang.String attributeName) throws ImpExException
Deprecated.Returns the attribute value for the attribute name from theItembeing currently processed- Parameters:
processedItem- - current item being processed.attributeName- - name of the attribute- Returns:
Object- Generic item returned- Throws:
ImpExException
-
getSapMarketToCatalogMappingModelGenericDao
public GenericDao<SAPMarketToCatalogMappingModel> getSapMarketToCatalogMappingModelGenericDao()
Deprecated.- Returns:
- the sapMarketToCatalogMappingModelGenericDao
-
setSapMarketToCatalogMappingModelGenericDao
public void setSapMarketToCatalogMappingModelGenericDao(GenericDao<SAPMarketToCatalogMappingModel> sapMarketToCatalogMappingModelGenericDao)
Deprecated.- Parameters:
sapMarketToCatalogMappingModelGenericDao- the sapMarketToCatalogMappingModelGenericDao to set
-
getDefaultCatalogId
public java.lang.String getDefaultCatalogId()
Deprecated.- Returns:
- the defaultCatalogId
-
setDefaultCatalogId
public void setDefaultCatalogId(java.lang.String defaultCatalogId)
Deprecated.- Parameters:
defaultCatalogId- the defaultCatalogId to set
-
getDefaultCatalogVersion
public java.lang.String getDefaultCatalogVersion()
Deprecated.- Returns:
- the defaultCatalogVersion
-
setDefaultCatalogVersion
public void setDefaultCatalogVersion(java.lang.String defaultCatalogVersion)
Deprecated.- Parameters:
defaultCatalogVersion- the defaultCatalogVersion to set
-
getCatalogService
public CatalogService getCatalogService()
Deprecated.- Returns:
- the catalogService
-
setCatalogService
public void setCatalogService(CatalogService catalogService)
Deprecated.- Parameters:
catalogService- the catalogService to set
-
getCatalogVersionService
public CatalogVersionService getCatalogVersionService()
Deprecated.- Returns:
- the catalogVersionService
-
setCatalogVersionService
public void setCatalogVersionService(CatalogVersionService catalogVersionService)
Deprecated.- Parameters:
catalogVersionService- the catalogVersionService to set
-
getProductService
public ProductService getProductService()
Deprecated.- Returns:
- the productService
-
setProductService
public void setProductService(ProductService productService)
Deprecated.- Parameters:
productService- the productService to set
-
getSapRevenueCloudProductService
public SapRevenueCloudProductService getSapRevenueCloudProductService()
Deprecated.- Returns:
- the sapRevenueCloudProductService
-
setSapRevenueCloudProductService
public void setSapRevenueCloudProductService(SapRevenueCloudProductService sapRevenueCloudProductService)
Deprecated.- Parameters:
sapRevenueCloudProductService- the sapRevenueCloudProductService to set
-
getModelService
public ModelService getModelService()
Deprecated.- Returns:
- the modelService
-
setModelService
public void setModelService(ModelService modelService)
Deprecated.- Parameters:
modelService- the modelService to set
-
getBillingTimeService
public BillingTimeService getBillingTimeService()
Deprecated.- Returns:
- the billingTimeService
-
setBillingTimeService
public void setBillingTimeService(BillingTimeService billingTimeService)
Deprecated.- Parameters:
billingTimeService- the billingTimeService to set
-
-