Interface SapMyAccountFacade

All Known Implementing Classes:
SapMyAccountFacadeImpl

public interface SapMyAccountFacade
This Interface @SapMyAccountFacade needs to be implemented for Invoice related feature in My Account - CDP integration.
  • Method Details

    • getInvoices

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

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