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 Summary
ConstructorsConstructorDescriptionDeprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptioncheckForPayNowChargeEntry(SubscriptionPricePlanModel pricePlanModel) Deprecated, for removal: This API element is subject to removal in a future version.Checks if anyOneTimeChargeEntryModelwithBillingEventModelwith code 'paynow' present.voidcreateUpdatePayNowChargeEntry(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 theOneTimeChargeEntryModelfor a specific price plan ID andCatalogVersionFirst get theSubscriptionPricePlanModelfrom the price pan ID and theCatalogVersionModel.getAttributeValue(de.hybris.platform.jalo.Item processedItem, String attributeName) Deprecated, for removal: This API element is subject to removal in a future version.Returns the attribute value for the attribute name from theItembeing currently processedde.hybris.platform.subscriptionservices.subscription.BillingTimeServiceDeprecated, for removal: This API element is subject to removal in a future version.de.hybris.platform.catalog.CatalogServiceDeprecated, for removal: This API element is subject to removal in a future version.de.hybris.platform.catalog.CatalogVersionServiceDeprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.de.hybris.platform.servicelayer.model.ModelServiceDeprecated, for removal: This API element is subject to removal in a future version.de.hybris.platform.product.ProductServiceDeprecated, for removal: This API element is subject to removal in a future version.de.hybris.platform.servicelayer.internal.dao.GenericDao<SAPMarketToCatalogMappingModel>Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.mapMarketToCatalog(String marketId) Deprecated, for removal: This API element is subject to removal in a future version.Iterates theSAPMarketToCatalogMappingModelto provideCatalogModelfor a corresponding market id.de.hybris.platform.catalog.jalo.CatalogVersionprocessCatalogVersionForProduct(String marketId) Deprecated, for removal: This API element is subject to removal in a future version.Returns theCatalogVersionfor a market IDde.hybris.platform.jalo.product.ProductprocessProductForCodeAndMarketId(String prodCodeMarkrtId) Deprecated, for removal: This API element is subject to removal in a future version.RetrunsProductfor a specific product code and market ID.voidprocessSubscriptionPricePlanEndDate(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.voidsetBillingTimeService(de.hybris.platform.subscriptionservices.subscription.BillingTimeService billingTimeService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetCatalogService(de.hybris.platform.catalog.CatalogService catalogService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetCatalogVersionService(de.hybris.platform.catalog.CatalogVersionService catalogVersionService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetDefaultCatalogId(String defaultCatalogId) Deprecated, for removal: This API element is subject to removal in a future version.voidsetDefaultCatalogVersion(String defaultCatalogVersion) Deprecated, for removal: This API element is subject to removal in a future version.voidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetProductService(de.hybris.platform.product.ProductService productService) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSapMarketToCatalogMappingModelGenericDao(de.hybris.platform.servicelayer.internal.dao.GenericDao<SAPMarketToCatalogMappingModel> sapMarketToCatalogMappingModelGenericDao) Deprecated, for removal: This API element is subject to removal in a future version.voidsetSapRevenueCloudProductService(SapRevenueCloudProductService sapRevenueCloudProductService) Deprecated, for removal: This API element is subject to removal in a future version.voidupdatePayNowChargeEntry(SubscriptionPricePlanModel pricePlanModel, OneTimeChargeEntryModel payNowCharge) Deprecated, for removal: This API element is subject to removal in a future version.Update theOneTimeChargeEntryModel's price value with the sum of all otherOneTimeChargeEntryModelprice value associated to the specificSubscriptionPricePlanModel
-
Constructor Details
-
SapRevenueCloudProductInboudHelper
public SapRevenueCloudProductInboudHelper()Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
mapMarketToCatalog
Deprecated, for removal: This API element is subject to removal in a future version.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 de.hybris.platform.catalog.jalo.CatalogVersion processCatalogVersionForProduct(String marketId) Deprecated, for removal: This API element is subject to removal in a future version.Returns theCatalogVersionfor 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.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(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 IDcv- -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 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
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Update theOneTimeChargeEntryModel's price value with the sum of all otherOneTimeChargeEntryModelprice value associated to the specificSubscriptionPricePlanModel- Parameters:
pricePlanModel- -SubscriptionPricePlanModelpayNowCharge- -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 theItembeing 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
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the defaultCatalogId
-
setDefaultCatalogId
Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
defaultCatalogId- the defaultCatalogId to set
-
getDefaultCatalogVersion
Deprecated, for removal: This API element is subject to removal in a future version.- Returns:
- the defaultCatalogVersion
-
setDefaultCatalogVersion
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
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
-