#[repr(u8)]pub enum OperationCode {
Show 16 variants
ListOpsAndDeps = 1,
OperatorLogin = 2,
OperatorLogout = 3,
PrintReceipt = 4,
PrintLastReceipt = 5,
GetReturnableReceipt = 6,
SetupHeaderFooter = 7,
SetupHeaderLogo = 8,
PrintFiscalReport = 9,
PrintReturnReceipt = 10,
CashInOut = 11,
DateTime = 12,
ReceiptSample = 13,
HdmTimeSync = 14,
PaymentSystemsList = 15,
SingleEmark = 16,
}Expand description
HDM protocol operation codes. Codes 1-10 are v0.5; 11-16 were added through v0.7.3.
Variants§
ListOpsAndDeps = 1
List active operators and departments.
OperatorLogin = 2
Operator login. Returns the session key used for all subsequent ops.
OperatorLogout = 3
Operator logout.
PrintReceipt = 4
Print a fiscal receipt.
PrintLastReceipt = 5
Reprint a copy of the last receipt.
GetReturnableReceipt = 6
Get (look up) the contents of a receipt you intend to return. Read-only.
Configure receipt header and footer text lines.
SetupHeaderLogo = 8
Upload the receipt header logo image (Base64 BMP, colour depth ≤4 bits).
PrintFiscalReport = 9
Print a fiscal report (1 = X-report, 2 = Z-report).
PrintReturnReceipt = 10
Print a return / refund receipt (full, by-amount, or per-item). Registers the return.
CashInOut = 11
Cash drawer in/out adjustment.
DateTime = 12
Query device date and time.
ReceiptSample = 13
Receipt sample (test print).
HdmTimeSync = 14
Synchronise HDM with tax authority.
PaymentSystemsList = 15
List available payment systems (returns codes 1-18, see spec §4.8).
SingleEmark = 16
Submit a single eMark traceability code.
Trait Implementations§
Source§impl Clone for OperationCode
impl Clone for OperationCode
Source§fn clone(&self) -> OperationCode
fn clone(&self) -> OperationCode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for OperationCode
Source§impl Debug for OperationCode
impl Debug for OperationCode
impl Eq for OperationCode
Source§impl PartialEq for OperationCode
impl PartialEq for OperationCode
Source§fn eq(&self, other: &OperationCode) -> bool
fn eq(&self, other: &OperationCode) -> bool
self and other values to be equal, and is used by ==.