closeNonFiscalReceipt method

Future<void> closeNonFiscalReceipt()

Implementation

Future<void> closeNonFiscalReceipt() async {
  final message = await execute(Commands.closeNonFiscalReceipt.code);
  final [$e, ...rest] = message.data.response;
  final error = int.tryParse($e) ?? 0;

  if (error != 0) {
    throw FiscalCodeException('Error closing non-fiscal receipt', error);
  }
}