Class DefaultBillService
java.lang.Object
de.hybris.platform.sap.saprevenuecloudorder.service.impl.DefaultBillService
- All Implemented Interfaces:
BillService
Default Bill Service for Subscription Billing System
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfetch bill using billIdgetBillsPageByCustomerId(String customerId, String fromDate, String toDate, Integer pageIdx, Integer pageSize, String sort) fetch bills using customerId and datesgetBillsPageBySubscriptionId(String subscriptionId, String fromDate, String toDate, Integer pageIdx, Integer pageSize, String sort) fetch bills using subscriptionId and datesvoidsetSbApiClient(SubscriptionBillingApiClient sbApiClient) voidsetSubscriptionBillServiceSortFieldMap(Map<String, String> subscriptionBillServiceSortFieldMap)
-
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:BillServicefetch bills using customerId and dates- Specified by:
getBillsPageByCustomerIdin interfaceBillService- Parameters:
customerId- SAP Subscription billing customer idfromDate- the date from which bills should be displayedtoDate- the date till which bills should be displayedpageIdx- 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
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:BillServicefetch bills using subscriptionId and dates- Specified by:
getBillsPageBySubscriptionIdin interfaceBillService- Parameters:
subscriptionId- subscriptionIdfromDate- the date from which bills should be displayedtoDate- the date till which bills should be displayedpageIdx- 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
public Bill getBill(String billId) throws de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException Description copied from interface:BillServicefetch bill using billId- Specified by:
getBillin interfaceBillService- Parameters:
billId- subscription billId- Returns:
Billbill for the given id- Throws:
de.hybris.platform.subscriptionservices.exception.SubscriptionServiceException- if error occurs due to input data
-
setSbApiClient
-
setSubscriptionBillServiceSortFieldMap
-