java.lang.Object
de.hybris.platform.sap.saprevenuecloudorder.service.impl.DefaultBillService
All Implemented Interfaces:
BillService

public class DefaultBillService extends Object implements BillService
Default Bill Service for Subscription Billing System
  • Constructor Details

    • DefaultBillService

      public DefaultBillService()
  • Method Details

    • getBillsPageByCustomerId

      public PaginationResult<List<Bill>> getBillsPageByCustomerId(String customerId, String fromDate, String toDate, Integer pageIdx, Integer pageSize, String sort) throws de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException
      Description copied from interface: BillService
      fetch bills using customerId and dates
      Specified by:
      getBillsPageByCustomerId in interface BillService
      Parameters:
      customerId - SAP Subscription billing customer id
      fromDate - the date from which bills should be displayed
      toDate - the date till which bills should be displayed
      pageIdx - pageNumber
      pageSize - pageSize
      sort - sort
      Returns:
      single page of List of Bill
      Throws:
      de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException - if error occurs due to input data
    • getBillsPageBySubscriptionId

      public PaginationResult<List<Bill>> getBillsPageBySubscriptionId(String subscriptionId, String fromDate, String toDate, Integer pageIdx, Integer pageSize, String sort) throws de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException
      Description copied from interface: BillService
      fetch bills using subscriptionId and dates
      Specified by:
      getBillsPageBySubscriptionId in interface BillService
      Parameters:
      subscriptionId - subscriptionId
      fromDate - the date from which bills should be displayed
      toDate - the date till which bills should be displayed
      pageIdx - pageNumber
      pageSize - pageSize
      sort - sort
      Returns:
      single page of List of Bill
      Throws:
      de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException - if error occurs due to input data
    • getBill

      public Bill getBill(String billId) throws de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException
      Description copied from interface: BillService
      fetch bill using billId
      Specified by:
      getBill in interface BillService
      Parameters:
      billId - subscription billId
      Returns:
      Bill bill for the given id
      Throws:
      de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException - if error occurs due to input data
    • setSbApiClient

      public void setSbApiClient(SubscriptionBillingApiClient sbApiClient)
    • setSubscriptionBillServiceSortFieldMap

      public void setSubscriptionBillServiceSortFieldMap(Map<String,String> subscriptionBillServiceSortFieldMap)