Class DefaultSapRevenueCloudSubscriptionService
- java.lang.Object
-
- de.hybris.platform.sap.saprevenuecloudorder.service.impl.DefaultSapRevenueCloudSubscriptionService
-
- All Implemented Interfaces:
SapRevenueCloudSubscriptionService
@Deprecated(since="1905.12", forRemoval=true) public class DefaultSapRevenueCloudSubscriptionService extends java.lang.Object implements SapRevenueCloudSubscriptionServiceDeprecated, for removal: This API element is subject to removal in a future version.instead useDefaultBillServiceandDefaultSubscriptionServiceService to fetch Subscription Data from Revenue Cloud.
-
-
Constructor Summary
Constructors Constructor Description DefaultSapRevenueCloudSubscriptionService()Deprecated, for removal: This API element is subject to removal in a future version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidcancelSubscription(java.lang.String code, CancelSubscription subscription)Deprecated, for removal: This API element is subject to removal in a future version.cancel a subscription based on subscription codevoidchangePaymentDetails(java.lang.String code, ChangePaymentData changePaymentData)Deprecated, for removal: This API element is subject to removal in a future version.Makes service call to change payment details of provided subscription codejava.lang.StringcomputeCancellationDate(java.lang.String subscriptionsId, java.lang.String reqCancellationDate)Deprecated, for removal: This API element is subject to removal in a future version.get effective end date for subscriptionvoidextendSubscription(java.lang.String code, ExtendSubscription subscription)Deprecated, for removal: This API element is subject to removal in a future version.extend a subscription based on subscription codeSubscriptionextendSubscription(java.lang.String id, ExtendSubscription extendSubscription, boolean simulate)Deprecated, for removal: This API element is subject to removal in a future version.extend a subscription based on subscription codeSubscriptionExtensionResponseextendSubscription(java.lang.String subscriptionCode, SubscriptionExtensionForm extensionForm, boolean simulate)Deprecated, for removal: This API element is subject to removal in a future version.extend a subscription based on subscription codeBillingFrequencyModelgetBillingFrequency(ProductModel productModel)Deprecated, for removal: This API element is subject to removal in a future version.get billingFrequency for specific productjava.util.List<Bills>getBillsBySubscriptionsId(java.lang.String customerId, java.lang.String fromDate, java.lang.String toDate)Deprecated, for removal: This API element is subject to removal in a future version.fetch bills using subscriptionId and datescom.hybris.charon.RawResponse<java.util.List<BillsList>>getBillsBySubscriptionsId(java.lang.String customerId, java.lang.String fromDate, java.lang.String toDate, int pageNumber, int pageSize, java.lang.String sort)Deprecated, for removal: This API element is subject to removal in a future version.fetch bills using subscriptionId and datesprotected SapRevenueCloudSubscriptionConfigurationServicegetSapSubscriptionConfigurationService()Deprecated, for removal: This API element is subject to removal in a future version.BillsListgetSubscriptionBillsByBillId(java.lang.String billId)Deprecated, for removal: This API element is subject to removal in a future version.fetch bill using billIdBillsgetSubscriptionBillsById(java.lang.String billId)Deprecated, for removal: This API element is subject to removal in a future version.fetch bill using billIdSubscriptiongetSubscriptionById(java.lang.String subscriptionId)Deprecated, for removal: This API element is subject to removal in a future version.fetch subscription details using subscriptionIdjava.util.List<Bills>getSubscriptionCurrentUsage(java.lang.String subscriptionId, java.lang.String currentDate)Deprecated, for removal: This API element is subject to removal in a future version.fetch usage of subscription in current billing cyclejava.util.List<Subscription>getSubscriptionsByClientId(java.lang.String clientId)Deprecated, for removal: This API element is subject to removal in a future version.fetch subscription details using customerIdcom.hybris.charon.RawResponse<java.util.List<Subscription>>getSubscriptionsWithPagination(java.lang.String clientId, int pageNumber, int pageSize)Deprecated, for removal: This API element is subject to removal in a future version.fetch subscription details with Paginationde.hybris.platform.servicelayer.user.UserServicegetUserService()Deprecated, for removal: This API element is subject to removal in a future version.CancellationReversalResponsereverseCancellation(java.lang.String code, CancellationReversal cancellationReversal)Deprecated, for removal: This API element is subject to removal in a future version.Reverses the cancellation of subscriptionvoidsetSapSubscriptionConfigurationService(SapRevenueCloudSubscriptionConfigurationService sapRevenueCloudSubscriptionConfigurationService)Deprecated, for removal: This API element is subject to removal in a future version.voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)Deprecated, for removal: This API element is subject to removal in a future version.voidwithdrawSubscription(java.lang.String code, WithdrawSubscription subscription)Deprecated, for removal: This API element is subject to removal in a future version.withdraw a subscription based on subscription code
-
-
-
Method Detail
-
getSubscriptionsByClientId
public java.util.List<Subscription> getSubscriptionsByClientId(java.lang.String clientId)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServicefetch subscription details using customerId- Specified by:
getSubscriptionsByClientIdin interfaceSapRevenueCloudSubscriptionService- Parameters:
clientId- customerId- Returns:
Listlist of subscriptions
-
getSubscriptionsWithPagination
public com.hybris.charon.RawResponse<java.util.List<Subscription>> getSubscriptionsWithPagination(java.lang.String clientId, int pageNumber, int pageSize)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServicefetch subscription details with Pagination- Specified by:
getSubscriptionsWithPaginationin interfaceSapRevenueCloudSubscriptionService- Parameters:
clientId- customerIdpageNumber- pageNumberpageSize- pageSize- Returns:
- Response
-
getSubscriptionById
public Subscription getSubscriptionById(java.lang.String subscriptionId)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServicefetch subscription details using subscriptionId- Specified by:
getSubscriptionByIdin interfaceSapRevenueCloudSubscriptionService- Parameters:
subscriptionId- subscription code- Returns:
SubscriptionSubscription details
-
cancelSubscription
public void cancelSubscription(java.lang.String code, CancelSubscription subscription)Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServicecancel a subscription based on subscription code- Specified by:
cancelSubscriptionin interfaceSapRevenueCloudSubscriptionService- Parameters:
code- subscription codesubscription- subscription data required for cancellation
-
withdrawSubscription
public void withdrawSubscription(java.lang.String code, WithdrawSubscription subscription)Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServicewithdraw a subscription based on subscription code- Specified by:
withdrawSubscriptionin interfaceSapRevenueCloudSubscriptionService- Parameters:
code- subscription codesubscription- subscription data required for Withdrawal
-
extendSubscription
public void extendSubscription(java.lang.String code, ExtendSubscription subscription)Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServiceextend a subscription based on subscription code- Specified by:
extendSubscriptionin interfaceSapRevenueCloudSubscriptionService- Parameters:
code- subscription id of subscriptionsubscription- details of subscription
-
changePaymentDetails
public void changePaymentDetails(java.lang.String code, ChangePaymentData changePaymentData)Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServiceMakes service call to change payment details of provided subscription code- Specified by:
changePaymentDetailsin interfaceSapRevenueCloudSubscriptionService- Parameters:
code- - Subscription Id for which payment details needs to be changedchangePaymentData- Payment details that is to be updated
-
getBillingFrequency
public BillingFrequencyModel getBillingFrequency(ProductModel productModel)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServiceget billingFrequency for specific product- Specified by:
getBillingFrequencyin interfaceSapRevenueCloudSubscriptionService- Parameters:
productModel- - product model- Returns:
BillingFrequencyModel
-
computeCancellationDate
public java.lang.String computeCancellationDate(java.lang.String subscriptionsId, java.lang.String reqCancellationDate)Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServiceget effective end date for subscription- Specified by:
computeCancellationDatein interfaceSapRevenueCloudSubscriptionService- Parameters:
subscriptionsId- - subscription codereqCancellationDate- - requested cancellation date- Returns:
- effective end date for subscription
-
extendSubscription
public Subscription extendSubscription(java.lang.String id, ExtendSubscription extendSubscription, boolean simulate)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServiceextend a subscription based on subscription code- Specified by:
extendSubscriptionin interfaceSapRevenueCloudSubscriptionService- Parameters:
id- subscriptionIdextendSubscription- subscription data required for extending subscriptionsimulate- simulation flag- Returns:
- extension status
-
extendSubscription
public SubscriptionExtensionResponse extendSubscription(java.lang.String subscriptionCode, SubscriptionExtensionForm extensionForm, boolean simulate)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServiceextend a subscription based on subscription code- Specified by:
extendSubscriptionin interfaceSapRevenueCloudSubscriptionService- Parameters:
subscriptionCode- subscriptionIdextensionForm- subscription data required for extending subscriptionsimulate- simulation flag- Returns:
- extension status
-
getBillsBySubscriptionsId
public java.util.List<Bills> getBillsBySubscriptionsId(java.lang.String customerId, java.lang.String fromDate, java.lang.String toDate)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServicefetch bills using subscriptionId and dates- Specified by:
getBillsBySubscriptionsIdin interfaceSapRevenueCloudSubscriptionService- Parameters:
customerId- subscriptionIdfromDate- the date from which bills should be displayedtoDate- the date till which bills should be displayed- Returns:
Listlist of bills based on the filter applied
-
getSubscriptionCurrentUsage
public java.util.List<Bills> getSubscriptionCurrentUsage(java.lang.String subscriptionId, java.lang.String currentDate)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServicefetch usage of subscription in current billing cycle- Specified by:
getSubscriptionCurrentUsagein interfaceSapRevenueCloudSubscriptionService- Parameters:
subscriptionId- - id of subscription for which current usage is neededcurrentDate- - current date to fetch usage till current date in present billing cycle- Returns:
Listreturns bills which contains current usage for given subscription
-
getSubscriptionBillsById
public Bills getSubscriptionBillsById(java.lang.String billId)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServicefetch bill using billId- Specified by:
getSubscriptionBillsByIdin interfaceSapRevenueCloudSubscriptionService- Parameters:
billId- subscription billId- Returns:
Billsbill for the given id
-
getBillsBySubscriptionsId
public com.hybris.charon.RawResponse<java.util.List<BillsList>> getBillsBySubscriptionsId(java.lang.String customerId, java.lang.String fromDate, java.lang.String toDate, int pageNumber, int pageSize, java.lang.String sort)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServicefetch bills using subscriptionId and dates- Specified by:
getBillsBySubscriptionsIdin interfaceSapRevenueCloudSubscriptionService- Parameters:
customerId- subscriptionIdfromDate- the date from which bills should be displayedtoDate- the date till which bills should be displayedpageNumber- pageNumberpageSize- pageSizesort- sort- Returns:
- Response
-
getSubscriptionBillsByBillId
public BillsList getSubscriptionBillsByBillId(java.lang.String billId)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServicefetch bill using billId- Specified by:
getSubscriptionBillsByBillIdin interfaceSapRevenueCloudSubscriptionService- Parameters:
billId- subscription billId- Returns:
Billsbill for the given id
-
reverseCancellation
public CancellationReversalResponse reverseCancellation(java.lang.String code, CancellationReversal cancellationReversal)
Deprecated, for removal: This API element is subject to removal in a future version.Description copied from interface:SapRevenueCloudSubscriptionServiceReverses the cancellation of subscription- Specified by:
reverseCancellationin interfaceSapRevenueCloudSubscriptionService- Parameters:
code- subscription idcancellationReversal- Cancellation Reversal- Returns:
- Cancellation Reversal Response
-
getSapSubscriptionConfigurationService
protected SapRevenueCloudSubscriptionConfigurationService getSapSubscriptionConfigurationService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setSapSubscriptionConfigurationService
public void setSapSubscriptionConfigurationService(SapRevenueCloudSubscriptionConfigurationService sapRevenueCloudSubscriptionConfigurationService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
getUserService
public de.hybris.platform.servicelayer.user.UserService getUserService()
Deprecated, for removal: This API element is subject to removal in a future version.
-
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
Deprecated, for removal: This API element is subject to removal in a future version.
-
-