Class DefaultSapRevenueCloudProductService
java.lang.Object
com.sap.hybris.saprevenuecloudproduct.service.impl.DefaultSapRevenueCloudProductService
- All Implemented Interfaces:
SapRevenueCloudProductService
public class DefaultSapRevenueCloudProductService
extends Object
implements SapRevenueCloudProductService
Default implementation for
SapRevenueCloudProductService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetProductForSubscriptionCode(String subscriptionCode) Retrieves a product based on the provided subscription code.Get last success run date for CronjobGet theSAPRatePlanElementModelfromidde.hybris.platform.servicelayer.internal.dao.GenericDao<SAPRatePlanElementModel>getSubscriptionPricePlanForId(String pricePlanId, CatalogVersionModel catalogVersion) Get the subscription price plan for a specific priceplan IDgetSubscriptionPricesWithEffectiveDate(String pricePlanId, CatalogVersionModel catalogVersion, Date effectiveAt) get the Subscription price for a specific price plan ID and EffectiveAt dategetSubscriptionPricesWithEffectiveDate(String pricePlanId, List<CatalogVersionModel> catalogVersions, Date effectiveAt) get the Subscription price for a specific price plan ID and EffectiveAt datede.hybris.platform.servicelayer.internal.dao.GenericDao<UsageUnitModel>GetUsageUnitModelfromidvoidsetSapRatePlanElementDao(de.hybris.platform.servicelayer.internal.dao.GenericDao<SAPRatePlanElementModel> sapRatePlanElementDao) voidsetSapRevenueCloudProductDao(SapRevenueCloudProductDao sapRevenueCloudProductDao) voidsetSapSubscriptionPricePlanWithEffectiveDateDao(SapSubscriptionPricePlanWithEffectiveDateDao sapSubscriptionPricePlanWithEffectiveDateDao) voidsetUsageUnitDao(de.hybris.platform.servicelayer.internal.dao.GenericDao<UsageUnitModel> usageUnitDao)
-
Constructor Details
-
DefaultSapRevenueCloudProductService
public DefaultSapRevenueCloudProductService()
-
-
Method Details
-
getSubscriptionPricePlanForId
public SubscriptionPricePlanModel getSubscriptionPricePlanForId(String pricePlanId, CatalogVersionModel catalogVersion) Get the subscription price plan for a specific priceplan ID- Specified by:
getSubscriptionPricePlanForIdin interfaceSapRevenueCloudProductService- Parameters:
pricePlanId- - price plan IDcatalogVersion- - catalog Version for theSubscriptionPricePlanModel- Returns:
- SubscriptionPricePlanModel
-
getRatePlanElementfromId
Description copied from interface:SapRevenueCloudProductServiceGet theSAPRatePlanElementModelfromid- Specified by:
getRatePlanElementfromIdin interfaceSapRevenueCloudProductService- Parameters:
id- - label ofSAPRatePlanElementModel- Returns:
- ratePlan element
-
getUsageUnitfromId
Description copied from interface:SapRevenueCloudProductServiceGetUsageUnitModelfromid- Specified by:
getUsageUnitfromIdin interfaceSapRevenueCloudProductService- Parameters:
id- - id ofUsageUnitModel- Returns:
- usage unit
-
getProductReplicationDateForCronjob
Description copied from interface:SapRevenueCloudProductServiceGet last success run date for Cronjob- Specified by:
getProductReplicationDateForCronjobin interfaceSapRevenueCloudProductService- Parameters:
code- - code ofCronJobModel- Returns:
Date
-
getSubscriptionPricesWithEffectiveDate
public SubscriptionPricePlanModel getSubscriptionPricesWithEffectiveDate(String pricePlanId, CatalogVersionModel catalogVersion, Date effectiveAt) Description copied from interface:SapRevenueCloudProductServiceget the Subscription price for a specific price plan ID and EffectiveAt date- Specified by:
getSubscriptionPricesWithEffectiveDatein interfaceSapRevenueCloudProductService- Parameters:
pricePlanId- - price plan ID for theSubscriptionPricePlanModelcatalogVersion- - catalog Version for theSubscriptionPricePlanModeleffectiveAt- - Effective date of the priceplan ModuleSubscriptionPricePlanModel- Returns:
SubscriptionPricePlanModel
-
getSubscriptionPricesWithEffectiveDate
public SubscriptionPricePlanModel getSubscriptionPricesWithEffectiveDate(String pricePlanId, List<CatalogVersionModel> catalogVersions, Date effectiveAt) Description copied from interface:SapRevenueCloudProductServiceget the Subscription price for a specific price plan ID and EffectiveAt date- Specified by:
getSubscriptionPricesWithEffectiveDatein interfaceSapRevenueCloudProductService- Parameters:
pricePlanId- - price plan ID for theSubscriptionPricePlanModelcatalogVersions- - catalog Versions for theSubscriptionPricePlanModeleffectiveAt- - Effective date of the priceplan ModuleSubscriptionPricePlanModel- Returns:
SubscriptionPricePlanModel
-
getProductForSubscriptionCode
Description copied from interface:SapRevenueCloudProductServiceRetrieves a product based on the provided subscription code.- Specified by:
getProductForSubscriptionCodein interfaceSapRevenueCloudProductService- Parameters:
subscriptionCode- - The subscription code to look up the product for.- Returns:
- The
ProductModelassociated with the subscription code, or null if no product is found.
-
getSapRevenueCloudProductDao
- Returns:
- the sapRevenueCloudProductDao
-
setSapRevenueCloudProductDao
- Parameters:
sapRevenueCloudProductDao- the sapRevenueCloudProductDao to set
-
getSapRatePlanElementDao
public de.hybris.platform.servicelayer.internal.dao.GenericDao<SAPRatePlanElementModel> getSapRatePlanElementDao() -
setSapRatePlanElementDao
public void setSapRatePlanElementDao(de.hybris.platform.servicelayer.internal.dao.GenericDao<SAPRatePlanElementModel> sapRatePlanElementDao) -
getUsageUnitDao
-
setUsageUnitDao
public void setUsageUnitDao(de.hybris.platform.servicelayer.internal.dao.GenericDao<UsageUnitModel> usageUnitDao) -
getSapSubscriptionPricePlanWithEffectiveDateDao
public SapSubscriptionPricePlanWithEffectiveDateDao getSapSubscriptionPricePlanWithEffectiveDateDao() -
setSapSubscriptionPricePlanWithEffectiveDateDao
public void setSapSubscriptionPricePlanWithEffectiveDateDao(SapSubscriptionPricePlanWithEffectiveDateDao sapSubscriptionPricePlanWithEffectiveDateDao)
-