Interface SapRevenueCloudProductService
- All Known Implementing Classes:
DefaultSapRevenueCloudProductService
public interface SapRevenueCloudProductService
Sap Reveunue Cloud Product Service interface
-
Method Summary
Modifier and TypeMethodDescriptiondefault ProductModelgetProductForSubscriptionCode(String subscriptionCode) Retrieves a product based on the provided subscription code.Get last success run date for CronjobgetRatePlanElementfromId(String label) Get theSAPRatePlanElementModelfromidgetSubscriptionPricePlanForId(String pricePlanId, CatalogVersionModel catalogVersion) get the Subscription price for a specific price plan 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 dateGetUsageUnitModelfromid
-
Method Details
-
getSubscriptionPricePlanForId
SubscriptionPricePlanModel getSubscriptionPricePlanForId(String pricePlanId, CatalogVersionModel catalogVersion) get the Subscription price for a specific price plan ID- Parameters:
pricePlanId- - price plan ID for theSubscriptionPricePlanModelcatalogVersion- - catalog Version for theSubscriptionPricePlanModel- Returns:
SubscriptionPricePlanModel
-
getRatePlanElementfromId
Get theSAPRatePlanElementModelfromid- Parameters:
label- - label ofSAPRatePlanElementModel- Returns:
- ratePlan element
-
getUsageUnitfromId
GetUsageUnitModelfromid- Parameters:
id- - id ofUsageUnitModel- Returns:
- usage unit
-
getProductReplicationDateForCronjob
Get last success run date for Cronjob- Parameters:
code- - code ofCronJobModel- Returns:
Date
-
getSubscriptionPricesWithEffectiveDate
SubscriptionPricePlanModel getSubscriptionPricesWithEffectiveDate(String pricePlanId, CatalogVersionModel catalogVersion, Date effectiveAt) get the Subscription price for a specific price plan ID and EffectiveAt date- Parameters:
pricePlanId- - price plan ID for theSubscriptionPricePlanModelcatalogVersion- - catalog Version for theSubscriptionPricePlanModeleffectiveAt- - Effective date of the priceplan ModuleSubscriptionPricePlanModel- Returns:
SubscriptionPricePlanModel
-
getSubscriptionPricesWithEffectiveDate
SubscriptionPricePlanModel getSubscriptionPricesWithEffectiveDate(String pricePlanId, List<CatalogVersionModel> catalogVersions, Date effectiveAt) get the Subscription price for a specific price plan ID and EffectiveAt date- Parameters:
pricePlanId- - price plan ID for theSubscriptionPricePlanModelcatalogVersions- - catalog Versions for theSubscriptionPricePlanModeleffectiveAt- - Effective date of the priceplan ModuleSubscriptionPricePlanModel- Returns:
SubscriptionPricePlanModel- Since:
- 2005.1
-
getProductForSubscriptionCode
Retrieves a product based on the provided subscription code.- 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.
-