Class DefaultBillService

  • All Implemented Interfaces:
    BillService

    public class DefaultBillService
    extends java.lang.Object
    implements BillService
    Default Bill Service for Subscription Billing System
    • Constructor Detail

      • DefaultBillService

        public DefaultBillService()
    • Method Detail

      • getBillsPageByCustomerId

        public PaginationResult<java.util.List<Bill>> getBillsPageByCustomerId​(java.lang.String customerId,
                                                                               java.lang.String fromDate,
                                                                               java.lang.String toDate,
                                                                               java.lang.Integer pageIdx,
                                                                               java.lang.Integer pageSize,
                                                                               java.lang.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<java.util.List<Bill>> getBillsPageBySubscriptionId​(java.lang.String subscriptionId,
                                                                                   java.lang.String fromDate,
                                                                                   java.lang.String toDate,
                                                                                   java.lang.Integer pageIdx,
                                                                                   java.lang.Integer pageSize,
                                                                                   java.lang.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​(java.lang.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
      • setSubscriptionBillServiceSortFieldMap

        public void setSubscriptionBillServiceSortFieldMap​(java.util.Map<java.lang.String,​java.lang.String> subscriptionBillServiceSortFieldMap)