Class InvoiceFacadeImpl
java.lang.Object
de.hybris.platform.commercefacades.invoice.impl.InvoiceFacadeImpl
- All Implemented Interfaces:
InvoiceFacade
Default implementation of
InvoiceFacade-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static intcompareDates(Date date1, Date date2, boolean ascending) protected static intcompareDoubles(Double num1, Double num2, boolean ascending) protected static intcompareIntegers(Integer num1, Integer num2, boolean ascending) protected static intcompareStrings(String str1, String str2, boolean ascending) protected SearchPageData<SAPInvoiceData>createEmptyInvoiceList(SearchPageData<SAPInvoiceData> searchPageDataInput, SearchPageData<SAPInvoiceData> invoicesList) protected PaginationDatabyte[]getInvoiceBinary(String orderCode, String invoiceId, String externalSystemId) The invoice byte array of an invoicegetInvoices(String orderCode, SearchPageData<SAPInvoiceData> searchPageDataInput, String addPaginationField) The invoice list of the order with matching codeprotected <T> List<T>protected OrderModelgetUserOrder(String orderCode, BaseStoreModel baseStoreModel) voidregisterHandler(ExternalSystemId externalSystemId, InvoiceStrategy handler) voidremoveHandler(ExternalSystemId externalSystemId) voidsetBaseStoreService(BaseStoreService baseStoreService) voidsetCheckoutCustomerStrategy(CheckoutCustomerStrategy checkoutCustomerStrategy) voidsetCustomerAccountService(CustomerAccountService customerAccountService) voidsetHandlers(Map<ExternalSystemId, InvoiceStrategy> handlers) voidsetModelService(ModelService modelService) voidsetUserService(UserService userService) protected voidsortInvoices(List<SortData> sorts, List<SAPInvoiceData> invoiceList) protected voidsortList(List<SAPInvoiceData> invoiceList, String attributeName, boolean ascending) protected intsortObjects(String attributeName, boolean ascending, SAPInvoiceData invoice1, SAPInvoiceData invoice2)
-
Constructor Details
-
InvoiceFacadeImpl
public InvoiceFacadeImpl()
-
-
Method Details
-
getInvoices
public SearchPageData<SAPInvoiceData> getInvoices(String orderCode, SearchPageData<SAPInvoiceData> searchPageDataInput, String addPaginationField) Description copied from interface:InvoiceFacadeThe invoice list of the order with matching code- Specified by:
getInvoicesin interfaceInvoiceFacade- Parameters:
orderCode- the order codesearchPageDataInput- paging and sorting informationaddPaginationField- field level- Returns:
- The invoice list of the order with matching code
-
getInvoiceBinary
Description copied from interface:InvoiceFacadeThe invoice byte array of an invoice- Specified by:
getInvoiceBinaryin interfaceInvoiceFacade- Parameters:
orderCode- the order codeinvoiceId- invoiceIdexternalSystemId- externalSystemId represents the external system where the invoice can be retrieved- Returns:
- The invoice byte array of an invoice
-
getUserOrder
-
createEmptyInvoiceList
protected SearchPageData<SAPInvoiceData> createEmptyInvoiceList(SearchPageData<SAPInvoiceData> searchPageDataInput, SearchPageData<SAPInvoiceData> invoicesList) -
sortInvoices
- Parameters:
sorts-invoiceList-
-
sortList
-
sortObjects
protected int sortObjects(String attributeName, boolean ascending, SAPInvoiceData invoice1, SAPInvoiceData invoice2) -
compareStrings
-
compareDates
-
compareDoubles
-
compareIntegers
-
createEmptyPagination
-
getPage
-
setHandlers
- Parameters:
handlers- the handlers to set
-
registerHandler
-
removeHandler
-
getUserService
-
setUserService
-
getCustomerAccountService
-
setCustomerAccountService
-
getBaseStoreService
-
setBaseStoreService
-
getCheckoutCustomerStrategy
-
setCheckoutCustomerStrategy
-
getModelService
-
setModelService
-