xinvoice/test/assets/getinvoice.ts

18 lines
449 B
TypeScript
Raw Normal View History

2024-12-31 12:38:41 +00:00
import * as smartfile from '@push.rocks/smartfile';
export async function getInvoice(filePath: string): Promise<Buffer> {
const file = await smartfile.fs.toBuffer('./test/assets/corpus/' + filePath);
return file;
}
export const invoices = {
ZUGFeRDv2: {
correct: {
intarsys: {
BASIC: {
'zugferd_2p0_BASIC_Einfach.pdf': 'ZUGFeRDv2/correct/intarsys/BASIC/zugferd_2p0_BASIC_Einfach.pdf'
}
}
}
}
}