Class SapMyAccountFacadeImpl

java.lang.Object
com.sap.myaccountsapfacades.facade.impl.SapMyAccountFacadeImpl
All Implemented Interfaces:
SapMyAccountFacade

public class SapMyAccountFacadeImpl extends Object implements SapMyAccountFacade
This Class @SapMyAccountFacadeImpl implements @SapMyAccountFacade methods to support invoice feature in MyAccount CDP integration
  • Constructor Details

    • SapMyAccountFacadeImpl

      public SapMyAccountFacadeImpl()
  • Method Details

    • getInvoices

      public List<SAPInvoiceData> getInvoices(OrderModel order)
      Fetch Invoices related to a particular order based on the customer
      Specified by:
      getInvoices in interface SapMyAccountFacade
      Parameters:
      order - order for which invoices are needed
      Returns:
      List containing all the invoice related data.
    • getPDFData

      public byte[] getPDFData(OrderModel orderModel, String invoiceId)
      Download invoice pdf from external system
      Specified by:
      getPDFData in interface SapMyAccountFacade
      Parameters:
      orderModel - order for which invoice pdf is needed
      invoiceId - id of the invoice in the external system
      Returns:
      byte[] Invoice data in bytes.
    • getDefaultSapMyAccountInvoiceService

      public DefaultMyAccountInvoiceService 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