Class FiscalResponseItaly
- Namespace
- RetailForce.Fiscalisation.Implementation.Italy
- Assembly
- RetailForce.Fiscalisation.Model.dll
Fiscal response for italy.
public static class FiscalResponseItaly
- Inheritance
-
FiscalResponseItaly
- Inherited Members
Methods
CheckCountryAdditionalFields(ReadOnlyDictionary<string, object>)
Checks if all country specific fields are set in the dictionary.
public static void CheckCountryAdditionalFields(ReadOnlyDictionary<string, object> additionalFields)
Parameters
additionalFieldsReadOnlyDictionary<string, object>The dictionary of all country specific fields.
Exceptions
- MissingMemberException
Thrown if a country specific field is missing.
GetFiscalResponseItaly(int, List<DocumentTaxPosition>, long, string, string, string, string, string, string, string)
Returns the fiscal response for Italy out of the given parameters.
public static FiscalResponse GetFiscalResponseItaly(int fiscalisationDocumentNumber, List<DocumentTaxPosition> taxPositions, long fiscalDocumentStartTime, string signature, string cashRegisterId, string printMessage, string errorDescription, string qrCode, string printerSerial, string zReportNumber)
Parameters
fiscalisationDocumentNumberintThe fiscalisation document number.
taxPositionsList<DocumentTaxPosition>Tax positions calculated by fiscal system.
fiscalDocumentStartTimelongThe start time of this fiscal document (when CreateDocument was called, in unix time seconds).
signaturestringThe signature of the security device (country-specific)
cashRegisterIdstringThe cash register id.
printMessagestringThe print message to print out on the customer receipt. In several countries you have to print out this message.
errorDescriptionstringThe error description if the fiscalisation process failed. Empty if everything went well.
qrCodestringThe QR code attached to current receipt.
printerSerialstringThe printer serial number
zReportNumberstringThe Z report number of current receipt.
Returns
- FiscalResponse
A FiscalResponse object representing the fiscal response for Italy.
PrinterSerial(FiscalResponse)
Returns the printer serial number of the printout.
public static string PrinterSerial(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponseThe current fiscal response.
Returns
QrCode(FiscalResponse)
Returns the qr code for the printout.
public static string QrCode(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
ZReportNumber(FiscalResponse)
public static string ZReportNumber(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse