Class DefaultSapServiceOrderBillingInvoiceService
java.lang.Object
de.hybris.platform.sap.sapserviceorder.billlinginvoice.service.impl.DefaultSapServiceOrderBillingInvoiceService
- All Implemented Interfaces:
SapServiceOrderBillingInvoiceService
public class DefaultSapServiceOrderBillingInvoiceService
extends Object
implements SapServiceOrderBillingInvoiceService
Service layer implementation to retrieve service order billing documents and invoices
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallS4forBillingDocuments(SAPOrderModel sapOrder, String targetSuffixUrl) Gets Billing Documents S/4 Cloud for sap orderbyte[]getPDFData(SAPOrderModel sapOrder, String billingDocumentId) Gets PDF Data from S/4 Cloud for sap order datavoidsetSapBillingInvoiceService(SapBillingInvoiceService sapBillingInvoiceService)
-
Constructor Details
-
DefaultSapServiceOrderBillingInvoiceService
public DefaultSapServiceOrderBillingInvoiceService()
-
-
Method Details
-
callS4forBillingDocuments
Description copied from interface:SapServiceOrderBillingInvoiceServiceGets Billing Documents S/4 Cloud for sap order- Specified by:
callS4forBillingDocumentsin interfaceSapServiceOrderBillingInvoiceService- Parameters:
sapOrder- sap ordertargetSuffixUrl- resource url- Returns:
- map of attributes
-
getPDFData
public byte[] getPDFData(SAPOrderModel sapOrder, String billingDocumentId) throws SapBillingInvoiceUserException Description copied from interface:SapServiceOrderBillingInvoiceServiceGets PDF Data from S/4 Cloud for sap order data- Specified by:
getPDFDatain interfaceSapServiceOrderBillingInvoiceService- Parameters:
sapOrder- SAPOrder created from commerce orderbillingDocumentId- Billing Document ID of external system- Returns:
- PDF Byte array
- Throws:
SapBillingInvoiceUserException- when pdf is accessed by different USER
-
getSapBillingInvoiceService
-
setSapBillingInvoiceService
-