Interface BillService
- All Known Implementing Classes:
DefaultBillService
public interface BillService
This service connects to Sap Subscription Billing system and fetches billing related data
-
Method Summary
Modifier and TypeMethodDescriptionfetch bill using billIdgetBillsPageByCustomerId(String customerId, String fromDate, String toDate, Integer pageNumber, Integer pageSize, String sort) fetch bills using customerId and datesgetBillsPageBySubscriptionId(String subscriptionsId, String fromDate, String toDate, Integer pageNumber, Integer pageSize, String sort) fetch bills using subscriptionId and dates
-
Method Details
-
getBillsPageByCustomerId
PaginationResult<List<Bill>> getBillsPageByCustomerId(String customerId, String fromDate, String toDate, Integer pageNumber, Integer pageSize, String sort) throws de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException fetch bills using customerId and dates- Parameters:
customerId- SAP Subscription billing customer idfromDate- the date from which bills should be displayedtoDate- the date till which bills should be displayedpageNumber- pageNumberpageSize- pageSizesort- sort- Returns:
- single page of List of
Bill - Throws:
de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException- if error occurs due to input data
-
getBillsPageBySubscriptionId
PaginationResult<List<Bill>> getBillsPageBySubscriptionId(String subscriptionsId, String fromDate, String toDate, Integer pageNumber, Integer pageSize, String sort) throws de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException fetch bills using subscriptionId and dates- Parameters:
subscriptionsId- subscriptionIdfromDate- the date from which bills should be displayedtoDate- the date till which bills should be displayedpageNumber- pageNumberpageSize- pageSizesort- sort- Returns:
- single page of List of
Bill - Throws:
de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException- if error occurs due to input data
-
getBill
Bill getBill(String billId) throws de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException fetch bill using billId- Parameters:
billId- subscription billId- Returns:
Billbill for the given id- Throws:
de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException- if error occurs due to input data
-