Class DefaultBillService
- java.lang.Object
-
- de.hybris.platform.sap.saprevenuecloudorder.service.impl.DefaultBillService
-
- All Implemented Interfaces:
BillService
public class DefaultBillService extends java.lang.Object implements BillService
Default Bill Service for Subscription Billing System
-
-
Constructor Summary
Constructors Constructor Description DefaultBillService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BillgetBill(java.lang.String billId)fetch bill using billIdPaginationResult<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)fetch bills using customerId and datesPaginationResult<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)fetch bills using subscriptionId and datesvoidsetSbApiClient(SubscriptionBillingApiClient sbApiClient)voidsetSubscriptionBillServiceSortFieldMap(java.util.Map<java.lang.String,java.lang.String> subscriptionBillServiceSortFieldMap)
-
-
-
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: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<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: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(java.lang.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
public void setSbApiClient(SubscriptionBillingApiClient sbApiClient)
-
setSubscriptionBillServiceSortFieldMap
public void setSubscriptionBillServiceSortFieldMap(java.util.Map<java.lang.String,java.lang.String> subscriptionBillServiceSortFieldMap)
-
-