Class DefaultMyAccountInvoiceService
java.lang.Object
com.sap.myaccountsapservices.invoice.service.impl.DefaultMyAccountInvoiceService
This Class @DefaultMyAccountInvoiceService has methods to support invoice feature in MyAccount CDP integration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.store.services.BaseStoreServicegetInvoices(OrderModel order) Method to get list of invoices from external systembyte[]getPDFData(OrderModel orderModel, String invoiceId) Method to get Invoice pdf from the external systemvoidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) voidsetDefaultSapMyAccountOutboundService(DefaultSapMyAccountOutboundService defaultSapMyAccountOutboundService)
-
Constructor Details
-
DefaultMyAccountInvoiceService
public DefaultMyAccountInvoiceService()
-
-
Method Details
-
getInvoices
Method to get list of invoices from external system- Parameters:
order- order for which invoices are required- Returns:
- CdpResponseData response object which contains invoice data
-
getPDFData
Method to get Invoice pdf from the external system- Parameters:
orderModel- order for which invoices are requiredinvoiceId- Id of the invoice in external system- Returns:
- byte[] Invoice Pdf in bytes
-
getBaseStoreService
public de.hybris.platform.store.services.BaseStoreService getBaseStoreService()- Returns:
- the baseStoreService
-
setBaseStoreService
public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) - Parameters:
baseStoreService- the baseStoreService to set
-
getDefaultSapMyAccountOutboundService
- Returns:
- the defaultSapMyAccountOutboundService
-
setDefaultSapMyAccountOutboundService
public void setDefaultSapMyAccountOutboundService(DefaultSapMyAccountOutboundService defaultSapMyAccountOutboundService) - Parameters:
defaultSapMyAccountOutboundService- the defaultSapMyAccountOutboundService to set
-