Class SapMyAccountFacadeImpl
java.lang.Object
com.sap.myaccountsapfacades.facade.impl.SapMyAccountFacadeImpl
- All Implemented Interfaces:
SapMyAccountFacade
This Class @SapMyAccountFacadeImpl implements @SapMyAccountFacade methods to support invoice feature in MyAccount CDP
integration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetInvoices(OrderModel order) Fetch Invoices related to a particular order based on the customerbyte[]getPDFData(OrderModel orderModel, String invoiceId) Download invoice pdf from external systemde.hybris.platform.servicelayer.dto.converter.Converter<Activities,SAPInvoiceData> voidsetDefaultSapMyAccountInvoiceService(DefaultMyAccountInvoiceService defaultSapMyAccountInvoiceService) voidsetSapMyAccountInvoiceConverter(de.hybris.platform.servicelayer.dto.converter.Converter<Activities, SAPInvoiceData> sapMyAccountInvoiceConverter)
-
Constructor Details
-
SapMyAccountFacadeImpl
public SapMyAccountFacadeImpl()
-
-
Method Details
-
getInvoices
Fetch Invoices related to a particular order based on the customer- Specified by:
getInvoicesin interfaceSapMyAccountFacade- Parameters:
order- order for which invoices are needed- Returns:
- List
containing all the invoice related data.
-
getPDFData
Download invoice pdf from external system- Specified by:
getPDFDatain interfaceSapMyAccountFacade- Parameters:
orderModel- order for which invoice pdf is neededinvoiceId- id of the invoice in the external system- Returns:
- byte[] Invoice data in bytes.
-
getDefaultSapMyAccountInvoiceService
- Returns:
- the defaultSapMyAccountInvoiceService
-
setDefaultSapMyAccountInvoiceService
public void setDefaultSapMyAccountInvoiceService(DefaultMyAccountInvoiceService defaultSapMyAccountInvoiceService) - Parameters:
defaultSapMyAccountInvoiceService- the defaultSapMyAccountInvoiceService to set
-
getSapMyAccountInvoiceConverter
public de.hybris.platform.servicelayer.dto.converter.Converter<Activities,SAPInvoiceData> getSapMyAccountInvoiceConverter()- Returns:
- the sapMyAccountInvoiceConverter
-
setSapMyAccountInvoiceConverter
public void setSapMyAccountInvoiceConverter(de.hybris.platform.servicelayer.dto.converter.Converter<Activities, SAPInvoiceData> sapMyAccountInvoiceConverter) - Parameters:
sapMyAccountInvoiceConverter- the sapMyAccountInvoiceConverter to set
-