Interface SapServiceOrderBillingInvoiceService

All Known Implementing Classes:
DefaultSapServiceOrderBillingInvoiceService

public interface SapServiceOrderBillingInvoiceService
Service layer interface to retrieve service order billing documents and invoices
  • Method Details

    • callS4forBillingDocuments

      Map<String,Object> callS4forBillingDocuments(SAPOrderModel sapOrder, String targetSuffixUrl)
      Gets Billing Documents S/4 Cloud for sap order
      Parameters:
      sapOrder - sap order
      targetSuffixUrl - resource url
      Returns:
      map of attributes
    • getPDFData

      byte[] getPDFData(SAPOrderModel sapOrder, String billingDocumentId) throws SapBillingInvoiceUserException
      Gets PDF Data from S/4 Cloud for sap order data
      Parameters:
      sapOrder - SAPOrder created from commerce order
      billingDocumentId - Billing Document ID of external system
      Returns:
      PDF Byte array
      Throws:
      SapBillingInvoiceUserException - when pdf is accessed by different USER