Class SapBillingInvoiceServiceImpl
- java.lang.Object
-
- com.sap.hybris.sapbillinginvoiceservices.service.impl.SapBillingInvoiceServiceImpl
-
- All Implemented Interfaces:
SapBillingInvoiceService
public class SapBillingInvoiceServiceImpl extends java.lang.Object implements SapBillingInvoiceService
Service Implementation for interacting with DAO and Client.
-
-
Constructor Summary
Constructors Constructor Description SapBillingInvoiceServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>callS4forBillingDocuments(SAPOrderModel sapOrder, java.lang.String targetSuffixUrl)Gets Billing Documents S/4 Cloud for sap orderSapBillingInvoiceDaogetBillingInvoiceDao()java.util.Map<java.lang.String,java.lang.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 unusedjava.util.Map<java.lang.String,java.lang.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 unusedbyte[]getPDFData(SAPOrderModel sapOrder, java.lang.String billingDocumentId)Gets PDF Data from S/4 Cloud for sap order dataSapBillingInvoiceClientImplgetSapBillingInvoiceClientImpl()SAPOrderModelgetSapOrderBySapOrderCode(java.lang.String sapOrderCode)Gets SAP Order from SAP Order CodeSAPOrderModelgetServiceOrderBySapOrderCode(java.lang.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.UserServicegetUserService()voidsetBillingInvoiceDao(SapBillingInvoiceDao billingInvoiceDao)voidsetSapBillingInvoiceClientImpl(SapBillingInvoiceClientImpl sapBillingInvoiceClientImpl)voidsetUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
-
-
Method Detail
-
getUserService
public de.hybris.platform.servicelayer.user.UserService getUserService()
-
setUserService
public void setUserService(de.hybris.platform.servicelayer.user.UserService userService)
-
getSapBillingInvoiceClientImpl
public SapBillingInvoiceClientImpl getSapBillingInvoiceClientImpl()
-
setSapBillingInvoiceClientImpl
public void setSapBillingInvoiceClientImpl(SapBillingInvoiceClientImpl sapBillingInvoiceClientImpl)
-
getBillingInvoiceDao
public SapBillingInvoiceDao getBillingInvoiceDao()
-
setBillingInvoiceDao
public void setBillingInvoiceDao(SapBillingInvoiceDao billingInvoiceDao)
-
getServiceOrderBySapOrderCode
@Deprecated(since="2108", forRemoval=true) public SAPOrderModel getServiceOrderBySapOrderCode(java.lang.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
public SAPOrderModel getSapOrderBySapOrderCode(java.lang.String sapOrderCode)
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
public java.util.Map<java.lang.String,java.lang.Object> callS4forBillingDocuments(SAPOrderModel sapOrder, java.lang.String targetSuffixUrl)
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, java.lang.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 java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,java.lang.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
-
-