Class DefaultMyAccountInvoiceService

java.lang.Object
com.sap.myaccountsapservices.invoice.service.impl.DefaultMyAccountInvoiceService

public class DefaultMyAccountInvoiceService extends Object
This Class @DefaultMyAccountInvoiceService has methods to support invoice feature in MyAccount CDP integration
  • Constructor Details

    • DefaultMyAccountInvoiceService

      public DefaultMyAccountInvoiceService()
  • Method Details

    • getInvoices

      public CdpResponseData getInvoices(OrderModel order)
      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

      public byte[] getPDFData(OrderModel orderModel, String invoiceId)
      Method to get Invoice pdf from the external system
      Parameters:
      orderModel - order for which invoices are required
      invoiceId - 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

      public DefaultSapMyAccountOutboundService getDefaultSapMyAccountOutboundService()
      Returns:
      the defaultSapMyAccountOutboundService
    • setDefaultSapMyAccountOutboundService

      public void setDefaultSapMyAccountOutboundService(DefaultSapMyAccountOutboundService defaultSapMyAccountOutboundService)
      Parameters:
      defaultSapMyAccountOutboundService - the defaultSapMyAccountOutboundService to set