Class FiscalResponseGermany
- Namespace
- RetailForce.Fiscalisation.Implementation.Germany
- Assembly
- RetailForce.Fiscalisation.Model.dll
Fiscal response for germany fiscal implementation. Derived from FiscalResponse.
public static class FiscalResponseGermany
- Inheritance
-
FiscalResponseGermany
- 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.
FiscalDocumentRevision(FiscalResponse)
The revision of the fiscalisation document.
public static int FiscalDocumentRevision(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
GetFiscalResponseGermany(int, List<DocumentTaxPosition>, string, string, string, string, string, long, long, string, string, string, string, string, string, long, string, int)
Returns the fiscal response for germany out of the given parameters.
public static FiscalResponse GetFiscalResponseGermany(int fiscalDocumentNumber, List<DocumentTaxPosition> taxPositions, string signature, string cashRegisterId, string printMessage, string errorDescription, string qrCodeDataString, long transactionStartTime, long transactionEndTime, string processData, string processType, string tseSerial, string tseTimeFormat, string tseHashAlgorithm, string tsePublicKey, long tseSignatureCounter, string tseCertificate, int fiscalDocumentRevision)
Parameters
fiscalDocumentNumberintThe fiscalisation document number.
taxPositionsList<DocumentTaxPosition>Tax positions calculated by fiscal system.
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.
qrCodeDataStringstringThe QR code data string according to Appendix I of DSFinV-K.
transactionStartTimelongThe start time of this fiscal document (when CreateDocument was called, in unix time seconds).
transactionEndTimelongThe end time of the transaction. A timestamp / point in time measured in seconds since the Unix epoch.
processDatastringThe process data of the signed transaction. Binary value (base64 encoded utf8 string). This is the processData according to "Anwendungserlass zu §146a AO".
processTypestringThe process type of signed transaction. This is the processType according to "Anwendungserlass zu §146a AO".
tseSerialstringThe serialnumber of the tss module.
tseTimeFormatstringThe time format which is used by the tss.
tseHashAlgorithmstringThe hash algorithm which is used by the tss.
tsePublicKeystringThe public key of the tss.
tseSignatureCounterlongThe actual signature counter of the tss after signing the transaction.
tseCertificatestringThe certificate of the tse.
fiscalDocumentRevisionint
Returns
- FiscalResponse
A FiscalResponse object representing the fiscal response for germany.
ProcessData(FiscalResponse)
The process data of the signed transaction. Binary value (base64 encoded utf8 string). This is the processData according to "Anwendungserlass zu §146a AO".
public static string ProcessData(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
ProcessType(FiscalResponse)
The process type of signed transaction. This is the processType according to "Anwendungserlass zu §146a AO".
public static string ProcessType(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
QrCodeDataString(FiscalResponse)
The QR code data string according to Appendix I of DSFinV-K.
[Obsolete("This field will be moved to standard field QrCode of fiscal response. This field will be removed from upon version 1.9.")]
public static string QrCodeDataString(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
TransactionEndTime(FiscalResponse)
The end time of the transaction. A timestamp / point in time measured in seconds since the Unix epoch.
public static long TransactionEndTime(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
TransactionStartTime(FiscalResponse)
The start time of the transaction. A timestamp / point in time measured in seconds since the Unix epoch.
public static long TransactionStartTime(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
TseCertificate(FiscalResponse)
The certificate of the tse.
public static string TseCertificate(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
TseHashAlgorithm(FiscalResponse)
The hash algorithm which is used by the tss.
public static string TseHashAlgorithm(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
TsePublicKey(FiscalResponse)
The public key of the tss.
public static string TsePublicKey(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
TseSerial(FiscalResponse)
The serialnumber of the tss module.
public static string TseSerial(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
TseSignatureCounter(FiscalResponse)
The actual signature counter of the tss after signing the transaction.
public static long TseSignatureCounter(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
TseTimeFormat(FiscalResponse)
The time format which is used by the tss.
public static string TseTimeFormat(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse