Class SapRevenueCloudProductInboudHelper
- java.lang.Object
-
- com.sap.hybris.saprevenuecloudproduct.inbound.SapRevenueCloudProductInboudHelper
-
@Deprecated public class SapRevenueCloudProductInboudHelper extends java.lang.Object
Deprecated.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 OneTimeChargeEntryModel
checkForPayNowChargeEntry(SubscriptionPricePlanModel pricePlanModel)
Deprecated.Checks if anyOneTimeChargeEntryModel
withBillingEventModel
with code 'paynow' present.void
createUpdatePayNowChargeEntry(java.lang.String pricePlanId, CatalogVersion cv)
Deprecated.Create or update theOneTimeChargeEntryModel
for a specific price plan ID andCatalogVersion
First get theSubscriptionPricePlanModel
from the price pan ID and theCatalogVersionModel
.java.lang.Object
getAttributeValue(Item processedItem, java.lang.String attributeName)
Deprecated.Returns the attribute value for the attribute name from theItem
being currently processedBillingTimeService
getBillingTimeService()
Deprecated.CatalogService
getCatalogService()
Deprecated.CatalogVersionService
getCatalogVersionService()
Deprecated.java.lang.String
getDefaultCatalogId()
Deprecated.java.lang.String
getDefaultCatalogVersion()
Deprecated.ModelService
getModelService()
Deprecated.ProductService
getProductService()
Deprecated.GenericDao<SAPMarketToCatalogMappingModel>
getSapMarketToCatalogMappingModelGenericDao()
Deprecated.SapRevenueCloudProductService
getSapRevenueCloudProductService()
Deprecated.CatalogModel
mapMarketToCatalog(java.lang.String marketId)
Deprecated.Iterates theSAPMarketToCatalogMappingModel
to provideCatalogModel
for a corresponding market id.CatalogVersion
processCatalogVersionForProduct(java.lang.String marketId)
Deprecated.Returns theCatalogVersion
for a market IDProduct
processProductForCodeAndMarketId(java.lang.String prodCodeMarkrtId)
Deprecated.RetrunsProduct
for a specific product code and market ID.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.void
setBillingTimeService(BillingTimeService billingTimeService)
Deprecated.void
setCatalogService(CatalogService catalogService)
Deprecated.void
setCatalogVersionService(CatalogVersionService catalogVersionService)
Deprecated.void
setDefaultCatalogId(java.lang.String defaultCatalogId)
Deprecated.void
setDefaultCatalogVersion(java.lang.String defaultCatalogVersion)
Deprecated.void
setModelService(ModelService modelService)
Deprecated.void
setProductService(ProductService productService)
Deprecated.void
setSapMarketToCatalogMappingModelGenericDao(GenericDao<SAPMarketToCatalogMappingModel> sapMarketToCatalogMappingModelGenericDao)
Deprecated.void
setSapRevenueCloudProductService(SapRevenueCloudProductService sapRevenueCloudProductService)
Deprecated.void
updatePayNowChargeEntry(SubscriptionPricePlanModel pricePlanModel, OneTimeChargeEntryModel payNowCharge)
Deprecated.Update theOneTimeChargeEntryModel
's price value with the sum of all otherOneTimeChargeEntryModel
price value associated to the specificSubscriptionPricePlanModel
-
-
-
Method Detail
-
mapMarketToCatalog
public CatalogModel mapMarketToCatalog(java.lang.String marketId)
Deprecated.Iterates theSAPMarketToCatalogMappingModel
to provideCatalogModel
for a corresponding market id. If no market toCatalogModel
found, defaultCatalogModel
and 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 theCatalogVersion
for 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.RetrunsProduct
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(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 theOneTimeChargeEntryModel
for a specific price plan ID andCatalogVersion
First get theSubscriptionPricePlanModel
from the price pan ID and theCatalogVersionModel
. Then check if anyOneTimeChargeEntryModel
withBillingEventModel
with code 'paynow' is present in theSubscriptionPricePlanModel
. If yes, update theOneTimeChargeEntryModel
's price with all otherOneTimeChargeEntryModel
's price value. If noOneTimeChargeEntryModel
withBillingEventModel
with code 'paynow' present, create a new one.- Parameters:
pricePlanId
- - subscription price plan IDcv
- -CatalogVersion
-
checkForPayNowChargeEntry
public OneTimeChargeEntryModel checkForPayNowChargeEntry(SubscriptionPricePlanModel pricePlanModel)
Deprecated.Checks if anyOneTimeChargeEntryModel
withBillingEventModel
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.Update theOneTimeChargeEntryModel
's price value with the sum of all otherOneTimeChargeEntryModel
price value associated to the specificSubscriptionPricePlanModel
- Parameters:
pricePlanModel
- -SubscriptionPricePlanModel
payNowCharge
- -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 theItem
being 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
-
-