Class SapBillingInvoiceServiceImpl
java.lang.Object
com.sap.hybris.sapbillinginvoiceservices.service.impl.SapBillingInvoiceServiceImpl
- All Implemented Interfaces:
SapBillingInvoiceService
- Direct Known Subclasses:
DefaultSapS4omBillingInvoiceServiceImpl
Service Implementation for interacting with DAO and Client.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallS4forBillingDocuments(SAPOrderModel sapOrder, String targetSuffixUrl) Gets Billing Documents S/4 Cloud for sap ordergetBusinessDocumentFromS4ServiceOrderCode(SAPOrderModel serviceOrderData) Deprecated, for removal: This API element is subject to removal in a future version.since 2108, this method will be removed as this method will become unusedgetBusinessDocumentFromS4SSapOrderCode(SAPOrderModel sapOrderData) Deprecated, for removal: This API element is subject to removal in a future version.since 2108, this method will be removed as this method will become unusedbyte[]getPDFData(SAPOrderModel sapOrder, String billingDocumentId) Gets PDF Data from S/4 Cloud for sap order datagetSapOrderBySapOrderCode(String sapOrderCode) Gets SAP Order from SAP Order CodegetServiceOrderBySapOrderCode(String sapOrderCode) Deprecated, for removal: This API element is subject to removal in a future version.since 2108, method name is misleading as this method is just retrieving SAP Order by SAP order code.de.hybris.platform.servicelayer.user.UserServicevoidsetBillingInvoiceDao(SapBillingInvoiceDao billingInvoiceDao) voidsetSapBillingInvoiceClientImpl(SapBillingInvoiceClientImpl sapBillingInvoiceClientImpl) voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
Constructor Details
-
SapBillingInvoiceServiceImpl
public SapBillingInvoiceServiceImpl()
-
-
Method Details
-
getUserService
public de.hybris.platform.servicelayer.user.UserService getUserService() -
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService) -
getSapBillingInvoiceClientImpl
-
setSapBillingInvoiceClientImpl
-
getBillingInvoiceDao
-
setBillingInvoiceDao
-
getServiceOrderBySapOrderCode
@Deprecated(since="2108", forRemoval=true) public SAPOrderModel getServiceOrderBySapOrderCode(String sapOrderCode) Deprecated, for removal: This API element is subject to removal in a future version.since 2108, method name is misleading as this method is just retrieving SAP Order by SAP order code. Please use method getSapOrderBySapOrderCode() for same functionalityDescription copied from interface:SapBillingInvoiceServiceGets Service Order By SAP Order Code- Specified by:
getServiceOrderBySapOrderCodein interfaceSapBillingInvoiceService- Parameters:
sapOrderCode- Service Order Code of SAPOrder- Returns:
- SAPOrderModel SAP Order model
-
getSapOrderBySapOrderCode
Description copied from interface:SapBillingInvoiceServiceGets SAP Order from SAP Order Code- Specified by:
getSapOrderBySapOrderCodein interfaceSapBillingInvoiceService- Parameters:
sapOrderCode- Sap Order code for SAP Order- Returns:
- SAPOrderModel SAP Order model
-
callS4forBillingDocuments
Description copied from interface:SapBillingInvoiceServiceGets Billing Documents S/4 Cloud for sap order- Specified by:
callS4forBillingDocumentsin interfaceSapBillingInvoiceService- Parameters:
sapOrder- sap ordertargetSuffixUrl- resource url- Returns:
- map of attributes
-
getPDFData
public byte[] getPDFData(SAPOrderModel sapOrder, String billingDocumentId) throws SapBillingInvoiceUserException Description copied from interface:SapBillingInvoiceServiceGets PDF Data from S/4 Cloud for sap order data- Specified by:
getPDFDatain interfaceSapBillingInvoiceService- 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
-
getBusinessDocumentFromS4ServiceOrderCode
@Deprecated(since="2108", forRemoval=true) public Map<String,Object> getBusinessDocumentFromS4ServiceOrderCode(SAPOrderModel serviceOrderData) Deprecated, for removal: This API element is subject to removal in a future version.since 2108, this method will be removed as this method will become unusedDescription copied from interface:SapBillingInvoiceServiceGets All the business Document from S/4 Cloud for service order data- Specified by:
getBusinessDocumentFromS4ServiceOrderCodein interfaceSapBillingInvoiceService- Parameters:
serviceOrderData- SAPOrder (Service Order) created from commerce order- Returns:
- Map object of all the business document from s4
-
getBusinessDocumentFromS4SSapOrderCode
@Deprecated(since="2108", forRemoval=true) public Map<String,Object> getBusinessDocumentFromS4SSapOrderCode(SAPOrderModel sapOrderData) Deprecated, for removal: This API element is subject to removal in a future version.since 2108, this method will be removed as this method will become unusedDescription copied from interface:SapBillingInvoiceServiceGets All the business Document from S/4 Cloud for sap order data- Specified by:
getBusinessDocumentFromS4SSapOrderCodein interfaceSapBillingInvoiceService- Parameters:
sapOrderData- SAPOrder (Sales Order) created from commerce order- Returns:
- Map object of all the business document from s4
-