Class FiscalResponseCanada
- Namespace
- RetailForce.Fiscalisation.Implementation.Canada
- Assembly
- RetailForce.Fiscalisation.Model.dll
public static class FiscalResponseCanada
- Inheritance
-
FiscalResponseCanada
- Inherited Members
Methods
CasEssai(FiscalResponse)
Returns the next test case (cas essai).
public static string CasEssai(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
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.
ConcatenatedString(FiscalResponse)
Returns the concatenated string for qr-code.
public static string ConcatenatedString(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
CountPaymentTransactions(FiscalResponse)
Returns the count of payment transactions (needed for user report).
public static int CountPaymentTransactions(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
CountTransactions(FiscalResponse)
Returns the count of transactions (needed for user report).
public static int CountTransactions(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
DatLog(FiscalResponse)
Returns the dat log.
public static string DatLog(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
DatTrans(FiscalResponse)
Returns the signed data (raw data) of the signature.
public static string DatTrans(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
DeviceIdentifier(FiscalResponse)
Returns the device identifier.
public static string DeviceIdentifier(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
Errors(FiscalResponse)
Returns the error list.
public static List<ResponseError> Errors(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponsefiscal response
Returns
- List<ResponseError>
error list
GetFiscalResponseCanada(int, List<DocumentTaxPosition>, long, string, string, Dictionary<string, string>, string, string, string, int, int, string, string, string, string, string, string, string, string, string, string, string, string, string, ReprintType?, string, decimal, List<ResponseError>)
Returns the fiscal response for canada out of the given parameters.
public static FiscalResponse GetFiscalResponseCanada(int fiscalisationDocumentNumber, List<DocumentTaxPosition> taxPositions, long fiscalDocumentStartTime, string signature, string cashRegisterId, Dictionary<string, string> printingFields, string errorDescription, string qrCode, string concatenatedString, int countTransactions, int countPaymentTransactions, string casEssai, string noTrans, string psiNoTrans, string psiDatTrans, string noLot, string datLog, string noTPS, string noTVQ, string jsonVersi, string datTrans, string deviceIdentifier, string signatureDate, string thumbprint, ReprintType? reprintType, string fiscalDocumentNumber, decimal lastPositionNetValueAdjustment, List<ResponseError> errors)
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.
printingFieldsDictionary<string, string>The print messages to print out on the customer receipt. In several countries you have to print out these messages.
errorDescriptionstringThe error description if the fiscalisation process failed. Empty if everything went well.
qrCodestringThe qr code of the response.
concatenatedStringstringThe concatenated string of qr code.
countTransactionsintCount Transactions
countPaymentTransactionsintCount Payment Transactions
casEssaistringCas Essai
noTransstringTransaction number of web-srm.
psiNoTransstringPsi No Trans
psiDatTransstringPsi Dat Trans
noLotstringNo Lot
datLogstringDat Log
noTPSstringNo TPS
noTVQstringNo TVQ
jsonVersistringJson versi
datTransstringDate of processing of web-srm .
deviceIdentifierstringDevice identifier.
signatureDatestringSignature date.
thumbprintstringThumbprint.
reprintTypeReprintType?Reprint type.
fiscalDocumentNumberstringReprint type.
lastPositionNetValueAdjustmentdecimalReprint type.
errorsList<ResponseError>Validation errors returnewd by WebSRM
Returns
- FiscalResponse
A FiscalResponse object representing the fiscal response for austria.
JsonVersi(FiscalResponse)
Returns the JSON version.
public static string JsonVersi(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
LastPositionNetValueAdjustment(FiscalResponse)
returns the last positioned value adjustment
public static string LastPositionNetValueAdjustment(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
Remarks
if vat gross/net value have cent differences, the last position value have to be changed to remove the cent difference
NoLot(FiscalResponse)
Returns the no lot.
public static string NoLot(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
NoTPS(FiscalResponse)
Returns the dat log.
public static string NoTPS(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
NoTVQ(FiscalResponse)
Returns the dat log.
public static string NoTVQ(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
NoTrans(FiscalResponse)
Returns the key version of the signature.
public static string NoTrans(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
PsiDatTrans(FiscalResponse)
Returns the psi dat trans.
public static string PsiDatTrans(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
PsiNoTrans(FiscalResponse)
Returns the psi no trans.
public static string PsiNoTrans(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
ReprintType(FiscalResponse)
Returns the reprint type.
public static string ReprintType(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
SignatureDate(FiscalResponse)
Returns the signature date.
public static string SignatureDate(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse
Returns
Thumbprint(FiscalResponse)
Returns the thumbprint.
public static string Thumbprint(this FiscalResponse fiscalResponse)
Parameters
fiscalResponseFiscalResponse