closeFiscalReceipt method
Implementation
Future<void> closeFiscalReceipt() async {
final message = await execute(Commands.closeFiscalReceipt.code);
final [$e, ...rest] = message.data.response;
final error = int.tryParse($e) ?? 0;
if (error != 0) {
throw FiscalCodeException('Error closing fiscal receipt', error);
}
}