Skip to content

SudoSOS Back-end API / reports / FineReport

Class: FineReport ​

Extends ​

  • UnstoredPdfAbleClass<typeof IFineReport, this> & IFineReport<this>

Constructors ​

Constructor ​

ts
new FineReport(init?): FineReport;

Parameters ​

ParameterType
init?Partial<IFineReport>

Returns ​

FineReport

Inherited from ​

ts
UnstoredPdfAble(IFineReport).constructor

Properties ​

PropertyTypeDescriptionOverridesInherited from
countnumber--UnstoredPdfAble(IFineReport).count
fromDateDate--UnstoredPdfAble(IFineReport).fromDate
handedOutDinero--UnstoredPdfAble(IFineReport).handedOut
pdfServiceFineReportPdfServiceThe service that creates the Pdf buffer. Can be either a LaTeX-based service (UnstoredPdfService) or HTML-based service (HtmlUnstoredPdfService).UnstoredPdfAble(IFineReport).pdfService-
toDateDate--UnstoredPdfAble(IFineReport).toDate
waivedAmountDinero--UnstoredPdfAble(IFineReport).waivedAmount
waivedCountnumber--UnstoredPdfAble(IFineReport).waivedCount

Methods ​

createPdf() ​

ts
createPdf(): Promise<Buffer<ArrayBufferLike>>;

Create the Pdf buffer. This method generates the PDF and returns it as a Buffer.

Returns ​

Promise<Buffer<ArrayBufferLike>>

Inherited from ​

ts
UnstoredPdfAble(IFineReport).createPdf

createRaw() ​

ts
createRaw(): Promise<Buffer<ArrayBufferLike>>;

Returns ​

Promise<Buffer<ArrayBufferLike>>

Inherited from ​

ts
UnstoredPdfAble(IFineReport).createRaw

createTex() ​

ts
createTex(): Promise<Buffer<ArrayBufferLike>>;

Returns ​

Promise<Buffer<ArrayBufferLike>>

Deprecated ​

Use createRaw() instead

Inherited from ​

ts
UnstoredPdfAble(IFineReport).createTex

getPdfParamHash() ​

ts
getPdfParamHash(): Promise<string>;

Returns ​

Promise<string>

Inherited from ​

ts
UnstoredPdfAble(IFineReport).getPdfParamHash

toResponse() ​

ts
toResponse(): FineReportResponse;

Returns ​

FineReportResponse