public class EFacturaPtyEndpoint extends AbstractInternalEndpointClient
EFacturaPty endpoint implementation.
  • Field Details

    • generateInvoicePath

      @Value("${efacturapty.invoice.generate}") private String generateInvoicePath
      Path for generate Invoice.
    • downloadCafePdfPath

      @Value("${efacturapty.invoice.download-cafe-pdf}") private String downloadCafePdfPath
      Path for download Invoice Cafe in pdf format.
    • key

      @Value("${efacturapty.key}") private String key
      EFacturaPty key value.
  • Constructor Details

    • EFacturaPtyEndpoint

      public EFacturaPtyEndpoint(String apiBasePath)
      Full state constructor.
      Parameters:
      apiBasePath - EFacturaPty API base path.
  • Method Details

    • generateInvoice

      public es.kukenan.smartfi.microservice.backoffice.dtos.core.invoice.response.InvoiceResponseDto generateInvoice(es.kukenan.smartfi.microservice.backoffice.dtos.core.invoice.request.InvoiceRequestDto invoiceRequestDto)
      Generate invoice with EFacturaPty.
      Parameters:
      invoiceRequestDto - invoice request dto.
      Returns:
      invoice generation response.
    • getInvoicePdfFile

      public File getInvoicePdfFile(String invoiceId)
      Get invoice Cafe as PDF file.
      Parameters:
      invoiceId - invoice identifier.
      Returns:
      invoice document file object.
    • callGenerateInvoice

      private es.kukenan.smartfi.microservice.backoffice.dtos.core.invoice.response.InvoiceResponseDto callGenerateInvoice(es.kukenan.smartfi.microservice.backoffice.dtos.core.invoice.request.InvoiceRequestDto invoiceRequestDto)
      Endpoint call for generate invoice.
      Parameters:
      invoiceRequestDto - invoice request dto.
      Returns:
      invoice generation response.
    • callGetInvoicePdfFile

      protected File callGetInvoicePdfFile(String invoiceId)
      Get invoice Cafe as PDF file.
      Parameters:
      invoiceId - invoice identifier.
      Returns:
      invoice document file object.