fferpcore.EReportServiceglobal with sharing class EReportService Common functionality available for building and sending French electronic reports (F10 e-reporting). In most circumstances, you should not have to call this directly - other APIs will provide more convenient services for producing e-reports from particular documents. Methods
generateB2BSerializedTransactionglobal static String generateB2BSerializedTransaction(fferpcore.ElectronicInvoicingService.FREReportB2bCrossBorderInvoice invoice, fferpcore.ElectronicInvoicingService.DocumentType documentType, Map<String, Object> extraParameters) Serializes a single cross-border B2B invoice into its Storecove `b2biInvoices` wire shape. Input Parameters
Return ValueThe serialized wire-shape JSON for the invoice, or null when the invoice is not populated. generateB2CSerializedTransactionglobal static String generateB2CSerializedTransaction(fferpcore.ElectronicInvoicingService.FREReportB2cTransaction b2cTransaction, fferpcore.ElectronicInvoicingService.DocumentType documentType, Map<String, Object> extraParameters) Serializes a single aggregated B2C transaction into its Storecove `b2cTransactions` wire shape. Input Parameters
Return ValueThe serialized wire-shape JSON for the transaction, or null when the transaction is not populated. |