Class SapMyAccountSalesInvoiceStrategy
java.lang.Object
com.sap.myaccountsapfacades.strategy.impl.SapMyAccountSalesInvoiceStrategy
- All Implemented Interfaces:
de.hybris.platform.commercefacades.invoice.strategies.InvoiceStrategy
public class SapMyAccountSalesInvoiceStrategy
extends Object
implements de.hybris.platform.commercefacades.invoice.strategies.InvoiceStrategy
This Class @SapMyAccountSalesInvoiceStrategy implements InvoiceStrategy which has relevant methods related to
invoices.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getInvoiceBinary(OrderModel orderModel, String invoiceId) Method to get Invoice pdf from the external systemgetInvoices(OrderModel orderModel) Method to get list of invoices from external systemvoidsetSapMyAccountFacade(SapMyAccountFacade sapMyAccountFacade)
-
Constructor Details
-
SapMyAccountSalesInvoiceStrategy
public SapMyAccountSalesInvoiceStrategy()
-
-
Method Details
-
getInvoices
Method to get list of invoices from external system- Specified by:
getInvoicesin interfacede.hybris.platform.commercefacades.invoice.strategies.InvoiceStrategy- Parameters:
orderModel- order for which invoices are required- Returns:
- List
List of invoice data
-
getInvoiceBinary
Method to get Invoice pdf from the external system- Specified by:
getInvoiceBinaryin interfacede.hybris.platform.commercefacades.invoice.strategies.InvoiceStrategy- Parameters:
orderModel- order for which invoices are requiredinvoiceId- Id of the invoice in external system- Returns:
- byte[] Invoice Pdf in bytes
-
getSapMyAccountFacade
- Returns:
- the sapMyAccountFacade
-
setSapMyAccountFacade
- Parameters:
sapMyAccountFacade- the sapMyAccountFacade to set
-