Allegati - open-gate/fattura-elettronica GitHub Wiki
Nome Attachment
Nome dell'allegato
String, 1-60
allegato.setNomeAttachment(file.getFileName());
Algoritmo Compressione
Algoritmo usato per comprimere l'attachment
String, 1-10
allegato.setAlgoritmoCompressione("ZIP");
Formato Attachment
Formato dell'attachment
String, 1-10
allegato.setFormatoAttachment("PDF");
Descrizione Attachment
Descrizione del documento
String, 1-100
allegato.setDescrizioneAttachment("Descrizione");
Attachment
Contiene il documento allegato alla fattura
allegato.setAttachment(Files.readAllBytes(file.toPath()));