fferpcore.ElectronicInvoicingDeliveryglobal with sharing class ElectronicInvoicingDelivery Interfaces and data structures used to pass information to interested parties to update and create documents (Invoice/Credit Note) for an electronic invoice. EnumsDocumentStatusThe delivery status of a document supported by e-invoicing.
fferpcore.ElectronicInvoicingDelivery.IEInvoiceUpdateListenerglobal interface IEInvoiceUpdateListener To be implemented by systems that care about receiving updates about the status of e-invoices. MethodsupdateDocumentsvoid updateDocuments(Map<String, fferpcore.ElectronicInvoicingDelivery.DeliveryUpdate> responseByUniqueIdentifiers) This will be called with updates about the status of e-invoices. If there are multiple systems sending electronic invoices, they might receive notifications about each other's invoices. These notifications can be safely ignored. Input Parameters
fferpcore.ElectronicInvoicingDelivery.IDocumentCreateListenerglobal interface IDocumentCreateListener To be implemented by systems that care about receiving e-invoice data to create documents (Invoice/Credit Note). MethodscreateDocumentsList<ElectronicInvoicingService.DocumentResponse> createDocuments(List<fferpcore.ElectronicInvoicingService.Document> documents) This will be called with the received invoice data to create documents (Invoice/Credit Note). fferpcore.ElectronicInvoicingDelivery.IEInvoiceArchiveServiceglobal interface IEInvoiceArchiveService To be implemented by systems that care about archiving of sent and received documents. Methods
archiveSentFilesvoid archiveSentFiles(String libraryName, Map<String, String> ublByGuidMap) This will be called with the Archive library name for sent files and a map of UBL by GUID to archive the sent documents(Invoice/Credit Note). archiveReceivedFilesvoid archiveReceivedFiles(String libraryName, List<fferpcore.ElectronicInvoicingService.Document> documents) This will be called with the Archive library name and a list of received documents(Invoice/Credit Note) to archive. fferpcore.ElectronicInvoicingDelivery.DeliveryUpdateglobal with sharing class DeliveryUpdate An update about how a particular electronic invoice is progressing in its delivery. Depending on the source of the update, the invoice may be identified using an identifier generated by FinancialForce (using the getEInvoicingUniqueIdentifier() method), one generated by the e-invoicing provider (using the getEInvoicingExternalUniqueIdentifier() method), or both. If there are multiple systems sending electronic invoices, they might receive notifications about each other's invoices. These notifications can be safely ignored. Methods
DeliveryUpdateglobal DeliveryUpdate(String uniqueIdentifier, fferpcore.ElectronicInvoicingDelivery.DocumentStatus status) Constructs a delivery update indicating that the document identified by uniqueIdentifier has reached the given status. Input Parameters
DeliveryUpdateglobal DeliveryUpdate(String uniqueIdentifier, String externalUniqueIdentifier, fferpcore.ElectronicInvoicingDelivery.DocumentStatus status) Constructs a delivery update indicating that the document identified by uniqueIdentifier has reached the given status. Input Parameters
DeliveryUpdateglobal DeliveryUpdate(String uniqueIdentifier, fferpcore.ElectronicInvoicingDelivery.DocumentStatus status, List<String> errorMessages) Constructs a delivery update for an error status, with error messages providing additional information. Input Parameters
DeliveryUpdateglobal DeliveryUpdate(String uniqueIdentifier, String externalUniqueIdentifier, fferpcore.ElectronicInvoicingDelivery.DocumentStatus status, List<String> errorMessages) Constructs a delivery update for an error status, with error messages providing additional information. Input Parameters
getEInvoicingUniqueIdentifierglobal String getEInvoicingUniqueIdentifier() The UUID generated by our system that identifies the document to which this update pertains. This may be null if the update originated from the e-invoicing provider, in which case the invoice is identified by the getEInvoicingExternalUniqueIdentifier() method. getDocumentStatusglobal fferpcore.ElectronicInvoicingDelivery.DocumentStatus getDocumentStatus() The current delivery status of the document. getErrorMessagesglobal List<String> getErrorMessages() Textual descriptions of the reasons that sending or delivering the e-invoice has failed. getEInvoicingExternalUniqueIdentifierglobal String getEInvoicingExternalUniqueIdentifier() An identifier used by the e-invoicing provider to identify the invoice. This may be different from the EInvoicingUniqueIdentifier generated by our system. This may be null if the update has originated from our system, in which case the invoice is identified by the getEInvoicingUniqueIdentifier() method. |