fferpcore.ElectronicInvoicingDeliveryglobal with sharing class ElectronicInvoicingDelivery Interfaces and data structures used to notify interested parties of updates during the delivery of an electronic invoice. To receive notifications, implement the interface IEInvoiceUpdateListener and add an fferpcore__Plugin__mdt record where fferpcore__ClassName__c points to your class and fferpcore__ExtensionPoint__c is set to 'ElectronicInvoicingDelivery.IEInvoiceUpdateListener'. 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.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. |